@nldd/design-system 0.20.0 → 0.21.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 +204 -8
- package/dist/cdn/autoloader.js +181 -0
- package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
- package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
- package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
- package/dist/cdn/chunks/avatar-group-rknt4FBO.js +338 -0
- package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
- package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
- package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
- package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
- package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
- package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
- package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
- package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
- package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
- package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
- package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
- package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
- package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
- package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
- package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
- package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
- package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
- package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
- package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
- package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
- package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
- package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
- package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
- package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
- package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
- package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
- package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
- package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
- package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
- package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
- package/dist/cdn/chunks/combo-box-DyBQSaQl.js +512 -0
- package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
- package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
- package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
- package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
- package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
- package/dist/cdn/chunks/date-field-Clti_wKN.js +654 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-2TCQLd5D.js +993 -0
- package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
- package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
- package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
- package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
- package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
- package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
- package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
- package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
- package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
- package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
- package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
- package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
- package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
- package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
- package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
- package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
- package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
- package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
- package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
- package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
- package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
- package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
- package/dist/cdn/chunks/document-tab-bar-CUc4WWY3.js +973 -0
- package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
- package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
- package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
- package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
- package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
- package/dist/cdn/chunks/file-field-Bff6_1pp.js +1484 -0
- package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
- package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
- package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
- package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
- package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
- package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
- package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
- package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
- package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
- package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
- package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
- package/dist/{components/icon-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
- package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
- package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
- package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
- package/dist/cdn/chunks/identity-Cg1l0HhB.js +187 -0
- package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
- package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
- package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
- package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
- package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
- package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
- package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
- package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
- package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
- package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
- package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
- package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
- package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
- package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
- package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
- package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
- package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
- package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
- package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
- package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
- package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
- package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
- package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
- package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
- package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
- package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
- package/dist/cdn/chunks/menu-BOu_pD1Q.js +719 -0
- package/dist/cdn/chunks/menu-bar-0NFXvq-v.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-DGSC_ETi.js +365 -0
- package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
- package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
- package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
- package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
- package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
- package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
- package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
- package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
- package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
- package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
- package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
- package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
- package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
- package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
- package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
- package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
- package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
- package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
- package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
- package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
- package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
- package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
- package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
- package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
- package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
- package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
- package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
- package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
- package/dist/cdn/chunks/popover-C-CVVtfl.js +334 -0
- package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
- package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
- package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
- package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
- package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
- package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
- package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
- package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
- package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
- package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
- package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
- package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
- package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
- package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
- package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
- package/dist/cdn/chunks/return-focus-Xmagtk6r.js +52 -0
- package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
- package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
- package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
- package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
- package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
- package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
- package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
- package/dist/cdn/chunks/sheet-BdVCqm2H.js +340 -0
- package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
- package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
- package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
- package/dist/cdn/chunks/sidebar-section-DP4jnS7g.js +353 -0
- package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
- package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
- package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
- package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
- package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
- package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
- package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
- package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
- package/dist/cdn/chunks/split-button-BeXnOUTt.js +268 -0
- package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
- package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
- package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
- package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
- package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
- package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
- package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
- package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
- package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
- package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
- package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
- package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
- package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
- package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
- package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
- package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
- package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
- package/dist/cdn/chunks/tab-bar-DmslEoPD.js +697 -0
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
- package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
- package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
- package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
- package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
- package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
- package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
- package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
- package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
- package/dist/cdn/chunks/time-field-Cj5WojfO.js +597 -0
- package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
- package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
- package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
- package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
- package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
- package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
- package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
- package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
- package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
- package/dist/cdn/chunks/token-field-hvDB3l6O.js +664 -0
- package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
- package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
- package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
- package/dist/cdn/chunks/toolbar-iNd1VmuG.js +408 -0
- package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
- package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
- package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
- package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
- package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
- package/dist/cdn/chunks/top-navigation-bar-D1hjWIF3.js +925 -0
- package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
- package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
- package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
- package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
- package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
- package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
- package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
- package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
- package/dist/cdn/chunks/window-t5iFkMLY.js +227 -0
- package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
- package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
- package/dist/components/actions/menu/menu-item.d.ts +6 -2
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +12 -1
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.js +1 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +2 -1
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +22 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +67 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +15 -2
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +38 -3
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +1 -1
- package/dist/components/layout/container/container.template.js +1 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
- 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 +13 -3
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
- 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 +19 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/nldd.min.js +298 -298
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +11 -3
- package/dist/utilities/autoloader.d.ts +33 -0
- package/dist/utilities/autoloader.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.d.ts +3 -0
- package/dist/utilities/autoloader.generated.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.js +141 -0
- package/dist/utilities/autoloader.generated.js.map +1 -0
- package/dist/utilities/autoloader.js +94 -0
- package/dist/utilities/autoloader.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +9 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +45 -3
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +12 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/loading-tags.d.ts +7 -0
- package/dist/utilities/loading-tags.d.ts.map +1 -0
- package/dist/utilities/loading-tags.js +7 -0
- package/dist/utilities/loading-tags.js.map +1 -0
- package/dist/utilities/owner-form.d.ts +3 -3
- package/dist/utilities/owner-form.d.ts.map +1 -1
- package/dist/utilities/owner-form.js +6 -3
- package/dist/utilities/owner-form.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/package.json +50 -11
- package/dist/components/breakpoints-DtL62nLI.js +0 -45
- package/dist/components/components.js +0 -68243
- package/dist/components/decorate-DD7uUxHb.js +0 -51
- package/dist/components/defer-focus-dzorHsCQ.js +0 -176
- package/dist/components/dev-checks-CLB9G43h.js +0 -2711
- package/dist/components/dist-245LaK9m.js +0 -1479
- package/dist/components/dist-BFZM0YsR.js +0 -15772
- package/dist/components/dist-BNkeFjc3.js +0 -1180
- package/dist/components/dist-CSC1dG3L.js +0 -365
- package/dist/components/dist-CeMOOqgP.js +0 -1509
- package/dist/components/dist-DFjwTlJV.js +0 -624
- package/dist/components/dist-DHhnz3Gv.js +0 -381
- package/dist/components/dist-PeUX4vPq.js +0 -2857
- package/dist/components/dist-m70B83qb.js +0 -463
- package/dist/components/element-state-BnarBv0M.js +0 -42
- package/dist/components/gherkin-DzYbEwDO.js +0 -107
- package/dist/components/icon-button-8gvQCwCW.js +0 -2305
- package/dist/components/input-modality-D_CY185R.js +0 -48
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
- package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
- package/dist/components/shell-Dh5IwHd-.js +0 -222
- package/dist/components/toml-D0Pix_8Q.js +0 -58
- package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
|
@@ -0,0 +1,3323 @@
|
|
|
1
|
+
// Generated by scripts/generate-react-types.js. Do not edit.
|
|
2
|
+
//
|
|
3
|
+
// Declares every nldd-* element in React's JSX. Import it once in your project
|
|
4
|
+
// (for example in a .d.ts file that your tsconfig includes):
|
|
5
|
+
//
|
|
6
|
+
// import '@nldd/design-system/react';
|
|
7
|
+
//
|
|
8
|
+
// Attributes are written as in markup (accessible-label), which works in React
|
|
9
|
+
// 18 and 19. A boolean takes true or nothing: write disabled={busy || undefined},
|
|
10
|
+
// since React 18 turns false into the text "false", which reads as on. Events
|
|
11
|
+
// and properties without an attribute go through a ref.
|
|
12
|
+
|
|
13
|
+
import type * as React from 'react';
|
|
14
|
+
import type { NLDDActivityIndicator } from '@nldd/design-system/activity-indicator';
|
|
15
|
+
import type { NLDDAvatar } from '@nldd/design-system/avatar';
|
|
16
|
+
import type { NLDDAvatarGroup } from '@nldd/design-system/avatar-group';
|
|
17
|
+
import type { NLDDBadge } from '@nldd/design-system/badge';
|
|
18
|
+
import type { NLDDBanner } from '@nldd/design-system/banner';
|
|
19
|
+
import type { NLDDBarSplitView } from '@nldd/design-system/bar-split-view';
|
|
20
|
+
import type { NLDDBlockquote } from '@nldd/design-system/blockquote';
|
|
21
|
+
import type { NLDDBox } from '@nldd/design-system/box';
|
|
22
|
+
import type { NLDDBreadcrumbs } from '@nldd/design-system/breadcrumbs';
|
|
23
|
+
import type { NLDDBreadcrumbsItem } from '@nldd/design-system/breadcrumbs';
|
|
24
|
+
import type { NLDDButton } from '@nldd/design-system/button';
|
|
25
|
+
import type { NLDDButtonBar } from '@nldd/design-system/button-bar';
|
|
26
|
+
import type { NLDDButtonGroup } from '@nldd/design-system/button-group';
|
|
27
|
+
import type { NLDDCard } from '@nldd/design-system/card';
|
|
28
|
+
import type { NLDDCell } from '@nldd/design-system/cell';
|
|
29
|
+
import type { NLDDCheckbox } from '@nldd/design-system/checkbox';
|
|
30
|
+
import type { NLDDCheckboxField } from '@nldd/design-system/checkbox-field';
|
|
31
|
+
import type { NLDDCodeEditor } from '@nldd/design-system/code-editor';
|
|
32
|
+
import type { NLDDCodeViewer } from '@nldd/design-system/code-viewer';
|
|
33
|
+
import type { NLDDCollection } from '@nldd/design-system/collection';
|
|
34
|
+
import type { NLDDComboBox } from '@nldd/design-system/combo-box';
|
|
35
|
+
import type { NLDDContainer } from '@nldd/design-system/container';
|
|
36
|
+
import type { NLDDDateField } from '@nldd/design-system/date-field';
|
|
37
|
+
import type { NLDDDatePicker } from '@nldd/design-system/date-picker';
|
|
38
|
+
import type { NLDDDescriptionCell } from '@nldd/design-system/description-cell';
|
|
39
|
+
import type { NLDDDivider } from '@nldd/design-system/divider';
|
|
40
|
+
import type { NLDDDocumentTabBar } from '@nldd/design-system/document-tab-bar';
|
|
41
|
+
import type { NLDDDocumentTabBarItem } from '@nldd/design-system/document-tab-bar';
|
|
42
|
+
import type { NLDDDragHandleCell } from '@nldd/design-system/drag-handle-cell';
|
|
43
|
+
import type { NLDDDropdown } from '@nldd/design-system/dropdown';
|
|
44
|
+
import type { NLDDFileField } from '@nldd/design-system/file-field';
|
|
45
|
+
import type { NLDDForm } from '@nldd/design-system/form';
|
|
46
|
+
import type { NLDDFormActions } from '@nldd/design-system/form-actions';
|
|
47
|
+
import type { NLDDFormField } from '@nldd/design-system/form-field';
|
|
48
|
+
import type { NLDDFormFieldHelpText } from '@nldd/design-system/form-field';
|
|
49
|
+
import type { NLDDFormSection } from '@nldd/design-system/form-section';
|
|
50
|
+
import type { NLDDFullBleedSection } from '@nldd/design-system/full-bleed-section';
|
|
51
|
+
import type { NLDDHero } from '@nldd/design-system/hero';
|
|
52
|
+
import type { NLDDIcon } from '@nldd/design-system/icon';
|
|
53
|
+
import type { NLDDIconButton } from '@nldd/design-system/icon-button';
|
|
54
|
+
import type { NLDDIconCell } from '@nldd/design-system/icon-cell';
|
|
55
|
+
import type { NLDDIdentity } from '@nldd/design-system/identity';
|
|
56
|
+
import type { NLDDImage } from '@nldd/design-system/image';
|
|
57
|
+
import type { NLDDInlineDialog } from '@nldd/design-system/inline-dialog';
|
|
58
|
+
import type { NLDDJustInTimeEducation } from '@nldd/design-system/just-in-time-education';
|
|
59
|
+
import type { NLDDKanban } from '@nldd/design-system/kanban';
|
|
60
|
+
import type { NLDDKanbanColumn } from '@nldd/design-system/kanban-column';
|
|
61
|
+
import type { NLDDKeyboardShortcut } from '@nldd/design-system/keyboard-shortcut';
|
|
62
|
+
import type { NLDDLink } from '@nldd/design-system/link';
|
|
63
|
+
import type { NLDDLinkGroup } from '@nldd/design-system/link-group';
|
|
64
|
+
import type { NLDDList } from '@nldd/design-system/list';
|
|
65
|
+
import type { NLDDListItem } from '@nldd/design-system/list-item';
|
|
66
|
+
import type { NLDDListItemSegment } from '@nldd/design-system/list-item-segment';
|
|
67
|
+
import type { NLDDMenu } from '@nldd/design-system/menu';
|
|
68
|
+
import type { NLDDMenuBar } from '@nldd/design-system/menu-bar';
|
|
69
|
+
import type { NLDDMenuBarItem } from '@nldd/design-system/menu-bar-item';
|
|
70
|
+
import type { NLDDMenuDivider } from '@nldd/design-system/menu-divider';
|
|
71
|
+
import type { NLDDMenuGroup } from '@nldd/design-system/menu-group';
|
|
72
|
+
import type { NLDDMenuItem } from '@nldd/design-system/menu-item';
|
|
73
|
+
import type { NLDDModalDialog } from '@nldd/design-system/modal-dialog';
|
|
74
|
+
import type { NLDDMultiLineTextField } from '@nldd/design-system/multi-line-text-field';
|
|
75
|
+
import type { NLDDNavigationSplitView } from '@nldd/design-system/navigation-split-view';
|
|
76
|
+
import type { NLDDNotification } from '@nldd/design-system/notification';
|
|
77
|
+
import type { NLDDNumberField } from '@nldd/design-system/number-field';
|
|
78
|
+
import type { NLDDOneHalfOneHalfSection } from '@nldd/design-system/one-half-one-half-section';
|
|
79
|
+
import type { NLDDOneThirdTwoThirdsSection } from '@nldd/design-system/one-third-two-thirds-section';
|
|
80
|
+
import type { NLDDOneTimeCodeField } from '@nldd/design-system/one-time-code-field';
|
|
81
|
+
import type { NLDDPage } from '@nldd/design-system/page';
|
|
82
|
+
import type { NLDDPageFooter } from '@nldd/design-system/page-footer';
|
|
83
|
+
import type { NLDDPageFooterLegalBar } from '@nldd/design-system/page-footer';
|
|
84
|
+
import type { NLDDPageFooterLegalBarItem } from '@nldd/design-system/page-footer';
|
|
85
|
+
import type { NLDDPagination } from '@nldd/design-system/pagination';
|
|
86
|
+
import type { NLDDPasswordField } from '@nldd/design-system/password-field';
|
|
87
|
+
import type { NLDDPopover } from '@nldd/design-system/popover';
|
|
88
|
+
import type { NLDDProgressBar } from '@nldd/design-system/progress-bar';
|
|
89
|
+
import type { NLDDProgressBarSegmentIndicator } from '@nldd/design-system/progress-bar';
|
|
90
|
+
import type { NLDDProgressCircle } from '@nldd/design-system/progress-circle';
|
|
91
|
+
import type { NLDDProgressCircleSegmentIndicator } from '@nldd/design-system/progress-circle';
|
|
92
|
+
import type { NLDDRadioButton } from '@nldd/design-system/radio-button';
|
|
93
|
+
import type { NLDDRadioButtonField } from '@nldd/design-system/radio-button-field';
|
|
94
|
+
import type { NLDDRadioButtonGroup } from '@nldd/design-system/radio-button-group';
|
|
95
|
+
import type { NLDDRichText } from '@nldd/design-system/rich-text';
|
|
96
|
+
import type { NLDDSearchField } from '@nldd/design-system/search-field';
|
|
97
|
+
import type { NLDDSegmentedControl } from '@nldd/design-system/segmented-control';
|
|
98
|
+
import type { NLDDSegmentedControlItem } from '@nldd/design-system/segmented-control';
|
|
99
|
+
import type { NLDDSheet } from '@nldd/design-system/sheet';
|
|
100
|
+
import type { NLDDShell } from '@nldd/design-system/shell';
|
|
101
|
+
import type { NLDDSideBySideSplitView } from '@nldd/design-system/side-by-side-split-view';
|
|
102
|
+
import type { NLDDSidebarSection } from '@nldd/design-system/sidebar-section';
|
|
103
|
+
import type { NLDDSimpleSection } from '@nldd/design-system/simple-section';
|
|
104
|
+
import type { NLDDSkipLink } from '@nldd/design-system/skip-link';
|
|
105
|
+
import type { NLDDSlider } from '@nldd/design-system/slider';
|
|
106
|
+
import type { NLDDSpacer } from '@nldd/design-system/spacer';
|
|
107
|
+
import type { NLDDSpacerCell } from '@nldd/design-system/spacer-cell';
|
|
108
|
+
import type { NLDDSplitButton } from '@nldd/design-system/split-button';
|
|
109
|
+
import type { NLDDSplitViewDivider } from '@nldd/design-system/split-view-divider';
|
|
110
|
+
import type { NLDDSplitViewPane } from '@nldd/design-system/split-view-pane';
|
|
111
|
+
import type { NLDDStackedSplitView } from '@nldd/design-system/stacked-split-view';
|
|
112
|
+
import type { NLDDStatusBar } from '@nldd/design-system/status-bar';
|
|
113
|
+
import type { NLDDStepBar } from '@nldd/design-system/step-bar';
|
|
114
|
+
import type { NLDDStepBarItem } from '@nldd/design-system/step-bar';
|
|
115
|
+
import type { NLDDStepCell } from '@nldd/design-system/step-cell';
|
|
116
|
+
import type { NLDDStepper } from '@nldd/design-system/stepper';
|
|
117
|
+
import type { NLDDSwatchPicker } from '@nldd/design-system/swatch-picker';
|
|
118
|
+
import type { NLDDSwatchPickerItem } from '@nldd/design-system/swatch-picker';
|
|
119
|
+
import type { NLDDSwitch } from '@nldd/design-system/switch';
|
|
120
|
+
import type { NLDDSwitchField } from '@nldd/design-system/switch-field';
|
|
121
|
+
import type { NLDDTabBar } from '@nldd/design-system/tab-bar';
|
|
122
|
+
import type { NLDDTabBarItem } from '@nldd/design-system/tab-bar';
|
|
123
|
+
import type { NLDDTable } from '@nldd/design-system/table';
|
|
124
|
+
import type { NLDDTableRow } from '@nldd/design-system/table';
|
|
125
|
+
import type { NLDDTag } from '@nldd/design-system/tag';
|
|
126
|
+
import type { NLDDText } from '@nldd/design-system/text';
|
|
127
|
+
import type { NLDDTextCell } from '@nldd/design-system/text-cell';
|
|
128
|
+
import type { NLDDTextEditor } from '@nldd/design-system/text-editor';
|
|
129
|
+
import type { NLDDTextField } from '@nldd/design-system/text-field';
|
|
130
|
+
import type { NLDDTimeField } from '@nldd/design-system/time-field';
|
|
131
|
+
import type { NLDDTimePicker } from '@nldd/design-system/time-picker';
|
|
132
|
+
import type { NLDDTitle } from '@nldd/design-system/title';
|
|
133
|
+
import type { NLDDTitleCell } from '@nldd/design-system/title-cell';
|
|
134
|
+
import type { NLDDToggleButton } from '@nldd/design-system/toggle-button';
|
|
135
|
+
import type { NLDDToggleButtonGroup } from '@nldd/design-system/toggle-button-group';
|
|
136
|
+
import type { NLDDToken } from '@nldd/design-system/token';
|
|
137
|
+
import type { NLDDTokenField } from '@nldd/design-system/token-field';
|
|
138
|
+
import type { NLDDToolbar } from '@nldd/design-system/toolbar';
|
|
139
|
+
import type { NLDDToolbarItem } from '@nldd/design-system/toolbar-item';
|
|
140
|
+
import type { NLDDToolbarTitle } from '@nldd/design-system/toolbar-title';
|
|
141
|
+
import type { NLDDTooltip } from '@nldd/design-system/tooltip';
|
|
142
|
+
import type { NLDDTopNavigationBar } from '@nldd/design-system/top-navigation-bar';
|
|
143
|
+
import type { NLDDTopTitleBar } from '@nldd/design-system/top-title-bar';
|
|
144
|
+
import type { NLDDTwoThirdsOneThirdSection } from '@nldd/design-system/two-thirds-one-third-section';
|
|
145
|
+
import type { NLDDValidationItem } from '@nldd/design-system/validation-list';
|
|
146
|
+
import type { NLDDValidationList } from '@nldd/design-system/validation-list';
|
|
147
|
+
import type { NLDDVisuallyHidden } from '@nldd/design-system/visually-hidden';
|
|
148
|
+
import type { NLDDWindow } from '@nldd/design-system/window';
|
|
149
|
+
|
|
150
|
+
/** The element's own attributes, on top of what every HTML element takes. Not
|
|
151
|
+
* named Element: inside namespace JSX that name is React's JSX.Element. */
|
|
152
|
+
type NlddElement<E, P> = Omit<React.DetailedHTMLProps<React.HTMLAttributes<E>, E>, keyof P> & P;
|
|
153
|
+
|
|
154
|
+
type NlddActivityIndicatorProps = {
|
|
155
|
+
/** Circle diameter on the icon scale: 16,20,24,28,32,40,44,48,56,64,80,96 (default '32') */
|
|
156
|
+
'size'?: NLDDActivityIndicator['size'];
|
|
157
|
+
/** Show the label under the indicator (default false; the label still feeds the accessible name) */
|
|
158
|
+
'show-text'?: true;
|
|
159
|
+
/** Label text. Falls back to the translated "Laden" when unset. */
|
|
160
|
+
'text'?: NLDDActivityIndicator['text'];
|
|
161
|
+
/** 'delay' (the default) waits 1000ms before showing (anti-flash); 'instant' shows immediately (the fade-in still plays). */
|
|
162
|
+
'timing'?: NLDDActivityIndicator['timing'];
|
|
163
|
+
/** Mark the loader as finished while keeping the element mounted; clears aria-busy and hides the indicator. */
|
|
164
|
+
'complete'?: true;
|
|
165
|
+
/** 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. */
|
|
166
|
+
'no-backdrop'?: true;
|
|
167
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
168
|
+
'translations'?: NLDDActivityIndicator['translations'];
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
type NlddAvatarProps = {
|
|
172
|
+
/** `person` (circle, person icon) or `organization` (rounded, building icon); default `person` */
|
|
173
|
+
'type'?: NLDDAvatar['type'];
|
|
174
|
+
/** `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 */
|
|
175
|
+
'size'?: NLDDAvatar['size'];
|
|
176
|
+
/** `neutral` (the default, a neutral fill) or `inherit` (fill in the content color: the `--context-content-color` channel, or `currentColor` when that is unset; text in the contrast color, so the avatar can replace an icon in a button for instance) */
|
|
177
|
+
'color'?: NLDDAvatar['color'];
|
|
178
|
+
/** 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) */
|
|
179
|
+
'icon-aligned'?: true;
|
|
180
|
+
/** Name of the person or organization; supplies the derived initials and the accessible label */
|
|
181
|
+
'name'?: NLDDAvatar['name'];
|
|
182
|
+
/** Explicit initials, at most 3 characters (overrides what is derived from `name`; also for organization acronyms) */
|
|
183
|
+
'initials'?: NLDDAvatar['initials'];
|
|
184
|
+
/** Image source; falls back to initials or icon when it fails to load */
|
|
185
|
+
'src'?: NLDDAvatar['src'];
|
|
186
|
+
/** Responsive source set for the image (the component sets `sizes` itself) */
|
|
187
|
+
'srcset'?: NLDDAvatar['srcset'];
|
|
188
|
+
/** Overrides the type-dependent fallback icon */
|
|
189
|
+
'icon'?: NLDDAvatar['icon'];
|
|
190
|
+
/** Name of the link or button; without it `name` is used */
|
|
191
|
+
'accessible-label'?: NLDDAvatar['accessibleLabel'];
|
|
192
|
+
/** Hides the avatar from assistive software (use when the name already stands beside it as text) */
|
|
193
|
+
'decorative'?: true;
|
|
194
|
+
/** 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 */
|
|
195
|
+
'tooltip-timing'?: NLDDAvatar['tooltipTiming'];
|
|
196
|
+
/** 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) */
|
|
197
|
+
'href'?: NLDDAvatar['href'];
|
|
198
|
+
/** 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. */
|
|
199
|
+
'no-tab'?: true;
|
|
200
|
+
/** Makes the avatar a button; ignored when `href` is set */
|
|
201
|
+
'button'?: true;
|
|
202
|
+
/** 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. */
|
|
203
|
+
'target'?: NLDDAvatar['target'];
|
|
204
|
+
/** Link rel for href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
205
|
+
'rel'?: NLDDAvatar['rel'];
|
|
206
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
207
|
+
'translations'?: NLDDAvatar['translations'];
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
type NlddAvatarGroupProps = {
|
|
211
|
+
/** Diameter of each avatar in px (spacer-aligned: 16, 20, 24, 28, 32, 40, 44, 48, 56, 64, 80, 96); default 40 */
|
|
212
|
+
'size'?: NLDDAvatarGroup['size'];
|
|
213
|
+
/** Shows at most this many avatars; the rest go behind a "+N" button that opens them as a list of names. A longer number is set smaller, and where it no longer fits the disc the button shows an ellipsis with the count in a tooltip (a number shows from size 24 with one digit, 40 with two, 56 with three and 80 with four) */
|
|
214
|
+
'max'?: NLDDAvatarGroup['max'];
|
|
215
|
+
/** Describes the group as a whole (e.g. "Editors"); without a label the group is not a landmark of its own and the avatars speak for themselves */
|
|
216
|
+
'accessible-label'?: NLDDAvatarGroup['accessibleLabel'];
|
|
217
|
+
'translations'?: NLDDAvatarGroup['translations'];
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
type NlddBadgeProps = {
|
|
221
|
+
/** Size: 'sm' | 'md' (default: 'md') */
|
|
222
|
+
'size'?: NLDDBadge['size'];
|
|
223
|
+
/** The meaning of the badge, the same set as nldd-status-bar, or 'inherit' to fill in the content color around it: the `--context-content-color` channel a list item, table row or menu sets, falling back to `currentColor`. 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. */
|
|
224
|
+
'color'?: NLDDBadge['color'];
|
|
225
|
+
/** 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 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. */
|
|
226
|
+
'custom-color'?: NLDDBadge['customColor'];
|
|
227
|
+
/** Grows a ring out of the badge and fades it, for something happening right now (a live connection, an outage). Respects `prefers-reduced-motion`. */
|
|
228
|
+
'pulse'?: true;
|
|
229
|
+
/** Text (takes precedence over number) */
|
|
230
|
+
'text'?: NLDDBadge['text'];
|
|
231
|
+
/** Numeric value. Shortened when it is over max */
|
|
232
|
+
'number'?: NLDDBadge['number'];
|
|
233
|
+
/** Value above which number is shown as "{max}+" (default: 99) */
|
|
234
|
+
'max'?: NLDDBadge['max'];
|
|
235
|
+
/** Icon name. Icon-only renders as a square; with text or number the icon goes on the left. */
|
|
236
|
+
'icon'?: NLDDBadge['icon'];
|
|
237
|
+
/** Accessible label for screen readers. Falls back to text/number; otherwise to the i18n default ("Notificatie"). */
|
|
238
|
+
'accessible-label'?: NLDDBadge['accessibleLabel'];
|
|
239
|
+
/** Hides the badge from assistive software (use when the text beside it says the same, such as a dot next to a status word) */
|
|
240
|
+
'decorative'?: true;
|
|
241
|
+
'translations'?: NLDDBadge['translations'];
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
type NlddBannerProps = {
|
|
245
|
+
/** Color and default icon (default: 'neutral') */
|
|
246
|
+
'variant'?: NLDDBanner['variant'];
|
|
247
|
+
/** 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. */
|
|
248
|
+
'size'?: NLDDBanner['size'];
|
|
249
|
+
/** 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 */
|
|
250
|
+
'icon'?: NLDDBanner['icon'];
|
|
251
|
+
/** Main text (heading or paragraph, depending on heading-level) */
|
|
252
|
+
'text'?: NLDDBanner['text'];
|
|
253
|
+
/** Supporting text below the heading */
|
|
254
|
+
'supporting-text'?: NLDDBanner['supportingText'];
|
|
255
|
+
/** Renders text as h1–h6; absent renders a p */
|
|
256
|
+
'heading-level'?: NLDDBanner['headingLevel'];
|
|
257
|
+
/** Show a close button in the top-right; emits `dismiss` when clicked */
|
|
258
|
+
'dismissible'?: true;
|
|
259
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
260
|
+
'translations'?: NLDDBanner['translations'];
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
type NlddBarSplitViewProps = {
|
|
264
|
+
/** Background color variant (default: inherit) */
|
|
265
|
+
'background'?: NLDDBarSplitView['background'];
|
|
266
|
+
/** Show this panel from this breakpoint and larger */
|
|
267
|
+
'above'?: NLDDBarSplitView['above'];
|
|
268
|
+
/** Show this panel up to and including this breakpoint */
|
|
269
|
+
'below'?: NLDDBarSplitView['below'];
|
|
270
|
+
/** Show this panel only at this breakpoint */
|
|
271
|
+
'only'?: NLDDBarSplitView['only'];
|
|
272
|
+
/** Position of this panel at sm (lower comes first) */
|
|
273
|
+
'sm-order'?: NLDDBarSplitView['smOrder'];
|
|
274
|
+
/** Position of this panel at md (lower comes first) */
|
|
275
|
+
'md-order'?: NLDDBarSplitView['mdOrder'];
|
|
276
|
+
/** Position of this panel at lg (lower comes first) */
|
|
277
|
+
'lg-order'?: NLDDBarSplitView['lgOrder'];
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
type NlddBlockquoteProps = {
|
|
281
|
+
/** URL of the source (forwarded to the <blockquote> element) */
|
|
282
|
+
'cite'?: NLDDBlockquote['cite'];
|
|
283
|
+
/** 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. A quote in running text keeps its own size. Set per breakpoint on purpose: a breakpoint without one keeps the quote's own size, so a quote made large for a wide screen never breaks a narrow one. Never smaller than the quote's own 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 the quote's own size */
|
|
284
|
+
'sm-custom-size'?: NLDDBlockquote['smCustomSize'];
|
|
285
|
+
/** The same, at md */
|
|
286
|
+
'md-custom-size'?: NLDDBlockquote['mdCustomSize'];
|
|
287
|
+
/** The same, at lg */
|
|
288
|
+
'lg-custom-size'?: NLDDBlockquote['lgCustomSize'];
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
type NlddBoxProps = {
|
|
292
|
+
/** Which surface this box draws, named as it is on nldd-shell, nldd-page, nldd-split-view-pane 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. */
|
|
293
|
+
'background'?: NLDDBox['background'];
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
type NlddBreadcrumbsProps = {
|
|
297
|
+
/** Override the nav's aria-label. Defaults to the i18n value (NL: "Kruimelpad"). */
|
|
298
|
+
'accessible-label'?: NLDDBreadcrumbs['accessibleLabel'];
|
|
299
|
+
/** Override translation keys; unset keys fall back to the Dutch default. */
|
|
300
|
+
'translations'?: NLDDBreadcrumbs['translations'];
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
type NlddBreadcrumbsItemProps = {
|
|
304
|
+
/** Link target. Ignored when `current` is set. */
|
|
305
|
+
'href'?: NLDDBreadcrumbsItem['href'];
|
|
306
|
+
/** Marks this item as the current page (renders as plain text + `aria-current="page"`). Typical use is on the last item. */
|
|
307
|
+
'current'?: true;
|
|
308
|
+
/** Item label. Content in the default slot wins. */
|
|
309
|
+
'text'?: NLDDBreadcrumbsItem['text'];
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
type NlddButtonProps = {
|
|
313
|
+
/** Visual style, color included: 'primary' | 'secondary' | 'destructive' | 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-base' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | 'inherit-filled' | 'inherit-tinted'. The inherit appearances derive their colors from currentColor, for buttons on colored surfaces; inherit-filled uses the surface color (--context-parent-background-color) as the label color, with a white/black contrast flip as a fallback. */
|
|
314
|
+
'appearance'?: NLDDButton['appearance'];
|
|
315
|
+
/** Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). 'lg' uses larger text and 24px start/end icons. */
|
|
316
|
+
'size'?: NLDDButton['size'];
|
|
317
|
+
/** Horizontal alignment of the button content: 'left' | 'center' | 'right' (default: unset, centered). Most visible with width="full" or a fixed width. */
|
|
318
|
+
'horizontal-alignment'?: NLDDButton['horizontalAlignment'];
|
|
319
|
+
/** Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px') */
|
|
320
|
+
'width'?: NLDDButton['width'];
|
|
321
|
+
/** 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 — a cap only means something if the content respects it. */
|
|
322
|
+
'max-width'?: NLDDButton['maxWidth'];
|
|
323
|
+
/** 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. */
|
|
324
|
+
'no-tab'?: true;
|
|
325
|
+
/** Whether the button has a icon to indicate it opens a menu or popover */
|
|
326
|
+
'expandable'?: true;
|
|
327
|
+
/** 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. */
|
|
328
|
+
'expanded'?: true;
|
|
329
|
+
/** 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. */
|
|
330
|
+
'popup-type'?: NLDDButton['popupType'];
|
|
331
|
+
/** Button type for form submission: 'button' | 'submit' | 'reset' (ignored when href is set) */
|
|
332
|
+
'type'?: NLDDButton['type'];
|
|
333
|
+
/** 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`. */
|
|
334
|
+
'popovertarget'?: NLDDButton['popovertarget'];
|
|
335
|
+
/** 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. */
|
|
336
|
+
'loading'?: true;
|
|
337
|
+
/** 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". */
|
|
338
|
+
'loading-text'?: NLDDButton['loadingText'];
|
|
339
|
+
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
340
|
+
'disabled'?: true;
|
|
341
|
+
/** Button text */
|
|
342
|
+
'text'?: NLDDButton['text'];
|
|
343
|
+
/** 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). */
|
|
344
|
+
'supporting-text'?: NLDDButton['supportingText'];
|
|
345
|
+
/** When true, truncates overflowing text with an ellipsis instead of letting it wrap. Requires the button (or an ancestor) to constrain the width. */
|
|
346
|
+
'single-line'?: true;
|
|
347
|
+
/** Removes the per-appearance highlight border (e.g. when nldd-button-bar draws a single group border instead). */
|
|
348
|
+
'no-highlight-border'?: true;
|
|
349
|
+
/** Icon name for the start icon (before text) */
|
|
350
|
+
'start-icon'?: NLDDButton['startIcon'];
|
|
351
|
+
/** Icon name for the end icon (after text) */
|
|
352
|
+
'end-icon'?: NLDDButton['endIcon'];
|
|
353
|
+
/** Accessible label for the button, overrides text for screen readers */
|
|
354
|
+
'accessible-label'?: NLDDButton['accessibleLabel'];
|
|
355
|
+
/** 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. */
|
|
356
|
+
'shortcut'?: NLDDButton['shortcut'];
|
|
357
|
+
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
358
|
+
'shortcut-mac'?: NLDDButton['shortcutMac'];
|
|
359
|
+
/** Override of `shortcut` on Windows (falls back to `shortcut`). */
|
|
360
|
+
'shortcut-windows'?: NLDDButton['shortcutWindows'];
|
|
361
|
+
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
362
|
+
'shortcut-linux'?: NLDDButton['shortcutLinux'];
|
|
363
|
+
/** When set, renders an <a> element instead of <button> */
|
|
364
|
+
'href'?: NLDDButton['href'];
|
|
365
|
+
/** 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. */
|
|
366
|
+
'target'?: NLDDButton['target'];
|
|
367
|
+
/** 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. */
|
|
368
|
+
'download'?: NLDDButton['download'];
|
|
369
|
+
/** Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
370
|
+
'rel'?: NLDDButton['rel'];
|
|
371
|
+
/** Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch. */
|
|
372
|
+
'translations'?: NLDDButton['translations'];
|
|
373
|
+
/** Id of the form this button submits or resets, for a button that sits outside it. Takes an `nldd-form` as well as a plain `<form>`. Without it the button acts on the form it stands in. The id is looked up in the button's own root, as the platform does it: a button inside a shadow tree does not reach a form in the document around it. An id that finds nothing, or an `nldd-form` that has not rendered its form yet, says so in development rather than letting the click do nothing. */
|
|
374
|
+
'form'?: NLDDButton['form'];
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
type NlddButtonBarProps = {
|
|
378
|
+
/** Bar size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). At 'lg', icon-button children stack their label below the icon (mobile action-bar style). */
|
|
379
|
+
'size'?: NLDDButtonBar['size'];
|
|
380
|
+
/** Visual style of the buttons (default: 'neutral-tinted'; 'inherit-tinted' and 'inherit-filled' for a colored surface) */
|
|
381
|
+
'appearance'?: NLDDButtonBar['appearance'];
|
|
382
|
+
/** Disabled state */
|
|
383
|
+
'disabled'?: true;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
type NlddButtonBarDividerProps = {
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
type NlddButtonGroupProps = {
|
|
390
|
+
/** Button group size, set on every button in it: 'sm' | 'md' (default: 'md') */
|
|
391
|
+
'size'?: NLDDButtonGroup['size'];
|
|
392
|
+
/** Layout direction: 'auto' | 'horizontal' | 'vertical' (default: 'auto') */
|
|
393
|
+
'orientation'?: NLDDButtonGroup['orientation'];
|
|
394
|
+
/** '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) */
|
|
395
|
+
'width'?: NLDDButtonGroup['width'];
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
type NlddCardProps = {
|
|
399
|
+
/** 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` */
|
|
400
|
+
'background'?: NLDDCard['background'];
|
|
401
|
+
/** Accessible name of the card; with `href`/`button` it names the link or button, otherwise the card region */
|
|
402
|
+
'accessible-label'?: NLDDCard['accessibleLabel'];
|
|
403
|
+
/** Makes the whole card a link to this URL (empty = no link) */
|
|
404
|
+
'href'?: NLDDCard['href'];
|
|
405
|
+
/** 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. */
|
|
406
|
+
'target'?: NLDDCard['target'];
|
|
407
|
+
/** 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. */
|
|
408
|
+
'download'?: NLDDCard['download'];
|
|
409
|
+
/** Link rel for href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
410
|
+
'rel'?: NLDDCard['rel'];
|
|
411
|
+
/** Makes the whole card a button; ignored when `href` is set */
|
|
412
|
+
'button'?: true;
|
|
413
|
+
/** Override translation keys (e.g. the "opent in nieuw tabblad" announcement) */
|
|
414
|
+
'translations'?: NLDDCard['translations'];
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
type NlddCellProps = {
|
|
418
|
+
/** 'full' | 'fit-content' | CSS length (e.g. '120px', '10rem'). Default: 'fit-content' */
|
|
419
|
+
'width'?: NLDDCell['width'];
|
|
420
|
+
/** Minimum width as CSS length (e.g. '80px', '5rem') */
|
|
421
|
+
'min-width'?: NLDDCell['minWidth'];
|
|
422
|
+
/** Maximum width as CSS length (e.g. '200px', '20rem') */
|
|
423
|
+
'max-width'?: NLDDCell['maxWidth'];
|
|
424
|
+
/** Minimum height as CSS length (e.g. '44px', '3rem') */
|
|
425
|
+
'min-height'?: NLDDCell['minHeight'];
|
|
426
|
+
/** Horizontal alignment of slotted content (default: 'left') */
|
|
427
|
+
'horizontal-alignment'?: NLDDCell['horizontalAlignment'];
|
|
428
|
+
/** Vertical alignment of slotted content (default: 'center') */
|
|
429
|
+
'vertical-alignment'?: NLDDCell['verticalAlignment'];
|
|
430
|
+
'row-header'?: true;
|
|
431
|
+
'hide-below'?: NLDDCell['hideBelow'];
|
|
432
|
+
'hide-above'?: NLDDCell['hideAbove'];
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
type NlddCheckboxProps = {
|
|
436
|
+
/** Checked state */
|
|
437
|
+
'checked'?: true;
|
|
438
|
+
/** 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. */
|
|
439
|
+
'decorative'?: true;
|
|
440
|
+
/** Disabled state */
|
|
441
|
+
'disabled'?: true;
|
|
442
|
+
/** 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. */
|
|
443
|
+
'no-tab'?: true;
|
|
444
|
+
/** Indeterminate state (takes precedence over checked visually) */
|
|
445
|
+
'indeterminate'?: true;
|
|
446
|
+
/** Value for form submission */
|
|
447
|
+
'value'?: NLDDCheckbox['value'];
|
|
448
|
+
/** Name for form submission */
|
|
449
|
+
'name'?: NLDDCheckbox['name'];
|
|
450
|
+
/** 'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. 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. */
|
|
451
|
+
'color'?: NLDDCheckbox['color'];
|
|
452
|
+
/** Accessible label forwarded as aria-label to the native input. */
|
|
453
|
+
'accessible-label'?: NLDDCheckbox['accessibleLabel'];
|
|
454
|
+
/** Required state */
|
|
455
|
+
'required'?: true;
|
|
456
|
+
/** 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. */
|
|
457
|
+
'invalid'?: true;
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
type NlddCheckboxFieldProps = {
|
|
461
|
+
/** Checked state */
|
|
462
|
+
'checked'?: true;
|
|
463
|
+
/** Indeterminate state */
|
|
464
|
+
'indeterminate'?: true;
|
|
465
|
+
/** Disabled state */
|
|
466
|
+
'disabled'?: true;
|
|
467
|
+
/** Value for form submission */
|
|
468
|
+
'value'?: NLDDCheckboxField['value'];
|
|
469
|
+
/** Name for form submission */
|
|
470
|
+
'name'?: NLDDCheckboxField['name'];
|
|
471
|
+
/** 'inherit' 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. */
|
|
472
|
+
'color'?: NLDDCheckboxField['color'];
|
|
473
|
+
/** Label text for the checkbox */
|
|
474
|
+
'label'?: NLDDCheckboxField['label'];
|
|
475
|
+
/** Required state */
|
|
476
|
+
'required'?: true;
|
|
477
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
478
|
+
'invalid'?: true;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
type NlddCodeEditorProps = {
|
|
482
|
+
/** Wrap long lines instead of horizontal scroll */
|
|
483
|
+
'wrap'?: true;
|
|
484
|
+
/** 'none' (fixed) | 'vertical' (drag) | 'auto' (grow, default) */
|
|
485
|
+
'resize'?: NLDDCodeEditor['resize'];
|
|
486
|
+
/** 'simple' (default, bare) | 'input-field' (framed surface) */
|
|
487
|
+
'appearance'?: NLDDCodeEditor['appearance'];
|
|
488
|
+
/** Highlight grammar (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python). Empty disables highlighting. */
|
|
489
|
+
'language'?: NLDDCodeEditor['language'];
|
|
490
|
+
/** Show a line-number gutter */
|
|
491
|
+
'line-numbers'?: true;
|
|
492
|
+
/** Editor content */
|
|
493
|
+
'value'?: NLDDCodeEditor['value'];
|
|
494
|
+
/** Sets the id on the editable element. Set automatically by nldd-form-field. */
|
|
495
|
+
'input-id'?: NLDDCodeEditor['inputId'];
|
|
496
|
+
/** Placeholder text shown while empty */
|
|
497
|
+
'placeholder'?: NLDDCodeEditor['placeholder'];
|
|
498
|
+
/** Disabled state */
|
|
499
|
+
'disabled'?: true;
|
|
500
|
+
/** Field name for form submission */
|
|
501
|
+
'name'?: NLDDCodeEditor['name'];
|
|
502
|
+
/** Readonly state (focusable and selectable, not editable) */
|
|
503
|
+
'readonly'?: true;
|
|
504
|
+
/** Required state */
|
|
505
|
+
'required'?: true;
|
|
506
|
+
/** Minimum visible rows (the floor in every resize mode). Default: 6. */
|
|
507
|
+
'rows'?: NLDDCodeEditor['rows'];
|
|
508
|
+
/** Accessible label forwarded to the editor. Set automatically by nldd-form-field. */
|
|
509
|
+
'accessible-label'?: NLDDCodeEditor['accessibleLabel'];
|
|
510
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
511
|
+
'invalid'?: true;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
type NlddCodeViewerProps = {
|
|
515
|
+
/** 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 when embedding inside a parent surface. */
|
|
516
|
+
'appearance'?: NLDDCodeViewer['appearance'];
|
|
517
|
+
/** Grammar to highlight with. Empty disables highlighting. */
|
|
518
|
+
'language'?: NLDDCodeViewer['language'];
|
|
519
|
+
/** The content is a unified diff: shown with line colors, old and new line numbers, and the changed words marked. */
|
|
520
|
+
'diff'?: true;
|
|
521
|
+
/** Hide the copy-to-clipboard button (shown by default). */
|
|
522
|
+
'no-copy'?: true;
|
|
523
|
+
/** Wrap long lines instead of horizontal scroll */
|
|
524
|
+
'wrap'?: true;
|
|
525
|
+
/** Tallest the block may get, as a CSS length (e.g. '400px', '50vh'). Beyond it the content scrolls vertically. Unset means no cap. */
|
|
526
|
+
'max-height'?: NLDDCodeViewer['maxHeight'];
|
|
527
|
+
'copy-unavailable'?: true;
|
|
528
|
+
/** Override translation keys (e.g. the copy button labels and the scroll-region label); unset keys fall back to Dutch. */
|
|
529
|
+
'translations'?: NLDDCodeViewer['translations'];
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
type NlddCollectionProps = {
|
|
533
|
+
/** Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid') */
|
|
534
|
+
'layout'?: NLDDCollection['layout'];
|
|
535
|
+
/** Smallest width an item takes (e.g. '280px', '20rem'). In grid and lanes the minimum column width: columns are at least this wide and grow to fill the row. In horizontal scroll the flex-basis: items never shrink below it, and grow up to `item-max-width` when they fit. No effect in stack. Never forces horizontal overflow, the value is clamped to the container width. */
|
|
536
|
+
'item-min-width'?: NLDDCollection['itemMinWidth'];
|
|
537
|
+
/** Largest width an item takes in horizontal scroll (e.g. '400px', '25rem'), so one or two items that fit do not stretch across the container. Defaults to 480px; `item-max-width="100%"` lets items fill the container, as they did before the default. Never narrower than `item-min-width`, which wins when it is wider, and never wider than the container. No effect in grid, lanes and stack: a grid leaves empty columns rather than stretching an item, and its right edge stays aligned with the content around it. */
|
|
538
|
+
'item-max-width'?: NLDDCollection['itemMaxWidth'];
|
|
539
|
+
/** Gap between items, as a step of the spacing scale ('0', '2', '4', '6', '8', '10', '12', '16', '20', '24', '28', '32', '40', '44', '48', '56', '64', '80', '96'). Overrides the responsive default at every breakpoint; unset keeps the default. */
|
|
540
|
+
'gap'?: NLDDCollection['gap'];
|
|
541
|
+
/** Gap at sm, overriding `gap` there */
|
|
542
|
+
'sm-gap'?: NLDDCollection['smGap'];
|
|
543
|
+
/** Gap at md, overriding `gap` there */
|
|
544
|
+
'md-gap'?: NLDDCollection['mdGap'];
|
|
545
|
+
/** Gap at lg, overriding `gap` there */
|
|
546
|
+
'lg-gap'?: NLDDCollection['lgGap'];
|
|
547
|
+
/** Number of visible items per page (default: 24) */
|
|
548
|
+
'max-items'?: NLDDCollection['maxItems'];
|
|
549
|
+
/** Translation overrides; unset keys fall back to Dutch. Available keys: 'components.collection.previous-action', 'components.collection.next-action', 'components.collection.load-more-action' */
|
|
550
|
+
'translations'?: NLDDCollection['translations'];
|
|
551
|
+
/** Show load-more button in grid/stack (default: false) */
|
|
552
|
+
'show-load-more'?: true;
|
|
553
|
+
/** Automatically load more items when the button becomes visible */
|
|
554
|
+
'lazy-load'?: true;
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
type NlddComboBoxProps = {
|
|
558
|
+
/** The selected form value */
|
|
559
|
+
'value'?: NLDDComboBox['value'];
|
|
560
|
+
/** 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. */
|
|
561
|
+
'text'?: NLDDComboBox['text'];
|
|
562
|
+
/** Placeholder text for the input */
|
|
563
|
+
'placeholder'?: NLDDComboBox['placeholder'];
|
|
564
|
+
/** Size: 'sm' | 'md' (default: 'md') */
|
|
565
|
+
'size'?: NLDDComboBox['size'];
|
|
566
|
+
/** Marks the field as valid */
|
|
567
|
+
'valid'?: true;
|
|
568
|
+
/** Marks the field as invalid */
|
|
569
|
+
'invalid'?: true;
|
|
570
|
+
/** Disabled state */
|
|
571
|
+
'disabled'?: true;
|
|
572
|
+
/** 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. */
|
|
573
|
+
'readonly'?: true;
|
|
574
|
+
/** 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. */
|
|
575
|
+
'allow-custom'?: true;
|
|
576
|
+
/** 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. */
|
|
577
|
+
'no-filter'?: true;
|
|
578
|
+
/** Input name for form submission */
|
|
579
|
+
'name'?: NLDDComboBox['name'];
|
|
580
|
+
/** 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. */
|
|
581
|
+
'autocomplete'?: NLDDComboBox['autocomplete'];
|
|
582
|
+
/** Maximum visible items before scrolling (default: 8) */
|
|
583
|
+
'max-items'?: NLDDComboBox['maxItems'];
|
|
584
|
+
/** Accessible label forwarded as aria-label to the input. Required for screen reader accessibility. */
|
|
585
|
+
'accessible-label'?: NLDDComboBox['accessibleLabel'];
|
|
586
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
587
|
+
'translations'?: NLDDComboBox['translations'];
|
|
588
|
+
/** Disables browser spellchecking on the inner input */
|
|
589
|
+
'no-spellcheck'?: true;
|
|
590
|
+
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
591
|
+
'width'?: NLDDComboBox['width'];
|
|
592
|
+
/** Required state */
|
|
593
|
+
'required'?: true;
|
|
594
|
+
/** Regular expression the value has to match, as the native `pattern`. */
|
|
595
|
+
'pattern'?: NLDDComboBox['pattern'];
|
|
596
|
+
/** Fewest characters the value may have. */
|
|
597
|
+
'minlength'?: NLDDComboBox['minlength'];
|
|
598
|
+
/** Most characters the value may have. */
|
|
599
|
+
'maxlength'?: NLDDComboBox['maxlength'];
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
type NlddContainerProps = {
|
|
603
|
+
/** 'stack' | 'row' | 'wrap' | 'grid' | 'columns' | 'lanes' (default: 'stack') */
|
|
604
|
+
'layout'?: NLDDContainer['layout'];
|
|
605
|
+
/** Force N columns (1-8) for layout=grid/columns/lanes */
|
|
606
|
+
'column-count'?: NLDDContainer['columnCount'];
|
|
607
|
+
/** Column count when this container is sm-wide */
|
|
608
|
+
'sm-column-count'?: NLDDContainer['smColumnCount'];
|
|
609
|
+
/** Column count when this container is md-wide */
|
|
610
|
+
'md-column-count'?: NLDDContainer['mdColumnCount'];
|
|
611
|
+
/** Column count when this container is lg-wide */
|
|
612
|
+
'lg-column-count'?: NLDDContainer['lgColumnCount'];
|
|
613
|
+
/** 'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it. A 'fit-content' container takes its width from its content, so it cannot measure itself: its breakpoint padding, gap and column count follow the container around it. The same holds for a 'full' container inside a 'fit-content' one, since filling a parent that sizes to its content is sizing to the content too. */
|
|
614
|
+
'width'?: NLDDContainer['width'];
|
|
615
|
+
/** Minimum width as a CSS length (e.g. '280px') */
|
|
616
|
+
'min-width'?: NLDDContainer['minWidth'];
|
|
617
|
+
/** Maximum width as a CSS length (e.g. '480px') */
|
|
618
|
+
'max-width'?: NLDDContainer['maxWidth'];
|
|
619
|
+
/** 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. */
|
|
620
|
+
'min-height'?: NLDDContainer['minHeight'];
|
|
621
|
+
/** '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. */
|
|
622
|
+
'hide-on'?: NLDDContainer['hideOn'];
|
|
623
|
+
/** 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. */
|
|
624
|
+
'gap'?: NLDDContainer['gap'];
|
|
625
|
+
/** Gap at sm breakpoint */
|
|
626
|
+
'sm-gap'?: NLDDContainer['smGap'];
|
|
627
|
+
/** Gap at md breakpoint */
|
|
628
|
+
'md-gap'?: NLDDContainer['mdGap'];
|
|
629
|
+
/** Gap at lg breakpoint */
|
|
630
|
+
'lg-gap'?: NLDDContainer['lgGap'];
|
|
631
|
+
/** Padding for all sides */
|
|
632
|
+
'padding'?: NLDDContainer['padding'];
|
|
633
|
+
/** Padding for left and right */
|
|
634
|
+
'padding-inline'?: NLDDContainer['paddingInline'];
|
|
635
|
+
/** Padding for top and bottom */
|
|
636
|
+
'padding-block'?: NLDDContainer['paddingBlock'];
|
|
637
|
+
/** Padding top */
|
|
638
|
+
'padding-top'?: NLDDContainer['paddingTop'];
|
|
639
|
+
/** Padding right */
|
|
640
|
+
'padding-right'?: NLDDContainer['paddingRight'];
|
|
641
|
+
/** Padding bottom */
|
|
642
|
+
'padding-bottom'?: NLDDContainer['paddingBottom'];
|
|
643
|
+
/** Padding left Breakpoints for the sm/md/lg padding attributes below: sm is up to 640px, md is 641px to 1007px, lg is 1008px and up. Each is emitted as both an */
|
|
644
|
+
'padding-left'?: NLDDContainer['paddingLeft'];
|
|
645
|
+
/** Padding for all sides at sm */
|
|
646
|
+
'sm-padding'?: NLDDContainer['smPadding'];
|
|
647
|
+
/** Padding left and right at sm */
|
|
648
|
+
'sm-padding-inline'?: NLDDContainer['smPaddingInline'];
|
|
649
|
+
/** Padding top and bottom at sm */
|
|
650
|
+
'sm-padding-block'?: NLDDContainer['smPaddingBlock'];
|
|
651
|
+
/** Padding top at sm */
|
|
652
|
+
'sm-padding-top'?: NLDDContainer['smPaddingTop'];
|
|
653
|
+
/** Padding right at sm */
|
|
654
|
+
'sm-padding-right'?: NLDDContainer['smPaddingRight'];
|
|
655
|
+
/** Padding bottom at sm */
|
|
656
|
+
'sm-padding-bottom'?: NLDDContainer['smPaddingBottom'];
|
|
657
|
+
/** Padding left at sm */
|
|
658
|
+
'sm-padding-left'?: NLDDContainer['smPaddingLeft'];
|
|
659
|
+
/** Padding for all sides at md */
|
|
660
|
+
'md-padding'?: NLDDContainer['mdPadding'];
|
|
661
|
+
/** Padding left and right at md */
|
|
662
|
+
'md-padding-inline'?: NLDDContainer['mdPaddingInline'];
|
|
663
|
+
/** Padding top and bottom at md */
|
|
664
|
+
'md-padding-block'?: NLDDContainer['mdPaddingBlock'];
|
|
665
|
+
/** Padding top at md */
|
|
666
|
+
'md-padding-top'?: NLDDContainer['mdPaddingTop'];
|
|
667
|
+
/** Padding right at md */
|
|
668
|
+
'md-padding-right'?: NLDDContainer['mdPaddingRight'];
|
|
669
|
+
/** Padding bottom at md */
|
|
670
|
+
'md-padding-bottom'?: NLDDContainer['mdPaddingBottom'];
|
|
671
|
+
/** Padding left at md */
|
|
672
|
+
'md-padding-left'?: NLDDContainer['mdPaddingLeft'];
|
|
673
|
+
/** Padding for all sides at lg */
|
|
674
|
+
'lg-padding'?: NLDDContainer['lgPadding'];
|
|
675
|
+
/** Padding left and right at lg */
|
|
676
|
+
'lg-padding-inline'?: NLDDContainer['lgPaddingInline'];
|
|
677
|
+
/** Padding top and bottom at lg */
|
|
678
|
+
'lg-padding-block'?: NLDDContainer['lgPaddingBlock'];
|
|
679
|
+
/** Padding top at lg */
|
|
680
|
+
'lg-padding-top'?: NLDDContainer['lgPaddingTop'];
|
|
681
|
+
/** Padding right at lg */
|
|
682
|
+
'lg-padding-right'?: NLDDContainer['lgPaddingRight'];
|
|
683
|
+
/** Padding bottom at lg */
|
|
684
|
+
'lg-padding-bottom'?: NLDDContainer['lgPaddingBottom'];
|
|
685
|
+
/** Padding left at lg */
|
|
686
|
+
'lg-padding-left'?: NLDDContainer['lgPaddingLeft'];
|
|
687
|
+
/** 'left' | 'center' | 'right' */
|
|
688
|
+
'horizontal-alignment'?: NLDDContainer['horizontalAlignment'];
|
|
689
|
+
/** 'top' | 'center' | 'bottom' */
|
|
690
|
+
'vertical-alignment'?: NLDDContainer['verticalAlignment'];
|
|
691
|
+
/** Position of this child in the container */
|
|
692
|
+
'order'?: NLDDContainer['order'];
|
|
693
|
+
/** Position of this child at sm */
|
|
694
|
+
'sm-order'?: NLDDContainer['smOrder'];
|
|
695
|
+
/** Position of this child at md */
|
|
696
|
+
'md-order'?: NLDDContainer['mdOrder'];
|
|
697
|
+
/** Position of this child at lg */
|
|
698
|
+
'lg-order'?: NLDDContainer['lgOrder'];
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
type NlddDateFieldProps = {
|
|
702
|
+
/** 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
703
|
+
'size'?: NLDDDateField['size'];
|
|
704
|
+
/** 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. */
|
|
705
|
+
'value'?: NLDDDateField['value'];
|
|
706
|
+
/** Pick a period: two inputs and a calendar in range mode. */
|
|
707
|
+
'range'?: true;
|
|
708
|
+
/** Earliest allowed date as ISO (yyyy-mm-dd). */
|
|
709
|
+
'min'?: NLDDDateField['min'];
|
|
710
|
+
/** Latest allowed date as ISO (yyyy-mm-dd). */
|
|
711
|
+
'max'?: NLDDDateField['max'];
|
|
712
|
+
/** Hides the calendar button. It is shown by default. */
|
|
713
|
+
'no-picker'?: true;
|
|
714
|
+
/** Sets the id on the internal input. Set automatically by nldd-form-field. */
|
|
715
|
+
'input-id'?: NLDDDateField['inputId'];
|
|
716
|
+
/** Placeholder text. Do not put a format here; use the supporting label of nldd-form-field for that. */
|
|
717
|
+
'placeholder'?: NLDDDateField['placeholder'];
|
|
718
|
+
/** Marks the field as invalid. */
|
|
719
|
+
'invalid'?: true;
|
|
720
|
+
/** Marks the field as valid. */
|
|
721
|
+
'valid'?: true;
|
|
722
|
+
/** Disabled state. */
|
|
723
|
+
'disabled'?: true;
|
|
724
|
+
/** Read-only state. */
|
|
725
|
+
'readonly'?: true;
|
|
726
|
+
/** Required state. */
|
|
727
|
+
'required'?: true;
|
|
728
|
+
/** Name for form submission. */
|
|
729
|
+
'name'?: NLDDDateField['name'];
|
|
730
|
+
/** Autocomplete hint, for example 'bday'. */
|
|
731
|
+
'autocomplete'?: NLDDDateField['autocomplete'];
|
|
732
|
+
/** Accessible label for the internal input. Set automatically by nldd-form-field. */
|
|
733
|
+
'accessible-label'?: NLDDDateField['accessibleLabel'];
|
|
734
|
+
/** 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. */
|
|
735
|
+
'width'?: NLDDDateField['width'];
|
|
736
|
+
/** Translations; unspecified keys fall back to Dutch. */
|
|
737
|
+
'translations'?: NLDDDateField['translations'];
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
type NlddDatePickerProps = {
|
|
741
|
+
/** The chosen date as ISO (yyyy-mm-dd). Only without `range`. */
|
|
742
|
+
'value'?: NLDDDatePicker['value'];
|
|
743
|
+
/** Start of the period as ISO. Only with `range`. */
|
|
744
|
+
'start'?: NLDDDatePicker['start'];
|
|
745
|
+
/** End of the period as ISO. Only with `range`. */
|
|
746
|
+
'end'?: NLDDDatePicker['end'];
|
|
747
|
+
/** 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. */
|
|
748
|
+
'width'?: NLDDDatePicker['width'];
|
|
749
|
+
/** Pick a period instead of a single date. */
|
|
750
|
+
'range'?: true;
|
|
751
|
+
/** Earliest allowed date: ISO, or `today` with an offset (`today-18y`). */
|
|
752
|
+
'min'?: NLDDDatePicker['min'];
|
|
753
|
+
/** Latest allowed date: ISO, or `today` with an offset (`today+1y`). */
|
|
754
|
+
'max'?: NLDDDatePicker['max'];
|
|
755
|
+
/** First day of the week, 0 is Sunday. Default 1 (Monday). */
|
|
756
|
+
'first-day-of-week'?: NLDDDatePicker['firstDayOfWeek'];
|
|
757
|
+
/** Shows ISO week numbers in a column on the left. */
|
|
758
|
+
'week-numbers'?: true;
|
|
759
|
+
/** Accessible name of the calendar. */
|
|
760
|
+
'accessible-label'?: NLDDDatePicker['accessibleLabel'];
|
|
761
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
762
|
+
'invalid'?: true;
|
|
763
|
+
/** Translations; unspecified keys fall back to Dutch. */
|
|
764
|
+
'translations'?: NLDDDatePicker['translations'];
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
type NlddDescriptionCellProps = {
|
|
768
|
+
/** 'full' | 'fit-content' | CSS length (e.g. '200px', '20rem'). Default: 'full' */
|
|
769
|
+
'width'?: NLDDDescriptionCell['width'];
|
|
770
|
+
/** Minimum width as CSS length (e.g. '80px', '5rem') */
|
|
771
|
+
'min-width'?: NLDDDescriptionCell['minWidth'];
|
|
772
|
+
/** Maximum width as CSS length (e.g. '300px', '20rem') */
|
|
773
|
+
'max-width'?: NLDDDescriptionCell['maxWidth'];
|
|
774
|
+
/** Minimum height as CSS length (e.g. '44px', '3rem') */
|
|
775
|
+
'min-height'?: NLDDDescriptionCell['minHeight'];
|
|
776
|
+
/** Vertical alignment (default: 'center') */
|
|
777
|
+
'vertical-alignment'?: NLDDDescriptionCell['verticalAlignment'];
|
|
778
|
+
'row-header'?: true;
|
|
779
|
+
'hide-below'?: NLDDDescriptionCell['hideBelow'];
|
|
780
|
+
'hide-above'?: NLDDDescriptionCell['hideAbove'];
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
type NlddDividerProps = {
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
type NlddDocumentTabBarProps = {
|
|
787
|
+
/** Accessible name for the navigation landmark */
|
|
788
|
+
'accessible-label'?: NLDDDocumentTabBar['accessibleLabel'];
|
|
789
|
+
/** Renders a nav landmark instead of tablist; use when items have hrefs */
|
|
790
|
+
'navigation'?: true;
|
|
791
|
+
/** Translation overrides; unset keys fall back to Dutch. Available keys: 'components.document-tab-bar.show-more-tabs-action' (default: 'Toon meer tabbladen') */
|
|
792
|
+
'translations'?: NLDDDocumentTabBar['translations'];
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
type NlddDocumentTabBarItemProps = {
|
|
796
|
+
/** Selected state (managed by nldd-document-tab-bar) */
|
|
797
|
+
'selected'?: true;
|
|
798
|
+
/** Primary text */
|
|
799
|
+
'text'?: NLDDDocumentTabBarItem['text'];
|
|
800
|
+
/** Supporting text */
|
|
801
|
+
'supporting-text'?: NLDDDocumentTabBarItem['supportingText'];
|
|
802
|
+
/** Short primary text (visible below 200px width) */
|
|
803
|
+
'short-text'?: NLDDDocumentTabBarItem['shortText'];
|
|
804
|
+
/** Short supporting text (visible below 200px width) */
|
|
805
|
+
'short-supporting-text'?: NLDDDocumentTabBarItem['shortSupportingText'];
|
|
806
|
+
/** Optional link URL; renders an anchor instead of a div */
|
|
807
|
+
'href'?: NLDDDocumentTabBarItem['href'];
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
type NlddDragHandleCellProps = {
|
|
811
|
+
/** Handle size: 'sm' | 'md' (default: 'md') */
|
|
812
|
+
'size'?: NLDDDragHandleCell['size'];
|
|
813
|
+
/** Override translation keys; unset keys fall back to Dutch. Sets the handle's accessible label. */
|
|
814
|
+
'translations'?: NLDDDragHandleCell['translations'];
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
type NlddDropdownProps = {
|
|
818
|
+
/** Size: 'xs' | 'sm' | 'md' (default: 'md') */
|
|
819
|
+
'size'?: NLDDDropdown['size'];
|
|
820
|
+
/** Marks the field as valid */
|
|
821
|
+
'valid'?: true;
|
|
822
|
+
/** Marks the field as invalid */
|
|
823
|
+
'invalid'?: true;
|
|
824
|
+
/** Disabled state; also forwarded to the slotted select */
|
|
825
|
+
'disabled'?: true;
|
|
826
|
+
/** Reflects whether the native picker popup is open (driven internally) */
|
|
827
|
+
'expanded'?: true;
|
|
828
|
+
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
829
|
+
'width'?: NLDDDropdown['width'];
|
|
830
|
+
/** Accessible name, forwarded as aria-label to the slotted select */
|
|
831
|
+
'accessible-label'?: NLDDDropdown['accessibleLabel'];
|
|
832
|
+
/** Required state, handed to the slotted <select>. A `required` on the <select> itself is left alone. */
|
|
833
|
+
'required'?: true;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
type NlddFileFieldProps = {
|
|
837
|
+
/** 'control' (default): a row the height of a field. 'area': a tall surface with the upload icon and the accepted types when empty, and the file icon, name and buttons stacked once chosen; both states keep the same height */
|
|
838
|
+
'variant'?: NLDDFileField['variant'];
|
|
839
|
+
/** Field size: 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
840
|
+
'size'?: NLDDFileField['size'];
|
|
841
|
+
/** Comma-separated list of accepted file types, forwarded to the input (e.g. ".pdf,image/*") */
|
|
842
|
+
'accept'?: NLDDFileField['accept'];
|
|
843
|
+
/** Allows choosing more than one file, and dropping a folder */
|
|
844
|
+
'multiple'?: true;
|
|
845
|
+
/** 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 */
|
|
846
|
+
'directory'?: true;
|
|
847
|
+
/** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
|
|
848
|
+
'accessible-label'?: NLDDFileField['accessibleLabel'];
|
|
849
|
+
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
850
|
+
'input-id'?: NLDDFileField['inputId'];
|
|
851
|
+
/** Marks the field as valid; shows a check icon on the right, like nldd-dropdown */
|
|
852
|
+
'valid'?: true;
|
|
853
|
+
/** Marks the field as invalid; shows an alert icon on the right, like nldd-dropdown */
|
|
854
|
+
'invalid'?: true;
|
|
855
|
+
/** Disabled state */
|
|
856
|
+
'disabled'?: true;
|
|
857
|
+
/** Name for form submission */
|
|
858
|
+
'name'?: NLDDFileField['name'];
|
|
859
|
+
/** Marks the field required (invalid while no file is chosen) */
|
|
860
|
+
'required'?: true;
|
|
861
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
862
|
+
'translations'?: NLDDFileField['translations'];
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
type NlddFormProps = {
|
|
866
|
+
/** Default `label-alignment` for descendant nldd-form-field and nldd-form-actions ('top' | 'right' | 'left'). Propagated to descendants as `form-label-alignment`. A `label-alignment` of its own on the descendant takes precedence through the CSS cascade. */
|
|
867
|
+
'label-alignment'?: NLDDForm['labelAlignment'];
|
|
868
|
+
/** Form name */
|
|
869
|
+
'name'?: NLDDForm['name'];
|
|
870
|
+
/** 'on' | 'off' (form-level autofill toggle) */
|
|
871
|
+
'autocomplete'?: NLDDForm['autocomplete'];
|
|
872
|
+
/** Submit target ('_self' | '_blank' | ...) */
|
|
873
|
+
'target'?: NLDDForm['target'];
|
|
874
|
+
/** HTTP method ('get' | 'post' | 'dialog') */
|
|
875
|
+
'method'?: NLDDForm['method'];
|
|
876
|
+
/** URL endpoint for submission */
|
|
877
|
+
'action'?: NLDDForm['action'];
|
|
878
|
+
/** Encoding type for submission */
|
|
879
|
+
'enctype'?: NLDDForm['enctype'];
|
|
880
|
+
/** Skip native browser validation */
|
|
881
|
+
'novalidate'?: true;
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
type NlddFormActionsProps = {
|
|
885
|
+
/** 'top' (default) | 'right' | 'left'. A value of its own always wins over the inherited form-label-alignment. */
|
|
886
|
+
'label-alignment'?: NLDDFormActions['labelAlignment'];
|
|
887
|
+
/** Set by a wrapping nldd-form as a fallback. Do not set it yourself in consumer code. */
|
|
888
|
+
'form-label-alignment'?: NLDDFormActions['formLabelAlignment'];
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
type NlddFormFieldProps = {
|
|
892
|
+
/** 'top' (default) | 'right' | 'left'. A value of its own always wins over the inherited form-label-alignment. */
|
|
893
|
+
'label-alignment'?: NLDDFormField['labelAlignment'];
|
|
894
|
+
/** 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. */
|
|
895
|
+
'label'?: NLDDFormField['label'];
|
|
896
|
+
/** Short supporting text below the label. Same typography as optional badge. Supports **bold** markdown syntax. */
|
|
897
|
+
'supporting-label'?: NLDDFormField['supportingLabel'];
|
|
898
|
+
/** Shows an optional badge next to the label. */
|
|
899
|
+
'optional'?: true;
|
|
900
|
+
/** Text for the optional badge. Defaults to 'Optioneel'. */
|
|
901
|
+
'optional-label'?: NLDDFormField['optionalLabel'];
|
|
902
|
+
/** Set by a wrapping nldd-form as a fallback. Do not set it yourself in consumer code. */
|
|
903
|
+
'form-label-alignment'?: NLDDFormField['formLabelAlignment'];
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
type NlddFormFieldHelpTextProps = {
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
type NlddFormSectionProps = {
|
|
910
|
+
/** Heading text (rendered in the `<legend>`). */
|
|
911
|
+
'text'?: NLDDFormSection['text'];
|
|
912
|
+
/** Short description under the heading. Keep it to roughly 80 characters or less (see the a11y note). */
|
|
913
|
+
'supporting-text'?: NLDDFormSection['supportingText'];
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
type NlddFullBleedSectionProps = {
|
|
917
|
+
/** Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width. */
|
|
918
|
+
'width'?: NLDDFullBleedSection['width'];
|
|
919
|
+
/** Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface). */
|
|
920
|
+
'background'?: NLDDFullBleedSection['background'];
|
|
921
|
+
/** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
|
|
922
|
+
'height'?: NLDDFullBleedSection['height'];
|
|
923
|
+
/** 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. */
|
|
924
|
+
'grow'?: true;
|
|
925
|
+
/** Block (top and bottom) padding override (token 0-96; '0' strips it). */
|
|
926
|
+
'padding-block'?: NLDDFullBleedSection['paddingBlock'];
|
|
927
|
+
/** Top padding override. */
|
|
928
|
+
'padding-top'?: NLDDFullBleedSection['paddingTop'];
|
|
929
|
+
/** Bottom padding override. */
|
|
930
|
+
'padding-bottom'?: NLDDFullBleedSection['paddingBottom'];
|
|
931
|
+
/** Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}). */
|
|
932
|
+
'sm-padding-block'?: NLDDFullBleedSection['smPaddingBlock'];
|
|
933
|
+
'sm-padding-top'?: NLDDFullBleedSection['smPaddingTop'];
|
|
934
|
+
'sm-padding-bottom'?: NLDDFullBleedSection['smPaddingBottom'];
|
|
935
|
+
'md-padding-block'?: NLDDFullBleedSection['mdPaddingBlock'];
|
|
936
|
+
'md-padding-top'?: NLDDFullBleedSection['mdPaddingTop'];
|
|
937
|
+
'md-padding-bottom'?: NLDDFullBleedSection['mdPaddingBottom'];
|
|
938
|
+
'lg-padding-block'?: NLDDFullBleedSection['lgPaddingBlock'];
|
|
939
|
+
'lg-padding-top'?: NLDDFullBleedSection['lgPaddingTop'];
|
|
940
|
+
'lg-padding-bottom'?: NLDDFullBleedSection['lgPaddingBottom'];
|
|
941
|
+
};
|
|
942
|
+
|
|
943
|
+
type NlddHeroProps = {
|
|
944
|
+
/** Body max-width; 'full' removes the bound (section API) */
|
|
945
|
+
'width'?: NLDDHero['width'];
|
|
946
|
+
/** 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"` */
|
|
947
|
+
'corner'?: NLDDHero['corner'];
|
|
948
|
+
/** 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 */
|
|
949
|
+
'layout'?: NLDDHero['layout'];
|
|
950
|
+
/** Surface color of the panel: 'accent' (default), the accent color of the theme, or 'base', the base surface */
|
|
951
|
+
'main-background'?: NLDDHero['mainBackground'];
|
|
952
|
+
/** 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' */
|
|
953
|
+
'main-width'?: NLDDHero['mainWidth'];
|
|
954
|
+
/** Position of the text panel (default: 'bottom-left'); 'left'/'right' span the full height */
|
|
955
|
+
'main-position'?: NLDDHero['mainPosition'];
|
|
956
|
+
/** 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 */
|
|
957
|
+
'media-aspect-ratio'?: NLDDHero['mediaAspectRatio'];
|
|
958
|
+
/** 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 */
|
|
959
|
+
'overlap-size'?: NLDDHero['overlapSize'];
|
|
960
|
+
/** 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 */
|
|
961
|
+
'media-height'?: NLDDHero['mediaHeight'];
|
|
962
|
+
/** Source of the media area (an alternative to the media slot); ignored as soon as the media slot is filled */
|
|
963
|
+
'media-src'?: NLDDHero['mediaSrc'];
|
|
964
|
+
/** Responsive source set for media-src */
|
|
965
|
+
'media-srcset'?: NLDDHero['mediaSrcset'];
|
|
966
|
+
/** Source sizes hint for media-src */
|
|
967
|
+
'media-sizes'?: NLDDHero['mediaSizes'];
|
|
968
|
+
/** Alt text for media-src; empty means decorative */
|
|
969
|
+
'media-alt'?: NLDDHero['mediaAlt'];
|
|
970
|
+
/** Surface behind the hero (section API) */
|
|
971
|
+
'background'?: NLDDHero['background'];
|
|
972
|
+
'height'?: NLDDHero['height'];
|
|
973
|
+
/** 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. */
|
|
974
|
+
'grow'?: true;
|
|
975
|
+
/** Block padding override, also per edge and responsive (section API) */
|
|
976
|
+
'padding-block'?: NLDDHero['paddingBlock'];
|
|
977
|
+
'padding-top'?: NLDDHero['paddingTop'];
|
|
978
|
+
'padding-bottom'?: NLDDHero['paddingBottom'];
|
|
979
|
+
'sm-padding-block'?: NLDDHero['smPaddingBlock'];
|
|
980
|
+
'sm-padding-top'?: NLDDHero['smPaddingTop'];
|
|
981
|
+
'sm-padding-bottom'?: NLDDHero['smPaddingBottom'];
|
|
982
|
+
'md-padding-block'?: NLDDHero['mdPaddingBlock'];
|
|
983
|
+
'md-padding-top'?: NLDDHero['mdPaddingTop'];
|
|
984
|
+
'md-padding-bottom'?: NLDDHero['mdPaddingBottom'];
|
|
985
|
+
'lg-padding-block'?: NLDDHero['lgPaddingBlock'];
|
|
986
|
+
'lg-padding-top'?: NLDDHero['lgPaddingTop'];
|
|
987
|
+
'lg-padding-bottom'?: NLDDHero['lgPaddingBottom'];
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
type NlddIconProps = {
|
|
991
|
+
/** The name of the icon to display. The same attribute every other component that renders an icon takes. */
|
|
992
|
+
'icon'?: NLDDIcon['icon'];
|
|
993
|
+
/** `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). */
|
|
994
|
+
'size'?: NLDDIcon['size'];
|
|
995
|
+
/** Functional (`primary-content`, `secondary-content`, `accent`, `critical`, `warning`, `success`) or rijkskleur (`lintblauw`, `donkerblauw`, `hemelblauw`, `lichtblauw`, `paars`, `violet`, `robijnrood`, `roze`, `rood`, `oranje`, `donkergeel`, `geel`, `donkerbruin`, `bruin`, `donkergroen`, `groen`, `mosgroen`, `mintgroen`). Empty = inherit `color` from parent. */
|
|
996
|
+
'color'?: NLDDIcon['color'];
|
|
997
|
+
/** 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 system cannot know. It wins over `color`. */
|
|
998
|
+
'custom-color'?: NLDDIcon['customColor'];
|
|
999
|
+
/** Draw the icon on a filled square. `color` and `custom-color` then paint the box and the glyph takes the contrasting color, and `size` measures the box: the glyph is four fifths of it, the corner radius a fifth. */
|
|
1000
|
+
'box'?: true;
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
type NlddIconButtonProps = {
|
|
1004
|
+
/** Visual style, color included: 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | 'inherit-filled' | 'inherit-tinted' | 'primary' | 'secondary' | 'destructive'. The inherit appearances derive their colors from currentColor, for buttons on colored surfaces. */
|
|
1005
|
+
'appearance'?: NLDDIconButton['appearance'];
|
|
1006
|
+
/** Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md') */
|
|
1007
|
+
'size'?: NLDDIconButton['size'];
|
|
1008
|
+
/** In lg size, hides the text label and enlarges the icon by one step (28px) */
|
|
1009
|
+
'hide-lg-text'?: true;
|
|
1010
|
+
/** 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. */
|
|
1011
|
+
'loading'?: true;
|
|
1012
|
+
/** 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". */
|
|
1013
|
+
'loading-text'?: NLDDIconButton['loadingText'];
|
|
1014
|
+
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
1015
|
+
'disabled'?: true;
|
|
1016
|
+
/** Removes the per-appearance highlight border (e.g. when a control group draws a single border instead). */
|
|
1017
|
+
'no-highlight-border'?: true;
|
|
1018
|
+
/** Button type for form submission: 'button' | 'submit' | 'reset' (ignored when href is set) */
|
|
1019
|
+
'type'?: NLDDIconButton['type'];
|
|
1020
|
+
/** Whether the button opens a menu or popover and shows chevron next to the icon */
|
|
1021
|
+
'expandable'?: true;
|
|
1022
|
+
/** 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. */
|
|
1023
|
+
'expanded'?: true;
|
|
1024
|
+
/** 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. */
|
|
1025
|
+
'no-tab'?: true;
|
|
1026
|
+
/** 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. */
|
|
1027
|
+
'popup-type'?: NLDDIconButton['popupType'];
|
|
1028
|
+
/** Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px') */
|
|
1029
|
+
'width'?: NLDDIconButton['width'];
|
|
1030
|
+
/** 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`. */
|
|
1031
|
+
'popovertarget'?: NLDDIconButton['popovertarget'];
|
|
1032
|
+
/** Button text, used as aria-label and shown below the icon in lg size */
|
|
1033
|
+
'text'?: NLDDIconButton['text'];
|
|
1034
|
+
/** Icon name for the nldd-icon element. Defaults to a placeholder icon when neither this attribute nor the icon slot is set. */
|
|
1035
|
+
'icon'?: NLDDIconButton['icon'];
|
|
1036
|
+
/** 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. */
|
|
1037
|
+
'accessible-label'?: NLDDIconButton['accessibleLabel'];
|
|
1038
|
+
/** 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). */
|
|
1039
|
+
'tooltip-timing'?: NLDDIconButton['tooltipTiming'];
|
|
1040
|
+
/** 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. */
|
|
1041
|
+
'shortcut'?: NLDDIconButton['shortcut'];
|
|
1042
|
+
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
1043
|
+
'shortcut-mac'?: NLDDIconButton['shortcutMac'];
|
|
1044
|
+
/** Override of `shortcut` on Windows (falls back to `shortcut`). */
|
|
1045
|
+
'shortcut-windows'?: NLDDIconButton['shortcutWindows'];
|
|
1046
|
+
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
1047
|
+
'shortcut-linux'?: NLDDIconButton['shortcutLinux'];
|
|
1048
|
+
/** When set, renders an <a> element instead of <button> */
|
|
1049
|
+
'href'?: NLDDIconButton['href'];
|
|
1050
|
+
/** 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. */
|
|
1051
|
+
'target'?: NLDDIconButton['target'];
|
|
1052
|
+
/** 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. */
|
|
1053
|
+
'download'?: NLDDIconButton['download'];
|
|
1054
|
+
/** Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1055
|
+
'rel'?: NLDDIconButton['rel'];
|
|
1056
|
+
/** Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch. */
|
|
1057
|
+
'translations'?: NLDDIconButton['translations'];
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1060
|
+
type NlddIconCellProps = {
|
|
1061
|
+
/** Size: '16' | '20' | '24' | '32' (default: '24') */
|
|
1062
|
+
'size'?: NLDDIconCell['size'];
|
|
1063
|
+
/** Color variant of the icon (default: 'content') */
|
|
1064
|
+
'color'?: NLDDIconCell['color'];
|
|
1065
|
+
/** Vertical alignment: 'top' | 'center' | 'bottom' (default: 'center') */
|
|
1066
|
+
'vertical-alignment'?: NLDDIconCell['verticalAlignment'];
|
|
1067
|
+
/** Icon name (renders `<nldd-icon>`). Content in the default slot wins. */
|
|
1068
|
+
'icon'?: NLDDIconCell['icon'];
|
|
1069
|
+
'hide-below'?: NLDDIconCell['hideBelow'];
|
|
1070
|
+
'hide-above'?: NLDDIconCell['hideAbove'];
|
|
1071
|
+
/** Marks this icon as the chevron of a row or segment that opens and closes: the row turns it with `expanded`. */
|
|
1072
|
+
'disclosure'?: true;
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
type NlddIdentityProps = {
|
|
1076
|
+
/** Name line (e.g. "Jan Jansen and Piet Pietersen"); the fallback when the text slot is empty */
|
|
1077
|
+
'text'?: NLDDIdentity['text'];
|
|
1078
|
+
/** Supporting text under the name line (a role or a date, for instance); the fallback when the supporting-text slot is empty */
|
|
1079
|
+
'supporting-text'?: NLDDIdentity['supportingText'];
|
|
1080
|
+
/** Source of a single avatar (an alternative to the avatars slot); ignored as soon as the avatars slot is filled */
|
|
1081
|
+
'avatar-src'?: NLDDIdentity['avatarSrc'];
|
|
1082
|
+
/** Responsive source set for the avatar-src image */
|
|
1083
|
+
'avatar-srcset'?: NLDDIdentity['avatarSrcset'];
|
|
1084
|
+
/** Alt text for the avatar-src image; empty means decorative */
|
|
1085
|
+
'avatar-alt'?: NLDDIdentity['avatarAlt'];
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
type NlddImageProps = {
|
|
1089
|
+
/** Image URL */
|
|
1090
|
+
'src'?: NLDDImage['src'];
|
|
1091
|
+
/** Alt text for the image from `src`. Required unless `decorative`; slotted media carries its own. */
|
|
1092
|
+
'alt'?: NLDDImage['alt'];
|
|
1093
|
+
/** Responsive source set */
|
|
1094
|
+
'srcset'?: NLDDImage['srcset'];
|
|
1095
|
+
/** Source sizes hint */
|
|
1096
|
+
'sizes'?: NLDDImage['sizes'];
|
|
1097
|
+
/** Display width. `full` (default) fills the parent. A numeric value sets host `max-width` AND the `<img>` layout-hint width. */
|
|
1098
|
+
'width'?: NLDDImage['width'];
|
|
1099
|
+
/** Intrinsic height (for layout reservation) */
|
|
1100
|
+
'height'?: NLDDImage['height'];
|
|
1101
|
+
/** 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. */
|
|
1102
|
+
'loading'?: NLDDImage['loading'];
|
|
1103
|
+
/** Decoding hint (default: 'async') */
|
|
1104
|
+
'decoding'?: NLDDImage['decoding'];
|
|
1105
|
+
/** Fetch priority hint */
|
|
1106
|
+
'fetchpriority'?: NLDDImage['fetchPriority'];
|
|
1107
|
+
/** Aspect ratio in CSS form (e.g. "16/9", "1/1", "4/3"). "16:9" colon notation is also accepted for convenience. */
|
|
1108
|
+
'aspect-ratio'?: NLDDImage['aspectRatio'];
|
|
1109
|
+
/** default: 'cover' */
|
|
1110
|
+
'object-fit'?: NLDDImage['objectFit'];
|
|
1111
|
+
/** default: 'center' */
|
|
1112
|
+
'object-position'?: NLDDImage['objectPosition'];
|
|
1113
|
+
/** Corner shape (default: 'square') */
|
|
1114
|
+
'shape'?: NLDDImage['shape'];
|
|
1115
|
+
/** Caption text shown below the image */
|
|
1116
|
+
'caption'?: NLDDImage['caption'];
|
|
1117
|
+
/** Smaller credit/attribution text shown beside the caption */
|
|
1118
|
+
'credit'?: NLDDImage['credit'];
|
|
1119
|
+
/** Decorative image: alt is forced empty + aria-hidden */
|
|
1120
|
+
'decorative'?: true;
|
|
1121
|
+
/** 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 tool" Storybook story. 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; ours encodes a color per cell so multi-color subjects survive the preview. */
|
|
1122
|
+
'lqip'?: NLDDImage['lqip'];
|
|
1123
|
+
/** Override translation keys (e.g. the message shown when the image fails to load); unset keys fall back to Dutch. */
|
|
1124
|
+
'translations'?: NLDDImage['translations'];
|
|
1125
|
+
};
|
|
1126
|
+
|
|
1127
|
+
type NlddInlineDialogProps = {
|
|
1128
|
+
/** 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. */
|
|
1129
|
+
'variant'?: NLDDInlineDialog['variant'];
|
|
1130
|
+
/** Typography size: 'md' (default) keeps body-md text + body-sm supporting; 'lg' bumps both up a step. */
|
|
1131
|
+
'size'?: NLDDInlineDialog['size'];
|
|
1132
|
+
/** Name of the nldd-icon icon above the text; absent when not set. Ignored when variant is set. */
|
|
1133
|
+
'icon'?: NLDDInlineDialog['icon'];
|
|
1134
|
+
/** 'secondary' | 'accent' | 'critical' | 'warning' | 'success'. Overrides the default and variant icon color. */
|
|
1135
|
+
'icon-color'?: NLDDInlineDialog['iconColor'];
|
|
1136
|
+
/** Main text (heading or paragraph, depending on heading-level) */
|
|
1137
|
+
'text'?: NLDDInlineDialog['text'];
|
|
1138
|
+
/** Supporting text below the heading */
|
|
1139
|
+
'supporting-text'?: NLDDInlineDialog['supportingText'];
|
|
1140
|
+
/** Renders text as h1–h6; absent renders a p */
|
|
1141
|
+
'heading-level'?: NLDDInlineDialog['headingLevel'];
|
|
1142
|
+
/** 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. */
|
|
1143
|
+
'horizontal-alignment'?: NLDDInlineDialog['horizontalAlignment'];
|
|
1144
|
+
};
|
|
1145
|
+
|
|
1146
|
+
type NlddJustInTimeEducationProps = {
|
|
1147
|
+
/** Show the coach mark. Driven by the app; false by default. */
|
|
1148
|
+
'active'?: true;
|
|
1149
|
+
/** Title of the callout. */
|
|
1150
|
+
'text'?: NLDDJustInTimeEducation['text'];
|
|
1151
|
+
/** Supporting text under the title. */
|
|
1152
|
+
'supporting-text'?: NLDDJustInTimeEducation['supportingText'];
|
|
1153
|
+
/** 'auto' | 'top' | 'bottom' | 'left' | 'right' (default 'auto'). */
|
|
1154
|
+
'placement'?: NLDDJustInTimeEducation['placement'];
|
|
1155
|
+
/** 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. */
|
|
1156
|
+
'dismissable'?: true;
|
|
1157
|
+
/** 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. */
|
|
1158
|
+
'arrow-length'?: NLDDJustInTimeEducation['arrowLength'];
|
|
1159
|
+
/** Hide the arrow; the card then sits close against the control. */
|
|
1160
|
+
'no-arrow'?: true;
|
|
1161
|
+
'translations'?: NLDDJustInTimeEducation['translations'];
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
type NlddKanbanProps = {
|
|
1165
|
+
/** Accessible name of the board (default: "Bord") */
|
|
1166
|
+
'accessible-label'?: NLDDKanban['accessibleLabel'];
|
|
1167
|
+
/** 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%`) */
|
|
1168
|
+
'height'?: NLDDKanban['height'];
|
|
1169
|
+
/** Items cannot be dragged or moved with the keyboard; they still work, and `moveItem()` still moves */
|
|
1170
|
+
'readonly'?: true;
|
|
1171
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
1172
|
+
'translations'?: NLDDKanban['translations'];
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
type NlddKanbanColumnProps = {
|
|
1176
|
+
/** The column's name, shown in the header and used as its accessible name */
|
|
1177
|
+
'text'?: NLDDKanbanColumn['text'];
|
|
1178
|
+
/** Accessible name in place of `text`, for a column whose header comes from the slot */
|
|
1179
|
+
'accessible-label'?: NLDDKanbanColumn['accessibleLabel'];
|
|
1180
|
+
/** What the column stands for in your data, such as a status; `nldd-move` reports it as `fromColumn` and `toColumn` */
|
|
1181
|
+
'value'?: NLDDKanbanColumn['value'];
|
|
1182
|
+
};
|
|
1183
|
+
|
|
1184
|
+
type NlddKeyboardShortcutProps = {
|
|
1185
|
+
/** 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. */
|
|
1186
|
+
'keys'?: NLDDKeyboardShortcut['keys'];
|
|
1187
|
+
/** Optional override for macOS (iPhone/iPad/iPod included). */
|
|
1188
|
+
'mac-keys'?: NLDDKeyboardShortcut['macKeys'];
|
|
1189
|
+
/** Optional override for Windows. */
|
|
1190
|
+
'windows-keys'?: NLDDKeyboardShortcut['windowsKeys'];
|
|
1191
|
+
/** Optional override for Linux/ChromeOS. */
|
|
1192
|
+
'linux-keys'?: NLDDKeyboardShortcut['linuxKeys'];
|
|
1193
|
+
/** Size: 'sm' | 'md' | 'inherit' (default: 'md'). 'inherit' takes the font-size from the container; in the box variant the keycaps then scale along in em. */
|
|
1194
|
+
'size'?: NLDDKeyboardShortcut['size'];
|
|
1195
|
+
/** 'box' (default) shows each key as a keycap with a fill and a highlight edge. 'simple' shows the keys as plain text with separators: lighter, for inline use such as in a menu item. */
|
|
1196
|
+
'appearance'?: NLDDKeyboardShortcut['appearance'];
|
|
1197
|
+
/** 'neutral' (default) uses the component colors of its own. 'inherit' lets the keys and separators follow the surrounding text color (currentColor), with a translucent contrast fill and highlight edge. Useful on a filled surface color or a highlighted row. */
|
|
1198
|
+
'color'?: NLDDKeyboardShortcut['color'];
|
|
1199
|
+
/** Show on touch-only devices too, where shortcuts cannot be invoked. */
|
|
1200
|
+
'always-visible'?: true;
|
|
1201
|
+
/** Development aid: overrides the OS detection for this instance, so you can show several platform variants side by side in Storybook or documentation. Not meant for production use; leave it empty (default) so the real OS detection applies. */
|
|
1202
|
+
'debug-os'?: NLDDKeyboardShortcut['debugOs'];
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1205
|
+
type NlddLinkProps = {
|
|
1206
|
+
/** Link target */
|
|
1207
|
+
'href'?: NLDDLink['href'];
|
|
1208
|
+
/** 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. */
|
|
1209
|
+
'target'?: NLDDLink['target'];
|
|
1210
|
+
/** 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. */
|
|
1211
|
+
'download'?: NLDDLink['download'];
|
|
1212
|
+
/** Link rel attribute; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1213
|
+
'rel'?: NLDDLink['rel'];
|
|
1214
|
+
/** 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. */
|
|
1215
|
+
'size'?: NLDDLink['size'];
|
|
1216
|
+
/** Link text. Content in the default slot wins. */
|
|
1217
|
+
'text'?: NLDDLink['text'];
|
|
1218
|
+
/** Icon before the text */
|
|
1219
|
+
'start-icon'?: NLDDLink['startIcon'];
|
|
1220
|
+
/** Icon after the text */
|
|
1221
|
+
'end-icon'?: NLDDLink['endIcon'];
|
|
1222
|
+
/** Accessible label for screen readers */
|
|
1223
|
+
'accessible-label'?: NLDDLink['accessibleLabel'];
|
|
1224
|
+
/** Disabled state. Avoid it where you can; the design guidelines say why. */
|
|
1225
|
+
'disabled'?: true;
|
|
1226
|
+
/** 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. */
|
|
1227
|
+
'no-tab'?: true;
|
|
1228
|
+
/** Override translation keys (e.g. the "opent in nieuw tabblad" announcement); unset keys fall back to Dutch. */
|
|
1229
|
+
'translations'?: NLDDLink['translations'];
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
type NlddLinkGroupProps = {
|
|
1233
|
+
/** Text size, set on every link in it: 'xs' | 'sm' | 'md' | 'lg' (default: 'md') */
|
|
1234
|
+
'size'?: NLDDLinkGroup['size'];
|
|
1235
|
+
/** Layout direction: 'horizontal' (a row that wraps) | 'vertical' (default: 'horizontal') */
|
|
1236
|
+
'orientation'?: NLDDLinkGroup['orientation'];
|
|
1237
|
+
/** Alignment of the links: 'left' | 'center' (default: 'left') */
|
|
1238
|
+
'horizontal-alignment'?: NLDDLinkGroup['horizontalAlignment'];
|
|
1239
|
+
/** Accessible name of the nav landmark */
|
|
1240
|
+
'accessible-label'?: NLDDLinkGroup['accessibleLabel'];
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
type NlddListProps = {
|
|
1244
|
+
/** 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) */
|
|
1245
|
+
'appearance'?: NLDDList['appearance'];
|
|
1246
|
+
/** A11y role and behavior (default 'list'). See the docblock above. */
|
|
1247
|
+
'type'?: NLDDList['type'];
|
|
1248
|
+
/** 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 */
|
|
1249
|
+
'dividers'?: NLDDList['dividers'];
|
|
1250
|
+
/** Listbox only: caps the options' scroll region at this CSS length (e.g. '320px'). Unset means no cap. */
|
|
1251
|
+
'height'?: NLDDList['height'];
|
|
1252
|
+
/** 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. */
|
|
1253
|
+
'accessible-label'?: NLDDList['accessibleLabel'];
|
|
1254
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
1255
|
+
'translations'?: NLDDList['translations'];
|
|
1256
|
+
/** Enables drag-to-reorder and pushes `reorderable` onto the items. Only valid with `type="list"`; there the arrow keys move rows instead of focus. */
|
|
1257
|
+
'reorderable'?: true;
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
type NlddListItemProps = {
|
|
1261
|
+
/** Row size (default: 'md'). Pushed onto the cells whose `size` means the same scale (nldd-text-cell, nldd-drag-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. */
|
|
1262
|
+
'size'?: NLDDListItem['size'];
|
|
1263
|
+
/** 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. */
|
|
1264
|
+
'href'?: NLDDListItem['href'];
|
|
1265
|
+
/** 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. */
|
|
1266
|
+
'target'?: NLDDListItem['target'];
|
|
1267
|
+
/** 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. */
|
|
1268
|
+
'download'?: NLDDListItem['download'];
|
|
1269
|
+
/** Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1270
|
+
'rel'?: NLDDListItem['rel'];
|
|
1271
|
+
/** Renders the item as a `<button>`. Last of the three: `href` and `checkbox` both win over it. */
|
|
1272
|
+
'button'?: true;
|
|
1273
|
+
/** Makes the whole row a `role="checkbox"` control. Wins over `button`, loses to `href`. */
|
|
1274
|
+
'checkbox'?: true;
|
|
1275
|
+
/** Makes the whole row one radio of a group: the action becomes a `role="radio"` button carrying `aria-checked`, and activation sets `checked` (never clears it) and fires `change`. Put the rows in an `nldd-list type="radiogroup"`, which is what makes them a set. Wins over `button`, loses to `href` and `checkbox`. The arrow keys move focus without checking, where a native radio group and `nldd-radio-button-group` check as they go: a row can carry more than a label, so stepping past one should not commit it. */
|
|
1276
|
+
'radio'?: true;
|
|
1277
|
+
/** The row 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. A row with children in a tree already is one. */
|
|
1278
|
+
'expandable'?: true;
|
|
1279
|
+
/** 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. */
|
|
1280
|
+
'accessible-label'?: NLDDListItem['accessibleLabel'];
|
|
1281
|
+
/** Set by the parent `nldd-list` when its own `reorderable` is on (with `type="list"`); consumers do not set this. Serves as a CSS hook for drag handle visibility. */
|
|
1282
|
+
'reorderable'?: true;
|
|
1283
|
+
/** 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`. */
|
|
1284
|
+
'selected'?: true;
|
|
1285
|
+
/** Checked state of a `checkbox` or `radio` row. A checkbox row toggles it on activation, a radio row only ever sets it */
|
|
1286
|
+
'checked'?: true;
|
|
1287
|
+
/** Disclosure state. Drives the `children` group's visibility AND supplies `aria-expanded` — to the row's own control when the row is interactive, or to the segment marked `disclosure`. Written once either way; the item DEV-warns when there is nowhere for it to live. */
|
|
1288
|
+
'expanded'?: true;
|
|
1289
|
+
/** 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. 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. */
|
|
1290
|
+
'current'?: true;
|
|
1291
|
+
/** 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. */
|
|
1292
|
+
'current-type'?: NLDDListItem['currentType'];
|
|
1293
|
+
/** 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. */
|
|
1294
|
+
'disabled'?: true;
|
|
1295
|
+
'translations'?: NLDDListItem['translations'];
|
|
1296
|
+
/** Show this cell only while the row is `reorderable` */
|
|
1297
|
+
'reorderable-only'?: true;
|
|
1298
|
+
/** The divider starts at this cell instead of at the row's first text or title cell. On the leading cell it restores the full-width line. */
|
|
1299
|
+
'divider-start'?: true;
|
|
1300
|
+
/** The divider stops after this cell. With several markers the line runs from the first start to the last end. */
|
|
1301
|
+
'divider-end'?: true;
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
type NlddListItemSegmentProps = {
|
|
1305
|
+
/** `full` lets the segment grow to fill the row (default: 'fit-content') */
|
|
1306
|
+
'width'?: NLDDListItemSegment['width'];
|
|
1307
|
+
/** Renders the segment as an `<a>` with this URL. Wins over `checkbox` and `button`. */
|
|
1308
|
+
'href'?: NLDDListItemSegment['href'];
|
|
1309
|
+
/** 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. */
|
|
1310
|
+
'target'?: NLDDListItemSegment['target'];
|
|
1311
|
+
/** 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. */
|
|
1312
|
+
'download'?: NLDDListItemSegment['download'];
|
|
1313
|
+
/** Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
1314
|
+
'rel'?: NLDDListItemSegment['rel'];
|
|
1315
|
+
/** Renders the segment as a `<button>`. Last of the three: `href` and `checkbox` both win over it. */
|
|
1316
|
+
'button'?: true;
|
|
1317
|
+
/** Makes the segment a `role="checkbox"` control. Wins over `button`, loses to `href`. */
|
|
1318
|
+
'checkbox'?: true;
|
|
1319
|
+
/** 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 */
|
|
1320
|
+
'disclosure'?: true;
|
|
1321
|
+
/** 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. */
|
|
1322
|
+
'expandable'?: true;
|
|
1323
|
+
/** Accessible name for the control. Set it when the segment holds only an icon, or when the cell text does not describe the action. */
|
|
1324
|
+
'accessible-label'?: NLDDListItemSegment['accessibleLabel'];
|
|
1325
|
+
/** Checked state of a `checkbox` segment; it toggles on activation */
|
|
1326
|
+
'checked'?: true;
|
|
1327
|
+
/** 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. */
|
|
1328
|
+
'expanded'?: true;
|
|
1329
|
+
/** 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. */
|
|
1330
|
+
'popup-type'?: NLDDListItemSegment['popupType'];
|
|
1331
|
+
/** 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`. */
|
|
1332
|
+
'popovertarget'?: NLDDListItemSegment['popovertarget'];
|
|
1333
|
+
/** 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. */
|
|
1334
|
+
'current'?: true;
|
|
1335
|
+
/** 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. */
|
|
1336
|
+
'current-type'?: NLDDListItemSegment['currentType'];
|
|
1337
|
+
/** 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. */
|
|
1338
|
+
'disabled'?: true;
|
|
1339
|
+
'translations'?: NLDDListItemSegment['translations'];
|
|
1340
|
+
/** The row's divider starts at this cell instead of at its first text or title cell. */
|
|
1341
|
+
'divider-start'?: true;
|
|
1342
|
+
/** The row's divider stops after this cell. */
|
|
1343
|
+
'divider-end'?: true;
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
type NlddMenuProps = {
|
|
1347
|
+
/** What the menu is (default 'menu'). `menu` is a menu of actions: `role="menu"` with menu items, for things you do. `listbox` is the popup of a combobox: `role="listbox"` with options, focus stays in the field. `navigation` is a submenu in a site navigation: a list of links (`role="list"`, each item a list item around a real link), because a screen reader treats a menu as an application and reads a list of links as what it is. Every item takes an `href`. Tab reaches each link, the arrow keys, Home and End move between them, Escape closes and returns focus to the trigger, and the menu closes when focus leaves it. The trigger says `aria-expanded` and promises no menu. Checkbox and radio items, shortcuts and `filter()` belong to actions and warn in development here. A submenu of a navigation menu is a navigation menu too. The variant sets `role="listitem"` on its items and groups, and takes it off again when it changes back, also where you had set that role yourself. */
|
|
1348
|
+
'variant'?: NLDDMenu['variant'];
|
|
1349
|
+
/** Explicit width, pinned exactly. Without it the menu sizes to its content between a minimum and a viewport-aware maximum (min(100vw - inset, 640px)). */
|
|
1350
|
+
'width'?: NLDDMenu['width'];
|
|
1351
|
+
/** 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. */
|
|
1352
|
+
'accessible-label'?: NLDDMenu['accessibleLabel'];
|
|
1353
|
+
/** 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 — same positioning, no toggle. */
|
|
1354
|
+
'anchor'?: NLDDMenu['anchor'];
|
|
1355
|
+
/** Floating UI placement. Default: 'bottom-start'. */
|
|
1356
|
+
'placement'?: NLDDMenu['placement'];
|
|
1357
|
+
/** Maximum number of visible items before scrolling. Sets --_menu-max-items internally. Default: 0 (no limit). */
|
|
1358
|
+
'max-items'?: NLDDMenu['maxItems'];
|
|
1359
|
+
/** Text of the default empty-state dialog. Falls back to Dutch i18n "Geen opties beschikbaar". */
|
|
1360
|
+
'empty-text'?: NLDDMenu['emptyText'];
|
|
1361
|
+
/** Supporting text of the default empty-state dialog. */
|
|
1362
|
+
'empty-supporting-text'?: NLDDMenu['emptySupportingText'];
|
|
1363
|
+
/** Override one or more translation keys. */
|
|
1364
|
+
'translations'?: NLDDMenu['translations'];
|
|
1365
|
+
/** Custom filter function (query, item) => boolean. */
|
|
1366
|
+
'filterFn'?: NLDDMenu['filterFn'];
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
type NlddMenuBarProps = {
|
|
1370
|
+
/** Text for the overflow button (default through i18n) */
|
|
1371
|
+
'overflow-text'?: NLDDMenuBar['overflowText'];
|
|
1372
|
+
/** aria-label for the nav landmark */
|
|
1373
|
+
'accessible-label'?: NLDDMenuBar['accessibleLabel'];
|
|
1374
|
+
/** Propagates the compact attribute to slotted items (activates content priority) */
|
|
1375
|
+
'compact'?: true;
|
|
1376
|
+
'translations'?: NLDDMenuBar['translations'];
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1379
|
+
type NlddMenuBarItemProps = {
|
|
1380
|
+
/** Text of the item */
|
|
1381
|
+
'text'?: NLDDMenuBarItem['text'];
|
|
1382
|
+
/** Mark as the active or current item */
|
|
1383
|
+
'current'?: true;
|
|
1384
|
+
/** aria-current value when current is true ('page', 'step', 'location', 'true'). Default: 'page' */
|
|
1385
|
+
'current-type'?: NLDDMenuBarItem['currentType'];
|
|
1386
|
+
/** Optional link URL. Without href it renders as a button. */
|
|
1387
|
+
'href'?: NLDDMenuBarItem['href'];
|
|
1388
|
+
/** Optional icon name (nldd-icon) */
|
|
1389
|
+
'icon'?: NLDDMenuBarItem['icon'];
|
|
1390
|
+
/** 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`. */
|
|
1391
|
+
'expandable'?: true;
|
|
1392
|
+
/** Hide the text visually (always). The text then shows as a tooltip on hover and focus. */
|
|
1393
|
+
'icon-only'?: true;
|
|
1394
|
+
/** 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. */
|
|
1395
|
+
'content-priority'?: NLDDMenuBarItem['contentPriority'];
|
|
1396
|
+
/** Activates content-priority behavior (set by the parent nldd-menu-bar) */
|
|
1397
|
+
'compact'?: true;
|
|
1398
|
+
/** Turn interaction off. Avoid it where you can; the design guidelines say why. */
|
|
1399
|
+
'disabled'?: true;
|
|
1400
|
+
/** Override aria-label */
|
|
1401
|
+
'accessible-label'?: NLDDMenuBarItem['accessibleLabel'];
|
|
1402
|
+
/** aria-haspopup value (e.g. "menu", "dialog") */
|
|
1403
|
+
'haspopup'?: NLDDMenuBarItem['haspopup'];
|
|
1404
|
+
/** 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>`. */
|
|
1405
|
+
'expanded'?: true;
|
|
1406
|
+
/** Whether the linked popover or menu is open */
|
|
1407
|
+
'open'?: true;
|
|
1408
|
+
};
|
|
1409
|
+
|
|
1410
|
+
type NlddMenuDividerProps = {
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
type NlddMenuGroupProps = {
|
|
1414
|
+
/** Group title text shown above the items. */
|
|
1415
|
+
'text'?: NLDDMenuGroup['text'];
|
|
1416
|
+
};
|
|
1417
|
+
|
|
1418
|
+
type NlddMenuItemProps = {
|
|
1419
|
+
/** Marks the item as destructive (red text; red highlight bg). Use for irreversible actions like "Delete". Color is the only built-in signal, so per WCAG 1.4.1 the item's own label must convey the destructive nature (e.g. "Verwijder") — don't rely on the red alone. Confirming the action (e.g. a follow-up dialog) is the consumer's responsibility. */
|
|
1420
|
+
'destructive'?: true;
|
|
1421
|
+
/** Display text. Supports **bold** markdown syntax. */
|
|
1422
|
+
'text'?: NLDDMenuItem['text'];
|
|
1423
|
+
/** Secondary label shown on the right side. */
|
|
1424
|
+
'details'?: NLDDMenuItem['details'];
|
|
1425
|
+
/** Icon name rendered before the text. An icon in the `icon` slot takes its place. */
|
|
1426
|
+
'icon'?: NLDDMenuItem['icon'];
|
|
1427
|
+
/** Keyboard shortcut hint shown on the right, e.g. 'Cmd+E'. Display only (rendered via nldd-keyboard-shortcut) — it does not bind the key; wire up the handling in your app. Hidden on touch-only devices, where it isn't invokable. */
|
|
1428
|
+
'shortcut'?: NLDDMenuItem['shortcut'];
|
|
1429
|
+
/** / shortcut-windows / shortcut-linux - Per-OS overrides for `shortcut`, picked by detected OS (falls back to `shortcut`). */
|
|
1430
|
+
'shortcut-mac'?: NLDDMenuItem['shortcutMac'];
|
|
1431
|
+
/** 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). Ignored for submenu openers, checkbox/radio items, and while disabled. */
|
|
1432
|
+
'href'?: NLDDMenuItem['href'];
|
|
1433
|
+
/** 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. */
|
|
1434
|
+
'type'?: NLDDMenuItem['type'];
|
|
1435
|
+
/** 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. */
|
|
1436
|
+
'form'?: NLDDMenuItem['form'];
|
|
1437
|
+
/** Selected state for checkbox and radio types. */
|
|
1438
|
+
'selected'?: true;
|
|
1439
|
+
/** Disabled state. */
|
|
1440
|
+
'disabled'?: true;
|
|
1441
|
+
/** 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. */
|
|
1442
|
+
'value'?: NLDDMenuItem['value'];
|
|
1443
|
+
/** Space-separated alternative search terms. */
|
|
1444
|
+
'aliases'?: NLDDMenuItem['aliases'];
|
|
1445
|
+
/** Query substring to bold-highlight in text. Set by menu's filter(); also settable by consumers. */
|
|
1446
|
+
'query'?: NLDDMenuItem['query'];
|
|
1447
|
+
/** 'match' | 'predictive' (default: 'predictive'). See text-cell for details. */
|
|
1448
|
+
'query-mark-mode'?: NLDDMenuItem['queryMarkMode'];
|
|
1449
|
+
'shortcut-windows'?: NLDDMenuItem['shortcutWindows'];
|
|
1450
|
+
'shortcut-linux'?: NLDDMenuItem['shortcutLinux'];
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
type NlddModalDialogProps = {
|
|
1454
|
+
/** Forwarded to nldd-inline-dialog; 'alert' forces icon and color */
|
|
1455
|
+
'variant'?: NLDDModalDialog['variant'];
|
|
1456
|
+
/** Forwarded to nldd-inline-dialog. Unset derives it there: slotted content aligns left, a bare message stays centered. */
|
|
1457
|
+
'horizontal-alignment'?: NLDDModalDialog['horizontalAlignment'];
|
|
1458
|
+
/** Forwarded to nldd-inline-dialog; main text */
|
|
1459
|
+
'text'?: NLDDModalDialog['text'];
|
|
1460
|
+
/** Forwarded to nldd-inline-dialog; supporting text */
|
|
1461
|
+
'supporting-text'?: NLDDModalDialog['supportingText'];
|
|
1462
|
+
/** Forwarded to nldd-inline-dialog; absent when not set */
|
|
1463
|
+
'icon'?: NLDDModalDialog['icon'];
|
|
1464
|
+
/** Accessible name for the dialog (aria-label); falls back to text */
|
|
1465
|
+
'accessible-label'?: NLDDModalDialog['accessibleLabel'];
|
|
1466
|
+
/** Whether the dialog is open. Set it to open or close the dialog, as an alternative to show() and hide(). The dialog clears it itself when it closes another way (Escape, the backdrop), so bind it together with the close event. */
|
|
1467
|
+
'open'?: true;
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
type NlddMultiLineTextFieldProps = {
|
|
1471
|
+
/** 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
1472
|
+
'size'?: NLDDMultiLineTextField['size'];
|
|
1473
|
+
/** The textarea value */
|
|
1474
|
+
'value'?: NLDDMultiLineTextField['value'];
|
|
1475
|
+
/** Sets the id on the native textarea. Set automatically by nldd-form-field. */
|
|
1476
|
+
'input-id'?: NLDDMultiLineTextField['inputId'];
|
|
1477
|
+
/** Placeholder text */
|
|
1478
|
+
'placeholder'?: NLDDMultiLineTextField['placeholder'];
|
|
1479
|
+
/** Marks the field as invalid */
|
|
1480
|
+
'invalid'?: true;
|
|
1481
|
+
/** Marks the field as valid */
|
|
1482
|
+
'valid'?: true;
|
|
1483
|
+
/** Disabled state */
|
|
1484
|
+
'disabled'?: true;
|
|
1485
|
+
/** Textarea name for form submission */
|
|
1486
|
+
'name'?: NLDDMultiLineTextField['name'];
|
|
1487
|
+
/** Readonly state */
|
|
1488
|
+
'readonly'?: true;
|
|
1489
|
+
/** Required state */
|
|
1490
|
+
'required'?: true;
|
|
1491
|
+
/** Autocomplete hint */
|
|
1492
|
+
'autocomplete'?: NLDDMultiLineTextField['autocomplete'];
|
|
1493
|
+
/** 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. */
|
|
1494
|
+
'keyboard'?: NLDDMultiLineTextField['keyboard'];
|
|
1495
|
+
/** 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. */
|
|
1496
|
+
'enter-key'?: NLDDMultiLineTextField['enterKey'];
|
|
1497
|
+
/** Initial visible rows (minimum height). Default: 3. */
|
|
1498
|
+
'rows'?: NLDDMultiLineTextField['rows'];
|
|
1499
|
+
/** 'none' | 'vertical' | 'auto' (default). 'auto' grows with content (native field-sizing), no manual handle. */
|
|
1500
|
+
'resize'?: NLDDMultiLineTextField['resize'];
|
|
1501
|
+
/** Accessible label forwarded to the inner textarea. Set automatically by nldd-form-field. */
|
|
1502
|
+
'accessible-label'?: NLDDMultiLineTextField['accessibleLabel'];
|
|
1503
|
+
/** Disables browser spellchecking on the inner textarea */
|
|
1504
|
+
'no-spellcheck'?: true;
|
|
1505
|
+
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
1506
|
+
'width'?: NLDDMultiLineTextField['width'];
|
|
1507
|
+
/** Fewest characters the value may have. */
|
|
1508
|
+
'minlength'?: NLDDMultiLineTextField['minlength'];
|
|
1509
|
+
/** Most characters the value may have. */
|
|
1510
|
+
'maxlength'?: NLDDMultiLineTextField['maxlength'];
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
type NlddNavigationSplitViewProps = {
|
|
1514
|
+
/** Always show the inspector as a sheet regardless of available space */
|
|
1515
|
+
'inspector-as-sheet'?: true;
|
|
1516
|
+
/** Always show the primary sidebar as a sheet, keeping main visible at full width */
|
|
1517
|
+
'primary-sidebar-as-sheet'?: true;
|
|
1518
|
+
/** Accessible name for the inspector sheet dialog (default: 'Details') */
|
|
1519
|
+
'inspector-accessible-label'?: NLDDNavigationSplitView['inspectorAccessibleLabel'];
|
|
1520
|
+
/** Accessible name for the primary sidebar sheet dialog (default: 'Navigatie') */
|
|
1521
|
+
'primary-sidebar-accessible-label'?: NLDDNavigationSplitView['primarySidebarAccessibleLabel'];
|
|
1522
|
+
/** Inspector hidden to free up space for other panes (read-only, set by the split view) */
|
|
1523
|
+
'inspector-auto-hidden'?: true;
|
|
1524
|
+
/** @deprecated alias for primary-sidebar-as-sheet (kept for backwards compatibility) */
|
|
1525
|
+
'sidebar-as-sheet'?: true;
|
|
1526
|
+
/** @deprecated alias for primary-sidebar-accessible-label (kept for backwards compatibility) */
|
|
1527
|
+
'sidebar-accessible-label'?: NLDDNavigationSplitView['sidebarAccessibleLabel'];
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
type NlddNotificationProps = {
|
|
1531
|
+
/** What kind of message this is; sets the icon color and the ARIA role (default: 'neutral') */
|
|
1532
|
+
'variant'?: NLDDNotification['variant'];
|
|
1533
|
+
/** 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 */
|
|
1534
|
+
'icon'?: NLDDNotification['icon'];
|
|
1535
|
+
/** The message */
|
|
1536
|
+
'text'?: NLDDNotification['text'];
|
|
1537
|
+
/** A second line under the message */
|
|
1538
|
+
'supporting-text'?: NLDDNotification['supportingText'];
|
|
1539
|
+
/** Milliseconds before it leaves once it is front of the deck (default: 10000). `0` keeps it until dismissed, which is what `critical` does regardless. */
|
|
1540
|
+
'duration'?: NLDDNotification['duration'];
|
|
1541
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
1542
|
+
'translations'?: NLDDNotification['translations'];
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
type NlddNumberFieldProps = {
|
|
1546
|
+
/** 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). */
|
|
1547
|
+
'value'?: NLDDNumberField['value'];
|
|
1548
|
+
/** Minimum value (default: -Infinity) */
|
|
1549
|
+
'min'?: NLDDNumberField['min'];
|
|
1550
|
+
/** Maximum value (default: Infinity) */
|
|
1551
|
+
'max'?: NLDDNumberField['max'];
|
|
1552
|
+
/** Step size (default: 1) */
|
|
1553
|
+
'step'?: NLDDNumberField['step'];
|
|
1554
|
+
/** Size: 'sm' | 'md' (default: 'md') */
|
|
1555
|
+
'size'?: NLDDNumberField['size'];
|
|
1556
|
+
/** Disabled state */
|
|
1557
|
+
'disabled'?: true;
|
|
1558
|
+
/** A value has to be filled in. An empty field is then invalid. */
|
|
1559
|
+
'required'?: true;
|
|
1560
|
+
/** Name for form submission */
|
|
1561
|
+
'name'?: NLDDNumberField['name'];
|
|
1562
|
+
/** Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px') */
|
|
1563
|
+
'width'?: NLDDNumberField['width'];
|
|
1564
|
+
/** When set, hides the decrement and increment buttons */
|
|
1565
|
+
'hide-spin-buttons'?: true;
|
|
1566
|
+
/** Accessible label (aria-label) forwarded to the native input */
|
|
1567
|
+
'accessible-label'?: NLDDNumberField['accessibleLabel'];
|
|
1568
|
+
/** Translations; unspecified keys fall back to Dutch */
|
|
1569
|
+
'translations'?: NLDDNumberField['translations'];
|
|
1570
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
1571
|
+
'invalid'?: true;
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
type NlddOneHalfOneHalfSectionProps = {
|
|
1575
|
+
/** Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width. */
|
|
1576
|
+
'width'?: NLDDOneHalfOneHalfSection['width'];
|
|
1577
|
+
/** Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other. */
|
|
1578
|
+
'vertical-alignment'?: NLDDOneHalfOneHalfSection['verticalAlignment'];
|
|
1579
|
+
/** Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface). */
|
|
1580
|
+
'background'?: NLDDOneHalfOneHalfSection['background'];
|
|
1581
|
+
/** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
|
|
1582
|
+
'height'?: NLDDOneHalfOneHalfSection['height'];
|
|
1583
|
+
/** 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. */
|
|
1584
|
+
'grow'?: true;
|
|
1585
|
+
/** Block (top and bottom) padding override (token 0-96; '0' strips it). */
|
|
1586
|
+
'padding-block'?: NLDDOneHalfOneHalfSection['paddingBlock'];
|
|
1587
|
+
/** Top padding override. */
|
|
1588
|
+
'padding-top'?: NLDDOneHalfOneHalfSection['paddingTop'];
|
|
1589
|
+
/** Bottom padding override. */
|
|
1590
|
+
'padding-bottom'?: NLDDOneHalfOneHalfSection['paddingBottom'];
|
|
1591
|
+
/** Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}). */
|
|
1592
|
+
'sm-padding-block'?: NLDDOneHalfOneHalfSection['smPaddingBlock'];
|
|
1593
|
+
'sm-padding-top'?: NLDDOneHalfOneHalfSection['smPaddingTop'];
|
|
1594
|
+
'sm-padding-bottom'?: NLDDOneHalfOneHalfSection['smPaddingBottom'];
|
|
1595
|
+
'md-padding-block'?: NLDDOneHalfOneHalfSection['mdPaddingBlock'];
|
|
1596
|
+
'md-padding-top'?: NLDDOneHalfOneHalfSection['mdPaddingTop'];
|
|
1597
|
+
'md-padding-bottom'?: NLDDOneHalfOneHalfSection['mdPaddingBottom'];
|
|
1598
|
+
'lg-padding-block'?: NLDDOneHalfOneHalfSection['lgPaddingBlock'];
|
|
1599
|
+
'lg-padding-top'?: NLDDOneHalfOneHalfSection['lgPaddingTop'];
|
|
1600
|
+
'lg-padding-bottom'?: NLDDOneHalfOneHalfSection['lgPaddingBottom'];
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
type NlddOneThirdTwoThirdsSectionProps = {
|
|
1604
|
+
/** Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width. */
|
|
1605
|
+
'width'?: NLDDOneThirdTwoThirdsSection['width'];
|
|
1606
|
+
/** Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other. */
|
|
1607
|
+
'vertical-alignment'?: NLDDOneThirdTwoThirdsSection['verticalAlignment'];
|
|
1608
|
+
/** Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface). */
|
|
1609
|
+
'background'?: NLDDOneThirdTwoThirdsSection['background'];
|
|
1610
|
+
/** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
|
|
1611
|
+
'height'?: NLDDOneThirdTwoThirdsSection['height'];
|
|
1612
|
+
/** 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. */
|
|
1613
|
+
'grow'?: true;
|
|
1614
|
+
/** Block (top and bottom) padding override (token 0-96; '0' strips it). */
|
|
1615
|
+
'padding-block'?: NLDDOneThirdTwoThirdsSection['paddingBlock'];
|
|
1616
|
+
/** Top padding override. */
|
|
1617
|
+
'padding-top'?: NLDDOneThirdTwoThirdsSection['paddingTop'];
|
|
1618
|
+
/** Bottom padding override. */
|
|
1619
|
+
'padding-bottom'?: NLDDOneThirdTwoThirdsSection['paddingBottom'];
|
|
1620
|
+
/** Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}). */
|
|
1621
|
+
'sm-padding-block'?: NLDDOneThirdTwoThirdsSection['smPaddingBlock'];
|
|
1622
|
+
'sm-padding-top'?: NLDDOneThirdTwoThirdsSection['smPaddingTop'];
|
|
1623
|
+
'sm-padding-bottom'?: NLDDOneThirdTwoThirdsSection['smPaddingBottom'];
|
|
1624
|
+
'md-padding-block'?: NLDDOneThirdTwoThirdsSection['mdPaddingBlock'];
|
|
1625
|
+
'md-padding-top'?: NLDDOneThirdTwoThirdsSection['mdPaddingTop'];
|
|
1626
|
+
'md-padding-bottom'?: NLDDOneThirdTwoThirdsSection['mdPaddingBottom'];
|
|
1627
|
+
'lg-padding-block'?: NLDDOneThirdTwoThirdsSection['lgPaddingBlock'];
|
|
1628
|
+
'lg-padding-top'?: NLDDOneThirdTwoThirdsSection['lgPaddingTop'];
|
|
1629
|
+
'lg-padding-bottom'?: NLDDOneThirdTwoThirdsSection['lgPaddingBottom'];
|
|
1630
|
+
};
|
|
1631
|
+
|
|
1632
|
+
type NlddOneTimeCodeFieldProps = {
|
|
1633
|
+
/** 'sm' | 'md' (default) | 'lg'. 'lg' has boxes 56px tall with larger characters, for a page where the code is the only thing to do, such as signing in. Where the boxes do not fit the width, the field steps down a size, to md and then sm: a code never wraps onto a second line. Where not even sm fits, the field shows the code in a text field of its own size. */
|
|
1634
|
+
'size'?: NLDDOneTimeCodeField['size'];
|
|
1635
|
+
/** 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. */
|
|
1636
|
+
'centered'?: true;
|
|
1637
|
+
/** How many characters the code has (default: 6). */
|
|
1638
|
+
'length'?: NLDDOneTimeCodeField['length'];
|
|
1639
|
+
/** 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. */
|
|
1640
|
+
'format'?: NLDDOneTimeCodeField['format'];
|
|
1641
|
+
/** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
|
|
1642
|
+
'accessible-label'?: NLDDOneTimeCodeField['accessibleLabel'];
|
|
1643
|
+
/** Marks the field as invalid */
|
|
1644
|
+
'invalid'?: true;
|
|
1645
|
+
/** Readonly state */
|
|
1646
|
+
'readonly'?: true;
|
|
1647
|
+
/** Disabled state */
|
|
1648
|
+
'disabled'?: true;
|
|
1649
|
+
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
1650
|
+
'input-id'?: NLDDOneTimeCodeField['inputId'];
|
|
1651
|
+
/** Input name for form submission */
|
|
1652
|
+
'name'?: NLDDOneTimeCodeField['name'];
|
|
1653
|
+
/** The code */
|
|
1654
|
+
'value'?: NLDDOneTimeCodeField['value'];
|
|
1655
|
+
/** What the code holds: 'numeric' (default, digits only, raises the number keyboard) | 'alphanumeric' (letters and digits) */
|
|
1656
|
+
'type'?: NLDDOneTimeCodeField['type'];
|
|
1657
|
+
/** 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. */
|
|
1658
|
+
'uppercase'?: true;
|
|
1659
|
+
/** Required state. A code that is not complete counts as invalid too. */
|
|
1660
|
+
'required'?: true;
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
type NlddPageProps = {
|
|
1664
|
+
/** Use a gray background instead of white */
|
|
1665
|
+
'background'?: NLDDPage['background'];
|
|
1666
|
+
/** Name of the landmark this page is: the region it becomes beside another page, or its main landmark */
|
|
1667
|
+
'accessible-label'?: NLDDPage['accessibleLabel'];
|
|
1668
|
+
/** Sticky header */
|
|
1669
|
+
'sticky-header'?: true;
|
|
1670
|
+
/** Sticky footer */
|
|
1671
|
+
'sticky-footer'?: true;
|
|
1672
|
+
/** 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 */
|
|
1673
|
+
'landmarks'?: NLDDPage['landmarks'];
|
|
1674
|
+
};
|
|
1675
|
+
|
|
1676
|
+
type NlddPageFooterProps = {
|
|
1677
|
+
/** 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. */
|
|
1678
|
+
'width'?: NLDDPageFooter['width'];
|
|
1679
|
+
/** 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. */
|
|
1680
|
+
'no-ribbon'?: true;
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
type NlddPageFooterLegalBarProps = {
|
|
1684
|
+
/** Override the nav's aria-label. Defaults to the i18n value (NL: "Juridische links"). */
|
|
1685
|
+
'accessible-label'?: NLDDPageFooterLegalBar['accessibleLabel'];
|
|
1686
|
+
/** Override translation keys; unset keys fall back to the Dutch default. */
|
|
1687
|
+
'translations'?: NLDDPageFooterLegalBar['translations'];
|
|
1688
|
+
};
|
|
1689
|
+
|
|
1690
|
+
type NlddPageFooterLegalBarItemProps = {
|
|
1691
|
+
/** Item label. Content in the default slot wins. */
|
|
1692
|
+
'text'?: NLDDPageFooterLegalBarItem['text'];
|
|
1693
|
+
/** Link target. When omitted, the item renders as plain text. */
|
|
1694
|
+
'href'?: NLDDPageFooterLegalBarItem['href'];
|
|
1695
|
+
};
|
|
1696
|
+
|
|
1697
|
+
type NlddPaginationProps = {
|
|
1698
|
+
/** Currently active page (1-based) */
|
|
1699
|
+
'current'?: NLDDPagination['current'];
|
|
1700
|
+
/** Total number of pages (recommended max: 200 for compact select performance) */
|
|
1701
|
+
'total'?: NLDDPagination['total'];
|
|
1702
|
+
/** Disabled state. Avoid it where you can; the design guidelines say why. */
|
|
1703
|
+
'disabled'?: true;
|
|
1704
|
+
/** Centers the pagination in the container (host fills row, items grouped in the middle) */
|
|
1705
|
+
'centered'?: true;
|
|
1706
|
+
/** URL pattern with a {page} placeholder, renders links instead of buttons */
|
|
1707
|
+
'href-pattern'?: NLDDPagination['hrefPattern'];
|
|
1708
|
+
/** Translations; unspecified keys fall back to Dutch */
|
|
1709
|
+
'translations'?: NLDDPagination['translations'];
|
|
1710
|
+
};
|
|
1711
|
+
|
|
1712
|
+
type NlddPasswordFieldProps = {
|
|
1713
|
+
/** 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
1714
|
+
'size'?: NLDDPasswordField['size'];
|
|
1715
|
+
/** The input value */
|
|
1716
|
+
'value'?: NLDDPasswordField['value'];
|
|
1717
|
+
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
1718
|
+
'input-id'?: NLDDPasswordField['inputId'];
|
|
1719
|
+
/** Placeholder text */
|
|
1720
|
+
'placeholder'?: NLDDPasswordField['placeholder'];
|
|
1721
|
+
/** Marks the field as valid */
|
|
1722
|
+
'valid'?: true;
|
|
1723
|
+
/** Marks the field as invalid */
|
|
1724
|
+
'invalid'?: true;
|
|
1725
|
+
/** Disabled state */
|
|
1726
|
+
'disabled'?: true;
|
|
1727
|
+
/** Whether the password is masked (default: true) */
|
|
1728
|
+
'masked'?: true;
|
|
1729
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
1730
|
+
'translations'?: NLDDPasswordField['translations'];
|
|
1731
|
+
/** Readonly state */
|
|
1732
|
+
'readonly'?: true;
|
|
1733
|
+
/** Required state */
|
|
1734
|
+
'required'?: true;
|
|
1735
|
+
/** Input name for form submission */
|
|
1736
|
+
'name'?: NLDDPasswordField['name'];
|
|
1737
|
+
/** Autocomplete hint */
|
|
1738
|
+
'autocomplete'?: NLDDPasswordField['autocomplete'];
|
|
1739
|
+
/** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
|
|
1740
|
+
'accessible-label'?: NLDDPasswordField['accessibleLabel'];
|
|
1741
|
+
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
1742
|
+
'width'?: NLDDPasswordField['width'];
|
|
1743
|
+
/** Regular expression the value has to match, as the native `pattern`. */
|
|
1744
|
+
'pattern'?: NLDDPasswordField['pattern'];
|
|
1745
|
+
/** Fewest characters the value may have. */
|
|
1746
|
+
'minlength'?: NLDDPasswordField['minlength'];
|
|
1747
|
+
/** Most characters the value may have. */
|
|
1748
|
+
'maxlength'?: NLDDPasswordField['maxlength'];
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
type NlddPopoverProps = {
|
|
1752
|
+
/** Width as a CSS length (default: 320px). A content-based size (`fit-content`, `min-content`, `max-content`, `auto`) is refused: the popover is an inline-size container so slotted components can adapt to it, and its width cannot then come from that same content. Such a value is ignored, with a warning in DEV. */
|
|
1753
|
+
'width'?: NLDDPopover['width'];
|
|
1754
|
+
/** 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. */
|
|
1755
|
+
'sm-full-height'?: true;
|
|
1756
|
+
/** ID of the trigger element, used for positioning */
|
|
1757
|
+
'anchor'?: NLDDPopover['anchor'];
|
|
1758
|
+
/** Floating UI placement (default: 'bottom-start') */
|
|
1759
|
+
'placement'?: NLDDPopover['placement'];
|
|
1760
|
+
/** 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. */
|
|
1761
|
+
'top'?: NLDDPopover['top'];
|
|
1762
|
+
/** CSS right position. See `top` for the semantics. */
|
|
1763
|
+
'right'?: NLDDPopover['right'];
|
|
1764
|
+
/** CSS bottom position. See `top` for the semantics. */
|
|
1765
|
+
'bottom'?: NLDDPopover['bottom'];
|
|
1766
|
+
/** CSS left position. See `top` for the semantics. */
|
|
1767
|
+
'left'?: NLDDPopover['left'];
|
|
1768
|
+
/** 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. */
|
|
1769
|
+
'centered'?: true;
|
|
1770
|
+
/** (required) Accessible name (aria-label). Falls back to the i18n default ('Popover') when unset — always give a unique, describing name. */
|
|
1771
|
+
'accessible-label'?: NLDDPopover['accessibleLabel'];
|
|
1772
|
+
/** Override translation keys; unset keys fall back to the Dutch default. */
|
|
1773
|
+
'translations'?: NLDDPopover['translations'];
|
|
1774
|
+
/** 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. */
|
|
1775
|
+
'open'?: true;
|
|
1776
|
+
/** 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. */
|
|
1777
|
+
'role'?: NLDDPopover['role'];
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
type NlddProgressBarProps = {
|
|
1781
|
+
/** Semantics for ARIA and visualization (default: 'progress') */
|
|
1782
|
+
'variant'?: NLDDProgressBar['variant'];
|
|
1783
|
+
/** Total value (default: 100) */
|
|
1784
|
+
'max'?: NLDDProgressBar['max'];
|
|
1785
|
+
/** Single-segment shorthand (ignored when segment children are present) */
|
|
1786
|
+
'value'?: NLDDProgressBar['value'];
|
|
1787
|
+
/** Color for the single-segment shorthand (default: 'accent') */
|
|
1788
|
+
'color'?: NLDDProgressBar['color'];
|
|
1789
|
+
/** Height of the bar (default: 'md') */
|
|
1790
|
+
'size'?: NLDDProgressBar['size'];
|
|
1791
|
+
/** Label above the bar (left) */
|
|
1792
|
+
'text'?: NLDDProgressBar['text'];
|
|
1793
|
+
/** Format for the displayed value (default: 'percentage') */
|
|
1794
|
+
'value-format'?: NLDDProgressBar['valueFormat'];
|
|
1795
|
+
/** Full override of the displayed value */
|
|
1796
|
+
'value-text'?: NLDDProgressBar['valueText'];
|
|
1797
|
+
/** Where the value shows: inline in the caption, in a tooltip on the bar, or hidden (default: 'inline') */
|
|
1798
|
+
'value-display'?: NLDDProgressBar['valueDisplay'];
|
|
1799
|
+
/** Full override of aria-valuetext */
|
|
1800
|
+
'accessible-label'?: NLDDProgressBar['accessibleLabel'];
|
|
1801
|
+
/** Shows a sliding indicator animation (only without segments) */
|
|
1802
|
+
'indeterminate'?: true;
|
|
1803
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
1804
|
+
'translations'?: NLDDProgressBar['translations'];
|
|
1805
|
+
};
|
|
1806
|
+
|
|
1807
|
+
type NlddProgressBarSegmentIndicatorProps = {
|
|
1808
|
+
/** Share of the parent's total (default 0; <=0 hides segment) */
|
|
1809
|
+
'value'?: NLDDProgressBarSegmentIndicator['value'];
|
|
1810
|
+
/** 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. */
|
|
1811
|
+
'color'?: NLDDProgressBarSegmentIndicator['color'];
|
|
1812
|
+
/** Name for screenreader text (optional) */
|
|
1813
|
+
'name'?: NLDDProgressBarSegmentIndicator['name'];
|
|
1814
|
+
/** Override of the auto-generated tooltip text */
|
|
1815
|
+
'tooltip-text'?: NLDDProgressBarSegmentIndicator['tooltipText'];
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
type NlddProgressCircleProps = {
|
|
1819
|
+
/** Semantics for ARIA and gap behavior (default: 'progress') */
|
|
1820
|
+
'variant'?: NLDDProgressCircle['variant'];
|
|
1821
|
+
/** Total value (default: 100) */
|
|
1822
|
+
'max'?: NLDDProgressCircle['max'];
|
|
1823
|
+
/** Single-segment shorthand (ignored when segment children exist) */
|
|
1824
|
+
'value'?: NLDDProgressCircle['value'];
|
|
1825
|
+
/** Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'. */
|
|
1826
|
+
'color'?: NLDDProgressCircle['color'];
|
|
1827
|
+
/** Circle diameter in px. Matches nldd-icon sizes: 16, 20, 24, 28, 32, 40, 44, 48, 56, 64, 80, 96 (default: '28') */
|
|
1828
|
+
'size'?: NLDDProgressCircle['size'];
|
|
1829
|
+
/** Label below the circle */
|
|
1830
|
+
'text'?: NLDDProgressCircle['text'];
|
|
1831
|
+
/** Format of the displayed value (default: 'percentage') */
|
|
1832
|
+
'value-format'?: NLDDProgressCircle['valueFormat'];
|
|
1833
|
+
/** Full override of the displayed value (inline + tooltip) */
|
|
1834
|
+
'value-text'?: NLDDProgressCircle['valueText'];
|
|
1835
|
+
/** Where the value shows: inline below the label, in a tooltip, or hidden (default: 'tooltip') */
|
|
1836
|
+
'value-display'?: NLDDProgressCircle['valueDisplay'];
|
|
1837
|
+
/** Full override of aria-valuetext */
|
|
1838
|
+
'accessible-label'?: NLDDProgressCircle['accessibleLabel'];
|
|
1839
|
+
/** Renders the rotating elastic arc animation */
|
|
1840
|
+
'indeterminate'?: true;
|
|
1841
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
1842
|
+
'translations'?: NLDDProgressCircle['translations'];
|
|
1843
|
+
};
|
|
1844
|
+
|
|
1845
|
+
type NlddProgressCircleSegmentIndicatorProps = {
|
|
1846
|
+
/** Share of the parent's total (default 0; <=0 hides segment) */
|
|
1847
|
+
'value'?: NLDDProgressCircleSegmentIndicator['value'];
|
|
1848
|
+
/** 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. */
|
|
1849
|
+
'color'?: NLDDProgressCircleSegmentIndicator['color'];
|
|
1850
|
+
/** Optional name used in the combined tooltip + screenreader text */
|
|
1851
|
+
'name'?: NLDDProgressCircleSegmentIndicator['name'];
|
|
1852
|
+
};
|
|
1853
|
+
|
|
1854
|
+
type NlddRadioButtonProps = {
|
|
1855
|
+
/** Checked state */
|
|
1856
|
+
'checked'?: true;
|
|
1857
|
+
/** 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. */
|
|
1858
|
+
'decorative'?: true;
|
|
1859
|
+
/** Disabled state */
|
|
1860
|
+
'disabled'?: true;
|
|
1861
|
+
/** 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. */
|
|
1862
|
+
'no-tab'?: true;
|
|
1863
|
+
/** Required state. What it asks is whether anything in the group is checked, as a native radio does. */
|
|
1864
|
+
'required'?: true;
|
|
1865
|
+
/** Draws the focus ring around the shape. Set by nldd-radio-button-field, which is the radio itself and holds the focus. Not part of the public API. */
|
|
1866
|
+
'focus-ring'?: true;
|
|
1867
|
+
/** Radio group name for form submission; ties the buttons of one group together */
|
|
1868
|
+
'name'?: NLDDRadioButton['name'];
|
|
1869
|
+
/** Value submitted with the form when this radio button is checked */
|
|
1870
|
+
'value'?: NLDDRadioButton['value'];
|
|
1871
|
+
/** 'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. 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. */
|
|
1872
|
+
'color'?: NLDDRadioButton['color'];
|
|
1873
|
+
/** Accessible label, set as aria-label on this element: it is the radio. */
|
|
1874
|
+
'accessible-label'?: NLDDRadioButton['accessibleLabel'];
|
|
1875
|
+
/** 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. */
|
|
1876
|
+
'invalid'?: true;
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
type NlddRadioButtonFieldProps = {
|
|
1880
|
+
/** Checked state */
|
|
1881
|
+
'checked'?: true;
|
|
1882
|
+
/** Disabled state */
|
|
1883
|
+
'disabled'?: true;
|
|
1884
|
+
/** Value for form submission */
|
|
1885
|
+
'value'?: NLDDRadioButtonField['value'];
|
|
1886
|
+
/** Radio group name for form submission; ties the fields of one group together. Set automatically by nldd-radio-button-group. */
|
|
1887
|
+
'name'?: NLDDRadioButtonField['name'];
|
|
1888
|
+
/** 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. */
|
|
1889
|
+
'required'?: true;
|
|
1890
|
+
/** 'inherit' 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. */
|
|
1891
|
+
'color'?: NLDDRadioButtonField['color'];
|
|
1892
|
+
/** Label text for the radio button */
|
|
1893
|
+
'label'?: NLDDRadioButtonField['label'];
|
|
1894
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
1895
|
+
'invalid'?: true;
|
|
1896
|
+
};
|
|
1897
|
+
|
|
1898
|
+
type NlddRadioButtonGroupProps = {
|
|
1899
|
+
/** Forwarded to all slotted nldd-radio-button-field elements */
|
|
1900
|
+
'name'?: NLDDRadioButtonGroup['name'];
|
|
1901
|
+
/** Disables all slotted fields */
|
|
1902
|
+
'disabled'?: true;
|
|
1903
|
+
/** Marks the group as required */
|
|
1904
|
+
'required'?: true;
|
|
1905
|
+
/** Accessible name for the group, set as aria-label on the group */
|
|
1906
|
+
'accessible-label'?: NLDDRadioButtonGroup['accessibleLabel'];
|
|
1907
|
+
/** Id of an external label element, set as aria-labelledby on the group */
|
|
1908
|
+
'accessible-labeled-by'?: NLDDRadioButtonGroup['accessibleLabeledBy'];
|
|
1909
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
1910
|
+
'invalid'?: true;
|
|
1911
|
+
};
|
|
1912
|
+
|
|
1913
|
+
type NlddRichTextProps = {
|
|
1914
|
+
/** 'content' (the default) takes the system's own content colors, each element its own. 'inherit' lets all text follow the color of the surface instead (for colored areas such as the filled categories). Links stay underlined as an affordance; secondary text (figcaption) gets the same color at a lowered opacity. Known v1 gaps: inline code, mark, tables and hr keep their own surfaces. */
|
|
1915
|
+
'color'?: NLDDRichText['color'];
|
|
1916
|
+
/** Spacing between elements: 'flat' | 'tight' | 'snug' (default) | 'loose' */
|
|
1917
|
+
'spacing'?: NLDDRichText['spacing'];
|
|
1918
|
+
/** Centers the main column inside the container; without it, content is left-aligned */
|
|
1919
|
+
'centered'?: true;
|
|
1920
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
1921
|
+
'translations'?: NLDDRichText['translations'];
|
|
1922
|
+
/** 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. */
|
|
1923
|
+
'hyphens'?: true;
|
|
1924
|
+
};
|
|
1925
|
+
|
|
1926
|
+
type NlddSearchFieldProps = {
|
|
1927
|
+
/** Field size: 'sm' | 'md' (default: 'md') */
|
|
1928
|
+
'size'?: NLDDSearchField['size'];
|
|
1929
|
+
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
1930
|
+
'width'?: NLDDSearchField['width'];
|
|
1931
|
+
/** Placeholder text for the input */
|
|
1932
|
+
'placeholder'?: NLDDSearchField['placeholder'];
|
|
1933
|
+
/** Accessible name (aria-label) of the native input. Falls back to `placeholder`, and keeps it when a value is typed. That works while the placeholder names the field ('Zoek een gebruiker'); set this when the placeholder is an example instead ('bijv. Jansen'). Without a visible label the placeholder is the only text on screen, so a name of your own starts with it: someone who works the computer by voice says what they see, and a name that leaves it out does not answer (WCAG 2.5.3). */
|
|
1934
|
+
'accessible-label'?: NLDDSearchField['accessibleLabel'];
|
|
1935
|
+
/** Shows a search button on the right, in the appearance you name: 'secondary' (also with no value) | 'primary'. Leave it out for no button: Enter searches as well. 'primary' is for a page where searching is the main task, such as a search page; in a header or above a list the quiet one fits. */
|
|
1936
|
+
'search-button'?: NLDDSearchField['searchButton'];
|
|
1937
|
+
/** Keyboard shortcut hint shown at the right end of the empty field, e.g. 'Cmd+K' or '/'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up focusing the field in your app. Hidden while the field has focus or a value, and on touch-only devices. Joins the field's description for screen readers. */
|
|
1938
|
+
'shortcut'?: NLDDSearchField['shortcut'];
|
|
1939
|
+
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
1940
|
+
'shortcut-mac'?: NLDDSearchField['shortcutMac'];
|
|
1941
|
+
/** Override of `shortcut` on Windows (falls back to `shortcut`). */
|
|
1942
|
+
'shortcut-windows'?: NLDDSearchField['shortcutWindows'];
|
|
1943
|
+
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
1944
|
+
'shortcut-linux'?: NLDDSearchField['shortcutLinux'];
|
|
1945
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
1946
|
+
'translations'?: NLDDSearchField['translations'];
|
|
1947
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
1948
|
+
'invalid'?: true;
|
|
1949
|
+
/** Disabled state */
|
|
1950
|
+
'disabled'?: true;
|
|
1951
|
+
/** Input name for form submission */
|
|
1952
|
+
'name'?: NLDDSearchField['name'];
|
|
1953
|
+
/** The search value */
|
|
1954
|
+
'value'?: NLDDSearchField['value'];
|
|
1955
|
+
/** Required state */
|
|
1956
|
+
'required'?: true;
|
|
1957
|
+
/** Fewest characters the value may have. */
|
|
1958
|
+
'minlength'?: NLDDSearchField['minlength'];
|
|
1959
|
+
/** Most characters the value may have. */
|
|
1960
|
+
'maxlength'?: NLDDSearchField['maxlength'];
|
|
1961
|
+
/** Regular expression the value has to match, as the native `pattern`. */
|
|
1962
|
+
'pattern'?: NLDDSearchField['pattern'];
|
|
1963
|
+
/** Disables browser spellchecking on the inner input */
|
|
1964
|
+
'no-spellcheck'?: true;
|
|
1965
|
+
};
|
|
1966
|
+
|
|
1967
|
+
type NlddSegmentedControlProps = {
|
|
1968
|
+
/** Marks the group as required. Enforced in radio mode; in checkbox mode only announced. */
|
|
1969
|
+
'required'?: true;
|
|
1970
|
+
/** Marks the group as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
1971
|
+
'invalid'?: true;
|
|
1972
|
+
/** Selected value for radio type */
|
|
1973
|
+
'value'?: NLDDSegmentedControl['value'];
|
|
1974
|
+
/** 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. */
|
|
1975
|
+
'appearance'?: NLDDSegmentedControl['appearance'];
|
|
1976
|
+
/** Control size: 'sm' | 'md' | 'lg' (default: 'md') */
|
|
1977
|
+
'size'?: NLDDSegmentedControl['size'];
|
|
1978
|
+
/** Selection mode: 'radio' | 'checkbox' (default: 'radio'). */
|
|
1979
|
+
'type'?: NLDDSegmentedControl['type'];
|
|
1980
|
+
/** Content type for all items: 'text' | 'icon' | 'icon-and-text' (default: 'text') */
|
|
1981
|
+
'variant'?: NLDDSegmentedControl['variant'];
|
|
1982
|
+
/** Disabled state for all items */
|
|
1983
|
+
'disabled'?: true;
|
|
1984
|
+
/** Width mode: 'full' (stretches to container), 'fit-content' (per-item content size), or any CSS length (e.g. '240px') */
|
|
1985
|
+
'width'?: NLDDSegmentedControl['width'];
|
|
1986
|
+
/** Name for form submission */
|
|
1987
|
+
'name'?: NLDDSegmentedControl['name'];
|
|
1988
|
+
/** Accessible name for the group, set as aria-label */
|
|
1989
|
+
'accessible-label'?: NLDDSegmentedControl['accessibleLabel'];
|
|
1990
|
+
/** Id of an external label element, set as aria-labelledby on the group */
|
|
1991
|
+
'accessible-labeled-by'?: NLDDSegmentedControl['accessibleLabeledBy'];
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1994
|
+
type NlddSegmentedControlItemProps = {
|
|
1995
|
+
/** Required state of the native checkbox. In radio mode the group carries the constraint. */
|
|
1996
|
+
'required'?: true;
|
|
1997
|
+
/** Value for this item */
|
|
1998
|
+
'value'?: NLDDSegmentedControlItem['value'];
|
|
1999
|
+
/** Whether this item is selected (set by parent) */
|
|
2000
|
+
'selected'?: true;
|
|
2001
|
+
/** Disabled state */
|
|
2002
|
+
'disabled'?: true;
|
|
2003
|
+
/** Visual style: 'neutral-tinted' | 'neutral-base' (default: 'neutral-tinted'). Set by nldd-segmented-control. */
|
|
2004
|
+
'appearance'?: NLDDSegmentedControlItem['appearance'];
|
|
2005
|
+
/** Control size: 'sm' | 'md' | 'lg' (default: 'md'). Set by nldd-segmented-control. */
|
|
2006
|
+
'size'?: NLDDSegmentedControlItem['size'];
|
|
2007
|
+
/** Content type: 'text' | 'icon' | 'icon-and-text' (default: 'text'). Set by nldd-segmented-control. */
|
|
2008
|
+
'variant'?: NLDDSegmentedControlItem['variant'];
|
|
2009
|
+
/** 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. */
|
|
2010
|
+
'input-type'?: NLDDSegmentedControlItem['inputType'];
|
|
2011
|
+
/** Name of the group for form submission, put on the native checkbox. Set by nldd-segmented-control. */
|
|
2012
|
+
'group-name'?: NLDDSegmentedControlItem['groupName'];
|
|
2013
|
+
/** Text label (shown for variant "text" and "icon-and-text"; used as aria-label and tooltip for variant "icon") */
|
|
2014
|
+
'text'?: NLDDSegmentedControlItem['text'];
|
|
2015
|
+
/** Icon name for nldd-icon */
|
|
2016
|
+
'icon'?: NLDDSegmentedControlItem['icon'];
|
|
2017
|
+
/** 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. */
|
|
2018
|
+
'shortcut'?: NLDDSegmentedControlItem['shortcut'];
|
|
2019
|
+
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
2020
|
+
'shortcut-mac'?: NLDDSegmentedControlItem['shortcutMac'];
|
|
2021
|
+
/** Override of `shortcut` on Windows (falls back to `shortcut`). */
|
|
2022
|
+
'shortcut-windows'?: NLDDSegmentedControlItem['shortcutWindows'];
|
|
2023
|
+
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
2024
|
+
'shortcut-linux'?: NLDDSegmentedControlItem['shortcutLinux'];
|
|
2025
|
+
};
|
|
2026
|
+
|
|
2027
|
+
type NlddSheetProps = {
|
|
2028
|
+
/** Custom width for side sheets (left/right) as a CSS length (e.g. '480px', '32rem'). Applied from the md breakpoint up; ignored on sm (bottom sheet) and for `placement="bottom"`. Clamped to `100vw - 2 * inset` so the sheet always fits. */
|
|
2029
|
+
'width'?: NLDDSheet['width'];
|
|
2030
|
+
/** Custom height for bottom sheets (and for any sheet on sm viewports, where all placements collapse to bottom). Accepts: `'full'` (default — viewport minus top-inset, identical to omitting the attribute), `'fit-content'` (collapse to content size), or any CSS length/percentage (e.g. `'50dvh'`, `'480px'`, `'50%'`). Always clamped to `100dvh - top-inset` so the sheet can't extend past the dismiss-tap area. No effect on side sheets at md+. */
|
|
2031
|
+
'height'?: NLDDSheet['height'];
|
|
2032
|
+
/** Sheet position: 'left' | 'right' | 'bottom' (default: 'right') */
|
|
2033
|
+
'placement'?: NLDDSheet['placement'];
|
|
2034
|
+
/** Accessible name for the dialog, forwarded as aria-label. Unset, the sheet takes the text of the nldd-top-title-bar inside it, and without one it is called 'Venster'. */
|
|
2035
|
+
'accessible-label'?: NLDDSheet['accessibleLabel'];
|
|
2036
|
+
/** Whether the sheet is open. Set it to open or close the sheet, as an alternative to show() and hide(). The sheet 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. */
|
|
2037
|
+
'open'?: true;
|
|
2038
|
+
};
|
|
2039
|
+
|
|
2040
|
+
type NlddShellProps = {
|
|
2041
|
+
/** Background color (cascades to descendants) */
|
|
2042
|
+
'background'?: NLDDShell['background'];
|
|
2043
|
+
};
|
|
2044
|
+
|
|
2045
|
+
type NlddSideBySideSplitViewProps = {
|
|
2046
|
+
/** Use a tinted background color (cascades to descendants) */
|
|
2047
|
+
'background'?: NLDDSideBySideSplitView['background'];
|
|
2048
|
+
/** Number of panes (default: 2) */
|
|
2049
|
+
'panes'?: NLDDSideBySideSplitView['panes'];
|
|
2050
|
+
};
|
|
2051
|
+
|
|
2052
|
+
type NlddSidebarSectionProps = {
|
|
2053
|
+
/** Body max-width: 'full' removes the constraint; any CSS length overrides the default. */
|
|
2054
|
+
'width'?: NLDDSidebarSection['width'];
|
|
2055
|
+
/** Accessible name for the sidebar (the aside landmark on lg and the sheet on sm/md). Default 'Zijbalk'. */
|
|
2056
|
+
'sidebar-label'?: NLDDSidebarSection['sidebarLabel'];
|
|
2057
|
+
/** Override translation keys (sheet title fallback, dismiss label); unset keys fall back to Dutch. */
|
|
2058
|
+
'translations'?: NLDDSidebarSection['translations'];
|
|
2059
|
+
/** Opt out of the sheet: a narrow section stacks the sidebar above the main instead of collapsing. `collapsed` then stays false. */
|
|
2060
|
+
'no-collapse'?: true;
|
|
2061
|
+
/** Sticky top inset on lg (CSS length; default = 16px). */
|
|
2062
|
+
'sticky-top'?: NLDDSidebarSection['stickyTop'];
|
|
2063
|
+
/** Sticky bottom inset on lg (CSS length; default = 16px). */
|
|
2064
|
+
'sticky-bottom'?: NLDDSidebarSection['stickyBottom'];
|
|
2065
|
+
/** 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. */
|
|
2066
|
+
'collapsed'?: true;
|
|
2067
|
+
'background'?: NLDDSidebarSection['background'];
|
|
2068
|
+
'height'?: NLDDSidebarSection['height'];
|
|
2069
|
+
/** 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. */
|
|
2070
|
+
'grow'?: true;
|
|
2071
|
+
'padding-block'?: NLDDSidebarSection['paddingBlock'];
|
|
2072
|
+
'padding-top'?: NLDDSidebarSection['paddingTop'];
|
|
2073
|
+
'padding-bottom'?: NLDDSidebarSection['paddingBottom'];
|
|
2074
|
+
'sm-padding-block'?: NLDDSidebarSection['smPaddingBlock'];
|
|
2075
|
+
'sm-padding-top'?: NLDDSidebarSection['smPaddingTop'];
|
|
2076
|
+
'sm-padding-bottom'?: NLDDSidebarSection['smPaddingBottom'];
|
|
2077
|
+
'md-padding-block'?: NLDDSidebarSection['mdPaddingBlock'];
|
|
2078
|
+
'md-padding-top'?: NLDDSidebarSection['mdPaddingTop'];
|
|
2079
|
+
'md-padding-bottom'?: NLDDSidebarSection['mdPaddingBottom'];
|
|
2080
|
+
'lg-padding-block'?: NLDDSidebarSection['lgPaddingBlock'];
|
|
2081
|
+
'lg-padding-top'?: NLDDSidebarSection['lgPaddingTop'];
|
|
2082
|
+
'lg-padding-bottom'?: NLDDSidebarSection['lgPaddingBottom'];
|
|
2083
|
+
};
|
|
2084
|
+
|
|
2085
|
+
type NlddSimpleSectionProps = {
|
|
2086
|
+
/** Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width. */
|
|
2087
|
+
'width'?: NLDDSimpleSection['width'];
|
|
2088
|
+
/** Where the body's children sit across the body ('left' default). Use it to place something narrower than the body, such as a container with a max-width. */
|
|
2089
|
+
'horizontal-alignment'?: NLDDSimpleSection['horizontalAlignment'];
|
|
2090
|
+
/** Where the body's children sit down the section ('top' default). Only visible when the section is taller than its content. */
|
|
2091
|
+
'vertical-alignment'?: NLDDSimpleSection['verticalAlignment'];
|
|
2092
|
+
/** Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface). */
|
|
2093
|
+
'background'?: NLDDSimpleSection['background'];
|
|
2094
|
+
/** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
|
|
2095
|
+
'height'?: NLDDSimpleSection['height'];
|
|
2096
|
+
/** 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. */
|
|
2097
|
+
'grow'?: true;
|
|
2098
|
+
/** Block (top and bottom) padding override (token 0-96; '0' strips it). */
|
|
2099
|
+
'padding-block'?: NLDDSimpleSection['paddingBlock'];
|
|
2100
|
+
/** Top padding override. */
|
|
2101
|
+
'padding-top'?: NLDDSimpleSection['paddingTop'];
|
|
2102
|
+
/** Bottom padding override. */
|
|
2103
|
+
'padding-bottom'?: NLDDSimpleSection['paddingBottom'];
|
|
2104
|
+
/** Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}). */
|
|
2105
|
+
'sm-padding-block'?: NLDDSimpleSection['smPaddingBlock'];
|
|
2106
|
+
'sm-padding-top'?: NLDDSimpleSection['smPaddingTop'];
|
|
2107
|
+
'sm-padding-bottom'?: NLDDSimpleSection['smPaddingBottom'];
|
|
2108
|
+
'md-padding-block'?: NLDDSimpleSection['mdPaddingBlock'];
|
|
2109
|
+
'md-padding-top'?: NLDDSimpleSection['mdPaddingTop'];
|
|
2110
|
+
'md-padding-bottom'?: NLDDSimpleSection['mdPaddingBottom'];
|
|
2111
|
+
'lg-padding-block'?: NLDDSimpleSection['lgPaddingBlock'];
|
|
2112
|
+
'lg-padding-top'?: NLDDSimpleSection['lgPaddingTop'];
|
|
2113
|
+
'lg-padding-bottom'?: NLDDSimpleSection['lgPaddingBottom'];
|
|
2114
|
+
};
|
|
2115
|
+
|
|
2116
|
+
type NlddSkipLinkProps = {
|
|
2117
|
+
/** Text of the skip link. Name what is skipped. Falls back to the i18n default. */
|
|
2118
|
+
'text'?: NLDDSkipLink['text'];
|
|
2119
|
+
/** Optional external target id. Without href it jumps to the first rendered element after the skip link. */
|
|
2120
|
+
'href'?: NLDDSkipLink['href'];
|
|
2121
|
+
'translations'?: NLDDSkipLink['translations'];
|
|
2122
|
+
};
|
|
2123
|
+
|
|
2124
|
+
type NlddSliderProps = {
|
|
2125
|
+
/** Slider size: 'xs' | 'sm' | 'md' (default: 'md'), with the height of the other controls of that size. Set automatically by nldd-form-field. */
|
|
2126
|
+
'size'?: NLDDSlider['size'];
|
|
2127
|
+
/** Picks a range, with a thumb for each end: `start-value` and `end-value` in place of `value` */
|
|
2128
|
+
'range'?: true;
|
|
2129
|
+
/** 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. */
|
|
2130
|
+
'histogram'?: NLDDSlider['histogram'];
|
|
2131
|
+
/** 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). */
|
|
2132
|
+
'start-icon'?: NLDDSlider['startIcon'];
|
|
2133
|
+
/** Icon at the end of the track. A click on it moves the value a tenth of the range up (not in a range). */
|
|
2134
|
+
'end-icon'?: NLDDSlider['endIcon'];
|
|
2135
|
+
/** Accessible name; a range adds "minimum" and "maximum" to it for its thumbs. Set automatically by nldd-form-field. */
|
|
2136
|
+
'accessible-label'?: NLDDSlider['accessibleLabel'];
|
|
2137
|
+
/** 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 */
|
|
2138
|
+
'tooltip-timing'?: NLDDSlider['tooltipTiming'];
|
|
2139
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2140
|
+
'invalid'?: true;
|
|
2141
|
+
/** Disabled state */
|
|
2142
|
+
'disabled'?: true;
|
|
2143
|
+
/** Name for form submission */
|
|
2144
|
+
'name'?: NLDDSlider['name'];
|
|
2145
|
+
/** The value (default: the middle between min and max) */
|
|
2146
|
+
'value'?: NLDDSlider['value'];
|
|
2147
|
+
/** The start of a range (default: min) */
|
|
2148
|
+
'start-value'?: NLDDSlider['startValue'];
|
|
2149
|
+
/** The end of a range (default: max) */
|
|
2150
|
+
'end-value'?: NLDDSlider['endValue'];
|
|
2151
|
+
/** Smallest value (default: 0) */
|
|
2152
|
+
'min'?: NLDDSlider['min'];
|
|
2153
|
+
/** Largest value (default: 100) */
|
|
2154
|
+
'max'?: NLDDSlider['max'];
|
|
2155
|
+
/** Step between values (default: 1) */
|
|
2156
|
+
'step'?: NLDDSlider['step'];
|
|
2157
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
2158
|
+
'translations'?: NLDDSlider['translations'];
|
|
2159
|
+
};
|
|
2160
|
+
|
|
2161
|
+
type NlddSpacerProps = {
|
|
2162
|
+
/** Base spacer size. 'flexible' or one of the fixed tokens (2–96). Default: '16'. */
|
|
2163
|
+
'size'?: NLDDSpacer['size'];
|
|
2164
|
+
/** Spacer size at sm breakpoint (max-width: 640px). */
|
|
2165
|
+
'sm-size'?: NLDDSpacer['smSize'];
|
|
2166
|
+
/** Spacer size at md breakpoint (641px–1007px). */
|
|
2167
|
+
'md-size'?: NLDDSpacer['mdSize'];
|
|
2168
|
+
/** Spacer size at lg breakpoint (min-width: 1008px). */
|
|
2169
|
+
'lg-size'?: NLDDSpacer['lgSize'];
|
|
2170
|
+
/** Direction: 'horizontal' | 'vertical' | 'both' (default: 'both') */
|
|
2171
|
+
'direction'?: NLDDSpacer['direction'];
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
type NlddSpacerCellProps = {
|
|
2175
|
+
/** Spacer size in pixels: '2' | '4' | '6' | '8' | '10' | '12' | '16' | '20' | '24' | '28' | '32' | '40' | '44' | '48' | '56' | '64' | '80' | '96' (default: '16') */
|
|
2176
|
+
'size'?: NLDDSpacerCell['size'];
|
|
2177
|
+
'hide-below'?: NLDDSpacerCell['hideBelow'];
|
|
2178
|
+
'hide-above'?: NLDDSpacerCell['hideAbove'];
|
|
2179
|
+
};
|
|
2180
|
+
|
|
2181
|
+
type NlddSplitButtonProps = {
|
|
2182
|
+
/** Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md') */
|
|
2183
|
+
'size'?: NLDDSplitButton['size'];
|
|
2184
|
+
/** Visual style: 'neutral-tinted' (default) | 'neutral-base' | 'accent-filled' | 'primary' | 'secondary' | 'inherit-tinted' | 'inherit-filled'. 'primary' is 'accent-filled' and 'secondary' is 'neutral-tinted'. The inherit appearances are for a colored surface. There are no transparent appearances: the split button needs a surface of its own to show it is one control. */
|
|
2185
|
+
'appearance'?: NLDDSplitButton['appearance'];
|
|
2186
|
+
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
2187
|
+
'disabled'?: true;
|
|
2188
|
+
/** Loading state of the main action, as on nldd-button. The chevron stays available. */
|
|
2189
|
+
'loading'?: true;
|
|
2190
|
+
/** What the screen reader announces while `loading` is on, as on nldd-button. */
|
|
2191
|
+
'loading-text'?: NLDDSplitButton['loadingText'];
|
|
2192
|
+
/** Width mode: 'full' (stretches to container) or any CSS length; the main action button fills the available space */
|
|
2193
|
+
'width'?: NLDDSplitButton['width'];
|
|
2194
|
+
/** Button text for the primary action */
|
|
2195
|
+
'text'?: NLDDSplitButton['text'];
|
|
2196
|
+
/** Icon name shown before the text on the primary action button */
|
|
2197
|
+
'icon'?: NLDDSplitButton['icon'];
|
|
2198
|
+
/** What the main action does in a form: 'button' (default) | 'submit' | 'reset'. Ignored when `href` is set. */
|
|
2199
|
+
'type'?: NLDDSplitButton['type'];
|
|
2200
|
+
/** Turns the main action into a link, as on nldd-button. */
|
|
2201
|
+
'href'?: NLDDSplitButton['href'];
|
|
2202
|
+
/** Saves the file `href` points at instead of opening it, as on nldd-button. Only used with `href`. */
|
|
2203
|
+
'download'?: NLDDSplitButton['download'];
|
|
2204
|
+
/** 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. */
|
|
2205
|
+
'popovertarget'?: NLDDSplitButton['popovertarget'];
|
|
2206
|
+
/** 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. */
|
|
2207
|
+
'shortcut'?: NLDDSplitButton['shortcut'];
|
|
2208
|
+
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
2209
|
+
'shortcut-mac'?: NLDDSplitButton['shortcutMac'];
|
|
2210
|
+
/** Override of `shortcut` on Windows (falls back to `shortcut`). */
|
|
2211
|
+
'shortcut-windows'?: NLDDSplitButton['shortcutWindows'];
|
|
2212
|
+
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
2213
|
+
'shortcut-linux'?: NLDDSplitButton['shortcutLinux'];
|
|
2214
|
+
/** Translations; unset keys fall back to Dutch */
|
|
2215
|
+
'translations'?: NLDDSplitButton['translations'];
|
|
2216
|
+
/** 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. */
|
|
2217
|
+
'form'?: NLDDSplitButton['form'];
|
|
2218
|
+
};
|
|
2219
|
+
|
|
2220
|
+
type NlddSplitViewDividerProps = {
|
|
2221
|
+
/** Orientation: 'vertical' | 'horizontal' */
|
|
2222
|
+
'orientation'?: NLDDSplitViewDivider['orientation'];
|
|
2223
|
+
/** Show a drag handle */
|
|
2224
|
+
'has-drag-handle'?: true;
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2227
|
+
type NlddSplitViewPaneProps = {
|
|
2228
|
+
/** Use a tinted background color (cascades to descendants) */
|
|
2229
|
+
'background'?: NLDDSplitViewPane['background'];
|
|
2230
|
+
/** Hide the back button (set automatically by the split view) */
|
|
2231
|
+
'hide-back'?: true;
|
|
2232
|
+
/** The pane has content (default: false) */
|
|
2233
|
+
'has-content'?: true;
|
|
2234
|
+
};
|
|
2235
|
+
|
|
2236
|
+
type NlddStackedSplitViewProps = {
|
|
2237
|
+
/** Use a tinted background color (cascades to descendants) */
|
|
2238
|
+
'background'?: NLDDStackedSplitView['background'];
|
|
2239
|
+
/** Number of panes (default: 2) */
|
|
2240
|
+
'panes'?: NLDDStackedSplitView['panes'];
|
|
2241
|
+
};
|
|
2242
|
+
|
|
2243
|
+
type NlddStatusBarProps = {
|
|
2244
|
+
/** Color of the bar (default: 'neutral') */
|
|
2245
|
+
'variant'?: NLDDStatusBar['variant'];
|
|
2246
|
+
/** The status text (one line; truncated with an ellipsis) */
|
|
2247
|
+
'text'?: NLDDStatusBar['text'];
|
|
2248
|
+
/** Makes the whole bar a link (renders an <a>) */
|
|
2249
|
+
'href'?: NLDDStatusBar['href'];
|
|
2250
|
+
/** Link target (e.g. '_blank'); only used with href */
|
|
2251
|
+
'target'?: NLDDStatusBar['target'];
|
|
2252
|
+
/** Link rel, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
|
|
2253
|
+
'rel'?: NLDDStatusBar['rel'];
|
|
2254
|
+
/** Makes the whole bar a button; ignored when href is set */
|
|
2255
|
+
'button'?: true;
|
|
2256
|
+
};
|
|
2257
|
+
|
|
2258
|
+
type NlddStepBarProps = {
|
|
2259
|
+
/** Name of the nav; defaults to the i18n value ("Voortgang") */
|
|
2260
|
+
'accessible-label'?: NLDDStepBar['accessibleLabel'];
|
|
2261
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
2262
|
+
'translations'?: NLDDStepBar['translations'];
|
|
2263
|
+
};
|
|
2264
|
+
|
|
2265
|
+
type NlddStepBarItemProps = {
|
|
2266
|
+
/** 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 1 is current, with more than one the last wins. `past` and `future` override what is derived for this step only */
|
|
2267
|
+
'status'?: NLDDStepBarItem['status'];
|
|
2268
|
+
/** Label under the disc. Content in the default slot wins. */
|
|
2269
|
+
'text'?: NLDDStepBarItem['text'];
|
|
2270
|
+
/** Icon in the disc instead of the number or the check mark */
|
|
2271
|
+
'icon'?: NLDDStepBarItem['icon'];
|
|
2272
|
+
/** Makes the step a link (back to a completed step, for instance) */
|
|
2273
|
+
'href'?: NLDDStepBarItem['href'];
|
|
2274
|
+
/** Makes the step a button, for flows without a URL per step; ignored when `href` is set */
|
|
2275
|
+
'button'?: true;
|
|
2276
|
+
};
|
|
2277
|
+
|
|
2278
|
+
type NlddStepCellProps = {
|
|
2279
|
+
/** What stands in the lane: a whole dot (`major`, the default), a smaller one for a row that belongs under the one above it (`minor`), or nothing at all (`none`) for a row that carries what a step holds rather than being a step. A `none` row keeps its `size` and its `status`, so it stays in the same lane and the track runs on in the right color */
|
|
2280
|
+
'level'?: NLDDStepCell['level'];
|
|
2281
|
+
/** How far along this row is (default 'past'); the same values as `nldd-step-bar-item`. It colors the dot and the track around it: covered above where you are, still ahead below */
|
|
2282
|
+
'status'?: NLDDStepCell['status'];
|
|
2283
|
+
/** 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 */
|
|
2284
|
+
'size'?: NLDDStepCell['size'];
|
|
2285
|
+
/** 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 */
|
|
2286
|
+
'vertical-alignment'?: NLDDStepCell['verticalAlignment'];
|
|
2287
|
+
/** 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 */
|
|
2288
|
+
'marker-offset'?: NLDDStepCell['markerOffset'];
|
|
2289
|
+
/** 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 */
|
|
2290
|
+
'direction'?: NLDDStepCell['direction'];
|
|
2291
|
+
/** 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 */
|
|
2292
|
+
'position'?: NLDDStepCell['position'];
|
|
2293
|
+
/** 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 */
|
|
2294
|
+
'line'?: NLDDStepCell['line'];
|
|
2295
|
+
/** Number or short text in the dot */
|
|
2296
|
+
'text'?: NLDDStepCell['text'];
|
|
2297
|
+
/** Icon name in the dot; wins over `text` */
|
|
2298
|
+
'icon'?: NLDDStepCell['icon'];
|
|
2299
|
+
'hide-below'?: NLDDStepCell['hideBelow'];
|
|
2300
|
+
'hide-above'?: NLDDStepCell['hideAbove'];
|
|
2301
|
+
};
|
|
2302
|
+
|
|
2303
|
+
type NlddStepperProps = {
|
|
2304
|
+
/** Current value */
|
|
2305
|
+
'value'?: NLDDStepper['value'];
|
|
2306
|
+
/** Minimum value (default: 0) */
|
|
2307
|
+
'min'?: NLDDStepper['min'];
|
|
2308
|
+
/** Maximum value (default: Infinity) */
|
|
2309
|
+
'max'?: NLDDStepper['max'];
|
|
2310
|
+
/** Step size (default: 1) */
|
|
2311
|
+
'step'?: NLDDStepper['step'];
|
|
2312
|
+
/** Disabled state */
|
|
2313
|
+
'disabled'?: true;
|
|
2314
|
+
/** Size: 'xs' | 'sm' | 'md' (default: 'md') */
|
|
2315
|
+
'size'?: NLDDStepper['size'];
|
|
2316
|
+
/** Name for form submission; the value is submitted under this name */
|
|
2317
|
+
'name'?: NLDDStepper['name'];
|
|
2318
|
+
/** Accessible name for the spinbutton; falls back to a generic label */
|
|
2319
|
+
'accessible-label'?: NLDDStepper['accessibleLabel'];
|
|
2320
|
+
/** Translations; unspecified keys fall back to Dutch */
|
|
2321
|
+
'translations'?: NLDDStepper['translations'];
|
|
2322
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2323
|
+
'invalid'?: true;
|
|
2324
|
+
};
|
|
2325
|
+
|
|
2326
|
+
type NlddSwatchPickerProps = {
|
|
2327
|
+
/** Swatch size, on the control scale: 'xs' (24px) | 'sm' (32px) | 'md' (44px) (default: 'md') */
|
|
2328
|
+
'size'?: NLDDSwatchPicker['size'];
|
|
2329
|
+
/** Accessible name for the group, set as aria-label. In an nldd-form-field the field names it. */
|
|
2330
|
+
'accessible-label'?: NLDDSwatchPicker['accessibleLabel'];
|
|
2331
|
+
/** Id of an external label element, set as aria-labelledby on the group */
|
|
2332
|
+
'accessible-labeled-by'?: NLDDSwatchPicker['accessibleLabeledBy'];
|
|
2333
|
+
/** Marks the group as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2334
|
+
'invalid'?: true;
|
|
2335
|
+
/** Disabled state for all swatches */
|
|
2336
|
+
'disabled'?: true;
|
|
2337
|
+
/** Name for form submission */
|
|
2338
|
+
'name'?: NLDDSwatchPicker['name'];
|
|
2339
|
+
/** Value of the chosen swatch */
|
|
2340
|
+
'value'?: NLDDSwatchPicker['value'];
|
|
2341
|
+
/** Something has to be chosen */
|
|
2342
|
+
'required'?: true;
|
|
2343
|
+
};
|
|
2344
|
+
|
|
2345
|
+
type NlddSwatchPickerItemProps = {
|
|
2346
|
+
/** Category color: 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen'. Brings its name along, so `text` is optional. */
|
|
2347
|
+
'color'?: NLDDSwatchPickerItem['color'];
|
|
2348
|
+
/** Any CSS color of your own (e.g. '#7a1f3d' or 'var(--brand-color)'), for a color outside the categories. Needs `text`. */
|
|
2349
|
+
'custom-color'?: NLDDSwatchPickerItem['customColor'];
|
|
2350
|
+
/** URL of an image that fills the swatch, for a pattern or a material. Needs `text`. */
|
|
2351
|
+
'image'?: NLDDSwatchPickerItem['image'];
|
|
2352
|
+
/** 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. */
|
|
2353
|
+
'image-srcset'?: NLDDSwatchPickerItem['imageSrcset'];
|
|
2354
|
+
/** Name of the swatch, for screen readers and the tooltip. Overrides the name of a category `color`. */
|
|
2355
|
+
'text'?: NLDDSwatchPickerItem['text'];
|
|
2356
|
+
/** Whether this swatch is chosen (set by the picker) */
|
|
2357
|
+
'selected'?: true;
|
|
2358
|
+
/** Disabled state */
|
|
2359
|
+
'disabled'?: true;
|
|
2360
|
+
/** Value for this swatch */
|
|
2361
|
+
'value'?: NLDDSwatchPickerItem['value'];
|
|
2362
|
+
/** Swatch size: 'xs' | 'sm' | 'md' (set by the picker, default: 'md') */
|
|
2363
|
+
'size'?: NLDDSwatchPickerItem['size'];
|
|
2364
|
+
/** Override translation keys (the names of the category colors); unset keys fall back to Dutch. */
|
|
2365
|
+
'translations'?: NLDDSwatchPickerItem['translations'];
|
|
2366
|
+
};
|
|
2367
|
+
|
|
2368
|
+
type NlddSwitchProps = {
|
|
2369
|
+
/** Name for form submission; nothing is submitted when the switch is off */
|
|
2370
|
+
'name'?: NLDDSwitch['name'];
|
|
2371
|
+
/** Whether the switch is on/off */
|
|
2372
|
+
'checked'?: true;
|
|
2373
|
+
/** Disabled state */
|
|
2374
|
+
'disabled'?: true;
|
|
2375
|
+
/** 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. */
|
|
2376
|
+
'no-tab'?: true;
|
|
2377
|
+
/** Switch size: 'xs' | 'sm' (default: 'sm') */
|
|
2378
|
+
'size'?: NLDDSwitch['size'];
|
|
2379
|
+
/** 'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. 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. */
|
|
2380
|
+
'color'?: NLDDSwitch['color'];
|
|
2381
|
+
/** Accessible label forwarded as aria-label to the native input. Required when using nldd-switch without nldd-switch-field. */
|
|
2382
|
+
'accessible-label'?: NLDDSwitch['accessibleLabel'];
|
|
2383
|
+
/** Value submitted with the form when the switch is on (default: 'on') */
|
|
2384
|
+
'value'?: NLDDSwitch['value'];
|
|
2385
|
+
/** Required state */
|
|
2386
|
+
'required'?: true;
|
|
2387
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2388
|
+
'invalid'?: true;
|
|
2389
|
+
};
|
|
2390
|
+
|
|
2391
|
+
type NlddSwitchFieldProps = {
|
|
2392
|
+
/** Checked state */
|
|
2393
|
+
'checked'?: true;
|
|
2394
|
+
/** Disabled state */
|
|
2395
|
+
'disabled'?: true;
|
|
2396
|
+
/** Value for form submission */
|
|
2397
|
+
'value'?: NLDDSwitchField['value'];
|
|
2398
|
+
/** Name for form submission */
|
|
2399
|
+
'name'?: NLDDSwitchField['name'];
|
|
2400
|
+
/** 'inherit' 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. */
|
|
2401
|
+
'color'?: NLDDSwitchField['color'];
|
|
2402
|
+
/** Label text for the switch */
|
|
2403
|
+
'label'?: NLDDSwitchField['label'];
|
|
2404
|
+
/** Required state */
|
|
2405
|
+
'required'?: true;
|
|
2406
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2407
|
+
'invalid'?: true;
|
|
2408
|
+
};
|
|
2409
|
+
|
|
2410
|
+
type NlddTabBarProps = {
|
|
2411
|
+
/** Centers the tabs in the container (host fills the row, tabs group in the middle) */
|
|
2412
|
+
'centered'?: true;
|
|
2413
|
+
/** Visual mode: 'icon-and-text' | 'text' | 'icon'. When unset, the variant is inferred from each item's content. Drives the layout at every size. */
|
|
2414
|
+
'variant'?: NLDDTabBar['variant'];
|
|
2415
|
+
/** 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). */
|
|
2416
|
+
'size'?: NLDDTabBar['size'];
|
|
2417
|
+
/** Renders a nav landmark instead of tablist; use for href-based items that navigate between routes */
|
|
2418
|
+
'navigation'?: true;
|
|
2419
|
+
/** 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. */
|
|
2420
|
+
'disabled'?: true;
|
|
2421
|
+
/** Accessible name for the navigation region; defaults to 'Tabs' */
|
|
2422
|
+
'accessible-label'?: NLDDTabBar['accessibleLabel'];
|
|
2423
|
+
/** Override translation keys (e.g. the overflow button label); unset keys fall back to Dutch. */
|
|
2424
|
+
'translations'?: NLDDTabBar['translations'];
|
|
2425
|
+
};
|
|
2426
|
+
|
|
2427
|
+
type NlddTabBarItemProps = {
|
|
2428
|
+
/** 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. */
|
|
2429
|
+
'current'?: true;
|
|
2430
|
+
/** Optional link URL; renders an anchor instead of a button */
|
|
2431
|
+
'href'?: NLDDTabBarItem['href'];
|
|
2432
|
+
/** Set by nldd-tab-bar. Not part of the public API. */
|
|
2433
|
+
'_groupVariant'?: NLDDTabBarItem['_groupVariant'];
|
|
2434
|
+
/** Tab text; also used as accessible name for icon-only items */
|
|
2435
|
+
'text'?: NLDDTabBarItem['text'];
|
|
2436
|
+
/** 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. */
|
|
2437
|
+
'icon'?: NLDDTabBarItem['icon'];
|
|
2438
|
+
/** 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. */
|
|
2439
|
+
'controls'?: NLDDTabBarItem['controls'];
|
|
2440
|
+
/** Size: 'md' (default) | 'lg'. Set by nldd-tab-bar from its own size; 'lg' enlarges the touch target while keeping the variant layout. */
|
|
2441
|
+
'size'?: NLDDTabBarItem['size'];
|
|
2442
|
+
/** Forces this presentation on this item, over the one from nldd-tab-bar */
|
|
2443
|
+
'variant'?: NLDDTabBarItem['variant'];
|
|
2444
|
+
};
|
|
2445
|
+
|
|
2446
|
+
type NlddTableProps = {
|
|
2447
|
+
/** Surface fill of the box (default 'base') */
|
|
2448
|
+
'background'?: NLDDTable['background'];
|
|
2449
|
+
/** CSS grid track list defining the columns once, e.g. "minmax(200px,1fr) 120px 80px" */
|
|
2450
|
+
'columns'?: NLDDTable['columns'];
|
|
2451
|
+
/** Track list when the table is sm-wide (≤640px); falls back to `columns` */
|
|
2452
|
+
'sm-columns'?: NLDDTable['smColumns'];
|
|
2453
|
+
/** Track list when the table is md-wide (641–1007px); falls back to `columns` */
|
|
2454
|
+
'md-columns'?: NLDDTable['mdColumns'];
|
|
2455
|
+
/** Track list when the table is lg-wide (≥1008px); falls back to `columns` */
|
|
2456
|
+
'lg-columns'?: NLDDTable['lgColumns'];
|
|
2457
|
+
/** Accessible name for the table. Strongly recommended — role="table" needs a name. A missing label is DEV-warned and a generic fallback name is used. */
|
|
2458
|
+
'accessible-label'?: NLDDTable['accessibleLabel'];
|
|
2459
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
2460
|
+
'translations'?: NLDDTable['translations'];
|
|
2461
|
+
/** 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. */
|
|
2462
|
+
'selectable'?: true;
|
|
2463
|
+
};
|
|
2464
|
+
|
|
2465
|
+
type NlddTableRowProps = {
|
|
2466
|
+
/** Highlights the row (same treatment as nldd-list-item[selected]) */
|
|
2467
|
+
'selected'?: true;
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2470
|
+
type NlddTagProps = {
|
|
2471
|
+
/** What is visible: 'text' | 'icon' | 'icon-and-text'. Unset → detected from which of text/icon is present. */
|
|
2472
|
+
'variant'?: NLDDTag['variant'];
|
|
2473
|
+
/** Color variant. Semantic: 'neutral' | 'accent' | 'success' | 'warning' | 'critical'. Rijkshuisstijl colors: 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen'. (default: 'neutral') */
|
|
2474
|
+
'color'?: NLDDTag['color'];
|
|
2475
|
+
/** Tag size: 'sm' | 'md' (default: 'md') */
|
|
2476
|
+
'size'?: NLDDTag['size'];
|
|
2477
|
+
/** Tag text. Content in the default slot wins. */
|
|
2478
|
+
'text'?: NLDDTag['text'];
|
|
2479
|
+
/** Icon before the text */
|
|
2480
|
+
'icon'?: NLDDTag['icon'];
|
|
2481
|
+
/** Accessible label for screen readers. Use this on icon-only tags without visible text. */
|
|
2482
|
+
'accessible-label'?: NLDDTag['accessibleLabel'];
|
|
2483
|
+
};
|
|
2484
|
+
|
|
2485
|
+
type NlddTextProps = {
|
|
2486
|
+
/** 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 */
|
|
2487
|
+
'size'?: NLDDText['size'];
|
|
2488
|
+
/** 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` */
|
|
2489
|
+
'sm-custom-size'?: NLDDText['smCustomSize'];
|
|
2490
|
+
/** The same, at md */
|
|
2491
|
+
'md-custom-size'?: NLDDText['mdCustomSize'];
|
|
2492
|
+
/** The same, at lg */
|
|
2493
|
+
'lg-custom-size'?: NLDDText['lgCustomSize'];
|
|
2494
|
+
/** Font weight: 'regular' | 'medium' | 'bold' (default: 'regular'). With 'bold' a slotted `<strong>` no longer stands out: there is nothing bolder in the scale. */
|
|
2495
|
+
'weight'?: NLDDText['weight'];
|
|
2496
|
+
/** Line height: 'flat' | 'tight' | 'snug' | 'loose' (default: 'snug') */
|
|
2497
|
+
'line-height'?: NLDDText['lineHeight'];
|
|
2498
|
+
/** Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical' | 'inherit'. 'content' and 'secondary' follow the surrounding content channel; 'inherit' takes the color it inherits, for text on a painted surface. */
|
|
2499
|
+
'color'?: NLDDText['color'];
|
|
2500
|
+
/** Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box. */
|
|
2501
|
+
'horizontal-alignment'?: NLDDText['horizontalAlignment'];
|
|
2502
|
+
};
|
|
2503
|
+
|
|
2504
|
+
type NlddTextCellProps = {
|
|
2505
|
+
/** Cell size: 'sm' | 'md' (default: 'md') */
|
|
2506
|
+
'size'?: NLDDTextCell['size'];
|
|
2507
|
+
/** 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. */
|
|
2508
|
+
'color'?: NLDDTextCell['color'];
|
|
2509
|
+
/** 'full' | 'fit-content' | CSS length (e.g. '200px', '20rem'). Default: 'full' */
|
|
2510
|
+
'width'?: NLDDTextCell['width'];
|
|
2511
|
+
/** Minimum width as CSS length (e.g. '80px', '5rem') */
|
|
2512
|
+
'min-width'?: NLDDTextCell['minWidth'];
|
|
2513
|
+
/** Maximum width as CSS length (e.g. '200px', '20rem') */
|
|
2514
|
+
'max-width'?: NLDDTextCell['maxWidth'];
|
|
2515
|
+
/** Minimum height as CSS length (e.g. '44px', '3rem') */
|
|
2516
|
+
'min-height'?: NLDDTextCell['minHeight'];
|
|
2517
|
+
/** Horizontal alignment: 'left' | 'center' | 'right' (default: 'left') */
|
|
2518
|
+
'horizontal-alignment'?: NLDDTextCell['horizontalAlignment'];
|
|
2519
|
+
/** Vertical alignment: 'top' | 'center' | 'bottom' (default: 'center') */
|
|
2520
|
+
'vertical-alignment'?: NLDDTextCell['verticalAlignment'];
|
|
2521
|
+
/** Main text content. Supports **bold** syntax for inline bold segments. Content in the default slot wins. */
|
|
2522
|
+
'text'?: NLDDTextCell['text'];
|
|
2523
|
+
/** Optional supporting text displayed below the main content. Supports **bold**. Falls back to `supporting-text` slot. */
|
|
2524
|
+
'supporting-text'?: NLDDTextCell['supportingText'];
|
|
2525
|
+
/** Optional overline text displayed above the main content. Supports **bold**. Falls back to `overline` slot. */
|
|
2526
|
+
'overline'?: NLDDTextCell['overline'];
|
|
2527
|
+
/** Query substring to bold-highlight across text fields. Empty = no marking. */
|
|
2528
|
+
'query'?: NLDDTextCell['query'];
|
|
2529
|
+
/** 'match' | 'predictive' (default: 'predictive') */
|
|
2530
|
+
'query-mark-mode'?: NLDDTextCell['queryMarkMode'];
|
|
2531
|
+
'row-header'?: true;
|
|
2532
|
+
'hide-below'?: NLDDTextCell['hideBelow'];
|
|
2533
|
+
'hide-above'?: NLDDTextCell['hideAbove'];
|
|
2534
|
+
};
|
|
2535
|
+
|
|
2536
|
+
type NlddTextEditorProps = {
|
|
2537
|
+
/** 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. */
|
|
2538
|
+
'no-spellcheck'?: true;
|
|
2539
|
+
/** Wrap long lines (default true; prose wraps) */
|
|
2540
|
+
'wrap'?: true;
|
|
2541
|
+
/** 'none' (fixed) | 'vertical' (drag) | 'auto' (grow, default) */
|
|
2542
|
+
'resize'?: NLDDTextEditor['resize'];
|
|
2543
|
+
/** 'simple' (default, bare) | 'input-field' (framed surface) */
|
|
2544
|
+
'appearance'?: NLDDTextEditor['appearance'];
|
|
2545
|
+
/** 'visible' (default): every formatting mark stays in view, dimmed, a bullet as the character you typed (`-`, `*` or `+`). '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. */
|
|
2546
|
+
'syntax'?: NLDDTextEditor['syntax'];
|
|
2547
|
+
/** Enable the annotation overlay (off by default). Annotations only render when this is set. */
|
|
2548
|
+
'annotatable'?: true;
|
|
2549
|
+
/** 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. */
|
|
2550
|
+
'translations'?: NLDDTextEditor['translations'];
|
|
2551
|
+
/** Editor content (markdown) */
|
|
2552
|
+
'value'?: NLDDTextEditor['value'];
|
|
2553
|
+
/** Sets the id on the editable element. Set automatically by nldd-form-field. */
|
|
2554
|
+
'input-id'?: NLDDTextEditor['inputId'];
|
|
2555
|
+
/** Placeholder text shown while empty */
|
|
2556
|
+
'placeholder'?: NLDDTextEditor['placeholder'];
|
|
2557
|
+
/** Disabled state */
|
|
2558
|
+
'disabled'?: true;
|
|
2559
|
+
/** Field name for form submission */
|
|
2560
|
+
'name'?: NLDDTextEditor['name'];
|
|
2561
|
+
/** Readonly state (focusable and selectable, not editable) */
|
|
2562
|
+
'readonly'?: true;
|
|
2563
|
+
/** Required state */
|
|
2564
|
+
'required'?: true;
|
|
2565
|
+
/** Minimum visible rows (the floor in every resize mode). Default: 6. */
|
|
2566
|
+
'rows'?: NLDDTextEditor['rows'];
|
|
2567
|
+
/** Accessible label forwarded to the editor. Set automatically by nldd-form-field. */
|
|
2568
|
+
'accessible-label'?: NLDDTextEditor['accessibleLabel'];
|
|
2569
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2570
|
+
'invalid'?: true;
|
|
2571
|
+
};
|
|
2572
|
+
|
|
2573
|
+
type NlddTextFieldProps = {
|
|
2574
|
+
/** 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
2575
|
+
'size'?: NLDDTextField['size'];
|
|
2576
|
+
/** The input value */
|
|
2577
|
+
'value'?: NLDDTextField['value'];
|
|
2578
|
+
/** Sets the id on the native input. Set automatically by nldd-form-field. */
|
|
2579
|
+
'input-id'?: NLDDTextField['inputId'];
|
|
2580
|
+
/** Placeholder text */
|
|
2581
|
+
'placeholder'?: NLDDTextField['placeholder'];
|
|
2582
|
+
/** Marks the field as invalid */
|
|
2583
|
+
'invalid'?: true;
|
|
2584
|
+
/** Marks the field as valid */
|
|
2585
|
+
'valid'?: true;
|
|
2586
|
+
/** Disabled state */
|
|
2587
|
+
'disabled'?: true;
|
|
2588
|
+
/** Input type: 'text' | 'email' | 'tel' | 'url' */
|
|
2589
|
+
'type'?: NLDDTextField['type'];
|
|
2590
|
+
/** 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`. */
|
|
2591
|
+
'keyboard'?: NLDDTextField['keyboard'];
|
|
2592
|
+
/** 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. */
|
|
2593
|
+
'enter-key'?: NLDDTextField['enterKey'];
|
|
2594
|
+
/** Input name for form submission */
|
|
2595
|
+
'name'?: NLDDTextField['name'];
|
|
2596
|
+
/** Readonly state */
|
|
2597
|
+
'readonly'?: true;
|
|
2598
|
+
/** Required state */
|
|
2599
|
+
'required'?: true;
|
|
2600
|
+
/** Autocomplete hint */
|
|
2601
|
+
'autocomplete'?: NLDDTextField['autocomplete'];
|
|
2602
|
+
/** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
|
|
2603
|
+
'accessible-label'?: NLDDTextField['accessibleLabel'];
|
|
2604
|
+
/** Disables browser spellchecking on the inner input */
|
|
2605
|
+
'no-spellcheck'?: true;
|
|
2606
|
+
/** Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container. */
|
|
2607
|
+
'width'?: NLDDTextField['width'];
|
|
2608
|
+
/** Regular expression the value has to match, as the native `pattern`. */
|
|
2609
|
+
'pattern'?: NLDDTextField['pattern'];
|
|
2610
|
+
/** Fewest characters the value may have. */
|
|
2611
|
+
'minlength'?: NLDDTextField['minlength'];
|
|
2612
|
+
/** Most characters the value may have. */
|
|
2613
|
+
'maxlength'?: NLDDTextField['maxlength'];
|
|
2614
|
+
};
|
|
2615
|
+
|
|
2616
|
+
type NlddTimeFieldProps = {
|
|
2617
|
+
/** 'md' (default) | 'sm'. Set automatically by nldd-form-field. */
|
|
2618
|
+
'size'?: NLDDTimeField['size'];
|
|
2619
|
+
/** The time as `HH:mm` (24-hour). Empty when there is no valid time. */
|
|
2620
|
+
'value'?: NLDDTimeField['value'];
|
|
2621
|
+
/** Earliest allowed time as `HH:mm`. Also the base that `step` counts from. */
|
|
2622
|
+
'min'?: NLDDTimeField['min'];
|
|
2623
|
+
/** Latest allowed time as `HH:mm`. */
|
|
2624
|
+
'max'?: NLDDTimeField['max'];
|
|
2625
|
+
/** Step in minutes (default 1). Decides which times are valid, what rounding snaps to, and how far the arrow keys jump. */
|
|
2626
|
+
'step'?: NLDDTimeField['step'];
|
|
2627
|
+
/** Hides the picker button. It is shown by default. */
|
|
2628
|
+
'no-picker'?: true;
|
|
2629
|
+
/** Sets the id on the internal input. Set automatically by nldd-form-field. */
|
|
2630
|
+
'input-id'?: NLDDTimeField['inputId'];
|
|
2631
|
+
/** Placeholder text. Do not put a format here; use the supporting label of nldd-form-field for that. */
|
|
2632
|
+
'placeholder'?: NLDDTimeField['placeholder'];
|
|
2633
|
+
/** Marks the field as invalid. */
|
|
2634
|
+
'invalid'?: true;
|
|
2635
|
+
/** Marks the field as valid. */
|
|
2636
|
+
'valid'?: true;
|
|
2637
|
+
/** Disabled state. */
|
|
2638
|
+
'disabled'?: true;
|
|
2639
|
+
/** Read-only state. */
|
|
2640
|
+
'readonly'?: true;
|
|
2641
|
+
/** Required state. */
|
|
2642
|
+
'required'?: true;
|
|
2643
|
+
/** Name for form submission. */
|
|
2644
|
+
'name'?: NLDDTimeField['name'];
|
|
2645
|
+
/** Autocomplete hint. */
|
|
2646
|
+
'autocomplete'?: NLDDTimeField['autocomplete'];
|
|
2647
|
+
/** Accessible label for the internal input. Set automatically by nldd-form-field. */
|
|
2648
|
+
'accessible-label'?: NLDDTimeField['accessibleLabel'];
|
|
2649
|
+
/** 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. */
|
|
2650
|
+
'width'?: NLDDTimeField['width'];
|
|
2651
|
+
/** Translations; unspecified keys fall back to Dutch. */
|
|
2652
|
+
'translations'?: NLDDTimeField['translations'];
|
|
2653
|
+
};
|
|
2654
|
+
|
|
2655
|
+
type NlddTimePickerProps = {
|
|
2656
|
+
/** The chosen time as `HH:mm` (24-hour). */
|
|
2657
|
+
'value'?: NLDDTimePicker['value'];
|
|
2658
|
+
/** Earliest allowed time as `HH:mm`. Also the base that `step` counts from. */
|
|
2659
|
+
'min'?: NLDDTimePicker['min'];
|
|
2660
|
+
/** Latest allowed time as `HH:mm`. */
|
|
2661
|
+
'max'?: NLDDTimePicker['max'];
|
|
2662
|
+
/** Step in minutes (default 1). Decides which minutes are in the column. */
|
|
2663
|
+
'step'?: NLDDTimePicker['step'];
|
|
2664
|
+
/** 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. */
|
|
2665
|
+
'rows'?: NLDDTimePicker['rows'];
|
|
2666
|
+
/** Width: `full` fills the container, or pass your own CSS length. */
|
|
2667
|
+
'width'?: NLDDTimePicker['width'];
|
|
2668
|
+
/** Accessible name of the picker. */
|
|
2669
|
+
'accessible-label'?: NLDDTimePicker['accessibleLabel'];
|
|
2670
|
+
/** Translations; unspecified keys fall back to Dutch. */
|
|
2671
|
+
'translations'?: NLDDTimePicker['translations'];
|
|
2672
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2673
|
+
'invalid'?: true;
|
|
2674
|
+
};
|
|
2675
|
+
|
|
2676
|
+
type NlddTitleProps = {
|
|
2677
|
+
/** Visual size of the title: 1–6 (default: 3) */
|
|
2678
|
+
'size'?: NLDDTitle['size'];
|
|
2679
|
+
/** A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than size 1. A var() works when the variable holds a length; one that is not defined leaves the title without its size, the floor included. For headings use `size`; if a design does not fit the scale, raise it as an issue. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a title made large for a wide screen never breaks a narrow one. Never smaller than size 1 at the same breakpoint: a smaller value shows as size 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 size 1. An invalid value falls back to `size` */
|
|
2680
|
+
'sm-custom-size'?: NLDDTitle['smCustomSize'];
|
|
2681
|
+
/** The same, at md */
|
|
2682
|
+
'md-custom-size'?: NLDDTitle['mdCustomSize'];
|
|
2683
|
+
/** The same, at lg */
|
|
2684
|
+
'lg-custom-size'?: NLDDTitle['lgCustomSize'];
|
|
2685
|
+
/** 'content' (the default) takes the system's own content colors. 'inherit' lets the title follow the text color of the surface instead (for colored areas such as the filled categories); overline and supporting-text get the same color at a lowered opacity. */
|
|
2686
|
+
'color'?: NLDDTitle['color'];
|
|
2687
|
+
/** Title text. Content in the default slot takes its place. */
|
|
2688
|
+
'text'?: NLDDTitle['text'];
|
|
2689
|
+
/** Text below the title. Content in the supporting-text slot takes its place. */
|
|
2690
|
+
'supporting-text'?: NLDDTitle['supportingText'];
|
|
2691
|
+
/** Text above the title. Content in the overline slot takes its place. */
|
|
2692
|
+
'overline'?: NLDDTitle['overline'];
|
|
2693
|
+
/** Renders text as h1–h6. Absent renders a p, which is no heading: for large letters that are not a heading, use nldd-text with a display size. */
|
|
2694
|
+
'heading-level'?: NLDDTitle['headingLevel'];
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
type NlddTitleCellProps = {
|
|
2698
|
+
/** Visual size of the title (unset: looks like 5, and becomes 6 in an `nldd-table-row`, where a title the size of the other cells reads better) */
|
|
2699
|
+
'size'?: NLDDTitleCell['size'];
|
|
2700
|
+
/** 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. */
|
|
2701
|
+
'color'?: NLDDTitleCell['color'];
|
|
2702
|
+
/** 'full' | 'fit-content' | CSS length (e.g. '200px', '20rem'). Default: 'full' */
|
|
2703
|
+
'width'?: NLDDTitleCell['width'];
|
|
2704
|
+
/** Minimum width as CSS length (e.g. '80px', '5rem') */
|
|
2705
|
+
'min-width'?: NLDDTitleCell['minWidth'];
|
|
2706
|
+
/** Maximum width as CSS length (e.g. '300px', '20rem') */
|
|
2707
|
+
'max-width'?: NLDDTitleCell['maxWidth'];
|
|
2708
|
+
/** Minimum height as CSS length (e.g. '44px', '3rem') */
|
|
2709
|
+
'min-height'?: NLDDTitleCell['minHeight'];
|
|
2710
|
+
/** Horizontal alignment (default: 'left') */
|
|
2711
|
+
'horizontal-alignment'?: NLDDTitleCell['horizontalAlignment'];
|
|
2712
|
+
/** Vertical alignment (default: 'center') */
|
|
2713
|
+
'vertical-alignment'?: NLDDTitleCell['verticalAlignment'];
|
|
2714
|
+
/** Title text content. Supports **bold** syntax for inline bold segments. Content in the default slot wins. */
|
|
2715
|
+
'text'?: NLDDTitleCell['text'];
|
|
2716
|
+
/** Optional supporting text displayed below the title. Supports **bold**. Falls back to `supporting-text` slot. */
|
|
2717
|
+
'supporting-text'?: NLDDTitleCell['supportingText'];
|
|
2718
|
+
/** Optional overline text displayed above the title. Supports **bold**. Falls back to `overline` slot. */
|
|
2719
|
+
'overline'?: NLDDTitleCell['overline'];
|
|
2720
|
+
/** Heading level for the title element: 1–6 (default: none, renders a <p>) */
|
|
2721
|
+
'heading-level'?: NLDDTitleCell['headingLevel'];
|
|
2722
|
+
/** Query substring to bold-highlight across text fields. Empty = no marking. */
|
|
2723
|
+
'query'?: NLDDTitleCell['query'];
|
|
2724
|
+
/** 'match' | 'predictive' (default: 'predictive') */
|
|
2725
|
+
'query-mark-mode'?: NLDDTitleCell['queryMarkMode'];
|
|
2726
|
+
'row-header'?: true;
|
|
2727
|
+
'hide-below'?: NLDDTitleCell['hideBelow'];
|
|
2728
|
+
'hide-above'?: NLDDTitleCell['hideAbove'];
|
|
2729
|
+
};
|
|
2730
|
+
|
|
2731
|
+
type NlddToggleButtonProps = {
|
|
2732
|
+
/** Required state. Set by nldd-toggle-button-group. */
|
|
2733
|
+
'required'?: true;
|
|
2734
|
+
/** What the button is: a button with aria-pressed, a native checkbox, or a radio (default: 'button') */
|
|
2735
|
+
'type'?: NLDDToggleButton['type'];
|
|
2736
|
+
/** 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. */
|
|
2737
|
+
'appearance'?: NLDDToggleButton['appearance'];
|
|
2738
|
+
/** Button size (default: 'md') */
|
|
2739
|
+
'size'?: NLDDToggleButton['size'];
|
|
2740
|
+
/** Selected state */
|
|
2741
|
+
'selected'?: true;
|
|
2742
|
+
/** Disabled state */
|
|
2743
|
+
'disabled'?: true;
|
|
2744
|
+
/** 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. */
|
|
2745
|
+
'no-tab'?: true;
|
|
2746
|
+
/** Value for form submission (checkbox/radio) */
|
|
2747
|
+
'value'?: NLDDToggleButton['value'];
|
|
2748
|
+
/** Name for form submission (checkbox/radio) */
|
|
2749
|
+
'name'?: NLDDToggleButton['name'];
|
|
2750
|
+
/** Button text */
|
|
2751
|
+
'text'?: NLDDToggleButton['text'];
|
|
2752
|
+
/** Icon name for nldd-icon */
|
|
2753
|
+
'icon'?: NLDDToggleButton['icon'];
|
|
2754
|
+
/** 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. */
|
|
2755
|
+
'selected-icon'?: NLDDToggleButton['selectedIcon'];
|
|
2756
|
+
/** What renders: text, icon, or both. Unset → auto-detect from text/icon attributes. */
|
|
2757
|
+
'variant'?: NLDDToggleButton['variant'];
|
|
2758
|
+
/** Accessible label; required for icon-only usage */
|
|
2759
|
+
'accessible-label'?: NLDDToggleButton['accessibleLabel'];
|
|
2760
|
+
/** 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. */
|
|
2761
|
+
'shortcut'?: NLDDToggleButton['shortcut'];
|
|
2762
|
+
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
2763
|
+
'shortcut-mac'?: NLDDToggleButton['shortcutMac'];
|
|
2764
|
+
/** Override of `shortcut` on Windows (falls back to `shortcut`). */
|
|
2765
|
+
'shortcut-windows'?: NLDDToggleButton['shortcutWindows'];
|
|
2766
|
+
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
2767
|
+
'shortcut-linux'?: NLDDToggleButton['shortcutLinux'];
|
|
2768
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2769
|
+
'invalid'?: true;
|
|
2770
|
+
};
|
|
2771
|
+
|
|
2772
|
+
type NlddToggleButtonGroupProps = {
|
|
2773
|
+
/** Marks the group as required. Enforced in radio mode; in checkbox mode only announced. */
|
|
2774
|
+
'required'?: true;
|
|
2775
|
+
/** Selection mode (default: 'checkbox') */
|
|
2776
|
+
'type'?: NLDDToggleButtonGroup['type'];
|
|
2777
|
+
/** Forwarded to all buttons */
|
|
2778
|
+
'name'?: NLDDToggleButtonGroup['name'];
|
|
2779
|
+
/** Forwarded to all buttons (default: 'neutral-tinted') */
|
|
2780
|
+
'appearance'?: NLDDToggleButtonGroup['appearance'];
|
|
2781
|
+
/** Forwarded to all buttons (default: 'md') */
|
|
2782
|
+
'size'?: NLDDToggleButtonGroup['size'];
|
|
2783
|
+
/** Disables all buttons */
|
|
2784
|
+
'disabled'?: true;
|
|
2785
|
+
/** Accessible name for the group (aria-label) */
|
|
2786
|
+
'accessible-label'?: NLDDToggleButtonGroup['accessibleLabel'];
|
|
2787
|
+
/** ID of an external label element (aria-labelledby) */
|
|
2788
|
+
'accessible-labeled-by'?: NLDDToggleButtonGroup['accessibleLabeledBy'];
|
|
2789
|
+
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
2790
|
+
'invalid'?: true;
|
|
2791
|
+
};
|
|
2792
|
+
|
|
2793
|
+
type NlddTokenProps = {
|
|
2794
|
+
/** Token text. Content in the default slot wins. */
|
|
2795
|
+
'text'?: NLDDToken['text'];
|
|
2796
|
+
/** Control type (default: 'none') */
|
|
2797
|
+
'control'?: NLDDToken['control'];
|
|
2798
|
+
/** 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. */
|
|
2799
|
+
'dismiss-text'?: NLDDToken['dismissText'];
|
|
2800
|
+
/** Accessible label for the menu button. Unset, it is `Toon opties voor "{text}"`. */
|
|
2801
|
+
'menu-text'?: NLDDToken['menuText'];
|
|
2802
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
2803
|
+
'translations'?: NLDDToken['translations'];
|
|
2804
|
+
/** 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. */
|
|
2805
|
+
'roving'?: true;
|
|
2806
|
+
/** Reflects whether the token's menu is open (control="menu"); managed by the token. */
|
|
2807
|
+
'expanded'?: true;
|
|
2808
|
+
/** Disabled state. Avoid it where you can; the design guidelines say why. */
|
|
2809
|
+
'disabled'?: true;
|
|
2810
|
+
};
|
|
2811
|
+
|
|
2812
|
+
type NlddTokenFieldProps = {
|
|
2813
|
+
/** 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. */
|
|
2814
|
+
'values'?: NLDDTokenField['values'];
|
|
2815
|
+
/** Placeholder shown in the input */
|
|
2816
|
+
'placeholder'?: NLDDTokenField['placeholder'];
|
|
2817
|
+
/** Input type forwarded to the inner input (e.g. 'email') */
|
|
2818
|
+
'type'?: NLDDTokenField['type'];
|
|
2819
|
+
/** Autocomplete hint forwarded to the inner input */
|
|
2820
|
+
'autocomplete'?: NLDDTokenField['autocomplete'];
|
|
2821
|
+
/** Accessible label forwarded as aria-label to the input */
|
|
2822
|
+
'accessible-label'?: NLDDTokenField['accessibleLabel'];
|
|
2823
|
+
/** 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. */
|
|
2824
|
+
'allow-custom'?: true;
|
|
2825
|
+
/** 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. */
|
|
2826
|
+
'no-filter'?: true;
|
|
2827
|
+
/** Marks the field valid (shows the valid icon) */
|
|
2828
|
+
'valid'?: true;
|
|
2829
|
+
/** Marks the field invalid (shows the invalid icon) */
|
|
2830
|
+
'invalid'?: true;
|
|
2831
|
+
/** Disables browser spellchecking on the inner input */
|
|
2832
|
+
'no-spellcheck'?: true;
|
|
2833
|
+
/** Readonly: static tokens, no input/picker, read-only surface */
|
|
2834
|
+
'readonly'?: true;
|
|
2835
|
+
/** Marks the field required (invalid when it has no tokens) */
|
|
2836
|
+
'required'?: true;
|
|
2837
|
+
/** Disabled state */
|
|
2838
|
+
'disabled'?: true;
|
|
2839
|
+
/** Trailing control per token: 'dismiss' (default, a ✕ that removes it) or 'menu' (a ⌄ opening a per-token action menu supplied by the template prototypes) */
|
|
2840
|
+
'token-control'?: NLDDTokenField['tokenControl'];
|
|
2841
|
+
/** Name for form submission */
|
|
2842
|
+
'name'?: NLDDTokenField['name'];
|
|
2843
|
+
/** Override translation keys; unset keys fall back to Dutch */
|
|
2844
|
+
'translations'?: NLDDTokenField['translations'];
|
|
2845
|
+
};
|
|
2846
|
+
|
|
2847
|
+
type NlddToolbarProps = {
|
|
2848
|
+
/** Toolbar size, propagated to all child controls: 'sm' | 'md' | 'lg' (default: 'md'). At 'lg' the overflow button (and lg-capable children like nldd-icon-button) stack their label below the icon. */
|
|
2849
|
+
'size'?: NLDDToolbar['size'];
|
|
2850
|
+
/** When true, shows a text label below each toolbar item and the overflow button */
|
|
2851
|
+
'show-item-labels'?: true;
|
|
2852
|
+
/** Accessible name of the toolbar. Only needed when multiple toolbars appear on the same page. */
|
|
2853
|
+
'accessible-label'?: NLDDToolbar['accessibleLabel'];
|
|
2854
|
+
/** Override translation keys (e.g. the overflow button label); unset keys fall back to Dutch. */
|
|
2855
|
+
'translations'?: NLDDToolbar['translations'];
|
|
2856
|
+
};
|
|
2857
|
+
|
|
2858
|
+
type NlddToolbarItemProps = {
|
|
2859
|
+
/** Fluid width: a percentage (e.g. '40%') or any CSS length (e.g. '240px'). Setting it (or min-width or max-width) makes the item fluid so it grows to fill the available space. */
|
|
2860
|
+
'width'?: NLDDToolbarItem['width'];
|
|
2861
|
+
/** Minimum (fluid) width as a CSS length (e.g. '240px'). Setting it also makes the item fluid. */
|
|
2862
|
+
'min-width'?: NLDDToolbarItem['minWidth'];
|
|
2863
|
+
/** Maximum (fluid) width as a CSS length (e.g. '480px'). Setting it also makes the item fluid. */
|
|
2864
|
+
'max-width'?: NLDDToolbarItem['maxWidth'];
|
|
2865
|
+
/** Text label shown below the item when the toolbar has show-item-labels. */
|
|
2866
|
+
'label'?: NLDDToolbarItem['label'];
|
|
2867
|
+
/** Overflow order: items with a lower priority move into the overflow menu first (default 0). Items sharing a priority overflow together, regardless of position. */
|
|
2868
|
+
'priority'?: NLDDToolbarItem['priority'];
|
|
2869
|
+
/** Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's size (default: 'md') onto the item host, so size-dependent styling can key off it. */
|
|
2870
|
+
'size'?: NLDDToolbarItem['size'];
|
|
2871
|
+
/** Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's show-item-labels, so the item renders its label below the control. */
|
|
2872
|
+
'show-item-labels'?: true;
|
|
2873
|
+
/** 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 — do not style against it. It is not reflected as a JS property — read it with hasAttribute('fluid'). */
|
|
2874
|
+
'fluid'?: true;
|
|
2875
|
+
/** 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. */
|
|
2876
|
+
'solo-fluid'?: true;
|
|
2877
|
+
/** Set by nldd-toolbar, not a consumer attribute, when the item moves into the overflow menu. Same synchronous-toggle caveat. */
|
|
2878
|
+
'hidden'?: true;
|
|
2879
|
+
/** 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. */
|
|
2880
|
+
'shrinkable'?: true;
|
|
2881
|
+
/** 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. */
|
|
2882
|
+
'shrunk'?: true;
|
|
2883
|
+
};
|
|
2884
|
+
|
|
2885
|
+
type NlddToolbarTitleProps = {
|
|
2886
|
+
/** Preferred (fluid) width as a CSS length or percentage; the title grows toward it and shrinks to min-width. */
|
|
2887
|
+
'width'?: NLDDToolbarTitle['width'];
|
|
2888
|
+
/** Minimum width as a CSS length (default: the width of its own text, up to `max-width`). Items move into the overflow menu before the title gets narrower than this; only when no item is left to move does the title truncate below it. Set `0` to let the title shrink first. */
|
|
2889
|
+
'min-width'?: NLDDToolbarTitle['minWidth'];
|
|
2890
|
+
/** Maximum width as a CSS length (default: '240px'); the title text truncates with an ellipsis beyond it. The cap is lifted while the title is the sole toolbar element (it then stretches to fill the row). */
|
|
2891
|
+
'max-width'?: NLDDToolbarTitle['maxWidth'];
|
|
2892
|
+
/** Text alignment: 'left' | 'center' (default: 'left'). */
|
|
2893
|
+
'align'?: NLDDToolbarTitle['align'];
|
|
2894
|
+
/** Title text. */
|
|
2895
|
+
'text'?: NLDDToolbarTitle['text'];
|
|
2896
|
+
/** Secondary supporting text shown below the title. */
|
|
2897
|
+
'supporting-text'?: NLDDToolbarTitle['supportingText'];
|
|
2898
|
+
/** 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. */
|
|
2899
|
+
'size'?: NLDDToolbarTitle['size'];
|
|
2900
|
+
/** 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. */
|
|
2901
|
+
'href'?: NLDDToolbarTitle['href'];
|
|
2902
|
+
/** 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. */
|
|
2903
|
+
'target'?: NLDDToolbarTitle['target'];
|
|
2904
|
+
/** Override translation keys (the new-tab announcement); unset keys fall back to Dutch. */
|
|
2905
|
+
'translations'?: NLDDToolbarTitle['translations'];
|
|
2906
|
+
};
|
|
2907
|
+
|
|
2908
|
+
type NlddTooltipProps = {
|
|
2909
|
+
/** Tooltip text */
|
|
2910
|
+
'text'?: NLDDTooltip['text'];
|
|
2911
|
+
/** 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. */
|
|
2912
|
+
'shortcut'?: NLDDTooltip['shortcut'];
|
|
2913
|
+
/** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
|
|
2914
|
+
'shortcut-mac'?: NLDDTooltip['shortcutMac'];
|
|
2915
|
+
/** Override of `shortcut` on Windows (falls back to `shortcut`). */
|
|
2916
|
+
'shortcut-windows'?: NLDDTooltip['shortcutWindows'];
|
|
2917
|
+
/** Override of `shortcut` on Linux (falls back to `shortcut`). */
|
|
2918
|
+
'shortcut-linux'?: NLDDTooltip['shortcutLinux'];
|
|
2919
|
+
/** 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. */
|
|
2920
|
+
'open'?: true;
|
|
2921
|
+
/** Position: 'top' | 'bottom' | 'left' | 'right' (default: 'bottom'; automatically 'top' on touch devices) */
|
|
2922
|
+
'placement'?: NLDDTooltip['placement'];
|
|
2923
|
+
/** When the tooltip appears on hover: 'instant' — right away, without a show delay or a fade, also on the way out. 'delay' (the default) — after the standard show delay (700ms). 'never' — the tooltip is never shown; 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. A focus trigger is always instant. */
|
|
2924
|
+
'timing'?: NLDDTooltip['timing'];
|
|
2925
|
+
};
|
|
2926
|
+
|
|
2927
|
+
type NlddTopNavigationBarProps = {
|
|
2928
|
+
/** 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. */
|
|
2929
|
+
'website-title'?: NLDDTopNavigationBar['websiteTitle'];
|
|
2930
|
+
/** Hides the whole logo bar, wordmark included. */
|
|
2931
|
+
'no-logo'?: true;
|
|
2932
|
+
/** 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. */
|
|
2933
|
+
'width'?: NLDDTopNavigationBar['width'];
|
|
2934
|
+
/** Title of the wordmark next to the logo. Without it the logo stands alone. */
|
|
2935
|
+
'logo-title'?: NLDDTopNavigationBar['logoTitle'];
|
|
2936
|
+
/** Subtitle under the wordmark title. Only visible when there is a wordmark. */
|
|
2937
|
+
'logo-subtitle'?: NLDDTopNavigationBar['logoSubtitle'];
|
|
2938
|
+
/** First supporting line under the wordmark title. Only visible when there is a wordmark. */
|
|
2939
|
+
'logo-supporting-text-1'?: NLDDTopNavigationBar['logoSupportingText1'];
|
|
2940
|
+
/** Second supporting line under the wordmark title. Only visible when there is a wordmark. */
|
|
2941
|
+
'logo-supporting-text-2'?: NLDDTopNavigationBar['logoSupportingText2'];
|
|
2942
|
+
/** 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. */
|
|
2943
|
+
'logo-href'?: NLDDTopNavigationBar['logoHref'];
|
|
2944
|
+
/** URL for the website title. Without it the title stays plain text. */
|
|
2945
|
+
'website-href'?: NLDDTopNavigationBar['websiteHref'];
|
|
2946
|
+
/** URL of the back button. Without it a click fires the `back-click` event, so the consumer navigates itself. */
|
|
2947
|
+
'back-href'?: NLDDTopNavigationBar['backHref'];
|
|
2948
|
+
/** 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"). */
|
|
2949
|
+
'back-text'?: NLDDTopNavigationBar['backText'];
|
|
2950
|
+
'translations'?: NLDDTopNavigationBar['translations'];
|
|
2951
|
+
};
|
|
2952
|
+
|
|
2953
|
+
type NlddTopTitleBarProps = {
|
|
2954
|
+
/** Title of the bar, rendered as the heading in the title group. One line, cut off with an ellipsis when it does not fit; see above for a title that can run long. */
|
|
2955
|
+
'text'?: NLDDTopTitleBar['text'];
|
|
2956
|
+
/** Text under the title. */
|
|
2957
|
+
'supporting-text'?: NLDDTopTitleBar['supportingText'];
|
|
2958
|
+
/** 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. */
|
|
2959
|
+
'heading-level'?: NLDDTopTitleBar['headingLevel'];
|
|
2960
|
+
/** Id of the element whose top edge triggers the compact state on scroll. Without it the state is static (see above). */
|
|
2961
|
+
'collapse-anchor'?: NLDDTopTitleBar['collapseAnchor'];
|
|
2962
|
+
/** Text of the back button and its accessible name. Empty hides the back button (and the divider). */
|
|
2963
|
+
'back-text'?: NLDDTopTitleBar['backText'];
|
|
2964
|
+
/** URL for the back button; renders a link and suppresses the `back` event. */
|
|
2965
|
+
'back-href'?: NLDDTopTitleBar['backHref'];
|
|
2966
|
+
/** Text of the dismiss button. Empty hides that button. */
|
|
2967
|
+
'dismiss-text'?: NLDDTopTitleBar['dismissText'];
|
|
2968
|
+
};
|
|
2969
|
+
|
|
2970
|
+
type NlddTwoThirdsOneThirdSectionProps = {
|
|
2971
|
+
/** Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width. */
|
|
2972
|
+
'width'?: NLDDTwoThirdsOneThirdSection['width'];
|
|
2973
|
+
/** Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other. */
|
|
2974
|
+
'vertical-alignment'?: NLDDTwoThirdsOneThirdSection['verticalAlignment'];
|
|
2975
|
+
/** Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface). */
|
|
2976
|
+
'background'?: NLDDTwoThirdsOneThirdSection['background'];
|
|
2977
|
+
/** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
|
|
2978
|
+
'height'?: NLDDTwoThirdsOneThirdSection['height'];
|
|
2979
|
+
/** 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. */
|
|
2980
|
+
'grow'?: true;
|
|
2981
|
+
/** Block (top and bottom) padding override (token 0-96; '0' strips it). */
|
|
2982
|
+
'padding-block'?: NLDDTwoThirdsOneThirdSection['paddingBlock'];
|
|
2983
|
+
/** Top padding override. */
|
|
2984
|
+
'padding-top'?: NLDDTwoThirdsOneThirdSection['paddingTop'];
|
|
2985
|
+
/** Bottom padding override. */
|
|
2986
|
+
'padding-bottom'?: NLDDTwoThirdsOneThirdSection['paddingBottom'];
|
|
2987
|
+
/** Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}). */
|
|
2988
|
+
'sm-padding-block'?: NLDDTwoThirdsOneThirdSection['smPaddingBlock'];
|
|
2989
|
+
'sm-padding-top'?: NLDDTwoThirdsOneThirdSection['smPaddingTop'];
|
|
2990
|
+
'sm-padding-bottom'?: NLDDTwoThirdsOneThirdSection['smPaddingBottom'];
|
|
2991
|
+
'md-padding-block'?: NLDDTwoThirdsOneThirdSection['mdPaddingBlock'];
|
|
2992
|
+
'md-padding-top'?: NLDDTwoThirdsOneThirdSection['mdPaddingTop'];
|
|
2993
|
+
'md-padding-bottom'?: NLDDTwoThirdsOneThirdSection['mdPaddingBottom'];
|
|
2994
|
+
'lg-padding-block'?: NLDDTwoThirdsOneThirdSection['lgPaddingBlock'];
|
|
2995
|
+
'lg-padding-top'?: NLDDTwoThirdsOneThirdSection['lgPaddingTop'];
|
|
2996
|
+
'lg-padding-bottom'?: NLDDTwoThirdsOneThirdSection['lgPaddingBottom'];
|
|
2997
|
+
};
|
|
2998
|
+
|
|
2999
|
+
type NlddValidationItemProps = {
|
|
3000
|
+
/** 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. */
|
|
3001
|
+
'match'?: NLDDValidationItem['match'];
|
|
3002
|
+
/** Fewest characters the value may have. Not held against an empty value unless the field is required. */
|
|
3003
|
+
'minlength'?: NLDDValidationItem['minlength'];
|
|
3004
|
+
/** Most characters the value may have. */
|
|
3005
|
+
'maxlength'?: NLDDValidationItem['maxlength'];
|
|
3006
|
+
/** 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. */
|
|
3007
|
+
'required'?: true;
|
|
3008
|
+
/** Show this item before there is a verdict, whatever the list says. */
|
|
3009
|
+
'hint'?: true;
|
|
3010
|
+
/** Whether the value fails this item. Managed by the list; do not set it yourself. */
|
|
3011
|
+
'unmet'?: true;
|
|
3012
|
+
/** Whether the item is on screen. Managed by the list. */
|
|
3013
|
+
'visible'?: true;
|
|
3014
|
+
};
|
|
3015
|
+
|
|
3016
|
+
type NlddValidationListProps = {
|
|
3017
|
+
/** Id of the control this list is about. Not needed inside an nldd-form-field, which hands its own control over. */
|
|
3018
|
+
'for'?: NLDDValidationList['for'];
|
|
3019
|
+
/** Show every item before there is a verdict, as the requirements of the field. Overridable per item. */
|
|
3020
|
+
'hint'?: true;
|
|
3021
|
+
/** 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. */
|
|
3022
|
+
'judging'?: true;
|
|
3023
|
+
/** Override translation keys (the line the list shows when the field is invalid and no item fails); unset keys fall back to Dutch. */
|
|
3024
|
+
'translations'?: NLDDValidationList['translations'];
|
|
3025
|
+
};
|
|
3026
|
+
|
|
3027
|
+
type NlddVisuallyHiddenProps = {
|
|
3028
|
+
};
|
|
3029
|
+
|
|
3030
|
+
type NlddWindowProps = {
|
|
3031
|
+
/** Color scheme (default 'inherit'). */
|
|
3032
|
+
'scheme'?: NLDDWindow['scheme'];
|
|
3033
|
+
/** CSS width (default: 640px) */
|
|
3034
|
+
'width'?: NLDDWindow['width'];
|
|
3035
|
+
/** CSS height (default: content height) */
|
|
3036
|
+
'height'?: NLDDWindow['height'];
|
|
3037
|
+
/** CSS top position of the top edge (e.g. '0', '100px') */
|
|
3038
|
+
'top'?: NLDDWindow['top'];
|
|
3039
|
+
/** CSS right value */
|
|
3040
|
+
'right'?: NLDDWindow['right'];
|
|
3041
|
+
/** CSS bottom value */
|
|
3042
|
+
'bottom'?: NLDDWindow['bottom'];
|
|
3043
|
+
/** CSS left position of the left edge */
|
|
3044
|
+
'left'?: NLDDWindow['left'];
|
|
3045
|
+
/** 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. */
|
|
3046
|
+
'centered'?: true;
|
|
3047
|
+
/** 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. */
|
|
3048
|
+
'accessible-label'?: NLDDWindow['accessibleLabel'];
|
|
3049
|
+
/** Override translation keys; unset keys fall back to the Dutch default. */
|
|
3050
|
+
'translations'?: NLDDWindow['translations'];
|
|
3051
|
+
/** 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. */
|
|
3052
|
+
'no-light-dismiss'?: true;
|
|
3053
|
+
/** 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. */
|
|
3054
|
+
'open'?: true;
|
|
3055
|
+
};
|
|
3056
|
+
|
|
3057
|
+
declare module 'react' {
|
|
3058
|
+
namespace JSX {
|
|
3059
|
+
interface IntrinsicElements {
|
|
3060
|
+
/** Layout placeholder that fills its parent and centers an indeterminate activity indicator. By default the indicator is held back for 1000ms so brief loading states don't flash; once the delay passes it fades in. Set `timing="instant"` to skip the delay (the fade-in still plays) — this is what embedding components such as `nldd-button` use for their loading state. Sizing: fills its parent where the parent lets it (a flex column such as `nldd-container`, a grid, or a fixed height) and centers itself there. Where the parent has no height of its own, give it one: a `min-height` matching the content you expect, such as `<nldd-container min-height="240px">`. As a safety net the host already takes the indicator's size (circle, plus the label with `show-text`) during the delay, so nothing shifts when it fades in; once `complete` is set it gives that space up. Label size follows `size`, not the surrounding text, so the circle and its label keep the same proportion everywhere: body-xs at 16 and 20, body-sm at 24 and 28, body-md from 32. Keep the label short; a longer explanation belongs in the area as regular text. The default indicator is a simple icon-sized circle that follows the shared `--context-content-color` channel (set by list-item / table / menu on their content), falling back to `currentColor` wherever that channel is unset (buttons, rich-text, standalone) — so a spinner inside a cell tracks the row's state-aware content color, while embedders relying on currentColor are unaffected. An optional label sits below (hidden unless `show-text` is set). The indicator is always indeterminate; when you know the progress, show `nldd-progress-bar` or `nldd-progress-circle` instead. Icon alignment: the visible ring already sits at 5/6 of its box (the SVG's r=9 plus a 2-unit stroke in a 24 view-box, the same optical inset a filled icon glyph has), so a standalone spinner lines up with an icon or an `icon-aligned` `nldd-avatar` on the same grid — no extra option needed (unlike `nldd-avatar`, which fills edge-to-edge and opts in via `icon-aligned`). Overlay mode: put content in the default slot and the indicator wraps it — it becomes a `position: relative` container, renders the spinner over a dimming backdrop (opt out with `no-backdrop`), and makes the content `inert` so its controls can't be focused or clicked. Toggle loading with `complete` (`?complete=${!isLoading}`). With no slotted content it stays the standalone placeholder described above. Reconnect behavior: every `connectedCallback` resets the timer and hides the indicator again. If a consumer toggles the element via a conditional render (remove + re-insert) the indicator disappears and re-fades after another delay. Keep the element mounted and toggle visibility / `hidden` instead if you want the timer to run only once. Accessibility: while connected and not `complete` the host is a polite live region (`role="status"`). The label (`text`, or the translated "Laden" fallback) always renders as the region's content — visually hidden when `show-text` is off (the default) — so assistive tech announces the loading state when the indicator appears. Set `complete` (or unmount) to clear it. */
|
|
3061
|
+
'nldd-activity-indicator': NlddElement<NLDDActivityIndicator, NlddActivityIndicatorProps>;
|
|
3062
|
+
/** Shows one person or organization as a compact, round (person) or rounded (organization) representation. The content follows a fixed fallback chain: an image when `src` loads, otherwise the initials (from `initials` or derived from `name`), and otherwise a fallback icon. `type` sets both the shape and the fallback icon: `person` gives a circle with a person icon, `organization` a rounded square with a building icon. The shape belongs to the meaning and cannot be set on its own. Override the fallback icon with `icon` where that helps. Without `size` the avatar scales with its container, like `nldd-icon`; a fixed size (the same spacer-aligned scale, 16 through 96) is the exception. The initials and the icon scale along. Wide initials (WW, MMM) are scaled down automatically so they stay inside the shape. Accessibility: the host element carries the meaning. With a `name` (and without `decorative`) it gets `role="img"` with the name as its label. When the name already stands beside it as text, in an identity for instance, set `decorative` so the avatar stays hidden from assistive software. A dead `src` falls back to the initials or the icon, never to a broken-image icon. */
|
|
3063
|
+
'nldd-avatar': NlddElement<NLDDAvatar, NlddAvatarProps>;
|
|
3064
|
+
/** Shows several avatars as one group: they overlap, and each one gets a ring in the surface color so they stay apart where they meet. The ring uses the same mechanism as the badge, so on a colored surface you hand the color over through `--context-parent-background-color`. Slot `nldd-avatar` elements, not bare `img`. An avatar already knows what to do with a dead image, when to fall back to initials, and how to show its name as a tooltip; a loose image would have to reproduce all of that and cannot do the last one. Set `decorative` when the names already stand beside the group as text; otherwise give every avatar a name, because the group itself describes nobody. The size applies to the whole group: it is imposed on the avatars, a slotted `img` included. That keeps the row on one line whatever a consumer hands over. Avatars that are links or buttons need size 32 or larger: they overlap, so each keeps only part of its width as a target (WCAG 2.5.8). On sm the list behind the button is a bottom sheet with a title bar, which names the group (its `accessible-label`) and closes it. The row never overflows its container. Where there is no room for every avatar, the group shows as many as fit and puts the rest behind the "+N" button, as `max` does; `max` is then the most it shows, not a fixed count. */
|
|
3065
|
+
'nldd-avatar-group': NlddElement<NLDDAvatarGroup, NlddAvatarGroupProps>;
|
|
3066
|
+
/** Shows the state of something, or how much of it there is: a status, a number of unread messages, a dot saying something is new. What it says is decided by the system, and it changes without anyone touching it. A badge is never interactive. It shows text, a number and/or an icon; with no content it becomes a dot. Put it in a corner of another element (an icon, for instance) or on its own. For a property someone assigns to something, such as a category, a role or a certification, use `nldd-tag`. For standalone data the user works with, such as a chosen person or an active filter, use `nldd-token`. */
|
|
3067
|
+
'nldd-badge': NlddElement<NLDDBadge, NlddBadgeProps>;
|
|
3068
|
+
/** An inline notification with a tinted background per variant. Use for persistent, page-level feedback (e.g. an error summary at the top of a form). Banner is more visually present than nldd-inline-dialog — the tinted color catches the eye. If you need a quieter component, pick a different one rather than overriding the banner's ARIA. Layout: icon left, text + supporting text + optional rich content + actions in the center, optional dismiss button right. Buttons wrap to a second row on narrow viewports via nldd-button-group's flex wrapping. role and aria-live are set automatically from the variant: - critical → role="alert" (interrupts screen reader) - others → role="status" aria-live="polite" Not overridable — if you need a less prominent component, use one. aria-atomic="true" is also set so that updates to the structured region (icon + heading + supporting-text + actions) are announced as one unit rather than as a partial subtree. Trade-off: any programmatic content mutation re-reads the entire banner. Banners are designed for short, heading-scale copy — if you slot in a paragraph of rich body text and then toggle variant or supporting-text at runtime, AT will re-announce the whole thing. Keep banner content concise, or render long-form messages in a different surface. */
|
|
3069
|
+
'nldd-banner': NlddElement<NLDDBanner, NlddBannerProps>;
|
|
3070
|
+
/** A vertical split view with a main area and an unlimited number of bar panels. Each child determines its order per breakpoint via sm-order, md-order, and lg-order. Children without order attributes are sorted by DOM order. All bars are in normal flow at every breakpoint and stack vertically. A divider is drawn only where the main pane meets an adjacent bar — directly above and/or below main — at every breakpoint (including sm). Two stacked bars on the same side never get a divider between them, so a toolbar and a tab-bar read as one visual unit. Consumers never manage dividers themselves. Give each bar a unique slot name (e.g. slot="toolbar", slot="status-bar"). Use slot="bar-1", slot="bar-2" if no meaningful name applies. The main panel always uses slot="main". Sets --context-parent-background-color, which cascades to all descendants. */
|
|
3071
|
+
'nldd-bar-split-view': NlddElement<NLDDBarSplitView, NlddBarSplitViewProps>;
|
|
3072
|
+
/** Shows a quote with an optional source attribution. */
|
|
3073
|
+
'nldd-blockquote': NlddElement<NLDDBlockquote, NlddBlockquoteProps>;
|
|
3074
|
+
/** Use a box to visually group related components in a distinct, contained region. Boxes draw attention to a set of controls or content that belong together, helping users understand their relationship at a glance. */
|
|
3075
|
+
'nldd-box': NlddElement<NLDDBox, NlddBoxProps>;
|
|
3076
|
+
/** A trail of `nldd-breadcrumbs-item`s separated by `›`, rendered as a `<nav>` landmark wrapping a `<div role="list">` (with each item carrying `role="listitem"`). Explicit ARIA roles travel reliably across the slot boundary where the implicit `<ol>`/`<li>` mapping is inconsistent across AT + browser combos. The trail wraps onto multiple lines when it doesn't fit, so it adapts to any width. */
|
|
3077
|
+
'nldd-breadcrumbs': NlddElement<NLDDBreadcrumbs, NlddBreadcrumbsProps>;
|
|
3078
|
+
/** A single entry in an `nldd-breadcrumbs` list. Renders as a link when `href` is set, as plain text marked `aria-current="page"` when `current` is set, and as plain text otherwise. Each item renders its own trailing `›` separator; the last item in the list hides it via `:host(:last-of-type)`. */
|
|
3079
|
+
'nldd-breadcrumbs-item': NlddElement<NLDDBreadcrumbsItem, NlddBreadcrumbsItemProps>;
|
|
3080
|
+
'nldd-button': NlddElement<NLDDButton, NlddButtonProps>;
|
|
3081
|
+
/** A horizontal container for grouping buttons with a neutral background. Automatically propagates its size and appearance to all child nldd-button and nldd-icon-button elements. Renders nldd-button-bar-divider elements as internal dividers — no separate component needed. The bar is one surface for actions; on/off buttons do not go in it. For a row of toggles use nldd-toggle-button-group, and for one choice out of a few options on one surface nldd-segmented-control. An nldd-toggle-button placed here is shown as it is, and a warning says so in development. */
|
|
3082
|
+
'nldd-button-bar': NlddElement<NLDDButtonBar, NlddButtonBarProps>;
|
|
3083
|
+
/** A vertical rule between groups of buttons in an `nldd-button-bar`. Purely presentational: no attributes, no slots — place it between buttons. */
|
|
3084
|
+
'nldd-button-bar-divider': NlddElement<HTMLElement, NlddButtonBarDividerProps>;
|
|
3085
|
+
/** A container for grouping related buttons together, in a row or stacked. `auto`, the default, is a row, and a stack over the full width in a container of 30rem (480px) or less, the width of a phone, where two labels beside each other leave no room for either. A card or a dialog between 480px and the sm breakpoint keeps its row. The group is its own container, so it follows the width it was given rather than the width of the window: the same group is a row in a page and a stack in a sheet beside it. Being a container has one consequence to know: the width has to come from the parent, since a container may not size itself from what is inside it. In a parent that shrink-wraps its content (an inline-flex box, a float, a table cell, a flex item at `width: auto`) the group measures zero and its buttons are invisible. It says so once in development. Give the group or that parent a width. A stack fills the width with its buttons, except an `nldd-icon-button`, which keeps its own size: a bar with a single glyph in the middle is not a bigger target, only a wider one. With `width="full"` the buttons fill the row and share it equally. A button whose label does not fit its share takes the width it needs, and the others share what is left. A button that does not fit beside the others moves to the next line and fills it: two buttons stack, three end up as two over one. That replaces the 480px rule of `auto`, and the group is no container then. With `orientation="horizontal"` it stays a row, and a label that does not fit wraps instead. An `nldd-icon-button` takes no share of the row. The group sets its `size` on every button in it: buttons in one group are the same size. It holds three buttons at most and hides the rest. */
|
|
3086
|
+
'nldd-button-group': NlddElement<NLDDButtonGroup, NlddButtonGroupProps>;
|
|
3087
|
+
/** A visually bounded card with optional header, body and footer sections. The card is elevated by default. Padding is left to nested containers. With `href` the whole card becomes a link (an overlay anchor across the card), with `button` a button (an overlay button that fires a plain, composed `click`, so a click listener or htmx attribute on the card itself works directly, and Enter/Space work natively). `href` wins when both are set. Nested interactive content, footer buttons for instance, has to be lifted above it with `position: relative; z-index: 1` to stay clickable. A card that is a link or button steps its surface and border one shade up on hover and one more while pressed, as a neutral-base button does; content lifted above the overlay does not set it off. On a touch screen there is no hover, and a touch that turns into a scroll lets go of the pressed shade. */
|
|
3088
|
+
'nldd-card': NlddElement<NLDDCard, NlddCardProps>;
|
|
3089
|
+
/** A generic cell for wrapping arbitrary content in a list item. Controls vertical alignment and sizing without imposing content opinions. For more than a line of text, such as paragraphs or markup, put an `nldd-rich-text` in it rather than loose text in the row. `vertical-alignment="center"` (default) stretches the cell to fill the full row height and centers its content within that space. Use `min-height` to set a minimum centered region. For strict top alignment without a minimum height, use `vertical-alignment="top"`. */
|
|
3090
|
+
'nldd-cell': NlddElement<NLDDCell, NlddCellProps>;
|
|
3091
|
+
'nldd-checkbox': NlddElement<NLDDCheckbox, NlddCheckboxProps>;
|
|
3092
|
+
/** A checkbox with an inline label for use in forms. Form-associated: participates in native form submission under `name` with `value` when checked (the inner nldd-checkbox sits in the shadow root and never joins the consumer's form; the field submits on its behalf). */
|
|
3093
|
+
'nldd-checkbox-field': NlddElement<NLDDCheckboxField, NlddCheckboxFieldProps>;
|
|
3094
|
+
/** A monospace editor for code, YAML, JSON and other technical content, built on CodeMirror 6 (via NLDDCodeMirrorElement). Visually pairs with nldd-code-viewer for a matching read-only surface. Default `appearance="simple"` is a bare, flush editor (no frame, no focus ring) for use inside an nldd-form-field or a consumer composition that owns its own chrome and focus treatment; the caret is rendered as a prominent accent as the focus cue. `appearance="input-field"` adds the framed surface (border ring, tinted fill, inner padding, radius) and a focus ring for standalone use. The simple variant has no surrounding space of its own: let a layout container own the spacing and forward clicks with `focusFromPoint()` so clicking the padding still starts editing. Optional `language` enables lazy syntax highlighting; `line-numbers` adds a gutter (click a number to move the caret to that line). */
|
|
3095
|
+
'nldd-code-editor': NlddElement<NLDDCodeEditor, NlddCodeEditorProps>;
|
|
3096
|
+
/** A read-only block of code/text built on a non-editable CodeMirror 6 view. Visually pairs with nldd-code-editor (same engine, same token palette). Whitespace is preserved; long lines scroll horizontally by default. Set `wrap` to break long lines onto the next visual line. The viewer grows with its content. Set `max-height` to show a long file in a frame of its own: the block grows up to that height and scrolls beyond it. A scroller that overflows, in either direction, is a tab stop with a role and a name, so the keyboard reaches what a pointer can scroll to. Set `language` to one of the supported grammars (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python) to highlight the content. Without `language` the content renders plain. Grammars are loaded lazily on first use, so a page that never sets `language` ships zero grammar code. Set `diff` when the content is a unified diff, as git and pull request tools hand it out. The viewer shows the code it changes: an added line green and a removed line red, a column with the old and one with the new line number, a column with the `+` or `−`, and the `@@` header of each hunk between them. Within a removed line that is directly followed by an added one, the words that differ are marked, unless more than half of the line changed. File headers (`diff --git`, `---`, `+++`) are left out: name the file in the page around the viewer, and give each file of a multi-file diff a viewer of its own. `language` still highlights the code. A screen reader hears a summary first ("2 regels toegevoegd, 1 regel verwijderd") and "Toegevoegd" or "Verwijderd" with the line number before each changed line. A selection copies the code; the copy button copies the diff. Token colors are the `--semantics-code-syntax-*` custom properties (shared with the editor via the CodeMirror highlight style). Override them per-instance to swap the theme. */
|
|
3097
|
+
'nldd-code-viewer': NlddElement<NLDDCodeViewer, NlddCodeViewerProps>;
|
|
3098
|
+
/** A container for displaying collections of items. Supports grid, stack, lanes and horizontal scroll layouts. Use it for a set of equal blocks, usually `nldd-card`s, instead of a CSS grid of your own: the collection sets the columns from `item-min-width` and the available width, and the gap per breakpoint. A grid keeps as many columns as fit, also when there are fewer items, so a page of results lines up with the next. For a fixed set of a few cards without paging, such as three points on a landing page, use `nldd-container layout="grid"` instead: its empty columns collapse, so the cards fill the row. In grid and stack modes, items are paginated via a load-more button. In horizontal scroll, the prev/next controls and the edge fade appear only when the items overflow the container. Use horizontal scroll for items that together serve one purpose, such as the events of one agenda; it is not a carousel for unrelated highlights, which the design guidelines advise against. With `lazy-load`, the next items are automatically loaded when the load-more button comes into view. */
|
|
3099
|
+
'nldd-collection': NlddElement<NLDDCollection, NlddCollectionProps>;
|
|
3100
|
+
/** A text input with autocomplete dropdown via nldd-menu. Add a slotted nldd-menu with nldd-menu-item children to provide options. After typing, a screen reader hears how many options are shown ("2 resultaten"), or the empty text when none are, also for options that a server sends in later. Only the number it lands on: it waits until the options settle. The slotted nldd-menu keeps its default focus behavior (menu container receives focus) so that typing keeps focus on the input. The picker button moves focus to the menu explicitly on activation. Note: Only nldd-menu-item type="button" is supported. Radio and checkbox types are not supported in this context. */
|
|
3101
|
+
'nldd-combo-box': NlddElement<NLDDComboBox, NlddComboBoxProps>;
|
|
3102
|
+
/** A simple layout primitive: pick a layout mode, give it a gap, optionally align contents, and add padding. Padding can be set for all sides, per axis (inline/block), or per individual side. Specificity: per side > per axis > all sides. The container owns the space around and between its children; use `nldd-spacer` only for a one-off gap between two different things. A block that is placed in more than one context gets no padding of its own: whoever places it wraps it in a container, so the inset is not counted twice. Responsive padding and gap have sm/md/lg variants. Each variant emits both an @media (viewport) and @container (layout-container) query. When inside a layout-container the @container query wins; otherwise the @media query provides the viewport-based fallback. Layout modes: - `stack` (default): block items, stacked vertically. The "what you expect from DOM flow" mode. - `row`: flex row, no wrapping. Items shrink or overflow. - `wrap`: flex row, items wrap to new lines. - `grid`: CSS grid, auto-fit columns at min 280px wide. - `columns`: CSS multi-column flow, 280px minimum column width, items don't split across column breaks. Alignment maps to the layout's natural axis: - `stack`: vertical = main-axis (justify-content), horizontal = cross-axis (align-items) - `row` / `wrap`: horizontal = main-axis, vertical = cross-axis - `grid`: horizontal = justify-items, vertical = align-items (per cell) - `columns`: alignment props have no effect (CSS multicol doesn't expose alignment) Item order is set per-child via attributes on the slotted children themselves: `<child order="3">` for a fixed position, or `<child sm-order="N">` / `<child md-order="N">` / `<child lg-order="N">` to override per breakpoint (resolved against THIS container's width via @container queries, same scope as the responsive padding/gap). The container observes slot changes and child attribute mutations and bridges these to `--_container-slot-order` / `--_container-slot-sm-order` / etc. custom properties on each child's inline style, which the container's CSS then reads via `::slotted(*)` inside @container queries. Cascade: `sm-order` falls back to `order` falls back to `0` at sm (and analogously for md/lg). No-op for `layout="columns"` (CSS multicol has no per-item ordering hook). The `column-count` attribute (1-8) forces an exact column count for `layout="grid"` (overrides auto-fit) and `layout="columns"` (overrides the natural width-driven count). `sm-column-count` / `md-column-count` / `lg-column-count` resolve against this container's OWN width via an `@container (...)` query on the host — not against the viewport. That lets a footer in a narrow sidebar choose its own column count independent of the surrounding page width. `layout="lanes"` packs items into balanced columns using native CSS grid lanes where supported, falling back to CSS multicol (column-order) elsewhere. CSS-only, no JS. Honours `gap` on both axes and `column-count`. Note that nldd-collection's lanes falls back to its own grid rather than to multicol: that component pages, and multicol redistributes the whole set every time load-more adds to it. */
|
|
3103
|
+
'nldd-container': NlddElement<NLDDContainer, NlddContainerProps>;
|
|
3104
|
+
/** A text field for a date, with an optional calendar in a popover. The value is always ISO (yyyy-mm-dd); on screen it shows the Dutch notation (dd-mm-yyyy). Typing is not masked: input is accepted generously and normalized only when the field is left. Error messages belong to nldd-form-field, not here. This field reflects only `invalid` / `valid`, like nldd-text-field. `value` holds a valid date or nothing, so an empty field and one with text that is no date both read as ''. `validity` tells them apart: `badInput` for text that is no date, `rangeUnderflow` / `rangeOverflow` for a date outside `min` / `max`, and with `range` and `required` `valueMissing` for a period with only a start. A form does not submit then, and nldd-form marks the field invalid. Without a submit, as in a filter that applies at once, the moment is yours: `field.invalid = !field.validity.valid` on `change`, with a message of your own in the nldd-form-field. */
|
|
3105
|
+
'nldd-date-field': NlddElement<NLDDDateField, NlddDateFieldProps>;
|
|
3106
|
+
/** A calendar for picking a date or a period. The component works on its own (inline on a page, in a filter panel) and also sits in the popover of nldd-date-field. Values are always ISO (yyyy-mm-dd). With `range` the user picks a start and an end date in two steps. */
|
|
3107
|
+
'nldd-date-picker': NlddElement<NLDDDatePicker, NlddDatePickerProps>;
|
|
3108
|
+
/** A cell component for displaying a title-description pair in lists. `vertical-alignment="center"` (default) stretches the cell to fill the full row height and centers its content within that space. Use `min-height` to set a minimum centered region. For strict top alignment without a minimum height, use `vertical-alignment="top"`. */
|
|
3109
|
+
'nldd-description-cell': NlddElement<NLDDDescriptionCell, NlddDescriptionCellProps>;
|
|
3110
|
+
/** A rule that visually separates sections of content. */
|
|
3111
|
+
'nldd-divider': NlddElement<NLDDDivider, NlddDividerProps>;
|
|
3112
|
+
/** A horizontal tab bar for document tabs with an automatic overflow button and an end slot for action buttons. Exports both NLDDDocumentTabBar and NLDDDocumentTabBarItem. */
|
|
3113
|
+
'nldd-document-tab-bar': NlddElement<NLDDDocumentTabBar, NlddDocumentTabBarProps>;
|
|
3114
|
+
'nldd-document-tab-bar-item': NlddElement<NLDDDocumentTabBarItem, NlddDocumentTabBarItemProps>;
|
|
3115
|
+
/** A cell that displays a drag handle for reorderable list items. Always vertically centered and sized to fit the handle. To enable drag-to-reorder, add the `reorderable-only` attribute to this element. This attribute is required for `nldd-list` to detect the drag handle in the composed event path and activate pointer and keyboard drag mode: ```html <nldd-list reorderable> <nldd-list-item> <nldd-drag-handle-cell reorderable-only></nldd-drag-handle-cell> <nldd-text-cell text="Item"></nldd-text-cell> </nldd-list-item> </nldd-list> ``` Without `reorderable-only`, pointer and keyboard drag will never trigger. */
|
|
3116
|
+
'nldd-drag-handle-cell': NlddElement<NLDDDragHandleCell, NlddDragHandleCellProps>;
|
|
3117
|
+
/** A visual wrapper around a native `<select>` element. The consumer provides a native `<select>` as a slotted child — this way the browser retains full control over form submission, accessibility and keyboard navigation, including `<optgroup>`, `data-*` attributes and dynamic changes to options. A dropdown hides its options, so it is the last resort for a choice from a fixed set. Show a handful of options with nldd-segmented-control, nldd-toggle-button-group or nldd-radio-button-group, and let the user type in nldd-combo-box when there are many, a list of countries included. The design guidelines explain the order. */
|
|
3118
|
+
'nldd-dropdown': NlddElement<NLDDDropdown, NlddDropdownProps>;
|
|
3119
|
+
/** A file picker that reads as one control. Empty, the whole tinted surface is one button with one sentence centered in it, "Bestand kiezen of sleep het hierheen", its first part accented, so a press anywhere on it opens the file dialog. Once a file is chosen, the surface shows it with the icon of its format, its name, a button to choose another and a dismiss button to clear it again. A long name is cut in the middle, so its start and its end stay in view ("Screenshot 20…at 13.12.21.png"); it then shows whole in a tooltip, and a screen reader reads it whole either way. It wraps a hidden native `<input type="file">`, which is what makes the picker open at all — a file dialog only opens from a user gesture on a real input. Files can be dropped on the whole field. A drop goes through the same input, so it fires the same `change` with the same detail and submits the same way as a pick. `accept` and `multiple` hold for a drop too, which the native input does not do: a drop that does not fit is refused as a whole, the previous choice stays, and the field says why for a few seconds: "Sleep één bestand", or what `accept` takes, named from it ("Alleen PDF"; "Bestandstype past niet" where a type in it has no name). The message stays for a few seconds and then gives way to the field again. While it shows, the message is a button of its own over the whole field, "Alleen PDF, sluit melding, Bijlage" to a screen reader: a press on it, or Enter, Space or Escape, dismisses it and puts focus on the button of the field again. A field that had focus when the message came gives it to the message, so focus does not fall back to the page. With `multiple`, a dropped folder is read down to the files in it, its subfolders included, and mixed with loose files in one drop if need be. The field then names the folder ("site (124 bestanden)", also "site (1 bestand)" for one), `paths` says where each file sat ("site/css/main.css"), and a form submits each file with its path as its name, as a native folder input does, so two files with one name in different folders stay apart. `accept` holds for every file in it. Without `multiple` a folder is refused ("Sleep bestand, geen map"): one file cannot be a folder. Only a drop tells a folder apart, not the drag. A folder that takes longer than a second to read shows the field empty with an `nldd-activity-indicator` ("Laden" in an area, the circle alone otherwise), as what was chosen gives way to it. An empty or unreadable folder is refused as any other drop, and the previous choice comes back after the message. `directory` offers a folder in the file dialog too. A dialog picks files or a folder, never both, so with it the field says "Bestanden of map kiezen" and a click opens a menu with both where it lands, as a context menu does; the keyboard opens it under the button. An area has room for both, so there it shows "Bestanden kiezen" and "Map kiezen" as two buttons with the drop hint under them, and the surface around them only takes a drop. "Wijzigen" opens the menu under itself. A folder is many files, so `directory` takes several without `multiple`. Safari on iOS picks a folder as well; a browser that cannot opens a dialog for files instead. While files are dragged over the page, every field marks itself as a place to put them, and the field under the pointer says it will take them (a field with a file: that they replace it), or turns critical and refuses already when the number or the type rules them out. A file dropped next to a field no longer makes the browser open it and leave the page; a drop that another drop zone or an editable field takes is left alone. On a device without hover there is no dragging, so the field there drops the hint. A control reserves the height of every text it can show, so fields of a size are as tall at one width, empty or with a file. Only a field with `directory` reserves the sentence that offers a folder, the longest of them. The name takes the lines that leaves it, and is cut in the middle only once those are full. A narrow field makes more room: below 320px "Wijzigen" and "Wis selectie" go in one menu behind "Toon opties" and a folder is counted as "site (3)", below 240px it leaves out the icon of the format. A refused drop says why in place of the name and the buttons, and an area shows its upload icon in red with it, as it did while the drop was refused. The surface deliberately does not look like an input field. A border with field semantics promises you can type into it; here you can only press it or drop a file on it, so it has the border of a tinted surface instead of `--semantics-input-fields-*`. Several files are summarized, not listed: "3 bestanden" with a single cross that clears all of them. Every pick replaces the whole FileList, and rebuilding it to add or drop one file means going through DataTransfer, which does not deduplicate (even the same File object twice yields two entries) — and a File has no id, so deduplicating would come down to guessing from name, size and last-modified. A list with a cross per file would promise an edit the platform does not support. A page that does want to show the files renders its own list from the `File[]` in the change event. `variant="area"` lays the same field out as a tall surface, for a page where handing in files is the main task. Empty, it shows an upload icon, the sentence and the types it takes ("Toegestaan: PDF of JPG"), named from `accept`; with a file, the icon of its format (a folder for a folder, a stack for several files), its name and the buttons "Wijzigen" and "Wis selectie" stacked in the middle. Both states have the same height, so the page does not move when a file is chosen: 160px, 120px at `size="sm"`, and a step more with `directory`, whose buttons take a row of their own. Where those buttons no longer fit side by side, below 360px or 300px at `size="sm"`, it is one step taller again. */
|
|
3120
|
+
'nldd-file-field': NlddElement<NLDDFileField, NlddFileFieldProps>;
|
|
3121
|
+
/** 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: const inner = document.querySelector('nldd-form').form; inner.checkValidity(); inner.appendChild(myInput); // skips the migration overhead */
|
|
3122
|
+
'nldd-form': NlddElement<NLDDForm, NlddFormProps>;
|
|
3123
|
+
/** 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` automatically from a wrapping `<nldd-form>`: the form propagates its own `label-alignment` as `form-label-alignment` to descendant `nldd-form-actions` (and `nldd-form-field`) through a MutationObserver. An explicit `label-alignment` on the form-actions itself wins through the CSS cascade, and the form code never touches the `label-alignment` attribute of the descendant. <nldd-form label-alignment="right"> <nldd-form-field>...</nldd-form-field> <nldd-form-actions> <nldd-button-group> <nldd-button appearance="primary" type="submit" text="Bewaar"></nldd-button> </nldd-button-group> </nldd-form-actions> </nldd-form> */
|
|
3124
|
+
'nldd-form-actions': NlddElement<NLDDFormActions, NlddFormActionsProps>;
|
|
3125
|
+
/** 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. 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. */
|
|
3126
|
+
'nldd-form-field': NlddElement<NLDDFormField, NlddFormFieldProps>;
|
|
3127
|
+
'nldd-form-field-help-text': NlddElement<NLDDFormFieldHelpText, NlddFormFieldHelpTextProps>;
|
|
3128
|
+
/** Nederlandse Digitale Dienst Form Section Component Plain custom element (extends HTMLElement, no Lit). The light-DOM render works around an NVDA + Firefox a11y bug where a shadow-DOM <fieldset> + <legend> is not reliably announced as the group label for slotted controls. A native fieldset/legend in the light DOM works correctly across all AT/browser combinations. **Differs from shadow components:** - No shadowRoot: all children live in the light DOM (inside the rendered <fieldset>). - No Lit: a plain HTMLElement with manual DOM mutation. - **Requires a global stylesheet import**: `dist/css/form-section.css` (or `global.css`). Form-section has no shadow stylesheet. Renders to: <nldd-form-section> <fieldset class="form-section"> <legend class="form-section__header"> <span class="form-section__title">Title</span> <span class="form-section__supporting-text">Supporting text</span> </legend> <div class="form-section__main"> [user's children] </div> </fieldset> </nldd-form-section> **Accessibility note**: the title renders as a `<legend>`. Semantically that is a **group label**, not a heading. Screen readers announce it when the user enters the fieldset, but users jumping through headings with the H key skip it. Visually it looks like a heading, so use this component for *form grouping*, not as page structure. For real page headings, use a separate heading element above the form. **Supporting-text length**: the supporting text sits as a `<span>` inside the `<legend>` so a screen reader reads it along as the group label. Side effect: on every field entry within the section, the whole legend (title + supporting text) is spoken again. Keep `supporting-text` short (roughly 80 characters or less) and use it to introduce the group ("Vul je adresgegevens in"), not for detailed instructions. For a longer explanation on one specific field, use `nldd-form-field-help-text` on that field. <nldd-form> <nldd-form-section text="Persoonsgegevens" supporting-text="Vul je gegevens in."> <nldd-form-field label="Voornaam">...</nldd-form-field> <nldd-form-field label="Achternaam">...</nldd-form-field> </nldd-form-section> <nldd-form-section text="Adres"> <nldd-form-field label="Straat">...</nldd-form-field> </nldd-form-section> <nldd-form-actions>...</nldd-form-actions> </nldd-form> */
|
|
3129
|
+
'nldd-form-section': NlddElement<NLDDFormSection, NlddFormSectionProps>;
|
|
3130
|
+
/** A section that spans the full width without horizontal padding. Useful for background colors, images, or other content that runs edge to edge. Vertical padding and gap adjust via container queries. */
|
|
3131
|
+
'nldd-full-bleed-section': NlddElement<NLDDFullBleedSection, NlddFullBleedSectionProps>;
|
|
3132
|
+
/** The section that says what a page is for: it names the main goal of what you can find there, draws the eye and is the visual welcome. It has a media area and a text panel (the main) that can stand in eight positions. The areas are rectangular; `corner` rounds one corner of each. Use it on pages where a visitor first has to know where they are, such as a home or a topic page; where the title already does that, a section with a title is enough. The image in a hero sets the mood and is never the main content, so the panel always stands on it. Over an image the panel keeps a section gap from its edges, so it reads as a panel on the image rather than a frame cut out of it; with `main-width="full"` it is a strip across the whole image, the same gap from the sides. On mobile the image comes first and the panel below it, indented by the section gap and overlapping the image by 48px. For an image beside text without that relation, use a section with an image beside text instead. Without media the main fills the whole area; with `main-background="base"` that area gets a border so it stays visible on the base surface. The hero is the head of a page and sits right under the top bar, so on md and lg its top padding is half that of the other page sections: the full distance is meant to separate two sections, and under the top bar it reads as a gap. On sm the top keeps the full distance, as the other sections do. The bottom keeps the full distance to the section below. Set `padding-top` to place a hero elsewhere. By default the panel falls over the bottom of the image and runs on below it (`layout="overlap"`), so the image keeps its height whatever the content. `layout="contained"` keeps the panel on the image, for a short panel or one that stands at the top or along a side. The height of a hero comes from its image: `media-aspect-ratio`, or a fixed `media-height`. The `height` of the other page sections is not used here: as a minimum height for the whole hero it stretched the panel once that sat below the image. A hero given `height` says so in development. The panel takes the accent color of the theme, closest to its reference color in both modes, with a pure white or black content color, so components with `color="inherit"` (title, rich-text) are guaranteed to keep their contrast. `main-background="base"` gives it the base surface instead. A Rijkshuisstijl color per hero is gone: the theme picks the color for the whole site, and a hero given one says so in development. */
|
|
3133
|
+
'nldd-hero': NlddElement<NLDDHero, NlddHeroProps>;
|
|
3134
|
+
/** A customizable icon component that renders SVG icons from a predefined library. Icons are decorative by default: the host gets `aria-hidden="true"` automatically. If you want the icon to be announced by assistive tech, set `aria-hidden="false"` on the consumer side together with an `aria-label`. Sizing: the icon fills whatever sizes it — an `nldd-icon-cell`, a button, a menu item. `size="full"` names that default explicitly. `size="inherit"` makes it follow the surrounding text (1em), for an icon set inline in a sentence. Any spacer-aligned number (16–96) pins a fixed dimension. Reach for `inherit` rather than a global `nldd-icon { width: 1em }` rule in the consumer: such a rule wins over the component's own :host styling and so also shrinks the icons that a cell or button was already sizing correctly. Color: by default the icon inherits its parent's `color`. Set `color` to one of the functional semantics (`primary-content`, `secondary-content`, `accent`, `critical`, `warning`, `success`) or a rijkskleur (`lintblauw`, `paars`, `groen`, …). For a color the system cannot know — the jacket of a cable, a color someone picked — set `custom-color` to any CSS color. */
|
|
3135
|
+
'nldd-icon': NlddElement<NLDDIcon, NlddIconProps>;
|
|
3136
|
+
'nldd-icon-button': NlddElement<NLDDIconButton, NlddIconButtonProps>;
|
|
3137
|
+
/** A cell component for displaying icons in lists with configurable alignment and size. Set `icon` to render an `nldd-icon` by name, or slot custom content as an escape hatch for non-standard iconography. */
|
|
3138
|
+
'nldd-icon-cell': NlddElement<NLDDIconCell, NlddIconCellProps>;
|
|
3139
|
+
/** An editorial line that shows authors or editors: optional avatar or avatars, a name line and supporting text (a role or a date, for instance). Every part is optional. The name line and the supporting text come in as an attribute or as a slot. Use the slots for richer content, such as a `<time datetime="…">` for a machine-readable date or a link to the author's profile. Slotted content replaces the matching attribute: the attribute is the slot's fallback. One avatar you slot as it is, and identity gives it its size. For more than one, slot an `nldd-avatar-group`: that overlaps them and draws the ring in the surface color. Identity does not build that group itself, because the avatars are the consumer's light DOM and a group can only style what arrives as its own child. Set the avatars to decorative (or an `img` to `alt=""`) when the names already stand in the text. On narrow widths (an sm container, 640px and under) with more than one avatar the row of avatars moves above the names, so the text keeps the full width. With one avatar the identity stays on a single line. For a single avatar you can also hand over `avatar-src` (with an optional `avatar-srcset`) as an attribute instead of slotting; its size is fixed at 40px. Slotted avatars take precedence over `avatar-src`. */
|
|
3140
|
+
'nldd-identity': NlddElement<NLDDIdentity, NlddIdentityProps>;
|
|
3141
|
+
/** Wraps a native `<img>` with design-system styling: corner radius variants, aspect-ratio reservation, object-fit/position control, optional caption + credit. Renders as `<figure>` + `<figcaption>` only when a caption or credit is set — otherwise just the image, no extra wrapping. Hybrid source: the `src` attribute renders an internal `<img>`. To use a custom `<img>` or `<picture>` (e.g. with art-direction sources), slot it into the default slot and we'll style and wrap it like our own image. Without an image (no `src`, `srcset`, `lqip` or slotted media) it shows a neutral area with an image icon, in the box, shape and caption a real image would get: a place where an image belongs, for a prototype or a pattern, or an image someone forgot. Without `aspect-ratio` that area is 16/9. While the built-in `<img>` loads without an `lqip`, the same area shows without the icon, and it goes once the image is in. */
|
|
3142
|
+
'nldd-image': NlddElement<NLDDImage, NlddImageProps>;
|
|
3143
|
+
/** An inline status component for empty state, confirmations and feedback. Fills the container and has no minimum width. */
|
|
3144
|
+
'nldd-inline-dialog': NlddElement<NLDDInlineDialog, NlddInlineDialogProps>;
|
|
3145
|
+
/** A guided-discovery coach mark. Put a control (nldd-search-field, for instance) in the default slot. While `active` is set, the component lifts a callout (title + supporting text + dismiss) into the top layer through the Popover API (`popover="manual"`), anchored to the control with Floating UI. No backdrop, non-modal: the background stays interactive. The control itself stays where it is in the flow. With `dismissable` the component manages closing and fires nldd-close: - the user performs the suggested interaction on the control -> close{completed} - the dismiss button -> close{dismissed} - a click or key press OUTSIDE the coach mark -> close{ignored} Without `dismissable` nothing closes by itself (no button, no outside or slot click); the consumer then decides when to close through `active` or `complete()`. `complete()` always works and closes with close{completed}, for example only once a real search has been submitted. */
|
|
3146
|
+
'nldd-just-in-time-education': NlddElement<NLDDJustInTimeEducation, NlddJustInTimeEducationProps>;
|
|
3147
|
+
/** Columns side by side, with items you move between them. Kanban is Japanese for a visible board, so it is any board where an item's column is one of its values: a status, but also a team or a phase. Put `nldd-kanban-column`s in it, and the items in those, usually an `nldd-card` each. The board scrolls sideways once its columns do not fit, and a column scrolls on its own once its items do not fit the height you give the board. An item moves in three ways, and all three fire the same `nldd-move`: - **Dragging.** Pick up the whole item and drop it in a column. A press that does not move is still a click, so an item that is a link or a button keeps working. Released outside the board, the item goes back to its place, which a note above it says once it stays out a moment. On a touch screen you hold the item a moment before it lifts, so a swipe still scrolls. - **Keyboard.** With focus on an item, or on something inside it, Alt with the up or down arrow moves it within its column, and Alt with the left or right arrow to the column beside it. - **`moveItem()`.** WCAG 2.5.7 asks for a way that does not drag. Give each item a menu "Verplaatsen naar" with the other columns (`columns` lists them) and call `moveItem()` from it. The menu is yours; the board only moves. With `readonly` nothing moves: no dragging and no Alt with the arrows, while the items still work, so a card still opens. Use it for someone who may only look, or a board that is closed. `moveItem()` still moves, so your app can still show a move someone else made. An attempt to move an item, dragging it past a click or Alt with an arrow, shows "Dit bord is alleen-lezen" at the item, says it to a screen reader and fires `nldd-move-denied`, so your app can say why in an `nldd-notification`. Say it above the board too: only your app knows the reason, and then nobody has to try. The board moves nothing itself. `nldd-move` says which item goes where, and your app moves it in its data, or in the DOM, in the handler: the app owns the order, so a framework that renders the columns never fights the board over them. `toIndex` is the place the item takes in `toColumn`, counted without the item itself, so `splice(fromIndex, 1)` on the one list and `splice(toIndex, 0, item)` on the other is the whole move. Move it synchronously in the handler: the board puts focus back on the item right after, and a screen reader hears where it landed. */
|
|
3148
|
+
'nldd-kanban': NlddElement<NLDDKanban, NlddKanbanProps>;
|
|
3149
|
+
/** One column of an `nldd-kanban`: a header and the items under it. The items are whatever you put in the column, usually an `nldd-card` each; the board moves them between columns. Without a `header` slot the column shows its `text` and the number of items. With one, the header is yours: an `nldd-title`, a button to add an item, a badge. `text` stays the column's name either way: it is what a screen reader hears when an item moves here ("Verplaatst naar In behandeling"), so set it, or `accessible-label`, also when the header comes from the slot. The column scrolls on its own once its items do not fit the height of the board, and fades at the top or the bottom while there is more to scroll to. */
|
|
3150
|
+
'nldd-kanban-column': NlddElement<NLDDKanbanColumn, NlddKanbanColumnProps>;
|
|
3151
|
+
/** Shows a key combination (such as Cmd+K or Ctrl+Shift+P) in one combined container with a semantic <kbd> element per key. On touch-only devices (no hover-capable input) the shortcut is hidden by default, because it cannot be invoked there. Use the `always-visible` attribute when the shortcut is purely informative and should stay visible. For cross-platform shortcuts you can set `mac-keys`, `windows-keys` and `linux-keys`. The component picks the right one from the detected OS, with `keys` as the fallback for unknown platforms. */
|
|
3152
|
+
'nldd-keyboard-shortcut': NlddElement<NLDDKeyboardShortcut, NlddKeyboardShortcutProps>;
|
|
3153
|
+
/** Hyperlink component with two modes: 1. **Standalone (sized)**: set `size="xs"|"sm"|"md"|"lg"` for menus, action areas or overviews. Fixed text size, `display: inline-flex` with `gap` for icon spacing. 2. **Inline (inherit)**: leave `size` out or set `size="inherit"` explicitly. The link inherits `font-size`, `line-height` and `font-family` from its surroundings. Text wraps naturally across lines (`display: inline`). Icons work here too; the natural whitespace between icon and text provides the spacing. For links in CMS or markdown output, where the `<a>` arrives as HTML, `<nldd-rich-text>` with a raw `<a>` remains the route to take. */
|
|
3154
|
+
'nldd-link': NlddElement<NLDDLink, NlddLinkProps>;
|
|
3155
|
+
/** A set of related `nldd-link` elements, such as the links under the name of a service in a footer or the links to the other parts of a site. The links sit in a row that wraps onto the next line when they do not fit, or stacked with `orientation="vertical"`. With `horizontal-alignment="center"` the whole set is centered, line by line, so a short list reads as one cloud in the middle. The group is a `nav` landmark with the links as a list, so a screen reader says how many there are. Give it an `accessible-label` as soon as a page has more than one `nav`, so each landmark can be told apart. The group sets its `size` on every link in it: links in one group are the same size. */
|
|
3156
|
+
'nldd-link-group': NlddElement<NLDDLinkGroup, NlddLinkGroupProps>;
|
|
3157
|
+
/** A container for `nldd-list-item` elements. The `type` attribute switches the list's a11y role and behavior: - `list` (default) — `role="list"`, items `role="listitem"`. Reorderable allowed. - `radiogroup` — `role="radiogroup"`, for a set of `nldd-list-item radio` rows: one choice, laid out as rows so each option can carry a count or a second line. The rows step out of the accessibility tree themselves (`role="none"`), so the radios are the group's own children. The arrows move focus here and activation checks, rather than the selection following focus as it does in `nldd-radio-button-group`. - `tree` — `role="tree"`, items `role="treeitem"`. Branch rows put their child rows in their own `slot="children"`, which the item renders as a `role="group"`. Level, position and set size are NOT authored: the nesting represents the hierarchy, so assistive technology derives them. A branch row must carry `expanded`; the group is hidden while it is false. Visual indentation is the consumer's — repeat a spacer-cell per level. Comes with its own keyboard, see "Tree" below. - `navigation` — host `role="navigation"`, items with `selected` get `aria-current="page"` on their inner `<a>` or `<button>`. Sub-pages go in their parent row's `slot="children"`, which the item renders as a list inside the list item, so a screen reader hears the level and how many there are. They are always shown and the arrows walk them like any other row; a spacer-cell alone indents but says nothing. Visual indentation is still the consumer's. - `form` — rows that are not actions themselves: the controls inside them are. A row of a label and a field, a switch, a menu button, or a value you cannot change at all. Semantically the same as `list` (`role="list"`, `role="listitem"`), and everything visual is unchanged; what falls away is the keyboard of a list you walk through. No arrow navigation, so no promise of it either, and no tab stop on the row: Tab goes straight to the controls, in source order, the way it does in any form. Rows that ARE actions (`href`, `button`, `checkbox`, or a segment) contradict that and warn in development. SwiftUI draws the same line between `List` and `Form`, for the same reason. - `listbox` — an accessible, filterable listbox (combobox pattern). The list renders its OWN search input (`role="combobox"`) pinned above the options; `.list__items` becomes `role="listbox"` and items become `role="option"`. Focus stays in the input, the active option moves via `aria-activedescendant`, and filtering is consumer-managed via the `input` event (toggle `[hidden]` on items). See "Listbox" below. Selection state is consumer-managed: the list never mutates `selected` itself. A list you walk through answers to the arrow keys, and there is no attribute to switch that on. Whether the keys do something is not a property of one list: it is what a reader may assume about all of them, and a per-list setting made that unknowable from the outside. It follows the type, which you can see before you touch a key. - ArrowUp / ArrowDown — move focus between the rows there is something to do with. A row of nothing but text is skipped, because focus that leads nowhere is a dead end. - Home / End — the first / last of those rows. - Tab — the list is ONE tab stop, so Tab moves past it rather than through it. Within the current row Tab walks that row's own controls: a chevron beside a checkbox, a menu button at the end. The same controls in the other rows are held out of the tab order (`tabindex="-1"`, or `no-tab` on a design-system control that keeps its tab stop in its own shadow root), and so are this row's once focus leaves the list, so tabbing back in lands on the row again. - Escape — out of a control the row holds, back onto the row. One level up, where Shift+Tab is one step back. On the row itself the list claims nothing, so Escape carries on to whatever holds the list, and a control showing a menu keeps the first press for closing that menu. While focus sits in a control a row holds, the list stands down: those keys are the control's, and a list that took them anyway would pull focus out of a combo box or a text field mid-word. What the row IS — its own link, button or segments — keeps answering here. Arrows move focus only; selection stays consumer-managed. Three types answer differently, and all three say so on screen before you touch a key: a listbox runs its keyboard from its search field, a reorderable list moves rows with the arrows, and a form has no rows to move between at all. In `type="listbox"` the list owns a native `<input role="combobox">` (mirroring how `nldd-combo-box` wires an input to a slotted listbox). Keyboard, handled on the input so focus never leaves it: - ArrowDown / ArrowUp — move the active option among the VISIBLE (non-`[hidden]`) options (wrap around). - Home / End — first / last visible option. - Enter — activate the active option by triggering its inner action (a link navigates, a button fires the consumer's handler). Selection stays consumer-managed. - Escape — clear the search value (and refire `input`). On every active change the input's `aria-activedescendant` is set to the active option's id and the option is scrolled into view. The active option (`_highlighted` on the item, a highlight) is distinct from `selected`. Filtering is the consumer's job: listen to `input` (`{ detail: { value } }`) and toggle `[hidden]` on items; after the visible set changes the list resets the active option to the first visible one. `reorderable` and the roving arrow keys are ignored in listbox mode (listbox has its own keyboard). A tree adds to that keyboard, and counts the rows of an open branch as part of the order the arrows walk: - ArrowRight — opens a closed branch; on an open one it steps to its first child. - ArrowLeft — closes an open branch; on a leaf it steps out to the parent row. - Enter — follows the row: its own link or button, or on a segmented branch the first action that is not the chevron. A branch with only a chevron folds instead. - Space — open and close, the same as Right and Left. Only while focus sits on the row itself: a row that is its own control, and a segmented action you tabbed into, handle both keys themselves. Opening and closing runs through the row's own disclosure control — the segment marked `disclosure`, or the row itself when it is a button. The list activates that control rather than writing `expanded`, so the state keeps being set in one place: the consumer's handler. A row that is a link is never activated this way, since that would navigate away. The tree is one tab stop. Focus lands on the row itself when the row has no control of its own, because that is where `treeitem` sits and it makes assistive technology announce the row rather than a button inside it. Tab then walks the controls of THAT row (a chevron beside a checkbox, say) and leaves the list after the last one. A deliberate deviation: strictly speaking a row with several controls is a `treegrid`, not a `tree`. We keep the tree semantics — level and set size are what matters here, not rows and columns — and borrow the "Tab within the row" behavior from the grid pattern. Should a tree with real columns come up, that is when `treegrid` earns its own type. On reorder (type="list" + reorderable), the list dispatches `nldd-reorder` with `fromIndex` / `toIndex` and expects the consumer to mutate the DOM (or their data model that renders the DOM). Focus is restored to the moved item's drag handle via a single `requestAnimationFrame` — this assumes the consumer reorders **synchronously** in the event handler. Async renderers (React, Vue, …) that update the DOM on a later tick will miss the focus restore and should manage focus themselves after their render commits. */
|
|
3158
|
+
'nldd-list': NlddElement<NLDDList, NlddListProps>;
|
|
3159
|
+
/** A row within an `nldd-list`. Renders as a link when `href` is set, as a checkbox when `checkbox` is set, as a button when `button` is set, or as a plain container otherwise. All cells and segments share one flat slot, in source order. With one action, make the row itself the control (`href`, `button`, `checkbox` or `radio`): the whole row is then one hit area. With two or more, give each its own `nldd-list-item-segment` and leave the row without an action of its own. Both at once nests a control inside a control, and the item warns about that in development. Two rules govern every row: 1. State fills always paint the WIDENED row geometry — the row box extended by the indicator inline inset on both sides — whether or not the row is interactive. Paint never differs between a selected plain row and a selected interactive row. 2. The widened strip belongs to the ROW, never to a segment. A row with any action (its own `href`/`button`/`checkbox`, or a slotted segment) pulls itself outward (`is-interactive` host class → negative inline margin) and pads the row block back by the same amount, so content stays on the grid. A row-wide action owns that padding itself, making the whole widened box one hit area; slotted segments stay in the grid, so their footprint is position-independent and tree columns line up at any depth. By default the divider starts at the row's first text or title cell, so the line lands on the words rather than on whatever leads up to them — an icon, an avatar, a checkbox, or the spacers a tree indents with. Rows of different shapes then still line their dividers up with each other, and a tree's dividers step inward with its indentation. Text inside an `nldd-list-item-segment` counts as the row's content, and the marker is that text cell rather than the action: the action carries its own inline padding, so its edge sits before the words. A row with no text or title cell keeps the full content width. Mark a cell with `divider-start` and/or `divider-end` to place it yourself instead — an explicit marker replaces the derived one entirely, so `divider-start` on the leading cell restores the full-width line. Multiple markers resolve as the union: first `divider-start` through last `divider-end`. A start past the last end is an authoring error — the item DEV-warns and falls back to the full content width. A branch row can disclose its children in two ways: a dedicated `nldd-list-item-segment[disclosure]` segment (only the chevron is clickable), or the row itself as the control (`button` + `expanded`, the whole row toggles). In the second case, mark the chevron's `nldd-icon-cell` with `disclosure` and the row turns it with `expanded` — the same affordance, without having to trade a clickable row for a turning chevron. `checkbox` makes the WHOLE row the control: the inner action becomes a `role="checkbox"` button carrying `aria-checked`, it toggles `checked` on activation and fires `change`. Slot an `nldd-checkbox decorative` (or any glyph) before the text: it only shows the state, since the row already conveys role and state, and a second focusable control would double the tab stops. Do NOT nest a real `<input type="checkbox">` in the action: interactive content inside a `<button>` is invalid HTML and AT announces the button, not the checked state. A `<label>` variant is not offered for the same reason it cannot work — label-to-input association walks the DOM tree, and a slotted input is not a descendant of a label in the shadow root. When it renders as a link, `target` and `rel` are forwarded to the inner `<a>` (e.g. `target="_blank" rel="noopener noreferrer"`). With `target="_blank"` the item also injects a visually hidden "opens in new tab" announcement for assistive technology (WCAG 2.1 SC 3.2.2), and an `href` to another website a visually hidden "andere website". An `nldd-icon-cell` with `external-link` is only the picture of that; the row says it either way. The item synchronizes its ARIA with its parent `nldd-list`'s `type`: - `list` parent → `role="listitem"` - `navigation` parent → `role="listitem"` + `aria-current` on the inner `<a>` / `<button>` when `current` or `selected`, with `current-type` as its value (`page` unless set) - `listbox` parent → `role="option"` + `aria-selected` reflecting `selected`. The list points its search input's `aria-activedescendant` at the active option via `_highlighted` (separate from `selected`). */
|
|
3160
|
+
'nldd-list-item': NlddElement<NLDDListItem, NlddListItemProps>;
|
|
3161
|
+
/** A segment inside an `nldd-list-item`: it groups a run of cells and makes just that run clickable. Use it when a row needs more than one segment — a tree row whose chevron expands while the label toggles a checkbox, or a row that navigates with a separate button beside it. Put it in the row where its cells would go: the item has one flat slot, and a segment takes the place of the cells it covers. Where the divider starts or stops is marked on the cells themselves (`divider-start` / `divider-end`), not by the slot a segment sits in. A row is EITHER row-level interactive (`href` / `button` / `checkbox` on the `nldd-list-item`) OR segmented (one or more of these). Both at once nests a control inside a control, which is invalid HTML; the item DEV-warns. Unlike the row-wide action this does not bleed outward: a segment sits between siblings, so an outward inset would overlap them. It owns its inline padding and never drops below the row's control size, so an icon-only one still meets the WCAG 2.5.8 target size — do not add spacer cells inside it for room or hit area, that doubles the space. In a `type="listbox"` list the segment renders as a plain container (no control, not focusable) and DEV-warns: an `option` may not contain interactive descendants. The cells render unchanged, so nothing shifts. */
|
|
3162
|
+
'nldd-list-item-segment': NlddElement<NLDDListItemSegment, NlddListItemSegmentProps>;
|
|
3163
|
+
/** A floating menu component using the Popover API. Positioned relative to an anchor element using Floating UI. Supports filtering, keyboard navigation, and highlight management. Use nldd-menu-item and nldd-menu-divider as children. Note: Only type="button" items are supported when used inside nldd-combo-box-field. Radio and checkbox types may be used in standalone menus. */
|
|
3164
|
+
'nldd-menu': NlddElement<NLDDMenu, NlddMenuProps>;
|
|
3165
|
+
/** Horizontal row of nldd-menu-bar-item elements with automatic overflow detection. Items that do not fit are hidden behind an overflow button with a popover menu. */
|
|
3166
|
+
'nldd-menu-bar': NlddElement<NLDDMenuBar, NlddMenuBarProps>;
|
|
3167
|
+
/** Interactive building block for use in a menu bar. Renders as an <a> (with href) or a <button> (without href). Supports an icon, text, a disclosure indicator, and an expandable popover through a slotted `<nldd-menu>` (or another popover element). */
|
|
3168
|
+
'nldd-menu-bar-item': NlddElement<NLDDMenuBarItem, NlddMenuBarItemProps>;
|
|
3169
|
+
/** A horizontal rule between groups of items in an `nldd-menu`. */
|
|
3170
|
+
'nldd-menu-divider': NlddElement<NLDDMenuDivider, NlddMenuDividerProps>;
|
|
3171
|
+
/** A labeled group of menu items inside an nldd-menu. Wraps its slotted items in `role="group"` with `aria-labelledby` pointing to the group's `text`, providing native ARIA group semantics that a flat title element can't deliver. The group renders an automatic divider above itself, except when it's the first child of the menu — so consumers don't need to manage separator placement around groups themselves. Spacing above the title is intentionally larger than below, to bind the title visually to the items it labels. Use the wrapper for grouping with a title; for ungrouped flat menus or a divider without a title, the existing `nldd-menu-item` + `nldd-menu-divider` flat structure keeps working unchanged. */
|
|
3172
|
+
'nldd-menu-group': NlddElement<NLDDMenuGroup, NlddMenuGroupProps>;
|
|
3173
|
+
/** A single item within an nldd-menu. */
|
|
3174
|
+
'nldd-menu-item': NlddElement<NLDDMenuItem, NlddMenuItemProps>;
|
|
3175
|
+
/** A modal window with overlay backdrop, based on the native <dialog> element. Internally renders an <nldd-inline-dialog> for the visual structure. Use it only when there is no way back, and give it a real choice: a dialog with one button offers nothing to decide, so tell the user with an nldd-notification or an inline message instead. In a destructive dialog the safe way out comes first, as the primary button. Work that needs the page as context, such as editing, belongs in an nldd-sheet. The design guidelines say why. A dialog that opens with one action says so in development. Open and close it with `open`, bound to your state together with the close event: the dialog clears `open` itself when the user closes it. show() and hide() do the same for code without a binding. Keep the dialog in the DOM rather than mounting it when it opens, or the animations are skipped. */
|
|
3176
|
+
'nldd-modal-dialog': NlddElement<NLDDModalDialog, NlddModalDialogProps>;
|
|
3177
|
+
'nldd-multi-line-text-field': NlddElement<NLDDMultiLineTextField, NlddMultiLineTextFieldProps>;
|
|
3178
|
+
/** A four-column layout with a primary sidebar, secondary sidebar, main content area, and inspector. The sidebars show navigation or lists, the main area shows primary content, and the inspector shows additional details or properties of the selection. Panes are shown automatically when content is slotted into them. When they stop fitting, panes drop in a fixed order: the inspector goes first, then the primary sidebar collapses into the secondary sidebar. If that still does not fit, the view stacks and shows one pane at a time: main when it has content, otherwise the secondary sidebar, otherwise the primary sidebar. Use <code>nldd-split-view-pane</code> as direct children for automatic back button handling. */
|
|
3179
|
+
'nldd-navigation-split-view': NlddElement<NLDDNavigationSplitView, NlddNavigationSplitViewProps>;
|
|
3180
|
+
/** A short message that arrives over the interface and leaves on its own: a save that worked, a request that failed. Not a banner, which stands in the page and stays there — this one floats, stacks, and goes away. It places itself. Write it wherever it belongs in your code and it moves to one shared area: top right from md, where it slides in from the right, and full width across the top below that, where it drops in from the top. Nothing about the position is settable, so notifications from anywhere in an application land in the same place and stack in the same order. A modal overlay is the one thing that moves it. An nldd-sheet, nldd-window or nldd-modal-dialog paints in the browser's top layer, above the whole page and out of reach of any z-index, and while one is open everything outside it is inert. So the area goes in: into the topmost overlay that is open, and back down as they close. A notification already on screen travels with it, and one raised from inside a sheet is readable and reachable where it is raised. More than one is a deck, not a list: the front one is readable and the older ones peek out below it, so a burst of messages takes the room of roughly one. The newest is in front. Behind it a notification is a bare surface, cut to the height of the one in front; dismiss the front and it slides up into the place that came free while its message fades in, because it was standing there all along. Under the front notification sits a strip as wide as the deck and as tall as the deck is when it fans out. Pointing at it fans the deck out to fill it, which is the only hint that there is more here than the message you can read; clicking it, or moving focus into the area, lays the whole deck out as a list. Clicking or tabbing away puts it back. The notification itself is not a button: a click on the message you are reading does nothing. Only the front of the deck counts down, and only while the deck is closed: open means someone is reading. The rest wait, so nothing disappears from under the one you are reading. `critical` never leaves on its own: a failure is worth reading, and the count-down would take it away while you were. That also keeps this within WCAG 2.2.1, which allows a time limit when what disappears is not essential. The clock pauses while a pointer moves over the notification and while focus is inside it, and resumes where it left off rather than starting over. A pointer that merely happens to rest where the notification appears does not count: it never moved, so nobody is reading. role follows the variant: `critical` becomes role="alert", the rest role="status". Focus never moves on its own. Escape dismisses the notification that focus is in. `NLDDNotification.show({ text, supportingText, variant, icon, duration, actions })` raises a notification without an element to manage: it creates one, shows it, and removes it once it is dismissed. An action is `{ text, onClick }`, at most 2, and a click on one also takes the notification away. It returns a handle with `dismiss()` and `update(options)`. An update changes the message, puts the notification in front and starts its clock over, so a status that changes often is one notification that keeps up instead of a new one sliding in each time; one that has already left arrives again. Use `show()` from a framework. Because a notification places itself, an element that a framework rendered is no longer where that framework left it: a keyed list (`v-for` with a `:key`) then fails on its next render, and a removed row leaves its notification on screen. */
|
|
3181
|
+
'nldd-notification': NlddElement<NLDDNotification, NlddNotificationProps>;
|
|
3182
|
+
/** A numeric input field with decrement and increment buttons. */
|
|
3183
|
+
'nldd-number-field': NlddElement<NLDDNumberField, NlddNumberFieldProps>;
|
|
3184
|
+
/** A section with two equal columns side by side. The columns stand side by side in a section of 50rem (800px) or wider and stack below that, at the same width for every section with two columns. Padding and gap adjust via container queries. */
|
|
3185
|
+
'nldd-one-half-one-half-section': NlddElement<NLDDOneHalfOneHalfSection, NlddOneHalfOneHalfSectionProps>;
|
|
3186
|
+
/** A section with a 1/3 sidebar on the left and 2/3 main content on the right. The columns stand side by side in a section of 50rem (800px) or wider and stack below that, at the same width for every section with two columns. Padding and gap adjust via container queries. */
|
|
3187
|
+
'nldd-one-third-two-thirds-section': NlddElement<NLDDOneThirdTwoThirdsSection, NlddOneThirdTwoThirdsSectionProps>;
|
|
3188
|
+
/** A field for a code someone receives once and types over: by text message, by email, from an authenticator app or on a letter. It shows a box per character, but it is one native input underneath, so pasting the whole code, the code a phone offers from a text message (`autocomplete="one-time-code"`), a screen reader and voice control all work as on any other field. The characters are monospace, so 0 and O, or 1, l and I, read apart. Typing fills the boxes from the left. The arrow keys, Home, End and a click move the caret from box to box. In a filled box it stands after the character: Backspace empties that box, without moving the rest up, so you type the right one straight in. A pasted code drops whatever is not part of one, so "123 456" or "123-456" becomes "123456", and a whole code replaces what was there. From a pasted sentence, such as a text message, the field takes the last word that is as long as the code, so "Your code is 123456" fills in "123456". Once every box is full the field fires `nldd-complete`, and again after a correction that leaves it full. Submitting then is up to your app: send the form, or wait for a button, but never both, or a correction submits twice. Not for a PIN or a password, which must not be readable on screen: use `nldd-password-field`. Put the field in an `nldd-form-field`, whose label says where the code comes from ("Code uit de sms"). */
|
|
3189
|
+
'nldd-one-time-code-field': NlddElement<NLDDOneTimeCodeField, NlddOneTimeCodeFieldProps>;
|
|
3190
|
+
/** A page layout with optional sticky header and footer. Without sticky-header, the host is the scroll container and the header is in normal flow. With sticky-header, the header becomes absolute and .page__scroll takes over scrolling, padded by the measured header height. That padding freezes once you scroll, so a collapsing bar cannot drag the content up under the cursor. In root-scroll mode (--context-scroll-mode: root, derived upstream by nldd-shell) the page stops owning a scroller: the document scrolls and the sticky header/footer stick against the document, offset by --context-inset-top/bottom. The mode is read on connect/resize and reflected to [data-scroll] so the CSS can branch. The page passes those insets on to its own content, with its sticky header and footer added: anything sticky inside (an nldd-sidebar-section, a sticky table head) reads --context-inset-top / --context-inset-bottom and clears every bar above and below it without being told a number. The heights are measured, because a top title bar shrinks as you scroll past its anchor. While the page owns the scroller, only its own bars count: the chrome above the page sits outside that scroller and does not push sticky content down. A page carries the landmarks of a document: its header is the banner, its content the main landmark, its footer the contentinfo. A document has one of each, so a page that sits beside another one cannot have them. Such a page renders a section and a plain div instead, which drops all three at once: a header inside sectioning content is no longer a banner. With `accessible-label` that section is a named region, so there is still one landmark to jump to; without a name it is no landmark at all, which beats an unnamed one. `landmarks` says which of the two a page is, and `auto` (the default) reads it off where the page sits: - in an overlay (nldd-sheet, nldd-modal-dialog, nldd-window, nldd-popover) a region, because the overlay is not the document; - in a pane of nldd-navigation-split-view, nldd-side-by-side-split-view or nldd-stacked-split-view a region, because those place pages beside each other; - anywhere else the page, including the `main` slot of an nldd-bar-split-view, which stacks bars around a single content area. So an app shell has no main until you say which pane holds the primary content, with `landmarks="page"` on that one page. Only the application knows which pane that is. Two pages that both render a main is invalid HTML, and the page says so in development. */
|
|
3191
|
+
'nldd-page': NlddElement<NLDDPage, NlddPageProps>;
|
|
3192
|
+
/** The footer band at the bottom of a page. Hosts three optional rows in a fixed order: breadcrumbs (top), consumer-defined main content (middle), and a legal-bar (bottom). Dividers are drawn automatically between non-empty rows. Establishes its own container query (`page-footer-container`) so the responsive padding and gap react to the footer's own width, not the viewport. The host has `id="page-footer"` so a skip-link can target it directly. Use the sub-components `nldd-page-footer-legal-bar` and `nldd-page-footer-legal-bar-item` for the bottom row. */
|
|
3193
|
+
'nldd-page-footer': NlddElement<NLDDPageFooter, NlddPageFooterProps>;
|
|
3194
|
+
/** Holds the legal links row at the bottom of a `nldd-page-footer`. Items in `start` render flush-left, items in `end` flush-right, separated by spacing only (no separators). On narrow containers the two groups wrap to their own rows with `start` above `end`. */
|
|
3195
|
+
'nldd-page-footer-legal-bar': NlddElement<NLDDPageFooterLegalBar, NlddPageFooterLegalBarProps>;
|
|
3196
|
+
/** A single entry in an `nldd-page-footer-legal-bar`. Renders as a link when `href` is set, as plain text otherwise. Uses the content color (not the link color) so the legal bar reads as a subdued utility row. */
|
|
3197
|
+
'nldd-page-footer-legal-bar-item': NlddElement<NLDDPageFooterLegalBarItem, NlddPageFooterLegalBarItemProps>;
|
|
3198
|
+
/** A pagination control for navigating between pages of content. */
|
|
3199
|
+
'nldd-pagination': NlddElement<NLDDPagination, NlddPaginationProps>;
|
|
3200
|
+
/** A password input field with visibility toggle and validation states. */
|
|
3201
|
+
'nldd-password-field': NlddElement<NLDDPasswordField, NlddPasswordFieldProps>;
|
|
3202
|
+
/** A non-modal floating panel anchored to a trigger element. Built on the native Popover API (popover="auto") with Floating UI for positioning. The browser handles opening, toggling and light dismiss; this component only handles positioning and focus. The recommended use is through popovertarget, so the browser owns the toggle. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment also positions the popover against itself, so the popover needs no `anchor`: <nldd-button popovertarget="info-popover">Info</nldd-button> <nldd-popover id="info-popover" accessible-label="Info"> <nldd-container> <p>Content of the popover.</p> </nldd-container> </nldd-popover> To open it from your own state instead, bind `open` together with the close event: the popover clears `open` itself on light dismiss, Escape or a click on its anchor. It needs that anchor to open against. For a custom focus target inside the popover, put `autofocus` on the child you want. Without it the popover host itself takes focus. On md and up the popover closes with Escape or a click outside it, and that click goes on to what it lands on, as with any native popover: the page has no backdrop and stays in use, so a click on another control does what it says in one go. It needs no close button of its own. Content that does, because a stray click must not close it (a form, a few steps, work you would lose), is more than a popover holds: use an nldd-sheet. nldd-just-in-time-education is the exception, a manual popover that stays until it is dismissed. On sm the popover is a bottom sheet with a dimmed backdrop, which closes with Escape or a tap outside it. That tap stops at the backdrop, as on every native sheet: the dimming says the page is out of play. Where that is not enough, give its content a title bar of its own, as in a sheet: an nldd-page with an nldd-top-title-bar and a `dismiss-text`. The popover catches the dismiss of that bar and closes. It draws no bar itself. */
|
|
3203
|
+
'nldd-popover': NlddElement<NLDDPopover, NlddPopoverProps>;
|
|
3204
|
+
/** Exports both NLDDProgressBar and NLDDProgressBarSegmentIndicator. A progress bar that supports a single value (loading-style) or multiple segments (multi-stage progress, or distribution like storage usage). The consumer provides raw values; the component computes percentages from `max`. Two variants: - `progress` (default): segments sum toward `max`; remaining space is empty track. ARIA reads "X% voltooid". - `distribution`: segments fill the bar; ARIA enumerates segments. If the sum of segment values exceeds `max`, segments are normalized proportionally to fit and a warning is logged. */
|
|
3205
|
+
'nldd-progress-bar': NlddElement<NLDDProgressBar, NlddProgressBarProps>;
|
|
3206
|
+
'nldd-progress-bar-segment-indicator': NlddElement<NLDDProgressBarSegmentIndicator, NlddProgressBarSegmentIndicatorProps>;
|
|
3207
|
+
/** Exports both NLDDProgressCircle and NLDDProgressCircleSegmentIndicator. A circular progress indicator that mirrors the API of nldd-progress-bar: single-value or multi-segment, progress or distribution variant, 24 colors, fade transitions between determinate/indeterminate, indeterminate indicator. Visual differences vs the bar: - SVG arcs instead of rectangular bars. - Label below the circle (not above). - No center text; the consumer can wrap the circle if needed. - One combined tooltip on the whole circle showing all segment info (no per-segment tooltips). - Indeterminate uses a rotating elastic arc (Material-style) instead of the bar's Knight Rider scanner. */
|
|
3208
|
+
'nldd-progress-circle': NlddElement<NLDDProgressCircle, NlddProgressCircleProps>;
|
|
3209
|
+
'nldd-progress-circle-segment-indicator': NlddElement<NLDDProgressCircleSegmentIndicator, NlddProgressCircleSegmentIndicatorProps>;
|
|
3210
|
+
/** WAI-ARIA: put the buttons of one group in a container with role="radiogroup" and a name of its own. A screen reader counts the options from that container, so a bare <fieldset> (which is a group, not a radiogroup) leaves them uncounted. nldd-radio-button-group does this for you. Radio buttons with the same name, in the same form and the same tree, form one group the way native radios do: checking one unchecks the others, the arrow keys move between them, Tab stops at the group once, and a screen reader hears each one's place in it. The element itself is the radio, because an input per shadow root would leave every button a group of one. The shape is all this component draws. A radio with a label beside it is nldd-radio-button-field. <fieldset role="radiogroup" aria-labelledby="options-label"> <legend id="options-label">Kies een optie</legend> <nldd-radio-button name="options" value="1" accessible-label="Optie 1"></nldd-radio-button> <nldd-radio-button name="options" value="2" accessible-label="Optie 2"></nldd-radio-button> </fieldset> */
|
|
3211
|
+
'nldd-radio-button': NlddElement<NLDDRadioButton, NlddRadioButtonProps>;
|
|
3212
|
+
/** A radio button with an inline label. Use inside nldd-radio-button-group, which sets the name and labels the group. Fields that stand on their own group by name, the way native radios do: checking one unchecks the others, the arrow keys move between them and Tab stops at the group once. Put them in a container with role="radiogroup", or a screen reader has nothing to count them from. The field is the radio: it carries the role, the state, the label it is announced by and the focus, and the nldd-radio-button inside only draws the shape. A radio of its own in there would be a second control inside a control, and a group of one to count. Form-associated: the checked field submits its `value` under `name`. Unchecking siblings is the group's job, so exactly one value per group reaches the form. */
|
|
3213
|
+
'nldd-radio-button-field': NlddElement<NLDDRadioButtonField, NlddRadioButtonFieldProps>;
|
|
3214
|
+
/** Groups nldd-radio-button-field elements, handles keyboard navigation, and forwards name and disabled state to all child fields. Use inside nldd-form-field which provides the group label. */
|
|
3215
|
+
'nldd-radio-button-group': NlddElement<NLDDRadioButtonGroup, NlddRadioButtonGroupProps>;
|
|
3216
|
+
/** A container for rich text content that automatically applies responsive typography. Uses no shadow DOM so styles apply to all nested elements. Import nldd-rich-text.css globally in your application. The rich text lays out its direct children in a grid: the vertical rhythm between headings, paragraphs and lists, and the width zones below, apply to those children only. A single wrapper `div` without `class`, `style`, `role` or `data-rich-text-width`, as a markdown renderer or a component root produces it, is passed through with `display: contents`, so its children count as direct. Any other wrapper becomes a single grid item, and the paragraphs inside it lose their spacing. The headings keep one size on every width, the one they have on a phone. A heading in running text sits in a column as wide as a line of reading, on any screen, so its relation to the text beside it does not change and it has no reason to grow. Growing, an h2 on a wide screen was more than twice the size of the text, and an article broke into blocks at every heading. Page and section titles do grow: use nldd-title for those. Children are placed in three zones. A child belongs to the text unless it is listed, so it reads at the `main` size and is never wider than a line: text (headings, paragraphs, lists, blockquote, div/section) and every component that is not named below, such as nldd-box, nldd-card, nldd-banner, nldd-list and a button, and code (pre, nldd-code-viewer), which scrolls inside its block when a line is longer. Media, tables and a step bar (img, figure, video, iframe, table, nldd-table, nldd-image, nldd-step-bar) get the `wide` accent. What needs the room gets the `full` span: hr, nldd-collection and nldd-container. A child takes the room it needs inside its zone (`justify-self: start`), so the room is available without being forced. Overridable per child with `data-rich-text-width="main" | "wide" | "full"`. In the left-aligned layout, wide and full read as a bleed to the right; with `centered` they are symmetrical. An element with `data-mention` reads as a mention: the name in the mention color with the @ icon in front of it. Use `<a href="…" data-mention>` when the person has a page to go to: it becomes the tinted token nldd-text-editor shows, and the tint is what says you can follow it. Use `<span data-mention>` when not: it keeps the color and the icon, without the tint. Write the name without the `@`: the rich text draws it. A mention in the editor's value, `[@Name](user:id)`, comes out of a markdown renderer as a link to `user:id`, which goes nowhere, so turn it into one of these yourself. */
|
|
3217
|
+
'nldd-rich-text': NlddElement<NLDDRichText, NlddRichTextProps>;
|
|
3218
|
+
/** A search input with a leading search icon, an optional dismiss button, and an optional search button. */
|
|
3219
|
+
'nldd-search-field': NlddElement<NLDDSearchField, NlddSearchFieldProps>;
|
|
3220
|
+
/** A horizontal group of mutually exclusive (radio) or multi-select (checkbox) options. Exports both NLDDSegmentedControl and NLDDSegmentedControlItem. */
|
|
3221
|
+
'nldd-segmented-control': NlddElement<NLDDSegmentedControl, NlddSegmentedControlProps>;
|
|
3222
|
+
'nldd-segmented-control-item': NlddElement<NLDDSegmentedControlItem, NlddSegmentedControlItemProps>;
|
|
3223
|
+
/** 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 pane height (see `nldd-split-view-pane`). 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. */
|
|
3224
|
+
'nldd-sheet': NlddElement<NLDDSheet, NlddSheetProps>;
|
|
3225
|
+
/** 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-parent-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. */
|
|
3226
|
+
'nldd-shell': NlddElement<NLDDShell, NlddShellProps>;
|
|
3227
|
+
/** A horizontal split view with multiple equal panes side by side. 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 width are automatically hidden, from right to left: `pane-1` is the last to go. Put the main content in `pane-1` and an inspector or detail in the last pane. */
|
|
3228
|
+
'nldd-side-by-side-split-view': NlddElement<NLDDSideBySideSplitView, NlddSideBySideSplitViewProps>;
|
|
3229
|
+
/** A page section with a left sidebar alongside the main content. - **Wide (section >= 1008px):** two columns. The sidebar is a sticky, scrollable box (max-width 320px) beside the main content. It takes the surface of the section around it and is edged by a divider line, so it reads as a block without drawing the eye away from the main. Its sticky top/bottom insets default to 16px; override with `sticky-top` / `sticky-bottom` so it clears other sticky page elements (e.g. a sticky header). - **Narrow (section < 1008px):** the sidebar collapses behind a sheet (a left panel on md+ viewports, a bottom sheet on mobile), and the host reflects a `collapsed` attribute. The consumer owns the trigger: place any chrome (a button, a chosen-filters bar, …) wherever you want, show it only while collapsed (e.g. `nldd-sidebar-section[collapsed] .my-trigger { … }` or by reading `collapsed` / listening to `collapse-change`), and call `show()` / `toggle()` to open the sheet. Bind `aria-expanded` via the `open`/`close` events. The sheet gets a sticky title bar by default — the `sidebar-label` as title plus a "Sluit" button — overridable via the `sheet-top-title-bar` slot. A link in the sheet to a place on the page beside it, such as a row of a table of contents, closes the sheet first and then scrolls to that place and moves focus there, with a temporary tab stop as a skip link does. Left to the browser, the page would scroll under a sheet that is still open, and on closing the browser gives focus back to the trigger without scrolling to it, so focus ends up out of sight. A link that opens elsewhere (another page, a new tab, a modifier key, a `download`) or points into the sidebar itself is left alone, as is a click the consumer has already handled with `preventDefault()`. The address gets the fragment through `replaceState`, without a new history entry and without a `hashchange` event or a `:target` match: a router that listens for those does not see the jump. The sidebar content lives in `slot="sidebar"`. Its slot outlet moves between the box (expanded) and the sheet (collapsed) so there is a single, never-duplicated copy — the light DOM (and its state) is preserved across the switch. The box <-> sheet switch follows the section's OWN width (a ResizeObserver on the host), not the viewport — so a sidebar-section in a narrow column or a split-view pane collapses to the sheet just like one in a narrow viewport, and the sidebar never stacks above or crowds the main. Set `no-collapse` to opt out: a narrow section then stacks the sidebar (full-width) above the main instead of using a sheet. Inherits block `padding` and `height` from PageSectionMixin. */
|
|
3230
|
+
'nldd-sidebar-section': NlddElement<NLDDSidebarSection, NlddSidebarSectionProps>;
|
|
3231
|
+
/** A basic section with responsive padding and gap based on container size. Contains optional header and footer slots. The padding and spacing between slots adjust automatically via container queries. Use one section per content block and repeat the section rather than building columns inside one: the section sets the reading width and the padding itself. For two columns there are nldd-one-half-one-half-section, nldd-two-thirds-one-third-section, nldd-one-third-two-thirds-section and nldd-sidebar-section. Give a section its surface with `background` instead of a background color of your own; that is how the components inside know which surface they are on. */
|
|
3232
|
+
'nldd-simple-section': NlddElement<NLDDSimpleSection, NlddSimpleSectionProps>;
|
|
3233
|
+
/** Accessibility pattern that lets keyboard users skip past content. Wraps content in a default slot. Not only for the header of a page. Any block with many stops that someone on a keyboard often wants to get past can have one: a set of filters, a long toolbar, a table of contents. Keep it to blocks like that; a skip link before every section is one more stop on the way, not one less. Without href it moves focus to the first rendered element after the skip link, so the next Tab lands on the first link or button in it. An element that is not rendered, such as a `<noscript>`, a `<script>` or anything hidden, is passed over. Make sure a rendered element follows the component, otherwise the skip link has no effect. With an `href` that points at an id on the same page, the link scrolls to that element and moves focus to it too. The target needs no `tabindex` of its own. An href to another page is left to the browser. The component cannot know what it skips, so its default text only says "Sla over". Name it with `text`: "Sla navigatie over", "Sla filters over". */
|
|
3234
|
+
'nldd-skip-link': NlddElement<NLDDSkipLink, NlddSkipLinkProps>;
|
|
3235
|
+
/** A value picked along a track, by dragging its thumb, pressing the track or with the arrow keys. With `range` it picks a range instead, with a thumb for each end. The names follow Apple's: the track, the thumb, and the minimum track, the part filled up to the thumb, or between the thumbs of a range. A slider is for a value that may be roughly right, such as a filter ("a price between …"). For a value that has to be exact, an `nldd-number-field` is easier: a thumb is hard to put on one number, the more so with a hand that is not steady. It is built on native range inputs, so the keyboard (arrows, Page Up and Page Down, Home and End), touch, the form and a screen reader work as they do for any slider. A range is two of them over each other, each with its own name for a screen reader ("Prijs, minimum"), and a press on the track moves the nearer thumb there. A thumb dragged or moved with an arrow key (also with Shift) past the other one becomes that end of the range, and focus goes with it, so its name still says which end it is. Home, End, Page Up and Page Down stop at the other thumb, so they never turn the range around. Where the thumbs lie on one value, the first move picks one, to the left the start one. The value shows in a tooltip above the thumb while the pointer is over the slider or its icons, while a thumb has keyboard focus and while it or an icon is pressed; with `tooltip-timing="never"` it does not, for a slider whose value already shows elsewhere. Where the two tooltips of a range would overlap, they show as one ("200 – 1.200"). `formatValue` turns a number into the text of the tooltip and of what a screen reader hears, such as `(value) => \`€ ${value}\``; without it the number is written in the language of the page (`lang`), and in Dutch where none is set. `histogram` draws counts as bars above the track, such as how many results there are at each price, so the range can be chosen with the spread in view. Give one count per bucket: n counts split min to max into n equal buckets of (max - min) / n, the first count for the first bucket. Only the proportions matter (the highest count is the full height), a 0 is an empty bucket, and 20 to 40 buckets read best, whatever the `step`. A bar whose middle lies within the chosen value or range is colored. The bars are decoration for a screen reader: say what they show in the text around it. A larger step than the arrow keys take is a tenth of the range, and at least one `step`: what Page Up and Page Down do, what Shift with an arrow key does (a Mac keyboard has no Page Up), and what a click on `start-icon` or `end-icon` does. The icons stay out of the tab order and out of the accessibility tree, because the keyboard already has those keys. In a range they only explain the ends, since a click could not say which thumb to move. In a form a slider submits its value under `name`; a range submits both ends under it, the start first. */
|
|
3236
|
+
'nldd-slider': NlddElement<NLDDSlider, NlddSliderProps>;
|
|
3237
|
+
/** Add explicit space between elements. Components here have no margins of their own — all whitespace is set by a spacer. A spacer is fixed space between two different things. For padding around an area, or the gaps between the children of one area, use `nldd-container` with `padding` and `gap` instead. A `gap` sets one distance for every child, which is right while the children are of one kind: a row of buttons, a set of cards, the fields of a form. Put different kinds under each other and the right distance differs per seam, so set each one where it happens with a spacer. A heading over a list is the common case: the space under the heading should be smaller than the space above it, which keeps the heading with what it labels. A gap cannot tell the two apart, and evening them out reads as a strip of loose lines. Use a single `size` attribute for whitespace that's the same at every viewport. Combine with `sm-size`, `md-size` and/or `lg-size` to override the size at specific breakpoints (mobile-first cascade is intentionally avoided — each breakpoint that needs a different value declares it explicitly): - `size` applies at every breakpoint that has no per-viewport override. - `sm-size` overrides at sm (max-width: 640px). - `md-size` overrides at md (641px–1007px). - `lg-size` overrides at lg (min-width: 1008px). Use `flexible` (in any of the four attributes) to fill the remaining space in a flex container. */
|
|
3238
|
+
'nldd-spacer': NlddElement<NLDDSpacer, NlddSpacerProps>;
|
|
3239
|
+
/** A cell component that provides fixed horizontal spacing within list items. */
|
|
3240
|
+
'nldd-spacer-cell': NlddElement<NLDDSpacerCell, NlddSpacerCellProps>;
|
|
3241
|
+
/** A split button combines a primary action with a chevron that opens its alternatives. The main button performs the default action; the chevron opens a menu or popover of variants of that same action. The overlay is required. Put an `nldd-menu` or `nldd-popover` in the `popup` slot, as on nldd-button and nldd-icon-button: ```html <nldd-split-button text="Bewaar"> <nldd-menu slot="popup"> <nldd-menu-item text="Opslaan als…"></nldd-menu-item> </nldd-menu> </nldd-split-button> ``` The split button has no other slots, so an overlay without `slot="popup"` works too. When both hold one, the one in `popup` wins. For an overlay that lives elsewhere, point `popovertarget` at it instead. The chevron is the overlay's invoker: it anchors it, opens and closes it, and takes `aria-expanded` and `aria-haspopup` from it, exactly as an nldd-icon-button with a slotted overlay does. Its accessible name says which action it belongs to ("Meer opties voor Bewaar"). The API is narrower than nldd-button on purpose: a split button is an action with variants, so it has no supporting text, no end icon and no link target. Its label always stays on one line, without an ellipsis: keep it short. */
|
|
3242
|
+
'nldd-split-button': NlddElement<NLDDSplitButton, NlddSplitButtonProps>;
|
|
3243
|
+
/** 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). */
|
|
3244
|
+
'nldd-split-view-divider': NlddElement<NLDDSplitViewDivider, NlddSplitViewDividerProps>;
|
|
3245
|
+
/** 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-parent-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-parent-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. */
|
|
3246
|
+
'nldd-split-view-pane': NlddElement<NLDDSplitViewPane, NlddSplitViewPaneProps>;
|
|
3247
|
+
/** 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. */
|
|
3248
|
+
'nldd-stacked-split-view': NlddElement<NLDDStackedSplitView, NlddStackedSplitViewProps>;
|
|
3249
|
+
/** 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). */
|
|
3250
|
+
'nldd-status-bar': NlddElement<NLDDStatusBar, NlddStatusBarProps>;
|
|
3251
|
+
/** 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 1 is current. 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. 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. */
|
|
3252
|
+
'nldd-step-bar': NlddElement<NLDDStepBar, NlddStepBarProps>;
|
|
3253
|
+
/** 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. */
|
|
3254
|
+
'nldd-step-bar-item': NlddElement<NLDDStepBarItem, NlddStepBarItemProps>;
|
|
3255
|
+
/** A cell that draws steps under each other in an `nldd-list`: a vertical track with a dot per row, colored by how far along each step is. It is the vertical counterpart of `nldd-step-bar`, with the same `status` values. Other systems call this a stepper, a progress list or a timeline. The row's block padding belongs to the cell itself (via `--context-cell-padding-block`), so the line spans the cell's own box edge to edge and consecutive steps connect without gaps. By default the dot is small and empty, for steps without a number, such as the moments in the history of a case. With `size="md"` it grows big enough for a number or an icon. The size belongs to the lane rather than to the content: every dot in a list is the same size, or the track would jump. */
|
|
3256
|
+
'nldd-step-cell': NlddElement<NLDDStepCell, NlddStepCellProps>;
|
|
3257
|
+
/** A numeric control with increment and decrement buttons. */
|
|
3258
|
+
'nldd-stepper': NlddElement<NLDDStepper, NlddStepperProps>;
|
|
3259
|
+
/** A row of swatches to choose one from: a color, or an image of a pattern or a material. The row wraps onto the next line when the swatches do not fit. It is a radio group: Tab enters and leaves it in one stop, the arrow keys choose, and the value goes with a form under `name`. The chosen swatch shows a check mark. Put it in an `nldd-form-field`, which names the group. Every swatch needs a name, since a color or an image says nothing to a screen reader. A swatch with a category `color` takes the name of that color from the translations ("Rood"); one with a `custom-color` or an `image` has to say it in `text`. The name shows as a tooltip. Exports both NLDDSwatchPicker and NLDDSwatchPickerItem. */
|
|
3260
|
+
'nldd-swatch-picker': NlddElement<NLDDSwatchPicker, NlddSwatchPickerProps>;
|
|
3261
|
+
'nldd-swatch-picker-item': NlddElement<NLDDSwatchPickerItem, NlddSwatchPickerItemProps>;
|
|
3262
|
+
/** A toggle control for on/off settings. Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label. Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility. */
|
|
3263
|
+
'nldd-switch': NlddElement<NLDDSwitch, NlddSwitchProps>;
|
|
3264
|
+
/** A switch toggle with an inline label for use in forms. */
|
|
3265
|
+
'nldd-switch-field': NlddElement<NLDDSwitchField, NlddSwitchFieldProps>;
|
|
3266
|
+
/** 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. */
|
|
3267
|
+
'nldd-tab-bar': NlddElement<NLDDTabBar, NlddTabBarProps>;
|
|
3268
|
+
'nldd-tab-bar-item': NlddElement<NLDDTabBarItem, NlddTabBarItemProps>;
|
|
3269
|
+
/** 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. 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). */
|
|
3270
|
+
'nldd-table': NlddElement<NLDDTable, NlddTableProps>;
|
|
3271
|
+
'nldd-table-row': NlddElement<NLDDTableRow, NlddTableRowProps>;
|
|
3272
|
+
/** 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`. */
|
|
3273
|
+
'nldd-tag': NlddElement<NLDDTag, NlddTagProps>;
|
|
3274
|
+
/** One run of body text at a size from the type scale. It is what you reach for where an app would otherwise write a bare `<p>` and inherit whatever the page happens to set: a line under a title, a sentence in a panel, a caption. Every combination it offers exists as a token, so it cannot invent typography — it only names what the scale already has. The three axes are the same three the tokens carry: size, weight and line height. Not for headings, which is `nldd-title`, and not for a block of prose with its own rhythm, spacing and media widths, which is `nldd-rich-text`. This is one run of text and nothing around it. For large letters that are not a heading, such as a number or a statement on a landing page, take a display size: `display-6` to `display-1` are the sizes of `nldd-title`, with its weight, typeface and line height, and they follow the breakpoint as a title does. `weight` and `line-height` belong to the body sizes and do nothing at a display size. For a statement larger than `display-1`, give each breakpoint a size of its own with `sm-custom-size`, `md-custom-size` and `lg-custom-size`. Color follows the context channel a list item, menu or table sets on its content, so text inside a row travels with that row as it is hovered or selected. Standalone that channel is unset and the semantic color answers. A line stops at `--semantics-text-max-width`, 40em, so it holds the same number of characters at every size and a wide column does not turn one sentence into a ruler. Override that variable, or `max-width` on the element, where a line is meant to run the full width: a label in a table cell, a value beside its own heading. */
|
|
3275
|
+
'nldd-text': NlddElement<NLDDText, NlddTextProps>;
|
|
3276
|
+
/** A cell component for displaying text content in lists with configurable alignment, size and color. This is the most fundamental list cell component. `vertical-alignment="center"` (default) stretches the cell to fill the full row height and centers its content within that space. Use `min-height` to set a minimum centered region. For strict top alignment without a minimum height, use `vertical-alignment="top"`. Each text region (overline, main text, supporting text) accepts either a string attribute or slotted DOM content. The slot is the source of truth: if the consumer provides slotted content, it replaces the attribute-based render for that region. Use slots when you need inline elements like `<nldd-tag>`, `<a>` or `<nldd-icon>` mixed with text. Note that `query` highlighting and `**bold**` parsing only apply to the attribute path — slotted content is rendered as-is. */
|
|
3277
|
+
'nldd-text-cell': NlddElement<NLDDTextCell, NlddTextCellProps>;
|
|
3278
|
+
/** A hybrid markdown editor built on CodeMirror 6 (via NLDDCodeMirrorElement): the document stays plain markdown text, but formatting is shown inline (bold is bold, headings are larger, links are colored) while the syntax markers stay visible, only dimmed — the iA Writer / Kirby approach. No WYSIWYG tree, so the data stays portable. Default `appearance="simple"` is bare (no frame, no focus ring) for use inside a composition (e.g. a message field) that owns its chrome and focus; the caret is a prominent accent. `appearance="input-field"` adds a framed surface + focus Headless: there is no built-in toolbar. A consumer drives formatting via the command methods (toggleBold/toggleItalic/toggleInlineCode/toggleStrikethrough/ toggleHeading/toggleBulletList/toggleTaskList/toggleQuote/toggleLink/runCommand to toggle, and setHeading/setList for picker-style "set" semantics), reads the active formats with getState(), listens to the nldd-text-editor-state event to render toggle states, and forwards padding clicks with focusFromPoint(). Cmd/Ctrl+B/I/E/K are bound out of the box. With `syntax="hidden"` a task item (`- [ ]`, `- [x]`) reads as a box in the place of its bullet, and like every other mark shows its markdown on the line the caret is on. A click on the box checks or unchecks it without moving the caret. Cmd/Ctrl+Enter does the same for the tasks on the lines of the selection, in both syntax modes. The box is no tab stop: Tab leaves the editor. A screen reader reads "Taak, open" or "Taak, afgerond" in its place. A code block that names its language after the backticks is highlighted in it, as in nldd-code-viewer; the grammar loads with the first such block. Its opening line is the head of the block, with a "Kopieer" button at the right edge that copies the code without its fences and says "Gekopieerd" or "Kopiëren mislukt", as the code viewer does. In an editable editor the button is no tab stop (select and copy is the keyboard route); read-only or disabled it can be focused. Without a secure context there is no button. Commands keep focus on the editor. An inline toggle wraps the selected text (whitespace at its edges stays outside the markers), unwraps a run the caret is in, and with the caret at the very end of a run steps out of it. Bold that a typed space has broken (`**woord **`) keeps its styling while the caret is inside; the space moves outside the markers when the caret leaves. insertAtCursor(text) puts text at the caret and replaceRange(from, to, text) writes at the same clean offsets getSelection() reads. An @-mention typeahead (mentionSource) collapses to an atomic token, further typeahead lists on their own trigger (typeaheads) write what you tell them to, and a W3C-style annotation overlay (annotations) marks ranges with a light tint and a count badge without touching the underlying text. To show the value, render the markdown into nldd-rich-text, which uses the same type, bold and code as the editor. A mention is stored as `[@Name](user:id)`: turn it into `<a href="…" data-mention>Name</a>` (or a `span` when there is no page for the person), without the `@`. A link reads as the same token there; a span keeps the color and the icon without the tint. */
|
|
3279
|
+
'nldd-text-editor': NlddElement<NLDDTextEditor, NlddTextEditorProps>;
|
|
3280
|
+
'nldd-text-field': NlddElement<NLDDTextField, NlddTextFieldProps>;
|
|
3281
|
+
/** A text field for a time. The value is always 24-hour `HH:mm`, which is how Dutch shows it too, so unlike nldd-date-field there is nothing to convert. Typing is not masked: input is accepted generously and normalized only when the field is left. Error messages belong to nldd-form-field, not here. This field reflects only `invalid` / `valid`, like nldd-text-field. `value` holds a valid time or nothing, so an empty field and one with text that is no time both read as ''. `validity` tells them apart: `badInput` for text that is no time, `rangeUnderflow` / `rangeOverflow` for a time outside `min` / `max`. A form does not submit then, and nldd-form marks the field invalid. Without a submit, as in a filter that applies at once, the moment is yours: `field.invalid = !field.validity.valid` on `change`, with a message of your own in the nldd-form-field. What you do in the picker is a preview until you leave it. The field shows the time right away but commits it on close. "Klaar" and Enter keep the choice, and so does a click outside once you have picked something. Cancel and Escape put the old time back. On an empty field the wheels open at `min`, or otherwise at the current time rounded to `step`, which does not fill in the field yet. */
|
|
3282
|
+
'nldd-time-field': NlddElement<NLDDTimeField, NlddTimeFieldProps>;
|
|
3283
|
+
/** Two columns, hours and minutes, that slide like a wheel past the selection in the middle. The component works on its own (inline on a page, in a filter panel) and also sits in the popover of nldd-time-field. Values are always 24-hour `HH:mm`. Scrolling is choosing: whatever comes to rest in the middle is the value. The keyboard drives that same selection, because that is what a wheel is: hour and minute are each a spinbutton. The columns underneath are aria-hidden, so the same values are not read out twice. */
|
|
3284
|
+
'nldd-time-picker': NlddElement<NLDDTimePicker, NlddTimePickerProps>;
|
|
3285
|
+
/** A title bar with an optional overline, title, and supporting text on the left, and a slot at the end of the title line on the right. The title comes from `text`, with `heading-level` for its place in the heading structure. `size` is how it looks, `heading-level` what it is, and the two are set apart. `overline` and `supporting-text` go above and below it. Each of the three has a slot in the same place for content that is more than text, and a filled slot takes the place of the attribute. A word too long for the line is hyphenated by syllable, with the `lang` of the page: only a word of at least 12 letters, with at least 5 on each side, so a short word moves to the next line whole. A soft hyphen (`­`) adds a place to break of your own, also where the browser has no dictionary for the language: `overheids­informatie`, or `\u00AD` in a string set from script, where an entity is not read. Most browsers then break that word only there; Safari may still pick a syllable of its own. */
|
|
3286
|
+
'nldd-title': NlddElement<NLDDTitle, NlddTitleProps>;
|
|
3287
|
+
/** A cell component for displaying a title with optional overline and supporting text in lists. `vertical-alignment="center"` (default) stretches the cell to fill the full row height and centers its content within that space. Use `min-height` to set a minimum centered region. For strict top alignment without a minimum height, use `vertical-alignment="top"`. Each text region (overline, title, supporting text) accepts either a string attribute or slotted DOM content. The slot is the source of truth: if the consumer provides slotted content, it replaces the attribute-based render for that region. Use slots when you need inline elements like `<nldd-tag>`, `<nldd-icon>` or other components mixed with text. Note that `query` highlighting and `**bold**` parsing only apply to the attribute path — slotted content is rendered as-is. */
|
|
3288
|
+
'nldd-title-cell': NlddElement<NLDDTitleCell, NlddTitleCellProps>;
|
|
3289
|
+
/** A selectable button that toggles between selected and unselected. Available as a button (aria-pressed), a checkbox, or a radio. The label stays the same in both states: the state is in aria-pressed (or checked) and in the fill, so a screen reader says "Favoriet, pressed". A label that changes with the state ("Volgen", then "Ontvolgen") says what the button does next; that is an nldd-button whose text you change, not a toggle. In radio mode the button itself is the radio: it carries the role, the state and its place in the group. A native radio in a shadow root of its own would be a group of one, counted as "1 of 1" and stopped at by Tab. */
|
|
3290
|
+
'nldd-toggle-button': NlddElement<NLDDToggleButton, NlddToggleButtonProps>;
|
|
3291
|
+
/** Groups nldd-toggle-button elements and manages selection, keyboard navigation, and forwarding of type, name, appearance, size, and disabled state to all buttons. For type="radio" (single-select), arrow keys navigate between buttons and automatically select the focused one. For type="checkbox" (multi-select), multiple buttons can be selected simultaneously. */
|
|
3292
|
+
'nldd-toggle-button-group': NlddElement<NLDDToggleButtonGroup, NlddToggleButtonGroupProps>;
|
|
3293
|
+
/** A self-contained piece of data the user is handling: a person in an address field, an active filter value. Alone among the three it can be operated, so it is optionally dismissable or interactive through a contextual menu. For something you only read, reach for `nldd-tag` (a trait someone assigned) or `nldd-badge` (a state or a count the system keeps). */
|
|
3294
|
+
'nldd-token': NlddElement<NLDDToken, NlddTokenProps>;
|
|
3295
|
+
/** A multi-select input that looks like a normal input field: chosen values show as dismissible tokens in a wrapping row, followed by an inline text input that stretches to fill the remaining space and wraps to a new line (growing the field) when it no longer fits. Options are supplied as a slotted nldd-menu, exactly like nldd-combo-box; the menu filters as you type, with a chevron picker button, arrow-key roving across the tokens and ElementInternals form participation. Options can arrive after the keystroke, from a server you query per keystroke. Slot them into the menu when they come in: if the user is still in the field and the keystroke found nothing to show, the menu opens then. After Escape, or once the user left the field, it stays shut. After typing, a screen reader hears how many options are shown ("2 resultaten"), or the empty text when none are, also for options that a server sends in later. Only the number it lands on: it waits until the options settle. */
|
|
3296
|
+
'nldd-token-field': NlddElement<NLDDTokenField, NlddTokenFieldProps>;
|
|
3297
|
+
/** A row of controls that belong to a whole screen or pane, with an overflow menu for what does not fit. The toolbar measures itself: as the row runs out of room, items move into that menu, the lowest `priority` first, and items that share a priority move together. So the order in the HTML says where an item sits, and `priority` says how long it stays. An item holding a control with its own overflow, such as nldd-tab-bar, first narrows down when its turn comes, so that control moves what does not fit into its own menu, and only then goes into the toolbar's menu. Every item carries its own alternative for the menu, an nldd-menu-item in its `overflow` slot. Without one the action is simply gone once the item overflows, which on a wide screen you never see; the item warns about it in development. The toolbar's own `overflow` slot holds the actions that live in the menu at every width. */
|
|
3298
|
+
'nldd-toolbar': NlddElement<NLDDToolbar, NlddToolbarProps>;
|
|
3299
|
+
/** One control in an nldd-toolbar, with its alternative for the overflow menu. */
|
|
3300
|
+
'nldd-toolbar-item': NlddElement<NLDDToolbarItem, NlddToolbarItemProps>;
|
|
3301
|
+
/** The title of an nldd-toolbar, with optional media before it and an action after it. */
|
|
3302
|
+
'nldd-toolbar-title': NlddElement<NLDDToolbarTitle, NlddToolbarTitleProps>;
|
|
3303
|
+
/** A wrapper that shows a tooltip on hover or focus of its child element. It uses `display: contents`, so it does not affect the child's layout. */
|
|
3304
|
+
'nldd-tooltip': NlddElement<NLDDTooltip, NlddTooltipProps>;
|
|
3305
|
+
/** The top bar of a page: a logo bar with the Rijkslogo and an optional wordmark, and below it the main bar with the website title, a back button, the global navigation and the utility navigation. On narrow widths the global navigation moves into a menu sheet behind the menu button. The top bar of a website, and of nothing else: put it in the `header` slot of an `nldd-page`. Do not combine it with a split view. A split view is the layout of an application, whose panes carry a bar of their own, usually an `nldd-toolbar`, and a site header above it gives a second layer of navigation and a second thing that scrolls. Does a page need a sidebar under this bar, use an `nldd-sidebar-section` inside that `nldd-page`. */
|
|
3306
|
+
'nldd-top-navigation-bar': NlddElement<NLDDTopNavigationBar, NlddTopNavigationBarProps>;
|
|
3307
|
+
/** A toolbar for page and container headings with optional navigation and action buttons. The component has two states: - Default: the back button shows the previous page title as a text button - Compact (class `is-compact`): the back button is an icon button, a divider and the toolbar title are visible When `collapse-anchor` is set, the `is-compact` class is automatically applied as soon as the top of the anchor element reaches this bar's own top edge (the sticky header line). Measuring the bar rather than the page keeps it correct in both nested and root scroll modes; it also re-points at the live scroll target when the page switches mode. Without `collapse-anchor` the bar takes a static state: compact when `text` is set (so the title shows in the title-group), non-compact otherwise (so the `back-text` button stays visible). An anchored bar hides its own title from assistive technology. The anchor is the heading the title swaps in for, so both carry the same words: once you scroll past the heading, a screen reader would otherwise find the same title twice. Sighted readers see one at a time, and this makes that true for everyone. Anchor at the heading, then, and not at some other element that happens to sit at the right height: the bar hands its title over to it. An `nldd-title` anchor without a `heading-level` gets the bar's own, so the title it takes over is a heading of the same level. An anchor that is no heading at all, and holds none, would leave the page without one: the bar then keeps its own title for assistive technology and warns in development. The title stays on one line and is cut off with an ellipsis when it does not fit, which on a narrow screen or at 400% zoom is soon. The bar is therefore not the place for the full title: put that in an `nldd-title` at the top of the content, which wraps and always fits, and point `collapse-anchor` at it. A bar without an anchor holds the only copy of its title, so keep that one to a word or two. */
|
|
3308
|
+
'nldd-top-title-bar': NlddElement<NLDDTopTitleBar, NlddTopTitleBarProps>;
|
|
3309
|
+
/** A section with 2/3 main content on the left and a 1/3 sidebar on the right. The columns stand side by side in a section of 50rem (800px) or wider and stack below that, at the same width for every section with two columns. Padding and gap adjust via container queries. */
|
|
3310
|
+
'nldd-two-thirds-one-third-section': NlddElement<NLDDTwoThirdsOneThirdSection, NlddTwoThirdsOneThirdSectionProps>;
|
|
3311
|
+
/** One requirement of a value, with the rule that checks it. Give every item an id that names its field as well as its rule: an id has to be unique in the whole document, and `length` is the first thing three fields in one form will all reach for. Write the text as the requirement ("Minimaal 8 tekens"), not as the command ("Gebruik minimaal 8 tekens"): before a verdict it stands there as what the field wants, after one as what the value does not meet. */
|
|
3312
|
+
'nldd-validation-item': NlddElement<NLDDValidationItem, NlddValidationItemProps>;
|
|
3313
|
+
/** Nederlandse Digitale Dienst Validation List (Lit + TypeScript) Everything a value has to satisfy, in one list. A requirement you can state up front is an item with a rule, and it checks itself while you type. One only a server can decide is an item without a rule, and the app names it in `unmet` on the control. The list has two modes and `judging` is the switch. Before a verdict it shows its hints, which are the requirements of the field. After one it shows everything the value does not satisfy, and the hints are gone. It throws that switch itself the moment its control turns `invalid`, so when the field is judged is the consumer's decision, and the right moment is on submit. Hints are off by default. A phone number does not need its format spelled out before anyone has typed, while the rules for a password do. There are no checkmarks. The control already shows a validation icon of its own, and repeating that per line says the same thing three times. A field can be `invalid` while no item fails: the browser rejects `naam@` as an e-mail address, and a `match="@"` item passes it. The list then says what it can itself, so a field never turns red without a reason under it. It reads the control's `validity` and names what is wrong (an invalid e-mail or web address, an empty required field, too short, too long, too low, too high), and says "Dit klopt nog niet." when it cannot tell. An item of your own that fails always wins over this line. The line is an nldd-validation-item the list adds to its own children while it is needed, so nldd-form-field reads it to the control as it does every other item: a line in the list's shadow root would be out of its reach. */
|
|
3314
|
+
'nldd-validation-list': NlddElement<NLDDValidationList, NlddValidationListProps>;
|
|
3315
|
+
/** Text a screen reader reads and the screen does not show. It stays in the accessibility tree and in the reading order, and takes no room on the page. For a name that is visually redundant: the header of a column of checkboxes, where the checkboxes say enough to anyone who can see them, or the "(opent in een nieuw venster)" after a link whose icon already says it. Not for repairing structure that is missing. Hidden text that describes how something is laid out ("subpagina van Aanvragen") stands in for semantics the markup should carry, and only a screen reader gets the stand-in. Not for a status either: a status that matters to a screen reader matters to anyone, so show it, as text with `role="status"` or as an `nldd-notification`. And not for the name of a component that takes `accessible-label`: give it that. Nothing in it should take focus. A control inside would be reached with Tab and be nowhere on the screen. */
|
|
3316
|
+
'nldd-visually-hidden': NlddElement<NLDDVisuallyHidden, NlddVisuallyHiddenProps>;
|
|
3317
|
+
/** A floating window based on the native <dialog> element, positionable through CSS values. Always modal. No header of its own: consumers use nldd-page with a sticky header inside for a title bar. The text of the nldd-top-title-bar in that header is also the window's accessible name. Open and close it with `open`, bound to your state together with the close event: the window clears `open` itself when the user closes it. show() and hide() do the same for code without a binding. Keep the window in the DOM rather than mounting it when it opens, or the animations are skipped. */
|
|
3318
|
+
'nldd-window': NlddElement<NLDDWindow, NlddWindowProps>;
|
|
3319
|
+
}
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
export {};
|