@nldd/design-system 0.24.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 +591 -31
- package/dist/assets/styles/shadow-resets.d.ts +9 -0
- package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
- package/dist/assets/styles/shadow-resets.js +13 -0
- package/dist/assets/styles/shadow-resets.js.map +1 -1
- 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-DWBG1Csi.js → activity-indicator-CpJVlX6K.js} +12 -12
- package/dist/cdn/chunks/admonition-C89WHJ9a.js +379 -0
- package/dist/cdn/chunks/{avatar-CRZLseMs.js → avatar-Bf0OfAtQ.js} +17 -17
- package/dist/cdn/chunks/{avatar-group-coYbMhot.js → avatar-group-BeBAv2wB.js} +20 -20
- package/dist/cdn/chunks/{badge-DAXG-uIw.js → badge-C43FvgkK.js} +5 -5
- package/dist/cdn/chunks/{banner-BbR0rebp.js → banner-OWK0gwFb.js} +41 -40
- package/dist/cdn/chunks/{bar-split-view-DoklVwuj.js → bar-split-view-Dj1WycIW.js} +7 -7
- package/dist/cdn/chunks/{blockquote-DfIl4wTC.js → blockquote-D_5MxcSi.js} +9 -9
- package/dist/cdn/chunks/{box-CXICi_Gs.js → box-BUoxiA7b.js} +10 -10
- package/dist/cdn/chunks/{breadcrumbs-CVoNqsU2.js → breadcrumbs-DXxJTACL.js} +6 -6
- package/dist/cdn/chunks/{button-DWzqSerk.js → button-DpKyquzm.js} +8 -8
- package/dist/cdn/chunks/{button-bar-DwFLuumP.js → button-bar-BSt-QQRG.js} +30 -30
- package/dist/cdn/chunks/{button-group-D-nEY7Wz.js → button-group-D5QJWJzh.js} +2 -2
- package/dist/cdn/chunks/{card-CIVLEFhz.js → card-Cz4f-dCf.js} +9 -9
- package/dist/cdn/chunks/{cell-C79LmCOU.js → cell-zFw2V9wD.js} +6 -6
- package/dist/cdn/chunks/{checkbox-BQepKdVv.js → checkbox-BDp3O8Nc.js} +4 -4
- package/dist/cdn/chunks/{checkbox-field-ColaTYKE.js → checkbox-field-CSXV0prA.js} +5 -5
- package/dist/cdn/chunks/{class-map-9VgiG_zt.js → class-map-C7ao595e.js} +1 -1
- package/dist/cdn/chunks/{code-editor-FNmK9xRx.js → code-editor-Chm9EG_v.js} +5 -5
- package/dist/cdn/chunks/{code-viewer-C5whEGq6.js → code-viewer-DX322d7w.js} +102 -87
- package/dist/cdn/chunks/{codemirror-input-SKGbh9LP.js → codemirror-input-BLMJQbHq.js} +4 -4
- package/dist/cdn/chunks/{collection-Dq6Z66UX.js → collection-Bf8HoSki.js} +20 -20
- package/dist/cdn/chunks/{combo-box-CoOSPICd.js → combo-box-VuU_F54v.js} +25 -25
- package/dist/cdn/chunks/{container-CtwuWO3a.js → container-qVTgmbpz.js} +48 -48
- package/dist/cdn/chunks/css-time-DmkAFd1y.js +8 -0
- package/dist/cdn/chunks/{custom-element-BVKCDhPV.js → custom-element-C5yyaCZS.js} +4 -2
- package/dist/cdn/chunks/{date-field-CqnGM7GR.js → date-field-By9Q8151.js} +100 -88
- package/dist/cdn/chunks/{date-picker-C2iGHw2u.js → date-picker-DtA4PXCh.js} +16 -16
- package/dist/cdn/chunks/{decorate-CK3hc5C5.js → decorate-CkbtFnic.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-DGAPpEdM.js → described-by-mixin-DXC6jkCd.js} +2 -2
- package/dist/cdn/chunks/{description-cell-B08Ma5EJ.js → description-cell-D2INE8A3.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-BwWYGVrJ.js → dev-checks-UHHli7gE.js} +112 -18
- package/dist/cdn/chunks/{dist-B8vBP_Xz.js → dist-B1pwN_VD.js} +1 -1
- package/dist/cdn/chunks/{dist-B4vELUJW.js → dist-BG0xnVUi.js} +3 -3
- package/dist/cdn/chunks/{dist-CKeY28-M.js → dist-BzfFo9Yu.js} +2 -2
- package/dist/cdn/chunks/{dist-CQ5kBaGZ.js → dist-C-T4uKP1.js} +1 -1
- package/dist/cdn/chunks/{dist-BThgPtD7.js → dist-Ce38ZA7b.js} +2 -2
- package/dist/cdn/chunks/{dist-DP5DQSlX.js → dist-Cm51DQO4.js} +2 -2
- package/dist/cdn/chunks/{dist-B2YK3eT2.js → dist-Dg3ySzj7.js} +3 -3
- package/dist/cdn/chunks/{dist-jAq440y0.js → dist-VXOtAJ-m.js} +1 -1
- package/dist/cdn/chunks/{dist-D1t9kkjo.js → dist-pCih3zzc.js} +1 -1
- package/dist/cdn/chunks/{dist-DzcXDSFC.js → dist-qo8avphr.js} +1 -1
- package/dist/cdn/chunks/{dist-CWN_qz9z.js → dist-zxb4QZZG.js} +1 -1
- package/dist/cdn/chunks/{divider-KgHxRNV9.js → divider-Cv_vyHvw.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-CTIcETDr.js → document-tab-bar-CdOxr8KC.js} +53 -52
- package/dist/cdn/chunks/{dropdown-BhrCadMW.js → dropdown-DC9J6k0P.js} +5 -5
- package/dist/cdn/chunks/{file-field-DzH4Yrj5.js → file-field-CsrTk4uk.js} +25 -25
- package/dist/cdn/chunks/{floating-ui.dom-B8J1rV2c.js → floating-ui.dom-BvAAdCVe.js} +260 -184
- package/dist/cdn/chunks/{form-CzmdlZ0i.js → form-ClOD1OKh.js} +10 -10
- package/dist/cdn/chunks/{form-actions-CDQW1p3w.js → form-actions-CwaXGj43.js} +3 -3
- package/dist/cdn/chunks/{form-field-D_qJpPAS.js → form-field-LoX9v2Pa.js} +7 -7
- package/dist/cdn/chunks/{form-section-Jy5b5Qtp.js → form-section-i6piyKuy.js} +16 -16
- package/dist/cdn/chunks/{full-bleed-section-BDIuXLGU.js → full-bleed-section-6aAfCnez.js} +4 -4
- package/dist/cdn/chunks/{hero-BPHFHrUT.js → hero-CTQAayXT.js} +22 -22
- package/dist/cdn/chunks/{icon-BE2ojX0S.js → icon-B5kHyCz2.js} +7 -7
- package/dist/cdn/chunks/{icon-button-CFMhdG1B.js → icon-button-DuEiOOoc.js} +9 -9
- package/dist/cdn/chunks/{icon-cell-CQ-e1GB2.js → icon-cell-uZkR3hZx.js} +6 -6
- package/dist/cdn/chunks/{identity-7wQDjeGb.js → identity-DR6DMjke.js} +55 -39
- package/dist/cdn/chunks/{if-defined-G1P3HUvi.js → if-defined-B7fJBsUt.js} +1 -1
- package/dist/cdn/chunks/{image-QPbmNKvZ.js → image-CuBUo_MQ.js} +20 -20
- package/dist/cdn/chunks/{inline-dialog-DP3AXfJV.js → inline-dialog-CZNkWJIA.js} +15 -15
- package/dist/cdn/chunks/{just-in-time-education-DnaF_sLc.js → just-in-time-education-qwg9hTDX.js} +8 -8
- package/dist/cdn/chunks/{kanban-o2GMLjsq.js → kanban-Bkg-nZmX.js} +9 -9
- package/dist/cdn/chunks/{kanban-column-B_Jrut9s.js → kanban-column-C8iRyRNY.js} +8 -8
- package/dist/cdn/chunks/{keyboard-shortcut-Dm366Dra.js → keyboard-shortcut-Rq5IHU-e.js} +3 -3
- package/dist/cdn/chunks/{languages-Dlh_tbAH.js → languages-DLHsACpp.js} +12 -12
- package/dist/cdn/chunks/{link-DhTY3Sjh.js → link-CgjFwaHP.js} +70 -21
- package/dist/cdn/chunks/{link-group-YuwD1m6-.js → link-group-5W0GAmTq.js} +2 -2
- package/dist/cdn/chunks/{list-Cdvib5Y-.js → list-BASqIKtP.js} +15 -15
- package/dist/cdn/chunks/{list-item-vO3GwQWa.js → list-item-DTcPysIP.js} +19 -19
- package/dist/cdn/chunks/{list-item-segment-F3av0jxz.js → list-item-segment-CRw0y4kg.js} +15 -15
- package/dist/cdn/chunks/{menu-dTVlz6mn.js → menu-CYILGTpB.js} +47 -41
- package/dist/cdn/chunks/{menu-bar-imOaTlGm.js → menu-bar-CL566HmJ.js} +10 -10
- package/dist/cdn/chunks/{menu-bar-item-ChQbM1ER.js → menu-bar-item-C6OrUu_4.js} +18 -18
- package/dist/cdn/chunks/{menu-divider-D7s6f49y.js → menu-divider-BtU9eBSb.js} +3 -3
- package/dist/cdn/chunks/{menu-group-BcEmoNvL.js → menu-group-r2TvdqJB.js} +6 -6
- package/dist/cdn/chunks/{menu-item-BGlVTfe6.js → menu-item-CS45jTLu.js} +22 -22
- package/dist/cdn/chunks/{menu.template-syBthjEV.js → menu.template-CF8Iau1s.js} +20 -5
- package/dist/cdn/chunks/{modal-dialog-BBK25tjm.js → modal-dialog-C9NBq8TO.js} +5 -5
- package/dist/cdn/chunks/{multi-line-text-field-DuL6nLG_.js → multi-line-text-field-BkxV0vqA.js} +5 -5
- package/dist/cdn/chunks/{navigation-split-view-CdZNbX91.js → navigation-split-view-DNrQYkg7.js} +11 -11
- package/dist/cdn/chunks/{nl.generated-CgRVSEh6.js → nl.generated-BDowZkhc.js} +1 -1
- package/dist/cdn/chunks/{notification-Dwhfnjb2.js → notification-Dzpy9hCc.js} +13 -13
- package/dist/cdn/chunks/{number-field-Dl4zZvVe.js → number-field-BJCUe-bI.js} +7 -7
- package/dist/cdn/chunks/{one-half-one-half-section-BJxLZfiK.js → one-half-one-half-section-Ctw8ri5v.js} +4 -4
- package/dist/cdn/chunks/{one-third-two-thirds-section-CARh_hdH.js → one-third-two-thirds-section-DxUUH8lS.js} +4 -4
- package/dist/cdn/chunks/{one-time-code-field-FaxqiiD6.js → one-time-code-field-DGDyqIMd.js} +20 -20
- package/dist/cdn/chunks/{page-Cc5bb6VU.js → page-BpavFPML.js} +10 -10
- package/dist/cdn/chunks/{page-footer-Df1cS-ks.js → page-footer-CVqmyulx.js} +15 -15
- package/dist/cdn/chunks/{page-section-mixin-BzgAU2sX.js → page-section-mixin-BHg-Wre9.js} +3 -3
- package/dist/cdn/chunks/{pagination-BcnkrWV_.js → pagination-BGZYq-eO.js} +6 -6
- package/dist/cdn/chunks/{password-field-CeIJm406.js → password-field-BIFfLAls.js} +7 -7
- package/dist/cdn/chunks/{popover-BIMt3aqW.js → popover-TCW20ibN.js} +9 -9
- package/dist/cdn/chunks/{progress-bar-C9CWhkse.js → progress-bar-C4bLuJBa.js} +24 -24
- package/dist/cdn/chunks/{progress-circle-CJL1aFbS.js → progress-circle-BePtt89f.js} +22 -22
- package/dist/cdn/chunks/{radio-button-DKo5kdLW.js → radio-button-CLiuwjA1.js} +3 -3
- package/dist/cdn/chunks/{radio-button-field-DPZajMnT.js → radio-button-field-BPva1mUv.js} +12 -12
- package/dist/cdn/chunks/{radio-button-group-BBZhU3bn.js → radio-button-group-Z5s4obz6.js} +3 -3
- package/dist/cdn/chunks/{render-marked-Bkoq5vNH.js → render-marked-C3ypoEZM.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-CEW8Cg1r.js → reorder-handle-cell-BB9b4T_d.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-BkksqjmK.js → reorder-handle-mixin-DBjNe6Rl.js} +2 -2
- package/dist/cdn/chunks/{repeat-C5V9E9Ta.js → repeat-s95Ixbpx.js} +1 -1
- package/dist/cdn/chunks/{rich-text-DEFr_Niu.js → rich-text-DTxHo8E_.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-BSORP0i7.js → row-header-mixin-BcwoEgu7.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-B7kZVxmh.js → scroll-fade-Dul0IfE1.js} +4 -4
- package/dist/cdn/chunks/{search-field-Dr0MLD_z.js → search-field-BeZN7S8J.js} +9 -9
- package/dist/cdn/chunks/{segmented-control-aOIkoklF.js → segmented-control-Dzu8xoqB.js} +33 -33
- package/dist/cdn/chunks/{shadow-resets-CRBumQjX.js → shadow-resets-Dlq8Oecv.js} +11 -7
- package/dist/cdn/chunks/{sheet-BCPE_pDl.js → sheet-DaQpfAep.js} +4 -4
- package/dist/cdn/chunks/{shell-ZCsqW56P.js → shell-DSNgonKU.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-BWIyZmzo.js → side-by-side-split-view-DhGbcDrs.js} +7 -7
- package/dist/cdn/chunks/{sidebar-section-Di3mQROc.js → sidebar-section-BlJmPb9C.js} +8 -8
- package/dist/cdn/chunks/{simple-section-sOkNMsbz.js → simple-section-CYiTEFqN.js} +4 -4
- package/dist/cdn/chunks/{skip-link-mcskOuFr.js → skip-link-CReOb-Ci.js} +4 -4
- package/dist/cdn/chunks/{slider-CkPk4lBA.js → slider-DUEGol_V.js} +21 -21
- package/dist/cdn/chunks/slot-content-2qH2vEC_.js +22 -0
- package/dist/cdn/chunks/slotted-block-xNpJoXLz.js +14 -0
- package/dist/cdn/chunks/{spacer-RB_KBaTr.js → spacer-CPmyJDQq.js} +3 -3
- package/dist/cdn/chunks/{spacer-cell-V1UaaPcO.js → spacer-cell-DJEv0v6s.js} +4 -4
- package/dist/cdn/chunks/{split-button-BUEhYiI5.js → split-button-B3vfYAdy.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-Rmb9cG9K.js → split-view-divider-pSUpnEPX.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-DQRZ9tE0.js → split-view-pane-J1RVr_w1.js} +4 -4
- package/dist/cdn/chunks/{stacked-split-view-BaeQhWmd.js → stacked-split-view-B67fT-Ch.js} +7 -7
- package/dist/cdn/chunks/{static-html-CAczcbUD.js → static-html-BT4LOKbV.js} +1 -1
- package/dist/cdn/chunks/{status-bar-D3-IYqUp.js → status-bar-CGXqgNOf.js} +4 -4
- package/dist/cdn/chunks/{step-bar-BfNXoHds.js → step-bar-DdsA2Egs.js} +21 -21
- package/dist/cdn/chunks/{step-cell-BN2ZKsQ4.js → step-cell-DsTAgMCx.js} +5 -5
- package/dist/cdn/chunks/{stepper-DuPRMxBx.js → stepper-DPqXiLQr.js} +6 -6
- package/dist/cdn/chunks/{style-map-LFqo5rE_.js → style-map-B7yv7Y8k.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-BVKCFzpO.js → swatch-picker-D9QZmbNN.js} +21 -21
- package/dist/cdn/chunks/{switch-CgUZ0WlQ.js → switch-CE2glvZQ.js} +4 -4
- package/dist/cdn/chunks/{switch-field-B4c8-L61.js → switch-field-Dr2LovXc.js} +5 -5
- package/dist/cdn/chunks/{tab-bar-D-1g8fdF.js → tab-bar-DYZbToZB.js} +21 -21
- package/dist/cdn/chunks/{table-jrJ4EJpq.js → table-DoQMJbSg.js} +5 -5
- package/dist/cdn/chunks/{tag-JYwa5l-A.js → tag-DOX5nY-Z.js} +10 -10
- package/dist/cdn/chunks/{term-NyLmTWnF.js → term-CxGzPnhq.js} +58 -38
- package/dist/cdn/chunks/term.i18n-9qtxefIQ.js +6 -0
- package/dist/cdn/chunks/text-Dqe0uTK7.js +260 -0
- package/dist/cdn/chunks/{text-cell-BXLFcD_e.js → text-cell-ByGrujhK.js} +74 -62
- package/dist/cdn/chunks/{text-editor-rLc5H6kD.js → text-editor-DT9oWQCT.js} +10 -10
- package/dist/cdn/chunks/{text-field-B7M4VwCe.js → text-field-DKz5IRAU.js} +22 -22
- package/dist/cdn/chunks/{time-field-BtQRsvpR.js → time-field-Dh7nTwNc.js} +27 -27
- package/dist/cdn/chunks/{time-picker-BKLwibb9.js → time-picker-Bp-l4JfF.js} +54 -57
- package/dist/cdn/chunks/{title-DLD3RW7l.js → title-CdIWXNtc.js} +113 -98
- package/dist/cdn/chunks/{title-cell-BCUBuKIO.js → title-cell-DNbP8l_x.js} +83 -74
- package/dist/cdn/chunks/{toggle-button-Etx8hKQS.js → toggle-button-CPMxB3gN.js} +25 -25
- package/dist/cdn/chunks/{toggle-button-group-Ph1kcTqj.js → toggle-button-group-ERWVyRX5.js} +2 -2
- package/dist/cdn/chunks/{token-BQtumlDT.js → token-CG8dR3EH.js} +13 -13
- package/dist/cdn/chunks/{token-field-BrV2RZHi.js → token-field-B8wqHKan.js} +21 -21
- package/dist/cdn/chunks/{toolbar-w_2rxcNu.js → toolbar-CiZoecHm.js} +12 -12
- package/dist/cdn/chunks/{toolbar-item-x-y_AxHu.js → toolbar-item-xJEewchW.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-g47zMdG2.js → toolbar-title-C08aG67Y.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-EP0gu8kg.js → toolbar.styles-DmAHodW4.js} +3 -3
- package/dist/cdn/chunks/{tooltip-D47hF_iD.js → tooltip-660R32cn.js} +55 -47
- package/dist/cdn/chunks/{top-navigation-bar-DO7JsQVs.js → top-navigation-bar-B1HFShH8.js} +18 -18
- package/dist/cdn/chunks/{top-title-bar-CVEOoXhu.js → top-title-bar-BLZZd0Iu.js} +14 -14
- package/dist/cdn/chunks/{translations-eWWV6weF.js → translations-CF08wvn-.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-x3dadNwz.js → two-thirds-one-third-section-Dqz7UoSH.js} +4 -4
- package/dist/cdn/chunks/{validation-list-krcQHzP3.js → validation-list-D-bzOl5H.js} +10 -10
- package/dist/cdn/chunks/{visibility-mixin-CXBa-fVi.js → visibility-mixin-X9d6wHvR.js} +4 -4
- package/dist/cdn/chunks/{visually-hidden-Cd1_FE1J.js → visually-hidden-Cew5_ldu.js} +2 -2
- package/dist/cdn/chunks/{window-JbrLuRjR.js → window-DSgA26_c.js} +4 -4
- package/dist/cdn/chunks/{with-translations-DhRk5rH-.js → with-translations-Boc5Daaj.js} +3 -3
- package/dist/components/actions/button-bar/button-bar.js +2 -2
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +17 -4
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +50 -6
- 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 +16 -1
- package/dist/components/actions/menu/menu.styles.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/identity/identity.d.ts +17 -10
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +33 -19
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
- package/dist/components/content/identity/identity.styles.js +5 -1
- package/dist/components/content/identity/identity.styles.js.map +1 -1
- package/dist/components/content/identity/identity.template.d.ts +1 -1
- package/dist/components/content/identity/identity.template.d.ts.map +1 -1
- package/dist/components/content/identity/identity.template.js +11 -5
- package/dist/components/content/identity/identity.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 +33 -12
- package/dist/components/content/term/term.template.js.map +1 -1
- package/dist/components/content/text/text.d.ts +15 -2
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +19 -3
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +7 -155
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/text/text.template.d.ts +3 -2
- package/dist/components/content/text/text.template.d.ts.map +1 -1
- package/dist/components/content/text/text.template.js +3 -4
- package/dist/components/content/text/text.template.js.map +1 -1
- package/dist/components/content/title/title.d.ts +22 -7
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +43 -19
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +16 -10
- 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/forms/form/form.d.ts +2 -2
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +2 -2
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +2 -2
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +2 -2
- package/dist/components/forms/form-section/form-section.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/lists-and-tables/cells/text-cell/text-cell.d.ts +24 -13
- 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 +40 -31
- 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.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +5 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts +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 +15 -8
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +23 -11
- 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 +39 -29
- 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.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +5 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts +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 +15 -16
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js.map +1 -1
- 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/navigation/link/link.d.ts +60 -1
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +145 -2
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.js +4 -0
- package/dist/components/navigation/link/link.styles.js.map +1 -1
- package/dist/components/navigation/link/link.template.d.ts +1 -0
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +4 -1
- package/dist/components/navigation/link/link.template.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/global-open-font.css +2 -0
- package/dist/css/global.css +2 -0
- package/dist/css/link.css +93 -0
- package/dist/css/rich-text.css +200 -2
- package/dist/css/text.css +159 -0
- 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/title.css +10 -10
- package/dist/css/variables.css +21 -0
- package/dist/nldd.min.js +5057 -4592
- 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 +48 -10
- package/dist/types/vue.d.ts +54 -10
- 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/custom-element.d.ts +10 -0
- package/dist/utilities/custom-element.d.ts.map +1 -1
- package/dist/utilities/custom-element.js +11 -0
- package/dist/utilities/custom-element.js.map +1 -1
- package/dist/utilities/dev-checks.d.ts +8 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +36 -0
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +71 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/slot-content.d.ts +18 -7
- package/dist/utilities/slot-content.d.ts.map +1 -1
- package/dist/utilities/slot-content.js +25 -4
- package/dist/utilities/slot-content.js.map +1 -1
- package/dist/utilities/slotted-block.d.ts +20 -0
- package/dist/utilities/slotted-block.d.ts.map +1 -0
- package/dist/utilities/slotted-block.js +30 -0
- package/dist/utilities/slotted-block.js.map +1 -0
- package/lint/data.generated.json +1 -1
- package/lint/fix.js +43 -2
- package/lint/frontends.js +149 -15
- package/lint/linter.js +3 -2
- package/lint/main.js +17 -3
- package/lint/project.js +2 -2
- package/lint/rule.schema.json +2 -1
- package/package.json +19 -2
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +0 -13
- package/dist/cdn/chunks/term.i18n-DVEJeOb6.js +0 -3
- package/dist/cdn/chunks/text-gy-gkfSS.js +0 -406
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { inheritedTextReset, surfaceContent } from '../../../assets/styles/shadow-resets.js';
|
|
3
|
+
export const accordionItemStyles = css `
|
|
4
|
+
:host {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/* # Host */
|
|
10
|
+
|
|
11
|
+
:host {
|
|
12
|
+
--_accordion-item-highlight-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
13
|
+
--_accordion-item-highlight-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
14
|
+
--_accordion-item-corner-radius: calc(var(--primitives-corner-radius-lg) - var(--semantics-surfaces-highlight-border-width));
|
|
15
|
+
--_accordion-item-background-color: var(--semantics-surfaces-base-background-color);
|
|
16
|
+
--_accordion-item-content-color: var(--semantics-content-color);
|
|
17
|
+
--_accordion-item-title-bar-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
18
|
+
--_accordion-item-title-bar-hover-background-color: var(--semantics-surfaces-tinted-is-hovered-background-color);
|
|
19
|
+
--_accordion-item-title-bar-min-height: var(--semantics-disclosures-title-bar-min-height);
|
|
20
|
+
--_accordion-item-title-bar-padding-block: var(--semantics-disclosures-title-bar-padding-block);
|
|
21
|
+
--_accordion-item-inset: var(--semantics-disclosures-inset);
|
|
22
|
+
--_accordion-item-gap: var(--semantics-disclosures-title-bar-gap);
|
|
23
|
+
--_accordion-item-title-bar-font: var(--semantics-disclosures-title-bar-font);
|
|
24
|
+
--_accordion-item-disclosure-icon-size: var(--semantics-disclosures-disclosure-icon-size);
|
|
25
|
+
--_accordion-item-disclosure-icon-open-rotation: var(--semantics-disclosures-disclosure-icon-open-rotation);
|
|
26
|
+
--_accordion-item-transition-duration: var(--primitives-transition-duration-fast);
|
|
27
|
+
|
|
28
|
+
${inheritedTextReset}
|
|
29
|
+
display: block;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host([hidden]) {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/* # Block */
|
|
38
|
+
|
|
39
|
+
.accordion-item {
|
|
40
|
+
--context-background-color: var(--_accordion-item-background-color);
|
|
41
|
+
${surfaceContent}
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
display: block;
|
|
44
|
+
interpolate-size: allow-keywords;
|
|
45
|
+
--context-content-color: var(--_accordion-item-content-color);
|
|
46
|
+
color: var(--_accordion-item-content-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host(:not(:first-child)) .accordion-item {
|
|
50
|
+
border-block-start: var(--_accordion-item-highlight-border-width) solid var(--_accordion-item-highlight-border-color);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (forced-colors: active) {
|
|
54
|
+
:host(:not(:first-child)) .accordion-item {
|
|
55
|
+
border-color: CanvasText;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/* # Elements */
|
|
61
|
+
|
|
62
|
+
.accordion-item__title-bar {
|
|
63
|
+
--context-background-color: var(--_accordion-item-title-bar-background-color);
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
display: flex;
|
|
66
|
+
background-color: var(--_accordion-item-title-bar-background-color);
|
|
67
|
+
min-height: var(--_accordion-item-title-bar-min-height);
|
|
68
|
+
padding-block: var(--_accordion-item-title-bar-padding-block);
|
|
69
|
+
padding-inline-start: var(--_accordion-item-inset);
|
|
70
|
+
padding-inline-end: calc((var(--_accordion-item-title-bar-min-height) - var(--_accordion-item-disclosure-icon-size)) / 2);
|
|
71
|
+
/* Wrapping makes the row a multi-line flex container, so align-content
|
|
72
|
+
centers a single line in the min-height. The title never wraps. */
|
|
73
|
+
flex-wrap: wrap;
|
|
74
|
+
align-content: center;
|
|
75
|
+
align-items: flex-start;
|
|
76
|
+
gap: var(--_accordion-item-gap);
|
|
77
|
+
font: var(--_accordion-item-title-bar-font);
|
|
78
|
+
cursor: default;
|
|
79
|
+
list-style: none;
|
|
80
|
+
-webkit-tap-highlight-color: transparent;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.accordion-item__title-bar::-webkit-details-marker {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:host(:first-child) .accordion-item__title-bar {
|
|
88
|
+
border-start-start-radius: var(--_accordion-item-corner-radius);
|
|
89
|
+
border-start-end-radius: var(--_accordion-item-corner-radius);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host(:last-child) .accordion-item:not([open]) > .accordion-item__title-bar {
|
|
93
|
+
border-end-start-radius: var(--_accordion-item-corner-radius);
|
|
94
|
+
border-end-end-radius: var(--_accordion-item-corner-radius);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Where the height animates, the bar keeps its square corners and its line
|
|
98
|
+
until the closing content is gone. */
|
|
99
|
+
@supports (interpolate-size: allow-keywords) {
|
|
100
|
+
.accordion-item:not([open]) > .accordion-item__title-bar {
|
|
101
|
+
transition: border-radius 0s var(--_accordion-item-transition-duration), border-block-end 0s var(--_accordion-item-transition-duration) allow-discrete;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.accordion-item[open] > .accordion-item__title-bar {
|
|
106
|
+
border-block-end: var(--_accordion-item-highlight-border-width) solid var(--_accordion-item-highlight-border-color);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (hover: hover) {
|
|
110
|
+
.accordion-item__title-bar:hover {
|
|
111
|
+
--context-background-color: var(--_accordion-item-title-bar-hover-background-color);
|
|
112
|
+
background-color: var(--_accordion-item-title-bar-hover-background-color);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.accordion-item__title-bar:active {
|
|
117
|
+
--context-background-color: var(--_accordion-item-title-bar-hover-background-color);
|
|
118
|
+
background-color: var(--_accordion-item-title-bar-hover-background-color);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Above the item below, which would cover the ring. */
|
|
122
|
+
.accordion-item__title-bar:focus-visible {
|
|
123
|
+
position: relative;
|
|
124
|
+
z-index: 1;
|
|
125
|
+
outline: var(--semantics-focus-ring-outline);
|
|
126
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
127
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.accordion-item__title-bar:focus:not(:focus-visible) {
|
|
131
|
+
outline: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.accordion-item__title {
|
|
135
|
+
min-width: 0;
|
|
136
|
+
flex: 1 1 0;
|
|
137
|
+
overflow-wrap: break-word;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.accordion-item__disclosure-icon {
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-shrink: 0;
|
|
143
|
+
margin-block-start: calc((1lh - var(--_accordion-item-disclosure-icon-size)) / 2);
|
|
144
|
+
width: var(--_accordion-item-disclosure-icon-size);
|
|
145
|
+
height: var(--_accordion-item-disclosure-icon-size);
|
|
146
|
+
transition: rotate var(--_accordion-item-transition-duration) ease-out;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.accordion-item[open] .accordion-item__disclosure-icon {
|
|
150
|
+
rotate: var(--_accordion-item-disclosure-icon-open-rotation);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.accordion-item::details-content {
|
|
154
|
+
block-size: 0;
|
|
155
|
+
overflow-y: clip;
|
|
156
|
+
transition:
|
|
157
|
+
block-size var(--_accordion-item-transition-duration) ease-out,
|
|
158
|
+
content-visibility var(--_accordion-item-transition-duration) allow-discrete;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.accordion-item[open]::details-content {
|
|
162
|
+
block-size: auto;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.accordion-item__content {
|
|
166
|
+
box-sizing: border-box;
|
|
167
|
+
padding: var(--_accordion-item-inset);
|
|
168
|
+
font: var(--primitives-font-body-md-regular-snug);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
/* # Motion */
|
|
173
|
+
|
|
174
|
+
@media (prefers-reduced-motion: reduce) {
|
|
175
|
+
.accordion-item__disclosure-icon,
|
|
176
|
+
.accordion-item::details-content,
|
|
177
|
+
.accordion-item:not([open]) > .accordion-item__title-bar {
|
|
178
|
+
transition: none;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
/* # Print */
|
|
184
|
+
|
|
185
|
+
@media print {
|
|
186
|
+
.accordion-item::details-content {
|
|
187
|
+
content-visibility: visible;
|
|
188
|
+
block-size: auto;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.accordion-item__disclosure-icon {
|
|
192
|
+
display: none;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
`;
|
|
196
|
+
//# sourceMappingURL=accordion-item.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-item.styles.js","sourceRoot":"","sources":["../../../../src/components/content/accordion/accordion-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAE7F,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;IAyBlC,kBAAkB;;;;;;;;;;;;;IAalB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0JjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-item.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/accordion/accordion-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAqBlF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
export function accordionItemTemplate(component) {
|
|
3
|
+
return html `
|
|
4
|
+
<details class="accordion-item"
|
|
5
|
+
?open=${component.open}
|
|
6
|
+
@toggle=${component._onToggle}
|
|
7
|
+
>
|
|
8
|
+
<summary class="accordion-item__title-bar">
|
|
9
|
+
<span class="accordion-item__title">
|
|
10
|
+
${component.text}
|
|
11
|
+
</span>
|
|
12
|
+
<span class="accordion-item__disclosure-icon"
|
|
13
|
+
aria-hidden="true"
|
|
14
|
+
>
|
|
15
|
+
<nldd-icon icon="chevron-down"></nldd-icon>
|
|
16
|
+
</span>
|
|
17
|
+
</summary>
|
|
18
|
+
<div class="accordion-item__content">
|
|
19
|
+
<slot></slot>
|
|
20
|
+
</div>
|
|
21
|
+
</details>
|
|
22
|
+
`;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=accordion-item.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion-item.template.js","sourceRoot":"","sources":["../../../../src/components/content/accordion/accordion-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAG3C,MAAM,UAAU,qBAAqB,CAAC,SAA4B;IACjE,OAAO,IAAI,CAAA;;WAED,SAAS,CAAC,IAAI;aACZ,SAAS,CAAC,SAAS;;;;OAIzB,SAAS,CAAC,IAAI;;;;;;;;;;;;EAYnB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nederlandse Digitale Dienst Accordion Component (Lit + TypeScript)
|
|
3
|
+
*
|
|
4
|
+
* A stack of nldd-accordion-item elements, each a title that opens and closes
|
|
5
|
+
* its content in place. Fold away only short, additional content: an answer
|
|
6
|
+
* to a question, a detail most readers skip. Content folded in place costs
|
|
7
|
+
* orientation, since the page grows and shifts under the reader. Content
|
|
8
|
+
* that is long, holds a form or is a task of its own goes in rows of an
|
|
9
|
+
* nldd-list that each open an nldd-sheet; see the design guidelines on
|
|
10
|
+
* expand/collapse.
|
|
11
|
+
*
|
|
12
|
+
* The items join into one block: a border around them, a line between them,
|
|
13
|
+
* each title in a tinted bar and its content on the base surface. It looks
|
|
14
|
+
* like a `details` in nldd-rich-text, so in running text that is the lighter
|
|
15
|
+
* choice.
|
|
16
|
+
*
|
|
17
|
+
* With `exclusive` only one item is open at a time: opening one closes the
|
|
18
|
+
* other. Nothing else differs, so each item stays a native `details` with its
|
|
19
|
+
* keyboard, screen reader and find-in-page behavior.
|
|
20
|
+
*
|
|
21
|
+
* @element nldd-accordion
|
|
22
|
+
*
|
|
23
|
+
* @attr {boolean} exclusive - Only one item is open at a time
|
|
24
|
+
*
|
|
25
|
+
* @slot - nldd-accordion-item elements.
|
|
26
|
+
*/
|
|
27
|
+
import { LitElement } from 'lit';
|
|
28
|
+
import { NLDDAccordionItem } from './accordion-item.js';
|
|
29
|
+
export declare class NLDDAccordion extends LitElement {
|
|
30
|
+
static styles: import("lit").CSSResult;
|
|
31
|
+
exclusive: boolean;
|
|
32
|
+
get _items(): NLDDAccordionItem[];
|
|
33
|
+
/** An item says it toggled on its own host and the event does not bubble,
|
|
34
|
+
* so the accordion listens in the capture phase. */
|
|
35
|
+
private _onToggle;
|
|
36
|
+
/** As with `details` that share a name, the first open item wins: an open
|
|
37
|
+
* item added later is closed, and the one already open stays. */
|
|
38
|
+
_onSlotChange: () => void;
|
|
39
|
+
private _closeAllBut;
|
|
40
|
+
connectedCallback(): void;
|
|
41
|
+
disconnectedCallback(): void;
|
|
42
|
+
updated(changed: Map<string, unknown>): void;
|
|
43
|
+
render(): import("lit-html").TemplateResult;
|
|
44
|
+
}
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
'nldd-accordion': NLDDAccordion;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/content/accordion/accordion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,qBACa,aAAc,SAAQ,UAAU;IAC5C,OAAgB,MAAM,0BAAmB;IAGzC,SAAS,UAAS;IAElB,IAAI,MAAM,IAAI,iBAAiB,EAAE,CAIhC;IAED;yDACqD;IACrD,OAAO,CAAC,SAAS,CAKf;IAEF;sEACkE;IAC3D,aAAa,QAAO,IAAI,CAI7B;IAEF,OAAO,CAAC,YAAY;IAMX,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAK5B,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAI5C,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gBAAgB,EAAE,aAAa,CAAC;KAChC;CACD"}
|
|
@@ -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,kBAAa,GAAG,GAAS,EAAE;YACjC,IAAI,CAAC,IAAI,CAAC,SAAS;gBAAE,OAAO;YAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpD,IAAI,KAAK;gBAAE,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC,CAAC;IAyBH,CAAC;IA9CA,IAAI,MAAM;QACT,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CACtC,CAAC,KAAK,EAA8B,EAAE,CAAC,KAAK,YAAY,iBAAiB,CACzE,CAAC;IACH,CAAC;IAmBO,YAAY,CAAC,IAAuB;QAC3C,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChC,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,IAAI;gBAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QACnD,CAAC;IACF,CAAC;IAEQ,iBAAiB;QACzB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACpE,CAAC;IAEQ,oBAAoB;QAC5B,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACvE,CAAC;IAEQ,OAAO,CAAC,OAA6B;QAC7C,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,SAAS;YAAE,IAAI,CAAC,aAAa,EAAE,CAAC;IACtE,CAAC;IAEQ,MAAM;QACd,OAAO,iBAAiB,CAAC,IAAI,CAAC,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"}
|