@nldd/design-system 0.8.91 → 0.8.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICES.md +9 -27
- package/README.md +39 -26
- package/custom-elements.json +1936 -1460
- package/dist/components/actions/button/button.d.ts +22 -5
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +48 -12
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +3 -1
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +5 -4
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts +48 -3
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +104 -11
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +64 -4
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +7 -6
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +7 -12
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +9 -5
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +29 -29
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +53 -53
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +4 -0
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +8 -2
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +24 -10
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +57 -26
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +7 -7
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +5 -3
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/components.js +2060 -1065
- package/dist/components/content/avatar/avatar.d.ts +25 -10
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +25 -18
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +7 -3
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.js +6 -2
- package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +12 -2
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +20 -8
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +32 -12
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +1 -1
- package/dist/components/content/identity/identity.js +1 -1
- package/dist/components/content/identity/identity.template.d.ts.map +1 -1
- package/dist/components/content/identity/identity.template.js +4 -1
- package/dist/components/content/identity/identity.template.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +7 -2
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +18 -9
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +24 -15
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +2 -2
- package/dist/components/content/tag/tag.d.ts.map +1 -1
- package/dist/components/content/tag/tag.js +5 -5
- package/dist/components/content/tag/tag.js.map +1 -1
- package/dist/components/content/tag/tag.template.js +2 -2
- package/dist/components/content/title/title.d.ts +30 -6
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +72 -8
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +41 -4
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/title/title.template.d.ts +2 -1
- package/dist/components/content/title/title.template.d.ts.map +1 -1
- package/dist/components/content/title/title.template.js +33 -5
- package/dist/components/content/title/title.template.js.map +1 -1
- package/dist/components/content/token/token.d.ts +15 -5
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.i18n.d.ts +7 -0
- package/dist/components/content/token/token.i18n.d.ts.map +1 -0
- package/dist/components/content/token/token.i18n.js +6 -0
- package/dist/components/content/token/token.i18n.js.map +1 -0
- package/dist/components/content/token/token.js +55 -14
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +4 -4
- package/dist/components/content/token/token.template.js.map +1 -1
- package/dist/components/{dist-CENYEz7C.js → dist-B5ie2Bo9.js} +1 -1
- package/dist/components/{dist-D_ckX1sK.js → dist-BUu-NW5O.js} +1 -1
- package/dist/components/{dist-Y54Lma86.js → dist-CGOykrJw.js} +2 -2
- package/dist/components/{dist-CYLM5ciE.js → dist-CQzaKTa8.js} +1 -1
- package/dist/components/{dist-yyE8P2O6.js → dist-CSYXsT7W.js} +2 -2
- package/dist/components/{dist-BLaE_n_F.js → dist-CoUVHSu-.js} +1 -1
- package/dist/components/{dist-DHA-0RyT.js → dist-Dn3c5gfb.js} +7 -1
- package/dist/components/{dist-BeymuiGt.js → dist-Dxn9Up8K.js} +3 -3
- package/dist/components/{dist-Dh_b9r4M.js → dist-M6GKopqu.js} +1 -1
- package/dist/components/{dist-TCqV9dho.js → dist-OlffRM7-.js} +1 -1
- package/dist/components/{dist-DkZlotgT.js → dist-RPaf2J9c.js} +2 -2
- package/dist/components/forms/form/form.d.ts +18 -7
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +18 -7
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts +1 -1
- package/dist/components/forms/form-actions/form-actions.js +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +12 -1
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +12 -1
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +3 -3
- package/dist/components/forms/form-section/form-section.js +8 -8
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +7 -4
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +7 -4
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/{icon-C_zwJZ_g.js → icon-DWNVcttg.js} +4 -4
- package/dist/components/{icon-button-CEz4MB9H.js → icon-button-hO6k8W63.js} +20 -20
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.js +11 -5
- package/dist/components/inputs/checkbox/checkbox.template.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +4 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +4 -1
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.js +2 -2
- package/dist/components/inputs/date-field/date-field.d.ts +1 -1
- package/dist/components/inputs/date-field/date-field.js +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +5 -3
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +1 -1
- package/dist/components/inputs/dropdown/dropdown.template.js +3 -3
- package/dist/components/inputs/file-field/file-field.template.js +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +2 -2
- package/dist/components/inputs/number-field/number-field.styles.js +4 -4
- package/dist/components/inputs/password-field/password-field.template.js +2 -2
- package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +0 -10
- package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.js +6 -4
- package/dist/components/inputs/radio-button/radio-button.template.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +0 -10
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.js +4 -3
- package/dist/components/inputs/radio-button-field/radio-button-field.template.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +24 -24
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +40 -40
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.js +4 -2
- package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +3 -0
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +6 -0
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +0 -10
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +5 -5
- package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
- package/dist/components/inputs/switch/switch.template.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +78 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.js +2 -2
- package/dist/components/inputs/time-field/time-field.d.ts +1 -1
- package/dist/components/inputs/time-field/time-field.js +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +5 -3
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +0 -9
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +7 -6
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.js +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +2 -1
- package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.template.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.template.js +6 -4
- package/dist/components/inputs/token-field/token-field.template.js.map +1 -1
- package/dist/components/layout/app-view/app-view.d.ts +8 -0
- package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.js +8 -0
- package/dist/components/layout/app-view/app-view.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +5 -8
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +8 -19
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +6 -3
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +11 -6
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +19 -14
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.template.js +4 -1
- package/dist/components/layout/collection/collection.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +13 -8
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +19 -14
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +52 -2
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +94 -3
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.template.d.ts +6 -0
- package/dist/components/layout/page/page.template.d.ts.map +1 -1
- package/dist/components/layout/page/page.template.js +21 -6
- package/dist/components/layout/page/page.template.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +2 -2
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +4 -4
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +16 -4
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +4 -6
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +4 -5
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js +8 -2
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +13 -15
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +20 -21
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.js +6 -2
- package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +6 -8
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +6 -7
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js +8 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +6 -8
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +6 -7
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js +8 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts +139 -44
- package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +44 -47
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +11 -12
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +19 -19
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +8 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +14 -8
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +14 -7
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.template.js +8 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +6 -8
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +6 -7
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js +8 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +12 -8
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +38 -18
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +26 -11
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +59 -20
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +8 -4
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.template.js +1 -1
- package/dist/components/layout/sheet/sheet.template.js.map +1 -1
- package/dist/components/layout/spacer/spacer.d.ts +15 -2
- package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
- package/dist/components/layout/spacer/spacer.js +15 -2
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +4 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +11 -6
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +17 -12
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +4 -0
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +3 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +3 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +4 -4
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +8 -8
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +30 -18
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +66 -31
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts +4 -2
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.js +7 -5
- package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js +88 -16
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +4 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +7 -5
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +23 -0
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js +11 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +5 -5
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js +8 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts +5 -5
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +8 -8
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +3 -3
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +6 -6
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js +8 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +3 -3
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +6 -6
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +4 -0
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.js +25 -8
- package/dist/components/lists-and-tables/list/list.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +61 -38
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +106 -37
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +4 -14
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +2 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +36 -11
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +46 -19
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +4 -14
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +13 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +2 -2
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +5 -5
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +6 -6
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +9 -3
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +1 -3
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +1 -11
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +4 -3
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +4 -4
- package/dist/components/navigation/pagination/pagination.styles.js +4 -4
- package/dist/components/navigation/pagination/pagination.template.js +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.js +10 -4
- package/dist/components/navigation/skip-link/skip-link.styles.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +2 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +6 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +7 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +2 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js +18 -3
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +4 -4
- package/dist/components/status-and-feedback/badge/badge.d.ts +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +1 -1
- package/dist/components/status-and-feedback/badge/badge.template.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.template.js +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +14 -5
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +43 -13
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js +4 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +8 -8
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +13 -13
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.template.js +5 -2
- package/dist/components/status-and-feedback/notification/notification.template.js.map +1 -1
- package/dist/components/status-and-feedback/notification/{notification-region.d.ts → notifications-area.d.ts} +3 -3
- package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -0
- package/dist/components/status-and-feedback/notification/{notification-region.js → notifications-area.js} +137 -140
- package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +4 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +2 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +106 -18
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +2 -4
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +2 -8
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.template.js +3 -2
- package/dist/components/status-and-feedback/status-bar/status-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts +4 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js +4 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js +2 -2
- package/dist/components/{with-translations-CqUV9S5g.js → with-translations-BAKFoEKy.js} +22 -1
- package/dist/css/form-section.css +4 -4
- package/dist/css/form.css +4 -0
- package/dist/css/fouc.css +1 -1
- package/dist/css/rich-text.css +26 -11
- package/dist/css/rijksoverheid-fonts.css +1 -1
- package/dist/css/variables.css +4 -15
- package/dist/favicon.svg +3 -8
- package/dist/nldd.min.js +1336 -898
- package/dist/touch-icon.png +0 -0
- package/dist/types/vue.d.ts +325 -278
- package/dist/utilities/form-associated-mixin.d.ts +2 -0
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
- package/dist/utilities/form-associated-mixin.js +15 -1
- package/dist/utilities/form-associated-mixin.js.map +1 -1
- package/dist/utilities/link-rel.d.ts +13 -0
- package/dist/utilities/link-rel.d.ts.map +1 -0
- package/dist/utilities/link-rel.js +21 -0
- package/dist/utilities/link-rel.js.map +1 -0
- package/dist/utilities/page-section-mixin.d.ts +3 -8
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +4 -84
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/title-bar-label-controller.d.ts +25 -0
- package/dist/utilities/title-bar-label-controller.d.ts.map +1 -0
- package/dist/utilities/title-bar-label-controller.js +52 -0
- package/dist/utilities/title-bar-label-controller.js.map +1 -0
- package/package.json +9 -7
- package/dist/components/status-and-feedback/notification/notification-region.d.ts.map +0 -1
- package/dist/components/status-and-feedback/notification/notification-region.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.template.js","sourceRoot":"","sources":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AC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG;iBACjC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YAC5C,SAAS,CAAC,MAAM,IAAI,OAAO;WAC5B,SAAS,CAAC,KAAK,IAAI,OAAO;WAC1B,SAAS,CAAC,SAAS,CAAC,aAAa,CAAC;YACjC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC;aAC1B,SAAS,CAAC,OAAO;cAChB,SAAS,CAAC,QAAQ;mBACb,SAAS,CAAC,SAAS,CAAC,aAAa,CAAC;WAC1C,SAAS,CAAC,YAAY;YACrB,SAAS,CAAC,aAAa;;EAEjC,CAAC;IAEF,2EAA2E;IAC3E,2EAA2E;IAC3E,wCAAwC;IACxC,2EAA2E;IAC3E,yEAAyE;IACzE,oEAAoE;IACpE,wEAAwE;IACxE,0EAA0E;IAC1E,2EAA2E;IAC3E,MAAM,YAAY,GAAG,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAA;;iBAEnC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO
|
|
1
|
+
{"version":3,"file":"image.template.js","sourceRoot":"","sources":["../../../../src/components/content/image/image.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,MAAM,UAAU,aAAa,CAAC,SAAoB;IACjD,mEAAmE;IACnE,uEAAuE;IACvE,+CAA+C;IAC/C,wEAAwE;IACxE,wEAAwE;IACxE,uEAAuE;IACvE,wEAAwE;IACxE,8CAA8C;IAC9C,MAAM,UAAU,GAAG,SAAS,CAAC,WAAW,CAAC;IACz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oB;OACzD,SAAS,CAAC,OAAO;MAClB,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA,+BAA+B,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,OAAO;;;EAG7F,CAAC;AACH,CAAC"}
|
|
@@ -5,6 +5,15 @@
|
|
|
5
5
|
* typography. Uses no shadow DOM so styles apply to all nested elements.
|
|
6
6
|
* Import nldd-rich-text.css globally in your application.
|
|
7
7
|
*
|
|
8
|
+
* ## Direct children
|
|
9
|
+
* The rich text lays out its direct children in a grid: the vertical rhythm
|
|
10
|
+
* between headings, paragraphs and lists, and the width zones below, apply to
|
|
11
|
+
* those children only. A single wrapper `div` without `class`, `style`, `role`
|
|
12
|
+
* or `data-width`, as a markdown renderer or a component root produces it, is
|
|
13
|
+
* passed through with `display: contents`, so its children count as direct.
|
|
14
|
+
* Any other wrapper becomes a single grid item, and the paragraphs inside it
|
|
15
|
+
* lose their spacing.
|
|
16
|
+
*
|
|
8
17
|
* ## Width zones
|
|
9
18
|
* Children are placed in three zones: text (headings, paragraphs, lists,
|
|
10
19
|
* blockquote, div/section) reads at the `main` size; media and tables (img,
|
|
@@ -17,31 +26,31 @@
|
|
|
17
26
|
*
|
|
18
27
|
* @element nldd-rich-text
|
|
19
28
|
*
|
|
29
|
+
* @attr {string} color - 'content' (the default) takes the system's own content
|
|
30
|
+
* colors, each element its own. 'inherit' lets all text follow the color of
|
|
31
|
+
* the surface instead (for colored areas such as the filled categories).
|
|
32
|
+
* Links stay underlined as an affordance; secondary text (figcaption) gets
|
|
33
|
+
* the same color at a lowered opacity. Known v1 gaps: inline code, mark,
|
|
34
|
+
* tables and hr keep their own surfaces.
|
|
20
35
|
* @attr {string} spacing - Spacing between elements: 'flat' | 'tight' | 'snug' (default) | 'loose'
|
|
21
36
|
* @attr {boolean} centered - Centers the main column inside the container; without it, content is left-aligned
|
|
37
|
+
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
22
38
|
* @attr {boolean} hyphens - Opt-in automatic hyphenation for running text (p,
|
|
23
39
|
* li, dd). Needs a correct `lang` on the page (`lang="nl"` on `<html>`, for
|
|
24
40
|
* instance): without language information the browser does not hyphenate. An
|
|
25
41
|
* `overflow-wrap: break-word` safety net on p/li is always on, independent of
|
|
26
42
|
* this attribute, so long URLs and compounds break neatly instead of
|
|
27
43
|
* overflowing even without a dictionary.
|
|
28
|
-
* @attr {string} color - 'content' (the default) takes the system's own content
|
|
29
|
-
* colors, each element its own. 'inherit' lets all text follow the color of
|
|
30
|
-
* the surface instead (for colored areas such as the filled categories).
|
|
31
|
-
* Links stay underlined as an affordance; secondary text (figcaption) gets
|
|
32
|
-
* the same color at a lowered opacity. Known v1 gaps: inline code, mark,
|
|
33
|
-
* tables and hr keep their own surfaces.
|
|
34
|
-
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
35
44
|
*/
|
|
36
45
|
import { LitElement } from 'lit';
|
|
37
46
|
import type { NLDDRichTextTranslations } from './rich-text.i18n.js';
|
|
38
47
|
type Spacing = 'flat' | 'tight' | 'snug' | 'loose';
|
|
39
48
|
export declare class NLDDRichText extends LitElement {
|
|
49
|
+
color: 'content' | 'inherit';
|
|
40
50
|
spacing: Spacing;
|
|
41
51
|
centered: boolean;
|
|
42
|
-
hyphens: boolean;
|
|
43
|
-
color: 'content' | 'inherit';
|
|
44
52
|
translations: Partial<NLDDRichTextTranslations>;
|
|
53
|
+
hyphens: boolean;
|
|
45
54
|
_t(key: keyof NLDDRichTextTranslations): string;
|
|
46
55
|
private _mutationObserver?;
|
|
47
56
|
private _resizeObserver?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rich-text.d.ts","sourceRoot":"","sources":["../../../../src/components/content/rich-text/rich-text.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"rich-text.d.ts","sourceRoot":"","sources":["../../../../src/components/content/rich-text/rich-text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,KAAK,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAInD,qBACa,YAAa,SAAQ,UAAU;IAE3C,KAAK,EAAE,SAAS,GAAG,SAAS,CAAa;IAGzC,OAAO,EAAE,OAAO,CAAU;IAG1B,QAAQ,UAAS;IAGjB,YAAY,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAM;IAGrD,OAAO,UAAS;IAET,EAAE,CAAC,GAAG,EAAE,MAAM,wBAAwB,GAAG,MAAM;IAItD,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,OAAO,CAAC,eAAe,CAAC,CAAiB;IAEhC,gBAAgB;IAIhB,iBAAiB,IAAI,IAAI;IAezB,oBAAoB,IAAI,IAAI;IAQrC,OAAO,CAAC,WAAW;CA+BnB;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gBAAgB,EAAE,YAAY,CAAC;KAC/B;CACD"}
|
|
@@ -11,6 +11,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
11
11
|
* typography. Uses no shadow DOM so styles apply to all nested elements.
|
|
12
12
|
* Import nldd-rich-text.css globally in your application.
|
|
13
13
|
*
|
|
14
|
+
* ## Direct children
|
|
15
|
+
* The rich text lays out its direct children in a grid: the vertical rhythm
|
|
16
|
+
* between headings, paragraphs and lists, and the width zones below, apply to
|
|
17
|
+
* those children only. A single wrapper `div` without `class`, `style`, `role`
|
|
18
|
+
* or `data-width`, as a markdown renderer or a component root produces it, is
|
|
19
|
+
* passed through with `display: contents`, so its children count as direct.
|
|
20
|
+
* Any other wrapper becomes a single grid item, and the paragraphs inside it
|
|
21
|
+
* lose their spacing.
|
|
22
|
+
*
|
|
14
23
|
* ## Width zones
|
|
15
24
|
* Children are placed in three zones: text (headings, paragraphs, lists,
|
|
16
25
|
* blockquote, div/section) reads at the `main` size; media and tables (img,
|
|
@@ -23,21 +32,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
23
32
|
*
|
|
24
33
|
* @element nldd-rich-text
|
|
25
34
|
*
|
|
35
|
+
* @attr {string} color - 'content' (the default) takes the system's own content
|
|
36
|
+
* colors, each element its own. 'inherit' lets all text follow the color of
|
|
37
|
+
* the surface instead (for colored areas such as the filled categories).
|
|
38
|
+
* Links stay underlined as an affordance; secondary text (figcaption) gets
|
|
39
|
+
* the same color at a lowered opacity. Known v1 gaps: inline code, mark,
|
|
40
|
+
* tables and hr keep their own surfaces.
|
|
26
41
|
* @attr {string} spacing - Spacing between elements: 'flat' | 'tight' | 'snug' (default) | 'loose'
|
|
27
42
|
* @attr {boolean} centered - Centers the main column inside the container; without it, content is left-aligned
|
|
43
|
+
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
28
44
|
* @attr {boolean} hyphens - Opt-in automatic hyphenation for running text (p,
|
|
29
45
|
* li, dd). Needs a correct `lang` on the page (`lang="nl"` on `<html>`, for
|
|
30
46
|
* instance): without language information the browser does not hyphenate. An
|
|
31
47
|
* `overflow-wrap: break-word` safety net on p/li is always on, independent of
|
|
32
48
|
* this attribute, so long URLs and compounds break neatly instead of
|
|
33
49
|
* overflowing even without a dictionary.
|
|
34
|
-
* @attr {string} color - 'content' (the default) takes the system's own content
|
|
35
|
-
* colors, each element its own. 'inherit' lets all text follow the color of
|
|
36
|
-
* the surface instead (for colored areas such as the filled categories).
|
|
37
|
-
* Links stay underlined as an affordance; secondary text (figcaption) gets
|
|
38
|
-
* the same color at a lowered opacity. Known v1 gaps: inline code, mark,
|
|
39
|
-
* tables and hr keep their own surfaces.
|
|
40
|
-
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
41
50
|
*/
|
|
42
51
|
import { LitElement } from 'lit';
|
|
43
52
|
import { customElement, property } from 'lit/decorators.js';
|
|
@@ -47,11 +56,11 @@ const MANAGED_LABEL_ATTR = 'data-nldd-managed-label';
|
|
|
47
56
|
let NLDDRichText = class NLDDRichText extends LitElement {
|
|
48
57
|
constructor() {
|
|
49
58
|
super(...arguments);
|
|
59
|
+
this.color = 'content';
|
|
50
60
|
this.spacing = 'snug';
|
|
51
61
|
this.centered = false;
|
|
52
|
-
this.hyphens = false;
|
|
53
|
-
this.color = 'content';
|
|
54
62
|
this.translations = {};
|
|
63
|
+
this.hyphens = false;
|
|
55
64
|
}
|
|
56
65
|
_t(key) {
|
|
57
66
|
return this.translations[key] ?? nlddRichTextTranslations[key];
|
|
@@ -111,21 +120,21 @@ let NLDDRichText = class NLDDRichText extends LitElement {
|
|
|
111
120
|
}
|
|
112
121
|
}
|
|
113
122
|
};
|
|
123
|
+
__decorate([
|
|
124
|
+
property({ reflect: true, converter: reflectNonDefault('content') })
|
|
125
|
+
], NLDDRichText.prototype, "color", void 0);
|
|
114
126
|
__decorate([
|
|
115
127
|
property({ reflect: true, converter: reflectNonDefault('snug') })
|
|
116
128
|
], NLDDRichText.prototype, "spacing", void 0);
|
|
117
129
|
__decorate([
|
|
118
130
|
property({ type: Boolean, reflect: true })
|
|
119
131
|
], NLDDRichText.prototype, "centered", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
property({ type: Boolean, reflect: true })
|
|
122
|
-
], NLDDRichText.prototype, "hyphens", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
property({ reflect: true, converter: reflectNonDefault('content') })
|
|
125
|
-
], NLDDRichText.prototype, "color", void 0);
|
|
126
132
|
__decorate([
|
|
127
133
|
property({ type: Object })
|
|
128
134
|
], NLDDRichText.prototype, "translations", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
property({ type: Boolean, reflect: true })
|
|
137
|
+
], NLDDRichText.prototype, "hyphens", void 0);
|
|
129
138
|
NLDDRichText = __decorate([
|
|
130
139
|
customElement('nldd-rich-text')
|
|
131
140
|
], NLDDRichText);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rich-text.js","sourceRoot":"","sources":["../../../../src/components/content/rich-text/rich-text.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"rich-text.js","sourceRoot":"","sources":["../../../../src/components/content/rich-text/rich-text.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAK/D,MAAM,kBAAkB,GAAG,yBAAyB,CAAC;AAG9C,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAEN,UAAK,GAA0B,SAAS,CAAC;QAGzC,YAAO,GAAY,MAAM,CAAC;QAG1B,aAAQ,GAAG,KAAK,CAAC;QAGjB,iBAAY,GAAsC,EAAE,CAAC;QAGrD,YAAO,GAAG,KAAK,CAAC;IAmEjB,CAAC;IAjEO,EAAE,CAAC,GAAmC;QAC5C,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,wBAAwB,CAAC,GAAG,CAAC,CAAC;IAChE,CAAC;IAKQ,gBAAgB;QACxB,OAAO,IAAI,CAAC;IACb,CAAC;IAEQ,iBAAiB;QACzB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B;;;;;8EAKsE;QACtE,IAAI,CAAC,eAAe,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QACpE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC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BAAkB,EAAE,EAAE,CAAC,CAAC;oBAC5C,CAAC;gBACF,CAAC;YACF,CAAC;iBAAM,IAAI,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,GAAG,EAAE,CAAC;gBACnD,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;gBAClC,IAAI,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,EAAE,CAAC;oBAC5C,KAAK,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;oBACpC,KAAK,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC;gBAC3C,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;CACD,CAAA;AA/EA;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAwB,SAAS,CAAC,EAAE,CAAC;2CACnD;AAGzC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAU,MAAM,CAAC,EAAE,CAAC;6CACjD;AAG1B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAC0B;AAGrD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAC3B;AAdJ,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CAiFxB"}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* click it, it is `nldd-token`.
|
|
11
11
|
*
|
|
12
12
|
* @element nldd-tag
|
|
13
|
+
* @attr {string} variant - What is visible: 'text' | 'icon' | 'icon-and-text'. Unset → detected from which of text/icon is present.
|
|
13
14
|
* @attr {string} color - Color variant. Semantic: 'neutral' | 'accent' | 'success' | 'warning' | 'critical'. Rijkshuisstijl colors: 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen'. (default: 'neutral')
|
|
14
15
|
* @attr {string} size - Tag size: 'sm' | 'md' (default: 'md')
|
|
15
16
|
* @attr {string} text - Tag text (alternative to the default slot)
|
|
16
17
|
* @attr {string} icon - Icon before the text
|
|
17
|
-
* @attr {string} variant - What is visible: 'text' | 'icon' | 'icon-and-text'. Unset → detected from which of text/icon is present.
|
|
18
18
|
* @attr {string} accessible-label - Accessible label for screen readers. Use this on icon-only tags without visible text.
|
|
19
19
|
*
|
|
20
20
|
* @slot - Tag text
|
|
@@ -27,11 +27,11 @@ type Size = 'sm' | 'md';
|
|
|
27
27
|
type Variant = 'text' | 'icon' | 'icon-and-text';
|
|
28
28
|
export declare class NLDDTag extends LitElement {
|
|
29
29
|
static styles: import("lit").CSSResult;
|
|
30
|
+
variant: Variant | '';
|
|
30
31
|
color: Color;
|
|
31
32
|
size: Size;
|
|
32
33
|
text: string;
|
|
33
34
|
icon: string;
|
|
34
|
-
variant: Variant | '';
|
|
35
35
|
accessibleLabel: string;
|
|
36
36
|
_hasSlotText: boolean;
|
|
37
37
|
_hasSlotIcon: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,OAAO,mBAAmB,CAAC;AAE3B,KAAK,KAAK,GAEP,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,UAAU,GAEV,WAAW,GACX,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,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Y,UAAS;IAErB,OAAO,CAAC,cAAc,CAAC,CAAmB;IAE1C,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,iBAAiB,IAAI,OAAO,CAK/B;IAEQ,iBAAiB;IAajB,oBAAoB;IAM7B,OAAO,CAAC,gBAAgB;IAgBf,OAAO;IASP,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,OAAO,CAAC;KACpB;CACD"}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* click it, it is `nldd-token`.
|
|
11
11
|
*
|
|
12
12
|
* @element nldd-tag
|
|
13
|
+
* @attr {string} variant - What is visible: 'text' | 'icon' | 'icon-and-text'. Unset → detected from which of text/icon is present.
|
|
13
14
|
* @attr {string} color - Color variant. Semantic: 'neutral' | 'accent' | 'success' | 'warning' | 'critical'. Rijkshuisstijl colors: 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen'. (default: 'neutral')
|
|
14
15
|
* @attr {string} size - Tag size: 'sm' | 'md' (default: 'md')
|
|
15
16
|
* @attr {string} text - Tag text (alternative to the default slot)
|
|
16
17
|
* @attr {string} icon - Icon before the text
|
|
17
|
-
* @attr {string} variant - What is visible: 'text' | 'icon' | 'icon-and-text'. Unset → detected from which of text/icon is present.
|
|
18
18
|
* @attr {string} accessible-label - Accessible label for screen readers. Use this on icon-only tags without visible text.
|
|
19
19
|
*
|
|
20
20
|
* @slot - Tag text
|
|
@@ -35,11 +35,11 @@ import './../icon/icon.js';
|
|
|
35
35
|
let NLDDTag = class NLDDTag extends LitElement {
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments);
|
|
38
|
+
this.variant = '';
|
|
38
39
|
this.color = 'neutral';
|
|
39
40
|
this.size = 'md';
|
|
40
41
|
this.text = '';
|
|
41
42
|
this.icon = '';
|
|
42
|
-
this.variant = '';
|
|
43
43
|
this.accessibleLabel = '';
|
|
44
44
|
this._hasSlotText = false;
|
|
45
45
|
this._hasSlotIcon = false;
|
|
@@ -108,6 +108,9 @@ let NLDDTag = class NLDDTag extends LitElement {
|
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
NLDDTag.styles = tagStyles;
|
|
111
|
+
__decorate([
|
|
112
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
113
|
+
], NLDDTag.prototype, "variant", void 0);
|
|
111
114
|
__decorate([
|
|
112
115
|
property({ reflect: true, converter: reflectNonDefault('neutral') })
|
|
113
116
|
], NLDDTag.prototype, "color", void 0);
|
|
@@ -120,9 +123,6 @@ __decorate([
|
|
|
120
123
|
__decorate([
|
|
121
124
|
property({ type: String })
|
|
122
125
|
], NLDDTag.prototype, "icon", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
property({ reflect: true, converter: reflectNonDefault('') })
|
|
125
|
-
], NLDDTag.prototype, "variant", void 0);
|
|
126
126
|
__decorate([
|
|
127
127
|
property({ type: String, attribute: 'accessible-label' })
|
|
128
128
|
], NLDDTag.prototype, "accessibleLabel", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAA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AAE,kBAAkB,EAAE,CAAC;gDACrC;AAGrB;IADC,KAAK,EAAE;6CACa;AAGrB;IADC,KAAK,EAAE;6CACa;AAzBT,OAAO;IADnB,aAAa,CAAC,UAAU,CAAC;GACb,OAAO,CA2FnB"}
|
|
@@ -17,8 +17,8 @@ export function template(component) {
|
|
|
17
17
|
${showIcon ? html `
|
|
18
18
|
<span class="tag__icon">
|
|
19
19
|
${component.icon
|
|
20
|
-
? html `<nldd-icon
|
|
21
|
-
: html `<slot name="icon">${variant === 'icon' ? html `<nldd-icon
|
|
20
|
+
? html `<nldd-icon icon=${component.icon}></nldd-icon>`
|
|
21
|
+
: html `<slot name="icon">${variant === 'icon' ? html `<nldd-icon icon="icon-placeholder"></nldd-icon>` : nothing}</slot>`}
|
|
22
22
|
</span>
|
|
23
23
|
` : nothing}
|
|
24
24
|
${showText ? html `
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Nederlandse Digitale Dienst Title Bar Component (Lit + TypeScript)
|
|
3
3
|
*
|
|
4
|
-
* A title bar with an optional overline, title, and
|
|
5
|
-
* slot at the end of the title line on the right.
|
|
4
|
+
* A title bar with an optional overline, title, and supporting text on the left,
|
|
5
|
+
* and a slot at the end of the title line on the right.
|
|
6
|
+
*
|
|
7
|
+
* The title comes from `text`, with `heading-level` for its place in the
|
|
8
|
+
* heading structure. `size` is how it looks, `heading-level` what it is, and
|
|
9
|
+
* the two are set apart. `overline` and `supporting-text` go above and below
|
|
10
|
+
* it. Each of the three has a slot in the same place for content that is more
|
|
11
|
+
* than text, and a filled slot takes the place of the attribute.
|
|
6
12
|
*
|
|
7
13
|
* @element nldd-title
|
|
8
14
|
*
|
|
@@ -10,20 +16,38 @@
|
|
|
10
16
|
* @attr {string} color - 'content' (the default) takes the system's own content
|
|
11
17
|
* colors. 'inherit' lets the title follow the text color of the surface
|
|
12
18
|
* instead (for colored areas such as the filled categories); overline and
|
|
13
|
-
*
|
|
19
|
+
* supporting-text get the same color at a lowered opacity.
|
|
20
|
+
* @attr {string} text - Title text. Content in the default slot takes its place.
|
|
21
|
+
* @attr {string} supporting-text - Text below the title. Content in the supporting-text slot takes its place.
|
|
22
|
+
* @attr {string} overline - Text above the title. Content in the overline slot takes its place.
|
|
23
|
+
* @attr {1|2|3|4|5|6} heading-level - Renders text as h1–h6; absent renders a p, for a title that is not a heading.
|
|
14
24
|
*
|
|
15
|
-
* @slot overline -
|
|
16
|
-
* @slot - Title text
|
|
17
|
-
* @slot
|
|
25
|
+
* @slot overline - Overline that is more than text. Takes the place of the overline attribute.
|
|
26
|
+
* @slot - Title that is more than text, such as a link. Takes the place of text, and brings its own h1–h6 for semantics.
|
|
27
|
+
* @slot supporting-text - Supporting text that is more than text. Takes the place of the supporting-text attribute.
|
|
18
28
|
* @slot end - Whatever belongs at the end of the title line: a button, a menu, a status badge, a version. Named for the position, not for a kind of content, because anything can sit there.
|
|
19
29
|
*/
|
|
20
30
|
import { LitElement } from 'lit';
|
|
21
31
|
type Size = 1 | 2 | 3 | 4 | 5 | 6;
|
|
22
32
|
type TitleColor = 'content' | 'inherit';
|
|
33
|
+
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
23
34
|
export declare class NLDDTitle extends LitElement {
|
|
24
35
|
static styles: import("lit").CSSResult;
|
|
25
36
|
size: Size;
|
|
26
37
|
color: TitleColor;
|
|
38
|
+
text: string;
|
|
39
|
+
supportingText: string;
|
|
40
|
+
overline: string;
|
|
41
|
+
headingLevel: HeadingLevel | null;
|
|
42
|
+
/** @internal */
|
|
43
|
+
_hasOverlineSlotted: boolean;
|
|
44
|
+
/** @internal */
|
|
45
|
+
_hasDefaultSlotted: boolean;
|
|
46
|
+
/** @internal */
|
|
47
|
+
_hasSupportingTextSlotted: boolean;
|
|
48
|
+
/** @internal */
|
|
49
|
+
_onSlotChange: (e: Event) => void;
|
|
50
|
+
firstUpdated(): void;
|
|
27
51
|
render(): import("lit-html").TemplateResult;
|
|
28
52
|
}
|
|
29
53
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,KAAK,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAClC,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AACxC,KAAK,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAK1C,qBACa,SAAU,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAAe;IAGrC,IAAI,EAAE,IAAI,CAAK;IAGf,KAAK,EAAE,UAAU,CAAa;IAG9B,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,QAAQ,SAAM;IAGd,YAAY,EAAE,YAAY,GAAG,IAAI,CAAQ;IAEzC,gBAAgB;IACP,mBAAmB,UAAS;IACrC,gBAAgB;IACP,kBAAkB,UAAS;IACpC,gBAAgB;IACP,yBAAyB,UAAS;IAE3C,gBAAgB;IAChB,aAAa,GAAI,GAAG,KAAK,KAAG,IAAI,CAS9B;IAEO,YAAY,IAAI,IAAI;IASpB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;KACxB;CACD"}
|
|
@@ -7,8 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
/**
|
|
8
8
|
* Nederlandse Digitale Dienst Title Bar Component (Lit + TypeScript)
|
|
9
9
|
*
|
|
10
|
-
* A title bar with an optional overline, title, and
|
|
11
|
-
* slot at the end of the title line on the right.
|
|
10
|
+
* A title bar with an optional overline, title, and supporting text on the left,
|
|
11
|
+
* and a slot at the end of the title line on the right.
|
|
12
|
+
*
|
|
13
|
+
* The title comes from `text`, with `heading-level` for its place in the
|
|
14
|
+
* heading structure. `size` is how it looks, `heading-level` what it is, and
|
|
15
|
+
* the two are set apart. `overline` and `supporting-text` go above and below
|
|
16
|
+
* it. Each of the three has a slot in the same place for content that is more
|
|
17
|
+
* than text, and a filled slot takes the place of the attribute.
|
|
12
18
|
*
|
|
13
19
|
* @element nldd-title
|
|
14
20
|
*
|
|
@@ -16,26 +22,63 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
16
22
|
* @attr {string} color - 'content' (the default) takes the system's own content
|
|
17
23
|
* colors. 'inherit' lets the title follow the text color of the surface
|
|
18
24
|
* instead (for colored areas such as the filled categories); overline and
|
|
19
|
-
*
|
|
25
|
+
* supporting-text get the same color at a lowered opacity.
|
|
26
|
+
* @attr {string} text - Title text. Content in the default slot takes its place.
|
|
27
|
+
* @attr {string} supporting-text - Text below the title. Content in the supporting-text slot takes its place.
|
|
28
|
+
* @attr {string} overline - Text above the title. Content in the overline slot takes its place.
|
|
29
|
+
* @attr {1|2|3|4|5|6} heading-level - Renders text as h1–h6; absent renders a p, for a title that is not a heading.
|
|
20
30
|
*
|
|
21
|
-
* @slot overline -
|
|
22
|
-
* @slot - Title text
|
|
23
|
-
* @slot
|
|
31
|
+
* @slot overline - Overline that is more than text. Takes the place of the overline attribute.
|
|
32
|
+
* @slot - Title that is more than text, such as a link. Takes the place of text, and brings its own h1–h6 for semantics.
|
|
33
|
+
* @slot supporting-text - Supporting text that is more than text. Takes the place of the supporting-text attribute.
|
|
24
34
|
* @slot end - Whatever belongs at the end of the title line: a button, a menu, a status badge, a version. Named for the position, not for a kind of content, because anything can sit there.
|
|
25
35
|
*/
|
|
26
36
|
import { LitElement } from 'lit';
|
|
27
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
37
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
28
38
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
29
39
|
import { titleStyles } from './title.styles.js';
|
|
30
40
|
import { titleTemplate } from './title.template.js';
|
|
41
|
+
/** One warning per page: a missed rename is one search-and-replace, not one per title. */
|
|
42
|
+
let warnedAboutSubtitle = false;
|
|
31
43
|
let NLDDTitle = class NLDDTitle extends LitElement {
|
|
32
44
|
constructor() {
|
|
33
45
|
super(...arguments);
|
|
34
46
|
this.size = 3;
|
|
35
47
|
this.color = 'content';
|
|
48
|
+
this.text = '';
|
|
49
|
+
this.supportingText = '';
|
|
50
|
+
this.overline = '';
|
|
51
|
+
this.headingLevel = null;
|
|
52
|
+
/** @internal */
|
|
53
|
+
this._hasOverlineSlotted = false;
|
|
54
|
+
/** @internal */
|
|
55
|
+
this._hasDefaultSlotted = false;
|
|
56
|
+
/** @internal */
|
|
57
|
+
this._hasSupportingTextSlotted = false;
|
|
58
|
+
/** @internal */
|
|
59
|
+
this._onSlotChange = (e) => {
|
|
60
|
+
const slot = e.target;
|
|
61
|
+
// Whitespace between the tags is not content: without this check the text
|
|
62
|
+
// would vanish behind a slot that only holds a newline.
|
|
63
|
+
const hasContent = slot.assignedNodes().some((node) => node.nodeType === Node.ELEMENT_NODE || (node.textContent ?? '').trim().length > 0);
|
|
64
|
+
if (slot.name === 'overline')
|
|
65
|
+
this._hasOverlineSlotted = hasContent;
|
|
66
|
+
else if (slot.name === 'supporting-text')
|
|
67
|
+
this._hasSupportingTextSlotted = hasContent;
|
|
68
|
+
else
|
|
69
|
+
this._hasDefaultSlotted = hasContent;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
firstUpdated() {
|
|
73
|
+
// The subtitle slot was renamed to supporting-text. Content in a slot that
|
|
74
|
+
// no longer exists is not rendered and reports nothing, so say it here.
|
|
75
|
+
if (import.meta.env?.DEV && !warnedAboutSubtitle && this.querySelector(':scope > [slot="subtitle"]')) {
|
|
76
|
+
warnedAboutSubtitle = true;
|
|
77
|
+
console.warn('NLDDTitle: the subtitle slot is now supporting-text. Rename slot="subtitle" to slot="supporting-text", or use the supporting-text attribute, here and on every other nldd-title.');
|
|
78
|
+
}
|
|
36
79
|
}
|
|
37
80
|
render() {
|
|
38
|
-
return titleTemplate();
|
|
81
|
+
return titleTemplate(this);
|
|
39
82
|
}
|
|
40
83
|
};
|
|
41
84
|
NLDDTitle.styles = titleStyles;
|
|
@@ -45,6 +88,27 @@ __decorate([
|
|
|
45
88
|
__decorate([
|
|
46
89
|
property({ reflect: true, converter: reflectNonDefault('content') })
|
|
47
90
|
], NLDDTitle.prototype, "color", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
93
|
+
], NLDDTitle.prototype, "text", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
property({ reflect: true, attribute: 'supporting-text', converter: reflectNonDefault('') })
|
|
96
|
+
], NLDDTitle.prototype, "supportingText", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
99
|
+
], NLDDTitle.prototype, "overline", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
property({ type: Number, reflect: true, attribute: 'heading-level' })
|
|
102
|
+
], NLDDTitle.prototype, "headingLevel", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
state()
|
|
105
|
+
], NLDDTitle.prototype, "_hasOverlineSlotted", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
state()
|
|
108
|
+
], NLDDTitle.prototype, "_hasDefaultSlotted", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
state()
|
|
111
|
+
], NLDDTitle.prototype, "_hasSupportingTextSlotted", void 0);
|
|
48
112
|
NLDDTitle = __decorate([
|
|
49
113
|
customElement('nldd-title')
|
|
50
114
|
], NLDDTitle);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"title.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMpD,0FAA0F;AAC1F,IAAI,mBAAmB,GAAG,KAAK,CAAC;AAGzB,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QAIN,SAAI,GAAS,CAAC,CAAC;QAGf,UAAK,GAAe,SAAS,CAAC;QAG9B,SAAI,GAAG,EAAE,CAAC;QAGV,mBAAc,GAAG,EAAE,CAAC;QAGpB,aAAQ,GAAG,EAAE,CAAC;QAGd,iBAAY,GAAwB,IAAI,CAAC;QAEzC,gBAAgB;QACP,wBAAmB,GAAG,KAAK,CAAC;QACrC,gBAAgB;QACP,uBAAkB,GAAG,KAAK,CAAC;QACpC,gBAAgB;QACP,8BAAyB,GAAG,KAAK,CAAC;QAE3C,gBAAgB;QAChB,kBAAa,GAAG,CAAC,CAAQ,EAAQ,EAAE;YAClC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAyB,CAAC;YACzC,0EAA0E;YAC1E,wDAAwD;YACxD,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACrD,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,EAA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E,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;2CACxD;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;+CAC7B;AAGhC;IAAR,KAAK,EAAE;sDAA6B;AAE5B;IAAR,KAAK,EAAE;qDAA4B;AAE3B;IAAR,KAAK,EAAE;4DAAmC;AA1B/B,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CAoDrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"title.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,yBA4RvB,CAAC"}
|
|
@@ -199,6 +199,13 @@ export const titleStyles = css `
|
|
|
199
199
|
flex-basis: 0;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
.title__overline {
|
|
203
|
+
margin: 0;
|
|
204
|
+
color: var(--semantics-content-secondary-color);
|
|
205
|
+
font: var(--primitives-font-body-sm-regular-tight);
|
|
206
|
+
overflow-wrap: anywhere;
|
|
207
|
+
}
|
|
208
|
+
|
|
202
209
|
::slotted([slot="overline"]) {
|
|
203
210
|
${slottedReset}
|
|
204
211
|
${inheritedTextReset}
|
|
@@ -210,6 +217,15 @@ export const titleStyles = css `
|
|
|
210
217
|
|
|
211
218
|
/* The measure is in ch, so one value covers every size: ch scales with the
|
|
212
219
|
font, and 40 characters stays 40 characters at 18px and at 52px. */
|
|
220
|
+
.title__text {
|
|
221
|
+
margin: 0;
|
|
222
|
+
max-width: 40ch;
|
|
223
|
+
color: var(--semantics-content-color);
|
|
224
|
+
font: var(--_font);
|
|
225
|
+
overflow-wrap: anywhere;
|
|
226
|
+
text-wrap: balance;
|
|
227
|
+
}
|
|
228
|
+
|
|
213
229
|
::slotted(:not([slot])) {
|
|
214
230
|
${slottedReset}
|
|
215
231
|
${inheritedTextReset}
|
|
@@ -221,7 +237,14 @@ export const titleStyles = css `
|
|
|
221
237
|
text-wrap: balance !important;
|
|
222
238
|
}
|
|
223
239
|
|
|
224
|
-
|
|
240
|
+
.title__supporting-text {
|
|
241
|
+
margin: 0;
|
|
242
|
+
color: var(--semantics-content-secondary-color);
|
|
243
|
+
font: var(--primitives-font-body-md-regular-tight);
|
|
244
|
+
overflow-wrap: anywhere;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
::slotted([slot="supporting-text"]) {
|
|
225
248
|
${slottedReset}
|
|
226
249
|
${inheritedTextReset}
|
|
227
250
|
margin: 0 !important;
|
|
@@ -230,11 +253,25 @@ export const titleStyles = css `
|
|
|
230
253
|
overflow-wrap: anywhere !important;
|
|
231
254
|
}
|
|
232
255
|
|
|
233
|
-
:host([size="5"])
|
|
234
|
-
:host([size="6"])
|
|
256
|
+
:host([size="5"]) .title__supporting-text,
|
|
257
|
+
:host([size="6"]) .title__supporting-text {
|
|
258
|
+
font: var(--primitives-font-body-sm-regular-tight);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
:host([size="5"]) ::slotted([slot="supporting-text"]),
|
|
262
|
+
:host([size="6"]) ::slotted([slot="supporting-text"]) {
|
|
235
263
|
font: var(--primitives-font-body-sm-regular-tight) !important;
|
|
236
264
|
}
|
|
237
265
|
|
|
266
|
+
:host([color="inherit"]) .title__text {
|
|
267
|
+
color: inherit;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
:host([color="inherit"]) .title__overline,
|
|
271
|
+
:host([color="inherit"]) .title__supporting-text {
|
|
272
|
+
color: color-mix(in oklab, currentColor var(--semantics-content-secondary-opacity), transparent);
|
|
273
|
+
}
|
|
274
|
+
|
|
238
275
|
/* !important matches the hardened slotted rules above. */
|
|
239
276
|
|
|
240
277
|
:host([color="inherit"]) ::slotted(:not([slot])) {
|
|
@@ -242,7 +279,7 @@ export const titleStyles = css `
|
|
|
242
279
|
}
|
|
243
280
|
|
|
244
281
|
:host([color="inherit"]) ::slotted([slot="overline"]),
|
|
245
|
-
:host([color="inherit"]) ::slotted([slot="
|
|
282
|
+
:host([color="inherit"]) ::slotted([slot="supporting-text"]) {
|
|
246
283
|
color: color-mix(in oklab, currentColor var(--semantics-content-secondary-opacity), transparent) !important;
|
|
247
284
|
}
|
|
248
285
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.styles.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE3F,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;uBASP,KAAK;;;;uBAIL,KAAK,qBAAqB,KAAK;;;;uBAI/B,KAAK;;;;4CAIgB,KAAK;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;IAI7C,kBAAkB;;;;;uBAKC,KAAK;;;;uBAIL,KAAK,qBAAqB,KAAK;;;;uBAI/B,KAAK;;;;4CAIgB,KAAK;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;;;uBAM1B,KAAK;;;;uBA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B,KAAK;;;;IAI7C,kBAAkB;;;;;uBAKC,KAAK;;;;uBAIL,KAAK,qBAAqB,KAAK;;;;uBAI/B,KAAK;;;;4CAIgB,KAAK;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;;;uBAM1B,KAAK;;;;uBAIL,KAAK,qBAAqB,KAAK;;;;uBAI/B,KAAK;;;;4CAIgB,KAAK;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;;;uBAM1B,KAAK;;;;uBAIL,KAAK,qBAAqB,KAAK;;;;uBAI/B,KAAK;;;;4CAIgB,KAAK;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;;;uBAM1B,KAAK;;;;uBAIL,KAAK,qBAAqB,KAAK;;;;uBAI/B,KAAK;;;;4CAIgB,KAAK;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;;;uBAM1B,KAAK;;;;uBAIL,KAAK,qBAAqB,KAAK;;;;uBAI/B,KAAK;;;;4CAIgB,KAAK;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwC7C,YAAY;IACZ,kBAAkB;;;;;;;;;;;;;;;;;;;IAmBlB,YAAY;IACZ,kBAAkB;;;;;;;;;;;;;;;;;IAiBlB,YAAY;IACZ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.template.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"title.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB5C,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,cAAc,CAsBlE"}
|