@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,287 @@
|
|
|
1
|
+
import "./icon-BORlalt0.js";
|
|
2
|
+
import { i as e, n as t } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n, o as r, r as i, t as a } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { r as c } from "./element-state-B-44fVqq.js";
|
|
7
|
+
import { t as l } from "./visibility-mixin-COAZ9pON.js";
|
|
8
|
+
// src/components/lists-and-tables/cells/step-cell/step-cell.styles.ts
|
|
9
|
+
var u = e`
|
|
10
|
+
:host {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
--_step-cell-lane-size: var(--primitives-space-16);
|
|
16
|
+
--_step-cell-marker-size: var(--primitives-space-16);
|
|
17
|
+
--_step-cell-marker-corner-radius: var(--primitives-corner-radius-full);
|
|
18
|
+
|
|
19
|
+
--_step-cell-line-width: var(--primitives-space-2);
|
|
20
|
+
--_step-cell-track-color: var(--semantics-steps-progress-color);
|
|
21
|
+
--_step-cell-future-fill-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
|
|
22
|
+
--_step-cell-marker-z-index: 1;
|
|
23
|
+
--_step-cell-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
24
|
+
--_step-cell-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
25
|
+
--_step-cell-past-fill-color: var(--semantics-steps-is-past-background-color);
|
|
26
|
+
--_step-cell-marker-content-color: var(--semantics-steps-is-past-content-color);
|
|
27
|
+
--_step-cell-future-content-color: var(--semantics-content-secondary-color);
|
|
28
|
+
--_step-cell-current-fill-color: var(--semantics-steps-is-current-background-color);
|
|
29
|
+
--_step-cell-current-content-color: var(--semantics-content-accent-color);
|
|
30
|
+
--_step-cell-icon-size: calc(var(--_step-cell-marker-size) * 2 / 3);
|
|
31
|
+
--_step-cell-marker-offset: 0px;
|
|
32
|
+
--_step-cell-marker-center: 50%;
|
|
33
|
+
|
|
34
|
+
isolation: isolate;
|
|
35
|
+
display: flex;
|
|
36
|
+
/* !important: shields the row padding from consumer universal resets, which beat normal :host declarations per CSS Scoping. */
|
|
37
|
+
padding-block: var(--context-cell-padding-block, 0px) !important;
|
|
38
|
+
width: var(--_step-cell-lane-size);
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
align-self: stretch;
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([hidden]) {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([size="md"]) {
|
|
49
|
+
--_step-cell-lane-size: var(--primitives-space-24);
|
|
50
|
+
--_step-cell-marker-size: var(--primitives-space-24);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([level="minor"]) {
|
|
54
|
+
--_step-cell-marker-size: var(--primitives-space-10);
|
|
55
|
+
--_step-cell-past-fill-color: var(--_step-cell-track-color);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([size="md"][level="minor"]) {
|
|
59
|
+
--_step-cell-marker-size: var(--primitives-space-12);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([vertical-alignment="top"]) {
|
|
63
|
+
--_step-cell-marker-center: calc(var(--_step-cell-lane-size) / 2);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([vertical-alignment="bottom"]) {
|
|
67
|
+
--_step-cell-marker-center: calc(100% - var(--_step-cell-lane-size) / 2);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([data-marker-offset]) {
|
|
71
|
+
--_step-cell-marker-center: var(--_step-cell-marker-offset);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Bleeds back over the host's block padding, so consecutive rows connect. */
|
|
75
|
+
.step-cell {
|
|
76
|
+
position: relative;
|
|
77
|
+
width: var(--_step-cell-lane-size);
|
|
78
|
+
height: calc(100% + 2 * var(--context-cell-padding-block, 0px));
|
|
79
|
+
min-height: var(--primitives-space-48);
|
|
80
|
+
margin-block: calc(var(--context-cell-padding-block, 0px) * -1);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* The row's content box: the dot is placed in it, and the lines reach out
|
|
84
|
+
over the padding from it. */
|
|
85
|
+
.step-cell__content {
|
|
86
|
+
position: absolute;
|
|
87
|
+
inset: var(--context-cell-padding-block, 0px) 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* The ring, but only left and right. A spread would put the same band above
|
|
91
|
+
and below the line, and there it would cut the track at every row
|
|
92
|
+
boundary: the lines that run on downward deliberately reach past the cell
|
|
93
|
+
to bridge the divider. Two offset copies do the sides and nothing else. A
|
|
94
|
+
copy shifted sideways has the same top and bottom as the line itself, so
|
|
95
|
+
it can only show along the edge it is pushed out from. */
|
|
96
|
+
.step-cell__full-line,
|
|
97
|
+
.step-cell__top-line,
|
|
98
|
+
.step-cell__bottom-line {
|
|
99
|
+
position: absolute;
|
|
100
|
+
left: 50%;
|
|
101
|
+
margin-left: calc(var(--_step-cell-line-width) / -2);
|
|
102
|
+
box-shadow:
|
|
103
|
+
calc(-1 * var(--_step-cell-ring-thickness)) 0 0 0 var(--_step-cell-ring-color),
|
|
104
|
+
var(--_step-cell-ring-thickness) 0 0 0 var(--_step-cell-ring-color);
|
|
105
|
+
background-color: var(--_step-cell-track-color);
|
|
106
|
+
width: var(--_step-cell-line-width);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* The lines that run on downward also bridge the row boundary: an
|
|
110
|
+
nldd-list-item reserves a divider's worth of space below itself, and
|
|
111
|
+
without this the track breaks at every row. The top line needs nothing —
|
|
112
|
+
the row above already covers the band. */
|
|
113
|
+
.step-cell__full-line {
|
|
114
|
+
top: calc(-1 * var(--context-cell-padding-block, 0px));
|
|
115
|
+
bottom: calc(-1 * var(--context-cell-padding-block, 0px) - var(--semantics-dividers-thickness));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.step-cell__top-line {
|
|
119
|
+
top: calc(-1 * var(--context-cell-padding-block, 0px));
|
|
120
|
+
height: calc(var(--context-cell-padding-block, 0px) + var(--_step-cell-marker-center));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.step-cell__bottom-line {
|
|
124
|
+
top: var(--_step-cell-marker-center);
|
|
125
|
+
bottom: calc(-1 * var(--context-cell-padding-block, 0px) - var(--semantics-dividers-thickness));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host([status="future"]:not([line])) .step-cell__top-line,
|
|
129
|
+
:host([status="future"]:not([line])) .step-cell__bottom-line {
|
|
130
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host([status="current"]:not([line])) .step-cell__bottom-line {
|
|
134
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host([status="current"][direction="up"]:not([line])) .step-cell__bottom-line {
|
|
138
|
+
background-color: var(--_step-cell-track-color);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:host([status="current"][direction="up"]:not([line])) .step-cell__top-line {
|
|
142
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:host([line="top"]) .step-cell__top-line,
|
|
146
|
+
:host([line="bottom"]) .step-cell__bottom-line,
|
|
147
|
+
:host([line="both"]) .step-cell__top-line,
|
|
148
|
+
:host([line="both"]) .step-cell__bottom-line {
|
|
149
|
+
background-color: var(--_step-cell-track-color);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host([level="none"][status="future"]) .step-cell__full-line,
|
|
153
|
+
:host([level="none"][status="current"]:not([direction="up"])) .step-cell__full-line,
|
|
154
|
+
:host([level="none"][line="none"]) .step-cell__full-line {
|
|
155
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:host([line="top"]) .step-cell__bottom-line,
|
|
159
|
+
:host([line="bottom"]) .step-cell__top-line,
|
|
160
|
+
:host([line="none"]) .step-cell__top-line,
|
|
161
|
+
:host([line="none"]) .step-cell__bottom-line {
|
|
162
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.step-cell__marker {
|
|
166
|
+
box-sizing: border-box;
|
|
167
|
+
position: absolute;
|
|
168
|
+
top: var(--_step-cell-marker-center);
|
|
169
|
+
left: 50%;
|
|
170
|
+
z-index: var(--_step-cell-marker-z-index);
|
|
171
|
+
display: flex;
|
|
172
|
+
width: var(--_step-cell-marker-size);
|
|
173
|
+
height: var(--_step-cell-marker-size);
|
|
174
|
+
margin-top: calc(var(--_step-cell-marker-size) / -2);
|
|
175
|
+
margin-left: calc(var(--_step-cell-marker-size) / -2);
|
|
176
|
+
align-items: center;
|
|
177
|
+
justify-content: center;
|
|
178
|
+
border: var(--_step-cell-line-width) solid var(--_step-cell-track-color);
|
|
179
|
+
border-radius: var(--_step-cell-marker-corner-radius);
|
|
180
|
+
box-shadow: 0 0 0 var(--_step-cell-ring-thickness) var(--_step-cell-ring-color);
|
|
181
|
+
color: var(--_step-cell-marker-content-color);
|
|
182
|
+
font: var(--primitives-font-body-sm-medium-flat);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:host([status="past"]) .step-cell__marker,
|
|
186
|
+
:host(:not([status])) .step-cell__marker {
|
|
187
|
+
border-color: var(--_step-cell-past-fill-color);
|
|
188
|
+
background-color: var(--_step-cell-past-fill-color);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
:host([status="current"]) .step-cell__marker {
|
|
192
|
+
background-color: var(--_step-cell-current-fill-color);
|
|
193
|
+
color: var(--_step-cell-current-content-color);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:host([status="future"]) .step-cell__marker {
|
|
197
|
+
border-color: var(--_step-cell-future-fill-color);
|
|
198
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
199
|
+
color: var(--_step-cell-future-content-color);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.step-cell__icon {
|
|
203
|
+
width: var(--_step-cell-icon-size);
|
|
204
|
+
height: var(--_step-cell-icon-size);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@media (forced-colors: active) {
|
|
208
|
+
.step-cell__marker,
|
|
209
|
+
.step-cell__top-line,
|
|
210
|
+
.step-cell__bottom-line,
|
|
211
|
+
.step-cell__full-line {
|
|
212
|
+
forced-color-adjust: none;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
`;
|
|
216
|
+
// src/components/lists-and-tables/cells/step-cell/step-cell.template.ts
|
|
217
|
+
function d(e) {
|
|
218
|
+
if (e.level === "none") return r`
|
|
219
|
+
<div class="step-cell">
|
|
220
|
+
<div class="step-cell__content">
|
|
221
|
+
${e.position === "only" ? i : r`<div class="step-cell__full-line"></div>`}
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
`;
|
|
225
|
+
let t = e.position === "between" || e.position === "last", n = e.position === "between" || e.position === "first", a = t || e.line === "top" || e.line === "both", o = n || e.line === "bottom" || e.line === "both", s = e.showsContent ? e.icon ? r`<nldd-icon class="step-cell__icon" icon=${e.icon}></nldd-icon>` : e.text ? r`<span class="step-cell__text">${e.text}</span>` : i : i, c = e.showsContent ? r`${s}<slot></slot>` : s;
|
|
226
|
+
return r`
|
|
227
|
+
<div class="step-cell">
|
|
228
|
+
<div class="step-cell__content">
|
|
229
|
+
${a ? r`<div class="step-cell__top-line"></div>` : i}
|
|
230
|
+
<div class="step-cell__marker">${c}</div>
|
|
231
|
+
${o ? r`<div class="step-cell__bottom-line"></div>` : i}
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
`;
|
|
235
|
+
}
|
|
236
|
+
// src/components/lists-and-tables/cells/step-cell/step-cell.ts
|
|
237
|
+
var f, p = /* @__PURE__ */ new Set([
|
|
238
|
+
"inherit",
|
|
239
|
+
"initial",
|
|
240
|
+
"unset",
|
|
241
|
+
"revert",
|
|
242
|
+
"revert-layer"
|
|
243
|
+
]), m = (f = class extends l(n, "cells-container") {
|
|
244
|
+
constructor(...e) {
|
|
245
|
+
super(...e), this.level = "major", this.status = "past", this.size = "sm", this.verticalAlignment = "center", this.markerOffset = "", this.direction = "down", this.position = "between", this.line = "auto", this.text = "", this.icon = "";
|
|
246
|
+
}
|
|
247
|
+
get showsContent() {
|
|
248
|
+
return this.level === "major" && this.size === "md";
|
|
249
|
+
}
|
|
250
|
+
updated(e) {
|
|
251
|
+
if (super.updated(e), c(this, "hidden-content", !!(this.text || this.icon) && !this.showsContent), e.has("markerOffset")) {
|
|
252
|
+
let e = (this.markerOffset ?? "").trim(), t = e !== "" && !p.has(e.toLowerCase()) && e.toLowerCase() !== "auto" && CSS.supports("margin-top", e);
|
|
253
|
+
t ? this.style.setProperty("--_step-cell-marker-offset", e) : this.style.removeProperty("--_step-cell-marker-offset"), this.toggleAttribute("data-marker-offset", t), c(this, "invalid-marker-offset", e !== "" && !t);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
render() {
|
|
257
|
+
return d(this);
|
|
258
|
+
}
|
|
259
|
+
}, f.styles = u, f);
|
|
260
|
+
a([t({
|
|
261
|
+
reflect: !0,
|
|
262
|
+
converter: s("major")
|
|
263
|
+
})], m.prototype, "level", void 0), a([t({
|
|
264
|
+
reflect: !0,
|
|
265
|
+
converter: s("past")
|
|
266
|
+
})], m.prototype, "status", void 0), a([t({
|
|
267
|
+
reflect: !0,
|
|
268
|
+
converter: s("sm")
|
|
269
|
+
})], m.prototype, "size", void 0), a([t({
|
|
270
|
+
reflect: !0,
|
|
271
|
+
attribute: "vertical-alignment",
|
|
272
|
+
converter: s("center")
|
|
273
|
+
})], m.prototype, "verticalAlignment", void 0), a([t({
|
|
274
|
+
reflect: !0,
|
|
275
|
+
attribute: "marker-offset",
|
|
276
|
+
converter: s("")
|
|
277
|
+
})], m.prototype, "markerOffset", void 0), a([t({
|
|
278
|
+
reflect: !0,
|
|
279
|
+
converter: s("down")
|
|
280
|
+
})], m.prototype, "direction", void 0), a([t({
|
|
281
|
+
reflect: !0,
|
|
282
|
+
converter: s("between")
|
|
283
|
+
})], m.prototype, "position", void 0), a([t({
|
|
284
|
+
reflect: !0,
|
|
285
|
+
converter: s("auto")
|
|
286
|
+
})], m.prototype, "line", void 0), a([t({ type: String })], m.prototype, "text", void 0), a([t({ type: String })], m.prototype, "icon", void 0), m = a([o("nldd-step-cell")], m);
|
|
287
|
+
export { m as NLDDStepCell };
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import "./icon-BORlalt0.js";
|
|
2
|
+
import { i as e, n as t } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n, o as r, r as i, t as a } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { t as c } from "./translations-wxBSz213.js";
|
|
7
|
+
import { t as l } from "./described-by-mixin-daRE7orX.js";
|
|
8
|
+
import { t as u } from "./defer-focus-F73ud2D9.js";
|
|
9
|
+
import "./icon-button-rKiIHs7A.js";
|
|
10
|
+
import { t as d } from "./form-associated-mixin--GIbl98p.js";
|
|
11
|
+
import { t as f } from "./stepper.i18n-COOAkaBl.js";
|
|
12
|
+
// src/components/inputs/stepper/stepper.styles.ts
|
|
13
|
+
var p = e`
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/* # Host */
|
|
20
|
+
|
|
21
|
+
:host {
|
|
22
|
+
--_stepper-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
23
|
+
--_stepper-divider-length: var(--semantics-buttons-md-divider-length);
|
|
24
|
+
--_stepper-highlight-border-color: var(--semantics-buttons-neutral-tinted-highlight-border-color);
|
|
25
|
+
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
isolation: isolate;
|
|
28
|
+
-webkit-user-select: none;
|
|
29
|
+
user-select: none;
|
|
30
|
+
-webkit-tap-highlight-color: transparent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([hidden]) {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host([size="xs"]) {
|
|
38
|
+
--_stepper-corner-radius: var(--semantics-controls-xs-corner-radius);
|
|
39
|
+
--_stepper-divider-length: var(--semantics-buttons-xs-divider-length);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([size="sm"]) {
|
|
43
|
+
--_stepper-corner-radius: var(--semantics-controls-sm-corner-radius);
|
|
44
|
+
--_stepper-divider-length: var(--semantics-buttons-sm-divider-length);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([disabled]) {
|
|
48
|
+
opacity: var(--primitives-opacity-disabled);
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([disabled]) nldd-icon-button {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/* # Block */
|
|
58
|
+
|
|
59
|
+
.stepper {
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
position: relative;
|
|
62
|
+
border-radius: var(--_stepper-corner-radius);
|
|
63
|
+
background-color: var(--semantics-buttons-neutral-tinted-background-color);
|
|
64
|
+
flex-direction: row;
|
|
65
|
+
align-items: center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.stepper::after {
|
|
69
|
+
content: '';
|
|
70
|
+
position: absolute;
|
|
71
|
+
inset: 0;
|
|
72
|
+
border-radius: inherit;
|
|
73
|
+
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--_stepper-highlight-border-color);
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.stepper:focus-visible {
|
|
78
|
+
outline: var(--semantics-focus-ring-outline);
|
|
79
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
80
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
/* # Elements */
|
|
85
|
+
|
|
86
|
+
.stepper__divider {
|
|
87
|
+
background-color: var(--semantics-buttons-neutral-tinted-divider-color);
|
|
88
|
+
width: var(--semantics-dividers-thickness);
|
|
89
|
+
height: var(--_stepper-divider-length);
|
|
90
|
+
flex-shrink: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
nldd-icon-button:focus-within {
|
|
94
|
+
position: relative;
|
|
95
|
+
z-index: 1;
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
98
|
+
// src/components/inputs/stepper/stepper.template.ts
|
|
99
|
+
function m(e) {
|
|
100
|
+
let t = e.value <= e.min, n = e.value >= e.max;
|
|
101
|
+
return r`
|
|
102
|
+
<div class="stepper"
|
|
103
|
+
role="spinbutton"
|
|
104
|
+
tabindex=${e.disabled ? i : "0"}
|
|
105
|
+
aria-valuenow=${e.value}
|
|
106
|
+
aria-valuemin=${isFinite(e.min) ? e.min : i}
|
|
107
|
+
aria-valuemax=${isFinite(e.max) ? e.max : i}
|
|
108
|
+
aria-label=${e.accessibleLabel || e._t("components.stepper.to-adjust-value-action")}
|
|
109
|
+
aria-disabled=${e.disabled ? "true" : i}
|
|
110
|
+
@keydown=${e._handleKeydown}
|
|
111
|
+
>
|
|
112
|
+
<nldd-icon-button
|
|
113
|
+
appearance="neutral-tinted"
|
|
114
|
+
size=${e.size}
|
|
115
|
+
icon="minus"
|
|
116
|
+
text=${e._t("components.stepper.decrement-action")}
|
|
117
|
+
tooltip-timing="never"
|
|
118
|
+
no-highlight-border
|
|
119
|
+
?disabled=${e.disabled || t}
|
|
120
|
+
aria-hidden="true"
|
|
121
|
+
tabindex="-1"
|
|
122
|
+
@click=${e._decrement}
|
|
123
|
+
></nldd-icon-button>
|
|
124
|
+
<div class="stepper__divider"
|
|
125
|
+
aria-hidden="true"
|
|
126
|
+
></div>
|
|
127
|
+
<nldd-icon-button
|
|
128
|
+
appearance="neutral-tinted"
|
|
129
|
+
size=${e.size}
|
|
130
|
+
icon="plus"
|
|
131
|
+
text=${e._t("components.stepper.increment-action")}
|
|
132
|
+
tooltip-timing="never"
|
|
133
|
+
no-highlight-border
|
|
134
|
+
?disabled=${e.disabled || n}
|
|
135
|
+
aria-hidden="true"
|
|
136
|
+
tabindex="-1"
|
|
137
|
+
@click=${e._increment}
|
|
138
|
+
></nldd-icon-button>
|
|
139
|
+
</div>
|
|
140
|
+
`;
|
|
141
|
+
}
|
|
142
|
+
// src/components/inputs/stepper/stepper.ts
|
|
143
|
+
var h = class extends l(d(n)) {
|
|
144
|
+
constructor(...e) {
|
|
145
|
+
super(...e), this._initialValue = 0, this.value = 0, this.min = 0, this.max = Infinity, this.step = 1, this.disabled = !1, this.size = "md", this.name = "", this.accessibleLabel = "", this.translations = {}, this.invalid = !1;
|
|
146
|
+
}
|
|
147
|
+
firstUpdated() {
|
|
148
|
+
this._initialValue = this.value;
|
|
149
|
+
}
|
|
150
|
+
formValue() {
|
|
151
|
+
return String(this.value);
|
|
152
|
+
}
|
|
153
|
+
formResetCallback() {
|
|
154
|
+
this.value = this._initialValue;
|
|
155
|
+
}
|
|
156
|
+
formStateRestoreCallback(e) {
|
|
157
|
+
if (typeof e != "string") return;
|
|
158
|
+
let t = parseFloat(e);
|
|
159
|
+
isNaN(t) || (this.value = Math.max(this.min, Math.min(this.max, t)));
|
|
160
|
+
}
|
|
161
|
+
_t(e) {
|
|
162
|
+
return c(this.translations, f, e);
|
|
163
|
+
}
|
|
164
|
+
_decrement() {
|
|
165
|
+
if (this.disabled) return;
|
|
166
|
+
let e = Math.max(this.min, this.value - this.step);
|
|
167
|
+
e !== this.value && (this.value = e, this._dispatchChange());
|
|
168
|
+
}
|
|
169
|
+
_increment() {
|
|
170
|
+
if (this.disabled) return;
|
|
171
|
+
let e = Math.min(this.max, this.value + this.step);
|
|
172
|
+
e !== this.value && (this.value = e, this._dispatchChange());
|
|
173
|
+
}
|
|
174
|
+
_handleKeydown(e) {
|
|
175
|
+
switch (e.key) {
|
|
176
|
+
case "ArrowUp":
|
|
177
|
+
case "ArrowRight":
|
|
178
|
+
e.preventDefault(), this._increment();
|
|
179
|
+
break;
|
|
180
|
+
case "ArrowDown":
|
|
181
|
+
case "ArrowLeft":
|
|
182
|
+
e.preventDefault(), this._decrement();
|
|
183
|
+
break;
|
|
184
|
+
case "Home":
|
|
185
|
+
e.preventDefault(), isFinite(this.min) && (this.value = this.min, this._dispatchChange());
|
|
186
|
+
break;
|
|
187
|
+
case "End": e.preventDefault(), isFinite(this.max) && (this.value = this.max, this._dispatchChange());
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
_dispatchChange() {
|
|
191
|
+
this.commitFormValue(), this.dispatchEvent(new CustomEvent("change", {
|
|
192
|
+
detail: { value: this.value },
|
|
193
|
+
bubbles: !0,
|
|
194
|
+
composed: !0
|
|
195
|
+
}));
|
|
196
|
+
}
|
|
197
|
+
focus(e) {
|
|
198
|
+
u(this, e) || this.shadowRoot?.querySelector(".stepper")?.focus(e);
|
|
199
|
+
}
|
|
200
|
+
describedTarget() {
|
|
201
|
+
return this.shadowRoot?.querySelector("[role=\"spinbutton\"]") ?? null;
|
|
202
|
+
}
|
|
203
|
+
render() {
|
|
204
|
+
return m(this);
|
|
205
|
+
}
|
|
206
|
+
}, g = (h.styles = p, h.isFormInput = !0, h);
|
|
207
|
+
a([t({ type: Number })], g.prototype, "value", void 0), a([t({ type: Number })], g.prototype, "min", void 0), a([t({ type: Number })], g.prototype, "max", void 0), a([t({ type: Number })], g.prototype, "step", void 0), a([t({
|
|
208
|
+
type: Boolean,
|
|
209
|
+
reflect: !0
|
|
210
|
+
})], g.prototype, "disabled", void 0), a([t({
|
|
211
|
+
reflect: !0,
|
|
212
|
+
converter: s("md")
|
|
213
|
+
})], g.prototype, "size", void 0), a([t({
|
|
214
|
+
reflect: !0,
|
|
215
|
+
converter: s("")
|
|
216
|
+
})], g.prototype, "name", void 0), a([t({
|
|
217
|
+
type: String,
|
|
218
|
+
attribute: "accessible-label"
|
|
219
|
+
})], g.prototype, "accessibleLabel", void 0), a([t({ type: Object })], g.prototype, "translations", void 0), a([t({
|
|
220
|
+
type: Boolean,
|
|
221
|
+
reflect: !0
|
|
222
|
+
})], g.prototype, "invalid", void 0), g = a([o("nldd-stepper")], g);
|
|
223
|
+
export { g as NLDDStepper };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { i as e } from "./decorate-TduJMFD_.js";
|
|
2
|
+
import { n as t, r as n, t as r } from "./directive-CwRgozUW.js";
|
|
3
|
+
// node_modules/lit-html/directives/style-map.js
|
|
4
|
+
var i = "important", a = " !" + i, o = r(class extends t {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
if (super(e), e.type !== n.ATTRIBUTE || e.name !== "style" || e.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
7
|
+
}
|
|
8
|
+
render(e) {
|
|
9
|
+
return Object.keys(e).reduce((t, n) => {
|
|
10
|
+
let r = e[n];
|
|
11
|
+
return r == null ? t : t + `${n = n.includes("-") ? n : n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${r};`;
|
|
12
|
+
}, "");
|
|
13
|
+
}
|
|
14
|
+
update(t, [n]) {
|
|
15
|
+
let { style: r } = t.element;
|
|
16
|
+
if (this.ft === void 0) return this.ft = new Set(Object.keys(n)), this.render(n);
|
|
17
|
+
for (let e of this.ft) n[e] ?? (this.ft.delete(e), e.includes("-") ? r.removeProperty(e) : r[e] = null);
|
|
18
|
+
for (let e in n) {
|
|
19
|
+
let t = n[e];
|
|
20
|
+
if (t != null) {
|
|
21
|
+
this.ft.add(e);
|
|
22
|
+
let n = typeof t == "string" && t.endsWith(a);
|
|
23
|
+
e.includes("-") || n ? r.setProperty(e, n ? t.slice(0, -11) : t, n ? i : "") : r[e] = t;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return e;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export { o as t };
|