|
8 | 8 | import { ListItemClasses } from '../../shared/classes/ListItemClasses.js';
|
9 | 9 | import { ListItemColors } from '../../shared/colors/ListItemColors.js';
|
10 | 10 | import { getReactiveContext } from '../shared/get-reactive-context.js';
|
| 11 | + import { printText } from '../shared/print-text.js'; |
11 | 12 |
|
12 | 13 | let className = undefined;
|
13 | 14 | export { className as class };
|
|
199 | 200 | {/if}
|
200 | 201 | <div class={c.inner}>
|
201 | 202 | {#if header || $$slots.header}
|
202 |
| - <div class={c.header}>{header}<slot name="header" /></div> |
| 203 | + <div class={c.header}> |
| 204 | + {printText(header)}<slot name="header" /> |
| 205 | + </div> |
203 | 206 | {/if}
|
204 | 207 | {#if ((title || $$slots.title) && withTitle !== false) || after || $$slots.after}
|
205 | 208 | <div class={c.titleWrap}>
|
206 | 209 | {#if (title || $$slots.title) && withTitle !== false}
|
207 | 210 | <div class={titleClasses}>
|
208 |
| - {title} |
| 211 | + {printText(title)} |
209 | 212 | <slot name="title" />
|
210 | 213 | </div>
|
211 | 214 | {/if}
|
212 | 215 | {#if after || $$slots.after}
|
213 | 216 | <div class={c.after}>
|
214 |
| - {after} |
| 217 | + {printText(after)} |
215 | 218 | <slot name="after" />
|
216 | 219 | </div>
|
217 | 220 | {/if}
|
|
221 | 224 | </div>
|
222 | 225 | {/if}
|
223 | 226 | {#if subtitle || $$slots.subtitle}
|
224 |
| - <div class={c.subtitle}>{subtitle}<slot name="subtitle" /></div> |
| 227 | + <div class={c.subtitle}> |
| 228 | + {printText(subtitle)}<slot name="subtitle" /> |
| 229 | + </div> |
225 | 230 | {/if}
|
226 | 231 | {#if text || $$slots.text}
|
227 |
| - <div class={c.text}>{text}<slot name="text" /></div> |
| 232 | + <div class={c.text}>{printText(text)}<slot name="text" /></div> |
228 | 233 | {/if}
|
229 | 234 | {#if footer || $$slots.footer}
|
230 |
| - <div class={c.footer}>{footer}<slot name="footer" /></div> |
| 235 | + <div class={c.footer}> |
| 236 | + {printText(footer)}<slot name="footer" /> |
| 237 | + </div> |
231 | 238 | {/if}
|
232 | 239 | <slot name="inner" />
|
233 | 240 | </div>
|
|
245 | 252 | {/if}
|
246 | 253 | <div class={c.inner}>
|
247 | 254 | {#if header || $$slots.header}
|
248 |
| - <div class={c.header}>{header}<slot name="header" /></div> |
| 255 | + <div class={c.header}> |
| 256 | + {printText(header)}<slot name="header" /> |
| 257 | + </div> |
249 | 258 | {/if}
|
250 | 259 | {#if ((title || $$slots.title) && withTitle !== false) || after || $$slots.after}
|
251 | 260 | <div class={c.titleWrap}>
|
252 | 261 | {#if (title || $$slots.title) && withTitle !== false}
|
253 | 262 | <div class={titleClasses}>
|
254 |
| - {title} |
| 263 | + {printText(title)} |
255 | 264 | <slot name="title" />
|
256 | 265 | </div>
|
257 | 266 | {/if}
|
258 | 267 | {#if after || $$slots.after}
|
259 | 268 | <div class={c.after}>
|
260 |
| - {after} |
| 269 | + {printText(after)} |
261 | 270 | <slot name="after" />
|
262 | 271 | </div>
|
263 | 272 | {/if}
|
|
267 | 276 | </div>
|
268 | 277 | {/if}
|
269 | 278 | {#if subtitle || $$slots.subtitle}
|
270 |
| - <div class={c.subtitle}>{subtitle}<slot name="subtitle" /></div> |
| 279 | + <div class={c.subtitle}> |
| 280 | + {printText(subtitle)}<slot name="subtitle" /> |
| 281 | + </div> |
271 | 282 | {/if}
|
272 | 283 | {#if text || $$slots.text}
|
273 |
| - <div class={c.text}>{text}<slot name="text" /></div> |
| 284 | + <div class={c.text}>{printText(text)}<slot name="text" /></div> |
274 | 285 | {/if}
|
275 | 286 | {#if footer || $$slots.footer}
|
276 |
| - <div class={c.footer}>{footer}<slot name="footer" /></div> |
| 287 | + <div class={c.footer}> |
| 288 | + {printText(footer)}<slot name="footer" /> |
| 289 | + </div> |
277 | 290 | {/if}
|
278 | 291 | <slot name="inner" />
|
279 | 292 | </div>
|
|
0 commit comments