@nldd/design-system 0.20.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +361 -10
- 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-GinEMPm9.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-OywRKaWj.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-vmZLo80s.js +662 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-CXDzSBoL.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-A2DFWrP9.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-DQ52qq5L.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-BLXecYsZ.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-BtxzRedh.js +719 -0
- package/dist/cdn/chunks/menu-bar-BU3Hjk1b.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-C7LQ0NI_.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-CGbeEv_-.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-BzZWhXhc.js +57 -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-CqN7ViYV.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-CFPBdETU.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-DH19p8So.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-CA8K1XjU.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--5K0YTcr.js +607 -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-BpyxOGmU.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-C24LqAzK.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-C_kLPVKD.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-CxV6ELE9.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/content/blockquote/blockquote.d.ts +1 -0
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +1 -0
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +1 -0
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +1 -0
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +1 -0
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +1 -0
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +1 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +1 -0
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +1 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +1 -0
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +1 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +1 -0
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +1 -0
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +1 -0
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +9 -4
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +20 -7
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +1 -0
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +23 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +68 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +4 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +17 -2
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +1 -0
- package/dist/components/inputs/time-field/time-field.template.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/layout/page-sections/hero/hero.d.ts +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +4 -2
- package/dist/components/layout/popover/popover.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 +729 -727
- 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/dist/utilities/return-focus.d.ts +14 -0
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +26 -8
- package/dist/utilities/return-focus.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +53 -1
- package/lint/format.js +6 -5
- package/lint/frontends.js +224 -16
- package/lint/linter.js +5 -3
- package/lint/main.js +36 -9
- package/lint/project.js +73 -4
- package/lint/rule-data.js +17 -2
- package/lint/tree.js +3 -0
- 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,474 @@
|
|
|
1
|
+
import "./icon-BORlalt0.js";
|
|
2
|
+
import { a as e, i as t, n, t as r } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n as i, o as a, r as o, t as s } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { t as u } from "./shadow-resets-6SToDsPu.js";
|
|
7
|
+
import { t as d } from "./with-translations-XX14GKFh.js";
|
|
8
|
+
import { n as f, r as p, t as m } from "./breakpoints-Cwor8TRP.js";
|
|
9
|
+
import { t as h } from "./slot-content-BLuPqVXw.js";
|
|
10
|
+
import { t as g } from "./step-bar.i18n-DocExlD7.js";
|
|
11
|
+
// src/components/status-and-feedback/step-bar/step-bar.styles.ts
|
|
12
|
+
var _ = e(f.smMax), v = 7.5, y = [
|
|
13
|
+
6,
|
|
14
|
+
7,
|
|
15
|
+
8,
|
|
16
|
+
9,
|
|
17
|
+
10,
|
|
18
|
+
11,
|
|
19
|
+
12
|
|
20
|
+
], b = (n, r) => t`
|
|
21
|
+
${e(n)} .step-bar__items {
|
|
22
|
+
/* Stays in the DOM for assistive tech. Standard visually-hidden recipe. */
|
|
23
|
+
@container (max-width: ${r}) {
|
|
24
|
+
position: absolute;
|
|
25
|
+
width: 1px;
|
|
26
|
+
height: 1px;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
clip-path: inset(50%);
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
${e(n)} .step-bar__compact-text,
|
|
34
|
+
${e(n)} .step-bar__compact-bar {
|
|
35
|
+
@container (max-width: ${r}) {
|
|
36
|
+
display: flex;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`, x = t`
|
|
40
|
+
:host {
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host {
|
|
45
|
+
--_step-bar-compact-text-gap: var(--primitives-space-8);
|
|
46
|
+
--_step-bar-compact-text-color: var(--semantics-content-color);
|
|
47
|
+
--_step-bar-compact-count-color: var(--semantics-content-secondary-color);
|
|
48
|
+
--_step-bar-compact-bar-gap: var(--primitives-space-4);
|
|
49
|
+
--_step-bar-compact-bar-segment-gap: var(--primitives-space-2);
|
|
50
|
+
--_step-bar-compact-bar-corner-radius: var(--primitives-corner-radius-full);
|
|
51
|
+
--_step-bar-track-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
|
|
52
|
+
--_step-bar-compact-bar-height: var(--primitives-space-6);
|
|
53
|
+
--_step-bar-compact-bar-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-150));
|
|
54
|
+
--_step-bar-compact-bar-border-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
|
|
55
|
+
--_step-bar-compact-bar-progress-border-color: var(--semantics-steps-progress-highlight-border-color);
|
|
56
|
+
--_step-bar-compact-bar-border-width: var(--primitives-border-width-thin);
|
|
57
|
+
--_step-bar-progress-color: var(--semantics-steps-progress-color);
|
|
58
|
+
--_step-bar-item-gap: var(--primitives-space-4);
|
|
59
|
+
--_step-bar-marker-size: var(--primitives-space-24);
|
|
60
|
+
--_step-bar-track-thickness: var(--primitives-space-2);
|
|
61
|
+
--_step-bar-marker-z-index: 1;
|
|
62
|
+
--_step-bar-marker-corner-radius: var(--primitives-corner-radius-full);
|
|
63
|
+
--_step-bar-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
64
|
+
--_step-bar-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
65
|
+
--_step-bar-marker-content-color: var(--semantics-content-secondary-color);
|
|
66
|
+
--_step-bar-past-fill-color: var(--semantics-steps-is-past-background-color);
|
|
67
|
+
--_step-bar-progress-content-color: var(--semantics-steps-is-past-content-color);
|
|
68
|
+
--_step-bar-current-fill-color: var(--semantics-steps-is-current-background-color);
|
|
69
|
+
--_step-bar-current-content-color: var(--semantics-content-accent-color);
|
|
70
|
+
--_step-bar-icon-size: var(--primitives-space-16);
|
|
71
|
+
--_step-bar-title-color: var(--semantics-content-secondary-color);
|
|
72
|
+
--_step-bar-current-title-color: var(--semantics-content-color);
|
|
73
|
+
--_step-bar-control-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
74
|
+
--_step-bar-control-bleed-block: var(--primitives-space-4);
|
|
75
|
+
--_step-bar-control-bleed-inline: var(--primitives-space-8);
|
|
76
|
+
--_step-bar-control-fill-z-index: -1;
|
|
77
|
+
--_step-bar-control-ring-z-index: 1;
|
|
78
|
+
--_step-bar-control-hover-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-150));
|
|
79
|
+
|
|
80
|
+
${u}
|
|
81
|
+
isolation: isolate;
|
|
82
|
+
display: block;
|
|
83
|
+
container-type: inline-size;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([hidden]) {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.step-bar__items {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: start;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.step-bar__compact-text {
|
|
96
|
+
display: none;
|
|
97
|
+
margin: 0;
|
|
98
|
+
gap: var(--_step-bar-compact-text-gap);
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
align-items: baseline;
|
|
101
|
+
color: var(--_step-bar-compact-text-color);
|
|
102
|
+
font: var(--primitives-font-body-md-regular-flat);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.step-bar__compact-title {
|
|
106
|
+
text-wrap: pretty;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.step-bar__compact-count {
|
|
110
|
+
color: var(--_step-bar-compact-count-color);
|
|
111
|
+
font-variant-numeric: tabular-nums;
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.step-bar__compact-bar {
|
|
116
|
+
display: none;
|
|
117
|
+
margin-top: var(--_step-bar-compact-bar-gap);
|
|
118
|
+
gap: var(--_step-bar-compact-bar-segment-gap);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.step-bar__compact-bar-segment {
|
|
122
|
+
flex: 1;
|
|
123
|
+
border-radius: var(--_step-bar-compact-bar-corner-radius);
|
|
124
|
+
box-shadow: inset 0 0 0 var(--_step-bar-compact-bar-border-width) var(--_step-bar-compact-bar-border-color);
|
|
125
|
+
background-color: var(--_step-bar-compact-bar-background-color);
|
|
126
|
+
height: var(--_step-bar-compact-bar-height);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.step-bar__compact-bar-segment[data-filled] {
|
|
130
|
+
--_step-bar-compact-bar-border-color: var(--_step-bar-compact-bar-progress-border-color);
|
|
131
|
+
background-color: var(--_step-bar-progress-color);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
/* ## Compact */
|
|
136
|
+
|
|
137
|
+
${b(":host", _)}
|
|
138
|
+
${e(y.map((t) => b(`:host([data-steps="${t}"])`, e(`${t * v}rem`)).cssText).join("\n"))}
|
|
139
|
+
`, S = t`
|
|
140
|
+
:host {
|
|
141
|
+
box-sizing: border-box;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:host {
|
|
145
|
+
${u}
|
|
146
|
+
display: block;
|
|
147
|
+
flex: 1;
|
|
148
|
+
min-width: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:host([hidden]) {
|
|
152
|
+
display: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.step-bar__item {
|
|
156
|
+
position: relative;
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
align-items: center;
|
|
160
|
+
gap: var(--_step-bar-item-gap);
|
|
161
|
+
text-align: center;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.step-bar__item::before,
|
|
165
|
+
.step-bar__item::after {
|
|
166
|
+
position: absolute;
|
|
167
|
+
top: calc(var(--_step-bar-marker-size) / 2 - var(--_step-bar-track-thickness) / 2);
|
|
168
|
+
height: var(--_step-bar-track-thickness);
|
|
169
|
+
content: "";
|
|
170
|
+
background-color: var(--_step-bar-track-color);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.step-bar__item::before {
|
|
174
|
+
left: 0;
|
|
175
|
+
right: 50%;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.step-bar__item::after {
|
|
179
|
+
left: 50%;
|
|
180
|
+
right: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:host(:first-of-type) .step-bar__item::before {
|
|
184
|
+
content: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host(:last-of-type) .step-bar__item::after {
|
|
188
|
+
content: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.step-bar__item.is-past::before {
|
|
192
|
+
background-color: var(--_step-bar-progress-color);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.step-bar__item.is-past::after {
|
|
196
|
+
background-color: var(--_step-bar-progress-color);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.step-bar__item.is-current::before {
|
|
200
|
+
background-color: var(--_step-bar-progress-color);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.step-bar__item-marker {
|
|
204
|
+
box-sizing: border-box;
|
|
205
|
+
position: relative;
|
|
206
|
+
z-index: var(--_step-bar-marker-z-index);
|
|
207
|
+
display: flex;
|
|
208
|
+
width: var(--_step-bar-marker-size);
|
|
209
|
+
height: var(--_step-bar-marker-size);
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
border-radius: var(--_step-bar-marker-corner-radius);
|
|
213
|
+
/* Ring in the background color: masks the track running underneath, so
|
|
214
|
+
the marker gets breathing room without shortening the track. */
|
|
215
|
+
box-shadow: 0 0 0 var(--_step-bar-ring-thickness) var(--_step-bar-ring-color);
|
|
216
|
+
background-color: var(--_step-bar-track-color);
|
|
217
|
+
color: var(--_step-bar-marker-content-color);
|
|
218
|
+
font: var(--primitives-font-body-sm-medium-flat);
|
|
219
|
+
|
|
220
|
+
@media (forced-colors: active) {
|
|
221
|
+
border: var(--primitives-border-width-regular) solid CanvasText;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.step-bar__item.is-past .step-bar__item-marker {
|
|
226
|
+
background-color: var(--_step-bar-past-fill-color);
|
|
227
|
+
color: var(--_step-bar-progress-content-color);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.step-bar__item.is-current .step-bar__item-marker {
|
|
231
|
+
border: var(--_step-bar-track-thickness) solid var(--_step-bar-progress-color);
|
|
232
|
+
background-color: var(--_step-bar-current-fill-color);
|
|
233
|
+
color: var(--_step-bar-current-content-color);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.step-bar__item-icon {
|
|
237
|
+
width: var(--_step-bar-icon-size);
|
|
238
|
+
height: var(--_step-bar-icon-size);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.step-bar__item-title {
|
|
242
|
+
color: var(--_step-bar-title-color);
|
|
243
|
+
font: var(--primitives-font-body-sm-regular-flat);
|
|
244
|
+
overflow-wrap: anywhere;
|
|
245
|
+
hyphens: auto;
|
|
246
|
+
text-wrap: balance;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.step-bar__item.is-current .step-bar__item-title {
|
|
250
|
+
color: var(--_step-bar-current-title-color);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* Standard visually-hidden recipe. */
|
|
254
|
+
.step-bar__item-status {
|
|
255
|
+
position: absolute;
|
|
256
|
+
width: 1px;
|
|
257
|
+
height: 1px;
|
|
258
|
+
overflow: hidden;
|
|
259
|
+
clip-path: inset(50%);
|
|
260
|
+
white-space: nowrap;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.step-bar__item-control {
|
|
264
|
+
position: relative;
|
|
265
|
+
display: flex;
|
|
266
|
+
width: fit-content;
|
|
267
|
+
max-width: 100%;
|
|
268
|
+
flex-direction: column;
|
|
269
|
+
align-items: center;
|
|
270
|
+
gap: var(--_step-bar-item-gap);
|
|
271
|
+
padding: 0;
|
|
272
|
+
border: none;
|
|
273
|
+
border-radius: var(--_step-bar-control-corner-radius);
|
|
274
|
+
background: none;
|
|
275
|
+
color: inherit;
|
|
276
|
+
cursor: var(--semantics-controls-link-cursor);
|
|
277
|
+
font: inherit;
|
|
278
|
+
text-decoration: none;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* Two layers on the same box, bleeding past the control rather than padding
|
|
282
|
+
it: padding would move the marker down while the track sits at a fixed
|
|
283
|
+
offset, and the two would no longer line up. ::before carries the fill and
|
|
284
|
+
stays under the track; ::after carries the focus ring and goes over it. */
|
|
285
|
+
.step-bar__item-control::before,
|
|
286
|
+
.step-bar__item-control::after {
|
|
287
|
+
position: absolute;
|
|
288
|
+
inset: calc(var(--_step-bar-control-bleed-block) * -1) calc(var(--_step-bar-control-bleed-inline) * -1);
|
|
289
|
+
border-radius: var(--_step-bar-control-corner-radius);
|
|
290
|
+
content: "";
|
|
291
|
+
pointer-events: none;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.step-bar__item-control::before {
|
|
295
|
+
z-index: var(--_step-bar-control-fill-z-index);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.step-bar__item-control::after {
|
|
299
|
+
z-index: var(--_step-bar-control-ring-z-index);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.step-bar__item-control:focus-visible {
|
|
303
|
+
/* The ring lives on ::after, so the control's own must go — two rings on
|
|
304
|
+
one control is what the browser default would add here. */
|
|
305
|
+
outline: none;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.step-bar__item-control:focus-visible::after {
|
|
309
|
+
outline: var(--semantics-focus-ring-outline);
|
|
310
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
311
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* Hover only on hover-capable devices: keeps a touch-scroll from lighting up
|
|
315
|
+
the step under the finger. */
|
|
316
|
+
@media (hover: hover) {
|
|
317
|
+
.step-bar__item-control:hover {
|
|
318
|
+
/* The marker's ring masks the track in the surrounding color, so it
|
|
319
|
+
has to follow the hover fill or it paints a halo on top of it. */
|
|
320
|
+
--_step-bar-ring-color: var(--_step-bar-control-hover-background-color);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.step-bar__item-control:hover::before {
|
|
324
|
+
background-color: var(--_step-bar-control-hover-background-color);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
`;
|
|
328
|
+
// src/components/status-and-feedback/step-bar/step-bar.template.ts
|
|
329
|
+
function C(e) {
|
|
330
|
+
let t = e.accessibleLabel || e._t("components.step-bar.accessible-label"), n = e.resolvedCurrent, r = e.total, i = e.currentItem?.text ?? "", s = e._t("components.step-bar.compact-text", {
|
|
331
|
+
current: n,
|
|
332
|
+
total: r
|
|
333
|
+
});
|
|
334
|
+
return a`
|
|
335
|
+
<nav class="step-bar"
|
|
336
|
+
aria-label=${t || o}
|
|
337
|
+
>
|
|
338
|
+
<div class="step-bar__items"
|
|
339
|
+
role="list"
|
|
340
|
+
>
|
|
341
|
+
<slot @slotchange=${e._onSlotChange}></slot>
|
|
342
|
+
</div>
|
|
343
|
+
${r > 0 ? a`
|
|
344
|
+
<p class="step-bar__compact-text"
|
|
345
|
+
aria-hidden="true"
|
|
346
|
+
>
|
|
347
|
+
${i ? a`<span class="step-bar__compact-title">${i}</span>` : o}
|
|
348
|
+
<span class="step-bar__compact-count">${s}</span>
|
|
349
|
+
</p>
|
|
350
|
+
<div class="step-bar__compact-bar"
|
|
351
|
+
aria-hidden="true"
|
|
352
|
+
>
|
|
353
|
+
${Array.from({ length: r }, (e, t) => a`
|
|
354
|
+
<span class="step-bar__compact-bar-segment"
|
|
355
|
+
?data-filled=${t + 1 <= n}
|
|
356
|
+
></span>
|
|
357
|
+
`)}
|
|
358
|
+
</div>
|
|
359
|
+
` : o}
|
|
360
|
+
</nav>
|
|
361
|
+
`;
|
|
362
|
+
}
|
|
363
|
+
function w(e) {
|
|
364
|
+
let t = e.resolvedStatus, n = e.icon ? a`<nldd-icon class="step-bar__item-icon" icon=${e.icon}></nldd-icon>` : t === "past" ? a`<nldd-icon class="step-bar__item-icon" icon="check-mark"></nldd-icon>` : a`<span class="step-bar__item-number">${e._index}</span>`, r = a`
|
|
365
|
+
<span class="step-bar__item-marker"
|
|
366
|
+
aria-hidden="true"
|
|
367
|
+
>${n}</span>
|
|
368
|
+
<span class="step-bar__item-title">
|
|
369
|
+
${e._textSlot.has ? o : e.text}<slot @slotchange=${e._textSlot.onChange}></slot>
|
|
370
|
+
<span class="step-bar__item-status">, ${e._statusText}</span>
|
|
371
|
+
</span>
|
|
372
|
+
`;
|
|
373
|
+
return a`
|
|
374
|
+
<div class="step-bar__item is-${t}">
|
|
375
|
+
${e.href ? a`
|
|
376
|
+
<a class="step-bar__item-control"
|
|
377
|
+
href=${e.href}
|
|
378
|
+
tabindex=${e._compact ? "-1" : o}
|
|
379
|
+
>${r}</a>
|
|
380
|
+
` : e.button ? a`
|
|
381
|
+
<button class="step-bar__item-control"
|
|
382
|
+
type="button"
|
|
383
|
+
tabindex=${e._compact ? "-1" : o}
|
|
384
|
+
>${r}</button>
|
|
385
|
+
` : r}
|
|
386
|
+
</div>
|
|
387
|
+
`;
|
|
388
|
+
}
|
|
389
|
+
// src/components/status-and-feedback/step-bar/step-bar.ts
|
|
390
|
+
var T, E, D = class extends i {
|
|
391
|
+
constructor(...e) {
|
|
392
|
+
super(...e), this._textSlot = new h(this), this.text = "", this.icon = "", this.href = "", this.button = !1, this._derivedStatus = "future", this._index = 1, this._statusText = "", this._compact = !1;
|
|
393
|
+
}
|
|
394
|
+
get resolvedStatus() {
|
|
395
|
+
return this.status && this.status !== "current" ? this.status : this._derivedStatus;
|
|
396
|
+
}
|
|
397
|
+
connectedCallback() {
|
|
398
|
+
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "listitem");
|
|
399
|
+
}
|
|
400
|
+
updated(e) {
|
|
401
|
+
(e.has("status") || e.has("_derivedStatus")) && (this.resolvedStatus === "current" ? this.setAttribute("aria-current", "step") : this.removeAttribute("aria-current"));
|
|
402
|
+
}
|
|
403
|
+
render() {
|
|
404
|
+
return w(this);
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
T = D, T.styles = S, s([n({
|
|
408
|
+
type: String,
|
|
409
|
+
reflect: !0
|
|
410
|
+
})], D.prototype, "status", void 0), s([n({
|
|
411
|
+
reflect: !0,
|
|
412
|
+
converter: l("")
|
|
413
|
+
})], D.prototype, "text", void 0), s([n({ type: String })], D.prototype, "icon", void 0), s([n({
|
|
414
|
+
reflect: !0,
|
|
415
|
+
converter: l("")
|
|
416
|
+
})], D.prototype, "href", void 0), s([n({
|
|
417
|
+
type: Boolean,
|
|
418
|
+
reflect: !0
|
|
419
|
+
})], D.prototype, "button", void 0), s([r()], D.prototype, "_derivedStatus", void 0), s([r()], D.prototype, "_index", void 0), s([r()], D.prototype, "_statusText", void 0), s([r()], D.prototype, "_compact", void 0), customElements.get("nldd-step-bar-item") || customElements.define("nldd-step-bar-item", D);
|
|
420
|
+
var O = (E = class extends d(i, g) {
|
|
421
|
+
constructor(...e) {
|
|
422
|
+
super(...e), this.accessibleLabel = "", this._items = [], this._observer = new MutationObserver(() => this.requestUpdate()), this._compact = !1, this._width = 0, this._resizeObserver = new ResizeObserver(([e]) => {
|
|
423
|
+
this._width = e.contentRect.width;
|
|
424
|
+
}), this._onSlotChange = (e) => {
|
|
425
|
+
let t = e.target;
|
|
426
|
+
this._items = t.assignedElements({ flatten: !0 }).filter((e) => e.localName === "nldd-step-bar-item");
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
get total() {
|
|
430
|
+
return this._items.length;
|
|
431
|
+
}
|
|
432
|
+
get resolvedCurrent() {
|
|
433
|
+
let e = this._items.map((e) => e.status).lastIndexOf("current");
|
|
434
|
+
return e === -1 ? 1 : e + 1;
|
|
435
|
+
}
|
|
436
|
+
get currentItem() {
|
|
437
|
+
return this._items.find((e) => e.resolvedStatus === "current") ?? this._items[this.resolvedCurrent - 1];
|
|
438
|
+
}
|
|
439
|
+
get _thresholdCount() {
|
|
440
|
+
return this.total < y[0] ? null : Math.min(this.total, y[y.length - 1]);
|
|
441
|
+
}
|
|
442
|
+
connectedCallback() {
|
|
443
|
+
super.connectedCallback(), this._observer.observe(this, {
|
|
444
|
+
subtree: !0,
|
|
445
|
+
attributes: !0,
|
|
446
|
+
attributeFilter: ["status"]
|
|
447
|
+
}), this._resizeObserver.observe(this);
|
|
448
|
+
}
|
|
449
|
+
disconnectedCallback() {
|
|
450
|
+
super.disconnectedCallback(), this._observer.disconnect(), this._resizeObserver.disconnect();
|
|
451
|
+
}
|
|
452
|
+
willUpdate(e) {
|
|
453
|
+
super.willUpdate(e);
|
|
454
|
+
let t = this._thresholdCount;
|
|
455
|
+
t === null ? this.removeAttribute("data-steps") : this.setAttribute("data-steps", String(t));
|
|
456
|
+
let n = Math.max(m("smMax"), (t ?? 0) * v * p());
|
|
457
|
+
this._compact = this._width > 0 && this._width <= n, this._syncItems();
|
|
458
|
+
}
|
|
459
|
+
_syncItems() {
|
|
460
|
+
let e = this.resolvedCurrent;
|
|
461
|
+
this._items.forEach((t, n) => {
|
|
462
|
+
let r = n + 1;
|
|
463
|
+
t._index = r, t._derivedStatus = r < e ? "past" : r === e ? "current" : "future", t._statusText = this._t(`components.step-bar.status-${t.resolvedStatus}-label`), t._compact = this._compact;
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
render() {
|
|
467
|
+
return C(this);
|
|
468
|
+
}
|
|
469
|
+
}, E.styles = x, E);
|
|
470
|
+
s([n({
|
|
471
|
+
type: String,
|
|
472
|
+
attribute: "accessible-label"
|
|
473
|
+
})], O.prototype, "accessibleLabel", void 0), s([r()], O.prototype, "_items", void 0), s([r()], O.prototype, "_width", void 0), O = s([c("nldd-step-bar")], O);
|
|
474
|
+
export { O as NLDDStepBar, D as NLDDStepBarItem };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// src/components/status-and-feedback/step-bar/step-bar.i18n.ts
|
|
2
|
+
var e = {
|
|
3
|
+
"components.step-bar.accessible-label": "Voortgang",
|
|
4
|
+
"components.step-bar.status-past-label": "Afgerond",
|
|
5
|
+
"components.step-bar.status-current-label": "Huidige stap",
|
|
6
|
+
"components.step-bar.status-future-label": "Nog te doen",
|
|
7
|
+
"components.step-bar.compact-text": "Stap {current} van {total}"
|
|
8
|
+
};
|
|
9
|
+
export { e as t };
|