@nldd/design-system 0.25.0 → 0.25.1
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/custom-elements.json +381 -5
- package/dist/cdn/autoloader.js +140 -137
- package/dist/cdn/chunks/accordion-B7KdKJno.js +90 -0
- package/dist/cdn/chunks/accordion-item-CVy8Apta.js +242 -0
- package/dist/cdn/chunks/{activity-indicator-Dc6c9HtC.js → activity-indicator-CpJVlX6K.js} +5 -5
- package/dist/cdn/chunks/admonition-C89WHJ9a.js +379 -0
- package/dist/cdn/chunks/{avatar-CHXRpWWk.js → avatar-Bf0OfAtQ.js} +6 -6
- package/dist/cdn/chunks/{avatar-group-B76E8oC6.js → avatar-group-BeBAv2wB.js} +15 -15
- package/dist/cdn/chunks/{badge-tO7gHhdi.js → badge-C43FvgkK.js} +5 -5
- package/dist/cdn/chunks/{banner-D4kFQYXF.js → banner-OWK0gwFb.js} +33 -32
- package/dist/cdn/chunks/{bar-split-view-C9bYdWSR.js → bar-split-view-Dj1WycIW.js} +5 -5
- package/dist/cdn/chunks/{blockquote-DRJajjBB.js → blockquote-D_5MxcSi.js} +3 -3
- package/dist/cdn/chunks/{box-D10mS19t.js → box-BUoxiA7b.js} +10 -10
- package/dist/cdn/chunks/{breadcrumbs-BUdQJG3z.js → breadcrumbs-DXxJTACL.js} +5 -5
- package/dist/cdn/chunks/{button-CwY9fWCg.js → button-DpKyquzm.js} +8 -8
- package/dist/cdn/chunks/{button-bar-DkqbRvff.js → button-bar-BSt-QQRG.js} +3 -3
- package/dist/cdn/chunks/{button-group-p364JgTR.js → button-group-D5QJWJzh.js} +2 -2
- package/dist/cdn/chunks/{card-B7TaSaw7.js → card-Cz4f-dCf.js} +4 -4
- package/dist/cdn/chunks/{cell-BTIpXf1T.js → cell-zFw2V9wD.js} +6 -6
- package/dist/cdn/chunks/{checkbox-BLEK0rAV.js → checkbox-BDp3O8Nc.js} +4 -4
- package/dist/cdn/chunks/{checkbox-field-CDtlpN-u.js → checkbox-field-CSXV0prA.js} +5 -5
- package/dist/cdn/chunks/{class-map-5WYS_nCb.js → class-map-C7ao595e.js} +1 -1
- package/dist/cdn/chunks/{code-editor-CanGMLIo.js → code-editor-Chm9EG_v.js} +5 -5
- package/dist/cdn/chunks/{code-viewer-DCZ3wjMd.js → code-viewer-DX322d7w.js} +102 -87
- package/dist/cdn/chunks/{codemirror-input-CtvDBy25.js → codemirror-input-BLMJQbHq.js} +4 -4
- package/dist/cdn/chunks/{collection-D8K79X0H.js → collection-Bf8HoSki.js} +8 -8
- package/dist/cdn/chunks/{combo-box-BeWoeEY8.js → combo-box-VuU_F54v.js} +8 -8
- package/dist/cdn/chunks/{container-Be2J-GhB.js → container-qVTgmbpz.js} +2 -2
- package/dist/cdn/chunks/css-time-DmkAFd1y.js +8 -0
- package/dist/cdn/chunks/{custom-element-DGlHv_OV.js → custom-element-C5yyaCZS.js} +1 -1
- package/dist/cdn/chunks/{date-field-BLaGVd4x.js → date-field-By9Q8151.js} +99 -87
- package/dist/cdn/chunks/{date-picker-C4mLZKWF.js → date-picker-DtA4PXCh.js} +10 -10
- package/dist/cdn/chunks/{decorate-Czy-wI4F.js → decorate-CkbtFnic.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-fLi4Nmt7.js → described-by-mixin-DXC6jkCd.js} +2 -2
- package/dist/cdn/chunks/{description-cell-aQyLX0U0.js → description-cell-D2INE8A3.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-qTR6tciJ.js → dev-checks-UHHli7gE.js} +33 -1
- package/dist/cdn/chunks/{dist-fDpuYq7K.js → dist-B1pwN_VD.js} +1 -1
- package/dist/cdn/chunks/{dist-p1FcXq9E.js → dist-BG0xnVUi.js} +3 -3
- package/dist/cdn/chunks/{dist-CdF0c6UD.js → dist-BzfFo9Yu.js} +2 -2
- package/dist/cdn/chunks/{dist-DHK9tNd7.js → dist-C-T4uKP1.js} +1 -1
- package/dist/cdn/chunks/{dist-WQv_JUmB.js → dist-Ce38ZA7b.js} +2 -2
- package/dist/cdn/chunks/{dist-BNS6C8sP.js → dist-Cm51DQO4.js} +2 -2
- package/dist/cdn/chunks/{dist-CX0g6sV1.js → dist-Dg3ySzj7.js} +3 -3
- package/dist/cdn/chunks/{dist-_QFa91Kz.js → dist-VXOtAJ-m.js} +1 -1
- package/dist/cdn/chunks/{dist-B_fXtXqM.js → dist-pCih3zzc.js} +1 -1
- package/dist/cdn/chunks/{dist-CZOXq9aZ.js → dist-qo8avphr.js} +1 -1
- package/dist/cdn/chunks/{dist-BLnIbkqH.js → dist-zxb4QZZG.js} +1 -1
- package/dist/cdn/chunks/{divider-2hHcSIga.js → divider-Cv_vyHvw.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-CIWiZUB5.js → document-tab-bar-CdOxr8KC.js} +51 -50
- package/dist/cdn/chunks/{dropdown-Bwn6dQrK.js → dropdown-DC9J6k0P.js} +5 -5
- package/dist/cdn/chunks/{file-field-CtQ6Fzkj.js → file-field-CsrTk4uk.js} +12 -12
- package/dist/cdn/chunks/{floating-ui.dom-B8J1rV2c.js → floating-ui.dom-BvAAdCVe.js} +260 -184
- package/dist/cdn/chunks/{form-vSM2SOrK.js → form-ClOD1OKh.js} +1 -1
- package/dist/cdn/chunks/{form-actions-DSL0qce-.js → form-actions-CwaXGj43.js} +2 -2
- package/dist/cdn/chunks/{form-field--t3Bz1pc.js → form-field-LoX9v2Pa.js} +5 -5
- package/dist/cdn/chunks/{form-section-D1n8Sdmt.js → form-section-i6piyKuy.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-w2pDVC5v.js → full-bleed-section-6aAfCnez.js} +3 -3
- package/dist/cdn/chunks/{hero-BypUmnRi.js → hero-CTQAayXT.js} +4 -4
- package/dist/cdn/chunks/{icon-BydOAoVO.js → icon-B5kHyCz2.js} +2 -2
- package/dist/cdn/chunks/{icon-button-C_MZ-jXt.js → icon-button-DuEiOOoc.js} +9 -9
- package/dist/cdn/chunks/{icon-cell-jiYNsV84.js → icon-cell-uZkR3hZx.js} +5 -5
- package/dist/cdn/chunks/{identity-D1Sw6OdG.js → identity-DR6DMjke.js} +6 -6
- package/dist/cdn/chunks/{if-defined-pKQLIQvK.js → if-defined-B7fJBsUt.js} +1 -1
- package/dist/cdn/chunks/{image-DEI0hogS.js → image-CuBUo_MQ.js} +8 -8
- package/dist/cdn/chunks/{inline-dialog-CTjJ8Tl_.js → inline-dialog-CZNkWJIA.js} +6 -6
- package/dist/cdn/chunks/{just-in-time-education-pUUxdKPR.js → just-in-time-education-qwg9hTDX.js} +8 -8
- package/dist/cdn/chunks/{kanban-KSLBcCb4.js → kanban-Bkg-nZmX.js} +5 -5
- package/dist/cdn/chunks/{kanban-column-RNSdiBIT.js → kanban-column-C8iRyRNY.js} +4 -4
- package/dist/cdn/chunks/{keyboard-shortcut-D9TYAQu1.js → keyboard-shortcut-Rq5IHU-e.js} +3 -3
- package/dist/cdn/chunks/{languages-DGZO3jTf.js → languages-DLHsACpp.js} +12 -12
- package/dist/cdn/chunks/{link-C4K1qVcb.js → link-CgjFwaHP.js} +6 -6
- package/dist/cdn/chunks/{link-group-BEYO7nTK.js → link-group-5W0GAmTq.js} +2 -2
- package/dist/cdn/chunks/{list-rMBdnf1f.js → list-BASqIKtP.js} +8 -8
- package/dist/cdn/chunks/{list-item-CotWNKc1.js → list-item-DTcPysIP.js} +5 -5
- package/dist/cdn/chunks/{list-item-segment-C-yl2GAS.js → list-item-segment-CRw0y4kg.js} +3 -3
- package/dist/cdn/chunks/{menu-rE6tDSAy.js → menu-CYILGTpB.js} +31 -29
- package/dist/cdn/chunks/{menu-bar-D9IxDwC2.js → menu-bar-CL566HmJ.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-item-768OWJdt.js → menu-bar-item-C6OrUu_4.js} +6 -6
- package/dist/cdn/chunks/{menu-divider-BHAGnkBl.js → menu-divider-BtU9eBSb.js} +3 -3
- package/dist/cdn/chunks/{menu-group-B5MAz_Yk.js → menu-group-r2TvdqJB.js} +4 -4
- package/dist/cdn/chunks/{menu-item-Ba581zRi.js → menu-item-CS45jTLu.js} +4 -4
- package/dist/cdn/chunks/{menu.template-Eb7J7UrL.js → menu.template-CF8Iau1s.js} +4 -4
- package/dist/cdn/chunks/{modal-dialog-Djln8pr7.js → modal-dialog-C9NBq8TO.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-Omt0oidK.js → multi-line-text-field-BkxV0vqA.js} +5 -5
- package/dist/cdn/chunks/{navigation-split-view-DDng9DdF.js → navigation-split-view-DNrQYkg7.js} +4 -4
- package/dist/cdn/chunks/{nl.generated-CgRVSEh6.js → nl.generated-BDowZkhc.js} +1 -1
- package/dist/cdn/chunks/{notification-DB6JOmCC.js → notification-Dzpy9hCc.js} +6 -6
- package/dist/cdn/chunks/{number-field-xgr4dysX.js → number-field-BJCUe-bI.js} +7 -7
- package/dist/cdn/chunks/{one-half-one-half-section-CFhmSDDa.js → one-half-one-half-section-Ctw8ri5v.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-D0JV0GJ_.js → one-third-two-thirds-section-DxUUH8lS.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-CqgKQqdE.js → one-time-code-field-DGDyqIMd.js} +6 -6
- package/dist/cdn/chunks/{page-DXWHG-hD.js → page-BpavFPML.js} +4 -4
- package/dist/cdn/chunks/{page-footer-GexGY_m-.js → page-footer-CVqmyulx.js} +4 -4
- package/dist/cdn/chunks/{page-section-mixin-CtiPKCqL.js → page-section-mixin-BHg-Wre9.js} +3 -3
- package/dist/cdn/chunks/{pagination-DJkfE8t9.js → pagination-BGZYq-eO.js} +6 -6
- package/dist/cdn/chunks/{password-field-gKiiE_5e.js → password-field-BIFfLAls.js} +7 -7
- package/dist/cdn/chunks/{popover-C-jxcCHx.js → popover-TCW20ibN.js} +8 -8
- package/dist/cdn/chunks/{progress-bar-CBWQRWkE.js → progress-bar-C4bLuJBa.js} +7 -7
- package/dist/cdn/chunks/{progress-circle-CCcRDOOJ.js → progress-circle-BePtt89f.js} +7 -7
- package/dist/cdn/chunks/{radio-button-B8xwJO3_.js → radio-button-CLiuwjA1.js} +3 -3
- package/dist/cdn/chunks/{radio-button-field-B9lRNOXJ.js → radio-button-field-BPva1mUv.js} +5 -5
- package/dist/cdn/chunks/{radio-button-group-Cy7Ya28w.js → radio-button-group-Z5s4obz6.js} +3 -3
- package/dist/cdn/chunks/{render-marked-DjXBoUGY.js → render-marked-C3ypoEZM.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-B6V85qYk.js → reorder-handle-cell-BB9b4T_d.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-DTmEmT-V.js → reorder-handle-mixin-DBjNe6Rl.js} +2 -2
- package/dist/cdn/chunks/{repeat-Ck8L8Iy9.js → repeat-s95Ixbpx.js} +1 -1
- package/dist/cdn/chunks/{rich-text-CqQeOXwL.js → rich-text-DTxHo8E_.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-XRu3gHMf.js → row-header-mixin-BcwoEgu7.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-e6d1wo3D.js → scroll-fade-Dul0IfE1.js} +2 -2
- package/dist/cdn/chunks/{search-field-Cz7Ucf6x.js → search-field-BeZN7S8J.js} +9 -9
- package/dist/cdn/chunks/{segmented-control-CLzKU4SX.js → segmented-control-Dzu8xoqB.js} +6 -6
- package/dist/cdn/chunks/{shadow-resets-CodxnaUh.js → shadow-resets-Dlq8Oecv.js} +2 -2
- package/dist/cdn/chunks/{sheet-DkmSsRV3.js → sheet-DaQpfAep.js} +3 -3
- package/dist/cdn/chunks/{shell-Ex_f7Ov3.js → shell-DSNgonKU.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-C8aSEGRc.js → side-by-side-split-view-DhGbcDrs.js} +4 -4
- package/dist/cdn/chunks/{sidebar-section-CnD-3i7r.js → sidebar-section-BlJmPb9C.js} +7 -7
- package/dist/cdn/chunks/{simple-section-CeKnmobI.js → simple-section-CYiTEFqN.js} +3 -3
- package/dist/cdn/chunks/{skip-link-DwtFm_NJ.js → skip-link-CReOb-Ci.js} +4 -4
- package/dist/cdn/chunks/{slider-BVdkwNW3.js → slider-DUEGol_V.js} +8 -8
- package/dist/cdn/chunks/{spacer-H4zmoDr_.js → spacer-CPmyJDQq.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-BES4eJH1.js → spacer-cell-DJEv0v6s.js} +4 -4
- package/dist/cdn/chunks/{split-button-Caa30uTx.js → split-button-B3vfYAdy.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-klvZ8lgP.js → split-view-divider-pSUpnEPX.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-Cnx56S5C.js → split-view-pane-J1RVr_w1.js} +3 -3
- package/dist/cdn/chunks/{stacked-split-view-CYdGBY7Q.js → stacked-split-view-B67fT-Ch.js} +4 -4
- package/dist/cdn/chunks/{static-html--Xd5vkAU.js → static-html-BT4LOKbV.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CJybViWL.js → status-bar-CGXqgNOf.js} +4 -4
- package/dist/cdn/chunks/{step-bar-BO6Y1BrK.js → step-bar-DdsA2Egs.js} +5 -5
- package/dist/cdn/chunks/{step-cell-BQ8EHZVR.js → step-cell-DsTAgMCx.js} +5 -5
- package/dist/cdn/chunks/{stepper-COTaJwSU.js → stepper-DPqXiLQr.js} +6 -6
- package/dist/cdn/chunks/{style-map-BwtZr74h.js → style-map-B7yv7Y8k.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-5fxe3QB1.js → swatch-picker-D9QZmbNN.js} +5 -5
- package/dist/cdn/chunks/{switch-BUxGg2ww.js → switch-CE2glvZQ.js} +4 -4
- package/dist/cdn/chunks/{switch-field-DOsEK534.js → switch-field-Dr2LovXc.js} +5 -5
- package/dist/cdn/chunks/{tab-bar-CZ9Z9qV9.js → tab-bar-DYZbToZB.js} +8 -8
- package/dist/cdn/chunks/{table-SAsB1kDN.js → table-DoQMJbSg.js} +5 -5
- package/dist/cdn/chunks/{tag-xuCeECO3.js → tag-DOX5nY-Z.js} +4 -4
- package/dist/cdn/chunks/{term-DHEvoltZ.js → term-CxGzPnhq.js} +53 -31
- package/dist/cdn/chunks/term.i18n-9qtxefIQ.js +6 -0
- package/dist/cdn/chunks/{text-CiFzQPQw.js → text-Dqe0uTK7.js} +3 -3
- package/dist/cdn/chunks/{text-cell-DQNzo2Rp.js → text-cell-ByGrujhK.js} +8 -8
- package/dist/cdn/chunks/{text-editor-DCYF_nqz.js → text-editor-DT9oWQCT.js} +10 -10
- package/dist/cdn/chunks/{text-field-BiPeMi6s.js → text-field-DKz5IRAU.js} +5 -5
- package/dist/cdn/chunks/{time-field-C-Euaiy0.js → time-field-Dh7nTwNc.js} +13 -13
- package/dist/cdn/chunks/{time-picker-DYkxhEYm.js → time-picker-Bp-l4JfF.js} +50 -53
- package/dist/cdn/chunks/{title-DkS07R_v.js → title-CdIWXNtc.js} +4 -4
- package/dist/cdn/chunks/{title-cell-CJevv6Vg.js → title-cell-DNbP8l_x.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-DDqd56_3.js → toggle-button-CPMxB3gN.js} +7 -7
- package/dist/cdn/chunks/{toggle-button-group-ByxgMVzH.js → toggle-button-group-ERWVyRX5.js} +2 -2
- package/dist/cdn/chunks/{token-YpVKK1g4.js → token-CG8dR3EH.js} +5 -5
- package/dist/cdn/chunks/{token-field-vLdJSvUz.js → token-field-B8wqHKan.js} +10 -10
- package/dist/cdn/chunks/{toolbar-C-5H46y9.js → toolbar-CiZoecHm.js} +8 -8
- package/dist/cdn/chunks/{toolbar-item-CvPtoAoQ.js → toolbar-item-xJEewchW.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-HElUvLeY.js → toolbar-title-C08aG67Y.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-BuJIgj1E.js → toolbar.styles-DmAHodW4.js} +3 -3
- package/dist/cdn/chunks/{tooltip-BF4HkWOi.js → tooltip-660R32cn.js} +54 -46
- package/dist/cdn/chunks/{top-navigation-bar-ngF2MF40.js → top-navigation-bar-B1HFShH8.js} +17 -17
- package/dist/cdn/chunks/{top-title-bar-BUjpi-w6.js → top-title-bar-BLZZd0Iu.js} +6 -6
- package/dist/cdn/chunks/{translations-BWgmZCAK.js → translations-CF08wvn-.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-Ci6O8SwP.js → two-thirds-one-third-section-Dqz7UoSH.js} +3 -3
- package/dist/cdn/chunks/{validation-list-BBNFz_2I.js → validation-list-D-bzOl5H.js} +3 -3
- package/dist/cdn/chunks/{visibility-mixin-BP5T5qYB.js → visibility-mixin-X9d6wHvR.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-BqYWVy4n.js → visually-hidden-Cew5_ldu.js} +2 -2
- package/dist/cdn/chunks/{window-CvgGg1Ib.js → window-DSgA26_c.js} +4 -4
- package/dist/cdn/chunks/{with-translations-8SmMZkGa.js → with-translations-Boc5Daaj.js} +3 -3
- package/dist/components/actions/menu/menu.d.ts +6 -3
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +22 -5
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/content/accordion/accordion-item.d.ts +38 -0
- package/dist/components/content/accordion/accordion-item.d.ts.map +1 -0
- package/dist/components/content/accordion/accordion-item.js +62 -0
- package/dist/components/content/accordion/accordion-item.js.map +1 -0
- package/dist/components/content/accordion/accordion-item.styles.d.ts +2 -0
- package/dist/components/content/accordion/accordion-item.styles.d.ts.map +1 -0
- package/dist/components/content/accordion/accordion-item.styles.js +196 -0
- package/dist/components/content/accordion/accordion-item.styles.js.map +1 -0
- package/dist/components/content/accordion/accordion-item.template.d.ts +4 -0
- package/dist/components/content/accordion/accordion-item.template.d.ts.map +1 -0
- package/dist/components/content/accordion/accordion-item.template.js +24 -0
- package/dist/components/content/accordion/accordion-item.template.js.map +1 -0
- package/dist/components/content/accordion/accordion.d.ts +50 -0
- package/dist/components/content/accordion/accordion.d.ts.map +1 -0
- package/dist/components/content/accordion/accordion.js +96 -0
- package/dist/components/content/accordion/accordion.js.map +1 -0
- package/dist/components/content/accordion/accordion.styles.d.ts +2 -0
- package/dist/components/content/accordion/accordion.styles.d.ts.map +1 -0
- package/dist/components/content/accordion/accordion.styles.js +43 -0
- package/dist/components/content/accordion/accordion.styles.js.map +1 -0
- package/dist/components/content/accordion/accordion.template.d.ts +4 -0
- package/dist/components/content/accordion/accordion.template.d.ts.map +1 -0
- package/dist/components/content/accordion/accordion.template.js +9 -0
- package/dist/components/content/accordion/accordion.template.js.map +1 -0
- package/dist/components/content/admonition/admonition.d.ts +76 -0
- package/dist/components/content/admonition/admonition.d.ts.map +1 -0
- package/dist/components/content/admonition/admonition.js +129 -0
- package/dist/components/content/admonition/admonition.js.map +1 -0
- package/dist/components/content/admonition/admonition.styles.d.ts +2 -0
- package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -0
- package/dist/components/content/admonition/admonition.styles.js +269 -0
- package/dist/components/content/admonition/admonition.styles.js.map +1 -0
- package/dist/components/content/admonition/admonition.template.d.ts +4 -0
- package/dist/components/content/admonition/admonition.template.d.ts.map +1 -0
- package/dist/components/content/admonition/admonition.template.js +63 -0
- package/dist/components/content/admonition/admonition.template.js.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.d.ts +5 -0
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +36 -1
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +2 -0
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +14 -1
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +14 -1
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/term/term.d.ts +12 -1
- package/dist/components/content/term/term.d.ts.map +1 -1
- package/dist/components/content/term/term.i18n.d.ts +1 -0
- package/dist/components/content/term/term.i18n.d.ts.map +1 -1
- package/dist/components/content/term/term.i18n.js +2 -0
- package/dist/components/content/term/term.i18n.js.map +1 -1
- package/dist/components/content/term/term.js +23 -1
- package/dist/components/content/term/term.js.map +1 -1
- package/dist/components/content/term/term.template.d.ts.map +1 -1
- package/dist/components/content/term/term.template.js +29 -6
- package/dist/components/content/term/term.template.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +8 -3
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +4 -0
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +14 -0
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +34 -1
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +1 -0
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +2 -8
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/layout/box/box.styles.js +7 -7
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +2 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +25 -24
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.template.js +1 -1
- package/dist/css/rich-text.css +200 -2
- package/dist/css/themes/oranje.css +1 -0
- package/dist/css/themes/robijnrood.css +1 -0
- package/dist/css/themes/rood.css +1 -0
- package/dist/css/themes.css +3 -0
- package/dist/css/variables.css +21 -0
- package/dist/nldd.min.js +4850 -4264
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +1 -0
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +1 -0
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +1 -0
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +1 -0
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +1 -0
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/react.d.ts +40 -4
- package/dist/types/vue.d.ts +46 -4
- package/dist/utilities/autoloader.generated.d.ts.map +1 -1
- package/dist/utilities/autoloader.generated.js +3 -0
- package/dist/utilities/autoloader.generated.js.map +1 -1
- package/dist/utilities/css-time.d.ts +4 -0
- package/dist/utilities/css-time.d.ts.map +1 -0
- package/dist/utilities/css-time.js +10 -0
- package/dist/utilities/css-time.js.map +1 -0
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +34 -0
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/package.json +13 -1
- package/dist/cdn/chunks/term.i18n-DVEJeOb6.js +0 -3
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Nederlandse Digitale Dienst Accordion Component (Lit + TypeScript)
|
|
9
|
+
*
|
|
10
|
+
* A stack of nldd-accordion-item elements, each a title that opens and closes
|
|
11
|
+
* its content in place. Fold away only short, additional content: an answer
|
|
12
|
+
* to a question, a detail most readers skip. Content folded in place costs
|
|
13
|
+
* orientation, since the page grows and shifts under the reader. Content
|
|
14
|
+
* that is long, holds a form or is a task of its own goes in rows of an
|
|
15
|
+
* nldd-list that each open an nldd-sheet; see the design guidelines on
|
|
16
|
+
* expand/collapse.
|
|
17
|
+
*
|
|
18
|
+
* The items join into one block: a border around them, a line between them,
|
|
19
|
+
* each title in a tinted bar and its content on the base surface. It looks
|
|
20
|
+
* like a `details` in nldd-rich-text, so in running text that is the lighter
|
|
21
|
+
* choice.
|
|
22
|
+
*
|
|
23
|
+
* With `exclusive` only one item is open at a time: opening one closes the
|
|
24
|
+
* other. Nothing else differs, so each item stays a native `details` with its
|
|
25
|
+
* keyboard, screen reader and find-in-page behavior.
|
|
26
|
+
*
|
|
27
|
+
* @element nldd-accordion
|
|
28
|
+
*
|
|
29
|
+
* @attr {boolean} exclusive - Only one item is open at a time
|
|
30
|
+
*
|
|
31
|
+
* @slot - nldd-accordion-item elements.
|
|
32
|
+
*/
|
|
33
|
+
import { LitElement } from 'lit';
|
|
34
|
+
import { property } from 'lit/decorators.js';
|
|
35
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
36
|
+
import { NLDDAccordionItem } from './accordion-item.js';
|
|
37
|
+
import { accordionStyles } from './accordion.styles.js';
|
|
38
|
+
import { accordionTemplate } from './accordion.template.js';
|
|
39
|
+
let NLDDAccordion = class NLDDAccordion extends LitElement {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(...arguments);
|
|
42
|
+
this.exclusive = false;
|
|
43
|
+
/** An item says it toggled on its own host and the event does not bubble,
|
|
44
|
+
* so the accordion listens in the capture phase. */
|
|
45
|
+
this._onToggle = (event) => {
|
|
46
|
+
const item = event.target;
|
|
47
|
+
if (!this.exclusive || !(item instanceof NLDDAccordionItem))
|
|
48
|
+
return;
|
|
49
|
+
if (item.parentElement !== this || !item.open)
|
|
50
|
+
return;
|
|
51
|
+
this._closeAllBut(item);
|
|
52
|
+
};
|
|
53
|
+
/** As with `details` that share a name, the first open item wins: an open
|
|
54
|
+
* item added later is closed, and the one already open stays. */
|
|
55
|
+
this._onSlotChange = () => {
|
|
56
|
+
if (!this.exclusive)
|
|
57
|
+
return;
|
|
58
|
+
const first = this._items.find((item) => item.open);
|
|
59
|
+
if (first)
|
|
60
|
+
this._closeAllBut(first);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
get _items() {
|
|
64
|
+
return Array.from(this.children).filter((child) => child instanceof NLDDAccordionItem);
|
|
65
|
+
}
|
|
66
|
+
_closeAllBut(keep) {
|
|
67
|
+
for (const item of this._items) {
|
|
68
|
+
if (item !== keep && item.open)
|
|
69
|
+
item.open = false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
connectedCallback() {
|
|
73
|
+
super.connectedCallback();
|
|
74
|
+
this.addEventListener('toggle', this._onToggle, { capture: true });
|
|
75
|
+
}
|
|
76
|
+
disconnectedCallback() {
|
|
77
|
+
super.disconnectedCallback();
|
|
78
|
+
this.removeEventListener('toggle', this._onToggle, { capture: true });
|
|
79
|
+
}
|
|
80
|
+
updated(changed) {
|
|
81
|
+
if (changed.has('exclusive') && this.exclusive)
|
|
82
|
+
this._onSlotChange();
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
return accordionTemplate(this);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
NLDDAccordion.styles = accordionStyles;
|
|
89
|
+
__decorate([
|
|
90
|
+
property({ type: Boolean, reflect: true })
|
|
91
|
+
], NLDDAccordion.prototype, "exclusive", void 0);
|
|
92
|
+
NLDDAccordion = __decorate([
|
|
93
|
+
customElement('nldd-accordion')
|
|
94
|
+
], NLDDAccordion);
|
|
95
|
+
export { NLDDAccordion };
|
|
96
|
+
//# sourceMappingURL=accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../../src/components/content/accordion/accordion.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGrD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,UAAU;IAAtC;;QAIN,cAAS,GAAG,KAAK,CAAC;QAQlB;6DACqD;QAC7C,cAAS,GAAG,CAAC,KAAY,EAAQ,EAAE;YAC1C,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC;YAC1B,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,IAAI,YAAY,iBAAiB,CAAC;gBAAE,OAAO;YACpE,IAAI,IAAI,CAAC,aAAa,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI;gBAAE,OAAO;YACtD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;QAEF;0EACkE;QAC3D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C,CAAC;IAChC,CAAC;;AAlDe,oBAAM,GAAG,eAAe,AAAlB,CAAmB;AAGzC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDACzB;AAJN,aAAa;IADzB,aAAa,CAAC,gBAAgB,CAAC;GACnB,aAAa,CAoDzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/accordion/accordion.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,yBAuC3B,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { inheritedTextReset } from '../../../assets/styles/shadow-resets.js';
|
|
3
|
+
export const accordionStyles = css `
|
|
4
|
+
:host {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/* # Host */
|
|
10
|
+
|
|
11
|
+
:host {
|
|
12
|
+
--_accordion-highlight-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
13
|
+
--_accordion-highlight-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
14
|
+
--_accordion-corner-radius: var(--primitives-corner-radius-lg);
|
|
15
|
+
--_accordion-background-color: var(--semantics-surfaces-base-background-color);
|
|
16
|
+
|
|
17
|
+
${inheritedTextReset}
|
|
18
|
+
display: block;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([hidden]) {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/* # Block */
|
|
28
|
+
|
|
29
|
+
.accordion {
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
display: block;
|
|
32
|
+
border: var(--_accordion-highlight-border-width) solid var(--_accordion-highlight-border-color);
|
|
33
|
+
border-radius: var(--_accordion-corner-radius);
|
|
34
|
+
background-color: var(--_accordion-background-color);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (forced-colors: active) {
|
|
38
|
+
.accordion {
|
|
39
|
+
border-color: CanvasText;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
//# sourceMappingURL=accordion.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.styles.js","sourceRoot":"","sources":["../../../../src/components/content/accordion/accordion.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;IAc9B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;CAyBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/accordion/accordion.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,aAAa,GAAG,cAAc,CAM1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.template.js","sourceRoot":"","sources":["../../../../src/components/content/accordion/accordion.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAG3C,MAAM,UAAU,iBAAiB,CAAC,SAAwB;IACzD,OAAO,IAAI,CAAA;;uBAEW,SAAS,CAAC,aAAa;;EAE5C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nederlandse Digitale Dienst Admonition Component (Lit + TypeScript)
|
|
3
|
+
*
|
|
4
|
+
* A note, tip or warning set apart in running text: what a `:::warning`
|
|
5
|
+
* becomes in a markdown page. It is content, not feedback. It says nothing
|
|
6
|
+
* when the page loads and cannot be dismissed, so a screen reader meets it in
|
|
7
|
+
* reading order as a note (`role="note"`), unless the page gives it a role of
|
|
8
|
+
* its own before it connects. For a notice that responds to what
|
|
9
|
+
* the user does or what changes, such as an error summary, use nldd-banner,
|
|
10
|
+
* which is a live region.
|
|
11
|
+
*
|
|
12
|
+
* The title sits in a bar tinted in the color of the variant, with the icon
|
|
13
|
+
* of the variant before it. The content sits below it on the base surface,
|
|
14
|
+
* inside a border of the same color, so the admonition reads as part of the
|
|
15
|
+
* text and not as a message. Without `text` there is no bar, and the icon
|
|
16
|
+
* stands before the content. A warning or a critical note says in its title
|
|
17
|
+
* what it is: the color and the icon are not read out.
|
|
18
|
+
*
|
|
19
|
+
* With `collapsible` the title bar opens and closes the content, as a native
|
|
20
|
+
* `details` does: the keyboard, a screen reader and find in page work as they
|
|
21
|
+
* do there, and find in page opens it. It starts open; add `collapsed` to start
|
|
22
|
+
* closed. Keep what you fold away short and
|
|
23
|
+
* additional: see the design guidelines on expand/collapse. A collapsible
|
|
24
|
+
* admonition needs `text`, and its title is the name of the button that opens
|
|
25
|
+
* it, so `heading-level` does not apply there.
|
|
26
|
+
*
|
|
27
|
+
* A markdown renderer does not make one by itself: `:::tip` is syntax of the
|
|
28
|
+
* parser, so the app maps each type to an admonition. The types of Docusaurus,
|
|
29
|
+
* remark-directive and markdown-it-container map as follows: `note` to
|
|
30
|
+
* `variant="neutral"`, `info` to `variant="accent"`, `tip` to
|
|
31
|
+
* `variant="success" icon="idea"`, `warning` and `caution` to
|
|
32
|
+
* `variant="warning"`, and `danger` to `variant="critical"`. The label of the
|
|
33
|
+
* type, or the title given in the markdown, becomes `text`.
|
|
34
|
+
*
|
|
35
|
+
* One admonition does not hold another: an aside within an aside is a sign the
|
|
36
|
+
* text wants to be written differently.
|
|
37
|
+
*
|
|
38
|
+
* @element nldd-admonition
|
|
39
|
+
*
|
|
40
|
+
* @attr {'neutral'|'accent'|'success'|'warning'|'critical'} variant - Color and default icon (default: 'neutral')
|
|
41
|
+
* @attr {string} text - Title in the bar above the content. Without it there is no bar
|
|
42
|
+
* @attr {1|2|3|4|5|6} heading-level - Renders the title as h1–h6; absent renders a p. Not with `collapsible`
|
|
43
|
+
* @attr {string} icon - Icon override. Default per variant: neutral → info-circle-filled, accent → info-circle-filled, success → check-mark-circle-filled, warning → exclamation-triangle-filled, critical → exclamation-circle-filled
|
|
44
|
+
* @attr {boolean} collapsible - The title bar opens and closes the content. Needs `text`
|
|
45
|
+
* @attr {boolean} collapsed - Whether a collapsible admonition is closed
|
|
46
|
+
*
|
|
47
|
+
* @slot - The content: an nldd-rich-text, or an nldd-text for a single paragraph.
|
|
48
|
+
*
|
|
49
|
+
* @fires toggle - When the user opens or closes a collapsible admonition; read `collapsed` for the new state. Setting `collapsed` does not fire it.
|
|
50
|
+
*/
|
|
51
|
+
import { LitElement } from 'lit';
|
|
52
|
+
import '../icon/icon.js';
|
|
53
|
+
export type AdmonitionVariant = 'neutral' | 'accent' | 'success' | 'warning' | 'critical';
|
|
54
|
+
export declare class NLDDAdmonition extends LitElement {
|
|
55
|
+
static styles: import("lit").CSSResult;
|
|
56
|
+
variant: AdmonitionVariant;
|
|
57
|
+
text: string;
|
|
58
|
+
headingLevel: 1 | 2 | 3 | 4 | 5 | 6 | null;
|
|
59
|
+
icon: string;
|
|
60
|
+
collapsible: boolean;
|
|
61
|
+
collapsed: boolean;
|
|
62
|
+
get _resolvedIcon(): string;
|
|
63
|
+
/** Collapsing needs a title to click on. */
|
|
64
|
+
get _isCollapsible(): boolean;
|
|
65
|
+
/** The native details toggled: keep `collapsed` in step and say so. A toggle
|
|
66
|
+
* event does not cross the shadow boundary, so the host fires its own. */
|
|
67
|
+
_onToggle: (event: Event) => void;
|
|
68
|
+
connectedCallback(): void;
|
|
69
|
+
render(): import("lit-html").TemplateResult;
|
|
70
|
+
}
|
|
71
|
+
declare global {
|
|
72
|
+
interface HTMLElementTagNameMap {
|
|
73
|
+
'nldd-admonition': NLDDAdmonition;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=admonition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admonition.d.ts","sourceRoot":"","sources":["../../../../src/components/content/admonition/admonition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,OAAO,iBAAiB,CAAC;AAEzB,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAU1F,qBACa,cAAe,SAAQ,UAAU;IAC7C,OAAgB,MAAM,0BAAoB;IAG1C,OAAO,EAAE,iBAAiB,CAAa;IAGvC,IAAI,SAAM;IAGV,YAAY,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAGlD,IAAI,SAAM;IAGV,WAAW,UAAS;IAGpB,SAAS,UAAS;IAElB,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,4CAA4C;IAC5C,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED;+EAC2E;IACpE,SAAS,GAAI,OAAO,KAAK,KAAG,IAAI,CAKrC;IAEO,iBAAiB,IAAI,IAAI;IAKzB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,cAAc,CAAC;KAClC;CACD"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Nederlandse Digitale Dienst Admonition Component (Lit + TypeScript)
|
|
9
|
+
*
|
|
10
|
+
* A note, tip or warning set apart in running text: what a `:::warning`
|
|
11
|
+
* becomes in a markdown page. It is content, not feedback. It says nothing
|
|
12
|
+
* when the page loads and cannot be dismissed, so a screen reader meets it in
|
|
13
|
+
* reading order as a note (`role="note"`), unless the page gives it a role of
|
|
14
|
+
* its own before it connects. For a notice that responds to what
|
|
15
|
+
* the user does or what changes, such as an error summary, use nldd-banner,
|
|
16
|
+
* which is a live region.
|
|
17
|
+
*
|
|
18
|
+
* The title sits in a bar tinted in the color of the variant, with the icon
|
|
19
|
+
* of the variant before it. The content sits below it on the base surface,
|
|
20
|
+
* inside a border of the same color, so the admonition reads as part of the
|
|
21
|
+
* text and not as a message. Without `text` there is no bar, and the icon
|
|
22
|
+
* stands before the content. A warning or a critical note says in its title
|
|
23
|
+
* what it is: the color and the icon are not read out.
|
|
24
|
+
*
|
|
25
|
+
* With `collapsible` the title bar opens and closes the content, as a native
|
|
26
|
+
* `details` does: the keyboard, a screen reader and find in page work as they
|
|
27
|
+
* do there, and find in page opens it. It starts open; add `collapsed` to start
|
|
28
|
+
* closed. Keep what you fold away short and
|
|
29
|
+
* additional: see the design guidelines on expand/collapse. A collapsible
|
|
30
|
+
* admonition needs `text`, and its title is the name of the button that opens
|
|
31
|
+
* it, so `heading-level` does not apply there.
|
|
32
|
+
*
|
|
33
|
+
* A markdown renderer does not make one by itself: `:::tip` is syntax of the
|
|
34
|
+
* parser, so the app maps each type to an admonition. The types of Docusaurus,
|
|
35
|
+
* remark-directive and markdown-it-container map as follows: `note` to
|
|
36
|
+
* `variant="neutral"`, `info` to `variant="accent"`, `tip` to
|
|
37
|
+
* `variant="success" icon="idea"`, `warning` and `caution` to
|
|
38
|
+
* `variant="warning"`, and `danger` to `variant="critical"`. The label of the
|
|
39
|
+
* type, or the title given in the markdown, becomes `text`.
|
|
40
|
+
*
|
|
41
|
+
* One admonition does not hold another: an aside within an aside is a sign the
|
|
42
|
+
* text wants to be written differently.
|
|
43
|
+
*
|
|
44
|
+
* @element nldd-admonition
|
|
45
|
+
*
|
|
46
|
+
* @attr {'neutral'|'accent'|'success'|'warning'|'critical'} variant - Color and default icon (default: 'neutral')
|
|
47
|
+
* @attr {string} text - Title in the bar above the content. Without it there is no bar
|
|
48
|
+
* @attr {1|2|3|4|5|6} heading-level - Renders the title as h1–h6; absent renders a p. Not with `collapsible`
|
|
49
|
+
* @attr {string} icon - Icon override. Default per variant: neutral → info-circle-filled, accent → info-circle-filled, success → check-mark-circle-filled, warning → exclamation-triangle-filled, critical → exclamation-circle-filled
|
|
50
|
+
* @attr {boolean} collapsible - The title bar opens and closes the content. Needs `text`
|
|
51
|
+
* @attr {boolean} collapsed - Whether a collapsible admonition is closed
|
|
52
|
+
*
|
|
53
|
+
* @slot - The content: an nldd-rich-text, or an nldd-text for a single paragraph.
|
|
54
|
+
*
|
|
55
|
+
* @fires toggle - When the user opens or closes a collapsible admonition; read `collapsed` for the new state. Setting `collapsed` does not fire it.
|
|
56
|
+
*/
|
|
57
|
+
import { LitElement } from 'lit';
|
|
58
|
+
import { property } from 'lit/decorators.js';
|
|
59
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
60
|
+
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
61
|
+
import { admonitionStyles } from './admonition.styles.js';
|
|
62
|
+
import { admonitionTemplate } from './admonition.template.js';
|
|
63
|
+
import '../icon/icon.js';
|
|
64
|
+
const DEFAULT_ICONS = {
|
|
65
|
+
neutral: 'info-circle-filled',
|
|
66
|
+
accent: 'info-circle-filled',
|
|
67
|
+
success: 'check-mark-circle-filled',
|
|
68
|
+
warning: 'exclamation-triangle-filled',
|
|
69
|
+
critical: 'exclamation-circle-filled',
|
|
70
|
+
};
|
|
71
|
+
let NLDDAdmonition = class NLDDAdmonition extends LitElement {
|
|
72
|
+
constructor() {
|
|
73
|
+
super(...arguments);
|
|
74
|
+
this.variant = 'neutral';
|
|
75
|
+
this.text = '';
|
|
76
|
+
this.headingLevel = null;
|
|
77
|
+
this.icon = '';
|
|
78
|
+
this.collapsible = false;
|
|
79
|
+
this.collapsed = false;
|
|
80
|
+
/** The native details toggled: keep `collapsed` in step and say so. A toggle
|
|
81
|
+
* event does not cross the shadow boundary, so the host fires its own. */
|
|
82
|
+
this._onToggle = (event) => {
|
|
83
|
+
const details = event.currentTarget;
|
|
84
|
+
if (details.open !== this.collapsed)
|
|
85
|
+
return;
|
|
86
|
+
this.collapsed = !details.open;
|
|
87
|
+
this.dispatchEvent(new Event('toggle'));
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
get _resolvedIcon() {
|
|
91
|
+
return this.icon || DEFAULT_ICONS[this.variant];
|
|
92
|
+
}
|
|
93
|
+
/** Collapsing needs a title to click on. */
|
|
94
|
+
get _isCollapsible() {
|
|
95
|
+
return this.collapsible && !!this.text;
|
|
96
|
+
}
|
|
97
|
+
connectedCallback() {
|
|
98
|
+
super.connectedCallback();
|
|
99
|
+
if (!this.hasAttribute('role'))
|
|
100
|
+
this.setAttribute('role', 'note');
|
|
101
|
+
}
|
|
102
|
+
render() {
|
|
103
|
+
return admonitionTemplate(this);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
NLDDAdmonition.styles = admonitionStyles;
|
|
107
|
+
__decorate([
|
|
108
|
+
property({ reflect: true, converter: reflectNonDefault('neutral') })
|
|
109
|
+
], NLDDAdmonition.prototype, "variant", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
112
|
+
], NLDDAdmonition.prototype, "text", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
property({ type: Number, reflect: true, attribute: 'heading-level' })
|
|
115
|
+
], NLDDAdmonition.prototype, "headingLevel", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
118
|
+
], NLDDAdmonition.prototype, "icon", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
property({ type: Boolean, reflect: true })
|
|
121
|
+
], NLDDAdmonition.prototype, "collapsible", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
property({ type: Boolean, reflect: true })
|
|
124
|
+
], NLDDAdmonition.prototype, "collapsed", void 0);
|
|
125
|
+
NLDDAdmonition = __decorate([
|
|
126
|
+
customElement('nldd-admonition')
|
|
127
|
+
], NLDDAdmonition);
|
|
128
|
+
export { NLDDAdmonition };
|
|
129
|
+
//# sourceMappingURL=admonition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admonition.js","sourceRoot":"","sources":["../../../../src/components/content/admonition/admonition.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,iBAAiB,CAAC;AAIzB,MAAM,aAAa,GAAsC;IACxD,OAAO,EAAE,oBAAoB;IAC7B,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EA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