@nldd/design-system 0.27.1 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +5634 -5882
- package/dist/cdn/autoloader.js +140 -141
- package/dist/cdn/chunks/{accordion-tLICRUFs.js → accordion-BcmquOub.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-Db9LW8AG.js → accordion-item-XIX9-01D.js} +4 -4
- package/dist/cdn/chunks/{activity-indicator-CMNIikEV.js → activity-indicator-DXZ_IqAa.js} +14 -14
- package/dist/cdn/chunks/{admonition-DEXVkTJm.js → admonition-DIcSNzcO.js} +4 -4
- package/dist/cdn/chunks/{avatar-nLrlfh4s.js → avatar-DG0uG2Eu.js} +23 -23
- package/dist/cdn/chunks/{avatar-group-DMU0HLBL.js → avatar-group-DYOrOs6f.js} +16 -15
- package/dist/cdn/chunks/{badge-D1XadmOE.js → badge-DfxWgcGT.js} +9 -9
- package/dist/cdn/chunks/{banner-B4kFQlHx.js → banner-Bg2LBBIY.js} +11 -11
- package/dist/cdn/chunks/{bar-split-view-DtD4zmoP.js → bar-split-view-C0WvMmEi.js} +11 -6
- package/dist/cdn/chunks/{blockquote-DbFjwox8.js → blockquote-Ck5AQfWo.js} +7 -7
- package/dist/cdn/chunks/{box-BlwaDicI.js → box-BAZsRjBx.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-DJS9-8wX.js → breadcrumbs-8X_HdTjk.js} +12 -12
- package/dist/cdn/chunks/{button-bar-5RtXjgGl.js → button-bar-DyO3sMIB.js} +8 -8
- package/dist/cdn/chunks/{button-group-BYMkQNhT.js → button-group-BfH8ZDe-.js} +8 -8
- package/dist/cdn/chunks/{button-BK8CmshL.js → button-rQihZDPs.js} +75 -79
- package/dist/cdn/chunks/{card-NNl0PxBY.js → card-Gwu3NVqY.js} +21 -11
- package/dist/cdn/chunks/{cell-D2NzCBVZ.js → cell-Dbf536SX.js} +6 -6
- package/dist/cdn/chunks/{checkbox-CXFA_up4.js → checkbox-BI4FMRr3.js} +21 -21
- package/dist/cdn/chunks/{checkbox-field-sFs7GvAq.js → checkbox-field-CC00Cz23.js} +15 -15
- package/dist/cdn/chunks/{checkbox-group-BPN4eRCX.js → checkbox-group-B32_gJY6.js} +12 -12
- package/dist/cdn/chunks/{class-map-1XjgYGeg.js → class-map-DfeulNZ_.js} +1 -1
- package/dist/cdn/chunks/{code-editor-KZEaMAN7.js → code-editor-BZ-dPqXq.js} +13 -13
- package/dist/cdn/chunks/{code-viewer-CJwpLKb1.js → code-viewer-Bz7wk-Zj.js} +17 -17
- package/dist/cdn/chunks/{codemirror-input-CYBNNf0-.js → codemirror-input-CBuhqk5Y.js} +5 -5
- package/dist/cdn/chunks/{collection-BdUB8qeL.js → collection-CB6_y2t8.js} +13 -13
- package/dist/cdn/chunks/{combo-box-DxWW-zeE.js → combo-box-BqY6lvfT.js} +42 -42
- package/dist/cdn/chunks/{container-Dhf1Ahi8.js → container-D4G6IZic.js} +9 -9
- package/dist/cdn/chunks/{custom-element-DtLjpays.js → custom-element-zgCtSWGH.js} +1 -1
- package/dist/cdn/chunks/{custom-font-size-D7KNr84p.js → custom-font-size-D-U1Z_wx.js} +1 -1
- package/dist/cdn/chunks/{date-field-D83r9gjY.js → date-field-BBoAp1Qn.js} +35 -35
- package/dist/cdn/chunks/{date-picker-D8qv2iuG.js → date-picker-DJIaeQzM.js} +23 -23
- package/dist/cdn/chunks/{decorate-BhnGmemK.js → decorate-CXvSUV9i.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-Jh_PTTde.js → described-by-mixin-Bl8QgshZ.js} +3 -3
- package/dist/cdn/chunks/{description-cell-nQKMluy8.js → description-cell-CCq3LiDa.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-Bet7bhMS.js → dev-checks-DG6-EY8p.js} +151 -176
- package/dist/cdn/chunks/{directive-helpers-dLE2M1R1.js → directive-helpers-DuLEIDjM.js} +1 -1
- package/dist/cdn/chunks/{dist-Cdmhq-4P.js → dist-B0EhnbLL.js} +2 -2
- package/dist/cdn/chunks/{dist-BTuJ-NyU.js → dist-B7T6GKkq.js} +2 -2
- package/dist/cdn/chunks/{dist-BpqJqkl_.js → dist-BFj2d0kQ.js} +1 -1
- package/dist/cdn/chunks/{dist-BbwC3zHR.js → dist-BPqRc_Nn.js} +2 -2
- package/dist/cdn/chunks/{dist-Dzlvec4O.js → dist-BT1-y5Tb.js} +1 -1
- package/dist/cdn/chunks/{dist-DJSiRJRL.js → dist-C8OAxmvo.js} +1 -1
- package/dist/cdn/chunks/{dist-DwevYbXo.js → dist-CMreNjZ0.js} +1 -1
- package/dist/cdn/chunks/{dist-EP5KATv0.js → dist-CyDG2Stm.js} +1 -1
- package/dist/cdn/chunks/{dist-C9xmfEc_.js → dist-DuZZX8oT.js} +1 -1
- package/dist/cdn/chunks/{dist-CYKK2xXE.js → dist-Mx6eY_XI.js} +3 -3
- package/dist/cdn/chunks/{dist-u6MS5-M8.js → dist-QIVpZOok.js} +3 -3
- package/dist/cdn/chunks/{divider-DjT76fuO.js → divider-CtNxoBXu.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-CO2M1bFc.js → document-tab-bar-C0RWhx9m.js} +23 -23
- package/dist/cdn/chunks/{dropdown-CdQ1beF2.js → dropdown-Bc0en6CR.js} +19 -19
- package/dist/cdn/chunks/{element-state-B-44fVqq.js → element-state-D-J_cHEV.js} +9 -3
- package/dist/cdn/chunks/{field-button-controller-yvICuXoE.js → field-button-controller-DKej3aXU.js} +1 -1
- package/dist/cdn/chunks/{file-field-D0UlnM9R.js → file-field-ab-WShTI.js} +29 -29
- package/dist/cdn/chunks/{form-BV9wifov.js → form-DUkQXtMT.js} +9 -6
- package/dist/cdn/chunks/{form-actions-DDeF8urg.js → form-actions-DAA4feSG.js} +21 -17
- package/dist/cdn/chunks/{form-associated-mixin-Cm1N24gR.js → form-associated-mixin-D9E51k93.js} +3 -3
- package/dist/cdn/chunks/{form-field-IeKadcwe.js → form-field-DlLMimbj.js} +72 -63
- package/dist/cdn/chunks/form-field.i18n-B-UZduXL.js +3 -0
- package/dist/cdn/chunks/{form-section-C350G5wg.js → form-section-BvBuApsD.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-CR3zsX7K.js → full-bleed-section-CTaKn0tf.js} +3 -3
- package/dist/cdn/chunks/{hero-Ch5el5J5.js → hero-Dd5p9i9u.js} +23 -23
- package/dist/cdn/chunks/{icon-Dj98ov4G.js → icon-D4fRZxV2.js} +9 -9
- package/dist/cdn/chunks/{icon-button-HKoCqWG3.js → icon-button-DOaYzHj0.js} +64 -68
- package/dist/cdn/chunks/{icon-cell-C1I-oIWn.js → icon-cell-CywVVCYz.js} +9 -9
- package/dist/cdn/chunks/{identity-DNkEDJ8m.js → identity-DKFLeTaG.js} +6 -6
- package/dist/cdn/chunks/{if-defined-CZ1Fmb74.js → if-defined-DmACWFoP.js} +1 -1
- package/dist/cdn/chunks/{image-KXTd-hL-.js → image-DSXL5nMx.js} +21 -21
- package/dist/cdn/chunks/{inline-dialog-BTI0xmIT.js → inline-dialog-_TYBWEal.js} +14 -14
- package/dist/cdn/chunks/{interest-invoker-CfOJaqZQ.js → interest-invoker-CxvYA5Qy.js} +1 -1
- package/dist/cdn/chunks/{just-in-time-education-BtjbYffu.js → just-in-time-education-CXJOozIu.js} +17 -17
- package/dist/cdn/chunks/{kanban-DNXtL34O.js → kanban-DNLzjjc_.js} +10 -10
- package/dist/cdn/chunks/{kanban-column-D0ujQ2_W.js → kanban-column-eo2SYTGR.js} +4 -4
- package/dist/cdn/chunks/{keyboard-shortcut-BikzmCBH.js → keyboard-shortcut-DZ-mqzxk.js} +13 -13
- package/dist/cdn/chunks/{languages-CPd7_I8H.js → languages-DOvFU6aa.js} +12 -12
- package/dist/cdn/chunks/{link-DqMeRYFm.js → link-C2Tm_F2F.js} +16 -16
- package/dist/cdn/chunks/{link-group-BKn4MHA-.js → link-group-BKeEUdjA.js} +6 -6
- package/dist/cdn/chunks/{link-hint-KFhgr5Ng.js → link-hint-x3C1uwSo.js} +1 -1
- package/dist/cdn/chunks/{list-C8Dnks-q.js → list-DXBgXtok.js} +18 -18
- package/dist/cdn/chunks/{list-item-CSP1a_cN.js → list-item-CBIk8V1o.js} +85 -88
- package/dist/cdn/chunks/{list-item-segment-BvFqXXnA.js → list-item-segment-BJAJO78S.js} +16 -16
- package/dist/cdn/chunks/{menu-LZ0DmVCe.js → menu-NHTlulPo.js} +38 -29
- package/dist/cdn/chunks/{menu-bar-rsGd3kKq.js → menu-bar-BplgndmQ.js} +34 -34
- package/dist/cdn/chunks/{menu-bar-item-DENdrp0m.js → menu-bar-item-1ymZKx5B.js} +44 -43
- package/dist/cdn/chunks/{menu-divider-BptK2nug.js → menu-divider-A_WVVPRj.js} +3 -3
- package/dist/cdn/chunks/{menu-group-0B34NyN5.js → menu-group-BxdR9cIB.js} +4 -4
- package/dist/cdn/chunks/{menu-item-55vjckz2.js → menu-item-CfSzAmYP.js} +21 -21
- package/dist/cdn/chunks/{menu.template-B_HMnBsa.js → menu.template-BQg9CFZU.js} +6 -6
- package/dist/cdn/chunks/{modal-dialog-DQY_0Qlk.js → modal-dialog-CRoItKeC.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-DB4Vflno.js → multi-line-text-field-Dyyhaixb.js} +36 -36
- package/dist/cdn/chunks/{navigation-split-view-Dbhrxni9.js → navigation-split-view-C40LLsnq.js} +65 -57
- package/dist/cdn/chunks/nl.generated-B194RR-y.js +118 -0
- package/dist/cdn/chunks/{notification-dtrMLORo.js → notification-DCJBxwgA.js} +10 -10
- package/dist/cdn/chunks/{number-field-Ctxk40as.js → number-field-DsZcWhVJ.js} +23 -23
- package/dist/cdn/chunks/{one-half-one-half-section-Bx6KLSY5.js → one-half-one-half-section-C7iwuCox.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-Bql0Xrsc.js → one-third-two-thirds-section-viwFsAKX.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-B-y5gRLi.js → one-time-code-field-BK1dcrkM.js} +25 -25
- package/dist/cdn/chunks/{overflow-menu-Cs1VLcX7.js → overflow-menu-b9-YGrjH.js} +1 -1
- package/dist/cdn/chunks/{owner-form-Cq8tT7ac.js → owner-form-Bl_p0Ca4.js} +1 -1
- package/dist/cdn/chunks/{page-Bdkit86l.js → page-DtZ9Ef4H.js} +52 -51
- package/dist/cdn/chunks/{page-footer-D68JiIFE.js → page-footer-DnBD0aG2.js} +10 -10
- package/dist/cdn/chunks/{page-section-mixin-Bmlpcmrw.js → page-section-mixin-BhtKGjf2.js} +3 -3
- package/dist/cdn/chunks/{pagination-BH6UQbby.js → pagination-Bw6rA75o.js} +16 -16
- package/dist/cdn/chunks/{password-field-Dz0znv2L.js → password-field-DvEggyk3.js} +33 -33
- package/dist/cdn/chunks/{popover-C6j3sO70.js → popover-BS_tKHY-.js} +18 -18
- package/dist/cdn/chunks/{progress-bar-BA_5dDXK.js → progress-bar-DjbR_gfZ.js} +30 -30
- package/dist/cdn/chunks/{progress-circle-DsCyTyw-.js → progress-circle-Cz9PLyQK.js} +27 -27
- package/dist/cdn/chunks/{radio-button-pcE5Vo5k.js → radio-button-D8mtS3no.js} +50 -53
- package/dist/cdn/chunks/{radio-button-field-JsQalrMs.js → radio-button-field-BW0hpqWv.js} +14 -14
- package/dist/cdn/chunks/{radio-button-group-Bqn43LYh.js → radio-button-group-9q5EIa2C.js} +12 -12
- package/dist/cdn/chunks/{render-marked-DAVGoeYa.js → render-marked-Ux8zPP_h.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-r4OuA45S.js → reorder-handle-cell-Du9jl_rB.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-Co5E_Y7l.js → reorder-handle-mixin-Bk1J-pVX.js} +2 -2
- package/dist/cdn/chunks/{repeat-DoLR8W_a.js → repeat-DxDrgDAx.js} +2 -2
- package/dist/cdn/chunks/{rich-text-CEmzxZRC.js → rich-text--3YgH9Ad.js} +7 -7
- package/dist/cdn/chunks/{row-header-mixin-BCYXiXva.js → row-header-mixin-DcfVBdj0.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-OSFrYTum.js → scroll-fade-BqyBYmMY.js} +2 -2
- package/dist/cdn/chunks/scroll-mode-controller-CuCRKyLT.js +55 -0
- package/dist/cdn/chunks/{search-field-CT483s7J.js → search-field-DvqETt9_.js} +21 -21
- package/dist/cdn/chunks/{segmented-control-5zMasjz7.js → segmented-control-Bc0JEwuo.js} +86 -91
- package/dist/cdn/chunks/{shadow-resets-DR73IFIL.js → shadow-resets-BerORb5_.js} +2 -2
- package/dist/cdn/chunks/{sheet-CDXX61d_.js → sheet-O_29ylNf.js} +4 -4
- package/dist/cdn/chunks/{shell-C4vAeA49.js → shell-wlMaUZMA.js} +4 -4
- package/dist/cdn/chunks/{side-by-side-split-view-D9_u1TIS.js → side-by-side-split-view-CLd3Nale.js} +7 -5
- package/dist/cdn/chunks/{sidebar-section-vWX-ymIa.js → sidebar-section-CM5FBrQy.js} +16 -16
- package/dist/cdn/chunks/{simple-section-CEw2oC7K.js → simple-section-CnYSz59b.js} +3 -3
- package/dist/cdn/chunks/{skip-link-DcOGlfM9.js → skip-link-BSWXUiUo.js} +5 -5
- package/dist/cdn/chunks/{slider-B108QDlz.js → slider-Cz9TWQ1q.js} +30 -24
- package/dist/cdn/chunks/{slotted-block-xNpJoXLz.js → slotted-block-MzAN2mbY.js} +1 -1
- package/dist/cdn/chunks/{spacer-CpfTNtbZ.js → spacer-Di1FKF1H.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-DBm7_AUi.js → spacer-cell-DxLzLJCd.js} +4 -4
- package/dist/cdn/chunks/{split-button-DxgDxdan.js → split-button-D8g_ndEY.js} +26 -26
- package/dist/cdn/chunks/{split-view-divider-6_RDvANN.js → split-view-divider-BRYFJldk.js} +2 -2
- package/dist/cdn/chunks/{stacked-split-view-CRMEMwtv.js → stacked-split-view-BKKmNsjn.js} +7 -5
- package/dist/cdn/chunks/{static-html-CmXnRyP6.js → static-html-BuLHPpfA.js} +1 -1
- package/dist/cdn/chunks/{status-bar-Blk_iYSD.js → status-bar-CHZ0l8TZ.js} +8 -8
- package/dist/cdn/chunks/{step-bar-DM4a_0PG.js → step-bar-C1MPbS7g.js} +15 -16
- package/dist/cdn/chunks/{step-bar.i18n-DocExlD7.js → step-bar.i18n-DipTJYgp.js} +2 -1
- package/dist/cdn/chunks/{step-cell-CUs8AKJq.js → step-cell-27LEuImu.js} +14 -14
- package/dist/cdn/chunks/{stepper-JwxPNJRc.js → stepper-CFnmm4Jc.js} +19 -19
- package/dist/cdn/chunks/{style-map-DUDIMhuW.js → style-map-CT-UKis2.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-BXs7Ob4o.js → swatch-picker-qcDRmYxS.js} +49 -44
- package/dist/cdn/chunks/{switch-CWKoOyz7.js → switch-DF_LNJMR.js} +20 -20
- package/dist/cdn/chunks/{switch-field-BgX9mNOA.js → switch-field-BKIKn9wq.js} +13 -13
- package/dist/cdn/chunks/{tab-bar-BNaJSB38.js → tab-bar-VVZNYCSU.js} +27 -27
- package/dist/cdn/chunks/{table-dgJdHR92.js → table-DfKFKaDW.js} +11 -11
- package/dist/cdn/chunks/{tag-DHHf_gxq.js → tag-CJQEzBXC.js} +5 -5
- package/dist/cdn/chunks/{term-DNLqQErM.js → term-D3QB0GN-.js} +16 -16
- package/dist/cdn/chunks/{text-CK1-qJ6d.js → text-GAY_Be6G.js} +11 -11
- package/dist/cdn/chunks/{text-cell-CrKBqL5A.js → text-cell-D9qxQeCY.js} +13 -13
- package/dist/cdn/chunks/{text-editor-B0A2vNpD.js → text-editor-C1-K1z1w.js} +975 -970
- package/dist/cdn/chunks/{text-field-CqYxSiKy.js → text-field-Bq_41L1a.js} +34 -34
- package/dist/cdn/chunks/{time-field-DHm6KQsG.js → time-field-Bqny9JeT.js} +35 -35
- package/dist/cdn/chunks/{time-picker-C_BE5oNq.js → time-picker-DMaxOCDt.js} +12 -12
- package/dist/cdn/chunks/{title-BpREzeX9.js → title-Dxhkfehz.js} +6 -6
- package/dist/cdn/chunks/{title-cell-C4ZL3mJo.js → title-cell-BDvpoBrO.js} +11 -11
- package/dist/cdn/chunks/{toggle-button-COQdr-hZ.js → toggle-button-CcIX98G1.js} +35 -35
- package/dist/cdn/chunks/{toggle-button-group-D4vTcGce.js → toggle-button-group-Dyqjqg2D.js} +13 -13
- package/dist/cdn/chunks/{token-1DfHVSVj.js → token-BBS6BXwU.js} +11 -11
- package/dist/cdn/chunks/{token-field-s_mCjtcZ.js → token-field-CO6N6wZW.js} +26 -26
- package/dist/cdn/chunks/{toolbar-Bz_8d1v-.js → toolbar--slFc4EX.js} +32 -23
- package/dist/cdn/chunks/toolbar-item-j9QbC5s5.js +77 -0
- package/dist/cdn/chunks/{toolbar-title-Cl8VPHYK.js → toolbar-title-D_BBNlB2.js} +36 -22
- package/dist/cdn/chunks/{toolbar.styles-BiT7JPsr.js → toolbar.styles-CKxRmIg-.js} +19 -17
- package/dist/cdn/chunks/{tooltip-DhPeqDvL.js → tooltip-bqAbXl2W.js} +33 -25
- package/dist/cdn/chunks/{top-navigation-bar-CHWqoNms.js → top-navigation-bar-D26UoOIz.js} +28 -28
- package/dist/cdn/chunks/{top-title-bar-DUp0bSIU.js → top-title-bar-DtXWxtJF.js} +12 -12
- package/dist/cdn/chunks/{translations-C6WKR-hE.js → translations-DsTLnxKh.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-CftZqodu.js → two-thirds-one-third-section-D1R62yzp.js} +3 -3
- package/dist/cdn/chunks/{validation-list-BdTSfsD6.js → validation-list-DlJ18Ojt.js} +35 -42
- package/dist/cdn/chunks/{visibility-mixin-DL737l0g.js → visibility-mixin-Bkc9mSOZ.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-DvU3wAD4.js → visually-hidden-CNq15vm2.js} +2 -2
- package/dist/cdn/chunks/{window-7XYqha2V.js → window-B3gyQQvV.js} +11 -11
- package/dist/cdn/chunks/{with-translations-nT8q6ELU.js → with-translations-BJzVHQmV.js} +3 -3
- package/dist/components/actions/button/button.d.ts +45 -44
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +90 -87
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.js +2 -2
- package/dist/components/actions/button-bar/button-bar.d.ts +2 -2
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +6 -6
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts +2 -2
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +5 -5
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +50 -49
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +91 -88
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +2 -2
- package/dist/components/actions/menu/menu-item.d.ts +16 -16
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +33 -33
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +32 -23
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +65 -41
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +22 -22
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +40 -40
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/split-button/split-button.template.js +2 -2
- package/dist/components/actions/split-button/split-button.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.d.ts +23 -11
- package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.js +33 -22
- package/dist/components/actions/toolbar/toolbar-item.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.d.ts +10 -3
- package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +18 -9
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +2 -2
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +23 -21
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +16 -14
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/content/avatar/avatar.d.ts +18 -18
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +32 -32
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js +1 -0
- package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +2 -2
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +5 -5
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +3 -3
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +11 -11
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +4 -4
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +10 -10
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/image/image.d.ts +26 -26
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +43 -43
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +15 -15
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +24 -24
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +2 -2
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +5 -5
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/term/term.d.ts +2 -2
- package/dist/components/content/term/term.d.ts.map +1 -1
- package/dist/components/content/term/term.js +5 -5
- package/dist/components/content/term/term.js.map +1 -1
- package/dist/components/content/text/text.d.ts +3 -3
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +8 -8
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/token/token.d.ts +4 -4
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +10 -10
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +5 -5
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +33 -12
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +1 -0
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/forms/form/form.d.ts +3 -17
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +12 -24
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts +10 -10
- package/dist/components/forms/form-actions/form-actions.d.ts.map +1 -1
- package/dist/components/forms/form-actions/form-actions.js +18 -10
- package/dist/components/forms/form-actions/form-actions.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.styles.js +4 -4
- package/dist/components/forms/form-field/form-field.d.ts +20 -8
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.i18n.d.ts +5 -0
- package/dist/components/forms/form-field/form-field.i18n.d.ts.map +1 -0
- package/dist/components/forms/form-field/form-field.i18n.js +4 -0
- package/dist/components/forms/form-field/form-field.i18n.js.map +1 -0
- package/dist/components/forms/form-field/form-field.js +46 -18
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +12 -12
- package/dist/components/forms/form-field/form-field.template.js +1 -1
- package/dist/components/forms/form-field/form-field.template.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +23 -12
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +45 -30
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.styles.js +2 -2
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +16 -16
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +29 -29
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +20 -20
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +28 -28
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts +9 -9
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.js +18 -18
- package/dist/components/inputs/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +13 -13
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +8 -8
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +34 -34
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +66 -66
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +24 -24
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +50 -50
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +21 -21
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +38 -39
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +9 -9
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +20 -20
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +13 -13
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +24 -24
- 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 +28 -28
- 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 +51 -51
- 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 +19 -19
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +39 -39
- 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 +12 -12
- 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 +27 -27
- 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 +26 -26
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +51 -51
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +20 -20
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +37 -34
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +14 -14
- 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 +25 -25
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.js +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +9 -9
- 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 +18 -18
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +8 -8
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +19 -19
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +56 -60
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +110 -102
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +11 -11
- package/dist/components/inputs/slider/slider.d.ts +6 -6
- package/dist/components/inputs/slider/slider.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.js +33 -21
- package/dist/components/inputs/slider/slider.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts +12 -12
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +24 -24
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.template.js +2 -2
- package/dist/components/inputs/stepper/stepper.template.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +10 -9
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js +27 -20
- package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.js +2 -2
- package/dist/components/inputs/switch/switch.d.ts +15 -15
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +27 -27
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +13 -13
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +22 -22
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +11 -11
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts +4 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js +3 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +39 -39
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.d.ts +6 -1
- package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.js +24 -7
- package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +28 -28
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +50 -50
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +24 -24
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +51 -51
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +21 -20
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +38 -34
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +28 -28
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +51 -51
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +23 -23
- 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 +34 -34
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +20 -20
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +46 -47
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +1 -1
- package/dist/components/layout/box/box.js +1 -1
- package/dist/components/layout/card/card.d.ts +9 -9
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +14 -14
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +11 -1
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +2 -2
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +5 -5
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.template.js +2 -2
- package/dist/components/layout/container/container.d.ts +5 -3
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +14 -8
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/kanban/kanban.d.ts +2 -2
- package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.js +5 -5
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +7 -3
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +30 -16
- 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 +1 -0
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +4 -4
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +16 -16
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +28 -28
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +7 -7
- 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 +16 -16
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +9 -9
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +22 -22
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +1 -1
- package/dist/components/layout/sheet/sheet.js +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +5 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +13 -5
- 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 +27 -46
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +6 -0
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js +3 -2
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +2 -0
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +2 -0
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +5 -5
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +10 -10
- 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.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +5 -5
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +11 -11
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +17 -17
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +5 -5
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +7 -4
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +6 -6
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +13 -18
- 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 -29
- 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 +35 -30
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +2 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +25 -25
- 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 +44 -44
- 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 +7 -3
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +10 -6
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +4 -4
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +7 -7
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +6 -6
- 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 +15 -15
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +13 -13
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +29 -29
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link-group/link-group.d.ts +2 -2
- package/dist/components/navigation/link-group/link-group.d.ts.map +1 -1
- package/dist/components/navigation/link-group/link-group.js +5 -5
- package/dist/components/navigation/link-group/link-group.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +5 -5
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +12 -10
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +21 -18
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +43 -35
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +3 -3
- package/dist/components/navigation/pagination/pagination.d.ts +5 -5
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +11 -11
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.js +2 -2
- package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +16 -16
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +33 -30
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +4 -4
- 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 +12 -12
- 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 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +5 -5
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +9 -9
- 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 +15 -15
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +2 -2
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +5 -5
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +2 -2
- package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +5 -5
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +6 -6
- 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 +13 -13
- 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 +8 -8
- 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 +17 -17
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +2 -2
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +5 -5
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +12 -12
- 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 +28 -28
- 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 +10 -10
- 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 +24 -24
- 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 -2
- 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 +5 -5
- 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 +12 -6
- 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.i18n.d.ts +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.js +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +15 -12
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js +3 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
- package/dist/nldd.min.js +862 -925
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +2 -0
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +2 -0
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +2 -0
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +2 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +2 -0
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +2 -0
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/react.d.ts +748 -802
- package/dist/types/vue.d.ts +893 -971
- package/dist/utilities/autoloader.generated.d.ts.map +1 -1
- package/dist/utilities/autoloader.generated.js +0 -1
- package/dist/utilities/autoloader.generated.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +150 -175
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/element-state.d.ts +11 -0
- package/dist/utilities/element-state.d.ts.map +1 -1
- package/dist/utilities/element-state.js +18 -3
- package/dist/utilities/element-state.js.map +1 -1
- package/dist/utilities/scroll-mode-controller.d.ts +8 -0
- package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
- package/dist/utilities/scroll-mode-controller.js +13 -1
- package/dist/utilities/scroll-mode-controller.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/fix.js +43 -0
- package/lint/linter.js +4 -0
- package/lint/rule.schema.json +10 -1
- package/package.json +3 -6
- package/dist/cdn/chunks/nl.generated-BDowZkhc.js +0 -116
- package/dist/cdn/chunks/scroll-mode-controller-Dl5hddJo.js +0 -52
- package/dist/cdn/chunks/split-view-pane-9tEGLRZC.js +0 -131
- package/dist/cdn/chunks/toolbar-item-B-EDYaPf.js +0 -50
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +0 -49
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +0 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +0 -80
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +0 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.d.ts +0 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.d.ts.map +0 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +0 -95
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +0 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.template.d.ts +0 -4
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.template.d.ts.map +0 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.template.js +0 -9
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.template.js.map +0 -1
package/dist/types/react.d.ts
CHANGED
|
@@ -111,7 +111,6 @@ import type { NLDDSpacer } from '@nldd/design-system/spacer';
|
|
|
111
111
|
import type { NLDDSpacerCell } from '@nldd/design-system/spacer-cell';
|
|
112
112
|
import type { NLDDSplitButton } from '@nldd/design-system/split-button';
|
|
113
113
|
import type { NLDDSplitViewDivider } from '@nldd/design-system/split-view-divider';
|
|
114
|
-
import type { NLDDSplitViewPane } from '@nldd/design-system/split-view-pane';
|
|
115
114
|
import type { NLDDStackedSplitView } from '@nldd/design-system/stacked-split-view';
|
|
116
115
|
import type { NLDDStatusBar } from '@nldd/design-system/status-bar';
|
|
117
116
|
import type { NLDDStepBar } from '@nldd/design-system/step-bar';
|
|
@@ -171,16 +170,16 @@ type NlddAccordionItemProps = {
|
|
|
171
170
|
type NlddActivityIndicatorProps = {
|
|
172
171
|
/** Circle diameter on the icon scale: 16,20,24,28,32,40,44,48,56,64,80,96 (default '32') */
|
|
173
172
|
'size'?: NLDDActivityIndicator['size'];
|
|
174
|
-
/** Show the label under the indicator (default false; the label still feeds the accessible name) */
|
|
175
|
-
'show-text'?: true;
|
|
176
173
|
/** Label text. Falls back to the translated "Laden" when unset. */
|
|
177
174
|
'text'?: NLDDActivityIndicator['text'];
|
|
175
|
+
/** Overlay mode dims and blurs the wrapped content with a frosted backdrop by default; set this to show only the indicator panel without dimming. No effect in standalone mode. */
|
|
176
|
+
'no-backdrop'?: true;
|
|
177
|
+
/** Show the label under the indicator (default false; the label still feeds the accessible name) */
|
|
178
|
+
'show-text'?: true;
|
|
178
179
|
/** 'delay' (the default) waits 1000ms before showing (anti-flash); 'instant' shows immediately (the fade-in still plays). */
|
|
179
180
|
'timing'?: NLDDActivityIndicator['timing'];
|
|
180
181
|
/** Mark the loader as finished while keeping the element mounted; clears aria-busy and hides the indicator. */
|
|
181
182
|
'complete'?: true;
|
|
182
|
-
/** Overlay mode dims and blurs the wrapped content with a frosted backdrop by default; set this to show only the indicator panel without dimming. No effect in standalone mode. */
|
|
183
|
-
'no-backdrop'?: true;
|
|
184
183
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
185
184
|
'translations'?: NLDDActivityIndicator['translations'];
|
|
186
185
|
};
|
|
@@ -201,36 +200,36 @@ type NlddAdmonitionProps = {
|
|
|
201
200
|
};
|
|
202
201
|
|
|
203
202
|
type NlddAvatarProps = {
|
|
204
|
-
/** `person` (circle, person icon) or `organization` (rounded, building icon); default `person` */
|
|
205
|
-
'type'?: NLDDAvatar['type'];
|
|
206
|
-
/** `full` (the default) scales with the container, like nldd-icon; or a fixed size in px (spacer-aligned: 16, 20, 24, 28, 32, 40, 44, 48, 56, 64, 80, 96). The initials and the icon scale along */
|
|
207
|
-
'size'?: NLDDAvatar['size'];
|
|
208
203
|
/** `neutral` (the default, a neutral fill) or `content` (fill in the content color: the `--context-content-color` a surface, a button or a selected row sets; text in the contrast color, so the avatar can replace an icon in a button for instance) */
|
|
209
204
|
'color'?: NLDDAvatar['color'];
|
|
205
|
+
/** `full` (the default) scales with the container, like nldd-icon; or a fixed size in px (spacer-aligned: 16, 20, 24, 28, 32, 40, 44, 48, 56, 64, 80, 96). The initials and the icon scale along */
|
|
206
|
+
'size'?: NLDDAvatar['size'];
|
|
210
207
|
/** Shrinks the visible shape to 5/6 of the host, centered, so the avatar aligns optically with an icon on the same grid (an icon glyph has built-in margin) */
|
|
211
208
|
'icon-aligned'?: true;
|
|
212
|
-
/**
|
|
213
|
-
'
|
|
209
|
+
/** Overrides the type-dependent fallback icon */
|
|
210
|
+
'icon'?: NLDDAvatar['icon'];
|
|
214
211
|
/** Explicit initials, at most 4 characters, such as `KvK` or `LVVN` (overrides what is derived from `name`; also for organization acronyms). Four characters read well from 40px; below that use a shorter form */
|
|
215
212
|
'initials'?: NLDDAvatar['initials'];
|
|
216
213
|
/** Image source; falls back to initials or icon when it fails to load */
|
|
217
214
|
'src'?: NLDDAvatar['src'];
|
|
218
215
|
/** Responsive source set for the image (the component sets `sizes` itself) */
|
|
219
216
|
'srcset'?: NLDDAvatar['srcset'];
|
|
220
|
-
/**
|
|
221
|
-
'
|
|
217
|
+
/** Makes the avatar a button; ignored when `href` is set */
|
|
218
|
+
'button'?: true;
|
|
222
219
|
/** Name of the link or button; without it `name` is used */
|
|
223
220
|
'accessible-label'?: NLDDAvatar['accessibleLabel'];
|
|
224
221
|
/** Hides the avatar from assistive software (use when the name already stands beside it as text) */
|
|
225
222
|
'decorative'?: true;
|
|
223
|
+
/** Takes the control out of the tab order (tabindex="-1"), for an avatar that is a link or a button inside a roving container (a row of an nldd-list). Does nothing on a decorative avatar. */
|
|
224
|
+
'no-tab'?: true;
|
|
226
225
|
/** When the name appears as a tooltip on hover or focus: `delay` (the default, after 700ms), `instant`, or `never`. An avatar shows no text, so without a tooltip the name is readable by assistive software only. A `decorative` avatar shows none regardless: there the name already stands beside it as text */
|
|
227
226
|
'tooltip-timing'?: NLDDAvatar['tooltipTiming'];
|
|
227
|
+
/** Name of the person or organization; supplies the derived initials and the accessible label */
|
|
228
|
+
'name'?: NLDDAvatar['name'];
|
|
229
|
+
/** `person` (circle, person icon) or `organization` (rounded, building icon); default `person` */
|
|
230
|
+
'type'?: NLDDAvatar['type'];
|
|
228
231
|
/** Makes the avatar a link to this URL; the shape itself becomes the link, so the hit area and the focus ring follow it. As a link or a button the avatar needs size 24 or larger (WCAG 2.5.8) */
|
|
229
232
|
'href'?: NLDDAvatar['href'];
|
|
230
|
-
/** Takes the control out of the tab order (tabindex="-1"), for an avatar that is a link or a button inside a roving container (a row of an nldd-list). Does nothing on a decorative avatar. */
|
|
231
|
-
'no-tab'?: true;
|
|
232
|
-
/** Makes the avatar a button; ignored when `href` is set */
|
|
233
|
-
'button'?: true;
|
|
234
233
|
/** Link target for href (e.g. '_blank'); completes rel and announces "Opens in a new tab". An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
|
|
235
234
|
'target'?: NLDDAvatar['target'];
|
|
236
235
|
/** Link rel for href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
@@ -251,12 +250,12 @@ type NlddAvatarGroupProps = {
|
|
|
251
250
|
};
|
|
252
251
|
|
|
253
252
|
type NlddBadgeProps = {
|
|
254
|
-
/** Size: 'sm' | 'md' (default: 'md') */
|
|
255
|
-
'size'?: NLDDBadge['size'];
|
|
256
253
|
/** The meaning of the badge, the same set as nldd-status-bar, or 'content' to fill in the content color around it: the `--context-content-color` a surface, a button or a selected row sets. Default: 'critical'. A badge is a signal, not a category, so it has no Rijkshuisstijl colors: the theme picks the accent, and `custom-color` takes any other. Another value falls back to 'accent' and says so in development. */
|
|
257
254
|
'color'?: NLDDBadge['color'];
|
|
258
255
|
/** A color of its own, as any CSS color value ('#a90061', 'oklch(0.6 0.2 20)', 'var(--brand-cable-blue)'). For a color the design system cannot know: the jacket of a cable, a color someone picked. It wins over `color`. Whatever it paints, the text and icon on top become white or black, whichever contrasts. The text on it is black or white, picked on the relative luminance of the fill, so it clears 4.5:1 whatever color you hand it. */
|
|
259
256
|
'custom-color'?: NLDDBadge['customColor'];
|
|
257
|
+
/** Size: 'sm' | 'md' (default: 'md') */
|
|
258
|
+
'size'?: NLDDBadge['size'];
|
|
260
259
|
/** Grows a ring out of the badge and fades it, for something happening right now (a live connection, an outage). Respects `prefers-reduced-motion`. */
|
|
261
260
|
'pulse'?: true;
|
|
262
261
|
/** Text (takes precedence over number) */
|
|
@@ -280,14 +279,14 @@ type NlddBannerProps = {
|
|
|
280
279
|
'variant'?: NLDDBanner['variant'];
|
|
281
280
|
/** Banner size (default: 'md'). 'sm' tightens the padding to 8px, drops the icon to 24px and uses a smaller dismiss button, for a bar that sits between chrome and content rather than a standalone page-level notice. The typography is unchanged. */
|
|
282
281
|
'size'?: NLDDBanner['size'];
|
|
283
|
-
/** Icon override. Default per variant: neutral → info-circle-filled, accent → info-circle-filled, success → check-mark-circle-filled, warning → exclamation-triangle-filled, critical → exclamation-circle-filled */
|
|
284
|
-
'icon'?: NLDDBanner['icon'];
|
|
285
282
|
/** Main text (heading or paragraph, depending on heading-level) */
|
|
286
283
|
'text'?: NLDDBanner['text'];
|
|
287
284
|
/** Supporting text below the heading */
|
|
288
285
|
'supporting-text'?: NLDDBanner['supportingText'];
|
|
289
286
|
/** Renders text as h1–h6; absent renders a p */
|
|
290
287
|
'heading-level'?: NLDDBanner['headingLevel'];
|
|
288
|
+
/** Icon override. Default per variant: neutral → info-circle-filled, accent → info-circle-filled, success → check-mark-circle-filled, warning → exclamation-triangle-filled, critical → exclamation-circle-filled */
|
|
289
|
+
'icon'?: NLDDBanner['icon'];
|
|
291
290
|
/** Show a close button in the top-right; emits `dismiss` when clicked */
|
|
292
291
|
'dismissible'?: true;
|
|
293
292
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
@@ -314,18 +313,18 @@ type NlddBarSplitViewProps = {
|
|
|
314
313
|
type NlddBlockquoteProps = {
|
|
315
314
|
/** Size of the quote: 'md' (default) or 'lg', for a quote that stands out on its own, such as on a landing page. Only the quote grows; the attribution and the border stay as they are */
|
|
316
315
|
'size'?: NLDDBlockquote['size'];
|
|
317
|
-
/** URL of the source (forwarded to the <blockquote> element) */
|
|
318
|
-
'cite'?: NLDDBlockquote['cite'];
|
|
319
316
|
/** A size of your own for the quote at sm, any CSS length (e.g. '32px', '2rem', 'clamp(1.5rem, 4vw, 3rem)'), for a quote that stands out on its own, such as on a landing page. For a larger quote, try `size="lg"` first. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a quote made large for a wide screen never breaks a narrow one. Never smaller than the size from `size` at the same breakpoint: a smaller value shows at that size, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Only the quote grows, with its line height and the space between paragraphs; the attribution and the border stay as they are. An invalid value falls back to `size` */
|
|
320
317
|
'sm-custom-size'?: NLDDBlockquote['smCustomSize'];
|
|
321
318
|
/** The same, at md */
|
|
322
319
|
'md-custom-size'?: NLDDBlockquote['mdCustomSize'];
|
|
323
320
|
/** The same, at lg */
|
|
324
321
|
'lg-custom-size'?: NLDDBlockquote['lgCustomSize'];
|
|
322
|
+
/** URL of the source (forwarded to the <blockquote> element) */
|
|
323
|
+
'cite'?: NLDDBlockquote['cite'];
|
|
325
324
|
};
|
|
326
325
|
|
|
327
326
|
type NlddBoxProps = {
|
|
328
|
-
/** Which surface this box draws, named as it is on nldd-shell, nldd-page
|
|
327
|
+
/** Which surface this box draws, named as it is on nldd-shell, nldd-page and nldd-card. It starts tinted where a card starts base: a box is there to stand out from the page, a card to sit on it. - `tinted` (default): a box on a plain page background. - `base`: a box on an already-tinted parent (the border ring gets +2 palette steps so it still reads against a card-on-card). - `accent-tinted`: a tint of the theme's accent, with the contrast of `tinted`, for a box that belongs to the service rather than to the page. - `critical`: a region whose actions are destructive or irreversible (a "danger zone"), tinted and outlined in critical. It carries no ARIA of its own: unlike nldd-banner this is not an announcement but a permanent part of the page, so the heading and the button labels have to name the danger. Color is a reinforcement, never the only signal (WCAG 1.4.1). The box draws the surface and nothing else: it has no padding of its own, the same way nldd-card has none. Put an nldd-container inside it and let that set the inset, so one component owns spacing wherever it is used. */
|
|
329
328
|
'background'?: NLDDBox['background'];
|
|
330
329
|
};
|
|
331
330
|
|
|
@@ -337,12 +336,12 @@ type NlddBreadcrumbsProps = {
|
|
|
337
336
|
};
|
|
338
337
|
|
|
339
338
|
type NlddBreadcrumbsItemProps = {
|
|
340
|
-
/** Link target. Ignored when `current` is set. */
|
|
341
|
-
'href'?: NLDDBreadcrumbsItem['href'];
|
|
342
|
-
/** Marks this item as the current page (renders as plain text + `aria-current="page"`). Typical use is on the last item. */
|
|
343
|
-
'current'?: true;
|
|
344
339
|
/** Item label. Content in the default slot wins. */
|
|
345
340
|
'text'?: NLDDBreadcrumbsItem['text'];
|
|
341
|
+
/** Marks this item as the current page (renders as plain text + `aria-current="page"`). Typical use is on the last item. */
|
|
342
|
+
'current'?: true;
|
|
343
|
+
/** Link target. Ignored when `current` is set. */
|
|
344
|
+
'href'?: NLDDBreadcrumbsItem['href'];
|
|
346
345
|
};
|
|
347
346
|
|
|
348
347
|
type NlddButtonProps = {
|
|
@@ -350,46 +349,32 @@ type NlddButtonProps = {
|
|
|
350
349
|
'appearance'?: NLDDButton['appearance'];
|
|
351
350
|
/** Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). 'lg' uses larger text and 24px start/end icons. */
|
|
352
351
|
'size'?: NLDDButton['size'];
|
|
353
|
-
/** Horizontal alignment of the button content: 'left' | 'center' | 'right' (default: unset, centered). Most visible with width="full" or a fixed width. */
|
|
354
|
-
'horizontal-alignment'?: NLDDButton['horizontalAlignment'];
|
|
355
352
|
/** Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px') */
|
|
356
353
|
'width'?: NLDDButton['width'];
|
|
357
354
|
/** Caps the width at this CSS length (e.g. '320px'). Combines with `width="full"`: the button follows its container up to the cap. A label that doesn't fit is truncated with an ellipsis, because a cap only means something if the content respects it. */
|
|
358
355
|
'max-width'?: NLDDButton['maxWidth'];
|
|
359
|
-
/**
|
|
360
|
-
'
|
|
361
|
-
/** Whether the button has a icon to indicate it opens a menu or popover */
|
|
362
|
-
'expandable'?: true;
|
|
363
|
-
/** Whether the popover/menu controlled by this button is currently open. Forwarded as aria-expanded on the inner button; toggles the is-expanded visual state. */
|
|
364
|
-
'expanded'?: true;
|
|
365
|
-
/** Type of popup container this button opens: 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid'. Sets aria-haspopup on the inner button and forces aria-expanded to always be present (true/false) so screen readers know the popup state. An nldd-menu or nldd-popover in the `popup` slot, or anchored to this button, sets it itself from the first render; set it only for another kind of popup. */
|
|
366
|
-
'popup-type'?: NLDDButton['popupType'];
|
|
367
|
-
/** Button type for form submission: 'button' | 'submit' | 'reset' (ignored when href is set) */
|
|
368
|
-
'type'?: NLDDButton['type'];
|
|
369
|
-
/** ID of a popover element this button invokes, looked up in the tree of this button; the inner button gets the element. Use the popoverTargetElement property instead when the popover lives in another tree. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`. */
|
|
370
|
-
'popovertarget'?: NLDDButton['popovertarget'];
|
|
371
|
-
/** ID of an nldd-popover that describes this button and opens on interest, as the `interest` slot does, for a popover that stands elsewhere: one shared by several controls, or a button in a `<p>`, where markup of your own in the button would break the paragraph. Looked up in the tree of this button. A popover in the `interest` slot wins. Keep `accessible-label` on that popover: it names the popover where it stands, and is left out while it describes this button. */
|
|
372
|
-
'interestfor'?: NLDDButton['interestfor'];
|
|
373
|
-
/** Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe. */
|
|
374
|
-
'loading'?: true;
|
|
375
|
-
/** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
|
|
376
|
-
'loading-text'?: NLDDButton['loadingText'];
|
|
377
|
-
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
378
|
-
'disabled'?: true;
|
|
356
|
+
/** Horizontal alignment of the button content: 'left' | 'center' | 'right' (default: unset, centered). Most visible with width="full" or a fixed width. */
|
|
357
|
+
'horizontal-alignment'?: NLDDButton['horizontalAlignment'];
|
|
379
358
|
/** Button text */
|
|
380
359
|
'text'?: NLDDButton['text'];
|
|
381
360
|
/** Supporting text shown below the text (md/lg) or after it (sm/xs), in a secondary color. Part of the accessible name (unless `accessible-label` is set, which replaces the whole accessible name). */
|
|
382
361
|
'supporting-text'?: NLDDButton['supportingText'];
|
|
383
|
-
/** When true, truncates overflowing text with an ellipsis instead of letting it wrap. Requires the button (or an ancestor) to constrain the width. */
|
|
384
|
-
'single-line'?: true;
|
|
385
|
-
/** Removes the per-appearance highlight border (e.g. when nldd-button-bar draws a single group border instead). */
|
|
386
|
-
'no-highlight-border'?: true;
|
|
387
362
|
/** Icon name for the start icon (before text) */
|
|
388
363
|
'start-icon'?: NLDDButton['startIcon'];
|
|
389
364
|
/** Icon name for the end icon (after text) */
|
|
390
365
|
'end-icon'?: NLDDButton['endIcon'];
|
|
366
|
+
/** Whether the button has a icon to indicate it opens a menu or popover */
|
|
367
|
+
'expandable'?: true;
|
|
368
|
+
/** Type of popup container this button opens: 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid'. Sets aria-haspopup on the inner button and forces aria-expanded to always be present (true/false) so screen readers know the popup state. An nldd-menu or nldd-popover in the `popup` slot, or anchored to this button, sets it itself from the first render; set it only for another kind of popup. */
|
|
369
|
+
'popup-type'?: NLDDButton['popupType'];
|
|
370
|
+
/** ID of a popover element this button invokes, looked up in the tree of this button; the inner button gets the element. Use the popoverTargetElement property instead when the popover lives in another tree. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`. */
|
|
371
|
+
'popovertarget'?: NLDDButton['popovertarget'];
|
|
372
|
+
/** ID of an nldd-popover that describes this button and opens on interest, as the `interest` slot does, for a popover that stands elsewhere: one shared by several controls, or a button in a `<p>`, where markup of your own in the button would break the paragraph. Looked up in the tree of this button. A popover in the `interest` slot wins. Keep `accessible-label` on that popover: it names the popover where it stands, and is left out while it describes this button. */
|
|
373
|
+
'interestfor'?: NLDDButton['interestfor'];
|
|
391
374
|
/** Accessible label for the button, overrides text for screen readers */
|
|
392
375
|
'accessible-label'?: NLDDButton['accessibleLabel'];
|
|
376
|
+
/** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
|
|
377
|
+
'loading-text'?: NLDDButton['loadingText'];
|
|
393
378
|
/** Keyboard shortcut hint shown right after the text, e.g. 'Cmd+S'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name, as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. Keep it for the few main actions of a screen (save, search); a hint on every button is noise. */
|
|
394
379
|
'shortcut'?: NLDDButton['shortcut'];
|
|
395
380
|
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
@@ -398,14 +383,26 @@ type NlddButtonProps = {
|
|
|
398
383
|
'shortcut-windows'?: NLDDButton['shortcutWindows'];
|
|
399
384
|
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
400
385
|
'shortcut-linux'?: NLDDButton['shortcutLinux'];
|
|
386
|
+
/** Takes the button out of the tab order (tabindex="-1"), for a control owned by a roving container (e.g. a button in a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
|
|
387
|
+
'no-tab'?: true;
|
|
388
|
+
/** When true, truncates overflowing text with an ellipsis instead of letting it wrap. Requires the button (or an ancestor) to constrain the width. */
|
|
389
|
+
'single-line'?: true;
|
|
390
|
+
/** Whether the popover/menu controlled by this button is currently open. Forwarded as aria-expanded on the inner button; toggles the is-expanded visual state. */
|
|
391
|
+
'expanded'?: true;
|
|
392
|
+
/** Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe. */
|
|
393
|
+
'loading'?: true;
|
|
394
|
+
/** Button type for form submission: 'button' | 'submit' | 'reset' (ignored when href is set) */
|
|
395
|
+
'type'?: NLDDButton['type'];
|
|
401
396
|
/** When set, renders an <a> element instead of <button> */
|
|
402
397
|
'href'?: NLDDButton['href'];
|
|
403
398
|
/** Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
|
|
404
399
|
'target'?: NLDDButton['target'];
|
|
405
|
-
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
406
|
-
'download'?: NLDDButton['download'];
|
|
407
400
|
/** Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
408
401
|
'rel'?: NLDDButton['rel'];
|
|
402
|
+
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
403
|
+
'download'?: NLDDButton['download'];
|
|
404
|
+
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
405
|
+
'disabled'?: true;
|
|
409
406
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
410
407
|
'accessible-description'?: NLDDButton['accessibleDescription'];
|
|
411
408
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -417,10 +414,10 @@ type NlddButtonProps = {
|
|
|
417
414
|
};
|
|
418
415
|
|
|
419
416
|
type NlddButtonBarProps = {
|
|
420
|
-
/** Bar size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). At 'lg', icon-button children stack their label below the icon (mobile action-bar style). */
|
|
421
|
-
'size'?: NLDDButtonBar['size'];
|
|
422
417
|
/** Visual style of the buttons: 'primary' | 'secondary' | 'accent-filled' | 'neutral-tinted' (default) | 'neutral-base' | 'content-filled' | 'content-tinted'. The content appearances are for a colored surface. */
|
|
423
418
|
'appearance'?: NLDDButtonBar['appearance'];
|
|
419
|
+
/** Bar size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). At 'lg', icon-button children stack their label below the icon (mobile action-bar style). */
|
|
420
|
+
'size'?: NLDDButtonBar['size'];
|
|
424
421
|
/** Disabled state */
|
|
425
422
|
'disabled'?: true;
|
|
426
423
|
};
|
|
@@ -431,27 +428,27 @@ type NlddButtonBarDividerProps = {
|
|
|
431
428
|
type NlddButtonGroupProps = {
|
|
432
429
|
/** Button group size, set on every button in it: 'sm' | 'md' (default: 'md') */
|
|
433
430
|
'size'?: NLDDButtonGroup['size'];
|
|
434
|
-
/** Layout direction: 'auto' | 'horizontal' | 'vertical' (default: 'auto') */
|
|
435
|
-
'orientation'?: NLDDButtonGroup['orientation'];
|
|
436
431
|
/** 'full': the buttons fill the row in equal shares, and a button that does not fit moves to a line of its own (default: unset, each button as wide as its label) */
|
|
437
432
|
'width'?: NLDDButtonGroup['width'];
|
|
433
|
+
/** Layout direction: 'auto' | 'horizontal' | 'vertical' (default: 'auto') */
|
|
434
|
+
'orientation'?: NLDDButtonGroup['orientation'];
|
|
438
435
|
};
|
|
439
436
|
|
|
440
437
|
type NlddCardProps = {
|
|
441
438
|
/** Surface color of the card: `base` (default) on a plain page background, `tinted` when the card should stand out against a base surface, `accent-tinted` for a tint of the theme's accent with the contrast of `tinted` */
|
|
442
439
|
'background'?: NLDDCard['background'];
|
|
440
|
+
/** Makes the whole card a button; ignored when `href` is set */
|
|
441
|
+
'button'?: true;
|
|
443
442
|
/** Accessible name of the card; with `href`/`button` it names the link or button, otherwise the card region */
|
|
444
443
|
'accessible-label'?: NLDDCard['accessibleLabel'];
|
|
445
444
|
/** Makes the whole card a link to this URL (empty = no link) */
|
|
446
445
|
'href'?: NLDDCard['href'];
|
|
447
446
|
/** Link target for href (e.g. '_blank'); adjusts rel automatically and adds an "opent in nieuw tabblad" announcement for '_blank'. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
|
|
448
447
|
'target'?: NLDDCard['target'];
|
|
449
|
-
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
450
|
-
'download'?: NLDDCard['download'];
|
|
451
448
|
/** Link rel for href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
452
449
|
'rel'?: NLDDCard['rel'];
|
|
453
|
-
/**
|
|
454
|
-
'
|
|
450
|
+
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
451
|
+
'download'?: NLDDCard['download'];
|
|
455
452
|
/** Override translation keys (e.g. the "opent in nieuw tabblad" announcement) */
|
|
456
453
|
'translations'?: NLDDCard['translations'];
|
|
457
454
|
};
|
|
@@ -480,28 +477,28 @@ type NlddCellProps = {
|
|
|
480
477
|
};
|
|
481
478
|
|
|
482
479
|
type NlddCheckboxProps = {
|
|
483
|
-
/**
|
|
484
|
-
'
|
|
480
|
+
/** 'content' draws the control in the color of the text around it, with the mark in the surface color (`--context-background-color`). A colored surface of your own sets that variable. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent. */
|
|
481
|
+
'color'?: NLDDCheckbox['color'];
|
|
482
|
+
/** Accessible label forwarded as aria-label to the native input. */
|
|
483
|
+
'accessible-label'?: NLDDCheckbox['accessibleLabel'];
|
|
485
484
|
/** Renders the box without the input: no focus, no name/value, nothing announced. For a control that owns the state elsewhere, such as a list row that is itself the checkbox; putting a real input in there would nest a control inside a control. */
|
|
486
485
|
'decorative'?: true;
|
|
487
|
-
/** Disabled state */
|
|
488
|
-
'disabled'?: true;
|
|
489
486
|
/** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
|
|
490
487
|
'no-tab'?: true;
|
|
488
|
+
/** Checked state */
|
|
489
|
+
'checked'?: true;
|
|
491
490
|
/** Indeterminate state (takes precedence over checked visually) */
|
|
492
491
|
'indeterminate'?: true;
|
|
493
|
-
/**
|
|
494
|
-
'
|
|
492
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. Note: aria-labelledby is not supported as IDREF resolution cannot cross shadow DOM boundaries. */
|
|
493
|
+
'invalid'?: true;
|
|
495
494
|
/** Name for form submission */
|
|
496
495
|
'name'?: NLDDCheckbox['name'];
|
|
497
|
-
/**
|
|
498
|
-
'
|
|
499
|
-
/** Accessible label forwarded as aria-label to the native input. */
|
|
500
|
-
'accessible-label'?: NLDDCheckbox['accessibleLabel'];
|
|
496
|
+
/** Value for form submission */
|
|
497
|
+
'value'?: NLDDCheckbox['value'];
|
|
501
498
|
/** Required state */
|
|
502
499
|
'required'?: true;
|
|
503
|
-
/**
|
|
504
|
-
'
|
|
500
|
+
/** Disabled state */
|
|
501
|
+
'disabled'?: true;
|
|
505
502
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
506
503
|
'accessible-description'?: NLDDCheckbox['accessibleDescription'];
|
|
507
504
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -509,24 +506,24 @@ type NlddCheckboxProps = {
|
|
|
509
506
|
};
|
|
510
507
|
|
|
511
508
|
type NlddCheckboxFieldProps = {
|
|
509
|
+
/** 'content' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside. */
|
|
510
|
+
'color'?: NLDDCheckboxField['color'];
|
|
511
|
+
/** Label text for the checkbox */
|
|
512
|
+
'label'?: NLDDCheckboxField['label'];
|
|
512
513
|
/** Checked state */
|
|
513
514
|
'checked'?: true;
|
|
514
515
|
/** Indeterminate state */
|
|
515
516
|
'indeterminate'?: true;
|
|
516
|
-
/**
|
|
517
|
-
'
|
|
518
|
-
/** Value for form submission */
|
|
519
|
-
'value'?: NLDDCheckboxField['value'];
|
|
517
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
518
|
+
'invalid'?: true;
|
|
520
519
|
/** Name for form submission */
|
|
521
520
|
'name'?: NLDDCheckboxField['name'];
|
|
522
|
-
/**
|
|
523
|
-
'
|
|
524
|
-
/** Label text for the checkbox */
|
|
525
|
-
'label'?: NLDDCheckboxField['label'];
|
|
521
|
+
/** Value for form submission */
|
|
522
|
+
'value'?: NLDDCheckboxField['value'];
|
|
526
523
|
/** Required state. In an nldd-checkbox-group, set by the group, it asks for at least one checked box in the group, not for this one. */
|
|
527
524
|
'required'?: true;
|
|
528
|
-
/**
|
|
529
|
-
'
|
|
525
|
+
/** Disabled state */
|
|
526
|
+
'disabled'?: true;
|
|
530
527
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
531
528
|
'accessible-description'?: NLDDCheckboxField['accessibleDescription'];
|
|
532
529
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -534,31 +531,31 @@ type NlddCheckboxFieldProps = {
|
|
|
534
531
|
};
|
|
535
532
|
|
|
536
533
|
type NlddCheckboxGroupProps = {
|
|
537
|
-
/** Forwarded to all nldd-checkbox-field elements in the group; clearing it leaves them the name they had */
|
|
538
|
-
'name'?: NLDDCheckboxGroup['name'];
|
|
539
|
-
/** Disables all fields in the group */
|
|
540
|
-
'disabled'?: true;
|
|
541
|
-
/** At least one box in the group has to be checked. Set on every field in the group, nested ones included, whether it is on or off: in a group, the group decides. */
|
|
542
|
-
'required'?: true;
|
|
543
534
|
/** Accessible name for the group, set as aria-label on the group */
|
|
544
535
|
'accessible-label'?: NLDDCheckboxGroup['accessibleLabel'];
|
|
545
536
|
/** Id of an external label element, set as aria-labelledby on the group */
|
|
546
537
|
'accessible-labeled-by'?: NLDDCheckboxGroup['accessibleLabeledBy'];
|
|
547
538
|
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
548
539
|
'invalid'?: true;
|
|
540
|
+
/** Forwarded to all nldd-checkbox-field elements in the group; clearing it leaves them the name they had */
|
|
541
|
+
'name'?: NLDDCheckboxGroup['name'];
|
|
542
|
+
/** At least one box in the group has to be checked. Set on every field in the group, nested ones included, whether it is on or off: in a group, the group decides. */
|
|
543
|
+
'required'?: true;
|
|
544
|
+
/** Disables all fields in the group */
|
|
545
|
+
'disabled'?: true;
|
|
549
546
|
};
|
|
550
547
|
|
|
551
548
|
type NlddCodeEditorProps = {
|
|
552
|
-
/** Wrap long lines instead of horizontal scroll */
|
|
553
|
-
'wrap'?: true;
|
|
554
549
|
/** 'none' (fixed) | 'vertical' (drag) | 'auto' (grow, default) */
|
|
555
550
|
'resize'?: NLDDCodeEditor['resize'];
|
|
556
|
-
/** Drops the frame, fill, padding and focus ring, for an editor inside a composition that provides them */
|
|
557
|
-
'embedded'?: true;
|
|
558
551
|
/** Highlight grammar (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python). Empty disables highlighting. */
|
|
559
552
|
'language'?: NLDDCodeEditor['language'];
|
|
553
|
+
/** Drops the frame, fill, padding and focus ring, for an editor inside a composition that provides them */
|
|
554
|
+
'embedded'?: true;
|
|
560
555
|
/** Show a line-number gutter */
|
|
561
556
|
'line-numbers'?: true;
|
|
557
|
+
/** Wrap long lines instead of horizontal scroll */
|
|
558
|
+
'wrap'?: true;
|
|
562
559
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
563
560
|
'accessible-description'?: NLDDCodeEditor['accessibleDescription'];
|
|
564
561
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -588,18 +585,18 @@ type NlddCodeEditorProps = {
|
|
|
588
585
|
type NlddCodeViewerProps = {
|
|
589
586
|
/** Visual style. The two `box` values are a framed card with rounded corners, padding, fill, and a 1px border ring, and differ in which surface they fill with; `box-tinted` is the default. `simple` drops the entire frame. Use it when embedding inside a parent surface. */
|
|
590
587
|
'appearance'?: NLDDCodeViewer['appearance'];
|
|
588
|
+
/** Tallest the block may get, as a CSS length (e.g. '400px', '50vh'). Beyond it the content scrolls vertically. Unset means no cap. */
|
|
589
|
+
'max-height'?: NLDDCodeViewer['maxHeight'];
|
|
591
590
|
/** Grammar to highlight with. Empty disables highlighting. */
|
|
592
591
|
'language'?: NLDDCodeViewer['language'];
|
|
593
592
|
/** The content is a unified diff: shown with line colors, old and new line numbers, and the changed words marked. */
|
|
594
593
|
'diff'?: true;
|
|
595
|
-
/** Shows a column with the number of each line, the same column a diff has. Screen readers skip it and a copy leaves it out. No effect with `diff`, which numbers its lines itself. */
|
|
596
|
-
'line-numbers'?: true;
|
|
597
594
|
/** Hide the copy-to-clipboard button (shown by default). */
|
|
598
595
|
'no-copy'?: true;
|
|
596
|
+
/** Shows a column with the number of each line, the same column a diff has. Screen readers skip it and a copy leaves it out. No effect with `diff`, which numbers its lines itself. */
|
|
597
|
+
'line-numbers'?: true;
|
|
599
598
|
/** Wrap long lines instead of horizontal scroll */
|
|
600
599
|
'wrap'?: true;
|
|
601
|
-
/** Tallest the block may get, as a CSS length (e.g. '400px', '50vh'). Beyond it the content scrolls vertically. Unset means no cap. */
|
|
602
|
-
'max-height'?: NLDDCodeViewer['maxHeight'];
|
|
603
600
|
'copy-unavailable'?: true;
|
|
604
601
|
/** Override translation keys (e.g. the copy button labels and the scroll-region label); unset keys fall back to Dutch. */
|
|
605
602
|
'translations'?: NLDDCodeViewer['translations'];
|
|
@@ -622,57 +619,57 @@ type NlddCollectionProps = {
|
|
|
622
619
|
'lg-gap'?: NLDDCollection['lgGap'];
|
|
623
620
|
/** Number of visible items per page (default: 24) */
|
|
624
621
|
'max-items'?: NLDDCollection['maxItems'];
|
|
625
|
-
/** Translation overrides; unset keys fall back to Dutch. Available keys: 'components.collection.previous-action', 'components.collection.next-action', 'components.collection.load-more-action' */
|
|
626
|
-
'translations'?: NLDDCollection['translations'];
|
|
627
622
|
/** Show load-more button in grid/stack (default: false) */
|
|
628
623
|
'show-load-more'?: true;
|
|
629
624
|
/** Automatically load more items when the button becomes visible */
|
|
630
625
|
'lazy-load'?: true;
|
|
626
|
+
/** Translation overrides; unset keys fall back to Dutch. Available keys: 'components.collection.previous-action', 'components.collection.next-action', 'components.collection.load-more-action' */
|
|
627
|
+
'translations'?: NLDDCollection['translations'];
|
|
631
628
|
};
|
|
632
629
|
|
|
633
630
|
type NlddComboBoxProps = {
|
|
634
|
-
/**
|
|
635
|
-
'
|
|
631
|
+
/** Size: 'sm' | 'md' (default: 'md') */
|
|
632
|
+
'size'?: NLDDComboBox['size'];
|
|
633
|
+
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
634
|
+
'width'?: NLDDComboBox['width'];
|
|
636
635
|
/** The text shown in the input. May differ from `value` (e.g. value="nl" → text="Nederland"). Set this when pre-populating an existing record. If left empty and `value` matches a slotted menu item, the matching item's `text` is used automatically. */
|
|
637
636
|
'text'?: NLDDComboBox['text'];
|
|
638
637
|
/** Placeholder text for the input */
|
|
639
638
|
'placeholder'?: NLDDComboBox['placeholder'];
|
|
640
|
-
/**
|
|
641
|
-
'
|
|
639
|
+
/** Accessible label forwarded as aria-label to the input. Required for screen reader accessibility. */
|
|
640
|
+
'accessible-label'?: NLDDComboBox['accessibleLabel'];
|
|
641
|
+
/** Leaves the options as they are while typing, for a list your server already filtered per keystroke. Without it the field hides options that do not contain the typed text, which also hides a server match on, say, an e-mail address. */
|
|
642
|
+
'no-filter'?: true;
|
|
643
|
+
/** Maximum visible items before scrolling (default: 8) */
|
|
644
|
+
'max-items'?: NLDDComboBox['maxItems'];
|
|
642
645
|
/** Marks the field as valid */
|
|
643
646
|
'valid'?: true;
|
|
644
647
|
/** Marks the field as invalid */
|
|
645
648
|
'invalid'?: true;
|
|
646
|
-
/** Disabled state */
|
|
647
|
-
'disabled'?: true;
|
|
648
|
-
/** Read-only state: the value stays readable, selectable and in the tab order, but the menu does not open and there is nothing to clear. The input drops its combobox role and the aria that goes with it, so assistive technology is not told about a list it cannot open. Use this where the value belongs to the record rather than to the form, e.g. the product an asset is an instance of. */
|
|
649
|
-
'readonly'?: true;
|
|
650
|
-
/** Allow committing free-typed values that match no option (Enter/blur). Default false: only menu options are accepted. Typing an option's label in full picks that option, ignoring case and the spaces around it; with two such labels, the first one. */
|
|
651
|
-
'allow-custom'?: true;
|
|
652
|
-
/** Leaves the options as they are while typing, for a list your server already filtered per keystroke. Without it the field hides options that do not contain the typed text, which also hides a server match on, say, an e-mail address. */
|
|
653
|
-
'no-filter'?: true;
|
|
654
649
|
/** Input name for form submission */
|
|
655
650
|
'name'?: NLDDComboBox['name'];
|
|
656
|
-
/**
|
|
657
|
-
'
|
|
658
|
-
/** Maximum visible items before scrolling (default: 8) */
|
|
659
|
-
'max-items'?: NLDDComboBox['maxItems'];
|
|
660
|
-
/** Accessible label forwarded as aria-label to the input. Required for screen reader accessibility. */
|
|
661
|
-
'accessible-label'?: NLDDComboBox['accessibleLabel'];
|
|
662
|
-
/** Override translation keys; unset keys fall back to Dutch */
|
|
663
|
-
'translations'?: NLDDComboBox['translations'];
|
|
664
|
-
/** Disables browser spellchecking on the inner input */
|
|
665
|
-
'no-spellcheck'?: true;
|
|
666
|
-
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
667
|
-
'width'?: NLDDComboBox['width'];
|
|
668
|
-
/** Required state */
|
|
669
|
-
'required'?: true;
|
|
670
|
-
/** Regular expression the value has to match, as the native `pattern`. */
|
|
671
|
-
'pattern'?: NLDDComboBox['pattern'];
|
|
651
|
+
/** The selected form value */
|
|
652
|
+
'value'?: NLDDComboBox['value'];
|
|
672
653
|
/** Fewest characters the value may have. */
|
|
673
654
|
'minlength'?: NLDDComboBox['minlength'];
|
|
674
655
|
/** Most characters the value may have. */
|
|
675
656
|
'maxlength'?: NLDDComboBox['maxlength'];
|
|
657
|
+
/** Regular expression the value has to match, as the native `pattern`. */
|
|
658
|
+
'pattern'?: NLDDComboBox['pattern'];
|
|
659
|
+
/** Allow committing free-typed values that match no option (Enter/blur). Default false: only menu options are accepted. Typing an option's label in full picks that option, ignoring case and the spaces around it; with two such labels, the first one. */
|
|
660
|
+
'allow-custom'?: true;
|
|
661
|
+
/** Required state */
|
|
662
|
+
'required'?: true;
|
|
663
|
+
/** Browser autofill hint. Default 'off' to prevent the native autofill panel from competing with the menu dropdown. Set to a valid token (e.g. 'country', 'organization') when browser autofill is desired. */
|
|
664
|
+
'autocomplete'?: NLDDComboBox['autocomplete'];
|
|
665
|
+
/** Disables browser spellchecking on the inner input */
|
|
666
|
+
'no-spellcheck'?: true;
|
|
667
|
+
/** Read-only state: the value stays readable, selectable and in the tab order, but the menu does not open and there is nothing to clear. The input drops its combobox role and the aria that goes with it, so assistive technology is not told about a list it cannot open. Use this where the value belongs to the record rather than to the form, e.g. the product an asset is an instance of. */
|
|
668
|
+
'readonly'?: true;
|
|
669
|
+
/** Disabled state */
|
|
670
|
+
'disabled'?: true;
|
|
671
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
672
|
+
'translations'?: NLDDComboBox['translations'];
|
|
676
673
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
677
674
|
'accessible-description'?: NLDDComboBox['accessibleDescription'];
|
|
678
675
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -698,8 +695,6 @@ type NlddContainerProps = {
|
|
|
698
695
|
'max-width'?: NLDDContainer['maxWidth'];
|
|
699
696
|
/** Minimum height as a CSS length (e.g. '240px'), padding included. Reserves the room that content still on its way will take; vertical-alignment then places the children within it. */
|
|
700
697
|
'min-height'?: NLDDContainer['minHeight'];
|
|
701
|
-
/** 'touch' | 'pointer'. Takes the container and all it holds away, for screen readers as well, on a device that only has touch (`touch`) or on one with a mouse or trackpad (`pointer`), the same test that hides keyboard shortcuts. For what only works with one of the two, such as a setting about hover. Not for content: what one visitor gets, the other should get too. */
|
|
702
|
-
'hide-on'?: NLDDContainer['hideOn'];
|
|
703
698
|
/** Gap between children. One distance for all of them, so it fits children of one kind; for a stack of different kinds, space each seam with nldd-spacer instead. */
|
|
704
699
|
'gap'?: NLDDContainer['gap'];
|
|
705
700
|
/** Gap at sm breakpoint */
|
|
@@ -768,6 +763,8 @@ type NlddContainerProps = {
|
|
|
768
763
|
'horizontal-alignment'?: NLDDContainer['horizontalAlignment'];
|
|
769
764
|
/** 'top' | 'center' | 'bottom' */
|
|
770
765
|
'vertical-alignment'?: NLDDContainer['verticalAlignment'];
|
|
766
|
+
/** 'touch' | 'pointer'. Takes the container and all it holds away, for screen readers as well, on a device that only has touch (`touch`) or on one with a mouse or trackpad (`pointer`), the same test that hides keyboard shortcuts. For what only works with one of the two, such as a setting about hover. Not for content: what one visitor gets, the other should get too. */
|
|
767
|
+
'hide-on'?: NLDDContainer['hideOn'];
|
|
771
768
|
/** Makes the children a list for assistive technology: `role="list"` on the container and `role="listitem"` on each child, so a screen reader says how many there are and lets you skip them (WCAG 1.3.1). For a row of tags or a group of cards or tiles that are alike. A child with a role of its own keeps it. Nothing changes visually. */
|
|
772
769
|
'list'?: true;
|
|
773
770
|
/** Position of this child in the container */
|
|
@@ -783,6 +780,22 @@ type NlddContainerProps = {
|
|
|
783
780
|
type NlddDateFieldProps = {
|
|
784
781
|
/** 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
785
782
|
'size'?: NLDDDateField['size'];
|
|
783
|
+
/** Width. By default exactly wide enough for a date plus the icons; 'full' fills the container; 'fit-content' drops the room for the validation icon and grows again as soon as the field turns valid or invalid; or pass your own CSS length. */
|
|
784
|
+
'width'?: NLDDDateField['width'];
|
|
785
|
+
/** Placeholder text. Do not put a format here; use the supporting label of nldd-form-field for that. */
|
|
786
|
+
'placeholder'?: NLDDDateField['placeholder'];
|
|
787
|
+
/** Accessible label for the internal input. Set automatically by nldd-form-field. */
|
|
788
|
+
'accessible-label'?: NLDDDateField['accessibleLabel'];
|
|
789
|
+
/** Hides the calendar button. It is shown by default. */
|
|
790
|
+
'no-picker'?: true;
|
|
791
|
+
/** Marks the field as valid. */
|
|
792
|
+
'valid'?: true;
|
|
793
|
+
/** Marks the field as invalid. */
|
|
794
|
+
'invalid'?: true;
|
|
795
|
+
/** Name for form submission. */
|
|
796
|
+
'name'?: NLDDDateField['name'];
|
|
797
|
+
/** Sets the id on the internal input. Set automatically by nldd-form-field. */
|
|
798
|
+
'input-id'?: NLDDDateField['inputId'];
|
|
786
799
|
/** The date as ISO (yyyy-mm-dd). With `range` an ISO 8601 interval: `yyyy-mm-dd/yyyy-mm-dd`. Empty when there is no valid date. */
|
|
787
800
|
'value'?: NLDDDateField['value'];
|
|
788
801
|
/** Pick a period: two inputs and a calendar in range mode. */
|
|
@@ -791,30 +804,14 @@ type NlddDateFieldProps = {
|
|
|
791
804
|
'min'?: NLDDDateField['min'];
|
|
792
805
|
/** Latest allowed date as ISO (yyyy-mm-dd). */
|
|
793
806
|
'max'?: NLDDDateField['max'];
|
|
794
|
-
/** Hides the calendar button. It is shown by default. */
|
|
795
|
-
'no-picker'?: true;
|
|
796
|
-
/** Sets the id on the internal input. Set automatically by nldd-form-field. */
|
|
797
|
-
'input-id'?: NLDDDateField['inputId'];
|
|
798
|
-
/** Placeholder text. Do not put a format here; use the supporting label of nldd-form-field for that. */
|
|
799
|
-
'placeholder'?: NLDDDateField['placeholder'];
|
|
800
|
-
/** Marks the field as invalid. */
|
|
801
|
-
'invalid'?: true;
|
|
802
|
-
/** Marks the field as valid. */
|
|
803
|
-
'valid'?: true;
|
|
804
|
-
/** Disabled state. */
|
|
805
|
-
'disabled'?: true;
|
|
806
|
-
/** Read-only state. */
|
|
807
|
-
'readonly'?: true;
|
|
808
807
|
/** Required state. */
|
|
809
808
|
'required'?: true;
|
|
810
|
-
/** Name for form submission. */
|
|
811
|
-
'name'?: NLDDDateField['name'];
|
|
812
809
|
/** Autocomplete hint, for example 'bday'. */
|
|
813
810
|
'autocomplete'?: NLDDDateField['autocomplete'];
|
|
814
|
-
/**
|
|
815
|
-
'
|
|
816
|
-
/**
|
|
817
|
-
'
|
|
811
|
+
/** Read-only state. */
|
|
812
|
+
'readonly'?: true;
|
|
813
|
+
/** Disabled state. */
|
|
814
|
+
'disabled'?: true;
|
|
818
815
|
/** Translations; unspecified keys fall back to Dutch. */
|
|
819
816
|
'translations'?: NLDDDateField['translations'];
|
|
820
817
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
@@ -824,28 +821,28 @@ type NlddDateFieldProps = {
|
|
|
824
821
|
};
|
|
825
822
|
|
|
826
823
|
type NlddDatePickerProps = {
|
|
824
|
+
/** Width: `full` (fills the container) or a CSS length (e.g. `560px`). Empty (default) is the intrinsic width of seven day cells; the cells stretch along with the width you pass. */
|
|
825
|
+
'width'?: NLDDDatePicker['width'];
|
|
826
|
+
/** Accessible name of the calendar. */
|
|
827
|
+
'accessible-label'?: NLDDDatePicker['accessibleLabel'];
|
|
828
|
+
/** Shows ISO week numbers in a column on the left. */
|
|
829
|
+
'week-numbers'?: true;
|
|
830
|
+
/** First day of the week, 0 is Sunday. Default 1 (Monday). */
|
|
831
|
+
'first-day-of-week'?: NLDDDatePicker['firstDayOfWeek'];
|
|
832
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
833
|
+
'invalid'?: true;
|
|
827
834
|
/** The chosen date as ISO (yyyy-mm-dd). Only without `range`. */
|
|
828
835
|
'value'?: NLDDDatePicker['value'];
|
|
829
836
|
/** Start of the period as ISO. Only with `range`. */
|
|
830
837
|
'start'?: NLDDDatePicker['start'];
|
|
831
838
|
/** End of the period as ISO. Only with `range`. */
|
|
832
839
|
'end'?: NLDDDatePicker['end'];
|
|
833
|
-
/** Width: `full` (fills the container) or a CSS length (e.g. `560px`). Empty (default) is the intrinsic width of seven day cells; the cells stretch along with the width you pass. */
|
|
834
|
-
'width'?: NLDDDatePicker['width'];
|
|
835
840
|
/** Pick a period instead of a single date. */
|
|
836
841
|
'range'?: true;
|
|
837
842
|
/** Earliest allowed date: ISO, or `today` with an offset (`today-18y`). */
|
|
838
843
|
'min'?: NLDDDatePicker['min'];
|
|
839
844
|
/** Latest allowed date: ISO, or `today` with an offset (`today+1y`). */
|
|
840
845
|
'max'?: NLDDDatePicker['max'];
|
|
841
|
-
/** First day of the week, 0 is Sunday. Default 1 (Monday). */
|
|
842
|
-
'first-day-of-week'?: NLDDDatePicker['firstDayOfWeek'];
|
|
843
|
-
/** Shows ISO week numbers in a column on the left. */
|
|
844
|
-
'week-numbers'?: true;
|
|
845
|
-
/** Accessible name of the calendar. */
|
|
846
|
-
'accessible-label'?: NLDDDatePicker['accessibleLabel'];
|
|
847
|
-
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
848
|
-
'invalid'?: true;
|
|
849
846
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
850
847
|
'accessible-description'?: NLDDDatePicker['accessibleDescription'];
|
|
851
848
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -879,25 +876,25 @@ type NlddDividerProps = {
|
|
|
879
876
|
};
|
|
880
877
|
|
|
881
878
|
type NlddDocumentTabBarProps = {
|
|
882
|
-
/** Accessible name for the navigation landmark */
|
|
883
|
-
'accessible-label'?: NLDDDocumentTabBar['accessibleLabel'];
|
|
884
879
|
/** Renders a nav landmark instead of tablist; use when items have hrefs */
|
|
885
880
|
'navigation'?: true;
|
|
881
|
+
/** Accessible name for the navigation landmark */
|
|
882
|
+
'accessible-label'?: NLDDDocumentTabBar['accessibleLabel'];
|
|
886
883
|
/** Translation overrides; unset keys fall back to Dutch. Available keys: 'components.document-tab-bar.show-more-tabs-action' (default: 'Toon meer tabbladen') */
|
|
887
884
|
'translations'?: NLDDDocumentTabBar['translations'];
|
|
888
885
|
};
|
|
889
886
|
|
|
890
887
|
type NlddDocumentTabBarItemProps = {
|
|
891
|
-
/** Selected state (managed by nldd-document-tab-bar) */
|
|
892
|
-
'selected'?: true;
|
|
893
888
|
/** Primary text */
|
|
894
889
|
'text'?: NLDDDocumentTabBarItem['text'];
|
|
895
|
-
/** Supporting text */
|
|
896
|
-
'supporting-text'?: NLDDDocumentTabBarItem['supportingText'];
|
|
897
890
|
/** Short primary text (visible below 200px width) */
|
|
898
891
|
'short-text'?: NLDDDocumentTabBarItem['shortText'];
|
|
892
|
+
/** Supporting text */
|
|
893
|
+
'supporting-text'?: NLDDDocumentTabBarItem['supportingText'];
|
|
899
894
|
/** Short supporting text (visible below 200px width) */
|
|
900
895
|
'short-supporting-text'?: NLDDDocumentTabBarItem['shortSupportingText'];
|
|
896
|
+
/** Selected state (managed by nldd-document-tab-bar) */
|
|
897
|
+
'selected'?: true;
|
|
901
898
|
/** Optional link URL; renders an anchor instead of a div */
|
|
902
899
|
'href'?: NLDDDocumentTabBarItem['href'];
|
|
903
900
|
};
|
|
@@ -905,20 +902,20 @@ type NlddDocumentTabBarItemProps = {
|
|
|
905
902
|
type NlddDropdownProps = {
|
|
906
903
|
/** Size: 'xs' | 'sm' | 'md' (default: 'md') */
|
|
907
904
|
'size'?: NLDDDropdown['size'];
|
|
908
|
-
/** Marks the field as valid */
|
|
909
|
-
'valid'?: true;
|
|
910
|
-
/** Marks the field as invalid */
|
|
911
|
-
'invalid'?: true;
|
|
912
|
-
/** Disabled state; also forwarded to the slotted select */
|
|
913
|
-
'disabled'?: true;
|
|
914
|
-
/** Reflects whether the native picker popup is open (driven internally) */
|
|
915
|
-
'expanded'?: true;
|
|
916
905
|
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
917
906
|
'width'?: NLDDDropdown['width'];
|
|
918
907
|
/** Accessible name, forwarded as aria-label to the slotted select */
|
|
919
908
|
'accessible-label'?: NLDDDropdown['accessibleLabel'];
|
|
909
|
+
/** Reflects whether the native picker popup is open (driven internally) */
|
|
910
|
+
'expanded'?: true;
|
|
911
|
+
/** Marks the field as valid */
|
|
912
|
+
'valid'?: true;
|
|
913
|
+
/** Marks the field as invalid */
|
|
914
|
+
'invalid'?: true;
|
|
920
915
|
/** Required state, handed to the slotted <select>. A `required` on the <select> itself is left alone. */
|
|
921
916
|
'required'?: true;
|
|
917
|
+
/** Disabled state; also forwarded to the slotted select */
|
|
918
|
+
'disabled'?: true;
|
|
922
919
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
923
920
|
'accessible-description'?: NLDDDropdown['accessibleDescription'];
|
|
924
921
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -930,26 +927,26 @@ type NlddFileFieldProps = {
|
|
|
930
927
|
'variant'?: NLDDFileField['variant'];
|
|
931
928
|
/** Field size: 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
932
929
|
'size'?: NLDDFileField['size'];
|
|
933
|
-
/** Comma-separated list of accepted file types, forwarded to the input (e.g. ".pdf,image/*") */
|
|
934
|
-
'accept'?: NLDDFileField['accept'];
|
|
935
|
-
/** Allows choosing more than one file, and dropping a folder */
|
|
936
|
-
'multiple'?: true;
|
|
937
|
-
/** Offers a folder beside files, since one dialog picks either: choosing and changing open a menu with both, and an area shows a button for each. Takes several files, as `multiple` does */
|
|
938
|
-
'directory'?: true;
|
|
939
930
|
/** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
|
|
940
931
|
'accessible-label'?: NLDDFileField['accessibleLabel'];
|
|
941
|
-
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
942
|
-
'input-id'?: NLDDFileField['inputId'];
|
|
943
932
|
/** Marks the field as valid; shows a check icon on the right, like nldd-dropdown */
|
|
944
933
|
'valid'?: true;
|
|
945
934
|
/** Marks the field as invalid; shows an alert icon on the right, like nldd-dropdown */
|
|
946
935
|
'invalid'?: true;
|
|
947
|
-
/** Disabled state */
|
|
948
|
-
'disabled'?: true;
|
|
949
936
|
/** Name for form submission */
|
|
950
937
|
'name'?: NLDDFileField['name'];
|
|
938
|
+
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
939
|
+
'input-id'?: NLDDFileField['inputId'];
|
|
940
|
+
/** Comma-separated list of accepted file types, forwarded to the input (e.g. ".pdf,image/*") */
|
|
941
|
+
'accept'?: NLDDFileField['accept'];
|
|
942
|
+
/** Allows choosing more than one file, and dropping a folder */
|
|
943
|
+
'multiple'?: true;
|
|
944
|
+
/** Offers a folder beside files, since one dialog picks either: choosing and changing open a menu with both, and an area shows a button for each. Takes several files, as `multiple` does */
|
|
945
|
+
'directory'?: true;
|
|
951
946
|
/** Marks the field required (invalid while no file is chosen) */
|
|
952
947
|
'required'?: true;
|
|
948
|
+
/** Disabled state */
|
|
949
|
+
'disabled'?: true;
|
|
953
950
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
954
951
|
'translations'?: NLDDFileField['translations'];
|
|
955
952
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
@@ -959,7 +956,7 @@ type NlddFileFieldProps = {
|
|
|
959
956
|
};
|
|
960
957
|
|
|
961
958
|
type NlddFormProps = {
|
|
962
|
-
/** Default `label-alignment` for descendant nldd-form-field and nldd-form-actions ('top' | 'right' | 'left').
|
|
959
|
+
/** Default `label-alignment` for descendant nldd-form-field and nldd-form-actions ('top' | 'right' | 'left'). A `label-alignment` of its own on the descendant wins. */
|
|
963
960
|
'label-alignment'?: NLDDForm['labelAlignment'];
|
|
964
961
|
/** Form name */
|
|
965
962
|
'name'?: NLDDForm['name'];
|
|
@@ -978,25 +975,21 @@ type NlddFormProps = {
|
|
|
978
975
|
};
|
|
979
976
|
|
|
980
977
|
type NlddFormActionsProps = {
|
|
981
|
-
/** 'top' (default) | 'right' | 'left'. A value of its own
|
|
978
|
+
/** 'top' (default) | 'right' | 'left'. A value of its own wins over the one of a wrapping nldd-form. */
|
|
982
979
|
'label-alignment'?: NLDDFormActions['labelAlignment'];
|
|
983
|
-
/** Set by a wrapping nldd-form as a fallback. Do not set it yourself in consumer code. */
|
|
984
|
-
'form-label-alignment'?: NLDDFormActions['formLabelAlignment'];
|
|
985
980
|
};
|
|
986
981
|
|
|
987
982
|
type NlddFormFieldProps = {
|
|
988
|
-
/** 'top' (default) | 'right' | 'left'. A value of its own
|
|
983
|
+
/** 'top' (default) | 'right' | 'left'. A value of its own wins over the one of a wrapping nldd-form. */
|
|
989
984
|
'label-alignment'?: NLDDFormField['labelAlignment'];
|
|
990
985
|
/** Field label text. Omit for no-label layout. Supports **bold** markdown syntax, for the word to type in a confirmation; the accessible name of the control takes the text without the markers. */
|
|
991
986
|
'label'?: NLDDFormField['label'];
|
|
992
987
|
/** Short supporting text below the label. Same typography as optional badge. Supports **bold** markdown syntax. */
|
|
993
988
|
'supporting-label'?: NLDDFormField['supportingLabel'];
|
|
994
|
-
/** Shows an optional badge next to the label. */
|
|
989
|
+
/** Shows an optional badge next to the label. Its text is the translation key `components.form-field.optional-label` ("Optioneel"). */
|
|
995
990
|
'optional'?: true;
|
|
996
|
-
/**
|
|
997
|
-
'
|
|
998
|
-
/** Set by a wrapping nldd-form as a fallback. Do not set it yourself in consumer code. */
|
|
999
|
-
'form-label-alignment'?: NLDDFormField['formLabelAlignment'];
|
|
991
|
+
/** Override translation keys, such as the text of the optional badge; unset keys fall back to Dutch */
|
|
992
|
+
'translations'?: NLDDFormField['translations'];
|
|
1000
993
|
};
|
|
1001
994
|
|
|
1002
995
|
type NlddFormFieldHelpTextProps = {
|
|
@@ -1045,24 +1038,20 @@ type NlddFullBleedSectionProps = {
|
|
|
1045
1038
|
};
|
|
1046
1039
|
|
|
1047
1040
|
type NlddHeroProps = {
|
|
1048
|
-
/**
|
|
1049
|
-
'
|
|
1041
|
+
/** Surface color of the panel: 'accent' (default), the accent color of the theme, or 'base', the base surface */
|
|
1042
|
+
'main-background'?: NLDDHero['mainBackground'];
|
|
1050
1043
|
/** Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. With media it applies with `layout="contained"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image, with more padding along its two sides so the content keeps its distance to the curve. A panel along the same edge as the rounded corner of the image stops before the curve, at the panel's padding from it; a panel along a full side, a `main-width="full"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top, and the panel stands under the image, as wide as it, instead of overlapping it. Without media the panel is the whole hero: the corner applies in every layout and position, at half the radius, and the hero chooses top-right, or top-left for a panel on the right. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg, and is never more than a third of the shortest side of the area it rounds, so a low hero keeps a corner rather than a drop. Says so in development when the chosen corner sits under the panel, or with `width="full"` */
|
|
1051
1044
|
'corner'?: NLDDHero['corner'];
|
|
1052
1045
|
/** How the panel relates to the image (default: 'overlap'). 'contained' keeps it on the image, in any of the eight positions; 'overlap' lets it fall `overlap-size` over the bottom of the image and run on below as far as its content needs, so the image keeps its height whatever the content. In 'overlap' the image has a fixed height (320px on md, 400px on lg) unless `media-height` or `media-aspect-ratio` is set, and only the horizontal side of `main-position` counts. A panel shorter than `overlap-size` ends inside the image and says so in development */
|
|
1053
1046
|
'layout'?: NLDDHero['layout'];
|
|
1054
|
-
/**
|
|
1055
|
-
'
|
|
1047
|
+
/** Body max-width; 'full' removes the bound (section API) */
|
|
1048
|
+
'width'?: NLDDHero['width'];
|
|
1056
1049
|
/** Width of the panel (default: 'auto'). 'auto' follows the content, between 480px and 640px and never wider than the image allows: a short title gets a narrow panel, a paragraph runs on to a readable line length. 'full' makes a strip across the whole image, at the top or the bottom, and is ignored with 'left'/'right'. Any CSS width (e.g. '560px', '60%') sets it exactly on md and lg, still never wider than the image allows; an invalid value falls back to 'auto' */
|
|
1057
1050
|
'main-width'?: NLDDHero['mainWidth'];
|
|
1058
|
-
/** Position of the text panel (default: 'bottom-left'); 'left'/'right' span the full height */
|
|
1059
|
-
'main-position'?: NLDDHero['mainPosition'];
|
|
1060
|
-
/** Aspect ratio of the media area (CSS form, '16/9' or '16:9'); default '21/9'. On md/lg it sets the height of the hero, on sm the height of the media area */
|
|
1061
|
-
'media-aspect-ratio'?: NLDDHero['mediaAspectRatio'];
|
|
1062
1051
|
/** With layout="overlap": how far the panel falls over the bottom of the image, any CSS length (default: 160px). The overlap stays the same whatever the height of the image; a panel shorter than this ends inside the image */
|
|
1063
1052
|
'overlap-size'?: NLDDHero['overlapSize'];
|
|
1064
|
-
/**
|
|
1065
|
-
'
|
|
1053
|
+
/** Position of the text panel (default: 'bottom-left'); 'left'/'right' span the full height */
|
|
1054
|
+
'main-position'?: NLDDHero['mainPosition'];
|
|
1066
1055
|
/** Source of the media area (an alternative to the media slot); ignored as soon as the media slot is filled */
|
|
1067
1056
|
'media-src'?: NLDDHero['mediaSrc'];
|
|
1068
1057
|
/** Responsive source set for media-src */
|
|
@@ -1071,6 +1060,10 @@ type NlddHeroProps = {
|
|
|
1071
1060
|
'media-sizes'?: NLDDHero['mediaSizes'];
|
|
1072
1061
|
/** Alt text for media-src; empty means decorative */
|
|
1073
1062
|
'media-alt'?: NLDDHero['mediaAlt'];
|
|
1063
|
+
/** Aspect ratio of the media area (CSS form, '16/9' or '16:9'); default '21/9'. On md/lg it sets the height of the hero, on sm the height of the media area */
|
|
1064
|
+
'media-aspect-ratio'?: NLDDHero['mediaAspectRatio'];
|
|
1065
|
+
/** Fixed height of the media area, any CSS length (e.g. '320px', '40vh'); wins over media-aspect-ratio. An invalid value falls back to the ratio */
|
|
1066
|
+
'media-height'?: NLDDHero['mediaHeight'];
|
|
1074
1067
|
/** Surface behind the hero (section API) */
|
|
1075
1068
|
'background'?: NLDDHero['background'];
|
|
1076
1069
|
'height'?: NLDDHero['height'];
|
|
@@ -1101,16 +1094,16 @@ type NlddHeroProps = {
|
|
|
1101
1094
|
};
|
|
1102
1095
|
|
|
1103
1096
|
type NlddIconProps = {
|
|
1104
|
-
/** The name of the icon to display. The same attribute every other component that renders an icon takes. Prefer an alias that names what the icon means here (`microphone-off`, `info`, `new-account`) over the name of the drawing; both show the same icon. */
|
|
1105
|
-
'icon'?: NLDDIcon['icon'];
|
|
1106
|
-
/** `full` (the default) fills the container. `inherit` sizes the icon to the surrounding text (1em) and drops it onto that text's own line, for an icon set in a line of running text. Or a fixed spacer-aligned size in px (16, 20, 24, 28, 32, 40, 44, 48, 56, 64, 80, 96). */
|
|
1107
|
-
'size'?: NLDDIcon['size'];
|
|
1108
1097
|
/** Functional (`content`, the default, `secondary`, `accent`, `critical`, `warning`, `success`, the colors the surface passes on as `--context-content-*`) or rijkskleur (`lintblauw`, `donkerblauw`, `hemelblauw`, `lichtblauw`, `paars`, `violet`, `robijnrood`, `roze`, `rood`, `oranje`, `donkergeel`, `geel`, `donkerbruin`, `bruin`, `donkergroen`, `groen`, `mosgroen`, `mintgroen`). */
|
|
1109
1098
|
'color'?: NLDDIcon['color'];
|
|
1110
1099
|
/** A color of its own, as any CSS color value ('#a90061', 'oklch(0.6 0.2 20)', 'var(--brand-cable-blue)'). For a color the design system cannot know. It wins over `color`. */
|
|
1111
1100
|
'custom-color'?: NLDDIcon['customColor'];
|
|
1101
|
+
/** `full` (the default) fills the container. `inherit` sizes the icon to the surrounding text (1em) and drops it onto that text's own line, for an icon set in a line of running text. Or a fixed spacer-aligned size in px (16, 20, 24, 28, 32, 40, 44, 48, 56, 64, 80, 96). */
|
|
1102
|
+
'size'?: NLDDIcon['size'];
|
|
1112
1103
|
/** Draw the icon on a tile, a filled square. `color` and `custom-color` then paint the tile and the glyph takes the contrasting color, and `size` measures the tile: the glyph is four fifths of it. The corner is `--semantics-tiles-corner-radius`, a fifth of the tile, as on an organization `nldd-avatar`. */
|
|
1113
1104
|
'tile'?: true;
|
|
1105
|
+
/** The name of the icon to display. The same attribute every other component that renders an icon takes. Prefer an alias that names what the icon means here (`microphone-off`, `info`, `new-account`) over the name of the drawing; both show the same icon. */
|
|
1106
|
+
'icon'?: NLDDIcon['icon'];
|
|
1114
1107
|
};
|
|
1115
1108
|
|
|
1116
1109
|
type NlddIconButtonProps = {
|
|
@@ -1118,40 +1111,26 @@ type NlddIconButtonProps = {
|
|
|
1118
1111
|
'appearance'?: NLDDIconButton['appearance'];
|
|
1119
1112
|
/** Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md') */
|
|
1120
1113
|
'size'?: NLDDIconButton['size'];
|
|
1121
|
-
/**
|
|
1122
|
-
'
|
|
1123
|
-
/**
|
|
1124
|
-
'
|
|
1125
|
-
/**
|
|
1126
|
-
'
|
|
1127
|
-
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
1128
|
-
'disabled'?: true;
|
|
1129
|
-
/** Removes the per-appearance highlight border (e.g. when a control group draws a single border instead). */
|
|
1130
|
-
'no-highlight-border'?: true;
|
|
1131
|
-
/** Button type for form submission: 'button' | 'submit' | 'reset' (ignored when href is set) */
|
|
1132
|
-
'type'?: NLDDIconButton['type'];
|
|
1114
|
+
/** Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px') */
|
|
1115
|
+
'width'?: NLDDIconButton['width'];
|
|
1116
|
+
/** Button text, used as aria-label and shown below the icon in lg size */
|
|
1117
|
+
'text'?: NLDDIconButton['text'];
|
|
1118
|
+
/** Icon name for the nldd-icon element. Defaults to a placeholder icon when neither this attribute nor the icon slot is set. */
|
|
1119
|
+
'icon'?: NLDDIconButton['icon'];
|
|
1133
1120
|
/** Whether the button opens a menu or popover and shows chevron next to the icon */
|
|
1134
1121
|
'expandable'?: true;
|
|
1135
|
-
/** Whether the popover/menu controlled by this button is currently open. Forwarded as aria-expanded on the inner button; toggles the is-expanded visual state. */
|
|
1136
|
-
'expanded'?: true;
|
|
1137
|
-
/** Takes the button out of the tab order (tabindex="-1"), for a control owned by a roving container (an nldd-token in nldd-token-field, a button in a row of an nldd-list) that manages focus itself. Still mouse- and script-focusable. */
|
|
1138
|
-
'no-tab'?: true;
|
|
1139
1122
|
/** Type of popup container this button opens: 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid'. Sets aria-haspopup on the inner button and forces aria-expanded to always be present (true/false) so screen readers know the popup state. An nldd-menu or nldd-popover in the `popup` slot, or anchored to this button, sets it itself from the first render; set it only for another kind of popup. */
|
|
1140
1123
|
'popup-type'?: NLDDIconButton['popupType'];
|
|
1141
|
-
/** Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px') */
|
|
1142
|
-
'width'?: NLDDIconButton['width'];
|
|
1143
1124
|
/** ID of a popover element to toggle, looked up in the tree of this button; the inner <button> gets the element. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`. */
|
|
1144
1125
|
'popovertarget'?: NLDDIconButton['popovertarget'];
|
|
1145
1126
|
/** ID of an nldd-popover that describes this button and opens on interest, as the `interest` slot does, for a popover that stands elsewhere: one shared by several controls, or a button in a `<p>`, where markup of your own in the button would break the paragraph. Looked up in the tree of this button. A popover in the `interest` slot wins. Keep `accessible-label` on that popover: it names the popover where it stands, and is left out while it describes this button. */
|
|
1146
1127
|
'interestfor'?: NLDDIconButton['interestfor'];
|
|
1147
|
-
/** Button text, used as aria-label and shown below the icon in lg size */
|
|
1148
|
-
'text'?: NLDDIconButton['text'];
|
|
1149
|
-
/** Icon name for the nldd-icon element. Defaults to a placeholder icon when neither this attribute nor the icon slot is set. */
|
|
1150
|
-
'icon'?: NLDDIconButton['icon'];
|
|
1151
1128
|
/** Accessible label for screen readers. Overrides text as aria-label and title tooltip. Use when the visible text alone lacks context for screen readers (e.g. text "Toon", accessible-label "Toon wachtwoord"). The text is still shown visually in lg size regardless. */
|
|
1152
1129
|
'accessible-label'?: NLDDIconButton['accessibleLabel'];
|
|
1153
|
-
/**
|
|
1154
|
-
'
|
|
1130
|
+
/** In lg size, hides the text label and enlarges the icon by one step (28px) */
|
|
1131
|
+
'hide-lg-text'?: true;
|
|
1132
|
+
/** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
|
|
1133
|
+
'loading-text'?: NLDDIconButton['loadingText'];
|
|
1155
1134
|
/** Keyboard shortcut hint shown in the tooltip after the text, e.g. 'Alt+P'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name ("Presentatiemodus Alt P"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. */
|
|
1156
1135
|
'shortcut'?: NLDDIconButton['shortcut'];
|
|
1157
1136
|
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
@@ -1160,14 +1139,26 @@ type NlddIconButtonProps = {
|
|
|
1160
1139
|
'shortcut-windows'?: NLDDIconButton['shortcutWindows'];
|
|
1161
1140
|
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
1162
1141
|
'shortcut-linux'?: NLDDIconButton['shortcutLinux'];
|
|
1142
|
+
/** Takes the button out of the tab order (tabindex="-1"), for a control owned by a roving container (an nldd-token in nldd-token-field, a button in a row of an nldd-list) that manages focus itself. Still mouse- and script-focusable. */
|
|
1143
|
+
'no-tab'?: true;
|
|
1144
|
+
/** Forwarded to the inner nldd-tooltip's `timing`: 'delay' (the default, a 700 ms show-delay), 'instant', or 'never' (suppress the visual tooltip; screen readers still get the aria-label). Use 'never' when the surrounding context already explains the button (e.g. spin buttons in nldd-number-field, the chevron in nldd-split-button). */
|
|
1145
|
+
'tooltip-timing'?: NLDDIconButton['tooltipTiming'];
|
|
1146
|
+
/** Whether the popover/menu controlled by this button is currently open. Forwarded as aria-expanded on the inner button; toggles the is-expanded visual state. */
|
|
1147
|
+
'expanded'?: true;
|
|
1148
|
+
/** Loading state (default: false). Shows an activity indicator over the visually hidden icon, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe. */
|
|
1149
|
+
'loading'?: true;
|
|
1150
|
+
/** Button type for form submission: 'button' | 'submit' | 'reset' (ignored when href is set) */
|
|
1151
|
+
'type'?: NLDDIconButton['type'];
|
|
1163
1152
|
/** When set, renders an <a> element instead of <button> */
|
|
1164
1153
|
'href'?: NLDDIconButton['href'];
|
|
1165
1154
|
/** Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
|
|
1166
1155
|
'target'?: NLDDIconButton['target'];
|
|
1167
|
-
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
1168
|
-
'download'?: NLDDIconButton['download'];
|
|
1169
1156
|
/** Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1170
1157
|
'rel'?: NLDDIconButton['rel'];
|
|
1158
|
+
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
1159
|
+
'download'?: NLDDIconButton['download'];
|
|
1160
|
+
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
1161
|
+
'disabled'?: true;
|
|
1171
1162
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
1172
1163
|
'accessible-description'?: NLDDIconButton['accessibleDescription'];
|
|
1173
1164
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -1177,10 +1168,10 @@ type NlddIconButtonProps = {
|
|
|
1177
1168
|
};
|
|
1178
1169
|
|
|
1179
1170
|
type NlddIconCellProps = {
|
|
1180
|
-
/** Size: '16' | '20' | '24' | '32' (default: '24') */
|
|
1181
|
-
'size'?: NLDDIconCell['size'];
|
|
1182
1171
|
/** Color variant of the icon (default: 'content') */
|
|
1183
1172
|
'color'?: NLDDIconCell['color'];
|
|
1173
|
+
/** Size: '16' | '20' | '24' | '32' (default: '24') */
|
|
1174
|
+
'size'?: NLDDIconCell['size'];
|
|
1184
1175
|
/** Vertical alignment: 'top' | 'center' | 'bottom' (default: 'center') */
|
|
1185
1176
|
'vertical-alignment'?: NLDDIconCell['verticalAlignment'];
|
|
1186
1177
|
/** Icon name (renders `<nldd-icon>`). Content in the default slot wins. */
|
|
@@ -1209,40 +1200,40 @@ type NlddIdentityProps = {
|
|
|
1209
1200
|
};
|
|
1210
1201
|
|
|
1211
1202
|
type NlddImageProps = {
|
|
1203
|
+
/** Corner shape (default: 'square') */
|
|
1204
|
+
'shape'?: NLDDImage['shape'];
|
|
1205
|
+
/** Display width, never wider than the parent. `full` (default) fills the parent. A number is pixels and also sets the `<img>` layout-hint width; any other CSS length (`20rem`, `50%`) only sets the width, so reserve space with `height` or `aspect-ratio`. Written as an inline `max-width` on the host, so it holds against a rule from a parent such as `nldd-rich-text`, and against one of your own. */
|
|
1206
|
+
'width'?: NLDDImage['width'];
|
|
1207
|
+
/** Intrinsic height (for layout reservation) */
|
|
1208
|
+
'height'?: NLDDImage['height'];
|
|
1212
1209
|
/** Image URL */
|
|
1213
1210
|
'src'?: NLDDImage['src'];
|
|
1214
|
-
/** Alt text for the image from `src`. Required unless `decorative`; slotted media carries its own. */
|
|
1215
|
-
'alt'?: NLDDImage['alt'];
|
|
1216
1211
|
/** Responsive source set */
|
|
1217
1212
|
'srcset'?: NLDDImage['srcset'];
|
|
1218
1213
|
/** Source sizes hint */
|
|
1219
1214
|
'sizes'?: NLDDImage['sizes'];
|
|
1220
|
-
/**
|
|
1221
|
-
'
|
|
1222
|
-
/** Intrinsic height (for layout reservation) */
|
|
1223
|
-
'height'?: NLDDImage['height'];
|
|
1224
|
-
/** Loading strategy (default: 'lazy'). Lazy defers fetch until the image is near the viewport, the right choice for below-the-fold content. Set to 'eager' on images that appear in the initial viewport, especially the LCP candidate (hero illustration, top-of-list thumbnail); leaving them lazy silently regresses Core Web Vitals because the LCP fetch waits for the intersection observer. Pair with `fetchpriority="high"` on the LCP image for the strongest signal. */
|
|
1225
|
-
'loading'?: NLDDImage['loading'];
|
|
1226
|
-
/** Decoding hint (default: 'async') */
|
|
1227
|
-
'decoding'?: NLDDImage['decoding'];
|
|
1228
|
-
/** Fetch priority hint */
|
|
1229
|
-
'fetchpriority'?: NLDDImage['fetchPriority'];
|
|
1215
|
+
/** Alt text for the image from `src`. Required unless `decorative`; slotted media carries its own. */
|
|
1216
|
+
'alt'?: NLDDImage['alt'];
|
|
1230
1217
|
/** Aspect ratio in CSS form (e.g. "16/9", "1/1", "4/3"). "16:9" colon notation is also accepted for convenience. */
|
|
1231
1218
|
'aspect-ratio'?: NLDDImage['aspectRatio'];
|
|
1232
1219
|
/** default: 'cover' */
|
|
1233
1220
|
'object-fit'?: NLDDImage['objectFit'];
|
|
1234
1221
|
/** default: 'center' */
|
|
1235
1222
|
'object-position'?: NLDDImage['objectPosition'];
|
|
1236
|
-
/**
|
|
1237
|
-
'
|
|
1223
|
+
/** Loading preview (LQIP, low-quality image placeholder) as a CSV string `"base,c1,c2,c3,c4,c5,c6"`: seven 0-255 bytes, each packing an 8-bit Oklab triplet (2 bits L, 3 bits a, 3 bits b). The first is the base color shown outside the cell gradients; the other six are per-cell colors in row-major 3×2 order. Generate via the encoder in `lqip-encoder.ts` or via the LQIP-encoder example on `/componenten/image/`. Extends Lean Rada's CSS-only LQIP (https://leanrada.com/notes/css-only-lqip/) with per-cell hue. Lean's original format encodes grayscale cells only, while ours encodes a color per cell so multi-color subjects survive the preview. */
|
|
1224
|
+
'lqip'?: NLDDImage['lqip'];
|
|
1225
|
+
/** Decoding hint (default: 'async') */
|
|
1226
|
+
'decoding'?: NLDDImage['decoding'];
|
|
1227
|
+
/** Fetch priority hint */
|
|
1228
|
+
'fetchpriority'?: NLDDImage['fetchPriority'];
|
|
1238
1229
|
/** Caption text shown below the image */
|
|
1239
1230
|
'caption'?: NLDDImage['caption'];
|
|
1240
1231
|
/** Smaller credit/attribution text shown beside the caption */
|
|
1241
1232
|
'credit'?: NLDDImage['credit'];
|
|
1242
1233
|
/** Decorative image: alt is forced empty + aria-hidden */
|
|
1243
1234
|
'decorative'?: true;
|
|
1244
|
-
/** Loading
|
|
1245
|
-
'
|
|
1235
|
+
/** Loading strategy (default: 'lazy'). Lazy defers fetch until the image is near the viewport, the right choice for below-the-fold content. Set to 'eager' on images that appear in the initial viewport, especially the LCP candidate (hero illustration, top-of-list thumbnail); leaving them lazy silently regresses Core Web Vitals because the LCP fetch waits for the intersection observer. Pair with `fetchpriority="high"` on the LCP image for the strongest signal. */
|
|
1236
|
+
'loading'?: NLDDImage['loading'];
|
|
1246
1237
|
/** Override translation keys (e.g. the message shown when the image fails to load); unset keys fall back to Dutch. */
|
|
1247
1238
|
'translations'?: NLDDImage['translations'];
|
|
1248
1239
|
};
|
|
@@ -1250,46 +1241,46 @@ type NlddImageProps = {
|
|
|
1250
1241
|
type NlddInlineDialogProps = {
|
|
1251
1242
|
/** Semantic variant. 'alert' / 'success' force a matching icon and color; 'loading' shows an nldd-activity-indicator (a role="status" spinner announcing "Laden") in place of the icon, for an empty state that is still loading. */
|
|
1252
1243
|
'variant'?: NLDDInlineDialog['variant'];
|
|
1253
|
-
/** Typography size: 'md' (default) keeps body-md text + body-sm supporting; 'lg' bumps both up a step. */
|
|
1254
|
-
'size'?: NLDDInlineDialog['size'];
|
|
1255
|
-
/** Name of the nldd-icon icon above the text; absent when not set. Ignored when variant is set. */
|
|
1256
|
-
'icon'?: NLDDInlineDialog['icon'];
|
|
1257
1244
|
/** 'secondary' | 'accent' | 'critical' | 'warning' | 'success'. Overrides the default and variant icon color. */
|
|
1258
1245
|
'icon-color'?: NLDDInlineDialog['iconColor'];
|
|
1246
|
+
/** Typography size: 'md' (default) keeps body-md text + body-sm supporting; 'lg' bumps both up a step. */
|
|
1247
|
+
'size'?: NLDDInlineDialog['size'];
|
|
1248
|
+
/** Overrides the alignment of text, icon and actions. Unset (the default) derives it: content in the default slot means a task, which aligns left; a bare message stays centered. Centered, the actions stack at most 360px wide, even where two would fit side by side. Left-aligned, they sit in a row, each as wide as its label. */
|
|
1249
|
+
'horizontal-alignment'?: NLDDInlineDialog['horizontalAlignment'];
|
|
1259
1250
|
/** Main text (heading or paragraph, depending on heading-level) */
|
|
1260
1251
|
'text'?: NLDDInlineDialog['text'];
|
|
1261
1252
|
/** Supporting text below the heading */
|
|
1262
1253
|
'supporting-text'?: NLDDInlineDialog['supportingText'];
|
|
1263
1254
|
/** Renders text as h1–h6; absent renders a p */
|
|
1264
1255
|
'heading-level'?: NLDDInlineDialog['headingLevel'];
|
|
1265
|
-
/**
|
|
1266
|
-
'
|
|
1256
|
+
/** Name of the nldd-icon icon above the text; absent when not set. Ignored when variant is set. */
|
|
1257
|
+
'icon'?: NLDDInlineDialog['icon'];
|
|
1267
1258
|
};
|
|
1268
1259
|
|
|
1269
1260
|
type NlddJustInTimeEducationProps = {
|
|
1270
|
-
/**
|
|
1271
|
-
'
|
|
1261
|
+
/** 'auto' | 'top' | 'bottom' | 'left' | 'right' (default 'auto'). */
|
|
1262
|
+
'placement'?: NLDDJustInTimeEducation['placement'];
|
|
1272
1263
|
/** Title of the callout. */
|
|
1273
1264
|
'text'?: NLDDJustInTimeEducation['text'];
|
|
1274
1265
|
/** Supporting text under the title. */
|
|
1275
1266
|
'supporting-text'?: NLDDJustInTimeEducation['supportingText'];
|
|
1276
|
-
/** 'auto' | 'top' | 'bottom' | 'left' | 'right' (default 'auto'). */
|
|
1277
|
-
'placement'?: NLDDJustInTimeEducation['placement'];
|
|
1278
|
-
/** Show the dismiss button and allow closing with one click or key press outside the coach mark. False by default: the consumer then manages closing itself. */
|
|
1279
|
-
'dismissable'?: true;
|
|
1280
|
-
/** Arrow length, and therefore the distance between card and control, as a CSS length (e.g. `333px`, `30vh`). Empty = the DS default; anything under 40px is clamped. */
|
|
1281
|
-
'arrow-length'?: NLDDJustInTimeEducation['arrowLength'];
|
|
1282
1267
|
/** Hide the arrow; the card then sits close against the control. */
|
|
1283
1268
|
'no-arrow'?: true;
|
|
1269
|
+
/** Arrow length, and therefore the distance between card and control, as a CSS length (e.g. `333px`, `30vh`). Empty = the DS default; anything under 40px is clamped. */
|
|
1270
|
+
'arrow-length'?: NLDDJustInTimeEducation['arrowLength'];
|
|
1271
|
+
/** Show the dismiss button and allow closing with one click or key press outside the coach mark. False by default: the consumer then manages closing itself. */
|
|
1272
|
+
'dismissable'?: true;
|
|
1273
|
+
/** Show the coach mark. Driven by the app; false by default. */
|
|
1274
|
+
'active'?: true;
|
|
1284
1275
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
1285
1276
|
'translations'?: NLDDJustInTimeEducation['translations'];
|
|
1286
1277
|
};
|
|
1287
1278
|
|
|
1288
1279
|
type NlddKanbanProps = {
|
|
1289
|
-
/** Accessible name of the board (default: "Bord") */
|
|
1290
|
-
'accessible-label'?: NLDDKanban['accessibleLabel'];
|
|
1291
1280
|
/** Fixed height as a CSS length (e.g. '480px'): every column takes it, and scrolls its items once they do not fit. To fill a page or a pane, set the height in your layout instead (flex, or `height: 100%`) */
|
|
1292
1281
|
'height'?: NLDDKanban['height'];
|
|
1282
|
+
/** Accessible name of the board (default: "Bord") */
|
|
1283
|
+
'accessible-label'?: NLDDKanban['accessibleLabel'];
|
|
1293
1284
|
/** Items cannot be dragged or moved with the keyboard; they still work, and `moveItem()` still moves */
|
|
1294
1285
|
'readonly'?: true;
|
|
1295
1286
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
@@ -1306,20 +1297,20 @@ type NlddKanbanColumnProps = {
|
|
|
1306
1297
|
};
|
|
1307
1298
|
|
|
1308
1299
|
type NlddKeyboardShortcutProps = {
|
|
1309
|
-
/** Keys separated by '+' (e.g. 'Cmd+K' or 'Ctrl+Shift+P'). End with '++' for a literal '+' key: 'Ctrl++' becomes 'Ctrl' + '+' ('Ctrl+++' works too). For more complex cases, such as a combo with several '+' keys, use the default slot with your own <kbd> elements instead of the keys attribute. */
|
|
1310
|
-
'keys'?: NLDDKeyboardShortcut['keys'];
|
|
1311
|
-
/** Optional override for macOS (iPhone/iPad/iPod included). */
|
|
1312
|
-
'mac-keys'?: NLDDKeyboardShortcut['macKeys'];
|
|
1313
|
-
/** Optional override for Windows. */
|
|
1314
|
-
'windows-keys'?: NLDDKeyboardShortcut['windowsKeys'];
|
|
1315
|
-
/** Optional override for Linux/ChromeOS. */
|
|
1316
|
-
'linux-keys'?: NLDDKeyboardShortcut['linuxKeys'];
|
|
1317
|
-
/** Size: 'sm' | 'md' | 'inherit' (default: 'md'). 'inherit' takes the font-size from the container; with keycaps they then scale along in em. */
|
|
1318
|
-
'size'?: NLDDKeyboardShortcut['size'];
|
|
1319
1300
|
/** 'keycap' (default) shows each key as a keycap with a fill and a highlight edge, side by side without a '+'. 'text' shows the keys as plain text: lighter, for inline use such as in a menu item. As text the keys are joined by '+' (Ctrl+K), except on macOS. */
|
|
1320
1301
|
'appearance'?: NLDDKeyboardShortcut['appearance'];
|
|
1321
1302
|
/** 'neutral' (default) uses the component colors of its own. 'content' lets the keys and separators follow the content color of the context, with a translucent contrast fill and highlight edge. Useful on a filled surface color or a highlighted row. */
|
|
1322
1303
|
'color'?: NLDDKeyboardShortcut['color'];
|
|
1304
|
+
/** Size: 'sm' | 'md' | 'inherit' (default: 'md'). 'inherit' takes the font-size from the container; with keycaps they then scale along in em. */
|
|
1305
|
+
'size'?: NLDDKeyboardShortcut['size'];
|
|
1306
|
+
/** Keys separated by '+' (e.g. 'Cmd+K' or 'Ctrl+Shift+P'). End with '++' for a literal '+' key: 'Ctrl++' becomes 'Ctrl' + '+' ('Ctrl+++' works too). For more complex cases, such as a combo with several '+' keys, use the default slot with your own <kbd> elements instead of the keys attribute. */
|
|
1307
|
+
'keys'?: NLDDKeyboardShortcut['keys'];
|
|
1308
|
+
/** Optional override for macOS (iPhone/iPad/iPod included). */
|
|
1309
|
+
'mac-keys'?: NLDDKeyboardShortcut['macKeys'];
|
|
1310
|
+
/** Optional override for Windows. */
|
|
1311
|
+
'windows-keys'?: NLDDKeyboardShortcut['windowsKeys'];
|
|
1312
|
+
/** Optional override for Linux/ChromeOS. */
|
|
1313
|
+
'linux-keys'?: NLDDKeyboardShortcut['linuxKeys'];
|
|
1323
1314
|
/** Show on touch-only devices too, where shortcuts cannot be invoked. */
|
|
1324
1315
|
'always-visible'?: true;
|
|
1325
1316
|
/** Development aid: overrides the OS detection for this instance, so you can show several platform variants side by side in documentation. Not meant for production use; leave it empty (default) so the real OS detection applies. */
|
|
@@ -1327,14 +1318,6 @@ type NlddKeyboardShortcutProps = {
|
|
|
1327
1318
|
};
|
|
1328
1319
|
|
|
1329
1320
|
type NlddLinkProps = {
|
|
1330
|
-
/** Link target */
|
|
1331
|
-
'href'?: NLDDLink['href'];
|
|
1332
|
-
/** Link target (e.g. '_blank'); adjusts rel automatically. With '_blank' the link adds a visually hidden "opent in nieuw tabblad" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
|
|
1333
|
-
'target'?: NLDDLink['target'];
|
|
1334
|
-
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
1335
|
-
'download'?: NLDDLink['download'];
|
|
1336
|
-
/** Link rel attribute; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1337
|
-
'rel'?: NLDDLink['rel'];
|
|
1338
1321
|
/** Text size: 'inherit' (the default) follows the surrounding text and lays the link out inline, so it wraps in running prose. 'xs' | 'sm' | 'md' | 'lg' pin a size and switch to inline-flex, which baseline-aligns a start or end icon with an explicit gap. */
|
|
1339
1322
|
'size'?: NLDDLink['size'];
|
|
1340
1323
|
/** Link text. Content in the default slot wins. */
|
|
@@ -1343,14 +1326,22 @@ type NlddLinkProps = {
|
|
|
1343
1326
|
'start-icon'?: NLDDLink['startIcon'];
|
|
1344
1327
|
/** Icon after the text */
|
|
1345
1328
|
'end-icon'?: NLDDLink['endIcon'];
|
|
1329
|
+
/** ID of an nldd-popover that previews where the link goes, looked up in the tree of this link. It opens on interest instead of on a click: when the pointer rests on the link, when it gets keyboard focus, and on a long press on touch. A click or a tap still follows the link. Focus stays on the link, the popover's content is read as the link's description, and Escape closes it. The pointer can move onto the popover without closing it. Information only: put no link or button in it. Keep the popover outside the paragraph: a link stands in a `<p>`, and a `<p>` of your own inside it would close that paragraph. One popover can serve several links. Keep `accessible-label` on it: it is left out while the popover describes a link. */
|
|
1330
|
+
'interestfor'?: NLDDLink['interestfor'];
|
|
1346
1331
|
/** Accessible label for screen readers */
|
|
1347
1332
|
'accessible-label'?: NLDDLink['accessibleLabel'];
|
|
1348
|
-
/** Disabled state. Avoid it where you can; the design guidelines say why. */
|
|
1349
|
-
'disabled'?: true;
|
|
1350
1333
|
/** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
|
|
1351
1334
|
'no-tab'?: true;
|
|
1352
|
-
/**
|
|
1353
|
-
'
|
|
1335
|
+
/** Link target */
|
|
1336
|
+
'href'?: NLDDLink['href'];
|
|
1337
|
+
/** Link target (e.g. '_blank'); adjusts rel automatically. With '_blank' the link adds a visually hidden "opent in nieuw tabblad" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
|
|
1338
|
+
'target'?: NLDDLink['target'];
|
|
1339
|
+
/** Link rel attribute; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1340
|
+
'rel'?: NLDDLink['rel'];
|
|
1341
|
+
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
1342
|
+
'download'?: NLDDLink['download'];
|
|
1343
|
+
/** Disabled state. Avoid it where you can; the design guidelines say why. */
|
|
1344
|
+
'disabled'?: true;
|
|
1354
1345
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
1355
1346
|
'accessible-description'?: NLDDLink['accessibleDescription'];
|
|
1356
1347
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -1362,10 +1353,10 @@ type NlddLinkProps = {
|
|
|
1362
1353
|
type NlddLinkGroupProps = {
|
|
1363
1354
|
/** Text size, set on every link in it: 'xs' | 'sm' | 'md' | 'lg' (default: 'md') */
|
|
1364
1355
|
'size'?: NLDDLinkGroup['size'];
|
|
1365
|
-
/** Layout direction: 'horizontal' (a row that wraps) | 'vertical' (default: 'horizontal') */
|
|
1366
|
-
'orientation'?: NLDDLinkGroup['orientation'];
|
|
1367
1356
|
/** Alignment of the links: 'left' | 'center' (default: 'left') */
|
|
1368
1357
|
'horizontal-alignment'?: NLDDLinkGroup['horizontalAlignment'];
|
|
1358
|
+
/** Layout direction: 'horizontal' (a row that wraps) | 'vertical' (default: 'horizontal') */
|
|
1359
|
+
'orientation'?: NLDDLinkGroup['orientation'];
|
|
1369
1360
|
/** Accessible name of the nav landmark */
|
|
1370
1361
|
'accessible-label'?: NLDDLinkGroup['accessibleLabel'];
|
|
1371
1362
|
};
|
|
@@ -1373,31 +1364,23 @@ type NlddLinkGroupProps = {
|
|
|
1373
1364
|
type NlddListProps = {
|
|
1374
1365
|
/** Visual style (default 'simple'): `simple` is a plain vertical strip with no chrome, the two `box` values a framed card with rounded corners, fill and inset border ring. `box-tinted` for a list on a plain page, `box-base` for one on an already-tinted parent (the border ring gets +2 palette steps so it still reads against a card-on-card) */
|
|
1375
1366
|
'appearance'?: NLDDList['appearance'];
|
|
1376
|
-
/** A11y role and behavior (default 'list'). See the docblock above. */
|
|
1377
|
-
'type'?: NLDDList['type'];
|
|
1378
1367
|
/** When to draw the lines between the items (default 'always'). `on-touch` draws them only where the primary input is touch, under `(pointer: coarse)`: a pointer has the hover highlight to tell one row from the next and a finger has nothing, so the line earns its place in the one case and is clutter in the other. `never` hides them everywhere */
|
|
1379
1368
|
'dividers'?: NLDDList['dividers'];
|
|
1380
1369
|
/** Listbox only: caps the options' scroll region at this CSS length (e.g. '320px'). Unset means no cap. */
|
|
1381
1370
|
'height'?: NLDDList['height'];
|
|
1371
|
+
/** Enables drag-to-reorder and shows the items' reorder handles. Only valid with `type="list"`; there the arrow keys move rows instead of focus. */
|
|
1372
|
+
'reorderable'?: true;
|
|
1382
1373
|
/** Accessible name: of the list in `type="list"`, of the search field in `type="listbox"`, and of the navigation landmark in `type="navigation"`, so several navigation lists on a page can be told apart. Falls back to the i18n default. An `aria-label` or `aria-labelledby` set on the element itself wins. */
|
|
1383
1374
|
'accessible-label'?: NLDDList['accessibleLabel'];
|
|
1375
|
+
/** A11y role and behavior (default 'list'). See the docblock above. */
|
|
1376
|
+
'type'?: NLDDList['type'];
|
|
1384
1377
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
1385
1378
|
'translations'?: NLDDList['translations'];
|
|
1386
|
-
/** Enables drag-to-reorder and pushes `reorderable` onto the items. Only valid with `type="list"`; there the arrow keys move rows instead of focus. */
|
|
1387
|
-
'reorderable'?: true;
|
|
1388
1379
|
};
|
|
1389
1380
|
|
|
1390
1381
|
type NlddListItemProps = {
|
|
1391
1382
|
/** Row size (default: 'md'). Pushed onto the cells whose `size` means the same scale (nldd-text-cell, nldd-reorder-handle-cell), so it is written once per row instead of once per cell. A size set on the cell itself wins. Cells where `size` means something else (pixels on nldd-icon-cell / nldd-spacer-cell, a heading scale on nldd-title-cell) are left alone. */
|
|
1392
1383
|
'size'?: NLDDListItem['size'];
|
|
1393
|
-
/** Renders the item as an `<a>` with this URL. Wins over `checkbox` and `button`; without any of the three the item is a plain container with no action. */
|
|
1394
|
-
'href'?: NLDDListItem['href'];
|
|
1395
|
-
/** Link target forwarded to the `<a>` (e.g. '_blank'); only applies with `href`. With '_blank' a visually hidden "opens in new tab" announcement is added for assistive technology. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
|
|
1396
|
-
'target'?: NLDDListItem['target'];
|
|
1397
|
-
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
1398
|
-
'download'?: NLDDListItem['download'];
|
|
1399
|
-
/** Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1400
|
-
'rel'?: NLDDListItem['rel'];
|
|
1401
1384
|
/** Renders the item as a `<button>`. Last of the three: `href` and `checkbox` both win over it. */
|
|
1402
1385
|
'button'?: true;
|
|
1403
1386
|
/** Makes the whole row a `role="checkbox"` control. Wins over `button`, loses to `href`. */
|
|
@@ -1408,8 +1391,8 @@ type NlddListItemProps = {
|
|
|
1408
1391
|
'expandable'?: true;
|
|
1409
1392
|
/** Accessible name of the row's action (its link, button, checkbox or radio), for a row whose text does not say enough on its own. It replaces the content of the whole row for assistive technology, the supporting text and a status included, so set it only when the row has no text of its own, or put everything that matters in it. Start it with the row's visible title, so voice control finds the row by the words on screen (WCAG 2.5.3); development warns when it does not. The hint for another website or a new tab is added to it. */
|
|
1410
1393
|
'accessible-label'?: NLDDListItem['accessibleLabel'];
|
|
1411
|
-
/**
|
|
1412
|
-
'
|
|
1394
|
+
/** The `aria-current` value a `current` or `selected` row puts on its action in a `navigation` parent (default 'page'). Use 'location' for a table of contents, whose rows point at sections of the page you are on. */
|
|
1395
|
+
'current-type'?: NLDDListItem['currentType'];
|
|
1413
1396
|
/** Marks the item as selected: it is one of the rows you picked. Selection is consumer-managed; the list never sets it. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value; in a `listbox` parent it drives `aria-selected`. */
|
|
1414
1397
|
'selected'?: true;
|
|
1415
1398
|
/** Checked state of a `checkbox` or `radio` row. A checkbox row toggles it on activation, a radio row only ever sets it */
|
|
@@ -1418,8 +1401,14 @@ type NlddListItemProps = {
|
|
|
1418
1401
|
'expanded'?: true;
|
|
1419
1402
|
/** Marks the item as the one you are on: the page a menu row points at, the record a list has open. Exactly one row in a list carries it, where `selected` may be on many. It paints like `selected` at rest, a quiet fill on purpose: the page itself says where you are, in its title, heading and breadcrumb, so the fill is an extra that should not pull attention from the content, and an automated check that flags its contrast is expected. The fill alone stays under 3:1 (1.3:1 in light, 1.5:1 in dark), so a WCAG audit fails 1.4.1 and 1.4.11 on it unless the place also shows another way, such as in the page title or the breadcrumb. A table of contents that follows the scroll, as in the content page pattern, has no such other sign: expect the finding there, and name it as a deviation in the accessibility statement. It takes the highlighted fill while focus is anywhere in the row, including inside a nested `nldd-list-item-segment`, which is what a segmented row needs: the focus never reaches the row's own control, because there is none. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value. On a segmented row set it on the segment that holds the link instead: the row reads `current` off its own segments and paints itself, so it is written once, where `aria-current` belongs. */
|
|
1420
1403
|
'current'?: true;
|
|
1421
|
-
/**
|
|
1422
|
-
'
|
|
1404
|
+
/** Renders the item as an `<a>` with this URL. Wins over `checkbox` and `button`; without any of the three the item is a plain container with no action. */
|
|
1405
|
+
'href'?: NLDDListItem['href'];
|
|
1406
|
+
/** Link target forwarded to the `<a>` (e.g. '_blank'); only applies with `href`. With '_blank' a visually hidden "opens in new tab" announcement is added for assistive technology. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
|
|
1407
|
+
'target'?: NLDDListItem['target'];
|
|
1408
|
+
/** Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1409
|
+
'rel'?: NLDDListItem['rel'];
|
|
1410
|
+
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
1411
|
+
'download'?: NLDDListItem['download'];
|
|
1423
1412
|
/** Switches the row's own control off: a `button` or `checkbox` row stops responding and dims, a `href` row gets `aria-disabled` and its click is blocked (a link cannot be disabled natively). A row without a control of its own has nothing to switch off, and segments carry their own `disabled`. The arrow keys skip a disabled row. */
|
|
1424
1413
|
'disabled'?: true;
|
|
1425
1414
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
@@ -1433,36 +1422,36 @@ type NlddListItemProps = {
|
|
|
1433
1422
|
type NlddListItemSegmentProps = {
|
|
1434
1423
|
/** `full` lets the segment grow to fill the row (default: 'fit-content') */
|
|
1435
1424
|
'width'?: NLDDListItemSegment['width'];
|
|
1436
|
-
/** Renders the segment as an `<a>` with this URL. Wins over `checkbox` and `button`. */
|
|
1437
|
-
'href'?: NLDDListItemSegment['href'];
|
|
1438
|
-
/** Link target forwarded to the `<a>`; only applies with `href`. With '_blank' a visually hidden "opent in nieuw tabblad" announcement is added. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. With `accessible-label` the hint goes into the label. */
|
|
1439
|
-
'target'?: NLDDListItemSegment['target'];
|
|
1440
|
-
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
1441
|
-
'download'?: NLDDListItemSegment['download'];
|
|
1442
|
-
/** Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1443
|
-
'rel'?: NLDDListItemSegment['rel'];
|
|
1444
1425
|
/** Renders the segment as a `<button>`. Last of the three: `href` and `checkbox` both win over it. */
|
|
1445
1426
|
'button'?: true;
|
|
1446
1427
|
/** Makes the segment a `role="checkbox"` control. Wins over `button`, loses to `href`. */
|
|
1447
1428
|
'checkbox'?: true;
|
|
1448
|
-
/** Marks the segment as the row's disclosure control: `aria-expanded` comes from the parent item's `expanded`, so the state lives in one place. A slotted `nldd-icon-cell` rotates a quarter turn while the row is open */
|
|
1449
|
-
'disclosure'?: true;
|
|
1450
1429
|
/** The segment opens something, also while it is closed: without `expanded` it says "collapsed" instead of nothing. This is how markup writes a closed disclosure, since an attribute can only be there or not. */
|
|
1451
1430
|
'expandable'?: true;
|
|
1431
|
+
/** Marks the segment as the row's disclosure control: `aria-expanded` comes from the parent item's `expanded`, so the state lives in one place. A slotted `nldd-icon-cell` rotates a quarter turn while the row is open */
|
|
1432
|
+
'disclosure'?: true;
|
|
1433
|
+
/** Type of popup this segment opens: 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid'. Becomes aria-haspopup on the control and makes aria-expanded permanent, so a row of identical "more" segments says what it opens before anything is open. An nldd-menu or nldd-popover anchored here sets it itself from the first render. */
|
|
1434
|
+
'popup-type'?: NLDDListItemSegment['popupType'];
|
|
1435
|
+
/** ID of a popover this segment toggles, looked up in the tree of the segment; the inner button gets the element. The IDL counterparts `popoverTargetElement` and `popoverTargetAction` work across shadow boundaries, as on nldd-icon-button. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`. */
|
|
1436
|
+
'popovertarget'?: NLDDListItemSegment['popovertarget'];
|
|
1452
1437
|
/** Accessible name for the control. Set it when the segment holds only an icon, or when the cell text does not describe the action. */
|
|
1453
1438
|
'accessible-label'?: NLDDListItemSegment['accessibleLabel'];
|
|
1439
|
+
/** The `aria-current` value of a `current` segment (default 'page'). Use 'location' for a table of contents, whose rows point at sections of the page you are on. */
|
|
1440
|
+
'current-type'?: NLDDListItemSegment['currentType'];
|
|
1454
1441
|
/** Checked state of a `checkbox` segment; it toggles on activation */
|
|
1455
1442
|
'checked'?: true;
|
|
1456
1443
|
/** Disclosure state, reflected as `aria-expanded` on the control, and painted: the segment stays lit a step above hover for as long as what it opened is on screen, so a menu reads as hanging off this row rather than floating over the list. Set it on the segment that opens something (a tree row's chevron, a menu). Leave it off entirely when the segment discloses nothing: an absent attribute emits no aria-expanded. */
|
|
1457
1444
|
'expanded'?: true;
|
|
1458
|
-
/** Type of popup this segment opens: 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid'. Becomes aria-haspopup on the control and makes aria-expanded permanent, so a row of identical "more" segments says what it opens before anything is open. An nldd-menu or nldd-popover anchored here sets it itself from the first render. */
|
|
1459
|
-
'popup-type'?: NLDDListItemSegment['popupType'];
|
|
1460
|
-
/** ID of a popover this segment toggles, looked up in the tree of the segment; the inner button gets the element. The IDL counterparts `popoverTargetElement` and `popoverTargetAction` work across shadow boundaries, as on nldd-icon-button. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`. */
|
|
1461
|
-
'popovertarget'?: NLDDListItemSegment['popovertarget'];
|
|
1462
1445
|
/** Marks the segment as the current one, with `aria-current` set to `current-type`. The row it sits in paints itself as the current row from it, so on a segmented row this is the only place it has to be set. */
|
|
1463
1446
|
'current'?: true;
|
|
1464
|
-
/**
|
|
1465
|
-
'
|
|
1447
|
+
/** Renders the segment as an `<a>` with this URL. Wins over `checkbox` and `button`. */
|
|
1448
|
+
'href'?: NLDDListItemSegment['href'];
|
|
1449
|
+
/** Link target forwarded to the `<a>`; only applies with `href`. With '_blank' a visually hidden "opent in nieuw tabblad" announcement is added. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. With `accessible-label` the hint goes into the label. */
|
|
1450
|
+
'target'?: NLDDListItemSegment['target'];
|
|
1451
|
+
/** Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1452
|
+
'rel'?: NLDDListItemSegment['rel'];
|
|
1453
|
+
/** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
|
|
1454
|
+
'download'?: NLDDListItemSegment['download'];
|
|
1466
1455
|
/** Switches the segment off: a `button` or `checkbox` segment stops responding and dims, a `href` segment gets `aria-disabled` and its click is blocked (a link cannot be disabled natively). The arrow keys skip a row whose only segment is off. */
|
|
1467
1456
|
'disabled'?: true;
|
|
1468
1457
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
@@ -1480,62 +1469,60 @@ type NlddMenuProps = {
|
|
|
1480
1469
|
'no-blink'?: true;
|
|
1481
1470
|
/** Explicit width, pinned exactly. Without it the menu sizes to its content between a minimum and a viewport-aware maximum (min(100vw - inset, 640px)). */
|
|
1482
1471
|
'width'?: NLDDMenu['width'];
|
|
1483
|
-
/** 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. */
|
|
1484
|
-
'accessible-label'?: NLDDMenu['accessibleLabel'];
|
|
1485
|
-
/** 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. */
|
|
1486
|
-
'anchor'?: NLDDMenu['anchor'];
|
|
1487
1472
|
/** Side of the anchor it opens on, and how it lines up there (default: 'bottom-start') */
|
|
1488
1473
|
'placement'?: NLDDMenu['placement'];
|
|
1474
|
+
/** 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. */
|
|
1475
|
+
'accessible-label'?: NLDDMenu['accessibleLabel'];
|
|
1489
1476
|
/** Maximum number of visible items before scrolling. Sets --_menu-max-items internally. Default: 0 (no limit). */
|
|
1490
1477
|
'max-items'?: NLDDMenu['maxItems'];
|
|
1491
1478
|
/** Text of the default empty-state dialog. Falls back to Dutch i18n "Geen opties beschikbaar". */
|
|
1492
1479
|
'empty-text'?: NLDDMenu['emptyText'];
|
|
1493
1480
|
/** Supporting text of the default empty-state dialog. */
|
|
1494
1481
|
'empty-supporting-text'?: NLDDMenu['emptySupportingText'];
|
|
1495
|
-
/**
|
|
1496
|
-
'
|
|
1482
|
+
/** 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. */
|
|
1483
|
+
'anchor'?: NLDDMenu['anchor'];
|
|
1497
1484
|
/** Custom filter function (query, item) => boolean. */
|
|
1498
1485
|
'filterFn'?: NLDDMenu['filterFn'];
|
|
1486
|
+
/** Override one or more translation keys. */
|
|
1487
|
+
'translations'?: NLDDMenu['translations'];
|
|
1499
1488
|
};
|
|
1500
1489
|
|
|
1501
1490
|
type NlddMenuBarProps = {
|
|
1502
|
-
/** Text for the overflow button (default through i18n) */
|
|
1503
|
-
'overflow-text'?: NLDDMenuBar['overflowText'];
|
|
1504
|
-
/** aria-label for the nav landmark */
|
|
1505
|
-
'accessible-label'?: NLDDMenuBar['accessibleLabel'];
|
|
1506
1491
|
/** Propagates the compact attribute to slotted items (activates content priority) */
|
|
1507
1492
|
'compact'?: true;
|
|
1493
|
+
/** aria-label for the nav landmark */
|
|
1494
|
+
'accessible-label'?: NLDDMenuBar['accessibleLabel'];
|
|
1495
|
+
/** Text for the overflow button (default through i18n) */
|
|
1496
|
+
'overflow-text'?: NLDDMenuBar['overflowText'];
|
|
1508
1497
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
1509
1498
|
'translations'?: NLDDMenuBar['translations'];
|
|
1510
1499
|
};
|
|
1511
1500
|
|
|
1512
1501
|
type NlddMenuBarItemProps = {
|
|
1502
|
+
/** Hide the text visually (always). The text then shows as a tooltip on hover and focus. */
|
|
1503
|
+
'icon-only'?: true;
|
|
1513
1504
|
/** Text of the item */
|
|
1514
1505
|
'text'?: NLDDMenuBarItem['text'];
|
|
1515
|
-
/** Mark as the active or current item */
|
|
1516
|
-
'current'?: true;
|
|
1517
|
-
/** aria-current value when current is true ('page', 'step', 'location', 'true'). Default: 'page' */
|
|
1518
|
-
'current-type'?: NLDDMenuBarItem['currentType'];
|
|
1519
|
-
/** Optional link URL. Without href it renders as a button. */
|
|
1520
|
-
'href'?: NLDDMenuBarItem['href'];
|
|
1521
1506
|
/** Optional icon name (nldd-icon) */
|
|
1522
1507
|
'icon'?: NLDDMenuBarItem['icon'];
|
|
1523
1508
|
/** Show the disclosure icon and open the slotted `<nldd-menu>` on click. The control then says `aria-haspopup="menu"`, except for a menu with `variant="navigation"`: that is a list of links, so the control only says `aria-expanded`. */
|
|
1524
1509
|
'expandable'?: true;
|
|
1525
|
-
/** Hide the text visually (always). The text then shows as a tooltip on hover and focus. */
|
|
1526
|
-
'icon-only'?: true;
|
|
1527
|
-
/** Decides what stays visible in compact mode: 'icon' hides the text, 'text' hides the icon. A bar is compact on a narrow screen and also at 200% zoom on a desktop, so with 'icon' the text is gone there too and shows as a tooltip instead. */
|
|
1528
|
-
'content-priority'?: NLDDMenuBarItem['contentPriority'];
|
|
1529
|
-
/** Activates content-priority behavior (set by the parent nldd-menu-bar) */
|
|
1530
|
-
'compact'?: true;
|
|
1531
|
-
/** Turn interaction off. Avoid it where you can; the design guidelines say why. */
|
|
1532
|
-
'disabled'?: true;
|
|
1533
|
-
/** Override aria-label */
|
|
1534
|
-
'accessible-label'?: NLDDMenuBarItem['accessibleLabel'];
|
|
1535
1510
|
/** aria-haspopup value (e.g. "menu", "dialog") */
|
|
1536
1511
|
'haspopup'?: NLDDMenuBarItem['haspopup'];
|
|
1512
|
+
/** Override aria-label */
|
|
1513
|
+
'accessible-label'?: NLDDMenuBarItem['accessibleLabel'];
|
|
1514
|
+
/** aria-current value when current is true ('page', 'step', 'location', 'true'). Default: 'page' */
|
|
1515
|
+
'current-type'?: NLDDMenuBarItem['currentType'];
|
|
1516
|
+
/** Decides what stays visible in compact mode: 'icon' hides the text, 'text' hides the icon. A bar is compact on a narrow screen and also at 200% zoom on a desktop, so with 'icon' the text is gone there too and shows as a tooltip instead. */
|
|
1517
|
+
'content-priority'?: NLDDMenuBarItem['contentPriority'];
|
|
1537
1518
|
/** Whether the matching popover is open; sets aria-expanded on the button when expandable or haspopup is set. Tracked automatically for a slotted `<nldd-menu>`. */
|
|
1538
1519
|
'expanded'?: true;
|
|
1520
|
+
/** Mark as the active or current item */
|
|
1521
|
+
'current'?: true;
|
|
1522
|
+
/** Optional link URL. Without href it renders as a button. */
|
|
1523
|
+
'href'?: NLDDMenuBarItem['href'];
|
|
1524
|
+
/** Turn interaction off. Avoid it where you can; the design guidelines say why. */
|
|
1525
|
+
'disabled'?: true;
|
|
1539
1526
|
/** Whether the linked popover or menu is open */
|
|
1540
1527
|
'open'?: true;
|
|
1541
1528
|
};
|
|
@@ -1561,30 +1548,30 @@ type NlddMenuItemProps = {
|
|
|
1561
1548
|
'shortcut'?: NLDDMenuItem['shortcut'];
|
|
1562
1549
|
/** / shortcut-windows / shortcut-linux - Per-OS overrides for `shortcut`, picked by detected OS (falls back to `shortcut`). */
|
|
1563
1550
|
'shortcut-mac'?: NLDDMenuItem['shortcutMac'];
|
|
1551
|
+
/** Query substring to bold-highlight in text. Set by menu's filter(); also settable by consumers. */
|
|
1552
|
+
'query'?: NLDDMenuItem['query'];
|
|
1553
|
+
/** 'match' | 'predictive' (default: 'predictive'). See text-cell for details. */
|
|
1554
|
+
'query-mark-mode'?: NLDDMenuItem['queryMarkMode'];
|
|
1555
|
+
/** Space-separated alternative search terms. */
|
|
1556
|
+
'aliases'?: NLDDMenuItem['aliases'];
|
|
1557
|
+
/** Selected state for checkbox and radio types. */
|
|
1558
|
+
'selected'?: true;
|
|
1559
|
+
/** Id of the form a `submit` item submits, for an item that does not stand in it, which a menu usually does not. Takes an `nldd-form` as well as a plain `<form>`, looked up in the item's own root. */
|
|
1560
|
+
'form'?: NLDDMenuItem['form'];
|
|
1561
|
+
/** A value of the item's own, read off the item in a `select` handler. The default filter matches on it as well as on `text` and `aliases`. Not a form value: this component is not form-associated. */
|
|
1562
|
+
'value'?: NLDDMenuItem['value'];
|
|
1563
|
+
/** Item type: 'button' | 'submit' | 'checkbox' | 'radio'. Default: 'button'. A 'submit' item submits its form when chosen, always after `select`, so a logout or delete can be a POST without script: the form it stands in, or the one `form` names. Like a native button, it looks only in its own tree: a menu in a shadow root does not reach a form outside it. To stop it, cancel the form's `submit` event, which runs validation first. One checkbox or radio item gives every item in its menu the check-mark column, so the text of the whole menu starts at one line, as in a native menu. Submenus decide for themselves. */
|
|
1564
|
+
'type'?: NLDDMenuItem['type'];
|
|
1564
1565
|
/** Optional link target. A plain button item with an href renders as an `<a>` so it is a real link (middle-click, open in new tab, copy link). Space chooses it like any other item, except in a `navigation` menu, where Space scrolls the page as on any link. Ignored for submenu openers, checkbox/radio items, and while disabled. */
|
|
1565
1566
|
'href'?: NLDDMenuItem['href'];
|
|
1566
1567
|
/** Where an item with an `href` opens (e.g. '_blank'); adjusts rel automatically. With '_blank' the item adds a visually hidden "opent in nieuw tabblad" for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply. */
|
|
1567
1568
|
'target'?: NLDDMenuItem['target'];
|
|
1568
1569
|
/** Link rel of an item with an `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set. */
|
|
1569
1570
|
'rel'?: NLDDMenuItem['rel'];
|
|
1570
|
-
/** Override translation keys (the new-tab and other-website announcements); unset keys fall back to Dutch. */
|
|
1571
|
-
'translations'?: NLDDMenuItem['translations'];
|
|
1572
|
-
/** Item type: 'button' | 'submit' | 'checkbox' | 'radio'. Default: 'button'. A 'submit' item submits its form when chosen, always after `select`, so a logout or delete can be a POST without script: the form it stands in, or the one `form` names. Like a native button, it looks only in its own tree: a menu in a shadow root does not reach a form outside it. To stop it, cancel the form's `submit` event, which runs validation first. One checkbox or radio item gives every item in its menu the check-mark column, so the text of the whole menu starts at one line, as in a native menu. Submenus decide for themselves. */
|
|
1573
|
-
'type'?: NLDDMenuItem['type'];
|
|
1574
|
-
/** Id of the form a `submit` item submits, for an item that does not stand in it, which a menu usually does not. Takes an `nldd-form` as well as a plain `<form>`, looked up in the item's own root. */
|
|
1575
|
-
'form'?: NLDDMenuItem['form'];
|
|
1576
|
-
/** Selected state for checkbox and radio types. */
|
|
1577
|
-
'selected'?: true;
|
|
1578
1571
|
/** Disabled state. */
|
|
1579
1572
|
'disabled'?: true;
|
|
1580
|
-
/**
|
|
1581
|
-
'
|
|
1582
|
-
/** Space-separated alternative search terms. */
|
|
1583
|
-
'aliases'?: NLDDMenuItem['aliases'];
|
|
1584
|
-
/** Query substring to bold-highlight in text. Set by menu's filter(); also settable by consumers. */
|
|
1585
|
-
'query'?: NLDDMenuItem['query'];
|
|
1586
|
-
/** 'match' | 'predictive' (default: 'predictive'). See text-cell for details. */
|
|
1587
|
-
'query-mark-mode'?: NLDDMenuItem['queryMarkMode'];
|
|
1573
|
+
/** Override translation keys (the new-tab and other-website announcements); unset keys fall back to Dutch. */
|
|
1574
|
+
'translations'?: NLDDMenuItem['translations'];
|
|
1588
1575
|
'shortcut-windows'?: NLDDMenuItem['shortcutWindows'];
|
|
1589
1576
|
'shortcut-linux'?: NLDDMenuItem['shortcutLinux'];
|
|
1590
1577
|
};
|
|
@@ -1609,44 +1596,44 @@ type NlddModalDialogProps = {
|
|
|
1609
1596
|
type NlddMultiLineTextFieldProps = {
|
|
1610
1597
|
/** 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
1611
1598
|
'size'?: NLDDMultiLineTextField['size'];
|
|
1612
|
-
/**
|
|
1613
|
-
'
|
|
1614
|
-
/**
|
|
1615
|
-
'
|
|
1599
|
+
/** 'none' | 'vertical' | 'auto' (default). 'auto' grows with content (native field-sizing), no manual handle. */
|
|
1600
|
+
'resize'?: NLDDMultiLineTextField['resize'];
|
|
1601
|
+
/** Initial visible rows (minimum height). Default: 3. */
|
|
1602
|
+
'rows'?: NLDDMultiLineTextField['rows'];
|
|
1603
|
+
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
1604
|
+
'width'?: NLDDMultiLineTextField['width'];
|
|
1616
1605
|
/** Placeholder text */
|
|
1617
1606
|
'placeholder'?: NLDDMultiLineTextField['placeholder'];
|
|
1618
|
-
/**
|
|
1619
|
-
'
|
|
1607
|
+
/** Accessible label forwarded to the inner textarea. Set automatically by nldd-form-field. */
|
|
1608
|
+
'accessible-label'?: NLDDMultiLineTextField['accessibleLabel'];
|
|
1620
1609
|
/** Marks the field as valid */
|
|
1621
1610
|
'valid'?: true;
|
|
1622
|
-
/**
|
|
1623
|
-
'
|
|
1611
|
+
/** Marks the field as invalid */
|
|
1612
|
+
'invalid'?: true;
|
|
1624
1613
|
/** Textarea name for form submission */
|
|
1625
1614
|
'name'?: NLDDMultiLineTextField['name'];
|
|
1626
|
-
/**
|
|
1627
|
-
'
|
|
1628
|
-
/**
|
|
1629
|
-
'
|
|
1630
|
-
/** Autocomplete hint */
|
|
1631
|
-
'autocomplete'?: NLDDMultiLineTextField['autocomplete'];
|
|
1615
|
+
/** Sets the id on the native textarea. Set automatically by nldd-form-field. */
|
|
1616
|
+
'input-id'?: NLDDMultiLineTextField['inputId'];
|
|
1617
|
+
/** The textarea value */
|
|
1618
|
+
'value'?: NLDDMultiLineTextField['value'];
|
|
1632
1619
|
/** Which virtual keyboard a phone or tablet raises, forwarded as `inputmode`: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'. It changes nothing about what the field accepts, and nothing at all on a desktop. */
|
|
1633
1620
|
'keyboard'?: NLDDMultiLineTextField['keyboard'];
|
|
1634
1621
|
/** What the Enter key of the virtual keyboard says, forwarded as `enterkeyhint`: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'. In a field where Enter starts a new line, leave it alone. */
|
|
1635
1622
|
'enter-key'?: NLDDMultiLineTextField['enterKey'];
|
|
1636
|
-
/** Initial visible rows (minimum height). Default: 3. */
|
|
1637
|
-
'rows'?: NLDDMultiLineTextField['rows'];
|
|
1638
|
-
/** 'none' | 'vertical' | 'auto' (default). 'auto' grows with content (native field-sizing), no manual handle. */
|
|
1639
|
-
'resize'?: NLDDMultiLineTextField['resize'];
|
|
1640
|
-
/** Accessible label forwarded to the inner textarea. Set automatically by nldd-form-field. */
|
|
1641
|
-
'accessible-label'?: NLDDMultiLineTextField['accessibleLabel'];
|
|
1642
|
-
/** Disables browser spellchecking on the inner textarea */
|
|
1643
|
-
'no-spellcheck'?: true;
|
|
1644
|
-
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
1645
|
-
'width'?: NLDDMultiLineTextField['width'];
|
|
1646
1623
|
/** Fewest characters the value may have. */
|
|
1647
1624
|
'minlength'?: NLDDMultiLineTextField['minlength'];
|
|
1648
1625
|
/** Most characters the value may have. */
|
|
1649
1626
|
'maxlength'?: NLDDMultiLineTextField['maxlength'];
|
|
1627
|
+
/** Required state */
|
|
1628
|
+
'required'?: true;
|
|
1629
|
+
/** Autocomplete hint */
|
|
1630
|
+
'autocomplete'?: NLDDMultiLineTextField['autocomplete'];
|
|
1631
|
+
/** Disables browser spellchecking on the inner textarea */
|
|
1632
|
+
'no-spellcheck'?: true;
|
|
1633
|
+
/** Readonly state */
|
|
1634
|
+
'readonly'?: true;
|
|
1635
|
+
/** Disabled state */
|
|
1636
|
+
'disabled'?: true;
|
|
1650
1637
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
1651
1638
|
'accessible-description'?: NLDDMultiLineTextField['accessibleDescription'];
|
|
1652
1639
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -1658,23 +1645,25 @@ type NlddNavigationSplitViewProps = {
|
|
|
1658
1645
|
'inspector-as-sheet'?: true;
|
|
1659
1646
|
/** Always show the primary sidebar as a sheet, keeping main visible at full width */
|
|
1660
1647
|
'primary-sidebar-as-sheet'?: true;
|
|
1648
|
+
/** Inspector hidden to free up space for other panes (read-only, set by the split view) */
|
|
1649
|
+
'inspector-auto-hidden'?: true;
|
|
1661
1650
|
/** Accessible name for the inspector sheet dialog (default: 'Details') */
|
|
1662
1651
|
'inspector-accessible-label'?: NLDDNavigationSplitView['inspectorAccessibleLabel'];
|
|
1663
1652
|
/** Accessible name for the primary sidebar sheet dialog (default: 'Navigatie') */
|
|
1664
1653
|
'primary-sidebar-accessible-label'?: NLDDNavigationSplitView['primarySidebarAccessibleLabel'];
|
|
1665
|
-
/**
|
|
1666
|
-
'
|
|
1654
|
+
/** This pane says nothing is chosen yet, such as "Kies een dossier". Stacked, the view shows the pane before it instead. Set it on the element in `main` or `secondary-sidebar`. */
|
|
1655
|
+
'empty'?: true;
|
|
1667
1656
|
};
|
|
1668
1657
|
|
|
1669
1658
|
type NlddNotificationProps = {
|
|
1670
1659
|
/** What kind of message this is; sets the icon color and the ARIA role (default: 'neutral') */
|
|
1671
1660
|
'variant'?: NLDDNotification['variant'];
|
|
1672
|
-
/** Icon override. Default per variant: neutral → info-circle-filled, accent → info-circle-filled, success → check-mark-circle-filled, warning → exclamation-triangle-filled, critical → exclamation-circle-filled */
|
|
1673
|
-
'icon'?: NLDDNotification['icon'];
|
|
1674
1661
|
/** The message */
|
|
1675
1662
|
'text'?: NLDDNotification['text'];
|
|
1676
1663
|
/** A second line under the message */
|
|
1677
1664
|
'supporting-text'?: NLDDNotification['supportingText'];
|
|
1665
|
+
/** Icon override. Default per variant: neutral → info-circle-filled, accent → info-circle-filled, success → check-mark-circle-filled, warning → exclamation-triangle-filled, critical → exclamation-circle-filled */
|
|
1666
|
+
'icon'?: NLDDNotification['icon'];
|
|
1678
1667
|
/** Milliseconds before it leaves once it is front of the deck (default: 10000). `0` keeps it until dismissed, which is what `critical` does regardless. */
|
|
1679
1668
|
'duration'?: NLDDNotification['duration'];
|
|
1680
1669
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
@@ -1682,6 +1671,18 @@ type NlddNotificationProps = {
|
|
|
1682
1671
|
};
|
|
1683
1672
|
|
|
1684
1673
|
type NlddNumberFieldProps = {
|
|
1674
|
+
/** Size: 'sm' | 'md' (default: 'md') */
|
|
1675
|
+
'size'?: NLDDNumberField['size'];
|
|
1676
|
+
/** Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px') */
|
|
1677
|
+
'width'?: NLDDNumberField['width'];
|
|
1678
|
+
/** Accessible label (aria-label) forwarded to the native input */
|
|
1679
|
+
'accessible-label'?: NLDDNumberField['accessibleLabel'];
|
|
1680
|
+
/** When set, hides the decrement and increment buttons */
|
|
1681
|
+
'hide-spin-buttons'?: true;
|
|
1682
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
1683
|
+
'invalid'?: true;
|
|
1684
|
+
/** Name for form submission */
|
|
1685
|
+
'name'?: NLDDNumberField['name'];
|
|
1685
1686
|
/** Current value. Leave it out for an empty field, which submits an empty string and takes `min` and `max` as no reason to be invalid: only `required` asks for a value, as with a native number input. As a property, `null` is empty. In an empty field + and - are both enabled, and start at 0, or at the nearer end of the range when 0 lies outside it (`min="1"` starts at 1). */
|
|
1686
1687
|
'value'?: NLDDNumberField['value'];
|
|
1687
1688
|
/** Minimum value (default: -Infinity) */
|
|
@@ -1690,24 +1691,12 @@ type NlddNumberFieldProps = {
|
|
|
1690
1691
|
'max'?: NLDDNumberField['max'];
|
|
1691
1692
|
/** Step size (default: 1) */
|
|
1692
1693
|
'step'?: NLDDNumberField['step'];
|
|
1693
|
-
/** Size: 'sm' | 'md' (default: 'md') */
|
|
1694
|
-
'size'?: NLDDNumberField['size'];
|
|
1695
|
-
/** Disabled state */
|
|
1696
|
-
'disabled'?: true;
|
|
1697
1694
|
/** A value has to be filled in. An empty field is then invalid. */
|
|
1698
1695
|
'required'?: true;
|
|
1699
|
-
/**
|
|
1700
|
-
'
|
|
1701
|
-
/** Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px') */
|
|
1702
|
-
'width'?: NLDDNumberField['width'];
|
|
1703
|
-
/** When set, hides the decrement and increment buttons */
|
|
1704
|
-
'hide-spin-buttons'?: true;
|
|
1705
|
-
/** Accessible label (aria-label) forwarded to the native input */
|
|
1706
|
-
'accessible-label'?: NLDDNumberField['accessibleLabel'];
|
|
1696
|
+
/** Disabled state */
|
|
1697
|
+
'disabled'?: true;
|
|
1707
1698
|
/** Translations; unspecified keys fall back to Dutch */
|
|
1708
1699
|
'translations'?: NLDDNumberField['translations'];
|
|
1709
|
-
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
1710
|
-
'invalid'?: true;
|
|
1711
1700
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
1712
1701
|
'accessible-description'?: NLDDNumberField['accessibleDescription'];
|
|
1713
1702
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -1793,30 +1782,30 @@ type NlddOneTimeCodeFieldProps = {
|
|
|
1793
1782
|
'size'?: NLDDOneTimeCodeField['size'];
|
|
1794
1783
|
/** Puts the boxes in the middle of the row, as on a sign-in page where the code is the only field. The field keeps the full width of the row, so it still sees when the boxes no longer fit and steps down a size; centering it from outside, with the alignment of its parent, would shrink it to its boxes and take that away. */
|
|
1795
1784
|
'centered'?: true;
|
|
1796
|
-
/** How many characters the code has (default: 6). */
|
|
1797
|
-
'length'?: NLDDOneTimeCodeField['length'];
|
|
1798
|
-
/** The shape of a code that is printed in groups, such as '###-###' or '#### ####': each `#` is a box, anything else a separator you see but a screen reader does not hear. The number of `#` is then the length, so `format` wins over `length`. The value never holds a separator: '123-234' is submitted as '123234'. Leave it out for a code without groups, as most codes from a text message are. */
|
|
1799
|
-
'format'?: NLDDOneTimeCodeField['format'];
|
|
1800
1785
|
/** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
|
|
1801
1786
|
'accessible-label'?: NLDDOneTimeCodeField['accessibleLabel'];
|
|
1787
|
+
/** Turns letters into capitals as they are typed or pasted, in the boxes and in the value. Only with `type="alphanumeric"`, and only for a code where case does not matter, as with most activation codes. Leave it off for a code that tells "a" from "A", such as some recovery codes: a value turned into capitals would no longer match. */
|
|
1788
|
+
'uppercase'?: true;
|
|
1802
1789
|
/** Marks the field as invalid */
|
|
1803
1790
|
'invalid'?: true;
|
|
1804
|
-
/** Readonly state */
|
|
1805
|
-
'readonly'?: true;
|
|
1806
|
-
/** Disabled state */
|
|
1807
|
-
'disabled'?: true;
|
|
1808
|
-
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
1809
|
-
'input-id'?: NLDDOneTimeCodeField['inputId'];
|
|
1810
1791
|
/** Input name for form submission */
|
|
1811
1792
|
'name'?: NLDDOneTimeCodeField['name'];
|
|
1793
|
+
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
1794
|
+
'input-id'?: NLDDOneTimeCodeField['inputId'];
|
|
1812
1795
|
/** The code */
|
|
1813
1796
|
'value'?: NLDDOneTimeCodeField['value'];
|
|
1814
1797
|
/** What the code holds: 'numeric' (default, digits only, raises the number keyboard) | 'alphanumeric' (letters and digits) */
|
|
1815
1798
|
'type'?: NLDDOneTimeCodeField['type'];
|
|
1816
|
-
/**
|
|
1817
|
-
'
|
|
1799
|
+
/** How many characters the code has (default: 6). */
|
|
1800
|
+
'length'?: NLDDOneTimeCodeField['length'];
|
|
1801
|
+
/** The shape of a code that is printed in groups, such as '###-###' or '#### ####': each `#` is a box, anything else a separator you see but a screen reader does not hear. The number of `#` is then the length, so `format` wins over `length`. The value never holds a separator: '123-234' is submitted as '123234'. Leave it out for a code without groups, as most codes from a text message are. */
|
|
1802
|
+
'format'?: NLDDOneTimeCodeField['format'];
|
|
1818
1803
|
/** Required state. A code that is not complete counts as invalid too. */
|
|
1819
1804
|
'required'?: true;
|
|
1805
|
+
/** Readonly state */
|
|
1806
|
+
'readonly'?: true;
|
|
1807
|
+
/** Disabled state */
|
|
1808
|
+
'disabled'?: true;
|
|
1820
1809
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
1821
1810
|
'accessible-description'?: NLDDOneTimeCodeField['accessibleDescription'];
|
|
1822
1811
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -1828,19 +1817,19 @@ type NlddPageProps = {
|
|
|
1828
1817
|
'background'?: NLDDPage['background'];
|
|
1829
1818
|
/** Name of the landmark this page is: the region it becomes beside another page, or its main landmark */
|
|
1830
1819
|
'accessible-label'?: NLDDPage['accessibleLabel'];
|
|
1820
|
+
/** Whether this page carries the document's landmarks: 'auto' (default) derives it from where the page sits, 'page' keeps banner, main and contentinfo, 'region' drops all three */
|
|
1821
|
+
'landmarks'?: NLDDPage['landmarks'];
|
|
1831
1822
|
/** Sticky header */
|
|
1832
1823
|
'sticky-header'?: true;
|
|
1833
1824
|
/** Sticky footer */
|
|
1834
1825
|
'sticky-footer'?: true;
|
|
1835
|
-
/** Whether this page carries the document's landmarks: 'auto' (default) derives it from where the page sits, 'page' keeps banner, main and contentinfo, 'region' drops all three */
|
|
1836
|
-
'landmarks'?: NLDDPage['landmarks'];
|
|
1837
1826
|
};
|
|
1838
1827
|
|
|
1839
1828
|
type NlddPageFooterProps = {
|
|
1840
|
-
/** Body max-width, mirroring a page section: 'full' removes the constraint so the content spans the full width; any CSS length (e.g. '480px') overrides the default max-width. */
|
|
1841
|
-
'width'?: NLDDPageFooter['width'];
|
|
1842
1829
|
/** Leaves out the ribbon under the footer, and the room it takes, as `no-logo` does on nldd-top-navigation-bar. The ribbon belongs to the house style of the Rijksoverheid, so a site outside it, or one anyone may run, turns it off. An empty footer then takes no height at all. */
|
|
1843
1830
|
'no-ribbon'?: true;
|
|
1831
|
+
/** Body max-width, mirroring a page section: 'full' removes the constraint so the content spans the full width; any CSS length (e.g. '480px') overrides the default max-width. */
|
|
1832
|
+
'width'?: NLDDPageFooter['width'];
|
|
1844
1833
|
};
|
|
1845
1834
|
|
|
1846
1835
|
type NlddPageFooterLegalBarProps = {
|
|
@@ -1858,16 +1847,16 @@ type NlddPageFooterLegalBarItemProps = {
|
|
|
1858
1847
|
};
|
|
1859
1848
|
|
|
1860
1849
|
type NlddPaginationProps = {
|
|
1850
|
+
/** Centers the pagination in the container (host fills row, items grouped in the middle) */
|
|
1851
|
+
'centered'?: true;
|
|
1852
|
+
/** URL pattern with a {page} placeholder, renders links instead of buttons */
|
|
1853
|
+
'href-pattern'?: NLDDPagination['hrefPattern'];
|
|
1861
1854
|
/** Currently active page (1-based) */
|
|
1862
1855
|
'current'?: NLDDPagination['current'];
|
|
1863
1856
|
/** Total number of pages (recommended max: 200 for compact select performance) */
|
|
1864
1857
|
'total'?: NLDDPagination['total'];
|
|
1865
1858
|
/** Disabled state. Avoid it where you can; the design guidelines say why. */
|
|
1866
1859
|
'disabled'?: true;
|
|
1867
|
-
/** Centers the pagination in the container (host fills row, items grouped in the middle) */
|
|
1868
|
-
'centered'?: true;
|
|
1869
|
-
/** URL pattern with a {page} placeholder, renders links instead of buttons */
|
|
1870
|
-
'href-pattern'?: NLDDPagination['hrefPattern'];
|
|
1871
1860
|
/** Translations; unspecified keys fall back to Dutch */
|
|
1872
1861
|
'translations'?: NLDDPagination['translations'];
|
|
1873
1862
|
};
|
|
@@ -1875,40 +1864,40 @@ type NlddPaginationProps = {
|
|
|
1875
1864
|
type NlddPasswordFieldProps = {
|
|
1876
1865
|
/** 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
1877
1866
|
'size'?: NLDDPasswordField['size'];
|
|
1878
|
-
/**
|
|
1879
|
-
'
|
|
1880
|
-
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
1881
|
-
'input-id'?: NLDDPasswordField['inputId'];
|
|
1867
|
+
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
1868
|
+
'width'?: NLDDPasswordField['width'];
|
|
1882
1869
|
/** Placeholder text */
|
|
1883
1870
|
'placeholder'?: NLDDPasswordField['placeholder'];
|
|
1871
|
+
/** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
|
|
1872
|
+
'accessible-label'?: NLDDPasswordField['accessibleLabel'];
|
|
1884
1873
|
/** Marks the field as valid */
|
|
1885
1874
|
'valid'?: true;
|
|
1886
1875
|
/** Marks the field as invalid */
|
|
1887
1876
|
'invalid'?: true;
|
|
1888
|
-
/** Disabled state */
|
|
1889
|
-
'disabled'?: true;
|
|
1890
1877
|
/** Whether the password is masked (default: true) */
|
|
1891
1878
|
'masked'?: true;
|
|
1892
|
-
/** Override translation keys; unset keys fall back to Dutch */
|
|
1893
|
-
'translations'?: NLDDPasswordField['translations'];
|
|
1894
|
-
/** Readonly state */
|
|
1895
|
-
'readonly'?: true;
|
|
1896
|
-
/** Required state */
|
|
1897
|
-
'required'?: true;
|
|
1898
1879
|
/** Input name for form submission */
|
|
1899
1880
|
'name'?: NLDDPasswordField['name'];
|
|
1900
|
-
/**
|
|
1901
|
-
'
|
|
1902
|
-
/**
|
|
1903
|
-
'
|
|
1904
|
-
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
1905
|
-
'width'?: NLDDPasswordField['width'];
|
|
1906
|
-
/** Regular expression the value has to match, as the native `pattern`. */
|
|
1907
|
-
'pattern'?: NLDDPasswordField['pattern'];
|
|
1881
|
+
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
1882
|
+
'input-id'?: NLDDPasswordField['inputId'];
|
|
1883
|
+
/** The input value */
|
|
1884
|
+
'value'?: NLDDPasswordField['value'];
|
|
1908
1885
|
/** Fewest characters the value may have. */
|
|
1909
1886
|
'minlength'?: NLDDPasswordField['minlength'];
|
|
1910
1887
|
/** Most characters the value may have. */
|
|
1911
1888
|
'maxlength'?: NLDDPasswordField['maxlength'];
|
|
1889
|
+
/** Regular expression the value has to match, as the native `pattern`. */
|
|
1890
|
+
'pattern'?: NLDDPasswordField['pattern'];
|
|
1891
|
+
/** Required state */
|
|
1892
|
+
'required'?: true;
|
|
1893
|
+
/** Autocomplete hint */
|
|
1894
|
+
'autocomplete'?: NLDDPasswordField['autocomplete'];
|
|
1895
|
+
/** Readonly state */
|
|
1896
|
+
'readonly'?: true;
|
|
1897
|
+
/** Disabled state */
|
|
1898
|
+
'disabled'?: true;
|
|
1899
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
1900
|
+
'translations'?: NLDDPasswordField['translations'];
|
|
1912
1901
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
1913
1902
|
'accessible-description'?: NLDDPasswordField['accessibleDescription'];
|
|
1914
1903
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -1920,10 +1909,8 @@ type NlddPopoverProps = {
|
|
|
1920
1909
|
'width'?: NLDDPopover['width'];
|
|
1921
1910
|
/** On an sm viewport (where the popover renders as a bottom sheet) fills the whole available height instead of shrinking to its content. No effect on md and up (anchored mode). Opt-in for content-heavy cases such as search results or long detail views; content-sized is the default, following the Apple and Material convention. */
|
|
1922
1911
|
'sm-full-height'?: true;
|
|
1923
|
-
/**
|
|
1924
|
-
'
|
|
1925
|
-
/** ID of the trigger element, used for positioning */
|
|
1926
|
-
'anchor'?: NLDDPopover['anchor'];
|
|
1912
|
+
/** Centers both axes on the viewport. Overridable per axis: `centered top="0"` is centered horizontally, aligned to the top. Mirrors CSS `place-items: center` with `align-items`/`justify-items` overrides. */
|
|
1913
|
+
'centered'?: true;
|
|
1927
1914
|
/** Side of the anchor it opens on, and how it lines up there (default: 'bottom-start') */
|
|
1928
1915
|
'placement'?: NLDDPopover['placement'];
|
|
1929
1916
|
/** CSS top position. When set (on its own, or together with other edge attributes or `centered`) Floating UI's anchor positioning is skipped and the popover stands free on the screen. The `anchor` is still needed for the ARIA link on the trigger. No effect on sm, where the bottom sheet wins. */
|
|
@@ -1934,14 +1921,16 @@ type NlddPopoverProps = {
|
|
|
1934
1921
|
'bottom'?: NLDDPopover['bottom'];
|
|
1935
1922
|
/** CSS left position. See `top` for the semantics. */
|
|
1936
1923
|
'left'?: NLDDPopover['left'];
|
|
1937
|
-
/** Centers both axes on the viewport. Overridable per axis: `centered top="0"` is centered horizontally, aligned to the top. Mirrors CSS `place-items: center` with `align-items`/`justify-items` overrides. */
|
|
1938
|
-
'centered'?: true;
|
|
1939
1924
|
/** (required) Accessible name (aria-label). Falls back to the i18n default ('Popover') when unset. Always give a unique, describing name. */
|
|
1940
1925
|
'accessible-label'?: NLDDPopover['accessibleLabel'];
|
|
1941
|
-
/**
|
|
1942
|
-
'
|
|
1926
|
+
/** Keeps an nldd-top-title-bar in the popover on md and up, where it is hidden by default. For a bar whose dismiss button does what nothing else in the popover does. */
|
|
1927
|
+
'md-title-bar'?: true;
|
|
1928
|
+
/** ID of the trigger element, used for positioning */
|
|
1929
|
+
'anchor'?: NLDDPopover['anchor'];
|
|
1943
1930
|
/** Whether the popover is open. Set it to open or close the popover, as an alternative to show() and hide(); opening needs an anchor, and without one it stays unset. The popover clears it itself when it closes another way (Escape, a click outside), so bind it together with the close event. */
|
|
1944
1931
|
'open'?: true;
|
|
1932
|
+
/** Override translation keys; unset keys fall back to the Dutch default. */
|
|
1933
|
+
'translations'?: NLDDPopover['translations'];
|
|
1945
1934
|
/** ARIA role (default: 'dialog'). For informational content (a tooltip callout, a rich-text help panel) without a dialog interaction pattern, set `role="region"`. For menu-style triggers, `role="menu"` plus `aria-haspopup="menu"` on the anchor. The popover never overwrites a role that was set explicitly. */
|
|
1946
1935
|
'role'?: NLDDPopover['role'];
|
|
1947
1936
|
};
|
|
@@ -1949,123 +1938,121 @@ type NlddPopoverProps = {
|
|
|
1949
1938
|
type NlddProgressBarProps = {
|
|
1950
1939
|
/** Semantics for ARIA and visualization (default: 'progress') */
|
|
1951
1940
|
'variant'?: NLDDProgressBar['variant'];
|
|
1952
|
-
/** Total value (default: 100) */
|
|
1953
|
-
'max'?: NLDDProgressBar['max'];
|
|
1954
|
-
/** Single-segment shorthand (ignored when segment children are present) */
|
|
1955
|
-
'value'?: NLDDProgressBar['value'];
|
|
1956
1941
|
/** Color for the single-segment shorthand (default: 'accent') */
|
|
1957
1942
|
'color'?: NLDDProgressBar['color'];
|
|
1958
1943
|
/** Height of the bar (default: 'md') */
|
|
1959
1944
|
'size'?: NLDDProgressBar['size'];
|
|
1960
1945
|
/** Label above the bar (left) */
|
|
1961
1946
|
'text'?: NLDDProgressBar['text'];
|
|
1962
|
-
/**
|
|
1963
|
-
'
|
|
1947
|
+
/** Full override of aria-valuetext */
|
|
1948
|
+
'accessible-label'?: NLDDProgressBar['accessibleLabel'];
|
|
1964
1949
|
/** Full override of the displayed value */
|
|
1965
1950
|
'value-text'?: NLDDProgressBar['valueText'];
|
|
1951
|
+
/** Format for the displayed value (default: 'percentage') */
|
|
1952
|
+
'value-format'?: NLDDProgressBar['valueFormat'];
|
|
1966
1953
|
/** Where the value shows: inline in the caption, in a tooltip on the bar, or hidden (default: 'inline') */
|
|
1967
1954
|
'value-display'?: NLDDProgressBar['valueDisplay'];
|
|
1968
|
-
/** Full override of aria-valuetext */
|
|
1969
|
-
'accessible-label'?: NLDDProgressBar['accessibleLabel'];
|
|
1970
1955
|
/** Shows a sliding indicator animation (only without segments) */
|
|
1971
1956
|
'indeterminate'?: true;
|
|
1957
|
+
/** Single-segment shorthand (ignored when segment children are present) */
|
|
1958
|
+
'value'?: NLDDProgressBar['value'];
|
|
1959
|
+
/** Total value (default: 100) */
|
|
1960
|
+
'max'?: NLDDProgressBar['max'];
|
|
1972
1961
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
1973
1962
|
'translations'?: NLDDProgressBar['translations'];
|
|
1974
1963
|
};
|
|
1975
1964
|
|
|
1976
1965
|
type NlddProgressBarSegmentIndicatorProps = {
|
|
1977
|
-
/** Share of the parent's total (default 0; <=0 hides segment) */
|
|
1978
|
-
'value'?: NLDDProgressBarSegmentIndicator['value'];
|
|
1979
1966
|
/** Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'. With more than one segment, give each a Rijkskleur (or success, warning and critical where they mean that): `accent` can turn near-black or match another segment in a theme, and `neutral` disappears against the track. */
|
|
1980
1967
|
'color'?: NLDDProgressBarSegmentIndicator['color'];
|
|
1981
|
-
/** Name for screenreader text (optional) */
|
|
1982
|
-
'name'?: NLDDProgressBarSegmentIndicator['name'];
|
|
1983
1968
|
/** Override of the auto-generated tooltip text */
|
|
1984
1969
|
'tooltip-text'?: NLDDProgressBarSegmentIndicator['tooltipText'];
|
|
1970
|
+
/** Name for screenreader text (optional) */
|
|
1971
|
+
'name'?: NLDDProgressBarSegmentIndicator['name'];
|
|
1972
|
+
/** Share of the parent's total (default 0; <=0 hides segment) */
|
|
1973
|
+
'value'?: NLDDProgressBarSegmentIndicator['value'];
|
|
1985
1974
|
};
|
|
1986
1975
|
|
|
1987
1976
|
type NlddProgressCircleProps = {
|
|
1988
1977
|
/** Semantics for ARIA and gap behavior (default: 'progress') */
|
|
1989
1978
|
'variant'?: NLDDProgressCircle['variant'];
|
|
1990
|
-
/** Total value (default: 100) */
|
|
1991
|
-
'max'?: NLDDProgressCircle['max'];
|
|
1992
|
-
/** Single-segment shorthand (ignored when segment children exist) */
|
|
1993
|
-
'value'?: NLDDProgressCircle['value'];
|
|
1994
1979
|
/** Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'. */
|
|
1995
1980
|
'color'?: NLDDProgressCircle['color'];
|
|
1996
1981
|
/** Circle diameter in px. Matches nldd-icon sizes: 16, 20, 24, 28, 32, 40, 44, 48, 56, 64, 80, 96 (default: '28') */
|
|
1997
1982
|
'size'?: NLDDProgressCircle['size'];
|
|
1998
1983
|
/** Label below the circle */
|
|
1999
1984
|
'text'?: NLDDProgressCircle['text'];
|
|
2000
|
-
/**
|
|
2001
|
-
'
|
|
1985
|
+
/** Full override of aria-valuetext */
|
|
1986
|
+
'accessible-label'?: NLDDProgressCircle['accessibleLabel'];
|
|
2002
1987
|
/** Full override of the displayed value (inline + tooltip) */
|
|
2003
1988
|
'value-text'?: NLDDProgressCircle['valueText'];
|
|
1989
|
+
/** Format of the displayed value (default: 'percentage') */
|
|
1990
|
+
'value-format'?: NLDDProgressCircle['valueFormat'];
|
|
2004
1991
|
/** Where the value shows: inline below the label, in a tooltip, or hidden (default: 'tooltip') */
|
|
2005
1992
|
'value-display'?: NLDDProgressCircle['valueDisplay'];
|
|
2006
|
-
/** Full override of aria-valuetext */
|
|
2007
|
-
'accessible-label'?: NLDDProgressCircle['accessibleLabel'];
|
|
2008
1993
|
/** Renders the rotating elastic arc animation */
|
|
2009
1994
|
'indeterminate'?: true;
|
|
1995
|
+
/** Single-segment shorthand (ignored when segment children exist) */
|
|
1996
|
+
'value'?: NLDDProgressCircle['value'];
|
|
1997
|
+
/** Total value (default: 100) */
|
|
1998
|
+
'max'?: NLDDProgressCircle['max'];
|
|
2010
1999
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
2011
2000
|
'translations'?: NLDDProgressCircle['translations'];
|
|
2012
2001
|
};
|
|
2013
2002
|
|
|
2014
2003
|
type NlddProgressCircleSegmentIndicatorProps = {
|
|
2015
|
-
/** Share of the parent's total (default 0; <=0 hides segment) */
|
|
2016
|
-
'value'?: NLDDProgressCircleSegmentIndicator['value'];
|
|
2017
2004
|
/** Color (semantic or Rijkskleur). Default 'accent'. With more than one segment, give each a Rijkskleur (or success, warning and critical where they mean that): `accent` can turn near-black or match another segment in a theme, and `neutral` disappears against the track. */
|
|
2018
2005
|
'color'?: NLDDProgressCircleSegmentIndicator['color'];
|
|
2019
2006
|
/** Optional name used in the combined tooltip + screenreader text */
|
|
2020
2007
|
'name'?: NLDDProgressCircleSegmentIndicator['name'];
|
|
2008
|
+
/** Share of the parent's total (default 0; <=0 hides segment) */
|
|
2009
|
+
'value'?: NLDDProgressCircleSegmentIndicator['value'];
|
|
2021
2010
|
};
|
|
2022
2011
|
|
|
2023
2012
|
type NlddRadioButtonProps = {
|
|
2024
|
-
/**
|
|
2025
|
-
'
|
|
2013
|
+
/** 'content' draws the control in the color of the text around it, with the mark in the surface color (`--context-background-color`). A colored surface of your own sets that variable. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent. */
|
|
2014
|
+
'color'?: NLDDRadioButton['color'];
|
|
2015
|
+
/** Accessible label, set as aria-label on this element: it is the radio. */
|
|
2016
|
+
'accessible-label'?: NLDDRadioButton['accessibleLabel'];
|
|
2026
2017
|
/** Renders the shape only: no role, no focus, no name/value, nothing announced. For a control that owns the state elsewhere, such as a list row or an nldd-radio-button-field that is itself the radio; putting a second radio in there would nest a control inside a control. */
|
|
2027
2018
|
'decorative'?: true;
|
|
2028
|
-
/** Disabled state */
|
|
2029
|
-
'disabled'?: true;
|
|
2030
2019
|
/** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
|
|
2031
2020
|
'no-tab'?: true;
|
|
2032
|
-
/**
|
|
2033
|
-
'
|
|
2034
|
-
/**
|
|
2035
|
-
'
|
|
2021
|
+
/** Checked state */
|
|
2022
|
+
'checked'?: true;
|
|
2023
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. Note: aria-labelledby is not supported as IDREF resolution cannot cross shadow DOM boundaries. */
|
|
2024
|
+
'invalid'?: true;
|
|
2036
2025
|
/** Radio group name for form submission; ties the buttons of one group together */
|
|
2037
2026
|
'name'?: NLDDRadioButton['name'];
|
|
2038
2027
|
/** Value submitted with the form when this radio button is checked */
|
|
2039
2028
|
'value'?: NLDDRadioButton['value'];
|
|
2040
|
-
/**
|
|
2041
|
-
'
|
|
2042
|
-
/**
|
|
2043
|
-
'
|
|
2044
|
-
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. Note: aria-labelledby is not supported as IDREF resolution cannot cross shadow DOM boundaries. */
|
|
2045
|
-
'invalid'?: true;
|
|
2029
|
+
/** Required state. What it asks is whether anything in the group is checked, as a native radio does. */
|
|
2030
|
+
'required'?: true;
|
|
2031
|
+
/** Disabled state */
|
|
2032
|
+
'disabled'?: true;
|
|
2046
2033
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
2047
2034
|
'accessible-description'?: NLDDRadioButton['accessibleDescription'];
|
|
2048
2035
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
2049
|
-
'accessible-described-by'?: NLDDRadioButton['accessibleDescribedBy'];
|
|
2050
|
-
};
|
|
2051
|
-
|
|
2052
|
-
type NlddRadioButtonFieldProps = {
|
|
2053
|
-
/** Checked state */
|
|
2054
|
-
'checked'?: true;
|
|
2055
|
-
/** Disabled state */
|
|
2056
|
-
'disabled'?: true;
|
|
2057
|
-
/** Value for form submission */
|
|
2058
|
-
'value'?: NLDDRadioButtonField['value'];
|
|
2059
|
-
/** Radio group name for form submission; ties the fields of one group together. Set automatically by nldd-radio-button-group. */
|
|
2060
|
-
'name'?: NLDDRadioButtonField['name'];
|
|
2061
|
-
/** Required state. What it asks is whether anything in the group is checked, as a native radio does. Set automatically by nldd-radio-button-group. */
|
|
2062
|
-
'required'?: true;
|
|
2036
|
+
'accessible-described-by'?: NLDDRadioButton['accessibleDescribedBy'];
|
|
2037
|
+
};
|
|
2038
|
+
|
|
2039
|
+
type NlddRadioButtonFieldProps = {
|
|
2063
2040
|
/** 'content' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside. */
|
|
2064
2041
|
'color'?: NLDDRadioButtonField['color'];
|
|
2065
2042
|
/** Label text for the radio button */
|
|
2066
2043
|
'label'?: NLDDRadioButtonField['label'];
|
|
2044
|
+
/** Checked state */
|
|
2045
|
+
'checked'?: true;
|
|
2067
2046
|
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2068
2047
|
'invalid'?: true;
|
|
2048
|
+
/** Radio group name for form submission; ties the fields of one group together. Set automatically by nldd-radio-button-group. */
|
|
2049
|
+
'name'?: NLDDRadioButtonField['name'];
|
|
2050
|
+
/** Value for form submission */
|
|
2051
|
+
'value'?: NLDDRadioButtonField['value'];
|
|
2052
|
+
/** Required state. What it asks is whether anything in the group is checked, as a native radio does. Set automatically by nldd-radio-button-group. */
|
|
2053
|
+
'required'?: true;
|
|
2054
|
+
/** Disabled state */
|
|
2055
|
+
'disabled'?: true;
|
|
2069
2056
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
2070
2057
|
'accessible-description'?: NLDDRadioButtonField['accessibleDescription'];
|
|
2071
2058
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -2073,18 +2060,18 @@ type NlddRadioButtonFieldProps = {
|
|
|
2073
2060
|
};
|
|
2074
2061
|
|
|
2075
2062
|
type NlddRadioButtonGroupProps = {
|
|
2076
|
-
/** Forwarded to all slotted nldd-radio-button-field elements */
|
|
2077
|
-
'name'?: NLDDRadioButtonGroup['name'];
|
|
2078
|
-
/** Disables all slotted fields */
|
|
2079
|
-
'disabled'?: true;
|
|
2080
|
-
/** Marks the group as required */
|
|
2081
|
-
'required'?: true;
|
|
2082
2063
|
/** Accessible name for the group, set as aria-label on the group */
|
|
2083
2064
|
'accessible-label'?: NLDDRadioButtonGroup['accessibleLabel'];
|
|
2084
2065
|
/** Id of an external label element, set as aria-labelledby on the group */
|
|
2085
2066
|
'accessible-labeled-by'?: NLDDRadioButtonGroup['accessibleLabeledBy'];
|
|
2086
2067
|
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2087
2068
|
'invalid'?: true;
|
|
2069
|
+
/** Forwarded to all slotted nldd-radio-button-field elements */
|
|
2070
|
+
'name'?: NLDDRadioButtonGroup['name'];
|
|
2071
|
+
/** Marks the group as required */
|
|
2072
|
+
'required'?: true;
|
|
2073
|
+
/** Disables all slotted fields */
|
|
2074
|
+
'disabled'?: true;
|
|
2088
2075
|
};
|
|
2089
2076
|
|
|
2090
2077
|
type NlddReorderHandleCellProps = {
|
|
@@ -2101,10 +2088,10 @@ type NlddRichTextProps = {
|
|
|
2101
2088
|
'spacing'?: NLDDRichText['spacing'];
|
|
2102
2089
|
/** Centers the main column inside the container; without it, content is left-aligned */
|
|
2103
2090
|
'centered'?: true;
|
|
2104
|
-
/** Override translation keys; unset keys fall back to Dutch */
|
|
2105
|
-
'translations'?: NLDDRichText['translations'];
|
|
2106
2091
|
/** Opt-in automatic hyphenation for running text (p, li, dd). Needs a correct `lang` on the page (`lang="nl"` on `<html>`, for instance): without language information the browser does not hyphenate. An `overflow-wrap: break-word` safety net on headings, p and li is always on, independent of this attribute, so a word wider than the column breaks instead of overflowing. Headings are hyphenated regardless of this attribute, but only a word of at least 12 letters, as in `nldd-title`, so a short word moves to the next line whole. A soft hyphen (`­`) adds a place to break of your own. */
|
|
2107
2092
|
'hyphens'?: true;
|
|
2093
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
2094
|
+
'translations'?: NLDDRichText['translations'];
|
|
2108
2095
|
};
|
|
2109
2096
|
|
|
2110
2097
|
type NlddSearchFieldProps = {
|
|
@@ -2126,26 +2113,26 @@ type NlddSearchFieldProps = {
|
|
|
2126
2113
|
'shortcut-windows'?: NLDDSearchField['shortcutWindows'];
|
|
2127
2114
|
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
2128
2115
|
'shortcut-linux'?: NLDDSearchField['shortcutLinux'];
|
|
2129
|
-
/** Override translation keys; unset keys fall back to Dutch */
|
|
2130
|
-
'translations'?: NLDDSearchField['translations'];
|
|
2131
2116
|
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2132
2117
|
'invalid'?: true;
|
|
2133
|
-
/** Disabled state */
|
|
2134
|
-
'disabled'?: true;
|
|
2135
2118
|
/** Input name for form submission */
|
|
2136
2119
|
'name'?: NLDDSearchField['name'];
|
|
2137
2120
|
/** The search value */
|
|
2138
2121
|
'value'?: NLDDSearchField['value'];
|
|
2139
|
-
/** Required state */
|
|
2140
|
-
'required'?: true;
|
|
2141
2122
|
/** Fewest characters the value may have. */
|
|
2142
2123
|
'minlength'?: NLDDSearchField['minlength'];
|
|
2143
2124
|
/** Most characters the value may have. */
|
|
2144
2125
|
'maxlength'?: NLDDSearchField['maxlength'];
|
|
2145
2126
|
/** Regular expression the value has to match, as the native `pattern`. */
|
|
2146
2127
|
'pattern'?: NLDDSearchField['pattern'];
|
|
2128
|
+
/** Required state */
|
|
2129
|
+
'required'?: true;
|
|
2147
2130
|
/** Disables browser spellchecking on the inner input */
|
|
2148
2131
|
'no-spellcheck'?: true;
|
|
2132
|
+
/** Disabled state */
|
|
2133
|
+
'disabled'?: true;
|
|
2134
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
2135
|
+
'translations'?: NLDDSearchField['translations'];
|
|
2149
2136
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
2150
2137
|
'accessible-description'?: NLDDSearchField['accessibleDescription'];
|
|
2151
2138
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -2153,51 +2140,33 @@ type NlddSearchFieldProps = {
|
|
|
2153
2140
|
};
|
|
2154
2141
|
|
|
2155
2142
|
type NlddSegmentedControlProps = {
|
|
2156
|
-
/**
|
|
2157
|
-
'
|
|
2158
|
-
/** Marks the group as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2159
|
-
'invalid'?: true;
|
|
2160
|
-
/** Selected value for radio type */
|
|
2161
|
-
'value'?: NLDDSegmentedControl['value'];
|
|
2143
|
+
/** Content type for all items: 'text' | 'icon' | 'icon-and-text' (default: 'text') */
|
|
2144
|
+
'variant'?: NLDDSegmentedControl['variant'];
|
|
2162
2145
|
/** Visual style, color included: 'neutral-tinted' | 'neutral-base' (default: 'neutral-tinted'). neutral-base is for a tinted surface. For a quiet row without a track, use nldd-toggle-button-group with type="radio" and a transparent appearance. */
|
|
2163
2146
|
'appearance'?: NLDDSegmentedControl['appearance'];
|
|
2164
2147
|
/** Control size: 'sm' | 'md' | 'lg' (default: 'md') */
|
|
2165
2148
|
'size'?: NLDDSegmentedControl['size'];
|
|
2166
|
-
/** Selection mode: 'radio' | 'checkbox' (default: 'radio'). */
|
|
2167
|
-
'type'?: NLDDSegmentedControl['type'];
|
|
2168
|
-
/** Content type for all items: 'text' | 'icon' | 'icon-and-text' (default: 'text') */
|
|
2169
|
-
'variant'?: NLDDSegmentedControl['variant'];
|
|
2170
|
-
/** Disabled state for all items */
|
|
2171
|
-
'disabled'?: true;
|
|
2172
2149
|
/** Width mode: 'full' (stretches to container), 'fit-content' (per-item content size), or any CSS length (e.g. '240px') */
|
|
2173
2150
|
'width'?: NLDDSegmentedControl['width'];
|
|
2174
|
-
/** Name for form submission */
|
|
2175
|
-
'name'?: NLDDSegmentedControl['name'];
|
|
2176
2151
|
/** Accessible name for the group, set as aria-label */
|
|
2177
2152
|
'accessible-label'?: NLDDSegmentedControl['accessibleLabel'];
|
|
2178
2153
|
/** Id of an external label element, set as aria-labelledby on the group */
|
|
2179
2154
|
'accessible-labeled-by'?: NLDDSegmentedControl['accessibleLabeledBy'];
|
|
2155
|
+
/** Marks the group as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2156
|
+
'invalid'?: true;
|
|
2157
|
+
/** Name for form submission */
|
|
2158
|
+
'name'?: NLDDSegmentedControl['name'];
|
|
2159
|
+
/** Selected value for radio type */
|
|
2160
|
+
'value'?: NLDDSegmentedControl['value'];
|
|
2161
|
+
/** Selection mode: 'radio' | 'checkbox' (default: 'radio'). */
|
|
2162
|
+
'type'?: NLDDSegmentedControl['type'];
|
|
2163
|
+
/** Marks the group as required. Enforced in radio mode; in checkbox mode only announced. */
|
|
2164
|
+
'required'?: true;
|
|
2165
|
+
/** Disabled state for all items */
|
|
2166
|
+
'disabled'?: true;
|
|
2180
2167
|
};
|
|
2181
2168
|
|
|
2182
2169
|
type NlddSegmentedControlItemProps = {
|
|
2183
|
-
/** Required state of the native checkbox. In radio mode the group carries the constraint. */
|
|
2184
|
-
'required'?: true;
|
|
2185
|
-
/** Value for this item */
|
|
2186
|
-
'value'?: NLDDSegmentedControlItem['value'];
|
|
2187
|
-
/** Whether this item is selected (set by parent) */
|
|
2188
|
-
'selected'?: true;
|
|
2189
|
-
/** Disabled state */
|
|
2190
|
-
'disabled'?: true;
|
|
2191
|
-
/** Visual style: 'neutral-tinted' | 'neutral-base' (default: 'neutral-tinted'). Set by nldd-segmented-control. */
|
|
2192
|
-
'appearance'?: NLDDSegmentedControlItem['appearance'];
|
|
2193
|
-
/** Control size: 'sm' | 'md' | 'lg' (default: 'md'). Set by nldd-segmented-control. */
|
|
2194
|
-
'size'?: NLDDSegmentedControlItem['size'];
|
|
2195
|
-
/** Content type: 'text' | 'icon' | 'icon-and-text' (default: 'text'). Set by nldd-segmented-control. */
|
|
2196
|
-
'variant'?: NLDDSegmentedControlItem['variant'];
|
|
2197
|
-
/** Selection mode: 'radio' | 'checkbox' (default: 'radio'). In radio mode the item is the radio itself, in checkbox mode it renders a native checkbox. Set by nldd-segmented-control. */
|
|
2198
|
-
'input-type'?: NLDDSegmentedControlItem['inputType'];
|
|
2199
|
-
/** Name of the group for form submission, put on the native checkbox. Set by nldd-segmented-control. */
|
|
2200
|
-
'group-name'?: NLDDSegmentedControlItem['groupName'];
|
|
2201
2170
|
/** Text label (shown for variant "text" and "icon-and-text"; used as aria-label and tooltip for variant "icon") */
|
|
2202
2171
|
'text'?: NLDDSegmentedControlItem['text'];
|
|
2203
2172
|
/** Icon name for nldd-icon */
|
|
@@ -2210,6 +2179,14 @@ type NlddSegmentedControlItemProps = {
|
|
|
2210
2179
|
'shortcut-windows'?: NLDDSegmentedControlItem['shortcutWindows'];
|
|
2211
2180
|
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
2212
2181
|
'shortcut-linux'?: NLDDSegmentedControlItem['shortcutLinux'];
|
|
2182
|
+
/** Whether this item is selected (set by parent) */
|
|
2183
|
+
'selected'?: true;
|
|
2184
|
+
/** Value for this item */
|
|
2185
|
+
'value'?: NLDDSegmentedControlItem['value'];
|
|
2186
|
+
/** Required state of the native checkbox. In radio mode the group carries the constraint. */
|
|
2187
|
+
'required'?: true;
|
|
2188
|
+
/** Disabled state */
|
|
2189
|
+
'disabled'?: true;
|
|
2213
2190
|
};
|
|
2214
2191
|
|
|
2215
2192
|
type NlddSheetProps = {
|
|
@@ -2240,18 +2217,18 @@ type NlddSideBySideSplitViewProps = {
|
|
|
2240
2217
|
type NlddSidebarSectionProps = {
|
|
2241
2218
|
/** Body max-width: 'full' removes the constraint; any CSS length overrides the default. */
|
|
2242
2219
|
'width'?: NLDDSidebarSection['width'];
|
|
2243
|
-
/** Accessible name for the sidebar (the aside landmark on lg and the sheet on sm/md). Default 'Zijbalk'. */
|
|
2244
|
-
'sidebar-label'?: NLDDSidebarSection['sidebarLabel'];
|
|
2245
|
-
/** Override translation keys (sheet title fallback, dismiss label); unset keys fall back to Dutch. */
|
|
2246
|
-
'translations'?: NLDDSidebarSection['translations'];
|
|
2247
|
-
/** Opt out of the sheet: a narrow section stacks the sidebar above the main instead of collapsing. `collapsed` then stays false. */
|
|
2248
|
-
'no-collapse'?: true;
|
|
2249
2220
|
/** Sticky top inset on lg (CSS length; default = 16px). */
|
|
2250
2221
|
'sticky-top'?: NLDDSidebarSection['stickyTop'];
|
|
2251
2222
|
/** Sticky bottom inset on lg (CSS length; default = 16px). */
|
|
2252
2223
|
'sticky-bottom'?: NLDDSidebarSection['stickyBottom'];
|
|
2224
|
+
/** Accessible name for the sidebar (the aside landmark on lg and the sheet on sm/md). Default 'Zijbalk'. */
|
|
2225
|
+
'sidebar-label'?: NLDDSidebarSection['sidebarLabel'];
|
|
2226
|
+
/** Opt out of the sheet: a narrow section stacks the sidebar above the main instead of collapsing. `collapsed` then stays false. */
|
|
2227
|
+
'no-collapse'?: true;
|
|
2253
2228
|
/** Read-only, reflected: true while the sidebar is a sheet (the section is narrower than lg). Target it via CSS to reveal sheet-only chrome. */
|
|
2254
2229
|
'collapsed'?: true;
|
|
2230
|
+
/** Override translation keys (sheet title fallback, dismiss label); unset keys fall back to Dutch. */
|
|
2231
|
+
'translations'?: NLDDSidebarSection['translations'];
|
|
2255
2232
|
'background'?: NLDDSidebarSection['background'];
|
|
2256
2233
|
'height'?: NLDDSidebarSection['height'];
|
|
2257
2234
|
/** Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow. */
|
|
@@ -2332,22 +2309,18 @@ type NlddSkipLinkProps = {
|
|
|
2332
2309
|
type NlddSliderProps = {
|
|
2333
2310
|
/** Slider size: 'xs' | 'sm' | 'md' (default: 'md'), with the height of the other controls of that size. Set automatically by nldd-form-field. */
|
|
2334
2311
|
'size'?: NLDDSlider['size'];
|
|
2335
|
-
/** Picks a range, with a thumb for each end: `start-value` and `end-value` in place of `value` */
|
|
2336
|
-
'range'?: true;
|
|
2337
|
-
/** Counts drawn as bars above the track, one per bucket of (max - min) / n, comma- or space-separated; as a property, an array of numbers. The bars within the chosen value or range are colored. */
|
|
2338
|
-
'histogram'?: NLDDSlider['histogram'];
|
|
2339
2312
|
/** Icon at the start of the track, such as a quiet speaker for a volume. A click on it moves the value a tenth of the range down (not in a range). */
|
|
2340
2313
|
'start-icon'?: NLDDSlider['startIcon'];
|
|
2341
2314
|
/** Icon at the end of the track. A click on it moves the value a tenth of the range up (not in a range). */
|
|
2342
2315
|
'end-icon'?: NLDDSlider['endIcon'];
|
|
2343
2316
|
/** Accessible name; a range adds "minimum" and "maximum" to it for its thumbs. Set automatically by nldd-form-field. */
|
|
2344
2317
|
'accessible-label'?: NLDDSlider['accessibleLabel'];
|
|
2318
|
+
/** Counts drawn as bars above the track, one per bucket of (max - min) / n, comma- or space-separated; as a property, an array of numbers. The bars within the chosen value or range are colored. */
|
|
2319
|
+
'histogram'?: NLDDSlider['histogram'];
|
|
2345
2320
|
/** When the value shows above the thumb: 'instant' (the default: on hover, keyboard focus and while dragging) or 'never', for a slider whose value shows elsewhere, such as in fields above it */
|
|
2346
2321
|
'tooltip-timing'?: NLDDSlider['tooltipTiming'];
|
|
2347
2322
|
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2348
2323
|
'invalid'?: true;
|
|
2349
|
-
/** Disabled state */
|
|
2350
|
-
'disabled'?: true;
|
|
2351
2324
|
/** Name for form submission */
|
|
2352
2325
|
'name'?: NLDDSlider['name'];
|
|
2353
2326
|
/** The value (default: the middle between min and max) */
|
|
@@ -2356,12 +2329,16 @@ type NlddSliderProps = {
|
|
|
2356
2329
|
'start-value'?: NLDDSlider['startValue'];
|
|
2357
2330
|
/** The end of a range (default: max) */
|
|
2358
2331
|
'end-value'?: NLDDSlider['endValue'];
|
|
2332
|
+
/** Picks a range, with a thumb for each end: `start-value` and `end-value` in place of `value` */
|
|
2333
|
+
'range'?: true;
|
|
2359
2334
|
/** Smallest value (default: 0) */
|
|
2360
2335
|
'min'?: NLDDSlider['min'];
|
|
2361
2336
|
/** Largest value (default: 100) */
|
|
2362
2337
|
'max'?: NLDDSlider['max'];
|
|
2363
2338
|
/** Step between values (default: 1) */
|
|
2364
2339
|
'step'?: NLDDSlider['step'];
|
|
2340
|
+
/** Disabled state */
|
|
2341
|
+
'disabled'?: true;
|
|
2365
2342
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
2366
2343
|
'translations'?: NLDDSlider['translations'];
|
|
2367
2344
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
@@ -2395,30 +2372,20 @@ type NlddSpacerCellProps = {
|
|
|
2395
2372
|
};
|
|
2396
2373
|
|
|
2397
2374
|
type NlddSplitButtonProps = {
|
|
2398
|
-
/** Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md') */
|
|
2399
|
-
'size'?: NLDDSplitButton['size'];
|
|
2400
2375
|
/** Visual style: 'primary' | 'secondary' | 'accent-filled' | 'neutral-tinted' (default) | 'neutral-base' | 'content-filled' | 'content-tinted'. 'primary' is 'accent-filled' and 'secondary' is 'neutral-tinted'. The content appearances are for a colored surface and take their colors from --context-content-color. There are no transparent appearances: the split button needs a surface of its own to show it is one control. */
|
|
2401
2376
|
'appearance'?: NLDDSplitButton['appearance'];
|
|
2402
|
-
/**
|
|
2403
|
-
'
|
|
2404
|
-
/** Loading state of the main action, as on nldd-button. The chevron stays available. */
|
|
2405
|
-
'loading'?: true;
|
|
2406
|
-
/** What the screen reader announces while `loading` is on, as on nldd-button. */
|
|
2407
|
-
'loading-text'?: NLDDSplitButton['loadingText'];
|
|
2377
|
+
/** Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md') */
|
|
2378
|
+
'size'?: NLDDSplitButton['size'];
|
|
2408
2379
|
/** Width mode: 'full' (stretches to container) or any CSS length; the main action button fills the available space */
|
|
2409
2380
|
'width'?: NLDDSplitButton['width'];
|
|
2410
2381
|
/** Button text for the primary action */
|
|
2411
2382
|
'text'?: NLDDSplitButton['text'];
|
|
2412
2383
|
/** Icon name shown before the text on the primary action button */
|
|
2413
2384
|
'icon'?: NLDDSplitButton['icon'];
|
|
2414
|
-
/** What the main action does in a form: 'button' (default) | 'submit' | 'reset'. Ignored when `href` is set. */
|
|
2415
|
-
'type'?: NLDDSplitButton['type'];
|
|
2416
|
-
/** Turns the main action into a link, as on nldd-button. */
|
|
2417
|
-
'href'?: NLDDSplitButton['href'];
|
|
2418
|
-
/** Saves the file `href` points at instead of opening it, as on nldd-button. Only used with `href`. */
|
|
2419
|
-
'download'?: NLDDSplitButton['download'];
|
|
2420
2385
|
/** ID of an `nldd-menu` or `nldd-popover` elsewhere in this tree that the chevron opens, for an overlay that cannot be a child. A slotted overlay wins. */
|
|
2421
2386
|
'popovertarget'?: NLDDSplitButton['popovertarget'];
|
|
2387
|
+
/** What the screen reader announces while `loading` is on, as on nldd-button. */
|
|
2388
|
+
'loading-text'?: NLDDSplitButton['loadingText'];
|
|
2422
2389
|
/** Keyboard shortcut hint for the primary action, shown right after its text, e.g. 'Cmd+S'. Forwarded to the inner nldd-button; display only, wire up the handling in your app. */
|
|
2423
2390
|
'shortcut'?: NLDDSplitButton['shortcut'];
|
|
2424
2391
|
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
@@ -2427,6 +2394,16 @@ type NlddSplitButtonProps = {
|
|
|
2427
2394
|
'shortcut-windows'?: NLDDSplitButton['shortcutWindows'];
|
|
2428
2395
|
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
2429
2396
|
'shortcut-linux'?: NLDDSplitButton['shortcutLinux'];
|
|
2397
|
+
/** Loading state of the main action, as on nldd-button. The chevron stays available. */
|
|
2398
|
+
'loading'?: true;
|
|
2399
|
+
/** What the main action does in a form: 'button' (default) | 'submit' | 'reset'. Ignored when `href` is set. */
|
|
2400
|
+
'type'?: NLDDSplitButton['type'];
|
|
2401
|
+
/** Turns the main action into a link, as on nldd-button. */
|
|
2402
|
+
'href'?: NLDDSplitButton['href'];
|
|
2403
|
+
/** Saves the file `href` points at instead of opening it, as on nldd-button. Only used with `href`. */
|
|
2404
|
+
'download'?: NLDDSplitButton['download'];
|
|
2405
|
+
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
2406
|
+
'disabled'?: true;
|
|
2430
2407
|
/** Translations; unset keys fall back to Dutch */
|
|
2431
2408
|
'translations'?: NLDDSplitButton['translations'];
|
|
2432
2409
|
/** Id of the form the main action submits or resets, for a split button outside it. Takes an `nldd-form` as well as a plain `<form>`, as on nldd-button. */
|
|
@@ -2440,15 +2417,6 @@ type NlddSplitViewDividerProps = {
|
|
|
2440
2417
|
'has-drag-handle'?: true;
|
|
2441
2418
|
};
|
|
2442
2419
|
|
|
2443
|
-
type NlddSplitViewPaneProps = {
|
|
2444
|
-
/** Use a tinted background color (cascades to descendants) */
|
|
2445
|
-
'background'?: NLDDSplitViewPane['background'];
|
|
2446
|
-
/** Hide the back button (set automatically by the split view) */
|
|
2447
|
-
'hide-back'?: true;
|
|
2448
|
-
/** The pane has content (default: false) */
|
|
2449
|
-
'has-content'?: true;
|
|
2450
|
-
};
|
|
2451
|
-
|
|
2452
2420
|
type NlddStackedSplitViewProps = {
|
|
2453
2421
|
/** Use a tinted background color (cascades to descendants) */
|
|
2454
2422
|
'background'?: NLDDStackedSplitView['background'];
|
|
@@ -2461,14 +2429,14 @@ type NlddStatusBarProps = {
|
|
|
2461
2429
|
'variant'?: NLDDStatusBar['variant'];
|
|
2462
2430
|
/** The status text (one line; truncated with an ellipsis) */
|
|
2463
2431
|
'text'?: NLDDStatusBar['text'];
|
|
2432
|
+
/** Makes the whole bar a button; ignored when href is set */
|
|
2433
|
+
'button'?: true;
|
|
2464
2434
|
/** Makes the whole bar a link (renders an <a>) */
|
|
2465
2435
|
'href'?: NLDDStatusBar['href'];
|
|
2466
2436
|
/** Link target (e.g. '_blank'); only used with href */
|
|
2467
2437
|
'target'?: NLDDStatusBar['target'];
|
|
2468
2438
|
/** Link rel, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
2469
2439
|
'rel'?: NLDDStatusBar['rel'];
|
|
2470
|
-
/** Makes the whole bar a button; ignored when href is set */
|
|
2471
|
-
'button'?: true;
|
|
2472
2440
|
};
|
|
2473
2441
|
|
|
2474
2442
|
type NlddStepBarProps = {
|
|
@@ -2479,16 +2447,16 @@ type NlddStepBarProps = {
|
|
|
2479
2447
|
};
|
|
2480
2448
|
|
|
2481
2449
|
type NlddStepBarItemProps = {
|
|
2482
|
-
/** How far along this step is. `current` marks the step you are on (`aria-current="step"`) and the parent derives the others from it: with none marked step
|
|
2450
|
+
/** How far along this step is. `current` marks the step you are on (`aria-current="step"`) and the parent derives the others from it: with none marked every step is still to do, with more than one the last wins. `past` and `future` override what is derived for this step only */
|
|
2483
2451
|
'status'?: NLDDStepBarItem['status'];
|
|
2484
2452
|
/** Label under the disc. Content in the default slot wins. */
|
|
2485
2453
|
'text'?: NLDDStepBarItem['text'];
|
|
2486
2454
|
/** Icon in the disc instead of the number or the check mark */
|
|
2487
2455
|
'icon'?: NLDDStepBarItem['icon'];
|
|
2488
|
-
/** Makes the step a link (back to a completed step, for instance) */
|
|
2489
|
-
'href'?: NLDDStepBarItem['href'];
|
|
2490
2456
|
/** Makes the step a button, for flows without a URL per step; ignored when `href` is set */
|
|
2491
2457
|
'button'?: true;
|
|
2458
|
+
/** Makes the step a link (back to a completed step, for instance) */
|
|
2459
|
+
'href'?: NLDDStepBarItem['href'];
|
|
2492
2460
|
};
|
|
2493
2461
|
|
|
2494
2462
|
type NlddStepCellProps = {
|
|
@@ -2498,16 +2466,16 @@ type NlddStepCellProps = {
|
|
|
2498
2466
|
'status'?: NLDDStepCell['status'];
|
|
2499
2467
|
/** How wide the lane is and so how big the dot: `sm` (default, 16px) for steps without a number, `md` (24px) where a number or an icon has to fit. Every row in one list takes the same size, or the track jumps */
|
|
2500
2468
|
'size'?: NLDDStepCell['size'];
|
|
2469
|
+
/** Which halves of the track you have covered, when `status` and `direction` get it wrong (default 'auto', which is what those two say). The halves you name are drawn as covered and the other one as still ahead, so `none` covers neither. Which halves are drawn at all stays with `position`, except that naming a half draws it: `line="both"` on a `first` row draws one above too. A row that opens a group of its own is the case for `both`, since the going carries on below it. A `level="none"` row has one line rather than two halves, and no point where a fill could change over, so there the status colors the whole of it and `line` overrules the whole of it. On a `current` row that leans the way the timeline runs: what belongs to a point usually comes after it, so going `down` the stretch reads as still ahead and going `up` as behind you */
|
|
2470
|
+
'line'?: NLDDStepCell['line'];
|
|
2501
2471
|
/** Where the dot stands in the row (default 'center'). `top` puts it against the row's top padding and `bottom` against its bottom padding, as a whole dot would stand, so a `minor` dot lines up with a `major` one. To line it up with what stands beside it, such as the first line of a text cell or a title, use `marker-offset`. The track runs to the middle of the dot either way, so consecutive rows still connect */
|
|
2502
2472
|
'vertical-alignment'?: NLDDStepCell['verticalAlignment'];
|
|
2503
|
-
/** How far below the top of the row's content the middle of the dot stands, as a CSS length or a percentage of the content's height: `0%` is its top, `50%` its middle and `100%` its bottom. For a row whose first line is not as high as a whole dot, such as a large title beside it: half the height of that line puts the dot beside it. Measured after the row's padding, so it stays right when `size` changes that padding. Prefer `rem` over `px`, so the dot moves along when someone sets a larger font size in the browser. Wins over `vertical-alignment`; an invalid value falls back to it and says so in development */
|
|
2504
|
-
'marker-offset'?: NLDDStepCell['markerOffset'];
|
|
2505
2473
|
/** The direction the timeline moves forward in: `down` (default) puts the past above, `up` below. Only the current step has half a track, so this only has an effect there */
|
|
2506
2474
|
'direction'?: NLDDStepCell['direction'];
|
|
2475
|
+
/** How far below the top of the row's content the middle of the dot stands, as a CSS length or a percentage of the content's height: `0%` is its top, `50%` its middle and `100%` its bottom. For a row whose first line is not as high as a whole dot, such as a large title beside it: half the height of that line puts the dot beside it. Measured after the row's padding, so it stays right when `size` changes that padding. Prefer `rem` over `px`, so the dot moves along when someone sets a larger font size in the browser. Wins over `vertical-alignment`; an invalid value falls back to it and says so in development */
|
|
2476
|
+
'marker-offset'?: NLDDStepCell['markerOffset'];
|
|
2507
2477
|
/** Place of the row in the list as it stands on screen (default 'between'): decides whether the line continues above the dot, below it, or on both sides. `first` is the top row and only has a line below, `last` the bottom row and only has a line above, also with `direction="up"`: position is about where the row stands, `direction` about which way time runs. `only` is the single row in the series and gets a line on neither side: a track of one dot leads nowhere. On a `level="none"` row, which is nothing but line, `only` leaves it out altogether: the track ends above it */
|
|
2508
2478
|
'position'?: NLDDStepCell['position'];
|
|
2509
|
-
/** Which halves of the track you have covered, when `status` and `direction` get it wrong (default 'auto', which is what those two say). The halves you name are drawn as covered and the other one as still ahead, so `none` covers neither. Which halves are drawn at all stays with `position`, except that naming a half draws it: `line="both"` on a `first` row draws one above too. A row that opens a group of its own is the case for `both`, since the going carries on below it. A `level="none"` row has one line rather than two halves, and no point where a fill could change over, so there the status colors the whole of it and `line` overrules the whole of it. On a `current` row that leans the way the timeline runs: what belongs to a point usually comes after it, so going `down` the stretch reads as still ahead and going `up` as behind you */
|
|
2510
|
-
'line'?: NLDDStepCell['line'];
|
|
2511
2479
|
/** Number or short text in the dot */
|
|
2512
2480
|
'text'?: NLDDStepCell['text'];
|
|
2513
2481
|
/** Icon name in the dot; wins over `text` */
|
|
@@ -2521,6 +2489,14 @@ type NlddStepCellProps = {
|
|
|
2521
2489
|
};
|
|
2522
2490
|
|
|
2523
2491
|
type NlddStepperProps = {
|
|
2492
|
+
/** Size: 'xs' | 'sm' | 'md' (default: 'md') */
|
|
2493
|
+
'size'?: NLDDStepper['size'];
|
|
2494
|
+
/** Accessible name for the spinbutton; falls back to a generic label */
|
|
2495
|
+
'accessible-label'?: NLDDStepper['accessibleLabel'];
|
|
2496
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2497
|
+
'invalid'?: true;
|
|
2498
|
+
/** Name for form submission; the value is submitted under this name */
|
|
2499
|
+
'name'?: NLDDStepper['name'];
|
|
2524
2500
|
/** Current value */
|
|
2525
2501
|
'value'?: NLDDStepper['value'];
|
|
2526
2502
|
/** Minimum value (default: 0) */
|
|
@@ -2531,16 +2507,8 @@ type NlddStepperProps = {
|
|
|
2531
2507
|
'step'?: NLDDStepper['step'];
|
|
2532
2508
|
/** Disabled state */
|
|
2533
2509
|
'disabled'?: true;
|
|
2534
|
-
/** Size: 'xs' | 'sm' | 'md' (default: 'md') */
|
|
2535
|
-
'size'?: NLDDStepper['size'];
|
|
2536
|
-
/** Name for form submission; the value is submitted under this name */
|
|
2537
|
-
'name'?: NLDDStepper['name'];
|
|
2538
|
-
/** Accessible name for the spinbutton; falls back to a generic label */
|
|
2539
|
-
'accessible-label'?: NLDDStepper['accessibleLabel'];
|
|
2540
2510
|
/** Translations; unspecified keys fall back to Dutch */
|
|
2541
2511
|
'translations'?: NLDDStepper['translations'];
|
|
2542
|
-
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2543
|
-
'invalid'?: true;
|
|
2544
2512
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
2545
2513
|
'accessible-description'?: NLDDStepper['accessibleDescription'];
|
|
2546
2514
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -2556,14 +2524,14 @@ type NlddSwatchPickerProps = {
|
|
|
2556
2524
|
'accessible-labeled-by'?: NLDDSwatchPicker['accessibleLabeledBy'];
|
|
2557
2525
|
/** Marks the group as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2558
2526
|
'invalid'?: true;
|
|
2559
|
-
/** Disabled state for all swatches */
|
|
2560
|
-
'disabled'?: true;
|
|
2561
2527
|
/** Name for form submission */
|
|
2562
2528
|
'name'?: NLDDSwatchPicker['name'];
|
|
2563
2529
|
/** Value of the chosen swatch */
|
|
2564
2530
|
'value'?: NLDDSwatchPicker['value'];
|
|
2565
2531
|
/** Something has to be chosen */
|
|
2566
2532
|
'required'?: true;
|
|
2533
|
+
/** Disabled state for all swatches */
|
|
2534
|
+
'disabled'?: true;
|
|
2567
2535
|
};
|
|
2568
2536
|
|
|
2569
2537
|
type NlddSwatchPickerItemProps = {
|
|
@@ -2571,45 +2539,43 @@ type NlddSwatchPickerItemProps = {
|
|
|
2571
2539
|
'color'?: NLDDSwatchPickerItem['color'];
|
|
2572
2540
|
/** Any CSS color of your own (e.g. '#7a1f3d' or 'var(--brand-color)'), for a color outside the categories. Needs `text`. */
|
|
2573
2541
|
'custom-color'?: NLDDSwatchPickerItem['customColor'];
|
|
2542
|
+
/** Name of the swatch, for screen readers and the tooltip. Overrides the name of a category `color`. */
|
|
2543
|
+
'text'?: NLDDSwatchPickerItem['text'];
|
|
2574
2544
|
/** URL of an image that fills the swatch, for a pattern or a material. Needs `text`. */
|
|
2575
2545
|
'image'?: NLDDSwatchPickerItem['image'];
|
|
2576
2546
|
/** Sources of the image at other pixel densities, with x descriptors (e.g. '/oak.jpg 1x, /oak@2x.jpg 2x'). The swatch has a fixed size, so there are no widths to choose from. */
|
|
2577
2547
|
'image-srcset'?: NLDDSwatchPickerItem['imageSrcset'];
|
|
2578
|
-
/** Name of the swatch, for screen readers and the tooltip. Overrides the name of a category `color`. */
|
|
2579
|
-
'text'?: NLDDSwatchPickerItem['text'];
|
|
2580
2548
|
/** Whether this swatch is chosen (set by the picker) */
|
|
2581
2549
|
'selected'?: true;
|
|
2582
|
-
/** Disabled state */
|
|
2583
|
-
'disabled'?: true;
|
|
2584
2550
|
/** Value for this swatch */
|
|
2585
2551
|
'value'?: NLDDSwatchPickerItem['value'];
|
|
2586
|
-
/**
|
|
2587
|
-
'
|
|
2552
|
+
/** Disabled state */
|
|
2553
|
+
'disabled'?: true;
|
|
2588
2554
|
/** Override translation keys (the names of the category colors); unset keys fall back to Dutch. */
|
|
2589
2555
|
'translations'?: NLDDSwatchPickerItem['translations'];
|
|
2590
2556
|
};
|
|
2591
2557
|
|
|
2592
2558
|
type NlddSwitchProps = {
|
|
2593
|
-
/** Name for form submission; nothing is submitted when the switch is off */
|
|
2594
|
-
'name'?: NLDDSwitch['name'];
|
|
2595
|
-
/** Whether the switch is on/off */
|
|
2596
|
-
'checked'?: true;
|
|
2597
|
-
/** Disabled state */
|
|
2598
|
-
'disabled'?: true;
|
|
2599
|
-
/** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
|
|
2600
|
-
'no-tab'?: true;
|
|
2601
|
-
/** Switch size: 'xs' | 'sm' (default: 'sm') */
|
|
2602
|
-
'size'?: NLDDSwitch['size'];
|
|
2603
2559
|
/** 'content' draws the control in the color of the text around it, with the mark in the surface color (`--context-background-color`). A colored surface of your own sets that variable. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent. */
|
|
2604
2560
|
'color'?: NLDDSwitch['color'];
|
|
2561
|
+
/** Switch size: 'xs' | 'sm' (default: 'sm') */
|
|
2562
|
+
'size'?: NLDDSwitch['size'];
|
|
2605
2563
|
/** Accessible label forwarded as aria-label to the native input. Required when using nldd-switch without nldd-switch-field. */
|
|
2606
2564
|
'accessible-label'?: NLDDSwitch['accessibleLabel'];
|
|
2565
|
+
/** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
|
|
2566
|
+
'no-tab'?: true;
|
|
2567
|
+
/** Whether the switch is on/off */
|
|
2568
|
+
'checked'?: true;
|
|
2569
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2570
|
+
'invalid'?: true;
|
|
2571
|
+
/** Name for form submission; nothing is submitted when the switch is off */
|
|
2572
|
+
'name'?: NLDDSwitch['name'];
|
|
2607
2573
|
/** Value submitted with the form when the switch is on (default: 'on') */
|
|
2608
2574
|
'value'?: NLDDSwitch['value'];
|
|
2609
2575
|
/** Required state */
|
|
2610
2576
|
'required'?: true;
|
|
2611
|
-
/**
|
|
2612
|
-
'
|
|
2577
|
+
/** Disabled state */
|
|
2578
|
+
'disabled'?: true;
|
|
2613
2579
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
2614
2580
|
'accessible-description'?: NLDDSwitch['accessibleDescription'];
|
|
2615
2581
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -2617,22 +2583,22 @@ type NlddSwitchProps = {
|
|
|
2617
2583
|
};
|
|
2618
2584
|
|
|
2619
2585
|
type NlddSwitchFieldProps = {
|
|
2620
|
-
/** Checked state */
|
|
2621
|
-
'checked'?: true;
|
|
2622
|
-
/** Disabled state */
|
|
2623
|
-
'disabled'?: true;
|
|
2624
|
-
/** Value for form submission */
|
|
2625
|
-
'value'?: NLDDSwitchField['value'];
|
|
2626
|
-
/** Name for form submission */
|
|
2627
|
-
'name'?: NLDDSwitchField['name'];
|
|
2628
2586
|
/** 'content' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside. */
|
|
2629
2587
|
'color'?: NLDDSwitchField['color'];
|
|
2630
2588
|
/** Label text for the switch */
|
|
2631
2589
|
'label'?: NLDDSwitchField['label'];
|
|
2632
|
-
/**
|
|
2633
|
-
'
|
|
2590
|
+
/** Checked state */
|
|
2591
|
+
'checked'?: true;
|
|
2634
2592
|
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2635
2593
|
'invalid'?: true;
|
|
2594
|
+
/** Name for form submission */
|
|
2595
|
+
'name'?: NLDDSwitchField['name'];
|
|
2596
|
+
/** Value for form submission */
|
|
2597
|
+
'value'?: NLDDSwitchField['value'];
|
|
2598
|
+
/** Required state */
|
|
2599
|
+
'required'?: true;
|
|
2600
|
+
/** Disabled state */
|
|
2601
|
+
'disabled'?: true;
|
|
2636
2602
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
2637
2603
|
'accessible-description'?: NLDDSwitchField['accessibleDescription'];
|
|
2638
2604
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -2640,35 +2606,35 @@ type NlddSwitchFieldProps = {
|
|
|
2640
2606
|
};
|
|
2641
2607
|
|
|
2642
2608
|
type NlddTabBarProps = {
|
|
2643
|
-
/** Centers the tabs in the container (host fills the row, tabs group in the middle) */
|
|
2644
|
-
'centered'?: true;
|
|
2645
2609
|
/** Visual mode: 'icon-and-text' | 'text' | 'icon'. When unset, the variant is inferred from each item's content. Drives the layout at every size. */
|
|
2646
2610
|
'variant'?: NLDDTabBar['variant'];
|
|
2647
2611
|
/** Size: 'md' | 'lg' (default: 'md'). 'lg' enlarges the touch target; the per-variant layout is preserved (icon-and-text stacks the icon over the text, text renders large text, icon renders a larger icon-only control). */
|
|
2648
2612
|
'size'?: NLDDTabBar['size'];
|
|
2613
|
+
/** Centers the tabs in the container (host fills the row, tabs group in the middle) */
|
|
2614
|
+
'centered'?: true;
|
|
2649
2615
|
/** Renders a nav landmark instead of tablist; use for href-based items that navigate between routes */
|
|
2650
2616
|
'navigation'?: true;
|
|
2651
|
-
/** Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order. Avoid it where you can; the design guidelines say why. */
|
|
2652
|
-
'disabled'?: true;
|
|
2653
2617
|
/** Accessible name for the navigation region; defaults to 'Tabs' */
|
|
2654
2618
|
'accessible-label'?: NLDDTabBar['accessibleLabel'];
|
|
2619
|
+
/** Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order. Avoid it where you can; the design guidelines say why. */
|
|
2620
|
+
'disabled'?: true;
|
|
2655
2621
|
/** Override translation keys (e.g. the overflow button label); unset keys fall back to Dutch. */
|
|
2656
2622
|
'translations'?: NLDDTabBar['translations'];
|
|
2657
2623
|
};
|
|
2658
2624
|
|
|
2659
2625
|
type NlddTabBarItemProps = {
|
|
2660
|
-
/**
|
|
2661
|
-
'
|
|
2662
|
-
/** Optional link URL; renders an anchor instead of a button */
|
|
2663
|
-
'href'?: NLDDTabBarItem['href'];
|
|
2626
|
+
/** Size: 'md' (default) | 'lg'. Set by nldd-tab-bar from its own size; 'lg' enlarges the touch target while keeping the variant layout. */
|
|
2627
|
+
'size'?: NLDDTabBarItem['size'];
|
|
2664
2628
|
/** Tab text; also used as accessible name for icon-only items */
|
|
2665
2629
|
'text'?: NLDDTabBarItem['text'];
|
|
2666
2630
|
/** Icon name for nldd-icon; an icon in the icon slot wins. The icon and icon-and-text variants fall back to a placeholder icon when neither is provided. */
|
|
2667
2631
|
'icon'?: NLDDTabBarItem['icon'];
|
|
2668
2632
|
/** Id of the element this tab shows, looked up in the tab's own tree. The tab announces it as the content it controls (`aria-controls`). Give that element `role="tabpanel"` and an `aria-labelledby` with the id of this item, which names it after the tab. No effect in a `navigation` bar. */
|
|
2669
2633
|
'controls'?: NLDDTabBarItem['controls'];
|
|
2670
|
-
/**
|
|
2671
|
-
'
|
|
2634
|
+
/** The item you are on. A tab bar switching content manages it itself and renders it as `aria-selected`; a `navigation` bar leaves it to the consumer, since it follows the route, and renders it as `aria-current="page"`. Unlike a list row, which separates `current` from `selected` because it can be both at once, a tab bar has exactly one active item. */
|
|
2635
|
+
'current'?: true;
|
|
2636
|
+
/** Optional link URL; renders an anchor instead of a button */
|
|
2637
|
+
'href'?: NLDDTabBarItem['href'];
|
|
2672
2638
|
/** Forces this presentation on this item, over the one from nldd-tab-bar */
|
|
2673
2639
|
'variant'?: NLDDTabBarItem['variant'];
|
|
2674
2640
|
};
|
|
@@ -2684,12 +2650,12 @@ type NlddTableProps = {
|
|
|
2684
2650
|
'md-columns'?: NLDDTable['mdColumns'];
|
|
2685
2651
|
/** Track list when the table is lg-wide (≥1008px); falls back to `columns` */
|
|
2686
2652
|
'lg-columns'?: NLDDTable['lgColumns'];
|
|
2653
|
+
/** Opt into row selection: body rows expose aria-selected (true/false). Without it, rows omit aria-selected so a non-selectable table isn't announced as selectable. */
|
|
2654
|
+
'selectable'?: true;
|
|
2687
2655
|
/** Accessible name for the table. Strongly recommended, because role="table" needs a name. A missing label is DEV-warned and a generic fallback name is used. */
|
|
2688
2656
|
'accessible-label'?: NLDDTable['accessibleLabel'];
|
|
2689
2657
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
2690
2658
|
'translations'?: NLDDTable['translations'];
|
|
2691
|
-
/** Opt into row selection: body rows expose aria-selected (true/false). Without it, rows omit aria-selected so a non-selectable table isn't announced as selectable. */
|
|
2692
|
-
'selectable'?: true;
|
|
2693
2659
|
};
|
|
2694
2660
|
|
|
2695
2661
|
type NlddTableRowProps = {
|
|
@@ -2718,16 +2684,16 @@ type NlddTermProps = {
|
|
|
2718
2684
|
/** Where the definition comes from, such as a glossary or an article of law, as plain text. Shown under the definition in the term's own popover. Ignored when `popovertarget` is set. */
|
|
2719
2685
|
'source'?: NLDDTerm['source'];
|
|
2720
2686
|
/** Link for `source`. Without `source` it has no effect. */
|
|
2721
|
-
'source-href'?: NLDDTerm['sourceHref'];
|
|
2722
|
-
/** Override translation keys (the label before the source). */
|
|
2723
|
-
'translations'?: NLDDTerm['translations'];
|
|
2687
|
+
'source-href'?: NLDDTerm['sourceHref'];
|
|
2724
2688
|
/** ID of an nldd-popover with the definition, looked up in the tree of this term. Positioned against the term when it opens, so it needs no `anchor`, and it can be shared by every term for the same concept. Wins over `definition`. */
|
|
2725
2689
|
'popovertarget'?: NLDDTerm['popovertarget'];
|
|
2690
|
+
/** Override translation keys (the label before the source). */
|
|
2691
|
+
'translations'?: NLDDTerm['translations'];
|
|
2726
2692
|
};
|
|
2727
2693
|
|
|
2728
2694
|
type NlddTextProps = {
|
|
2729
|
-
/**
|
|
2730
|
-
'
|
|
2695
|
+
/** Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'. Each follows the surface the text sits on, through the `--context-content-*` it passes on; an area of your own that sets `color` sets `--context-content-color` too. */
|
|
2696
|
+
'color'?: NLDDText['color'];
|
|
2731
2697
|
/** Text size: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' on the body scale (default: 'md'), or 'display-6' to 'display-1' for large letters that are not a heading, from small to large */
|
|
2732
2698
|
'size'?: NLDDText['size'];
|
|
2733
2699
|
/** A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than `display-1`. A var() works when the variable holds a length; one that is not defined leaves the text without its size, the floor included. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so text made large for a wide screen never breaks a narrow one. Never smaller than `display-1` at the same breakpoint: a smaller value shows as `display-1`, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of `display-1`. An invalid value falls back to `size` */
|
|
@@ -2740,17 +2706,17 @@ type NlddTextProps = {
|
|
|
2740
2706
|
'weight'?: NLDDText['weight'];
|
|
2741
2707
|
/** Line height: 'flat' | 'tight' | 'snug' | 'loose' (default: 'snug') */
|
|
2742
2708
|
'line-height'?: NLDDText['lineHeight'];
|
|
2743
|
-
/** Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'. Each follows the surface the text sits on, through the `--context-content-*` it passes on; an area of your own that sets `color` sets `--context-content-color` too. */
|
|
2744
|
-
'color'?: NLDDText['color'];
|
|
2745
2709
|
/** Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box. */
|
|
2746
2710
|
'horizontal-alignment'?: NLDDText['horizontalAlignment'];
|
|
2711
|
+
/** The text, when it is plain text. The component draws it as a `<p>`. Content in the slot wins. */
|
|
2712
|
+
'text'?: NLDDText['text'];
|
|
2747
2713
|
};
|
|
2748
2714
|
|
|
2749
2715
|
type NlddTextCellProps = {
|
|
2750
|
-
/** Cell size: 'sm' | 'md' (default: 'md') */
|
|
2751
|
-
'size'?: NLDDTextCell['size'];
|
|
2752
2716
|
/** Text color variant: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'. All variants other than those two apply to all three text fields so the cell reads as a coherent state. */
|
|
2753
2717
|
'color'?: NLDDTextCell['color'];
|
|
2718
|
+
/** Cell size: 'sm' | 'md' (default: 'md') */
|
|
2719
|
+
'size'?: NLDDTextCell['size'];
|
|
2754
2720
|
/** 'full' | 'fit-content' | CSS length (e.g. '200px', '20rem'). Default: 'full' */
|
|
2755
2721
|
'width'?: NLDDTextCell['width'];
|
|
2756
2722
|
/** Minimum width as CSS length (e.g. '80px', '5rem') */
|
|
@@ -2784,18 +2750,18 @@ type NlddTextCellProps = {
|
|
|
2784
2750
|
};
|
|
2785
2751
|
|
|
2786
2752
|
type NlddTextEditorProps = {
|
|
2787
|
-
/** Turns spellchecking off. It is on by default, like the other text fields, and leaves out what is not running text: inline code and code blocks, the address of a link and a bare URL (the link text is checked), and mentions. Autocorrect and autocapitalize follow the user's own settings, as in the other fields, also with `no-spellcheck`. Two limits come from the browser: text that was already there is checked once you edit near it, not when the editor opens (the editor lives in a shadow root; Firefox only checks around the caret), and markup that changes how a line is built, such as starting a list item, hides the underlines on that line until you type on. */
|
|
2788
|
-
'no-spellcheck'?: true;
|
|
2789
|
-
/** Wrap long lines (default true; prose wraps) */
|
|
2790
|
-
'wrap'?: true;
|
|
2791
2753
|
/** 'none' (fixed) | 'vertical' (drag) | 'auto' (grow, default) */
|
|
2792
2754
|
'resize'?: NLDDTextEditor['resize'];
|
|
2793
2755
|
/** Drops the frame, fill, padding and focus ring, for an editor inside a composition that provides them */
|
|
2794
2756
|
'embedded'?: true;
|
|
2757
|
+
/** Wrap long lines (default true; prose wraps) */
|
|
2758
|
+
'wrap'?: true;
|
|
2795
2759
|
/** 'hidden' (default) or 'visible'. 'visible': every formatting mark stays in view, dimmed, a bullet as the character you typed (`-`, `*` or `+`), for people who write markdown. 'hidden': the marks of bold, italic, strikethrough, inline code, links and the `#` of a heading are hidden and come back where the caret or the selection touches that construct, so the text reads closer to the result while what you edit is still the markdown. A bullet reads as a dot, and shows its character on the line the caret is on. A quote reads as a line on the left per level, at the level the result gives each line, as in nldd-rich-text, with the spaces after a `>` beyond the first hidden and a missing one made room for, so every level is the same step; with the caret anywhere in it, its `>` marks and spaces show instead. A `---` line reads as a divider until the caret is on it, and a code block loses its closing ``` line until the caret is in it, since its own tint and edge already say what it is. Its opening line stays as the head of the block, with only the backticks hidden: the language as a label on the left, the copy button on the right. The numbers of a numbered list stay, in the color of the text: they are content. Read-only and disabled hide every mark, which makes a clean read view. The value is plain markdown either way. */
|
|
2796
2760
|
'syntax'?: NLDDTextEditor['syntax'];
|
|
2797
2761
|
/** Enable the annotation overlay (off by default). Annotations only render when this is set. */
|
|
2798
2762
|
'annotatable'?: true;
|
|
2763
|
+
/** Turns spellchecking off. It is on by default, like the other text fields, and leaves out what is not running text: inline code and code blocks, the address of a link and a bare URL (the link text is checked), and mentions. Autocorrect and autocapitalize follow the user's own settings, as in the other fields, also with `no-spellcheck`. Two limits come from the browser: text that was already there is checked once you edit near it, not when the editor opens (the editor lives in a shadow root; Firefox only checks around the caret), and markup that changes how a line is built, such as starting a list item, hides the underlines on that line until you type on. */
|
|
2764
|
+
'no-spellcheck'?: true;
|
|
2799
2765
|
/** Override the editor's assistive-tech strings (the open-in-new-tab link badge, the annotation count badge, the label of a task's box and the copy button of a code block). Unset keys fall back to Dutch. */
|
|
2800
2766
|
'translations'?: NLDDTextEditor['translations'];
|
|
2801
2767
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
@@ -2831,44 +2797,44 @@ type NlddTextEditorProps = {
|
|
|
2831
2797
|
type NlddTextFieldProps = {
|
|
2832
2798
|
/** 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
2833
2799
|
'size'?: NLDDTextField['size'];
|
|
2834
|
-
/**
|
|
2835
|
-
'
|
|
2836
|
-
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
2837
|
-
'input-id'?: NLDDTextField['inputId'];
|
|
2800
|
+
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
2801
|
+
'width'?: NLDDTextField['width'];
|
|
2838
2802
|
/** Placeholder text */
|
|
2839
2803
|
'placeholder'?: NLDDTextField['placeholder'];
|
|
2840
|
-
/**
|
|
2841
|
-
'
|
|
2804
|
+
/** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
|
|
2805
|
+
'accessible-label'?: NLDDTextField['accessibleLabel'];
|
|
2842
2806
|
/** Marks the field as valid */
|
|
2843
2807
|
'valid'?: true;
|
|
2844
|
-
/**
|
|
2845
|
-
'
|
|
2808
|
+
/** Marks the field as invalid */
|
|
2809
|
+
'invalid'?: true;
|
|
2810
|
+
/** Input name for form submission */
|
|
2811
|
+
'name'?: NLDDTextField['name'];
|
|
2812
|
+
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
2813
|
+
'input-id'?: NLDDTextField['inputId'];
|
|
2814
|
+
/** The input value */
|
|
2815
|
+
'value'?: NLDDTextField['value'];
|
|
2846
2816
|
/** Input type: 'text' | 'email' | 'tel' | 'url' */
|
|
2847
2817
|
'type'?: NLDDTextField['type'];
|
|
2848
2818
|
/** Which virtual keyboard a phone or tablet raises, forwarded as `inputmode`: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'. It changes nothing about what the field accepts, and nothing at all on a desktop. Reach for it where the value is digits but not a quantity you would step (a house number, a postcode, a rack unit): 'numeric'. The keyboard for 'tel', 'email' and 'url' already follows from `type`. */
|
|
2849
2819
|
'keyboard'?: NLDDTextField['keyboard'];
|
|
2850
2820
|
/** What the Enter key of the virtual keyboard says, forwarded as `enterkeyhint`: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'. It only labels the key; what Enter does is still up to the form, and on a desktop it changes nothing. */
|
|
2851
2821
|
'enter-key'?: NLDDTextField['enterKey'];
|
|
2852
|
-
/**
|
|
2853
|
-
'
|
|
2854
|
-
/**
|
|
2855
|
-
'
|
|
2822
|
+
/** Fewest characters the value may have. */
|
|
2823
|
+
'minlength'?: NLDDTextField['minlength'];
|
|
2824
|
+
/** Most characters the value may have. */
|
|
2825
|
+
'maxlength'?: NLDDTextField['maxlength'];
|
|
2826
|
+
/** Regular expression the value has to match, as the native `pattern`. */
|
|
2827
|
+
'pattern'?: NLDDTextField['pattern'];
|
|
2856
2828
|
/** Required state */
|
|
2857
2829
|
'required'?: true;
|
|
2858
2830
|
/** Autocomplete hint */
|
|
2859
2831
|
'autocomplete'?: NLDDTextField['autocomplete'];
|
|
2860
|
-
/** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
|
|
2861
|
-
'accessible-label'?: NLDDTextField['accessibleLabel'];
|
|
2862
2832
|
/** Disables browser spellchecking on the inner input */
|
|
2863
2833
|
'no-spellcheck'?: true;
|
|
2864
|
-
/**
|
|
2865
|
-
'
|
|
2866
|
-
/**
|
|
2867
|
-
'
|
|
2868
|
-
/** Fewest characters the value may have. */
|
|
2869
|
-
'minlength'?: NLDDTextField['minlength'];
|
|
2870
|
-
/** Most characters the value may have. */
|
|
2871
|
-
'maxlength'?: NLDDTextField['maxlength'];
|
|
2834
|
+
/** Readonly state */
|
|
2835
|
+
'readonly'?: true;
|
|
2836
|
+
/** Disabled state */
|
|
2837
|
+
'disabled'?: true;
|
|
2872
2838
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
2873
2839
|
'accessible-description'?: NLDDTextField['accessibleDescription'];
|
|
2874
2840
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -2878,6 +2844,22 @@ type NlddTextFieldProps = {
|
|
|
2878
2844
|
type NlddTimeFieldProps = {
|
|
2879
2845
|
/** 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
2880
2846
|
'size'?: NLDDTimeField['size'];
|
|
2847
|
+
/** Width. By default exactly wide enough for a time plus the validation icon; 'full' fills the container; 'fit-content' drops the room for the validation icon and grows again as soon as the field turns valid or invalid; or pass your own CSS length. */
|
|
2848
|
+
'width'?: NLDDTimeField['width'];
|
|
2849
|
+
/** Placeholder text. Do not put a format here; use the supporting label of nldd-form-field for that. */
|
|
2850
|
+
'placeholder'?: NLDDTimeField['placeholder'];
|
|
2851
|
+
/** Accessible label for the internal input. Set automatically by nldd-form-field. */
|
|
2852
|
+
'accessible-label'?: NLDDTimeField['accessibleLabel'];
|
|
2853
|
+
/** Hides the picker button. It is shown by default. */
|
|
2854
|
+
'no-picker'?: true;
|
|
2855
|
+
/** Marks the field as valid. */
|
|
2856
|
+
'valid'?: true;
|
|
2857
|
+
/** Marks the field as invalid. */
|
|
2858
|
+
'invalid'?: true;
|
|
2859
|
+
/** Name for form submission. */
|
|
2860
|
+
'name'?: NLDDTimeField['name'];
|
|
2861
|
+
/** Sets the id on the internal input. Set automatically by nldd-form-field. */
|
|
2862
|
+
'input-id'?: NLDDTimeField['inputId'];
|
|
2881
2863
|
/** The time as `HH:mm` (24-hour). Empty when there is no valid time. */
|
|
2882
2864
|
'value'?: NLDDTimeField['value'];
|
|
2883
2865
|
/** Earliest allowed time as `HH:mm`. Also the base that `step` counts from. */
|
|
@@ -2886,30 +2868,14 @@ type NlddTimeFieldProps = {
|
|
|
2886
2868
|
'max'?: NLDDTimeField['max'];
|
|
2887
2869
|
/** Step in minutes (default 1). Decides which times are valid, what rounding snaps to, and how far the arrow keys jump. */
|
|
2888
2870
|
'step'?: NLDDTimeField['step'];
|
|
2889
|
-
/** Hides the picker button. It is shown by default. */
|
|
2890
|
-
'no-picker'?: true;
|
|
2891
|
-
/** Sets the id on the internal input. Set automatically by nldd-form-field. */
|
|
2892
|
-
'input-id'?: NLDDTimeField['inputId'];
|
|
2893
|
-
/** Placeholder text. Do not put a format here; use the supporting label of nldd-form-field for that. */
|
|
2894
|
-
'placeholder'?: NLDDTimeField['placeholder'];
|
|
2895
|
-
/** Marks the field as invalid. */
|
|
2896
|
-
'invalid'?: true;
|
|
2897
|
-
/** Marks the field as valid. */
|
|
2898
|
-
'valid'?: true;
|
|
2899
|
-
/** Disabled state. */
|
|
2900
|
-
'disabled'?: true;
|
|
2901
|
-
/** Read-only state. */
|
|
2902
|
-
'readonly'?: true;
|
|
2903
2871
|
/** Required state. */
|
|
2904
2872
|
'required'?: true;
|
|
2905
|
-
/** Name for form submission. */
|
|
2906
|
-
'name'?: NLDDTimeField['name'];
|
|
2907
2873
|
/** Autocomplete hint. */
|
|
2908
2874
|
'autocomplete'?: NLDDTimeField['autocomplete'];
|
|
2909
|
-
/**
|
|
2910
|
-
'
|
|
2911
|
-
/**
|
|
2912
|
-
'
|
|
2875
|
+
/** Read-only state. */
|
|
2876
|
+
'readonly'?: true;
|
|
2877
|
+
/** Disabled state. */
|
|
2878
|
+
'disabled'?: true;
|
|
2913
2879
|
/** Translations; unspecified keys fall back to Dutch. */
|
|
2914
2880
|
'translations'?: NLDDTimeField['translations'];
|
|
2915
2881
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
@@ -2919,6 +2885,14 @@ type NlddTimeFieldProps = {
|
|
|
2919
2885
|
};
|
|
2920
2886
|
|
|
2921
2887
|
type NlddTimePickerProps = {
|
|
2888
|
+
/** Height of the columns in rows (default 7, minimum 3). The chosen value always sits in the middle, so an odd number shows whole rows and an even number cuts off half a row at the top and bottom. */
|
|
2889
|
+
'rows'?: NLDDTimePicker['rows'];
|
|
2890
|
+
/** Width: `full` fills the container, or pass your own CSS length. */
|
|
2891
|
+
'width'?: NLDDTimePicker['width'];
|
|
2892
|
+
/** Accessible name of the picker. */
|
|
2893
|
+
'accessible-label'?: NLDDTimePicker['accessibleLabel'];
|
|
2894
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2895
|
+
'invalid'?: true;
|
|
2922
2896
|
/** The chosen time as `HH:mm` (24-hour), written exactly so: unlike `min` and `max`, it is what the picker reports back. In nldd-time-field the field writes it. */
|
|
2923
2897
|
'value'?: NLDDTimePicker['value'];
|
|
2924
2898
|
/** Earliest allowed time as `HH:mm`, read as generously as nldd-time-field reads it (`9:00` too). Also the base that `step` counts from. */
|
|
@@ -2927,16 +2901,8 @@ type NlddTimePickerProps = {
|
|
|
2927
2901
|
'max'?: NLDDTimePicker['max'];
|
|
2928
2902
|
/** Step in minutes (default 1). Decides which minutes are in the column. */
|
|
2929
2903
|
'step'?: NLDDTimePicker['step'];
|
|
2930
|
-
/** Height of the columns in rows (default 7, minimum 3). The chosen value always sits in the middle, so an odd number shows whole rows and an even number cuts off half a row at the top and bottom. */
|
|
2931
|
-
'rows'?: NLDDTimePicker['rows'];
|
|
2932
|
-
/** Width: `full` fills the container, or pass your own CSS length. */
|
|
2933
|
-
'width'?: NLDDTimePicker['width'];
|
|
2934
|
-
/** Accessible name of the picker. */
|
|
2935
|
-
'accessible-label'?: NLDDTimePicker['accessibleLabel'];
|
|
2936
2904
|
/** Translations; unspecified keys fall back to Dutch. */
|
|
2937
2905
|
'translations'?: NLDDTimePicker['translations'];
|
|
2938
|
-
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2939
|
-
'invalid'?: true;
|
|
2940
2906
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
2941
2907
|
'accessible-description'?: NLDDTimePicker['accessibleDescription'];
|
|
2942
2908
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -2963,10 +2929,10 @@ type NlddTitleProps = {
|
|
|
2963
2929
|
};
|
|
2964
2930
|
|
|
2965
2931
|
type NlddTitleCellProps = {
|
|
2966
|
-
/** Visual size of the title: 'display-1' to 'display-6', from large to small (unset: looks like 'display-5', and becomes 'display-6' in an `nldd-table-row`, where a title the size of the other cells reads better). Unlike nldd-title, `heading-level` does not set it: every row in a list looks the same, whatever its level */
|
|
2967
|
-
'size'?: NLDDTitleCell['size'];
|
|
2968
2932
|
/** Text color variant (default: 'content'). `secondary` demotes the title to match the muted overline/supporting-text. `accent`, `success`, `warning` and `critical` tint all three regions so the cell reads as a coherent state. */
|
|
2969
2933
|
'color'?: NLDDTitleCell['color'];
|
|
2934
|
+
/** Visual size of the title: 'display-1' to 'display-6', from large to small (unset: looks like 'display-5', and becomes 'display-6' in an `nldd-table-row`, where a title the size of the other cells reads better). Unlike nldd-title, `heading-level` does not set it: every row in a list looks the same, whatever its level */
|
|
2935
|
+
'size'?: NLDDTitleCell['size'];
|
|
2970
2936
|
/** 'full' | 'fit-content' | CSS length (e.g. '200px', '20rem'). Default: 'full' */
|
|
2971
2937
|
'width'?: NLDDTitleCell['width'];
|
|
2972
2938
|
/** Minimum width as CSS length (e.g. '80px', '5rem') */
|
|
@@ -3002,36 +2968,22 @@ type NlddTitleCellProps = {
|
|
|
3002
2968
|
};
|
|
3003
2969
|
|
|
3004
2970
|
type NlddToggleButtonProps = {
|
|
3005
|
-
/**
|
|
3006
|
-
'
|
|
3007
|
-
/** What the button is: a button with aria-pressed, a native checkbox, or a radio (default: 'button') */
|
|
3008
|
-
'type'?: NLDDToggleButton['type'];
|
|
2971
|
+
/** What renders: text, icon, or both. Unset → auto-detect from text/icon attributes. */
|
|
2972
|
+
'variant'?: NLDDToggleButton['variant'];
|
|
3009
2973
|
/** Visual style, color included (default: 'neutral-tinted'). Selected is filled in each of them; the transparent ones are for a toggle among transparent buttons, and with a selected-icon they stay quiet when on. */
|
|
3010
2974
|
'appearance'?: NLDDToggleButton['appearance'];
|
|
3011
2975
|
/** Button size (default: 'md') */
|
|
3012
2976
|
'size'?: NLDDToggleButton['size'];
|
|
3013
|
-
/** Selected state */
|
|
3014
|
-
'selected'?: true;
|
|
3015
|
-
/** Disabled state */
|
|
3016
|
-
'disabled'?: true;
|
|
3017
|
-
/** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
|
|
3018
|
-
'no-tab'?: true;
|
|
3019
|
-
/** Value for form submission (checkbox/radio) */
|
|
3020
|
-
'value'?: NLDDToggleButton['value'];
|
|
3021
|
-
/** Name for form submission (checkbox/radio) */
|
|
3022
|
-
'name'?: NLDDToggleButton['name'];
|
|
3023
2977
|
/** Button text */
|
|
3024
2978
|
'text'?: NLDDToggleButton['text'];
|
|
3025
2979
|
/** Icon name for nldd-icon */
|
|
3026
2980
|
'icon'?: NLDDToggleButton['icon'];
|
|
3027
2981
|
/** Icon shown instead of `icon` while selected, such as `check-mark` for `plus` or `heart-filled` for `heart`. The appearances with a surface fill it when on, as without one. The transparent appearances have no surface to fill: with a selected-icon they stay quiet when on and the change of shape says it is on; without one, or with `variant="text"` where the icon does not render, they fill, so the state always shows. */
|
|
3028
2982
|
'selected-icon'?: NLDDToggleButton['selectedIcon'];
|
|
3029
|
-
/** What renders: text, icon, or both. Unset → auto-detect from text/icon attributes. */
|
|
3030
|
-
'variant'?: NLDDToggleButton['variant'];
|
|
3031
|
-
/** Accessible label; required for icon-only usage */
|
|
3032
|
-
'accessible-label'?: NLDDToggleButton['accessibleLabel'];
|
|
3033
2983
|
/** ID of an nldd-popover that describes this button and opens on interest, as the `interest` slot does, for a popover that stands elsewhere: one shared by several buttons, such as who reacted in a row of reactions. Looked up in the tree of this button. A popover in the `interest` slot wins. Keep `accessible-label` on that popover: it names the popover where it stands, and is left out while it describes this button. */
|
|
3034
2984
|
'interestfor'?: NLDDToggleButton['interestfor'];
|
|
2985
|
+
/** Accessible label; required for icon-only usage */
|
|
2986
|
+
'accessible-label'?: NLDDToggleButton['accessibleLabel'];
|
|
3035
2987
|
/** Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name ("Vet Cmd B"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. */
|
|
3036
2988
|
'shortcut'?: NLDDToggleButton['shortcut'];
|
|
3037
2989
|
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
@@ -3040,8 +2992,22 @@ type NlddToggleButtonProps = {
|
|
|
3040
2992
|
'shortcut-windows'?: NLDDToggleButton['shortcutWindows'];
|
|
3041
2993
|
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
3042
2994
|
'shortcut-linux'?: NLDDToggleButton['shortcutLinux'];
|
|
2995
|
+
/** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
|
|
2996
|
+
'no-tab'?: true;
|
|
2997
|
+
/** Selected state */
|
|
2998
|
+
'selected'?: true;
|
|
3043
2999
|
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
3044
3000
|
'invalid'?: true;
|
|
3001
|
+
/** Name for form submission (checkbox/radio) */
|
|
3002
|
+
'name'?: NLDDToggleButton['name'];
|
|
3003
|
+
/** Value for form submission (checkbox/radio) */
|
|
3004
|
+
'value'?: NLDDToggleButton['value'];
|
|
3005
|
+
/** What the button is: a button with aria-pressed, a native checkbox, or a radio (default: 'button') */
|
|
3006
|
+
'type'?: NLDDToggleButton['type'];
|
|
3007
|
+
/** Required state. Set by nldd-toggle-button-group. */
|
|
3008
|
+
'required'?: true;
|
|
3009
|
+
/** Disabled state */
|
|
3010
|
+
'disabled'?: true;
|
|
3045
3011
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
3046
3012
|
'accessible-description'?: NLDDToggleButton['accessibleDescription'];
|
|
3047
3013
|
/** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
|
|
@@ -3049,76 +3015,76 @@ type NlddToggleButtonProps = {
|
|
|
3049
3015
|
};
|
|
3050
3016
|
|
|
3051
3017
|
type NlddToggleButtonGroupProps = {
|
|
3052
|
-
/** Marks the group as required. Enforced in radio mode; in checkbox mode only announced. */
|
|
3053
|
-
'required'?: true;
|
|
3054
|
-
/** Selection mode (default: 'checkbox') */
|
|
3055
|
-
'type'?: NLDDToggleButtonGroup['type'];
|
|
3056
|
-
/** Forwarded to all buttons */
|
|
3057
|
-
'name'?: NLDDToggleButtonGroup['name'];
|
|
3058
3018
|
/** Forwarded to all buttons (default: 'neutral-tinted') */
|
|
3059
3019
|
'appearance'?: NLDDToggleButtonGroup['appearance'];
|
|
3060
3020
|
/** Forwarded to all buttons (default: 'md') */
|
|
3061
3021
|
'size'?: NLDDToggleButtonGroup['size'];
|
|
3062
|
-
/** Disables all buttons */
|
|
3063
|
-
'disabled'?: true;
|
|
3064
3022
|
/** Accessible name for the group (aria-label) */
|
|
3065
3023
|
'accessible-label'?: NLDDToggleButtonGroup['accessibleLabel'];
|
|
3066
3024
|
/** ID of an external label element (aria-labelledby) */
|
|
3067
3025
|
'accessible-labeled-by'?: NLDDToggleButtonGroup['accessibleLabeledBy'];
|
|
3068
3026
|
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
3069
3027
|
'invalid'?: true;
|
|
3028
|
+
/** Forwarded to all buttons */
|
|
3029
|
+
'name'?: NLDDToggleButtonGroup['name'];
|
|
3030
|
+
/** Selection mode (default: 'checkbox') */
|
|
3031
|
+
'type'?: NLDDToggleButtonGroup['type'];
|
|
3032
|
+
/** Marks the group as required. Enforced in radio mode; in checkbox mode only announced. */
|
|
3033
|
+
'required'?: true;
|
|
3034
|
+
/** Disables all buttons */
|
|
3035
|
+
'disabled'?: true;
|
|
3070
3036
|
};
|
|
3071
3037
|
|
|
3072
3038
|
type NlddTokenProps = {
|
|
3073
3039
|
/** Token text. Content in the default slot wins. */
|
|
3074
3040
|
'text'?: NLDDToken['text'];
|
|
3075
|
-
/** Control type (default: 'none') */
|
|
3076
|
-
'control'?: NLDDToken['control'];
|
|
3077
3041
|
/** Accessible label for the dismiss button. Unset, it names the token: `Verwijder "{text}"`, so a row of tokens does not read as a row of identical buttons. */
|
|
3078
3042
|
'dismiss-text'?: NLDDToken['dismissText'];
|
|
3043
|
+
/** Control type (default: 'none') */
|
|
3044
|
+
'control'?: NLDDToken['control'];
|
|
3079
3045
|
/** Accessible label for the menu button. Unset, it is `Toon opties voor "{text}"`. */
|
|
3080
3046
|
'menu-text'?: NLDDToken['menuText'];
|
|
3081
|
-
/** Override translation keys; unset keys fall back to Dutch */
|
|
3082
|
-
'translations'?: NLDDToken['translations'];
|
|
3083
3047
|
/** Inside a roving-focus container (e.g. nldd-token-field): the host is the single tab stop, so the trailing control is not separately tabbable. */
|
|
3084
3048
|
'roving'?: true;
|
|
3085
3049
|
/** Reflects whether the token's menu or popover is open (control="menu"); managed by the token. */
|
|
3086
3050
|
'expanded'?: true;
|
|
3087
3051
|
/** Disabled state. Avoid it where you can; the design guidelines say why. */
|
|
3088
3052
|
'disabled'?: true;
|
|
3053
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
3054
|
+
'translations'?: NLDDToken['translations'];
|
|
3089
3055
|
};
|
|
3090
3056
|
|
|
3091
3057
|
type NlddTokenFieldProps = {
|
|
3092
|
-
/** Initial token values as a comma-separated string (e.g. "nl, be, de"). Not reflected; the live value is the `.values` array property. Values can't contain commas. */
|
|
3093
|
-
'values'?: NLDDTokenField['values'];
|
|
3094
3058
|
/** Placeholder shown in the input */
|
|
3095
3059
|
'placeholder'?: NLDDTokenField['placeholder'];
|
|
3096
|
-
/** Input type forwarded to the inner input (e.g. 'email') */
|
|
3097
|
-
'type'?: NLDDTokenField['type'];
|
|
3098
|
-
/** Autocomplete hint forwarded to the inner input */
|
|
3099
|
-
'autocomplete'?: NLDDTokenField['autocomplete'];
|
|
3100
3060
|
/** Accessible label forwarded as aria-label to the input */
|
|
3101
3061
|
'accessible-label'?: NLDDTokenField['accessibleLabel'];
|
|
3102
|
-
/** Allow free-typed values (not just menu options). Typing an option's label in full adds that option, with its value, ignoring case and the spaces around it; with two such labels, the first one. */
|
|
3103
|
-
'allow-custom'?: true;
|
|
3104
3062
|
/** Leaves the options as they are while typing, for a list your server already filtered per keystroke. Without it the field hides options that do not contain the typed text, which also hides a server match on, say, an e-mail address. */
|
|
3105
3063
|
'no-filter'?: true;
|
|
3064
|
+
/** Trailing control per token: 'dismiss' (default, a ✕ that removes it) or 'menu' (a ⌄ opening a per-token action menu supplied by the template prototypes) */
|
|
3065
|
+
'token-control'?: NLDDTokenField['tokenControl'];
|
|
3106
3066
|
/** Marks the field valid (shows the valid icon) */
|
|
3107
3067
|
'valid'?: true;
|
|
3108
3068
|
/** Marks the field invalid (shows the invalid icon) */
|
|
3109
3069
|
'invalid'?: true;
|
|
3070
|
+
/** Name for form submission */
|
|
3071
|
+
'name'?: NLDDTokenField['name'];
|
|
3072
|
+
/** Initial token values as a comma-separated string (e.g. "nl, be, de"). Not reflected; the live value is the `.values` array property. Values can't contain commas. */
|
|
3073
|
+
'values'?: NLDDTokenField['values'];
|
|
3074
|
+
/** Input type forwarded to the inner input (e.g. 'email') */
|
|
3075
|
+
'type'?: NLDDTokenField['type'];
|
|
3076
|
+
/** Allow free-typed values (not just menu options). Typing an option's label in full adds that option, with its value, ignoring case and the spaces around it; with two such labels, the first one. */
|
|
3077
|
+
'allow-custom'?: true;
|
|
3078
|
+
/** Marks the field required (invalid when it has no tokens) */
|
|
3079
|
+
'required'?: true;
|
|
3080
|
+
/** Autocomplete hint forwarded to the inner input */
|
|
3081
|
+
'autocomplete'?: NLDDTokenField['autocomplete'];
|
|
3110
3082
|
/** Disables browser spellchecking on the inner input */
|
|
3111
3083
|
'no-spellcheck'?: true;
|
|
3112
3084
|
/** Readonly: static tokens, no input/picker, read-only surface */
|
|
3113
3085
|
'readonly'?: true;
|
|
3114
|
-
/** Marks the field required (invalid when it has no tokens) */
|
|
3115
|
-
'required'?: true;
|
|
3116
3086
|
/** Disabled state */
|
|
3117
3087
|
'disabled'?: true;
|
|
3118
|
-
/** Trailing control per token: 'dismiss' (default, a ✕ that removes it) or 'menu' (a ⌄ opening a per-token action menu supplied by the template prototypes) */
|
|
3119
|
-
'token-control'?: NLDDTokenField['tokenControl'];
|
|
3120
|
-
/** Name for form submission */
|
|
3121
|
-
'name'?: NLDDTokenField['name'];
|
|
3122
3088
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
3123
3089
|
'translations'?: NLDDTokenField['translations'];
|
|
3124
3090
|
/** A description in words, read after the name, role and state, as `aria-description` would. Extra information, never the name: a button with only an icon still needs its `accessible-label`. Not shown; prefer `accessible-described-by` to text that is on the page. That one wins when it finds an element, as `aria-describedby` wins from `aria-description`. */
|
|
@@ -3149,20 +3115,8 @@ type NlddToolbarItemProps = {
|
|
|
3149
3115
|
'label'?: NLDDToolbarItem['label'];
|
|
3150
3116
|
/** Overflow order: items with a lower priority move into the overflow menu first (default 0). Items sharing a priority overflow together, regardless of position. */
|
|
3151
3117
|
'priority'?: NLDDToolbarItem['priority'];
|
|
3152
|
-
/** Set by nldd-toolbar, not a consumer attribute
|
|
3153
|
-
'size'?: NLDDToolbarItem['size'];
|
|
3154
|
-
/** Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's show-item-labels, so the item renders its label below the control. */
|
|
3155
|
-
'show-item-labels'?: true;
|
|
3156
|
-
/** Set by nldd-toolbar, not a consumer attribute: marks an item that grows or shrinks to fill space. Toggled synchronously during measurement, so it can appear or disappear between layout frames, so do not style against it. It is not reflected as a JS property, so read it with hasAttribute('fluid'). */
|
|
3157
|
-
'fluid'?: true;
|
|
3158
|
-
/** Set by nldd-toolbar, not a consumer attribute: the sole fluid item, allowed to shrink below its content. Same synchronous-toggle and property-read caveats as fluid. */
|
|
3159
|
-
'solo-fluid'?: true;
|
|
3160
|
-
/** Set by nldd-toolbar, not a consumer attribute, when the item moves into the overflow menu. Same synchronous-toggle caveat. */
|
|
3118
|
+
/** Set by nldd-toolbar, not a consumer attribute, when the item moves into the overflow menu. Toggled synchronously during measurement, so do not style against it. */
|
|
3161
3119
|
'hidden'?: true;
|
|
3162
|
-
/** Set by nldd-toolbar, not a consumer attribute: the item holds a control that overflows by itself (nldd-tab-bar), so it gets the width that control wants with everything shown. Same synchronous-toggle caveat. */
|
|
3163
|
-
'shrinkable'?: true;
|
|
3164
|
-
/** Set by nldd-toolbar, not a consumer attribute: a shrinkable item narrowed down to what its control needs at least, before it would move into the overflow menu. Same synchronous-toggle caveat. */
|
|
3165
|
-
'shrunk'?: true;
|
|
3166
3120
|
};
|
|
3167
3121
|
|
|
3168
3122
|
type NlddToolbarTitleProps = {
|
|
@@ -3178,8 +3132,6 @@ type NlddToolbarTitleProps = {
|
|
|
3178
3132
|
'text'?: NLDDToolbarTitle['text'];
|
|
3179
3133
|
/** Secondary supporting text shown below the title. */
|
|
3180
3134
|
'supporting-text'?: NLDDToolbarTitle['supportingText'];
|
|
3181
|
-
/** Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's size (default: 'md'), which sets the title group height and, at 'sm', the title and supporting-text fonts. */
|
|
3182
|
-
'size'?: NLDDToolbarTitle['size'];
|
|
3183
3135
|
/** Makes the mark and the name one link, for the place this window belongs to (usually the app's own start). The `action` slot stays outside it: a control inside a link is a control you cannot reach without following the link. */
|
|
3184
3136
|
'href'?: NLDDToolbarTitle['href'];
|
|
3185
3137
|
/** Where the link opens; only meaningful with `href`. `_blank` adds rel="noopener noreferrer" and a visually hidden "opens in a new tab" announcement. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
|
|
@@ -3189,6 +3141,8 @@ type NlddToolbarTitleProps = {
|
|
|
3189
3141
|
};
|
|
3190
3142
|
|
|
3191
3143
|
type NlddTooltipProps = {
|
|
3144
|
+
/** Position: 'top' | 'bottom' | 'left' | 'right' (default: 'bottom'; automatically 'top' on touch devices) */
|
|
3145
|
+
'placement'?: NLDDTooltip['placement'];
|
|
3192
3146
|
/** Tooltip text */
|
|
3193
3147
|
'text'?: NLDDTooltip['text'];
|
|
3194
3148
|
/** Keyboard shortcut hint shown after the text, e.g. 'Cmd+P'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key. Joins the description of a light-DOM trigger. Hidden on touch-only devices, where it isn't invokable. */
|
|
@@ -3199,17 +3153,13 @@ type NlddTooltipProps = {
|
|
|
3199
3153
|
'shortcut-windows'?: NLDDTooltip['shortcutWindows'];
|
|
3200
3154
|
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
3201
3155
|
'shortcut-linux'?: NLDDTooltip['shortcutLinux'];
|
|
3202
|
-
/** Forces the tooltip visible, whatever hover or focus does. Use it for programmatic feedback ("Copied", for instance). Reset it to false to restore the hover behavior. */
|
|
3203
|
-
'open'?: true;
|
|
3204
|
-
/** Position: 'top' | 'bottom' | 'left' | 'right' (default: 'bottom'; automatically 'top' on touch devices) */
|
|
3205
|
-
'placement'?: NLDDTooltip['placement'];
|
|
3206
3156
|
/** When the tooltip appears on hover: 'instant' shows it right away, without a show delay or a fade, also on the way out. 'delay' (the default) shows it after the standard show delay (700ms). 'never' never shows it: hover and focus events are ignored, aria-describedby is suppressed, and a tooltip that is already visible disappears. The hide delay and the touch suppression stay in force under every value. Focus shows it at once, except the focus a press gives a button, so a click does not flash it up. */
|
|
3207
3157
|
'timing'?: NLDDTooltip['timing'];
|
|
3158
|
+
/** Forces the tooltip visible, whatever hover or focus does. Use it for programmatic feedback ("Copied", for instance). Reset it to false to restore the hover behavior. */
|
|
3159
|
+
'open'?: true;
|
|
3208
3160
|
};
|
|
3209
3161
|
|
|
3210
3162
|
type NlddTopNavigationBarProps = {
|
|
3211
|
-
/** Name of the website or application, above the menu bar. Empty leaves the title line out. On a narrow screen, where it has a line of its own, a long name wraps; on md and lg it sits beside the menu on one line, so keep it short enough to fit there. */
|
|
3212
|
-
'website-title'?: NLDDTopNavigationBar['websiteTitle'];
|
|
3213
3163
|
/** Hides the whole logo bar, wordmark included. */
|
|
3214
3164
|
'no-logo'?: true;
|
|
3215
3165
|
/** Limits the bar content to a max-width so it lines up with the page sections. 'full' fills the entire width, or pass your own CSS length. */
|
|
@@ -3224,12 +3174,14 @@ type NlddTopNavigationBarProps = {
|
|
|
3224
3174
|
'logo-supporting-text-2'?: NLDDTopNavigationBar['logoSupportingText2'];
|
|
3225
3175
|
/** URL for the logo and wordmark. Without it they are not a link but an image with an accessible label. Leave it out when `website-href` already goes to the same page: two links to the start page side by side are two tab stops and the same link twice in a screen reader's list of links. */
|
|
3226
3176
|
'logo-href'?: NLDDTopNavigationBar['logoHref'];
|
|
3177
|
+
/** Name of the website or application, above the menu bar. Empty leaves the title line out. On a narrow screen, where it has a line of its own, a long name wraps; on md and lg it sits beside the menu on one line, so keep it short enough to fit there. */
|
|
3178
|
+
'website-title'?: NLDDTopNavigationBar['websiteTitle'];
|
|
3227
3179
|
/** URL for the website title. Without it the title stays plain text. */
|
|
3228
3180
|
'website-href'?: NLDDTopNavigationBar['websiteHref'];
|
|
3229
|
-
/** URL of the back button. Without it a click fires the `back-click` event, so the consumer navigates itself. */
|
|
3230
|
-
'back-href'?: NLDDTopNavigationBar['backHref'];
|
|
3231
3181
|
/** Text of the back button. The button appears as soon as back-text or back-href is set; without text it falls back to the translation ("Terug"). */
|
|
3232
3182
|
'back-text'?: NLDDTopNavigationBar['backText'];
|
|
3183
|
+
/** URL of the back button. Without it a click fires the `back-click` event, so the consumer navigates itself. */
|
|
3184
|
+
'back-href'?: NLDDTopNavigationBar['backHref'];
|
|
3233
3185
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
3234
3186
|
'translations'?: NLDDTopNavigationBar['translations'];
|
|
3235
3187
|
};
|
|
@@ -3241,14 +3193,14 @@ type NlddTopTitleBarProps = {
|
|
|
3241
3193
|
'supporting-text'?: NLDDTopTitleBar['supportingText'];
|
|
3242
3194
|
/** Heading level of the title: 1–6 (default: 1). Lower it where the bar is not the top of the page, such as a pane beside content that already has its h1. */
|
|
3243
3195
|
'heading-level'?: NLDDTopTitleBar['headingLevel'];
|
|
3244
|
-
/** Id of the element whose top edge triggers the compact state on scroll. Without it the state is static (see above). */
|
|
3245
|
-
'collapse-anchor'?: NLDDTopTitleBar['collapseAnchor'];
|
|
3246
3196
|
/** Text of the back button and its accessible name. Empty hides the back button (and the divider). */
|
|
3247
3197
|
'back-text'?: NLDDTopTitleBar['backText'];
|
|
3248
3198
|
/** URL for the back button; renders a link and suppresses the `back` event. */
|
|
3249
3199
|
'back-href'?: NLDDTopTitleBar['backHref'];
|
|
3250
3200
|
/** Text of the dismiss button. Empty hides that button. */
|
|
3251
3201
|
'dismiss-text'?: NLDDTopTitleBar['dismissText'];
|
|
3202
|
+
/** Id of the element whose top edge triggers the compact state on scroll. Without it the state is static (see above). */
|
|
3203
|
+
'collapse-anchor'?: NLDDTopTitleBar['collapseAnchor'];
|
|
3252
3204
|
};
|
|
3253
3205
|
|
|
3254
3206
|
type NlddTwoThirdsOneThirdSectionProps = {
|
|
@@ -3289,29 +3241,25 @@ type NlddTwoThirdsOneThirdSectionProps = {
|
|
|
3289
3241
|
};
|
|
3290
3242
|
|
|
3291
3243
|
type NlddValidationItemProps = {
|
|
3292
|
-
/**
|
|
3293
|
-
'
|
|
3244
|
+
/** Show this item before there is a verdict, whatever the list says. */
|
|
3245
|
+
'hint'?: true;
|
|
3294
3246
|
/** Fewest characters the value may have. Not held against an empty value unless the field is required. */
|
|
3295
3247
|
'minlength'?: NLDDValidationItem['minlength'];
|
|
3296
3248
|
/** Most characters the value may have. */
|
|
3297
3249
|
'maxlength'?: NLDDValidationItem['maxlength'];
|
|
3250
|
+
/** Regular expression the value has to contain. Not anchored, unlike the native `pattern`: `[A-Z]` means "has a capital in it". Not held against an empty value unless the field is required. */
|
|
3251
|
+
'match'?: NLDDValidationItem['match'];
|
|
3298
3252
|
/** The value may not be empty. Without it, and without `required` on the control, an empty value passes every rule in the list, as it does for the native `pattern` and `minlength`. The control is read by its `required` property or attribute; one that only says `aria-required` needs this item. */
|
|
3299
3253
|
'required'?: true;
|
|
3300
|
-
/** Show this item before there is a verdict, whatever the list says. */
|
|
3301
|
-
'hint'?: true;
|
|
3302
|
-
/** Whether the value fails this item. Managed by the list; do not set it yourself. */
|
|
3303
|
-
'unmet'?: true;
|
|
3304
|
-
/** Whether the item is on screen. Managed by the list. */
|
|
3305
|
-
'visible'?: true;
|
|
3306
3254
|
};
|
|
3307
3255
|
|
|
3308
3256
|
type NlddValidationListProps = {
|
|
3309
|
-
/** Id of the control this list is about. Not needed inside an nldd-form-field, which hands its own control over. */
|
|
3310
|
-
'for'?: NLDDValidationList['for'];
|
|
3311
3257
|
/** Show every item before there is a verdict, as the requirements of the field. Overridable per item. */
|
|
3312
3258
|
'hint'?: true;
|
|
3313
3259
|
/** Drop the hints, because this field has been judged. Turned on by the list itself once its control is `invalid`, and settable by hand. What turns red follows `invalid`, not this. */
|
|
3314
3260
|
'judging'?: true;
|
|
3261
|
+
/** Id of the control this list is about. Not needed inside an nldd-form-field, which hands its own control over. */
|
|
3262
|
+
'for'?: NLDDValidationList['for'];
|
|
3315
3263
|
/** Override translation keys (the line the list shows when the field is invalid and no item fails); unset keys fall back to Dutch. */
|
|
3316
3264
|
'translations'?: NLDDValidationList['translations'];
|
|
3317
3265
|
};
|
|
@@ -3326,6 +3274,8 @@ type NlddWindowProps = {
|
|
|
3326
3274
|
'width'?: NLDDWindow['width'];
|
|
3327
3275
|
/** CSS height (default: content height) */
|
|
3328
3276
|
'height'?: NLDDWindow['height'];
|
|
3277
|
+
/** Centers both axes on the viewport. Overridable per axis: `centered top="0"` is horizontally centered, top aligned. Mirrors CSS `place-items: center` with `align-items`/`justify-items` overrides. */
|
|
3278
|
+
'centered'?: true;
|
|
3329
3279
|
/** CSS top position of the top edge (e.g. '0', '100px') */
|
|
3330
3280
|
'top'?: NLDDWindow['top'];
|
|
3331
3281
|
/** CSS right value */
|
|
@@ -3334,16 +3284,14 @@ type NlddWindowProps = {
|
|
|
3334
3284
|
'bottom'?: NLDDWindow['bottom'];
|
|
3335
3285
|
/** CSS left position of the left edge */
|
|
3336
3286
|
'left'?: NLDDWindow['left'];
|
|
3337
|
-
/** Centers both axes on the viewport. Overridable per axis: `centered top="0"` is horizontally centered, top aligned. Mirrors CSS `place-items: center` with `align-items`/`justify-items` overrides. */
|
|
3338
|
-
'centered'?: true;
|
|
3339
3287
|
/** Accessible name (aria-label). Unset, the window takes the text of the nldd-top-title-bar inside it, and without one the i18n default ('Venster'). Each window needs a unique, descriptive name, from either. */
|
|
3340
3288
|
'accessible-label'?: NLDDWindow['accessibleLabel'];
|
|
3341
|
-
/** Override translation keys; unset keys fall back to the Dutch default. */
|
|
3342
|
-
'translations'?: NLDDWindow['translations'];
|
|
3343
3289
|
/** A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a process of several steps, a form with filled-in fields. Escape and the dismiss button keep working. */
|
|
3344
3290
|
'no-light-dismiss'?: true;
|
|
3345
3291
|
/** Whether the window is open. Set it to open or close the window, as an alternative to show() and hide(). The window clears it itself when it closes another way (Escape, the backdrop, the close button of its title bar), so bind it together with the close event. */
|
|
3346
3292
|
'open'?: true;
|
|
3293
|
+
/** Override translation keys; unset keys fall back to the Dutch default. */
|
|
3294
|
+
'translations'?: NLDDWindow['translations'];
|
|
3347
3295
|
};
|
|
3348
3296
|
|
|
3349
3297
|
declare module 'react' {
|
|
@@ -3418,7 +3366,7 @@ declare module 'react' {
|
|
|
3418
3366
|
'nldd-file-field': NlddElement<NLDDFileField, NlddFileFieldProps>;
|
|
3419
3367
|
/** Nederlandse Digitale Dienst Form Component Plain custom element (extends HTMLElement, no Lit), required for light-DOM autofill. Renders a real `<form>` element in the LIGHT DOM around its children. Chrome's autofill engine looks for native `<input>` elements that have a `<form>` ancestor in the light DOM; with shadow-DOM inputs it can't find them, so we keep this component shadow-less. **Differs from other `nldd-*` components:** - No shadowRoot: all children live in the light DOM (inside the inner `<form>`) - No Lit: a plain HTMLElement with manual attribute mirroring - **Requires a global stylesheet import**: the vertical rhythm rules live in `dist/css/form.css` (or `global.css`), not in a component-specific shadow stylesheet. Import it as part of your app's global CSS bundle. **When a field turns red:** on submit the form marks every control the browser rejects with `invalid`, and clears it again once the value passes. Setting `invalid` yourself is fine, but do it on submit, not while someone is still typing, or a field turns red over a value that is not finished yet. **Two usage modes:** 1. **Auto-wrap** (default): write children directly. Component creates a `<form>` element and migrates children into it via MutationObserver. Simplest API. 2. **User-provided form** (framework-friendly): write your own `<form>` as direct child. Component detects it, takes over attribute mirroring, and skips the migration. Children stay where your framework puts them, so there is no DOM shuffling to conflict with React/Vue/Angular reconciliation. **Framework interop:** In auto-wrap mode every direct child is moved into the inner form through a MutationObserver. That works fine for most React/Vue use cases, because frameworks only mutate the DOM when their virtual DOM changes. For edge cases (animation libraries that track DOM position, SSR hydration mismatches, frameworks that actively check sibling positions) use **user-provided form** mode instead. For programmatic manipulation, use the `form` getter so you work with the inner `<form>` element directly (see the last example). */
|
|
3420
3368
|
'nldd-form': NlddElement<NLDDForm, NlddFormProps>;
|
|
3421
|
-
/** A layout wrapper for the action buttons at the bottom of a form (typically a submit button or a button group). Follows the same responsive layout as `nldd-form-field`: with `label-alignment="right"` or `"left"` the content gets the same indent as the fields above it, thanks to a `::before` pseudo-element that acts as the spacer column where the label would sit. Inherits `label-alignment`
|
|
3369
|
+
/** A layout wrapper for the action buttons at the bottom of a form (typically a submit button or a button group). Follows the same responsive layout as `nldd-form-field`: with `label-alignment="right"` or `"left"` the content gets the same indent as the fields above it, thanks to a `::before` pseudo-element that acts as the spacer column where the label would sit. Inherits `label-alignment` from a wrapping `nldd-form`. A `label-alignment` of its own wins. */
|
|
3422
3370
|
'nldd-form-actions': NlddElement<NLDDFormActions, NlddFormActionsProps>;
|
|
3423
3371
|
/** A field around one input: its label, supporting label, optional badge, validation and help text. It finds the input among its children, hands it the label as its accessible name and gives it an id, so you write no `for` or `id` yourself. The input is the first one it finds, leaving out what sits in an nldd-toolbar inside the field: a toolbar works on the field, such as the formatting bar above an nldd-text-editor, and is never the field itself. A native `for` cannot cross a shadow boundary, so a click on the label focuses the input from script. Mark the optional fields with `optional`, not the required ones; the design guidelines say why. Put the requirements on a value in an nldd-validation-list inside the same field. What only your server knows, such as a password found in a breach, the app names in `unmet` on the input itself: see nldd-validation-list. The field hands the list its input and puts the list in the input's accessible description, before the help text. */
|
|
3424
3372
|
'nldd-form-field': NlddElement<NLDDFormField, NlddFormFieldProps>;
|
|
@@ -3520,7 +3468,7 @@ declare module 'react' {
|
|
|
3520
3468
|
/** A horizontal group of mutually exclusive (radio) or multi-select (checkbox) options. Exports both NLDDSegmentedControl and NLDDSegmentedControlItem. */
|
|
3521
3469
|
'nldd-segmented-control': NlddElement<NLDDSegmentedControl, NlddSegmentedControlProps>;
|
|
3522
3470
|
'nldd-segmented-control-item': NlddElement<NLDDSegmentedControlItem, NlddSegmentedControlItemProps>;
|
|
3523
|
-
/** An overlay component that slides in from the side or bottom of the screen. Based on the native <dialog> element for built-in accessibility, focus management, and Escape key support. On small (sm) viewports the sheet always renders as a bottom sheet, regardless of the configured placement. Render the sheet at the document root (teleport/portal it to `document.body`), never inside a split view's content flow: as a slotted flex child it would steal
|
|
3471
|
+
/** An overlay component that slides in from the side or bottom of the screen. Based on the native <dialog> element for built-in accessibility, focus management, and Escape key support. On small (sm) viewports the sheet always renders as a bottom sheet, regardless of the configured placement. Render the sheet at the document root (teleport/portal it to `document.body`), never inside a split view's content flow: as a slotted flex child it would steal the height of the pane it lands in. A sheet holds a whole nldd-page: an nldd-top-title-bar in its header slot, the content, and a footer when there are actions. The page behaves as it does anywhere else, with only the middle scrolling, and the text of the bar is also the sheet's accessible name. Do not build a header of your own. Open and close it with `open`, bound to your state together with the close event: the sheet clears `open` itself when the user closes it. show() and hide() do the same for code without a binding. Keep the sheet in the DOM rather than mounting it when it opens, or the animations are skipped. */
|
|
3524
3472
|
'nldd-sheet': NlddElement<NLDDSheet, NlddSheetProps>;
|
|
3525
3473
|
/** The required root shell of a Nederlandse Digitale Dienst application. Always contains a split view or an nldd-page as direct content. The document font comes from the package stylesheet (`@nldd/design-system/styles`), not from this component: it gives `body` the body font and content color as soon as a shell is on the page, inside `@layer reset` so any rule of your own wins. Import only the tokens (`/styles/tokens`) and text you write in the light DOM keeps the browser default. Set background="tinted" to give the whole application a tinted background. All descendants read --context-background-color via --_shell-background-color automatically. Individual components can override locally with their own background attribute. The same background color is forced on `document.body` so that browser- chrome surfaces (iOS overscroll bounce, status bar, page-margin areas) blend with the app instead of revealing the user-agent's default white. Cleared when the shell disconnects. The app scrolls the DOCUMENT (root mode) or lets each `nldd-page` scroll inside its pane (nested mode). The mode is derived from the outermost horizontal split view: one column means the document scrolls, several columns mean the panes do. An app without such a split view is a single column at every width and therefore scrolls the document too. Nested scrolling would cost it the rubber-band and the collapsing browser toolbar on iOS for nothing. Set `--context-scroll-mode` on the `nldd-shell` itself to override the derived mode; an inherited value loses from it. In nested scroll mode `overscroll-behavior: none` is set on `document.documentElement` and `document.body` while the shell is connected. Combined with `overscroll-behavior: contain` on `nldd-page`'s scroll target, this prevents iOS rubber-band on the viewport when scroll gestures land outside an `nldd-page` (e.g. on a top-bar). In root scroll mode the document itself is the scroller, so this is lifted to let the native rubber-band happen. Cleared on last disconnect. */
|
|
3526
3474
|
'nldd-shell': NlddElement<NLDDShell, NlddShellProps>;
|
|
@@ -3542,13 +3490,11 @@ declare module 'react' {
|
|
|
3542
3490
|
'nldd-split-button': NlddElement<NLDDSplitButton, NlddSplitButtonProps>;
|
|
3543
3491
|
/** A divider line between panels in a split view. The divider runs from edge to edge in the direction perpendicular to the orientation. An optional drag handle indicates that the divider is draggable (future functionality). */
|
|
3544
3492
|
'nldd-split-view-divider': NlddElement<NLDDSplitViewDivider, NlddSplitViewDividerProps>;
|
|
3545
|
-
/** A simple pane container for use inside split views. The split view automatically sets context: whether a back button should be shown. The consumer sets `has-content` to indicate the pane has content. The consumer sets `back-text` on the `nldd-top-title-bar` inside the pane. The split view sets `hide-back` when the back button is not applicable. The pane automatically hides the back button via CSS when `hide-back` is active. The pane sets `--context-background-color` which cascades down to all descendants. Set `background="tinted"` on a pane to give it a tinted background independently of sibling panes. Descendants such as `nldd-page` read `--context-background-color` automatically. A pane stretches its slotted content to fill it (`::slotted(*) { flex-grow: 1 }`), so slot only layout content here. Overlays (`nldd-sheet`, popovers, dialogs, menus) belong at the document root: teleport/portal them to `document.body`. Do not leave an overlay as a light-DOM sibling of a split view: it gets slotted into the main pane and becomes an extra flex-grow child that steals pane height, so in document-scroll (root) mode a short page's sticky footer floats mid-screen instead of docking. */
|
|
3546
|
-
'nldd-split-view-pane': NlddElement<NLDDSplitViewPane, NlddSplitViewPaneProps>;
|
|
3547
3493
|
/** A vertical split view with multiple stacked panes. The number of panes is set via the `panes` attribute. Each pane automatically gets a numbered slot: pane-1, pane-2, etc. Panes that do not fit the available height are automatically hidden. */
|
|
3548
3494
|
'nldd-stacked-split-view': NlddElement<NLDDStackedSplitView, NlddStackedSplitViewProps>;
|
|
3549
3495
|
/** A narrow, page-wide status bar (24px) with a deep background color per variant. Use it for persistent system state: an outage, planned maintenance, a draft view or a recording in progress. The bar deliberately shows no icon and supports text only. The text itself has to name the status ("Storing: …", "Gepland onderhoud …"), so the meaning does not follow from color alone (WCAG 1.4.1). Keep the text short: the bar shows one line and truncates with an ellipsis, certainly on narrower screens. For a long message with a lot of information only the essence belongs in the bar. Point to a separate page or sheet for the rest (through `href` or `button`, for instance), where the user can read on. The whole bar can be clickable: set `href` (renders an `<a>`) or `button` (renders a `<button>`; listen for the native `click` event). Without either the bar is static. On interaction a chevron appears as an affordance. One action per bar at most; several actions, or links in running text, belong in nldd-banner. The bar is the first thing on the screen: above nldd-top-navigation-bar or nldd-top-title-bar, across the whole app, also when a split view shows several panes. It reports the state of the service, not of one page, so it never sits inside the content or below a top bar. Below a top bar it says so in development. At the top of the page, in Safari, its color carries on above the page when the page is pulled down, and the ribbon of an nldd-top-navigation-bar below it then starts under the bar, as it does at rest. role and aria-live are set automatically from the variant: - critical → role="alert" (implies aria-live="assertive"; interrupts the screen reader) - others → role="status" aria-live="polite" Not overridable. If you need a quieter component, pick a different one. Use `critical` only for a real emergency: role="alert" interrupts the screen reader on every change of the content, so do not put text in it that changes regularly (a counting-down timer, for example). */
|
|
3550
3496
|
'nldd-status-bar': NlddElement<NLDDStatusBar, NlddStatusBarProps>;
|
|
3551
|
-
/** Shows where you are in a process of several steps: a row of discs with a number (or a check mark on what is done), a label under each and a line connecting them. Other systems call this a stepper or a progress indicator. Mark the step you are on with `status="current"`. The parent derives the rest from its position: `past` before it, `future` after. With none marked, step
|
|
3497
|
+
/** Shows where you are in a process of several steps: a row of discs with a number (or a check mark on what is done), a label under each and a line connecting them. Other systems call this a stepper or a progress indicator. Mark the step you are on with `status="current"`. The parent derives the rest from its position: `past` before it, `future` after. With none marked, no step is current and every step is still to do. With more than one, the last one wins and a warning goes to the console in a dev build: a flow that forgets to clear the previous step still points at the furthest one. A `status="past"` or `status="future"` on another step overrides what is derived for that step, for flows that jump back or skip a step. One attribute, the same three values as `nldd-step-cell`, so a flow reads in one vocabulary whether it runs across or down. A bar without a current step shows what is coming, for instance on the page before a process starts. Use that sparingly: what someone needs there is the button that starts the task, and a bar that shows no progress tells little. Mark a step as soon as the process has begun. Horizontal only, for 3 to 5 steps and 7 at most: each step needs room for its label, and with more of them you count instead of seeing at a glance how far you are. For more steps, or steps under each other, build an `nldd-list` with an `nldd-step-cell` and an `nldd-title-cell` per row: vertical steps usually carry more than a title, and a list row already does that. When the bar is no wider than the sm breakpoint, or than 120px per step, whichever is wider (a container query, so measured on the component itself rather than on the viewport), it folds into one line of text plus a segmented bar. A label that is too long for its step breaks at a syllable. The full list of steps stays in the DOM, only visually hidden, so assistive software hears no less than a wide screen shows. A step that is a link or a button is out of the tab order then: Tab would land on something you cannot see (WCAG 2.4.7). Accessibility: a `nav` with a label, holding a `role="list"` with a `role="listitem"` per step. The current step gets `aria-current="step"`, the only notion WAI-ARIA has for this. "Done" and "still to do" do not exist as ARIA tokens and travel along as visually hidden text instead. */
|
|
3552
3498
|
'nldd-step-bar': NlddElement<NLDDStepBar, NlddStepBarProps>;
|
|
3553
3499
|
/** One step in an `nldd-step-bar`. `status="current"` marks the step you are on; the parent derives the status of the others and the number of each, which live here as internal state rather than as public API. `past` and `future` override what is derived for this step. */
|
|
3554
3500
|
'nldd-step-bar-item': NlddElement<NLDDStepBarItem, NlddStepBarItemProps>;
|
|
@@ -3566,7 +3512,7 @@ declare module 'react' {
|
|
|
3566
3512
|
/** A horizontal navigation bar with mutually exclusive tabs. Exports both NLDDTabBar and NLDDTabBarItem. When the tabs do not fit, the ones that do not fit go behind a "Meer tabs" button at the end, in a menu. The current tab always stays in the bar: if it would fall in the part that does not fit, another tab goes to the menu in its place. While tabs are in the menu, the bar fills its container and the tabs in it share the width in proportion to their own. Choosing a tab in the bar changes nothing about what is shown; choosing one from the menu swaps it with the last tab in the bar, so the bar does not jump. `centered` has no effect then. In an nldd-toolbar the other items go to the toolbar's menu first, by their priority; when it is the bar's turn, it narrows down to the current tab beside its button, and only then moves into the toolbar's menu as a whole. Tabs are hidden, never moved, so a framework that renders them finds them where it put them. Only a tab that does not fit on its own is cut off. */
|
|
3567
3513
|
'nldd-tab-bar': NlddElement<NLDDTabBar, NlddTabBarProps>;
|
|
3568
3514
|
'nldd-tab-bar-item': NlddElement<NLDDTabBarItem, NlddTabBarItemProps>;
|
|
3569
|
-
/** Exports both NLDDTable and NLDDTableRow. A data table presented as a boxed surface (rounded corners, an inset border ring, a base or tinted fill) that aligns content into shared columns using a CSS grid + subgrid. Row dividers run full-bleed to the edges; the inline padding lives on the rows, so it insets the cell content but not the dividers. Column widths are defined ONCE on the table via the `columns` attribute (a CSS grid track list), like an HTML `<colgroup>`. Rows are `<nldd-table-row>` elements whose children are the existing `nldd-cell` family. Every row uses `grid-template-columns: subgrid`, so all rows snap to the same columns. A generic `nldd-cell` gets `width="full"`, so it fills its column, unless it sets a length of its own. Header: put one `<nldd-table-row slot="header">` in the `header` slot. Its cells become column headers (role="columnheader"). Row headers: give the cell that says what a row is about `row-header` (`nldd-cell`, `nldd-title-cell`, `nldd-text-cell`, `nldd-description-cell`). The row then gives it role="rowheader" instead of "cell", so a screen reader names the row along with every other cell in it, like `<th scope="row">`. The attribute goes on the cell, not as a column index on the row or table, so it survives columns hidden at a breakpoint and needs no counting. It changes the semantics only: the cell variant still decides the look. The cell above the row headers, in the header row, stays a columnheader. Headers that span rows or columns are not supported. Responsive: two complementary strategies. (1) Give columns a minimum width (e.g. `minmax(160px,1fr)`). The table is its own scroll container, so it scrolls horizontally when too narrow (no wrapper needed). (2) Drop columns at breakpoints: provide `sm-columns`/`md-columns`/ `lg-columns` (shorter track lists) and hide the dropped columns' cells with `hide-below`/`hide-above` at the matching breakpoint. The table picks the track list for its own width via the standard sm/md/lg breakpoints. Selection and sorting are intentionally NOT built in: add a column with an `nldd-cell` + `nldd-checkbox` for selection, and drive sorting from an external control (e.g. a dropdown). */
|
|
3515
|
+
/** Exports both NLDDTable and NLDDTableRow. A data table presented as a boxed surface (rounded corners, an inset border ring, a base or tinted fill) that aligns content into shared columns using a CSS grid + subgrid. Row dividers run full-bleed to the edges; the inline padding lives on the rows, so it insets the cell content but not the dividers. Column widths are defined ONCE on the table via the `columns` attribute (a CSS grid track list), like an HTML `<colgroup>`. Rows are `<nldd-table-row>` elements whose children are the existing `nldd-cell` family. Every row uses `grid-template-columns: subgrid`, so all rows snap to the same columns. A generic `nldd-cell` gets `width="full"`, so it fills its column, unless it sets a length of its own. Header: put one `<nldd-table-row slot="header">` in the `header` slot. Its cells become column headers (role="columnheader"). Row headers: give the cell that says what a row is about `row-header` (`nldd-cell`, `nldd-title-cell`, `nldd-text-cell`, `nldd-description-cell`). The row then gives it role="rowheader" instead of "cell", so a screen reader names the row along with every other cell in it, like `<th scope="row">`. The attribute goes on the cell, not as a column index on the row or table, so it survives columns hidden at a breakpoint and needs no counting. It changes the semantics only: the cell variant still decides the look. The cell above the row headers, in the header row, stays a columnheader. Headers that span rows or columns are not supported. Responsive: two complementary strategies. (1) Give columns a minimum width (e.g. `minmax(160px,1fr)`). The table is its own scroll container, so it scrolls horizontally when too narrow (no wrapper needed). (2) Drop columns at breakpoints: provide `sm-columns`/`md-columns`/ `lg-columns` (shorter track lists) and hide the dropped columns' cells with `hide-below`/`hide-above` at the matching breakpoint. The table picks the track list for its own width via the standard sm/md/lg breakpoints. A hidden cell is gone at that width, for every reader: drop a column only when what it says is also somewhere else, such as in the row header or on a detail page the row links to. Otherwise scroll, which every table already does (WCAG 1.4.10). Selection and sorting are intentionally NOT built in: add a column with an `nldd-cell` + `nldd-checkbox` for selection, and drive sorting from an external control (e.g. a dropdown). */
|
|
3570
3516
|
'nldd-table': NlddElement<NLDDTable, NlddTableProps>;
|
|
3571
3517
|
'nldd-table-row': NlddElement<NLDDTableRow, NlddTableRowProps>;
|
|
3572
3518
|
/** A compact property that has been assigned to something: a category, a type, a role, a certification. What it says changes only when someone edits the content. A tag is not interactive. Do not use it for a state the system keeps itself, such as "Active" or "Expired", because that is `nldd-badge`. If the user can remove the thing or click it, it is `nldd-token`. */
|