@nldd/design-system 0.26.2 → 0.26.4
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/README.md +7 -7
- package/custom-elements.json +1058 -147
- package/dist/cdn/autoloader.js +141 -141
- package/dist/cdn/chunks/{accordion-item-Cn1UDWtD.js → accordion-item-BXEHwzcv.js} +4 -4
- package/dist/cdn/chunks/{accordion-CCuKxlsg.js → accordion-qXirmNBj.js} +4 -4
- package/dist/cdn/chunks/{activity-indicator-BM_atCTY.js → activity-indicator-DP61AhsJ.js} +5 -5
- package/dist/cdn/chunks/{admonition-CqDce27_.js → admonition-RnRSNAri.js} +4 -4
- package/dist/cdn/chunks/{avatar-Dl2tOfc2.js → avatar-DsexiOhH.js} +6 -6
- package/dist/cdn/chunks/{avatar-group-Br3qBaow.js → avatar-group-BrfrpXvd.js} +15 -15
- package/dist/cdn/chunks/{badge-DjjAl4mn.js → badge-BiQFOq2l.js} +5 -5
- package/dist/cdn/chunks/{banner-s5xMqoEU.js → banner-42zIYAEN.js} +7 -7
- package/dist/cdn/chunks/{bar-split-view-B6Mv_cw-.js → bar-split-view-CjYEp276.js} +5 -5
- package/dist/cdn/chunks/{blockquote-CRFPXI9u.js → blockquote-qf4hJYvm.js} +3 -3
- package/dist/cdn/chunks/{box-CSZyj31o.js → box-CWyg7sbR.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-DzjbOB7o.js → breadcrumbs-BaHjYdz8.js} +5 -5
- package/dist/cdn/chunks/{button-B7OGt_dX.js → button-CKV-jwGY.js} +10 -10
- package/dist/cdn/chunks/{button-bar-CvDkir22.js → button-bar-DeJ81759.js} +3 -3
- package/dist/cdn/chunks/{button-group-Bi3dr9Go.js → button-group-CuRkiHR5.js} +2 -2
- package/dist/cdn/chunks/{card-DceO3pMp.js → card-DxeUNE3V.js} +4 -4
- package/dist/cdn/chunks/{cell-Bgp9n0yQ.js → cell-QaG8b-Qk.js} +6 -6
- package/dist/cdn/chunks/{checkbox-C1F0Q3g8.js → checkbox-V0YerUKf.js} +5 -5
- package/dist/cdn/chunks/{checkbox-field-DGKc530M.js → checkbox-field-DeySECgv.js} +7 -7
- package/dist/cdn/chunks/{checkbox-group-x9Ua2a06.js → checkbox-group-DFNy1y-A.js} +3 -3
- package/dist/cdn/chunks/{class-map-CAVKoa31.js → class-map-CmgI2Tu-.js} +1 -1
- package/dist/cdn/chunks/{code-editor-C0U5qVW2.js → code-editor-BBMbUJ4d.js} +5 -5
- package/dist/cdn/chunks/{code-viewer-C_DzKPSv.js → code-viewer-B8jse0-5.js} +24 -27
- package/dist/cdn/chunks/{codemirror-input-BmIE22aU.js → codemirror-input-BEotDTtZ.js} +5 -5
- package/dist/cdn/chunks/{collection-BZK9NzrQ.js → collection-DRoS7Ona.js} +8 -8
- package/dist/cdn/chunks/{combo-box-DJrQ-2Wr.js → combo-box-DA1ZQJJS.js} +10 -10
- package/dist/cdn/chunks/{container-BT96Wlz6.js → container-F1i2pmko.js} +2 -2
- package/dist/cdn/chunks/{custom-element-D5bstafw.js → custom-element-DD4ffKRs.js} +1 -1
- package/dist/cdn/chunks/{date-field-B8GcDwkD.js → date-field-DVgisQnm.js} +12 -12
- package/dist/cdn/chunks/{date-picker-Byi-fA0A.js → date-picker-BaDTota3.js} +10 -10
- package/dist/cdn/chunks/{decorate-Cjb3GqlZ.js → decorate-CeGXihRM.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-ZWpyWEyB.js → described-by-mixin-qFatR9dF.js} +2 -2
- package/dist/cdn/chunks/{description-cell-DRXRiZGw.js → description-cell-D45N4P1X.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-BYWMWeug.js → dev-checks-CkCD0tPh.js} +50 -0
- package/dist/cdn/chunks/{directive-helpers-mh9SNf0j.js → directive-helpers-B9pcQxsE.js} +1 -1
- package/dist/cdn/chunks/{dist-CKGgPGjj.js → dist-BS_pQgb6.js} +2 -2
- package/dist/cdn/chunks/{dist-DCzCfm9V.js → dist-Cl-rXzh7.js} +1 -1
- package/dist/cdn/chunks/{dist-BBtyEGZQ.js → dist-DJQUgOKW.js} +3 -3
- package/dist/cdn/chunks/{dist-C4o16iKF.js → dist-DjlGttcc.js} +1 -1
- package/dist/cdn/chunks/{dist-jyyZH0d2.js → dist-Dsyc1RGG.js} +1 -1
- package/dist/cdn/chunks/{dist-BlHWe6Ns.js → dist-jTL_Kil1.js} +1 -1
- package/dist/cdn/chunks/{dist-BfJ8w6Dz.js → dist-mxb0NzAU.js} +1 -1
- package/dist/cdn/chunks/{dist-iYv1GHSb.js → dist-n8aCu6Kg.js} +2 -2
- package/dist/cdn/chunks/{dist-CT0CdAxb.js → dist-rjQNj-KZ.js} +2 -2
- package/dist/cdn/chunks/{dist-1yCEk2Pe.js → dist-v62GtoI6.js} +1 -1
- package/dist/cdn/chunks/{dist-BIhRNYZs.js → dist-v7yvd26H.js} +3 -3
- package/dist/cdn/chunks/{divider-CeAw8gBP.js → divider-CtMx3Byp.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-rIsC6EZp.js → document-tab-bar-SKSf69FX.js} +19 -16
- package/dist/cdn/chunks/{dropdown-MEzKo0TQ.js → dropdown-se1zjYlw.js} +5 -5
- package/dist/cdn/chunks/{file-field--wivtgZv.js → file-field-DW_Xt5O3.js} +13 -13
- package/dist/cdn/chunks/{floating-ui.dom-BvAAdCVe.js → floating-ui.dom-CB34tcZx.js} +1 -1
- package/dist/cdn/chunks/{form-ByjlUZuR.js → form-C9-eW3zc.js} +1 -1
- package/dist/cdn/chunks/{form-actions-YK7n_jse.js → form-actions-Cy5tH1nk.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-BCzChLUO.js → form-associated-mixin-CA0F9CPx.js} +2 -2
- package/dist/cdn/chunks/{form-field-y-h-k8x5.js → form-field-BMWm8VGS.js} +49 -5
- package/dist/cdn/chunks/{form-section-jWj88aQa.js → form-section-DrrXc4wZ.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-h6CrFe8F.js → full-bleed-section-6QL0av4x.js} +3 -3
- package/dist/cdn/chunks/{hero-Dy1tW9gU.js → hero-BThWV3MR.js} +4 -4
- package/dist/cdn/chunks/{icon-m8JXbN5F.js → icon-CVM6X_F1.js} +2 -2
- package/dist/cdn/chunks/{icon-button-B0Lb2ccT.js → icon-button-h_sEz0Ia.js} +15 -11
- package/dist/cdn/chunks/{icon-cell-byBTzcEn.js → icon-cell-C3Ygercd.js} +5 -5
- package/dist/cdn/chunks/{identity-BpUMGka9.js → identity-BR0KxjM5.js} +6 -6
- package/dist/cdn/chunks/{if-defined-Duzrh8bb.js → if-defined-CvQli6P0.js} +1 -1
- package/dist/cdn/chunks/{image-DfpFBPj1.js → image-D8H73DIj.js} +8 -8
- package/dist/cdn/chunks/{inline-dialog-D6CMJnYk.js → inline-dialog-Dlu3bneh.js} +6 -6
- package/dist/cdn/chunks/{interest-invoker-BY95Duqo.js → interest-invoker-CfOJaqZQ.js} +1 -1
- package/dist/cdn/chunks/{just-in-time-education-_1kTZuGb.js → just-in-time-education-DG0teV5g.js} +6 -6
- package/dist/cdn/chunks/{kanban-DFGaEwfP.js → kanban-MNLyqki_.js} +5 -5
- package/dist/cdn/chunks/{kanban-column-Cs47JSUO.js → kanban-column-CGF_4Q0N.js} +4 -4
- package/dist/cdn/chunks/{keyboard-shortcut-4DPqQovv.js → keyboard-shortcut-DZDtndhS.js} +3 -3
- package/dist/cdn/chunks/{languages-D-97TsxL.js → languages-BCn4J5Ck.js} +12 -12
- package/dist/cdn/chunks/{link-6T0VtDWt.js → link-CTj3dTmJ.js} +7 -7
- package/dist/cdn/chunks/{link-group-ymcl82Ua.js → link-group--C486tYV.js} +2 -2
- package/dist/cdn/chunks/{list-BXpR0UzC.js → list-DApLHKj-.js} +8 -8
- package/dist/cdn/chunks/{list-item-CyZ6uPGG.js → list-item-BN9uuvXr.js} +5 -5
- package/dist/cdn/chunks/{list-item-segment-BUtAy96X.js → list-item-segment-CvdZT9Ni.js} +4 -4
- package/dist/cdn/chunks/{menu-kSZLzjet.js → menu-2-9LtMLY.js} +27 -23
- package/dist/cdn/chunks/{menu-bar-Cn1Nb2ir.js → menu-bar-g-O3_TNl.js} +7 -7
- package/dist/cdn/chunks/{menu-bar-item-CZR2qAzA.js → menu-bar-item-tOFEx-lS.js} +7 -7
- package/dist/cdn/chunks/{menu-divider-dF1NvFJO.js → menu-divider-Dmv0lMHV.js} +3 -3
- package/dist/cdn/chunks/{menu-group-DW3so0Dn.js → menu-group-Ci9QUUwZ.js} +4 -4
- package/dist/cdn/chunks/{menu-item-7kb18Ypf.js → menu-item-BnIbV4yo.js} +4 -4
- package/dist/cdn/chunks/{menu.template-cgua9dKM.js → menu.template-sPjaMfc8.js} +4 -4
- package/dist/cdn/chunks/{modal-dialog-DfKbcw9T.js → modal-dialog-D-jAbabe.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-AV-vID1z.js → multi-line-text-field-uBZqAdr6.js} +6 -6
- package/dist/cdn/chunks/{navigation-split-view-UwlSFPDE.js → navigation-split-view-DARbBPq-.js} +4 -4
- package/dist/cdn/chunks/{notification-e5uGGh0b.js → notification-CntIGoYh.js} +6 -6
- package/dist/cdn/chunks/{number-field-COUmvl_s.js → number-field-C0MTabLP.js} +8 -8
- package/dist/cdn/chunks/{one-half-one-half-section-C-AgSdm9.js → one-half-one-half-section-DYzf6LtU.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-D1kq4IEc.js → one-third-two-thirds-section-AAiaxCHH.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-BDQctC8H.js → one-time-code-field-CCILuCy1.js} +7 -7
- package/dist/cdn/chunks/{overflow-menu-C67lAkP8.js → overflow-menu-DFoh3xL_.js} +1 -1
- package/dist/cdn/chunks/{overlay-invoker-CQpe-JGA.js → overlay-invoker-Dj6MQAtF.js} +3 -1
- package/dist/cdn/chunks/{page-DXEaFsfo.js → page-BDXLREou.js} +39 -17
- package/dist/cdn/chunks/{page-footer-DFaIlgHs.js → page-footer-BsVMZCXs.js} +4 -4
- package/dist/cdn/chunks/{page-section-mixin-3XhS4f5q.js → page-section-mixin-L0bl3wCm.js} +3 -3
- package/dist/cdn/chunks/{pagination-BE3ERBNx.js → pagination-DLwbSZdO.js} +6 -6
- package/dist/cdn/chunks/{password-field-DjRp78HI.js → password-field-DKTJgEyb.js} +8 -8
- package/dist/cdn/chunks/{popover-C3j0KtFh.js → popover-RB7uLASo.js} +18 -8
- package/dist/cdn/chunks/{progress-bar-iWFq6KS1.js → progress-bar-DnXWbmiw.js} +7 -7
- package/dist/cdn/chunks/{progress-circle-BPFzTlhn.js → progress-circle-S89MUtU8.js} +7 -7
- package/dist/cdn/chunks/{radio-button-BMVBbe3-.js → radio-button-B31lAjlk.js} +4 -4
- package/dist/cdn/chunks/{radio-button-field-BqSd0JMd.js → radio-button-field-BF4MHiOQ.js} +6 -6
- package/dist/cdn/chunks/{radio-button-group-DZTPflZ3.js → radio-button-group-BQUqV8wJ.js} +3 -3
- package/dist/cdn/chunks/{render-marked-1xftlCd8.js → render-marked-ChJNzktf.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-loSG6GRY.js → reorder-handle-cell-SEERkeh7.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-cLWXCdFC.js → reorder-handle-mixin-tWe9XTjZ.js} +2 -2
- package/dist/cdn/chunks/{repeat-CWsNVfra.js → repeat-CdCK17GF.js} +2 -2
- package/dist/cdn/chunks/{rich-text-DSvI9u6v.js → rich-text-vVWOndD2.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-vwABKkTO.js → row-header-mixin-6MoJ5Mjq.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-ZNdnDF4p.js → scroll-fade-Cr7_IXpU.js} +2 -2
- package/dist/cdn/chunks/{search-field-CBTir8Wu.js → search-field-C9urWH_J.js} +10 -10
- package/dist/cdn/chunks/{segmented-control-hvWn3L0J.js → segmented-control-DkILAMOJ.js} +7 -7
- package/dist/cdn/chunks/{shadow-resets-JiVlctXb.js → shadow-resets-9v6K-Fie.js} +2 -2
- package/dist/cdn/chunks/{sheet-CnbdONF9.js → sheet-D89xI-KY.js} +4 -3
- package/dist/cdn/chunks/{shell-BAH9okPd.js → shell-CFmfUD0_.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-D07iBCFK.js → side-by-side-split-view-ir9c0mwZ.js} +4 -4
- package/dist/cdn/chunks/{sidebar-section-DAE2lrdn.js → sidebar-section-BhJXels3.js} +7 -7
- package/dist/cdn/chunks/{simple-section-DQZpG3nQ.js → simple-section-CMoYuLYV.js} +3 -3
- package/dist/cdn/chunks/{skip-link-D0yYukhb.js → skip-link-rUQq0D-l.js} +4 -4
- package/dist/cdn/chunks/{slider-C-a97cAu.js → slider-CIQqjKUo.js} +9 -9
- package/dist/cdn/chunks/{spacer-C19W6HrX.js → spacer-CD85egxE.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-lRxkFSnp.js → spacer-cell-B33mGdru.js} +4 -4
- package/dist/cdn/chunks/{split-button-38xSIAVk.js → split-button-COL7r-wa.js} +8 -8
- package/dist/cdn/chunks/{split-view-divider-CViSo7s7.js → split-view-divider-DVBuBzeO.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-Bb1RFCNJ.js → split-view-pane-CSvIzeBg.js} +3 -3
- package/dist/cdn/chunks/{stacked-split-view-Bnw5hQ5A.js → stacked-split-view-onSk2QEi.js} +4 -4
- package/dist/cdn/chunks/{static-html-7PckS8pf.js → static-html-Cyhp44gp.js} +1 -1
- package/dist/cdn/chunks/{status-bar-D57SEB_4.js → status-bar-CjYXOQAX.js} +4 -4
- package/dist/cdn/chunks/{step-bar-Q_wc0vqp.js → step-bar-D-To0TEw.js} +5 -5
- package/dist/cdn/chunks/{step-cell-DU6sNjnm.js → step-cell-B7sVGixc.js} +5 -5
- package/dist/cdn/chunks/{stepper-BM1dp44g.js → stepper-h6boMOhz.js} +7 -7
- package/dist/cdn/chunks/{style-map-BRs_xiW6.js → style-map-BrdTV34-.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-BcRbPWVv.js → swatch-picker-gQ3m3y9U.js} +6 -6
- package/dist/cdn/chunks/{switch-7BZAufN0.js → switch-DC-BTi9E.js} +5 -5
- package/dist/cdn/chunks/{switch-field-gjPTIapp.js → switch-field-D82mLobj.js} +6 -6
- package/dist/cdn/chunks/{tab-bar-BKzbb7TE.js → tab-bar-sKiFzvfj.js} +8 -8
- package/dist/cdn/chunks/{table-CmkkY3M1.js → table-CuxZfCZD.js} +5 -5
- package/dist/cdn/chunks/{tag-B4VfItSH.js → tag-DP_ome5l.js} +4 -4
- package/dist/cdn/chunks/{term-C0aNyYXz.js → term-BdiTV-Jk.js} +13 -13
- package/dist/cdn/chunks/{text-CLuHOFQt.js → text-C-b1ygHI.js} +3 -3
- package/dist/cdn/chunks/{text-cell-Dvujh580.js → text-cell-DfRh7JqZ.js} +8 -8
- package/dist/cdn/chunks/{text-editor-0_ZoELkA.js → text-editor-DuT9Rrpv.js} +10 -10
- package/dist/cdn/chunks/{text-field-CrRBrXx0.js → text-field-kAbXzkUj.js} +6 -6
- package/dist/cdn/chunks/{time-field-DUt1zvLw.js → time-field-DUz9ifmn.js} +45 -51
- package/dist/cdn/chunks/{time-picker-CDzillxF.js → time-picker-DGOKwC9T.js} +5 -5
- package/dist/cdn/chunks/{title-DQXyEqFW.js → title-BA-SUyAq.js} +4 -4
- package/dist/cdn/chunks/{title-cell-CoUK6h-F.js → title-cell-Cu5NFNUu.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-BhU5vLF8.js → toggle-button-J6UapeqB.js} +9 -9
- package/dist/cdn/chunks/{toggle-button-group-B-0r4xZZ.js → toggle-button-group-wrps-tL9.js} +2 -2
- package/dist/cdn/chunks/{token-CELUzY2p.js → token-DJkyJz-k.js} +10 -10
- package/dist/cdn/chunks/{token-field-C8ynyISX.js → token-field-SiBFPD8-.js} +12 -12
- package/dist/cdn/chunks/{toolbar--QBCm9qO.js → toolbar-be8hoSAz.js} +8 -8
- package/dist/cdn/chunks/{toolbar-item-BoRhKFDR.js → toolbar-item-DPizdgYi.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-CciXdTJR.js → toolbar-title-CB4IJFGv.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-B6kTrAfC.js → toolbar.styles-vmMPyzS_.js} +3 -3
- package/dist/cdn/chunks/{tooltip-CkLC4ooQ.js → tooltip-Bg2ovCCg.js} +96 -62
- package/dist/cdn/chunks/{top-navigation-bar-CGu2pn4Z.js → top-navigation-bar-vA8wpJXS.js} +17 -17
- package/dist/cdn/chunks/{top-title-bar-2b-XHftB.js → top-title-bar-BAJGmgnj.js} +7 -7
- package/dist/cdn/chunks/{translations-D0cgmONm.js → translations-Cjd13Xb6.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-CEfd273Z.js → two-thirds-one-third-section-D1FvorKO.js} +3 -3
- package/dist/cdn/chunks/{validation-list-DIFEVSIk.js → validation-list-D3rKnfTu.js} +3 -3
- package/dist/cdn/chunks/{visibility-mixin-OjALtpXa.js → visibility-mixin-BRMACV1l.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-DcpY5lun.js → visually-hidden-BukWRiJA.js} +2 -2
- package/dist/cdn/chunks/{window-BGZCu06O.js → window-C9njVzzK.js} +4 -4
- package/dist/cdn/chunks/{with-translations-DkNkjQym.js → with-translations-BLzHPSUF.js} +3 -3
- package/dist/components/actions/button/button.d.ts +11 -9
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +11 -9
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts +7 -4
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +6 -4
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts +4 -2
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +4 -2
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +9 -7
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +9 -7
- package/dist/components/actions/icon-button/icon-button.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 -0
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/menu/menu-group.d.ts +1 -1
- package/dist/components/actions/menu/menu-group.js +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +4 -4
- package/dist/components/actions/menu/menu-item.js +4 -4
- package/dist/components/actions/menu/menu.d.ts +39 -32
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +42 -32
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +5 -3
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +5 -3
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.d.ts +1 -1
- package/dist/components/actions/toolbar/toolbar-item.js +1 -1
- package/dist/components/actions/toolbar/toolbar-title.d.ts +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +7 -5
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +7 -5
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/content/accordion/accordion.d.ts +2 -0
- package/dist/components/content/accordion/accordion.d.ts.map +1 -1
- package/dist/components/content/accordion/accordion.js +2 -0
- package/dist/components/content/accordion/accordion.js.map +1 -1
- package/dist/components/content/admonition/admonition.d.ts +2 -0
- package/dist/components/content/admonition/admonition.d.ts.map +1 -1
- package/dist/components/content/admonition/admonition.js +2 -0
- package/dist/components/content/admonition/admonition.js.map +1 -1
- package/dist/components/content/avatar/avatar.d.ts +3 -1
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +3 -1
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +1 -0
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +1 -0
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +3 -1
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +3 -1
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +1 -0
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +9 -9
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +4 -3
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +4 -3
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +4 -1
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +4 -1
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +12 -10
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +11 -9
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/lqip-encoder-element.d.ts +6 -5
- package/dist/components/content/image/lqip-encoder-element.d.ts.map +1 -1
- package/dist/components/content/image/lqip-encoder-element.js +6 -5
- package/dist/components/content/image/lqip-encoder-element.js.map +1 -1
- package/dist/components/content/image/lqip-encoder.d.ts +4 -4
- package/dist/components/content/image/lqip-encoder.js +8 -8
- package/dist/components/content/image/lqip-encoder.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +8 -7
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +8 -7
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +3 -1
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +3 -1
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +5 -3
- package/dist/components/content/tag/tag.d.ts.map +1 -1
- package/dist/components/content/tag/tag.js +5 -3
- package/dist/components/content/tag/tag.js.map +1 -1
- package/dist/components/content/term/term.d.ts +2 -0
- package/dist/components/content/term/term.d.ts.map +1 -1
- package/dist/components/content/term/term.js +2 -0
- package/dist/components/content/term/term.js.map +1 -1
- package/dist/components/content/text/text.d.ts +9 -7
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +9 -7
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +2 -0
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +2 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/token/token.d.ts +9 -5
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +15 -6
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +1 -1
- package/dist/components/content/token/token.template.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +24 -3
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +91 -11
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.js +2 -1
- package/dist/components/content/tooltip/tooltip.template.js.map +1 -1
- package/dist/components/content/visually-hidden/visually-hidden.d.ts +3 -1
- package/dist/components/content/visually-hidden/visually-hidden.d.ts.map +1 -1
- package/dist/components/content/visually-hidden/visually-hidden.js +3 -1
- package/dist/components/content/visually-hidden/visually-hidden.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 +20 -16
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts +15 -11
- package/dist/components/forms/form-actions/form-actions.d.ts.map +1 -1
- package/dist/components/forms/form-actions/form-actions.js +15 -11
- package/dist/components/forms/form-actions/form-actions.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +9 -5
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +9 -5
- package/dist/components/forms/form-field/form-field.js.map +1 -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 +44 -0
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +34 -30
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +1 -0
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +1 -0
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +3 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +3 -1
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +2 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +2 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts +2 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.js +2 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +2 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +5 -3
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +5 -3
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +7 -3
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +7 -3
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +8 -0
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +8 -0
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +7 -5
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +7 -5
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +4 -3
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +4 -3
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +6 -4
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +6 -4
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +3 -1
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +3 -1
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +4 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js +4 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts +3 -1
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +3 -1
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +2 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +2 -1
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +1 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.js +1 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +2 -0
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.js +2 -0
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +4 -2
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +4 -2
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +12 -11
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +12 -11
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/slider/slider.d.ts +3 -1
- package/dist/components/inputs/slider/slider.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.js +3 -1
- package/dist/components/inputs/slider/slider.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts +2 -1
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +2 -1
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +5 -3
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js +5 -3
- package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +5 -3
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +5 -3
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +2 -0
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +2 -0
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts +3 -3
- package/dist/components/inputs/text-editor/text-editor.commands.js +5 -5
- package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +6 -6
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +10 -8
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.d.ts +2 -2
- package/dist/components/inputs/text-editor/text-editor.links.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.mention.d.ts +3 -3
- package/dist/components/inputs/text-editor/text-editor.mention.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mention.js +3 -3
- package/dist/components/inputs/text-editor/text-editor.mention.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +6 -4
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +6 -4
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +3 -1
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +3 -1
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.js +0 -7
- package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +2 -0
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +2 -0
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +3 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +3 -1
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +1 -0
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +1 -0
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +17 -15
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +17 -15
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +4 -2
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +4 -2
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +3 -1
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +3 -1
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +3 -1
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +3 -1
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +7 -5
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +7 -5
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/divider/divider.d.ts +2 -0
- package/dist/components/layout/divider/divider.d.ts.map +1 -1
- package/dist/components/layout/divider/divider.js +2 -0
- package/dist/components/layout/divider/divider.js.map +1 -1
- package/dist/components/layout/kanban/kanban.d.ts +1 -0
- package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.js +1 -0
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +12 -3
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +49 -3
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +7 -0
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +1 -0
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +1 -0
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -0
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -0
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -0
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -0
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +7 -5
- 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 +7 -5
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +2 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +2 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -0
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -0
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +13 -3
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +16 -3
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +6 -0
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +7 -5
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +7 -5
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +1 -0
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/shell/shell.d.ts +2 -1
- package/dist/components/layout/shell/shell.d.ts.map +1 -1
- package/dist/components/layout/shell/shell.js +2 -1
- package/dist/components/layout/shell/shell.js.map +1 -1
- package/dist/components/layout/spacer/spacer.d.ts +7 -5
- package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
- package/dist/components/layout/spacer/spacer.js +7 -5
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +3 -2
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +3 -2
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +5 -3
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +5 -3
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +4 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +4 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.d.ts +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.js +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts +2 -0
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +2 -0
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +2 -0
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +2 -0
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +2 -2
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts +2 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +2 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +7 -7
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +7 -7
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +3 -3
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +3 -3
- package/dist/components/lists-and-tables/list/list.d.ts +34 -32
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +34 -32
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +31 -30
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +19 -19
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +9 -9
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +8 -8
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +8 -5
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +8 -5
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +4 -2
- 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 +4 -2
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +9 -2
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +4 -2
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +4 -2
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link-group/link-group.d.ts +3 -3
- package/dist/components/navigation/link-group/link-group.js +3 -3
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +4 -2
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +4 -2
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +3 -3
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +3 -3
- package/dist/components/navigation/pagination/pagination.d.ts +4 -3
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +4 -3
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +1 -0
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +1 -0
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +4 -2
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +4 -2
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +2 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +2 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +2 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +2 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +10 -8
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +11 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +3 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +3 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +7 -5
- package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +6 -4
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +5 -3
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +5 -3
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +4 -2
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +4 -2
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +3 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +3 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +3 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +3 -1
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +5 -3
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +5 -3
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +4 -2
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +4 -2
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +2 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +2 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +2 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +2 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/css/document-reset.css +9 -0
- package/dist/nldd.min.js +540 -480
- package/dist/types/react.d.ts +61 -57
- package/dist/types/vue.d.ts +75 -67
- package/dist/utilities/ancestor-scroll.d.ts +15 -0
- package/dist/utilities/ancestor-scroll.d.ts.map +1 -0
- package/dist/utilities/ancestor-scroll.js +24 -0
- package/dist/utilities/ancestor-scroll.js.map +1 -0
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +50 -0
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/os.d.ts +1 -1
- package/dist/utilities/os.js +1 -1
- package/dist/utilities/overlay-invoker.d.ts.map +1 -1
- package/dist/utilities/overlay-invoker.js +4 -1
- package/dist/utilities/overlay-invoker.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/rule-compiler.js +29 -0
- package/lint/rule-index.js +33 -1
- package/lint/rule.schema.json +1 -1
- package/package.json +9 -19
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { type Placement } from '@floating-ui/dom';
|
|
2
3
|
import { type MenuVariant } from './menu.template.js';
|
|
3
4
|
import type { NLDDMenuTranslations } from './menu.i18n.js';
|
|
4
5
|
import '../../lists-and-tables/cells/icon-cell/icon-cell.js';
|
|
@@ -32,19 +33,24 @@ export { NLDDMenuDivider } from './menu-divider.js';
|
|
|
32
33
|
* `prefers-reduced-motion` there is no blink, and the menu closes at once
|
|
33
34
|
* after a click; a tap still holds, since that is no motion. A press on the
|
|
34
35
|
* menu's control during the blink or hold ends it and opens the menu again,
|
|
35
|
-
* since the menu was already on its way out.
|
|
36
|
+
* since the menu was already on its way out. Set `no-blink` where the
|
|
37
|
+
* choice shows beside the menu the moment it is made, as a listbox's field
|
|
38
|
+
* shows it. A menu that scrolls
|
|
36
39
|
* fades at the edge where more items wait.
|
|
37
40
|
*
|
|
38
41
|
* Note: Only type="button" items are supported when used inside nldd-combo-box-field.
|
|
39
42
|
* Radio and checkbox types may be used in standalone menus.
|
|
40
43
|
*
|
|
41
44
|
* @element nldd-menu
|
|
45
|
+
* @keywords context menu, dropdown menu
|
|
46
|
+
* @related nldd-popover, nldd-split-button, nldd-dropdown
|
|
42
47
|
*
|
|
43
48
|
* @attr {'menu'|'listbox'|'navigation'} variant - What the menu is (default 'menu'). `menu` is a menu of actions: `role="menu"` with menu items, for things you do. `listbox` is the popup of a combobox: `role="listbox"` with options, focus stays in the field. `navigation` is a submenu in a site navigation: a list of links (`role="list"`, each item a list item around a real link), because a screen reader treats a menu as an application and reads a list of links as what it is. Every item takes an `href`. Tab reaches each link, the arrow keys, Home and End move between them, Escape closes and returns focus to the trigger, and the menu closes when focus leaves it. The trigger says `aria-expanded` and promises no menu. Checkbox and radio items, shortcuts and `filter()` belong to actions and warn in development here. A submenu of a navigation menu is a navigation menu too. The variant sets `role="listitem"` on its items and groups, and takes it off again when it changes back, also where you had set that role yourself.
|
|
49
|
+
* @attr {boolean} no-blink - Closes the menu at once after a choice, without the blink. For a menu whose choice shows at once next to it, such as a token that writes the value it holds: the blink would confirm what is already in view, while the anchor changes under it. A submenu follows the menu it opens from.
|
|
44
50
|
* @attr {string} width - Explicit width, pinned exactly. Without it the menu sizes to its content between a minimum and a viewport-aware maximum (min(100vw - inset, 640px)).
|
|
45
51
|
* @attr {string} accessible-label - Name of the menu or listbox for assistive technology, on the element that has the role. Without it the menu takes the name of its anchor (the `accessible-label`, `aria-label`, `text` or text of the button or field it hangs off), and a submenu the text of the item that opens it, so a listbox under a search field is "Zoeken" rather than nameless (WCAG 4.1.2). The list of an nldd-combo-box or nldd-token-field takes the name of the field.
|
|
46
|
-
* @attr {string} anchor - ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a trigger that is not an nldd component, such as a plain `<button>`. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment needs no anchor: put the menu in its `popup` slot, or point its `popovertarget` at the menu, and it anchors and opens the menu itself. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead
|
|
47
|
-
* @attr {
|
|
52
|
+
* @attr {string} anchor - ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a trigger that is not an nldd component, such as a plain `<button>`. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment needs no anchor: put the menu in its `popup` slot, or point its `popovertarget` at the menu, and it anchors and opens the menu itself. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead. It positions the same way, without the toggle.
|
|
53
|
+
* @attr {'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'left'|'left-start'|'left-end'|'right'|'right-start'|'right-end'} placement - Side of the anchor it opens on, and how it lines up there (default: 'bottom-start')
|
|
48
54
|
* @attr {number} max-items - Maximum number of visible items before scrolling. Sets --_menu-max-items internally. Default: 0 (no limit).
|
|
49
55
|
* @attr {string} empty-text - Text of the default empty-state dialog. Falls back to Dutch i18n "Geen opties beschikbaar".
|
|
50
56
|
* @attr {string} empty-supporting-text - Supporting text of the default empty-state dialog.
|
|
@@ -52,7 +58,7 @@ export { NLDDMenuDivider } from './menu-divider.js';
|
|
|
52
58
|
* @attr {Function} filterFn - Custom filter function (query, item) => boolean.
|
|
53
59
|
*
|
|
54
60
|
* @slot - nldd-menu-item and nldd-menu-divider elements.
|
|
55
|
-
* @slot header - Free content shown above the items, outside `role="menu"` (so it may hold non-menuitem content such as an avatar + name, buttons or links
|
|
61
|
+
* @slot header - Free content shown above the items, outside `role="menu"` (so it may hold non-menuitem content such as an avatar + name, buttons or links, reached with Tab and skipped by arrow navigation). The region is unpadded; control spacing with your own content (e.g. an `nldd-container`). Root-only: never rendered in a submenu. Example: an account identity header (nldd-identity).
|
|
56
62
|
* @slot footer - Free content shown below the items, outside `role="menu"` (same rules as `header`; also unpadded and root-only). Example: a short note or a link.
|
|
57
63
|
* @slot empty - Shown when no items are visible. Defaults to `nldd-inline-dialog` driven by `empty-text` / `empty-supporting-text`. Slot content overrides the default dialog entirely.
|
|
58
64
|
*/
|
|
@@ -69,17 +75,18 @@ export declare class NLDDMenu extends LitElement {
|
|
|
69
75
|
* viewport-aware maximum of min(100vw - inset, 640px).
|
|
70
76
|
*/
|
|
71
77
|
width: string;
|
|
78
|
+
noBlink: boolean;
|
|
72
79
|
anchor: string;
|
|
73
80
|
/**
|
|
74
81
|
* The anchor as an element reference. Positions the menu exactly like the
|
|
75
|
-
* `anchor` attribute, but does NOT turn the anchor into a toggle
|
|
82
|
+
* `anchor` attribute, but does NOT turn the anchor into a toggle: clicking
|
|
76
83
|
* it does not open the menu. Use this whenever you drive open/close yourself
|
|
77
84
|
* (`showPopover()` / `hidePopover()`), which is what nldd-combo-box and
|
|
78
85
|
* nldd-token-field do: their input must stay an input, not a menu button.
|
|
79
86
|
*/
|
|
80
87
|
anchorElement: Element | null;
|
|
81
88
|
accessibleLabel: string;
|
|
82
|
-
placement:
|
|
89
|
+
placement: Placement;
|
|
83
90
|
/**
|
|
84
91
|
* @internal Distance in px between the anchor and the menu, along the placement
|
|
85
92
|
* side; negative pulls the menu in. Set by a component that hangs a menu
|
|
@@ -107,7 +114,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
107
114
|
*/
|
|
108
115
|
filterFn: (query: string, item: NLDDMenuItem) => boolean;
|
|
109
116
|
/**
|
|
110
|
-
* @internal
|
|
117
|
+
* @internal Development only.
|
|
111
118
|
*
|
|
112
119
|
* Renders a translucent SVG overlay showing the safe triangle's current
|
|
113
120
|
* shape. Reflected as `debug-safe-triangle` so it can be toggled at
|
|
@@ -131,7 +138,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
131
138
|
/** The level of that submenu. @internal */
|
|
132
139
|
_activeLevel: SubmenuLevel | null;
|
|
133
140
|
/** Signal that this menu is hiding itself to make room for a deeper drill-in
|
|
134
|
-
* level
|
|
141
|
+
* level. Its parent's onToggle should skip the normal close cleanup
|
|
135
142
|
* (re-parent + re-show) so the chain stays in deeper-level state. */
|
|
136
143
|
_drillInHidingForDeeper: boolean;
|
|
137
144
|
/** Root-owned registry of every level open in this chain, in open order.
|
|
@@ -148,7 +155,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
148
155
|
* opened it. Set by the parent's _handleSubmenuOpen. null on the root.
|
|
149
156
|
* @internal */
|
|
150
157
|
_parentMenu: NLDDMenu | null;
|
|
151
|
-
/** The menu-item that triggered this submenu
|
|
158
|
+
/** The menu-item that triggered this submenu, used to label the back
|
|
152
159
|
* button in drill-in mode.
|
|
153
160
|
* @internal */
|
|
154
161
|
_parentItem: NLDDMenuItem | null;
|
|
@@ -160,7 +167,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
160
167
|
* or confirmed tap) collapsed the chain, or when a pointerdown landed
|
|
161
168
|
* on the anchor while the menu was open (covers native light-dismiss).
|
|
162
169
|
* The trailing `click` of that same gesture consumes it in
|
|
163
|
-
* `_handleDocumentClick` and must NOT reopen
|
|
170
|
+
* `_handleDocumentClick` and must NOT reopen. The flag is gesture-correlated, so
|
|
164
171
|
* it's reliable on touch regardless of pointerup→click timing.
|
|
165
172
|
* @internal */
|
|
166
173
|
_collapsedByPointerGesture: boolean;
|
|
@@ -185,7 +192,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
185
192
|
private _announceResultsTimer;
|
|
186
193
|
/**
|
|
187
194
|
* Write `message` to this menu's polite live region. Clears first, then
|
|
188
|
-
* sets on a double rAF
|
|
195
|
+
* sets on a double rAF: the empty→text transition is what makes screen
|
|
189
196
|
* readers reliably re-announce unchanged-looking content across engines.
|
|
190
197
|
*
|
|
191
198
|
* Spam control without muting real navigation: a doubled event in the
|
|
@@ -230,7 +237,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
230
237
|
_getAnchorEl(): Element | null;
|
|
231
238
|
/**
|
|
232
239
|
* Pick the drill-in side (above vs below the anchor) purely from the
|
|
233
|
-
* available viewport space around the anchor
|
|
240
|
+
* available viewport space around the anchor, never from content
|
|
234
241
|
* size. Content-independent so every level of the chain resolves to
|
|
235
242
|
* the same side and a bigger submenu scrolls internally rather than
|
|
236
243
|
* flipping the whole stack. Keeps the configured alignment suffix
|
|
@@ -240,7 +247,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
240
247
|
/**
|
|
241
248
|
* Reflect this menu's open state on the anchor so an anchor button (or
|
|
242
249
|
* any element exposing an `expanded` IDL property) shows the active
|
|
243
|
-
* "is-expanded" visual while we're open. Skip menu-items as anchors
|
|
250
|
+
* "is-expanded" visual while we're open. Skip menu-items as anchors:
|
|
244
251
|
* they manage their own `_submenuOpen` lifecycle and don't have an
|
|
245
252
|
* `expanded` property. Also default `popupType` to 'menu' / 'listbox'
|
|
246
253
|
* (matching this menu's variant) when the anchor supports it and the
|
|
@@ -250,14 +257,14 @@ export declare class NLDDMenu extends LitElement {
|
|
|
250
257
|
* Finally, drive the anchor's `popoverTargetAction` so the browser's
|
|
251
258
|
* native invoker action always matches the current state explicitly:
|
|
252
259
|
* `'hide'` while open, `'show'` while closed. We avoid `'toggle'` on
|
|
253
|
-
* purpose
|
|
260
|
+
* purpose: toggle re-evaluates the popover's live state at click time
|
|
254
261
|
* and would re-open the menu if it had just been light-dismissed
|
|
255
262
|
* milliseconds earlier (the source of the "menu briefly closes and
|
|
256
263
|
* reopens" bug). With explicit show/hide, the worst case is a no-op
|
|
257
|
-
* (e.g. `'hide'` on an already-closed menu)
|
|
264
|
+
* (e.g. `'hide'` on an already-closed menu), never a spurious open.
|
|
258
265
|
*
|
|
259
266
|
* The invoker association (`popoverTargetElement`) is set elsewhere
|
|
260
|
-
*
|
|
267
|
+
* (persistently on anchor change rather than per-toggle), so the
|
|
261
268
|
* browser's light-dismiss exclusion is in place from the very first
|
|
262
269
|
* click instead of only after the menu has already opened once.
|
|
263
270
|
*/
|
|
@@ -270,7 +277,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
270
277
|
* else closes it: opening a modal dialog empties the top layer, and Safari
|
|
271
278
|
* does not fire `toggle` for the popovers it drops. The anchor then keeps
|
|
272
279
|
* saying "open" while the menu is gone, and its next click asks the browser
|
|
273
|
-
* to hide an already-hidden popover
|
|
280
|
+
* to hide an already-hidden popover. That is a no-op, so the button looks dead.
|
|
274
281
|
*
|
|
275
282
|
* Called on the anchor's own pointerdown, before the click resolves the
|
|
276
283
|
* invoker, so the action is decided on the truth rather than on a state
|
|
@@ -311,7 +318,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
311
318
|
* Item-activation logic shared between the native `mouseenter` capture
|
|
312
319
|
* handler and the safe triangle's `releaseAt` (sideways exit, direction
|
|
313
320
|
* reversal, stall dismissal). Those paths know which item is under the
|
|
314
|
-
* cursor
|
|
321
|
+
* cursor, so they don't need to synthesize a MouseEvent just to re-enter
|
|
315
322
|
* the handler. Factoring out the body keeps the entry contracts honest:
|
|
316
323
|
* the recovery sites pass an already-resolved item rather than relying
|
|
317
324
|
* on `event.target` semantics they'd have to fake.
|
|
@@ -352,11 +359,11 @@ export declare class NLDDMenu extends LitElement {
|
|
|
352
359
|
* over the parent) and gets a back-button header. Otherwise (cascade)
|
|
353
360
|
* the submenu opens beside its parent item.
|
|
354
361
|
*
|
|
355
|
-
* Detection is based on pointer type and viewport width
|
|
362
|
+
* Detection is based on pointer type and viewport width: touch devices
|
|
356
363
|
* and narrow viewports drill in, everything else cascades. No consumer
|
|
357
364
|
* override; the choice is environment-driven.
|
|
358
365
|
*
|
|
359
|
-
* Cached MediaQueryList shared across instances
|
|
366
|
+
* Cached MediaQueryList shared across instances, because `matchMedia()` returns
|
|
360
367
|
* a live object and re-evaluating it for every mouseenter/submenu-open
|
|
361
368
|
* is wasteful.
|
|
362
369
|
*/
|
|
@@ -364,7 +371,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
364
371
|
private static _getDrillInModeQuery;
|
|
365
372
|
get _drillInMode(): boolean;
|
|
366
373
|
/** Walks the parent-menu chain up to the root (the menu that wasn't
|
|
367
|
-
* opened by another menu
|
|
374
|
+
* opened by another menu and has no _parentMenu). */
|
|
368
375
|
get _rootMenu(): NLDDMenu;
|
|
369
376
|
/** True when this menu is itself a submenu (was opened by another menu's
|
|
370
377
|
* item). The root menu returns false. */
|
|
@@ -379,7 +386,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
379
386
|
* drill-in mode).
|
|
380
387
|
* @internal */
|
|
381
388
|
_handleBack: () => void;
|
|
382
|
-
/** Cursor moved onto the drill-in back button
|
|
389
|
+
/** Cursor moved onto the drill-in back button. Clear any item highlight
|
|
383
390
|
* so we don't show two "active" elements at once (back button + first
|
|
384
391
|
* item that was auto-highlighted on open).
|
|
385
392
|
* @internal */
|
|
@@ -393,7 +400,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
393
400
|
/** Close the menu on a window resize. Floating-UI's autoUpdate keeps
|
|
394
401
|
* the position in sync with scrolls (where users genuinely expect the
|
|
395
402
|
* menu to follow the anchor), but a full window resize is a layout-
|
|
396
|
-
* shifting interaction the user isn't currently tracking
|
|
403
|
+
* shifting interaction the user isn't currently tracking. It is better to
|
|
397
404
|
* dismiss with a clean slate than to chase the anchor across a
|
|
398
405
|
* reflow, repaint a flipped placement, or get stuck mid-flight when
|
|
399
406
|
* crossing the cascade ↔ drill-in viewport threshold. The window
|
|
@@ -409,7 +416,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
409
416
|
* closes after it, so you see what you picked. `select` has already gone
|
|
410
417
|
* out: the action does not wait for the blink. Every menu in the chain
|
|
411
418
|
* hears the event; the first one runs the blink and the rest leave it.
|
|
412
|
-
* In a menu that is not open, in a listbox, or after a click or key with
|
|
419
|
+
* In a menu that is not open, in a listbox, with `no-blink`, or after a click or key with
|
|
413
420
|
* reduced motion, it closes at once; a tap still holds.
|
|
414
421
|
*/
|
|
415
422
|
private _handleSelect;
|
|
@@ -431,14 +438,14 @@ export declare class NLDDMenu extends LitElement {
|
|
|
431
438
|
*/
|
|
432
439
|
private _finishBlinkForAnchorPress;
|
|
433
440
|
/**
|
|
434
|
-
* Collapse the entire menu chain at once
|
|
441
|
+
* Collapse the entire menu chain at once (root + every open submenu),
|
|
435
442
|
* with no "back one level" re-show. Used when the action is final:
|
|
436
443
|
* selecting an item, clicking the anchor, clicking/tapping outside, or
|
|
437
444
|
* a viewport resize.
|
|
438
445
|
*
|
|
439
446
|
* Driven by the root's `_openChain` registry of levels, so it never
|
|
440
447
|
* depends on `_activeSubmenu` /
|
|
441
|
-
* `_parentMenu` threading being intact at collapse time
|
|
448
|
+
* `_parentMenu` threading being intact at collapse time. Real
|
|
442
449
|
* interaction can leave those stale, which was the source of the
|
|
443
450
|
* recurring "anchor click doesn't close after the 2nd navigation"
|
|
444
451
|
* bug. Idempotent: every chain level's `select` listener may call it,
|
|
@@ -448,7 +455,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
448
455
|
/**
|
|
449
456
|
* Drill-in click-outside: collapse the entire chain.
|
|
450
457
|
*
|
|
451
|
-
* In drill-in mode only the deepest level is `:popover-open
|
|
458
|
+
* In drill-in mode only the deepest level is `:popover-open`, so popover
|
|
452
459
|
* light-dismiss would close just that level, and our onToggle cleanup
|
|
453
460
|
* would helpfully re-show the previous level. That's the wrong outcome
|
|
454
461
|
* for a click outside the menu: the user is dismissing the whole menu,
|
|
@@ -495,7 +502,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
495
502
|
*
|
|
496
503
|
* Matching items are kept visible. Non-matching items are hidden. Matching
|
|
497
504
|
* items receive `query=<query>` so their text-cell bolds the non-typed
|
|
498
|
-
* remainder (predictive completion
|
|
505
|
+
* remainder (predictive completion, the ARIA APG pattern for combobox).
|
|
499
506
|
*
|
|
500
507
|
* When the query is empty, all items are shown and `query` is cleared.
|
|
501
508
|
*
|
|
@@ -521,7 +528,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
521
528
|
*/
|
|
522
529
|
_announceResults(): void;
|
|
523
530
|
/**
|
|
524
|
-
* Hide each nldd-menu-group whose items are all filtered out
|
|
531
|
+
* Hide each nldd-menu-group whose items are all filtered out: a labeled
|
|
525
532
|
* heading above an empty section reads as broken. Runs after filter() has
|
|
526
533
|
* updated individual item visibility.
|
|
527
534
|
*/
|
|
@@ -582,7 +589,7 @@ export declare class NLDDMenu extends LitElement {
|
|
|
582
589
|
private _typeaheadBuffer;
|
|
583
590
|
private _typeaheadTimer;
|
|
584
591
|
/** Reset the typeahead buffer after this much idle time. 500ms is the
|
|
585
|
-
* common ARIA APG / OS convention
|
|
592
|
+
* common ARIA APG / OS convention: long enough to type a 2-3 char prefix
|
|
586
593
|
* comfortably, short enough that an unrelated later keystroke starts a
|
|
587
594
|
* fresh search. */
|
|
588
595
|
private static readonly _TYPEAHEAD_RESET_MS;
|
|
@@ -591,8 +598,8 @@ export declare class NLDDMenu extends LitElement {
|
|
|
591
598
|
* buffer; the menu jumps to the first item whose text starts with the
|
|
592
599
|
* buffer (case-insensitive).
|
|
593
600
|
*
|
|
594
|
-
* Single-char buffer (first press or after reset) cycles through matches
|
|
595
|
-
*
|
|
601
|
+
* Single-char buffer (first press or after reset) cycles through matches:
|
|
602
|
+
* repeated presses of the same letter step through every item starting
|
|
596
603
|
* with it. Multi-char buffer matches from the currently-focused item, so
|
|
597
604
|
* extending the prefix while the current item still matches keeps focus
|
|
598
605
|
* stable instead of jumping forward.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAA0D,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG1G,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,yDAAyD,CAAC;AACjE,OAAO,qDAAqD,CAAC;AAC7D,OAAO,4BAA4B,CAAC;AACpC,OAAO,sDAAsD,CAAC;AAC9D,OAAO,0DAA0D,CAAC;AAMlE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAwB,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAqB,KAAK,KAAK,EAA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O,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,eAAe,CAAuB;IAC9C;;;uBAGmB;IACnB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAO;IAElD;;;;;;;;;;OAUG;IACH,OAAO,CAAC,gBAAgB;IAgCxB;;;;;;;;;;;;;;;;OAgBG;IACI,WAAW,QAAO,IAAI,CAiB3B;IAEF,OAAO,CAAC,mBAAmB,CAMzB;IAEF,OAAO,CAAC,aAAa,CAiEnB;IAEO,MAAM;CAGf;AAMD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;QACtB,gBAAgB,EAAE,YAAY,CAAC;QAC/B,mBAAmB,EAAE,eAAe,CAAC;QACrC,iBAAiB,EAAE,aAAa,CAAC;KACjC;CACD"}
|
|
@@ -78,19 +78,24 @@ const HOVER_OPEN_MAX_MS = 150;
|
|
|
78
78
|
* `prefers-reduced-motion` there is no blink, and the menu closes at once
|
|
79
79
|
* after a click; a tap still holds, since that is no motion. A press on the
|
|
80
80
|
* menu's control during the blink or hold ends it and opens the menu again,
|
|
81
|
-
* since the menu was already on its way out.
|
|
81
|
+
* since the menu was already on its way out. Set `no-blink` where the
|
|
82
|
+
* choice shows beside the menu the moment it is made, as a listbox's field
|
|
83
|
+
* shows it. A menu that scrolls
|
|
82
84
|
* fades at the edge where more items wait.
|
|
83
85
|
*
|
|
84
86
|
* Note: Only type="button" items are supported when used inside nldd-combo-box-field.
|
|
85
87
|
* Radio and checkbox types may be used in standalone menus.
|
|
86
88
|
*
|
|
87
89
|
* @element nldd-menu
|
|
90
|
+
* @keywords context menu, dropdown menu
|
|
91
|
+
* @related nldd-popover, nldd-split-button, nldd-dropdown
|
|
88
92
|
*
|
|
89
93
|
* @attr {'menu'|'listbox'|'navigation'} variant - What the menu is (default 'menu'). `menu` is a menu of actions: `role="menu"` with menu items, for things you do. `listbox` is the popup of a combobox: `role="listbox"` with options, focus stays in the field. `navigation` is a submenu in a site navigation: a list of links (`role="list"`, each item a list item around a real link), because a screen reader treats a menu as an application and reads a list of links as what it is. Every item takes an `href`. Tab reaches each link, the arrow keys, Home and End move between them, Escape closes and returns focus to the trigger, and the menu closes when focus leaves it. The trigger says `aria-expanded` and promises no menu. Checkbox and radio items, shortcuts and `filter()` belong to actions and warn in development here. A submenu of a navigation menu is a navigation menu too. The variant sets `role="listitem"` on its items and groups, and takes it off again when it changes back, also where you had set that role yourself.
|
|
94
|
+
* @attr {boolean} no-blink - Closes the menu at once after a choice, without the blink. For a menu whose choice shows at once next to it, such as a token that writes the value it holds: the blink would confirm what is already in view, while the anchor changes under it. A submenu follows the menu it opens from.
|
|
90
95
|
* @attr {string} width - Explicit width, pinned exactly. Without it the menu sizes to its content between a minimum and a viewport-aware maximum (min(100vw - inset, 640px)).
|
|
91
96
|
* @attr {string} accessible-label - Name of the menu or listbox for assistive technology, on the element that has the role. Without it the menu takes the name of its anchor (the `accessible-label`, `aria-label`, `text` or text of the button or field it hangs off), and a submenu the text of the item that opens it, so a listbox under a search field is "Zoeken" rather than nameless (WCAG 4.1.2). The list of an nldd-combo-box or nldd-token-field takes the name of the field.
|
|
92
|
-
* @attr {string} anchor - ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a trigger that is not an nldd component, such as a plain `<button>`. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment needs no anchor: put the menu in its `popup` slot, or point its `popovertarget` at the menu, and it anchors and opens the menu itself. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead
|
|
93
|
-
* @attr {
|
|
97
|
+
* @attr {string} anchor - ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a trigger that is not an nldd component, such as a plain `<button>`. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment needs no anchor: put the menu in its `popup` slot, or point its `popovertarget` at the menu, and it anchors and opens the menu itself. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead. It positions the same way, without the toggle.
|
|
98
|
+
* @attr {'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'left'|'left-start'|'left-end'|'right'|'right-start'|'right-end'} placement - Side of the anchor it opens on, and how it lines up there (default: 'bottom-start')
|
|
94
99
|
* @attr {number} max-items - Maximum number of visible items before scrolling. Sets --_menu-max-items internally. Default: 0 (no limit).
|
|
95
100
|
* @attr {string} empty-text - Text of the default empty-state dialog. Falls back to Dutch i18n "Geen opties beschikbaar".
|
|
96
101
|
* @attr {string} empty-supporting-text - Supporting text of the default empty-state dialog.
|
|
@@ -98,7 +103,7 @@ const HOVER_OPEN_MAX_MS = 150;
|
|
|
98
103
|
* @attr {Function} filterFn - Custom filter function (query, item) => boolean.
|
|
99
104
|
*
|
|
100
105
|
* @slot - nldd-menu-item and nldd-menu-divider elements.
|
|
101
|
-
* @slot header - Free content shown above the items, outside `role="menu"` (so it may hold non-menuitem content such as an avatar + name, buttons or links
|
|
106
|
+
* @slot header - Free content shown above the items, outside `role="menu"` (so it may hold non-menuitem content such as an avatar + name, buttons or links, reached with Tab and skipped by arrow navigation). The region is unpadded; control spacing with your own content (e.g. an `nldd-container`). Root-only: never rendered in a submenu. Example: an account identity header (nldd-identity).
|
|
102
107
|
* @slot footer - Free content shown below the items, outside `role="menu"` (same rules as `header`; also unpadded and root-only). Example: a short note or a link.
|
|
103
108
|
* @slot empty - Shown when no items are visible. Defaults to `nldd-inline-dialog` driven by `empty-text` / `empty-supporting-text`. Slot content overrides the default dialog entirely.
|
|
104
109
|
*/
|
|
@@ -116,10 +121,11 @@ export class NLDDMenu extends LitElement {
|
|
|
116
121
|
* viewport-aware maximum of min(100vw - inset, 640px).
|
|
117
122
|
*/
|
|
118
123
|
this.width = '';
|
|
124
|
+
this.noBlink = false;
|
|
119
125
|
this.anchor = '';
|
|
120
126
|
/**
|
|
121
127
|
* The anchor as an element reference. Positions the menu exactly like the
|
|
122
|
-
* `anchor` attribute, but does NOT turn the anchor into a toggle
|
|
128
|
+
* `anchor` attribute, but does NOT turn the anchor into a toggle: clicking
|
|
123
129
|
* it does not open the menu. Use this whenever you drive open/close yourself
|
|
124
130
|
* (`showPopover()` / `hidePopover()`), which is what nldd-combo-box and
|
|
125
131
|
* nldd-token-field do: their input must stay an input, not a menu button.
|
|
@@ -154,7 +160,7 @@ export class NLDDMenu extends LitElement {
|
|
|
154
160
|
*/
|
|
155
161
|
this.filterFn = defaultFilterFn;
|
|
156
162
|
/**
|
|
157
|
-
* @internal
|
|
163
|
+
* @internal Development only.
|
|
158
164
|
*
|
|
159
165
|
* Renders a translucent SVG overlay showing the safe triangle's current
|
|
160
166
|
* shape. Reflected as `debug-safe-triangle` so it can be toggled at
|
|
@@ -181,7 +187,7 @@ export class NLDDMenu extends LitElement {
|
|
|
181
187
|
/** The level of that submenu. @internal */
|
|
182
188
|
this._activeLevel = null;
|
|
183
189
|
/** Signal that this menu is hiding itself to make room for a deeper drill-in
|
|
184
|
-
* level
|
|
190
|
+
* level. Its parent's onToggle should skip the normal close cleanup
|
|
185
191
|
* (re-parent + re-show) so the chain stays in deeper-level state. */
|
|
186
192
|
this._drillInHidingForDeeper = false;
|
|
187
193
|
/** Root-owned registry of every level open in this chain, in open order.
|
|
@@ -198,7 +204,7 @@ export class NLDDMenu extends LitElement {
|
|
|
198
204
|
* opened it. Set by the parent's _handleSubmenuOpen. null on the root.
|
|
199
205
|
* @internal */
|
|
200
206
|
this._parentMenu = null;
|
|
201
|
-
/** The menu-item that triggered this submenu
|
|
207
|
+
/** The menu-item that triggered this submenu, used to label the back
|
|
202
208
|
* button in drill-in mode.
|
|
203
209
|
* @internal */
|
|
204
210
|
this._parentItem = null;
|
|
@@ -210,7 +216,7 @@ export class NLDDMenu extends LitElement {
|
|
|
210
216
|
* or confirmed tap) collapsed the chain, or when a pointerdown landed
|
|
211
217
|
* on the anchor while the menu was open (covers native light-dismiss).
|
|
212
218
|
* The trailing `click` of that same gesture consumes it in
|
|
213
|
-
* `_handleDocumentClick` and must NOT reopen
|
|
219
|
+
* `_handleDocumentClick` and must NOT reopen. The flag is gesture-correlated, so
|
|
214
220
|
* it's reliable on touch regardless of pointerup→click timing.
|
|
215
221
|
* @internal */
|
|
216
222
|
this._collapsedByPointerGesture = false;
|
|
@@ -235,7 +241,7 @@ export class NLDDMenu extends LitElement {
|
|
|
235
241
|
/**
|
|
236
242
|
* Reflect this menu's open state on the anchor so an anchor button (or
|
|
237
243
|
* any element exposing an `expanded` IDL property) shows the active
|
|
238
|
-
* "is-expanded" visual while we're open. Skip menu-items as anchors
|
|
244
|
+
* "is-expanded" visual while we're open. Skip menu-items as anchors:
|
|
239
245
|
* they manage their own `_submenuOpen` lifecycle and don't have an
|
|
240
246
|
* `expanded` property. Also default `popupType` to 'menu' / 'listbox'
|
|
241
247
|
* (matching this menu's variant) when the anchor supports it and the
|
|
@@ -245,14 +251,14 @@ export class NLDDMenu extends LitElement {
|
|
|
245
251
|
* Finally, drive the anchor's `popoverTargetAction` so the browser's
|
|
246
252
|
* native invoker action always matches the current state explicitly:
|
|
247
253
|
* `'hide'` while open, `'show'` while closed. We avoid `'toggle'` on
|
|
248
|
-
* purpose
|
|
254
|
+
* purpose: toggle re-evaluates the popover's live state at click time
|
|
249
255
|
* and would re-open the menu if it had just been light-dismissed
|
|
250
256
|
* milliseconds earlier (the source of the "menu briefly closes and
|
|
251
257
|
* reopens" bug). With explicit show/hide, the worst case is a no-op
|
|
252
|
-
* (e.g. `'hide'` on an already-closed menu)
|
|
258
|
+
* (e.g. `'hide'` on an already-closed menu), never a spurious open.
|
|
253
259
|
*
|
|
254
260
|
* The invoker association (`popoverTargetElement`) is set elsewhere
|
|
255
|
-
*
|
|
261
|
+
* (persistently on anchor change rather than per-toggle), so the
|
|
256
262
|
* browser's light-dismiss exclusion is in place from the very first
|
|
257
263
|
* click instead of only after the menu has already opened once.
|
|
258
264
|
*/
|
|
@@ -265,7 +271,7 @@ export class NLDDMenu extends LitElement {
|
|
|
265
271
|
* else closes it: opening a modal dialog empties the top layer, and Safari
|
|
266
272
|
* does not fire `toggle` for the popovers it drops. The anchor then keeps
|
|
267
273
|
* saying "open" while the menu is gone, and its next click asks the browser
|
|
268
|
-
* to hide an already-hidden popover
|
|
274
|
+
* to hide an already-hidden popover. That is a no-op, so the button looks dead.
|
|
269
275
|
*
|
|
270
276
|
* Called on the anchor's own pointerdown, before the click resolves the
|
|
271
277
|
* invoker, so the action is decided on the truth rather than on a state
|
|
@@ -392,7 +398,7 @@ export class NLDDMenu extends LitElement {
|
|
|
392
398
|
this._handleBack = () => {
|
|
393
399
|
this.hidePopover?.();
|
|
394
400
|
};
|
|
395
|
-
/** Cursor moved onto the drill-in back button
|
|
401
|
+
/** Cursor moved onto the drill-in back button. Clear any item highlight
|
|
396
402
|
* so we don't show two "active" elements at once (back button + first
|
|
397
403
|
* item that was auto-highlighted on open).
|
|
398
404
|
* @internal */
|
|
@@ -409,7 +415,7 @@ export class NLDDMenu extends LitElement {
|
|
|
409
415
|
/** Close the menu on a window resize. Floating-UI's autoUpdate keeps
|
|
410
416
|
* the position in sync with scrolls (where users genuinely expect the
|
|
411
417
|
* menu to follow the anchor), but a full window resize is a layout-
|
|
412
|
-
* shifting interaction the user isn't currently tracking
|
|
418
|
+
* shifting interaction the user isn't currently tracking. It is better to
|
|
413
419
|
* dismiss with a clean slate than to chase the anchor across a
|
|
414
420
|
* reflow, repaint a flipped placement, or get stuck mid-flight when
|
|
415
421
|
* crossing the cascade ↔ drill-in viewport threshold. The window
|
|
@@ -429,7 +435,7 @@ export class NLDDMenu extends LitElement {
|
|
|
429
435
|
* closes after it, so you see what you picked. `select` has already gone
|
|
430
436
|
* out: the action does not wait for the blink. Every menu in the chain
|
|
431
437
|
* hears the event; the first one runs the blink and the rest leave it.
|
|
432
|
-
* In a menu that is not open, in a listbox, or after a click or key with
|
|
438
|
+
* In a menu that is not open, in a listbox, with `no-blink`, or after a click or key with
|
|
433
439
|
* reduced motion, it closes at once; a tap still holds.
|
|
434
440
|
*/
|
|
435
441
|
this._handleSelect = (event) => {
|
|
@@ -444,7 +450,8 @@ export class NLDDMenu extends LitElement {
|
|
|
444
450
|
// Holding a tapped item lit is no motion, so only the blink gives way to
|
|
445
451
|
// reduced motion.
|
|
446
452
|
const reduceMotion = !pressedByTouch && matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
447
|
-
|
|
453
|
+
const noBlink = (this._chainRoot ?? this).noBlink;
|
|
454
|
+
if (!button || !this._isOpen || this.variant === 'listbox' || noBlink || reduceMotion) {
|
|
448
455
|
this._collapseChain();
|
|
449
456
|
return;
|
|
450
457
|
}
|
|
@@ -497,14 +504,14 @@ export class NLDDMenu extends LitElement {
|
|
|
497
504
|
};
|
|
498
505
|
this._finishBlink = null;
|
|
499
506
|
/**
|
|
500
|
-
* Collapse the entire menu chain at once
|
|
507
|
+
* Collapse the entire menu chain at once (root + every open submenu),
|
|
501
508
|
* with no "back one level" re-show. Used when the action is final:
|
|
502
509
|
* selecting an item, clicking the anchor, clicking/tapping outside, or
|
|
503
510
|
* a viewport resize.
|
|
504
511
|
*
|
|
505
512
|
* Driven by the root's `_openChain` registry of levels, so it never
|
|
506
513
|
* depends on `_activeSubmenu` /
|
|
507
|
-
* `_parentMenu` threading being intact at collapse time
|
|
514
|
+
* `_parentMenu` threading being intact at collapse time. Real
|
|
508
515
|
* interaction can leave those stale, which was the source of the
|
|
509
516
|
* recurring "anchor click doesn't close after the 2nd navigation"
|
|
510
517
|
* bug. Idempotent: every chain level's `select` listener may call it,
|
|
@@ -524,7 +531,7 @@ export class NLDDMenu extends LitElement {
|
|
|
524
531
|
/**
|
|
525
532
|
* Drill-in click-outside: collapse the entire chain.
|
|
526
533
|
*
|
|
527
|
-
* In drill-in mode only the deepest level is `:popover-open
|
|
534
|
+
* In drill-in mode only the deepest level is `:popover-open`, so popover
|
|
528
535
|
* light-dismiss would close just that level, and our onToggle cleanup
|
|
529
536
|
* would helpfully re-show the previous level. That's the wrong outcome
|
|
530
537
|
* for a click outside the menu: the user is dismissing the whole menu,
|
|
@@ -887,7 +894,7 @@ export class NLDDMenu extends LitElement {
|
|
|
887
894
|
}
|
|
888
895
|
/**
|
|
889
896
|
* Write `message` to this menu's polite live region. Clears first, then
|
|
890
|
-
* sets on a double rAF
|
|
897
|
+
* sets on a double rAF: the empty→text transition is what makes screen
|
|
891
898
|
* readers reliably re-announce unchanged-looking content across engines.
|
|
892
899
|
*
|
|
893
900
|
* Spam control without muting real navigation: a doubled event in the
|
|
@@ -1024,7 +1031,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1024
1031
|
}
|
|
1025
1032
|
/**
|
|
1026
1033
|
* Pick the drill-in side (above vs below the anchor) purely from the
|
|
1027
|
-
* available viewport space around the anchor
|
|
1034
|
+
* available viewport space around the anchor, never from content
|
|
1028
1035
|
* size. Content-independent so every level of the chain resolves to
|
|
1029
1036
|
* the same side and a bigger submenu scrolls internally rather than
|
|
1030
1037
|
* flipping the whole stack. Keeps the configured alignment suffix
|
|
@@ -1071,7 +1078,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1071
1078
|
* Item-activation logic shared between the native `mouseenter` capture
|
|
1072
1079
|
* handler and the safe triangle's `releaseAt` (sideways exit, direction
|
|
1073
1080
|
* reversal, stall dismissal). Those paths know which item is under the
|
|
1074
|
-
* cursor
|
|
1081
|
+
* cursor, so they don't need to synthesize a MouseEvent just to re-enter
|
|
1075
1082
|
* the handler. Factoring out the body keeps the entry contracts honest:
|
|
1076
1083
|
* the recovery sites pass an already-resolved item rather than relying
|
|
1077
1084
|
* on `event.target` semantics they'd have to fake.
|
|
@@ -1178,7 +1185,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1178
1185
|
return NLDDMenu._getDrillInModeQuery().matches;
|
|
1179
1186
|
}
|
|
1180
1187
|
/** Walks the parent-menu chain up to the root (the menu that wasn't
|
|
1181
|
-
* opened by another menu
|
|
1188
|
+
* opened by another menu and has no _parentMenu). */
|
|
1182
1189
|
get _rootMenu() {
|
|
1183
1190
|
let m = this;
|
|
1184
1191
|
while (m._parentMenu)
|
|
@@ -1430,7 +1437,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1430
1437
|
*
|
|
1431
1438
|
* Matching items are kept visible. Non-matching items are hidden. Matching
|
|
1432
1439
|
* items receive `query=<query>` so their text-cell bolds the non-typed
|
|
1433
|
-
* remainder (predictive completion
|
|
1440
|
+
* remainder (predictive completion, the ARIA APG pattern for combobox).
|
|
1434
1441
|
*
|
|
1435
1442
|
* When the query is empty, all items are shown and `query` is cleared.
|
|
1436
1443
|
*
|
|
@@ -1489,7 +1496,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1489
1496
|
}, ANNOUNCE_RESULTS_DELAY_MS);
|
|
1490
1497
|
}
|
|
1491
1498
|
/**
|
|
1492
|
-
* Hide each nldd-menu-group whose items are all filtered out
|
|
1499
|
+
* Hide each nldd-menu-group whose items are all filtered out: a labeled
|
|
1493
1500
|
* heading above an empty section reads as broken. Runs after filter() has
|
|
1494
1501
|
* updated individual item visibility.
|
|
1495
1502
|
*/
|
|
@@ -1656,8 +1663,8 @@ export class NLDDMenu extends LitElement {
|
|
|
1656
1663
|
* buffer; the menu jumps to the first item whose text starts with the
|
|
1657
1664
|
* buffer (case-insensitive).
|
|
1658
1665
|
*
|
|
1659
|
-
* Single-char buffer (first press or after reset) cycles through matches
|
|
1660
|
-
*
|
|
1666
|
+
* Single-char buffer (first press or after reset) cycles through matches:
|
|
1667
|
+
* repeated presses of the same letter step through every item starting
|
|
1661
1668
|
* with it. Multi-char buffer matches from the currently-focused item, so
|
|
1662
1669
|
* extending the prefix while the current item still matches keeps focus
|
|
1663
1670
|
* stable instead of jumping forward.
|
|
@@ -1698,11 +1705,11 @@ NLDDMenu.styles = menuStyles;
|
|
|
1698
1705
|
* over the parent) and gets a back-button header. Otherwise (cascade)
|
|
1699
1706
|
* the submenu opens beside its parent item.
|
|
1700
1707
|
*
|
|
1701
|
-
* Detection is based on pointer type and viewport width
|
|
1708
|
+
* Detection is based on pointer type and viewport width: touch devices
|
|
1702
1709
|
* and narrow viewports drill in, everything else cascades. No consumer
|
|
1703
1710
|
* override; the choice is environment-driven.
|
|
1704
1711
|
*
|
|
1705
|
-
* Cached MediaQueryList shared across instances
|
|
1712
|
+
* Cached MediaQueryList shared across instances, because `matchMedia()` returns
|
|
1706
1713
|
* a live object and re-evaluating it for every mouseenter/submenu-open
|
|
1707
1714
|
* is wasteful.
|
|
1708
1715
|
*/
|
|
@@ -1710,7 +1717,7 @@ NLDDMenu._drillInModeQuery = null;
|
|
|
1710
1717
|
// — Lifecycle callbacks ————————————————————————————————————————————————————
|
|
1711
1718
|
NLDDMenu._menuIdCounter = 0;
|
|
1712
1719
|
/** Reset the typeahead buffer after this much idle time. 500ms is the
|
|
1713
|
-
* common ARIA APG / OS convention
|
|
1720
|
+
* common ARIA APG / OS convention: long enough to type a 2-3 char prefix
|
|
1714
1721
|
* comfortably, short enough that an unrelated later keystroke starts a
|
|
1715
1722
|
* fresh search. */
|
|
1716
1723
|
NLDDMenu._TYPEAHEAD_RESET_MS = 500;
|
|
@@ -1720,6 +1727,9 @@ __decorate([
|
|
|
1720
1727
|
__decorate([
|
|
1721
1728
|
property({ type: String })
|
|
1722
1729
|
], NLDDMenu.prototype, "width", void 0);
|
|
1730
|
+
__decorate([
|
|
1731
|
+
property({ type: Boolean, reflect: true, attribute: 'no-blink' })
|
|
1732
|
+
], NLDDMenu.prototype, "noBlink", void 0);
|
|
1723
1733
|
__decorate([
|
|
1724
1734
|
property({ reflect: true, converter: reflectNonDefault('') })
|
|
1725
1735
|
], NLDDMenu.prototype, "anchor", void 0);
|