@nldd/design-system 0.29.3 → 0.30.0
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 +461 -208
- package/dist/assets/styles/shadow-resets.d.ts +22 -7
- package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
- package/dist/assets/styles/shadow-resets.js +30 -1
- package/dist/assets/styles/shadow-resets.js.map +1 -1
- package/dist/assets/styles/text-wrap.d.ts +20 -4
- package/dist/assets/styles/text-wrap.d.ts.map +1 -1
- package/dist/assets/styles/text-wrap.js +27 -5
- package/dist/assets/styles/text-wrap.js.map +1 -1
- package/dist/cdn/autoloader.js +139 -140
- package/dist/cdn/chunks/{accordion-qIt44RLF.js → accordion-DgR70Lf-.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-Dc6eccrJ.js → accordion-item-BDevWF9t.js} +6 -5
- package/dist/cdn/chunks/{activity-indicator-D3Trvd26.js → activity-indicator-B-iqA8XF.js} +6 -9
- package/dist/cdn/chunks/{admonition-SGAs1_Zu.js → admonition-PKX7ePb3.js} +6 -5
- package/dist/cdn/chunks/{avatar-vY0iiAzq.js → avatar-Bm_cbn5X.js} +6 -6
- package/dist/cdn/chunks/{avatar-group-6fsYuye5.js → avatar-group-5XxwtbbC.js} +15 -15
- package/dist/cdn/chunks/{badge-D2QCPBU6.js → badge-CpxDQfHS.js} +31 -29
- package/dist/cdn/chunks/{banner-N1LY9uhq.js → banner-Ccc9LgDk.js} +8 -8
- package/dist/cdn/chunks/{bar-split-view-CthxhXh8.js → bar-split-view-0yxggCZe.js} +5 -5
- package/dist/cdn/chunks/{blockquote-C-oSxq4b.js → blockquote-CmbDjlPB.js} +32 -31
- package/dist/cdn/chunks/{box-B_NqS9H1.js → box-DQjgR2YI.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-v-nEtdOp.js → breadcrumbs-C8yzb9pA.js} +6 -6
- package/dist/cdn/chunks/{button-DHLts-vo.js → button-D_KfPyHS.js} +113 -90
- package/dist/cdn/chunks/{button-bar-CPLhSKNo.js → button-bar-f-qcw_zA.js} +3 -3
- package/dist/cdn/chunks/{button-group-BIt4ERX1.js → button-group-Dq3q44jB.js} +2 -2
- package/dist/cdn/chunks/{card--GUIZiTn.js → card-CDT7nkKG.js} +4 -4
- package/dist/cdn/chunks/{cell-Ch6VVWYl.js → cell-B7ksoCyd.js} +6 -6
- package/dist/cdn/chunks/{checkbox-BNI1xGry.js → checkbox-CUReiYVg.js} +5 -5
- package/dist/cdn/chunks/{checkbox-field-BPtTyzq-.js → checkbox-field-CkQ8WLSq.js} +8 -8
- package/dist/cdn/chunks/{checkbox-group-DYElCUgt.js → checkbox-group-BpDzGuFk.js} +3 -3
- package/dist/cdn/chunks/{class-map-DwD-ilOn.js → class-map-BQWXee9F.js} +1 -1
- package/dist/cdn/chunks/{code-editor-DEJ-KbPY.js → code-editor-CwLcukqn.js} +15 -5
- package/dist/cdn/chunks/{code-viewer-CIiRvhkZ.js → code-viewer-CvSF5fyg.js} +37 -10
- package/dist/cdn/chunks/{codemirror-input-y7sZIE85.js → codemirror-input-CcaHTu9u.js} +5 -5
- package/dist/cdn/chunks/{collection-Cb7Ej5Ua.js → collection-DqqkdrVS.js} +8 -8
- package/dist/cdn/chunks/{combo-box-CDqddeN5.js → combo-box-BQ9jS1fP.js} +19 -10
- package/dist/cdn/chunks/{container-DZfSFaA9.js → container-BC5PiMvR.js} +83 -82
- package/dist/cdn/chunks/{custom-element-aLDsY95V.js → custom-element-DGdiDiuN.js} +1 -1
- package/dist/cdn/chunks/{date-field-C4xutZpO.js → date-field-Dmli_GlI.js} +12 -12
- package/dist/cdn/chunks/{date-picker-CtdRwpu7.js → date-picker-BCHBh6vd.js} +15 -17
- package/dist/cdn/chunks/{decorate-D28R7mwV.js → decorate-D2snH_th.js} +1 -1
- package/dist/cdn/chunks/described-by-mixin-Doan1yj6.js +106 -0
- package/dist/cdn/chunks/{description-cell-BYgUCAev.js → description-cell-QL0CUcxH.js} +7 -7
- package/dist/cdn/chunks/{dev-checks-C6cMs71h.js → dev-checks-BQsZ10CZ.js} +31 -11
- package/dist/cdn/chunks/{directive-helpers-B-J-xMIs.js → directive-helpers-BtIbEaBv.js} +1 -1
- package/dist/cdn/chunks/{dist-CHuLNwDW.js → dist-0sEOO4c9.js} +3 -3
- package/dist/cdn/chunks/{dist-Bo5l49Uq.js → dist-BX-aE56q.js} +1 -1
- package/dist/cdn/chunks/{dist-tBRozql6.js → dist-CJ-hLN4o.js} +2 -2
- package/dist/cdn/chunks/{dist-CSUsf3Jq.js → dist-CUCs0edm.js} +2 -2
- package/dist/cdn/chunks/{dist-BxjZtyyd.js → dist-CeovKDYB.js} +3 -3
- package/dist/cdn/chunks/{dist-Bnz9cU2A.js → dist-CoM5yDHD.js} +1 -1
- package/dist/cdn/chunks/{dist-Dr-gFR08.js → dist-DM49yEzE.js} +2 -2
- package/dist/cdn/chunks/{dist-DKy1SqZx.js → dist-DizTxYTi.js} +1 -1
- package/dist/cdn/chunks/{dist-CIFs0Nqx.js → dist-Dj0pXI2B.js} +1 -1
- package/dist/cdn/chunks/{dist-CON6NKtQ.js → dist-Dtn2rsM6.js} +1 -1
- package/dist/cdn/chunks/{dist-BpXie73W.js → dist-QheJD595.js} +1 -1
- package/dist/cdn/chunks/{divider-CTKk-YoH.js → divider-D8o0JPE2.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-DY_eja8b.js → document-tab-bar-BX6UhFBl.js} +10 -13
- package/dist/cdn/chunks/{dropdown-CruRvMW9.js → dropdown-afozwXVW.js} +5 -5
- package/dist/cdn/chunks/{file-field-D9iNPYKY.js → file-field-BKhUYcHf.js} +108 -106
- package/dist/cdn/chunks/{form-sQRdMSb4.js → form-DnZIiX9b.js} +1 -1
- package/dist/cdn/chunks/{form-actions-BuKwcAbF.js → form-actions-Ddg9vIVq.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-C1rOeFAh.js → form-associated-mixin-BMQQpMlL.js} +2 -2
- package/dist/cdn/chunks/form-field-DDBYuAl_.js +405 -0
- package/dist/cdn/chunks/form-field.i18n-D-3yEP-C.js +6 -0
- package/dist/cdn/chunks/form-section-Co0TM35-.js +78 -0
- package/dist/cdn/chunks/{full-bleed-section-DM0pv5Xt.js → full-bleed-section-DD8ibmsa.js} +3 -3
- package/dist/cdn/chunks/{hero-C8zDTYdo.js → hero-BYrY2MZc.js} +7 -7
- package/dist/cdn/chunks/{icon-CgFQSvEf.js → icon-BzeHXcdi.js} +4 -2
- package/dist/cdn/chunks/{icon-button-ya52TYkO.js → icon-button-BErQf42w.js} +65 -62
- package/dist/cdn/chunks/{icon-cell-DbqWtIl9.js → icon-cell-DGIMXKxK.js} +5 -5
- package/dist/cdn/chunks/{identity-DPerpCOw.js → identity-Cq-WnU6u.js} +30 -27
- package/dist/cdn/chunks/{if-defined-D5G_Kkpm.js → if-defined-CuY6t6gH.js} +1 -1
- package/dist/cdn/chunks/{image-eyP-R4JG.js → image-BjjyqV0V.js} +23 -22
- package/dist/cdn/chunks/{inline-dialog-z7jzLiRx.js → inline-dialog-Bk2G7f5r.js} +24 -23
- package/dist/cdn/chunks/{just-in-time-education-2O-UcSq5.js → just-in-time-education-Dxh5DNCy.js} +5 -5
- package/dist/cdn/chunks/{kanban-Dz3KcfW2.js → kanban-BvmtB9D9.js} +7 -8
- package/dist/cdn/chunks/{kanban-column-DQeIGacj.js → kanban-column-CJ2g7pgA.js} +9 -11
- package/dist/cdn/chunks/{keyboard-shortcut-CUxShTHr.js → keyboard-shortcut-BV5DFQtT.js} +3 -3
- package/dist/cdn/chunks/{languages-D_vPs_jY.js → languages-DJjHEjGl.js} +12 -12
- package/dist/cdn/chunks/{link-emVjLq3i.js → link-BcukwT5Y.js} +6 -6
- package/dist/cdn/chunks/{link-group-Cygt2XBP.js → link-group-Ci1q3uEd.js} +2 -2
- package/dist/cdn/chunks/{list-TKhlBlV_.js → list-CFFHWUSC.js} +9 -9
- package/dist/cdn/chunks/{list-item-D2On2ug1.js → list-item-Bg1NyOXd.js} +12 -13
- package/dist/cdn/chunks/{list-item-segment-XERq2wPj.js → list-item-segment-DJ8pk08-.js} +4 -4
- package/dist/cdn/chunks/{menu-b2UFN5q8.js → menu-BEjqhn1-.js} +10 -10
- package/dist/cdn/chunks/{menu-bar-BJ6PjqmT.js → menu-bar-DkjXy-TE.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-item-kRxuNXj5.js → menu-bar-item-3cJS29Ey.js} +6 -6
- package/dist/cdn/chunks/{menu-divider-Cpa6JbxR.js → menu-divider-CYmEimsb.js} +3 -3
- package/dist/cdn/chunks/{menu-group-DrwvnJ1C.js → menu-group-ggwAcgis.js} +4 -4
- package/dist/cdn/chunks/{menu-item-D7CoiS88.js → menu-item-BzH9H87h.js} +4 -4
- package/dist/cdn/chunks/{menu.template-BAqqSWm-.js → menu.template-PG82-P20.js} +6 -6
- package/dist/cdn/chunks/{modal-dialog-DOZuUmOi.js → modal-dialog-Bu7ETELf.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-CB-rGXUh.js → multi-line-text-field-CQTKNBN7.js} +6 -6
- package/dist/cdn/chunks/{navigation-split-view-Bc5AUAmC.js → navigation-split-view-elMoUjHh.js} +7 -13
- package/dist/cdn/chunks/{nl.generated-B194RR-y.js → nl.generated-Lu29XEF3.js} +1 -1
- package/dist/cdn/chunks/{notification-Cs-f2gLW.js → notification-DCjXGfbY.js} +7 -7
- package/dist/cdn/chunks/{number-field-DqQOrvOA.js → number-field-BUQUcG--.js} +8 -8
- package/dist/cdn/chunks/{one-half-one-half-section-BqiqGK-m.js → one-half-one-half-section-DiGkeUVr.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-3LPjeo2n.js → one-third-two-thirds-section-q_AP4qIJ.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-CZxm-CQt.js → one-time-code-field-BybS_l6h.js} +9 -10
- package/dist/cdn/chunks/{overflow-menu-DkyYNSg3.js → overflow-menu-Duey_XJs.js} +1 -1
- package/dist/cdn/chunks/{page-DYzfOL9K.js → page-BrIeWp1b.js} +46 -45
- package/dist/cdn/chunks/{page-footer-ChNrnN3t.js → page-footer-DPQg9Qbw.js} +5 -5
- package/dist/cdn/chunks/{page-section-mixin-7d4JVDUI.js → page-section-mixin-B8FbeXaK.js} +3 -3
- package/dist/cdn/chunks/{pagination-CYl78pZT.js → pagination-CfLJwflH.js} +37 -36
- package/dist/cdn/chunks/{password-field-Bg1lsru6.js → password-field-CmoopbNF.js} +36 -35
- package/dist/cdn/chunks/{popover-jP9P86r3.js → popover-CPAR4N_a.js} +5 -5
- package/dist/cdn/chunks/{progress-bar-C08-J2b3.js → progress-bar-vKGXvxfe.js} +10 -11
- package/dist/cdn/chunks/{progress-circle-_NDiM4Vw.js → progress-circle-dweisHzt.js} +8 -8
- package/dist/cdn/chunks/{radio-button-OdrY0lUT.js → radio-button-DE1K49_2.js} +4 -4
- package/dist/cdn/chunks/{radio-button-field-C8XD59fa.js → radio-button-field-DCrWiVoA.js} +7 -7
- package/dist/cdn/chunks/{radio-button-group-C7ntRQO7.js → radio-button-group-oLP_1cGy.js} +3 -3
- package/dist/cdn/chunks/{render-marked-Cdt8DyWh.js → render-marked-BE3kBc1D.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-C6q1_RaE.js → reorder-handle-cell-COCN6knt.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-mJLOiHhZ.js → reorder-handle-mixin-CG-KhmuT.js} +2 -2
- package/dist/cdn/chunks/{repeat-DLQZAi6Q.js → repeat-D69H_dsv.js} +2 -2
- package/dist/cdn/chunks/{rich-text-CR5iRjCn.js → rich-text-jEyIU58i.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-BUn7AC4_.js → row-header-mixin-BejxhOCs.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-B7Gy3Bmm.js → scroll-fade-Cae9xqXr.js} +2 -2
- package/dist/cdn/chunks/{search-field-B62sYRtl.js → search-field-B8woxFh-.js} +40 -37
- package/dist/cdn/chunks/{segmented-control-VU38x7xX.js → segmented-control-DbOi6Wk6.js} +7 -7
- package/dist/cdn/chunks/{shadow-resets-uUyDr3ia.js → shadow-resets-CNmJbdJw.js} +26 -11
- package/dist/cdn/chunks/{sheet-jMZkPdlu.js → sheet-bK663_K4.js} +3 -3
- package/dist/cdn/chunks/{shell-2Wa4Waez.js → shell-DLu1fHOH.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-v6riuRqk.js → side-by-side-split-view-vNhUmTiE.js} +4 -4
- package/dist/cdn/chunks/{sidebar-section-D3Zy_9y1.js → sidebar-section-CoE5F_h5.js} +8 -8
- package/dist/cdn/chunks/{simple-section-kCKeHqmt.js → simple-section-1v7a_ZgI.js} +3 -3
- package/dist/cdn/chunks/{skip-link-BeoObN4D.js → skip-link-C6B6mMkA.js} +5 -5
- package/dist/cdn/chunks/{slider-BSALXKxX.js → slider-BT-q6SP2.js} +12 -16
- package/dist/cdn/chunks/{spacer-CXXmb3su.js → spacer-DlFn3NtV.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-BV9uv10a.js → spacer-cell-Dy_twSDQ.js} +4 -4
- package/dist/cdn/chunks/{split-button-DE4NaJZs.js → split-button-URHM5eTx.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-BqLSYIwg.js → split-view-divider-DeLyeDBx.js} +2 -2
- package/dist/cdn/chunks/{stacked-split-view-CPCCQhHV.js → stacked-split-view-D0kiQJmL.js} +4 -4
- package/dist/cdn/chunks/{static-html-DtH5-I4g.js → static-html-CAKb1-Ht.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CBi4aCqy.js → status-bar-Bov-LrPy.js} +4 -4
- package/dist/cdn/chunks/{step-bar-BFzioHLn.js → step-bar-BLtsl_S_.js} +6 -6
- package/dist/cdn/chunks/{step-cell-fNIdX1cI.js → step-cell-cxM7vhtH.js} +5 -5
- package/dist/cdn/chunks/{stepper-CgmgV0qw.js → stepper-DeIcLT7G.js} +7 -7
- package/dist/cdn/chunks/{style-map-DhI1E0EI.js → style-map-CQX4CmTz.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-BYb0cq8H.js → swatch-picker-A7AU6Agu.js} +6 -6
- package/dist/cdn/chunks/{switch-fRxqZBKc.js → switch-D0UPsKws.js} +5 -5
- package/dist/cdn/chunks/{switch-field-BH6xhWUz.js → switch-field-D63lc5C0.js} +7 -7
- package/dist/cdn/chunks/{tab-bar-B66obS2x.js → tab-bar-CzGSRfKd.js} +8 -8
- package/dist/cdn/chunks/{table-s8GDKuuW.js → table-DfunY2Dn.js} +5 -5
- package/dist/cdn/chunks/{tag-TE8mlX1U.js → tag-DSWjjDBo.js} +5 -5
- package/dist/cdn/chunks/{term-Cm9BrUtJ.js → term-Bk9cdlCz.js} +12 -12
- package/dist/cdn/chunks/{text-DEk52Hq2.js → text-CDBiVulh.js} +4 -4
- package/dist/cdn/chunks/{text-cell-DxzojZsc.js → text-cell-DUOJAXZo.js} +40 -37
- package/dist/cdn/chunks/{text-editor-C_8jEhF2.js → text-editor-BIbYF0AB.js} +22 -12
- package/dist/cdn/chunks/{text-field-BgPlCLFl.js → text-field-CAnQNcXB.js} +6 -6
- package/dist/cdn/chunks/{text-wrap-DjzB16-4.js → text-wrap-COu7AY91.js} +13 -5
- package/dist/cdn/chunks/{time-field-Sde0_8NH.js → time-field-xriXgFMl.js} +14 -14
- package/dist/cdn/chunks/{time-picker-CZbLW9ap.js → time-picker-D3_KbYUW.js} +6 -6
- package/dist/cdn/chunks/{title-v-FXk0hs.js → title-HPn4c-s5.js} +5 -5
- package/dist/cdn/chunks/{title-cell-Bv9b6G_p.js → title-cell-BXMZkbXf.js} +51 -48
- package/dist/cdn/chunks/{toggle-button-DWlS9Rbg.js → toggle-button-DY22KEwY.js} +72 -56
- package/dist/cdn/chunks/{toggle-button-group-CetB0Cio.js → toggle-button-group-DsjZofEG.js} +2 -2
- package/dist/cdn/chunks/{token-BXJXjQwc.js → token-DwT2i71b.js} +5 -5
- package/dist/cdn/chunks/{token-field-CsxYfu8b.js → token-field-CQxSARGi.js} +11 -11
- package/dist/cdn/chunks/{toolbar-CUWVCKM6.js → toolbar-CaDvhCqm.js} +69 -68
- package/dist/cdn/chunks/{toolbar-item-BxzbSJdv.js → toolbar-item-BDl4ys-w.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-C4qJ_fkM.js → toolbar-title-yGR8Hzhp.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-D9FuZFnd.js → toolbar.styles-DlyfZkRq.js} +3 -3
- package/dist/cdn/chunks/{tooltip-D5XT5lRe.js → tooltip-BDiYghAz.js} +5 -5
- package/dist/cdn/chunks/{top-navigation-bar-C3azLUd1.js → top-navigation-bar-ibsjezN_.js} +18 -18
- package/dist/cdn/chunks/{top-title-bar-D1m-dREA.js → top-title-bar-BKdwEZfj.js} +6 -6
- package/dist/cdn/chunks/{two-thirds-one-third-section-D3VEGv6P.js → two-thirds-one-third-section-DmumCsGo.js} +3 -3
- package/dist/cdn/chunks/{validation-list-D7tDyaoK.js → validation-list-CXcJfvOJ.js} +61 -49
- package/dist/cdn/chunks/{visibility-mixin-D2VzUDfE.js → visibility-mixin-C7s59UlL.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-CSYlyubF.js → visually-hidden-CMzKHcSc.js} +2 -2
- package/dist/cdn/chunks/{window-6IQfu4dU.js → window-CSNx5wt1.js} +4 -4
- package/dist/cdn/chunks/{with-translations-Dr6Z41n9.js → with-translations-0oyNXfdD.js} +3 -3
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +26 -7
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +7 -5
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +4 -2
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +4 -2
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +2 -1
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/content/accordion/accordion-item.styles.d.ts.map +1 -1
- package/dist/components/content/accordion/accordion-item.styles.js +1 -0
- package/dist/components/content/accordion/accordion-item.styles.js.map +1 -1
- package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -1
- package/dist/components/content/admonition/admonition.styles.js +1 -0
- package/dist/components/content/admonition/admonition.styles.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.template.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.template.js +2 -1
- package/dist/components/content/blockquote/blockquote.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +30 -3
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +4 -0
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +8 -5
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +8 -5
- 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 +4 -1
- package/dist/components/content/identity/identity.styles.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +9 -8
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +4 -2
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +4 -2
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/text/text.d.ts +2 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +2 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +138 -73
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.i18n.d.ts +1 -0
- package/dist/components/forms/form-field/form-field.i18n.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.i18n.js +2 -0
- package/dist/components/forms/form-field/form-field.i18n.js.map +1 -1
- package/dist/components/forms/form-field/form-field.js +317 -149
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts +0 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +18 -97
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.template.d.ts +0 -2
- package/dist/components/forms/form-field/form-field.template.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.template.js +22 -15
- package/dist/components/forms/form-field/form-field.template.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +40 -16
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +47 -183
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/forms/form-section/form-section.styles.d.ts +2 -0
- package/dist/components/forms/form-section/form-section.styles.d.ts.map +1 -0
- package/dist/components/forms/form-section/form-section.styles.js +44 -0
- package/dist/components/forms/form-section/form-section.styles.js.map +1 -0
- package/dist/components/forms/form-section/form-section.template.d.ts +4 -0
- package/dist/components/forms/form-section/form-section.template.d.ts.map +1 -0
- package/dist/components/forms/form-section/form-section.template.js +19 -0
- package/dist/components/forms/form-section/form-section.template.js.map +1 -0
- package/dist/components/forms/validation-list/validation-list.d.ts +36 -6
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +75 -15
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.template.d.ts +1 -1
- package/dist/components/forms/validation-list/validation-list.template.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.template.js +2 -2
- package/dist/components/forms/validation-list/validation-list.template.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +10 -0
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +10 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +4 -6
- package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +3 -2
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.js +8 -8
- package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.truncate.d.ts +4 -3
- package/dist/components/inputs/file-field/file-field.truncate.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.truncate.js +8 -5
- package/dist/components/inputs/file-field/file-field.truncate.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.template.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.template.js +2 -1
- package/dist/components/inputs/password-field/password-field.template.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +3 -0
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +7 -6
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/slider/slider.template.js +2 -2
- package/dist/components/inputs/slider/slider.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +2 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +10 -0
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +18 -3
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +7 -3
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/layout/container/container.template.d.ts.map +1 -1
- package/dist/components/layout/container/container.template.js +2 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/layout/kanban/kanban-column.template.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban-column.template.js +5 -7
- package/dist/components/layout/kanban/kanban-column.template.js.map +1 -1
- package/dist/components/layout/kanban/kanban.template.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.template.js +2 -3
- package/dist/components/layout/kanban/kanban.template.js.map +1 -1
- package/dist/components/layout/page/page.template.d.ts.map +1 -1
- package/dist/components/layout/page/page.template.js +3 -2
- package/dist/components/layout/page/page.template.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +11 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +11 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js +2 -2
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +3 -2
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +3 -2
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +1 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +1 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +13 -13
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +13 -13
- 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 +4 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +8 -4
- 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 +8 -4
- 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 +4 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +7 -8
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.js +3 -2
- package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js +2 -3
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.template.js +3 -7
- package/dist/components/status-and-feedback/badge/badge.template.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +3 -4
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +2 -3
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
- package/dist/css/form.css +14 -0
- package/dist/css/global-open-font.css +0 -1
- package/dist/css/global.css +0 -1
- package/dist/css/rich-text.css +16 -4
- package/dist/css/text.css +3 -1
- package/dist/css/title.css +3 -1
- package/dist/css/variables.css +5 -0
- package/dist/nldd.min.js +1905 -1798
- 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 +18 -23
- package/dist/types/vue.d.ts +77 -82
- package/dist/utilities/autoloader.generated.d.ts.map +1 -1
- package/dist/utilities/autoloader.generated.js +0 -1
- package/dist/utilities/autoloader.generated.js.map +1 -1
- package/dist/utilities/described-by-mixin.d.ts +36 -1
- package/dist/utilities/described-by-mixin.d.ts.map +1 -1
- package/dist/utilities/described-by-mixin.js +132 -8
- package/dist/utilities/described-by-mixin.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +32 -13
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/file-name-breaks.d.ts +13 -0
- package/dist/utilities/file-name-breaks.d.ts.map +1 -0
- package/dist/utilities/file-name-breaks.js +27 -0
- package/dist/utilities/file-name-breaks.js.map +1 -0
- package/dist/utilities/same-items.d.ts +10 -0
- package/dist/utilities/same-items.d.ts.map +1 -0
- package/dist/utilities/same-items.js +14 -0
- package/dist/utilities/same-items.js.map +1 -0
- package/lint/data.generated.json +1 -1
- package/lint/fix.js +49 -6
- package/lint/rule-compiler.js +7 -3
- package/lint/rule.schema.json +12 -0
- package/package.json +2 -1
- package/dist/cdn/chunks/described-by-mixin-k3KNxaZ2.js +0 -62
- package/dist/cdn/chunks/form-field-BF-6cws6.js +0 -434
- package/dist/cdn/chunks/form-field.i18n-B-UZduXL.js +0 -3
- package/dist/cdn/chunks/form-section-Cp9xiFew.js +0 -64
- package/dist/css/form-section.css +0 -104
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-D2snH_th.js";
|
|
2
|
+
import { c as i, r as a, s as o } from "./custom-element-DGdiDiuN.js";
|
|
3
|
+
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { a as c, i as l, r as u } from "./described-by-mixin-Doan1yj6.js";
|
|
5
|
+
import { t as d } from "./owned-attribute-x9OCTy_4.js";
|
|
6
|
+
import { r as f, t as p } from "./render-marked-BE3kBc1D.js";
|
|
7
|
+
import { n as m, o as h, r as g } from "./text-wrap-COu7AY91.js";
|
|
8
|
+
import { n as _ } from "./breakpoints-Cwor8TRP.js";
|
|
9
|
+
import { a as v, t as y } from "./shadow-resets-CNmJbdJw.js";
|
|
10
|
+
import { t as b } from "./class-map-BQWXee9F.js";
|
|
11
|
+
import { a as x, n as S, r as C } from "./element-state-D-J_cHEV.js";
|
|
12
|
+
import { t as w } from "./with-translations-0oyNXfdD.js";
|
|
13
|
+
import { t as T } from "./form-field.i18n-D-3yEP-C.js";
|
|
14
|
+
// src/components/forms/form-field/form-field.styles.ts
|
|
15
|
+
var E = i(_.mdMin), D = o`
|
|
16
|
+
:host {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/* # Host */
|
|
22
|
+
|
|
23
|
+
:host {
|
|
24
|
+
--_form-field-gap: var(--primitives-space-4);
|
|
25
|
+
--_form-field-description-gap: var(--primitives-space-4);
|
|
26
|
+
|
|
27
|
+
${y}
|
|
28
|
+
display: block;
|
|
29
|
+
width: 100%;
|
|
30
|
+
container-type: inline-size;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([hidden]) {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/* # Block */
|
|
39
|
+
|
|
40
|
+
.form-field {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: var(--_form-field-gap);
|
|
44
|
+
isolation: isolate;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([label-alignment="left"]) .form-field,
|
|
48
|
+
:host([label-alignment="right"]) .form-field,
|
|
49
|
+
:host(:not([label-alignment]):state(form-label-left)) .form-field,
|
|
50
|
+
:host(:not([label-alignment]):state(form-label-right)) .form-field {
|
|
51
|
+
@container (min-width: ${E}) {
|
|
52
|
+
flex-direction: row;
|
|
53
|
+
gap: var(--semantics-forms-columns-gap);
|
|
54
|
+
align-items: start;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/* # Header */
|
|
60
|
+
|
|
61
|
+
.form-field__header {
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
display: flex;
|
|
64
|
+
/* Paints above .form-field__main so a label descender stays readable where it
|
|
65
|
+
overlaps the input focus ring — this is what lets the top-aligned --_form-field-gap stay
|
|
66
|
+
tight. Reset to auto in the side-by-side layout below (no vertical overlap there). */
|
|
67
|
+
z-index: 1;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([label-alignment="left"]) .form-field__header,
|
|
72
|
+
:host([label-alignment="right"]) .form-field__header,
|
|
73
|
+
:host(:not([label-alignment]):state(form-label-left)) .form-field__header,
|
|
74
|
+
:host(:not([label-alignment]):state(form-label-right)) .form-field__header {
|
|
75
|
+
@container (min-width: ${E}) {
|
|
76
|
+
z-index: auto;
|
|
77
|
+
width: var(--semantics-forms-label-column-width);
|
|
78
|
+
min-height: var(--semantics-controls-md-min-size);
|
|
79
|
+
flex-grow: 0;
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([label-alignment="right"]) .form-field__header,
|
|
86
|
+
:host(:not([label-alignment]):state(form-label-right)) .form-field__header {
|
|
87
|
+
@container (min-width: ${E}) {
|
|
88
|
+
align-items: end;
|
|
89
|
+
text-align: right;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host([label-alignment="left"]) .form-field__header,
|
|
94
|
+
:host(:not([label-alignment]):state(form-label-left)) .form-field__header {
|
|
95
|
+
@container (min-width: ${E}) {
|
|
96
|
+
align-items: start;
|
|
97
|
+
text-align: left;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.form-field__header.is-empty {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:host([label-alignment="left"]) .form-field__header.is-empty,
|
|
106
|
+
:host([label-alignment="right"]) .form-field__header.is-empty,
|
|
107
|
+
:host(:not([label-alignment]):state(form-label-left)) .form-field__header.is-empty,
|
|
108
|
+
:host(:not([label-alignment]):state(form-label-right)) .form-field__header.is-empty {
|
|
109
|
+
@container (min-width: ${E}) {
|
|
110
|
+
display: flex;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/* # Label */
|
|
116
|
+
|
|
117
|
+
.form-field__label {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
gap: var(--primitives-space-4);
|
|
120
|
+
align-items: baseline;
|
|
121
|
+
--context-content-color: var(--semantics-content-color);
|
|
122
|
+
color: var(--semantics-content-color);
|
|
123
|
+
font: var(--primitives-font-body-md-regular-flat);
|
|
124
|
+
${h}
|
|
125
|
+
text-wrap: pretty;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.form-field__label-text {
|
|
129
|
+
min-width: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host([label-alignment="left"]) .form-field__label,
|
|
133
|
+
:host([label-alignment="right"]) .form-field__label,
|
|
134
|
+
:host(:not([label-alignment]):state(form-label-left)) .form-field__label,
|
|
135
|
+
:host(:not([label-alignment]):state(form-label-right)) .form-field__label {
|
|
136
|
+
@container (min-width: ${E}) {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
gap: var(--primitives-space-0);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:host([label-alignment="right"]) .form-field__label,
|
|
144
|
+
:host(:not([label-alignment]):state(form-label-right)) .form-field__label {
|
|
145
|
+
@container (min-width: ${E}) {
|
|
146
|
+
align-items: end;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:host([label-alignment="left"]) .form-field__label,
|
|
151
|
+
:host(:not([label-alignment]):state(form-label-left)) .form-field__label {
|
|
152
|
+
@container (min-width: ${E}) {
|
|
153
|
+
align-items: start;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
/* # Optional indicator */
|
|
159
|
+
|
|
160
|
+
.form-field__optional {
|
|
161
|
+
--context-content-color: var(--semantics-content-secondary-color);
|
|
162
|
+
color: var(--semantics-content-secondary-color);
|
|
163
|
+
font: var(--primitives-font-body-xs-regular-tight);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
/* # Supporting label */
|
|
168
|
+
|
|
169
|
+
.form-field__supporting-label {
|
|
170
|
+
--context-content-color: var(--semantics-content-secondary-color);
|
|
171
|
+
color: var(--semantics-content-secondary-color);
|
|
172
|
+
font: var(--primitives-font-body-xs-regular-tight);
|
|
173
|
+
${h}
|
|
174
|
+
text-wrap: pretty;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/* # Main */
|
|
179
|
+
|
|
180
|
+
.form-field__main {
|
|
181
|
+
display: flex;
|
|
182
|
+
min-width: 0;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
flex-grow: 1;
|
|
185
|
+
flex-shrink: 1;
|
|
186
|
+
flex-basis: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
::slotted(nldd-validation-list) {
|
|
190
|
+
margin-block-start: var(--_form-field-description-gap);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
/* # Help text */
|
|
195
|
+
|
|
196
|
+
/* The nldd-text in the slot takes the look of help text, as the <p> the
|
|
197
|
+
field draws for the attribute does (see slottedText). Set here and not as
|
|
198
|
+
properties on it, so it holds before nldd-text is defined and no
|
|
199
|
+
framework writes them back. !important for the reason slottedText gives. */
|
|
200
|
+
${v("[slot=\"help-text\"]")}
|
|
201
|
+
|
|
202
|
+
::slotted([slot="help-text"]) {
|
|
203
|
+
margin-block-start: var(--_form-field-description-gap) !important;
|
|
204
|
+
--context-content-color: var(--semantics-content-color) !important;
|
|
205
|
+
color: var(--semantics-content-color) !important;
|
|
206
|
+
font: var(--primitives-font-body-sm-regular-snug) !important;
|
|
207
|
+
${m(g)}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* Snug and not tight: help text can run to a paragraph, and body text takes
|
|
211
|
+
a line height of 1.5. */
|
|
212
|
+
.form-field__help-text {
|
|
213
|
+
margin: var(--_form-field-description-gap) 0 0;
|
|
214
|
+
--context-content-color: var(--semantics-content-color);
|
|
215
|
+
color: var(--semantics-content-color);
|
|
216
|
+
font: var(--primitives-font-body-sm-regular-snug);
|
|
217
|
+
${g}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
`;
|
|
222
|
+
// src/components/forms/form-field/form-field.template.ts
|
|
223
|
+
function O(e) {
|
|
224
|
+
return t`<span class="form-field__optional">${e}</span>`;
|
|
225
|
+
}
|
|
226
|
+
function k(e) {
|
|
227
|
+
let r = !!e.label, i = !!e.supportingLabel, a = !r && !i, o = t`
|
|
228
|
+
<span class="form-field__label-text">${p(e.label)}</span>
|
|
229
|
+
${e.optional ? O(e._t("components.form-field.optional-label")) : n}
|
|
230
|
+
`, s = t`
|
|
231
|
+
<div class="form-field__header ${b({ "is-empty": a })}">
|
|
232
|
+
${r && e.group ? t`
|
|
233
|
+
<span class="form-field__label">
|
|
234
|
+
${o}
|
|
235
|
+
</span>
|
|
236
|
+
` : n}
|
|
237
|
+
${r && !e.group ? t`
|
|
238
|
+
<label class="form-field__label"
|
|
239
|
+
@click=${(t) => e._focusInput(t)}
|
|
240
|
+
>
|
|
241
|
+
${o}
|
|
242
|
+
</label>
|
|
243
|
+
` : n}
|
|
244
|
+
${i ? t`
|
|
245
|
+
<span class="form-field__supporting-label">${p(e.supportingLabel)}</span>
|
|
246
|
+
` : n}
|
|
247
|
+
</div>
|
|
248
|
+
`;
|
|
249
|
+
return t`
|
|
250
|
+
<div class="form-field">
|
|
251
|
+
${s}
|
|
252
|
+
<div class="form-field__main">
|
|
253
|
+
<slot></slot>
|
|
254
|
+
<slot name="help-text">
|
|
255
|
+
${e.helpText ? t`
|
|
256
|
+
<p class="form-field__help-text">
|
|
257
|
+
${p(e.helpText)}
|
|
258
|
+
</p>
|
|
259
|
+
` : n}
|
|
260
|
+
</slot>
|
|
261
|
+
</div>
|
|
262
|
+
</div>
|
|
263
|
+
`;
|
|
264
|
+
}
|
|
265
|
+
// src/components/forms/form-field/form-field.ts
|
|
266
|
+
var A, j = (e) => e.getAttribute("slot") === "help-text";
|
|
267
|
+
function M(e) {
|
|
268
|
+
return e instanceof HTMLInputElement && e.type !== "hidden" || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e.constructor.isFormInput === !0;
|
|
269
|
+
}
|
|
270
|
+
var N = (e) => e.tagName.toLowerCase() === "nldd-toolbar";
|
|
271
|
+
function P(e, t) {
|
|
272
|
+
for (let n = e.parentElement; n && n !== t; n = n.parentElement) if (N(n)) return !0;
|
|
273
|
+
return !1;
|
|
274
|
+
}
|
|
275
|
+
function F() {
|
|
276
|
+
return `nldd-field-input-${crypto.randomUUID?.() ?? Math.random().toString(36).slice(2)}`;
|
|
277
|
+
}
|
|
278
|
+
var I = (A = class extends w(e, T) {
|
|
279
|
+
constructor(...e) {
|
|
280
|
+
super(...e), this.labelAlignment = void 0, this.formLabelAlignment = void 0, this.label = "", this.supportingLabel = "", this.helpText = "", this.optional = !1, this.group = !1, this._childObserver = null, this._lists = [], this._appliedLabel = null, this._input = null, this._describing = null, this._pendingTags = /* @__PURE__ */ new Set(), this._inputs = [], this._grouped = !1, this._settled = !1;
|
|
281
|
+
}
|
|
282
|
+
render() {
|
|
283
|
+
return k(this);
|
|
284
|
+
}
|
|
285
|
+
updated(e) {
|
|
286
|
+
this._settled ? e.has("label") || e.has("optional") || e.has("translations") || e.has("group") ? this._onSlotChange() : (e.has("supportingLabel") || e.has("helpText")) && this._syncDescription() : this._settled = !0;
|
|
287
|
+
}
|
|
288
|
+
willUpdate(e) {
|
|
289
|
+
super.willUpdate(e), e.has("formLabelAlignment") && x(this, "form-label", this.formLabelAlignment, ["left", "right"]);
|
|
290
|
+
}
|
|
291
|
+
connectedCallback() {
|
|
292
|
+
super.connectedCallback(), this._childObserver = new MutationObserver((e) => {
|
|
293
|
+
let t = (e) => e.target.parentElement === this, n = (e) => this._inputs.some((t) => t.contains(e.target)), r = (e) => !!e.target.closest?.("nldd-validation-list"), i = (e) => [...e.addedNodes, ...e.removedNodes].some((e) => e.nodeType === Node.ELEMENT_NODE);
|
|
294
|
+
e.some((e) => t(e) && (e.attributeName === "slot" || e.attributeName === "for") || i(e) && !n(e) && !r(e)) ? this._onSlotChange() : e.some((e) => t(e) && e.attributeName === "hidden" && j(e.target)) && this._syncDescription();
|
|
295
|
+
}), this._childObserver.observe(this, {
|
|
296
|
+
childList: !0,
|
|
297
|
+
subtree: !0,
|
|
298
|
+
attributes: !0,
|
|
299
|
+
attributeFilter: [
|
|
300
|
+
"slot",
|
|
301
|
+
"hidden",
|
|
302
|
+
"for"
|
|
303
|
+
]
|
|
304
|
+
}), this.hasUpdated && this._onSlotChange();
|
|
305
|
+
}
|
|
306
|
+
firstUpdated() {
|
|
307
|
+
this._onSlotChange();
|
|
308
|
+
}
|
|
309
|
+
disconnectedCallback() {
|
|
310
|
+
super.disconnectedCallback(), this._childObserver?.disconnect(), this._input && this._release(this._input), this._input = null;
|
|
311
|
+
for (let e of this._lists) this._letGo(e);
|
|
312
|
+
this._lists = [], this._describing && l(this._describing, this), this._describing = null;
|
|
313
|
+
}
|
|
314
|
+
_awaitUndefined() {
|
|
315
|
+
for (let e of Array.from(this.querySelectorAll(":not(:defined)"))) {
|
|
316
|
+
let t = e.localName;
|
|
317
|
+
if (this._pendingTags.has(t)) continue;
|
|
318
|
+
this._pendingTags.add(t);
|
|
319
|
+
let n = new WeakRef(this);
|
|
320
|
+
customElements.whenDefined(t).then(() => {
|
|
321
|
+
let e = n.deref();
|
|
322
|
+
e && (e._pendingTags.delete(t), e.isConnected && e._onSlotChange());
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
_release(e) {
|
|
327
|
+
let t = this._labelAttribute(e);
|
|
328
|
+
t && d(e, t, "", this._appliedLabel), this._appliedLabel = null;
|
|
329
|
+
}
|
|
330
|
+
_focusInput(e) {
|
|
331
|
+
let t = this._findInputs()[0];
|
|
332
|
+
t && (e.preventDefault(), t.focus());
|
|
333
|
+
}
|
|
334
|
+
_onSlotChange() {
|
|
335
|
+
this._awaitUndefined();
|
|
336
|
+
let e = this._findInputs();
|
|
337
|
+
this._inputs = e;
|
|
338
|
+
let t = e[0];
|
|
339
|
+
C(this, "has-input", !!t), import.meta.env?.DEV && C(this, "multiple-inputs", e.length > 1), this._applyGroup();
|
|
340
|
+
let n = this.group ? void 0 : t;
|
|
341
|
+
this._input && this._input !== n && this._release(this._input), this._input = n ?? null, t ? ("inputId" in t ? t.inputId = t.inputId || F() : t.id || (t.id = F()), n && this._applyAccessibleLabel(n), this._adoptValidationLists(t, e), this._syncDescription()) : (import.meta.env?.DEV && C(this, "list-reads-first-control", !1), this._adoptValidationLists(null, e), this._syncDescription());
|
|
342
|
+
}
|
|
343
|
+
_applyGroup() {
|
|
344
|
+
if (!this.group && !this._grouped) return;
|
|
345
|
+
let e = S(this), t = this.group ? this._accessibleName() : "";
|
|
346
|
+
e.role = t ? "group" : null, e.ariaLabel = t || null, this._grouped = this.group;
|
|
347
|
+
}
|
|
348
|
+
_applyAccessibleLabel(e) {
|
|
349
|
+
let t = this._labelAttribute(e);
|
|
350
|
+
t && (this._appliedLabel = d(e, t, this._accessibleName(), this._appliedLabel));
|
|
351
|
+
}
|
|
352
|
+
_labelAttribute(e) {
|
|
353
|
+
return "accessibleLabel" in e ? "accessible-label" : e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement ? "aria-label" : null;
|
|
354
|
+
}
|
|
355
|
+
_accessibleName() {
|
|
356
|
+
let e = f(this.label);
|
|
357
|
+
return !e || !this.optional ? e : this._t("components.form-field.optional-accessible-label", { label: e });
|
|
358
|
+
}
|
|
359
|
+
_adoptValidationLists(e, t) {
|
|
360
|
+
let n = Array.from(this.children).filter((e) => e.tagName.toLowerCase() === "nldd-validation-list"), r = this.group ? this._accessibleName() ? this : null : void 0;
|
|
361
|
+
for (let i of n) {
|
|
362
|
+
let n = !i.getAttribute("for");
|
|
363
|
+
n && (i.control = e), i.describes = n ? r : void 0;
|
|
364
|
+
let a = n && this.group ? t : [];
|
|
365
|
+
c(i.judgedBy, a) || (i.judgedBy = [...a]);
|
|
366
|
+
}
|
|
367
|
+
for (let e of this._lists) n.includes(e) || this._letGo(e);
|
|
368
|
+
if (this._lists = n, !import.meta.env?.DEV) return;
|
|
369
|
+
let i = n.some((e) => !e.getAttribute("for") && Array.from(e.children).some((e) => e.hasAttribute("match") || e.hasAttribute("minlength") || e.hasAttribute("maxlength")));
|
|
370
|
+
C(this, "list-reads-first-control", i && t.length > 1);
|
|
371
|
+
}
|
|
372
|
+
_letGo(e) {
|
|
373
|
+
(e.parentElement?.localName !== "nldd-form-field" || e.parentElement === this) && (e.getAttribute("for") || (e.control = null), e.describes = void 0, e.judgedBy?.length && (e.judgedBy = []));
|
|
374
|
+
}
|
|
375
|
+
_findInputs() {
|
|
376
|
+
let e = [], t = Array.from(this.children).filter((e) => !j(e) && !N(e));
|
|
377
|
+
for (let n of t) if (M(n)) e.push(n);
|
|
378
|
+
else for (let t of Array.from(n.querySelectorAll("*"))) M(t) && !P(t, n) && !e.some((e) => e.contains(t)) && e.push(t);
|
|
379
|
+
return e;
|
|
380
|
+
}
|
|
381
|
+
_syncDescription() {
|
|
382
|
+
let e = this.group ? this._accessibleName() ? this : null : this._input;
|
|
383
|
+
if (this._describing && this._describing !== e && l(this._describing, this), this._describing = e, !e) return;
|
|
384
|
+
let t = this._helpTexts(), n = f(this.supportingLabel).trim(), r = f(this.helpText).trim();
|
|
385
|
+
u(e, this, "supporting-label", n ? [n] : []), u(e, this, "help-text", t.length ? t.filter((e) => !e.hidden) : r ? [r] : []);
|
|
386
|
+
}
|
|
387
|
+
_helpTexts() {
|
|
388
|
+
return Array.from(this.children).filter(j);
|
|
389
|
+
}
|
|
390
|
+
}, A.styles = D, A);
|
|
391
|
+
r([a({
|
|
392
|
+
type: String,
|
|
393
|
+
attribute: "label-alignment",
|
|
394
|
+
reflect: !0
|
|
395
|
+
})], I.prototype, "labelAlignment", void 0), r([a({ attribute: !1 })], I.prototype, "formLabelAlignment", void 0), r([a({ type: String })], I.prototype, "label", void 0), r([a({
|
|
396
|
+
type: String,
|
|
397
|
+
attribute: "supporting-label"
|
|
398
|
+
})], I.prototype, "supportingLabel", void 0), r([a({
|
|
399
|
+
type: String,
|
|
400
|
+
attribute: "help-text"
|
|
401
|
+
})], I.prototype, "helpText", void 0), r([a({ type: Boolean })], I.prototype, "optional", void 0), r([a({
|
|
402
|
+
type: Boolean,
|
|
403
|
+
reflect: !0
|
|
404
|
+
})], I.prototype, "group", void 0), I = r([s("nldd-form-field")], I);
|
|
405
|
+
export { I as NLDDFormField };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { n as e, o as t, t as n } from "./decorate-D2snH_th.js";
|
|
2
|
+
import { s as r } from "./custom-element-DGdiDiuN.js";
|
|
3
|
+
import { t as i } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as a } from "./shadow-resets-CNmJbdJw.js";
|
|
5
|
+
// src/components/forms/form-section/form-section.styles.ts
|
|
6
|
+
var o = r`
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/* # Host */
|
|
10
|
+
|
|
11
|
+
:host {
|
|
12
|
+
--_form-section-header-gap: var(--primitives-space-8);
|
|
13
|
+
--_form-section-fields-gap: var(--semantics-forms-fields-gap);
|
|
14
|
+
|
|
15
|
+
${a}
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host([hidden]) {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
/* # Block */
|
|
26
|
+
|
|
27
|
+
/* Closer to the header than a section stands to what came before it: the
|
|
28
|
+
header belongs to what is under it, and the same distance on both sides
|
|
29
|
+
would leave it floating between the two. */
|
|
30
|
+
.form-section {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: var(--_form-section-header-gap);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/* # Main */
|
|
38
|
+
|
|
39
|
+
/* A gap and not a margin: a hidden child, such as a hidden input of a
|
|
40
|
+
server-rendered formset, has no box and so takes no part in it. */
|
|
41
|
+
.form-section__main {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
gap: var(--_form-section-fields-gap);
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
// src/components/forms/form-section/form-section.template.ts
|
|
48
|
+
function s(e) {
|
|
49
|
+
return t`
|
|
50
|
+
<div class="form-section">
|
|
51
|
+
<div class="form-section__header"
|
|
52
|
+
hidden
|
|
53
|
+
>
|
|
54
|
+
<slot
|
|
55
|
+
name="header"
|
|
56
|
+
@slotchange=${e._onHeaderSlotChange}
|
|
57
|
+
></slot>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="form-section__main">
|
|
60
|
+
<slot></slot>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
`;
|
|
64
|
+
}
|
|
65
|
+
// src/components/forms/form-section/form-section.ts
|
|
66
|
+
var c = class extends e {
|
|
67
|
+
constructor(...e) {
|
|
68
|
+
super(...e), this._onHeaderSlotChange = (e) => {
|
|
69
|
+
let t = e.target;
|
|
70
|
+
t.parentElement.hidden = t.assignedElements().length === 0;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
return s(this);
|
|
75
|
+
}
|
|
76
|
+
}, l = (c.styles = o, c);
|
|
77
|
+
l = n([i("nldd-form-section")], l);
|
|
78
|
+
export { l as NLDDFormSection };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as e, o as t, t as n } from "./decorate-
|
|
2
|
-
import { c as r, r as i, s as a } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, t as n } from "./decorate-D2snH_th.js";
|
|
2
|
+
import { c as r, r as i, s as a } from "./custom-element-DGdiDiuN.js";
|
|
3
3
|
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
-
import { n as c, t as l } from "./page-section-mixin-
|
|
5
|
+
import { n as c, t as l } from "./page-section-mixin-B8FbeXaK.js";
|
|
6
6
|
import { n as u } from "./breakpoints-Cwor8TRP.js";
|
|
7
7
|
// src/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.ts
|
|
8
8
|
var d = r(u.smMax), f = r(u.mdMin), p = r(u.mdMax), m = r(u.lgMin), h = a`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import { c as i, n as a, r as o, s } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-D2snH_th.js";
|
|
2
|
+
import { c as i, n as a, r as o, s } from "./custom-element-DGdiDiuN.js";
|
|
3
3
|
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
-
import { n as l, t as u } from "./page-section-mixin-
|
|
4
|
+
import { n as l, t as u } from "./page-section-mixin-B8FbeXaK.js";
|
|
5
5
|
import { t as d } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
6
|
import { n as f } from "./breakpoints-Cwor8TRP.js";
|
|
7
|
-
import {
|
|
7
|
+
import { i as p, n as m, o as h, t as g } from "./shadow-resets-CNmJbdJw.js";
|
|
8
8
|
import { r as _ } from "./element-state-D-J_cHEV.js";
|
|
9
9
|
// src/components/layout/page-sections/hero/hero.styles.ts
|
|
10
10
|
var v = i(f.smMax), y = i(f.mdMin), b = i(f.mdMax), x = i(f.lgMin), S = s`
|
|
@@ -70,7 +70,7 @@ var v = i(f.smMax), y = i(f.mdMin), b = i(f.mdMax), x = i(f.lgMin), S = s`
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
:host([main-background="base"]) .hero__main {
|
|
73
|
-
${
|
|
73
|
+
${h}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
|
|
@@ -176,7 +176,7 @@ var v = i(f.smMax), y = i(f.mdMin), b = i(f.mdMax), x = i(f.lgMin), S = s`
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
.hero__media ::slotted(img) {
|
|
179
|
-
${
|
|
179
|
+
${p}
|
|
180
180
|
display: block !important;
|
|
181
181
|
width: 100% !important;
|
|
182
182
|
height: 100% !important;
|
|
@@ -207,7 +207,7 @@ var v = i(f.smMax), y = i(f.mdMin), b = i(f.mdMax), x = i(f.lgMin), S = s`
|
|
|
207
207
|
--context-background-color: var(--_hero-main-background-color);
|
|
208
208
|
--context-content-color: var(--_hero-main-content-color);
|
|
209
209
|
--context-content-secondary-color: var(--_hero-main-secondary-color);
|
|
210
|
-
${
|
|
210
|
+
${m}
|
|
211
211
|
--context-content-accent-color: var(--_hero-main-content-color);
|
|
212
212
|
--context-content-success-color: var(--_hero-main-content-color);
|
|
213
213
|
--context-content-warning-color: var(--_hero-main-content-color);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { i as t, n, o as r, r as i, t as a } from "./decorate-
|
|
3
|
-
import { n as o, r as s, s as c } from "./custom-element-
|
|
2
|
+
import { i as t, n, o as r, r as i, t as a } from "./decorate-D2snH_th.js";
|
|
3
|
+
import { n as o, r as s, s as c } from "./custom-element-DGdiDiuN.js";
|
|
4
4
|
import { t as l } from "./custom-element-BW8Ua4c7.js";
|
|
5
5
|
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
6
|
import { n as d, r as f, t as p } from "./directive-CwRgozUW.js";
|
|
@@ -195,6 +195,7 @@ var b = {
|
|
|
195
195
|
switch: "arrow-left-right",
|
|
196
196
|
swap: "arrow-left-right",
|
|
197
197
|
sort: "arrow-up-arrow-down",
|
|
198
|
+
upgrade: "arrow-up-circle",
|
|
198
199
|
undo: "arrow-u-turn-backward",
|
|
199
200
|
redo: "arrow-u-turn-forward",
|
|
200
201
|
notification: "bell",
|
|
@@ -350,6 +351,7 @@ var b = {
|
|
|
350
351
|
info: "info-circle",
|
|
351
352
|
information: "info-circle",
|
|
352
353
|
kanban: "kanban-columns",
|
|
354
|
+
translate: "languages",
|
|
353
355
|
idea: "lightbulb",
|
|
354
356
|
energy: "lightning",
|
|
355
357
|
"energy-filled": "lightning-filled",
|