@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,671 @@
|
|
|
1
|
+
import "./icon-BORlalt0.js";
|
|
2
|
+
import { i as e, n as t, t as n } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n as r, o as i, r as a, t as o } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { t as l } from "./shadow-resets-6SToDsPu.js";
|
|
7
|
+
import { i as u, n as d, r as f } from "./keyboard-shortcut-EknnW7Ub.js";
|
|
8
|
+
import { t as p } from "./defer-focus-F73ud2D9.js";
|
|
9
|
+
import "./tooltip-BsAHJjci.js";
|
|
10
|
+
import { t as m } from "./owned-attribute-x9OCTy_4.js";
|
|
11
|
+
import { t as h } from "./form-associated-mixin--GIbl98p.js";
|
|
12
|
+
import { t as g } from "./implicit-submission-Csbcor_E.js";
|
|
13
|
+
import { t as _ } from "./radio-position-CXWYAjaz.js";
|
|
14
|
+
// src/components/inputs/segmented-control/segmented-control.styles.ts
|
|
15
|
+
var v = e`
|
|
16
|
+
:host {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/* # Host */
|
|
22
|
+
|
|
23
|
+
:host {
|
|
24
|
+
--_segmented-control-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
25
|
+
--_segmented-control-background-color: var(--semantics-buttons-neutral-tinted-background-color);
|
|
26
|
+
--_segmented-control-highlight-border-color: var(--semantics-buttons-neutral-tinted-highlight-border-color);
|
|
27
|
+
--_segmented-control-width: auto;
|
|
28
|
+
--_segmented-control-gap: var(--primitives-space-1);
|
|
29
|
+
--_segmented-control-selected-z-index: 1;
|
|
30
|
+
--_segmented-control-focus-z-index: 2;
|
|
31
|
+
|
|
32
|
+
${l}
|
|
33
|
+
display: inline-grid;
|
|
34
|
+
position: relative;
|
|
35
|
+
border-radius: var(--_segmented-control-corner-radius);
|
|
36
|
+
background-color: var(--_segmented-control-background-color);
|
|
37
|
+
width: var(--_segmented-control-width);
|
|
38
|
+
max-width: 100%;
|
|
39
|
+
grid-auto-columns: 1fr;
|
|
40
|
+
grid-auto-flow: column;
|
|
41
|
+
gap: var(--_segmented-control-gap);
|
|
42
|
+
isolation: isolate;
|
|
43
|
+
-webkit-user-select: none;
|
|
44
|
+
user-select: none;
|
|
45
|
+
-webkit-tap-highlight-color: transparent;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host::after {
|
|
49
|
+
content: '';
|
|
50
|
+
position: absolute;
|
|
51
|
+
inset: 0;
|
|
52
|
+
border-radius: inherit;
|
|
53
|
+
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--_segmented-control-highlight-border-color);
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([appearance="neutral-base"]) {
|
|
58
|
+
--_segmented-control-background-color: var(--semantics-buttons-neutral-base-background-color);
|
|
59
|
+
--_segmented-control-highlight-border-color: var(--semantics-buttons-neutral-base-highlight-border-color);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([size="sm"]) {
|
|
63
|
+
--_segmented-control-corner-radius: var(--semantics-controls-sm-corner-radius);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([size="lg"]) {
|
|
67
|
+
--_segmented-control-corner-radius: var(--semantics-controls-lg-corner-radius);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([width="full"]) {
|
|
71
|
+
--_segmented-control-width: 100%;
|
|
72
|
+
|
|
73
|
+
display: grid;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([width="fit-content"]) {
|
|
77
|
+
grid-auto-columns: auto;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([disabled]) {
|
|
81
|
+
opacity: var(--primitives-opacity-disabled);
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([hidden]) {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/* # Elements */
|
|
91
|
+
|
|
92
|
+
::slotted(nldd-segmented-control-item[selected]) {
|
|
93
|
+
position: relative;
|
|
94
|
+
z-index: var(--_segmented-control-selected-z-index);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
::slotted(nldd-segmented-control-item:focus-within) {
|
|
98
|
+
position: relative;
|
|
99
|
+
z-index: var(--_segmented-control-focus-z-index);
|
|
100
|
+
}
|
|
101
|
+
`, y = e`
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
/* # Host */
|
|
105
|
+
|
|
106
|
+
:host {
|
|
107
|
+
--_segmented-control-item-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
108
|
+
--_segmented-control-item-min-size: var(--semantics-controls-md-min-size);
|
|
109
|
+
--_segmented-control-item-block-padding: var(--semantics-controls-md-block-padding);
|
|
110
|
+
--_segmented-control-item-inline-padding: var(--semantics-buttons-md-inline-padding);
|
|
111
|
+
--_segmented-control-item-gap: var(--semantics-buttons-md-gap);
|
|
112
|
+
--_segmented-control-item-font: var(--semantics-buttons-md-primary-text-font);
|
|
113
|
+
--_segmented-control-item-icon-size: var(--semantics-buttons-md-icon-size);
|
|
114
|
+
--_segmented-control-item-highlight-border-color: transparent;
|
|
115
|
+
--_segmented-control-item-content-color: var(--semantics-buttons-neutral-tinted-content-color);
|
|
116
|
+
--_segmented-control-item-is-hovered-background-color: var(--semantics-buttons-neutral-tinted-is-hovered-background-color);
|
|
117
|
+
--_segmented-control-item-is-hovered-content-color: var(--semantics-buttons-neutral-tinted-is-hovered-content-color);
|
|
118
|
+
--_segmented-control-item-is-active-background-color: var(--semantics-buttons-neutral-tinted-is-active-background-color);
|
|
119
|
+
--_segmented-control-item-is-active-content-color: var(--semantics-buttons-neutral-tinted-is-active-content-color);
|
|
120
|
+
--_segmented-control-item-is-selected-background-color: var(--semantics-buttons-neutral-tinted-is-selected-background-color);
|
|
121
|
+
--_segmented-control-item-is-selected-content-color: var(--semantics-buttons-neutral-tinted-is-selected-content-color);
|
|
122
|
+
--_segmented-control-item-is-selected-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-selected-highlight-border-color);
|
|
123
|
+
--_segmented-control-item-is-selected-is-hovered-background-color: var(--semantics-buttons-neutral-tinted-is-selected-is-hovered-background-color);
|
|
124
|
+
--_segmented-control-item-is-selected-is-hovered-content-color: var(--semantics-buttons-neutral-tinted-is-selected-is-hovered-content-color);
|
|
125
|
+
--_segmented-control-item-is-selected-is-hovered-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-selected-is-hovered-highlight-border-color);
|
|
126
|
+
--_segmented-control-item-is-selected-is-active-background-color: var(--semantics-buttons-neutral-tinted-is-selected-is-active-background-color);
|
|
127
|
+
--_segmented-control-item-is-selected-is-active-content-color: var(--semantics-buttons-neutral-tinted-is-selected-is-active-content-color);
|
|
128
|
+
--_segmented-control-item-is-selected-is-active-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-selected-is-active-highlight-border-color);
|
|
129
|
+
|
|
130
|
+
${l}
|
|
131
|
+
display: flex;
|
|
132
|
+
position: relative;
|
|
133
|
+
min-width: 0;
|
|
134
|
+
-webkit-tap-highlight-color: transparent;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host([appearance="neutral-base"]) {
|
|
138
|
+
--_segmented-control-item-content-color: var(--semantics-buttons-neutral-base-content-color);
|
|
139
|
+
--_segmented-control-item-is-hovered-background-color: var(--semantics-buttons-neutral-base-is-hovered-background-color);
|
|
140
|
+
--_segmented-control-item-is-hovered-content-color: var(--semantics-buttons-neutral-base-is-hovered-content-color);
|
|
141
|
+
--_segmented-control-item-is-active-background-color: var(--semantics-buttons-neutral-base-is-active-background-color);
|
|
142
|
+
--_segmented-control-item-is-active-content-color: var(--semantics-buttons-neutral-base-is-active-content-color);
|
|
143
|
+
--_segmented-control-item-is-selected-background-color: var(--semantics-buttons-neutral-base-is-selected-background-color);
|
|
144
|
+
--_segmented-control-item-is-selected-content-color: var(--semantics-buttons-neutral-base-is-selected-content-color);
|
|
145
|
+
--_segmented-control-item-is-selected-highlight-border-color: var(--semantics-buttons-neutral-base-is-selected-highlight-border-color);
|
|
146
|
+
--_segmented-control-item-is-selected-is-hovered-background-color: var(--semantics-buttons-neutral-base-is-selected-is-hovered-background-color);
|
|
147
|
+
--_segmented-control-item-is-selected-is-hovered-content-color: var(--semantics-buttons-neutral-base-is-selected-is-hovered-content-color);
|
|
148
|
+
--_segmented-control-item-is-selected-is-hovered-highlight-border-color: var(--semantics-buttons-neutral-base-is-selected-is-hovered-highlight-border-color);
|
|
149
|
+
--_segmented-control-item-is-selected-is-active-background-color: var(--semantics-buttons-neutral-base-is-selected-is-active-background-color);
|
|
150
|
+
--_segmented-control-item-is-selected-is-active-content-color: var(--semantics-buttons-neutral-base-is-selected-is-active-content-color);
|
|
151
|
+
--_segmented-control-item-is-selected-is-active-highlight-border-color: var(--semantics-buttons-neutral-base-is-selected-is-active-highlight-border-color);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:host([hidden]) {
|
|
155
|
+
display: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:host([size="sm"]) {
|
|
159
|
+
--_segmented-control-item-corner-radius: var(--semantics-controls-sm-corner-radius);
|
|
160
|
+
--_segmented-control-item-min-size: var(--semantics-controls-sm-min-size);
|
|
161
|
+
--_segmented-control-item-block-padding: var(--semantics-controls-sm-block-padding);
|
|
162
|
+
--_segmented-control-item-inline-padding: var(--semantics-buttons-sm-inline-padding);
|
|
163
|
+
--_segmented-control-item-gap: var(--semantics-buttons-sm-gap);
|
|
164
|
+
--_segmented-control-item-font: var(--semantics-buttons-sm-primary-text-font);
|
|
165
|
+
--_segmented-control-item-icon-size: var(--semantics-buttons-sm-icon-size);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:host([size="lg"]) {
|
|
169
|
+
--_segmented-control-item-corner-radius: var(--semantics-controls-lg-corner-radius);
|
|
170
|
+
--_segmented-control-item-min-size: var(--semantics-controls-lg-min-size);
|
|
171
|
+
--_segmented-control-item-block-padding: var(--semantics-controls-lg-block-padding);
|
|
172
|
+
--_segmented-control-item-inline-padding: var(--semantics-buttons-lg-inline-padding);
|
|
173
|
+
--_segmented-control-item-gap: var(--semantics-buttons-lg-gap);
|
|
174
|
+
--_segmented-control-item-font: var(--semantics-buttons-lg-primary-text-font);
|
|
175
|
+
--_segmented-control-item-icon-size: var(--semantics-buttons-lg-icon-size);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:host([variant="icon"]) {
|
|
179
|
+
--_segmented-control-item-block-padding: var(--semantics-buttons-md-is-icon-only-inline-padding);
|
|
180
|
+
--_segmented-control-item-inline-padding: var(--semantics-buttons-md-is-icon-only-inline-padding);
|
|
181
|
+
--_segmented-control-item-icon-size: var(--semantics-buttons-md-is-icon-only-icon-size);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:host([variant="icon"][size="sm"]) {
|
|
185
|
+
--_segmented-control-item-block-padding: var(--semantics-buttons-sm-is-icon-only-inline-padding);
|
|
186
|
+
--_segmented-control-item-inline-padding: var(--semantics-buttons-sm-is-icon-only-inline-padding);
|
|
187
|
+
--_segmented-control-item-icon-size: var(--semantics-buttons-sm-is-icon-only-icon-size);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
:host([variant="icon"][size="lg"]) {
|
|
191
|
+
--_segmented-control-item-block-padding: var(--semantics-buttons-lg-is-icon-only-inline-padding);
|
|
192
|
+
--_segmented-control-item-inline-padding: var(--semantics-buttons-lg-is-icon-only-inline-padding);
|
|
193
|
+
--_segmented-control-item-icon-size: var(--semantics-buttons-lg-is-icon-only-icon-size);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:host([variant="icon-and-text"][size="lg"]) {
|
|
197
|
+
--_segmented-control-item-block-padding: var(--primitives-space-8);
|
|
198
|
+
--_segmented-control-item-inline-padding: var(--primitives-space-8);
|
|
199
|
+
--_segmented-control-item-gap: var(--primitives-space-2);
|
|
200
|
+
--_segmented-control-item-font: var(--primitives-font-body-xxs-medium-flat);
|
|
201
|
+
--_segmented-control-item-icon-size: var(--semantics-buttons-md-is-icon-only-icon-size);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
/* # Block */
|
|
206
|
+
|
|
207
|
+
.segmented-control__item {
|
|
208
|
+
box-sizing: border-box;
|
|
209
|
+
display: flex;
|
|
210
|
+
position: relative;
|
|
211
|
+
cursor: default;
|
|
212
|
+
border-radius: var(--_segmented-control-item-corner-radius);
|
|
213
|
+
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--_segmented-control-item-highlight-border-color);
|
|
214
|
+
background: none;
|
|
215
|
+
width: 100%;
|
|
216
|
+
min-width: var(--_segmented-control-item-min-size);
|
|
217
|
+
height: var(--_segmented-control-item-min-size);
|
|
218
|
+
padding-block: var(--_segmented-control-item-block-padding);
|
|
219
|
+
padding-inline: var(--_segmented-control-item-inline-padding);
|
|
220
|
+
gap: var(--_segmented-control-item-gap);
|
|
221
|
+
align-items: center;
|
|
222
|
+
justify-content: center;
|
|
223
|
+
color: var(--_segmented-control-item-content-color);
|
|
224
|
+
font: var(--_segmented-control-item-font);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
:host([size="lg"][variant="icon-and-text"]) .segmented-control__item {
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@media (hover: hover) {
|
|
232
|
+
:host(:not([selected])) .segmented-control__item:hover {
|
|
233
|
+
background-color: var(--_segmented-control-item-is-hovered-background-color);
|
|
234
|
+
color: var(--_segmented-control-item-is-hovered-content-color);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:host(:not([selected])) .segmented-control__item:active {
|
|
239
|
+
background-color: var(--_segmented-control-item-is-active-background-color);
|
|
240
|
+
color: var(--_segmented-control-item-is-active-content-color);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
:host([selected]) .segmented-control__item {
|
|
244
|
+
--_segmented-control-item-highlight-border-color: var(--_segmented-control-item-is-selected-highlight-border-color);
|
|
245
|
+
|
|
246
|
+
background-color: var(--_segmented-control-item-is-selected-background-color);
|
|
247
|
+
color: var(--_segmented-control-item-is-selected-content-color);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@media (hover: hover) {
|
|
251
|
+
:host([selected]) .segmented-control__item:hover {
|
|
252
|
+
--_segmented-control-item-highlight-border-color: var(--_segmented-control-item-is-selected-is-hovered-highlight-border-color);
|
|
253
|
+
|
|
254
|
+
background-color: var(--_segmented-control-item-is-selected-is-hovered-background-color);
|
|
255
|
+
color: var(--_segmented-control-item-is-selected-is-hovered-content-color);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
:host([selected]) .segmented-control__item:active {
|
|
260
|
+
--_segmented-control-item-highlight-border-color: var(--_segmented-control-item-is-selected-is-active-highlight-border-color);
|
|
261
|
+
|
|
262
|
+
background-color: var(--_segmented-control-item-is-selected-is-active-background-color);
|
|
263
|
+
color: var(--_segmented-control-item-is-selected-is-active-content-color);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@media (forced-colors: active) {
|
|
267
|
+
:host([selected]) .segmented-control__item {
|
|
268
|
+
background-color: Highlight;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
:host([disabled]) .segmented-control__item {
|
|
273
|
+
opacity: var(--primitives-opacity-disabled);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
:host(:focus-visible) {
|
|
277
|
+
outline: none;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
:host(:focus-visible) .segmented-control__item,
|
|
281
|
+
.segmented-control__item:has(:focus-visible) {
|
|
282
|
+
outline: var(--semantics-focus-ring-outline);
|
|
283
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
284
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
:host([selected]:focus-visible) .segmented-control__item,
|
|
288
|
+
:host([selected]) .segmented-control__item:has(:focus-visible) {
|
|
289
|
+
box-shadow: var(--semantics-focus-ring-box-shadow), inset 0 0 0 var(--primitives-border-width-thin) var(--_segmented-control-item-highlight-border-color);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
/* # Elements */
|
|
294
|
+
|
|
295
|
+
.segmented-control__item-input {
|
|
296
|
+
position: absolute;
|
|
297
|
+
inset: 0;
|
|
298
|
+
opacity: 0;
|
|
299
|
+
z-index: 1;
|
|
300
|
+
margin: 0;
|
|
301
|
+
width: 100%;
|
|
302
|
+
height: 100%;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.segmented-control__item-text {
|
|
306
|
+
pointer-events: none;
|
|
307
|
+
overflow: hidden;
|
|
308
|
+
white-space: nowrap;
|
|
309
|
+
text-overflow: ellipsis;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
:host([variant="icon"]) .segmented-control__item-text {
|
|
313
|
+
display: none;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.segmented-control__item-icon {
|
|
317
|
+
display: none;
|
|
318
|
+
width: var(--_segmented-control-item-icon-size);
|
|
319
|
+
height: var(--_segmented-control-item-icon-size);
|
|
320
|
+
pointer-events: none;
|
|
321
|
+
flex-shrink: 0;
|
|
322
|
+
align-items: center;
|
|
323
|
+
justify-content: center;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
:host([variant="icon-and-text"]) .segmented-control__item-icon {
|
|
327
|
+
display: flex;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
:host([variant="icon"]) .segmented-control__item-icon {
|
|
331
|
+
display: flex;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
::slotted(nldd-icon) {
|
|
335
|
+
display: block;
|
|
336
|
+
width: 100%;
|
|
337
|
+
height: 100%;
|
|
338
|
+
}
|
|
339
|
+
`;
|
|
340
|
+
// src/components/inputs/segmented-control/segmented-control.template.ts
|
|
341
|
+
function b(e) {
|
|
342
|
+
return i`
|
|
343
|
+
<input class="segmented-control__validation-input"
|
|
344
|
+
type="radio"
|
|
345
|
+
name="nldd-validation"
|
|
346
|
+
hidden
|
|
347
|
+
?required=${e.required && e.type !== "checkbox"}
|
|
348
|
+
?disabled=${e.disabled}
|
|
349
|
+
.checked=${!!e.value}
|
|
350
|
+
>
|
|
351
|
+
<slot @slotchange=${e._onSlotChange}></slot>
|
|
352
|
+
`;
|
|
353
|
+
}
|
|
354
|
+
function x(e) {
|
|
355
|
+
let t = e.variant === "icon", n = t || e.variant === "icon-and-text", r = e.text || a, o = u(e), s = (t || o) && e.text ? [e.text, o].filter(Boolean).join(" ") : a, c = i`
|
|
356
|
+
<span class="segmented-control__item-icon"
|
|
357
|
+
aria-hidden=${t ? a : "true"}
|
|
358
|
+
>
|
|
359
|
+
<slot name="icon">${e.icon ? i`<nldd-icon icon=${e.icon}></nldd-icon>` : n ? i`<nldd-icon icon="icon-placeholder"></nldd-icon>` : a}</slot>
|
|
360
|
+
</span>
|
|
361
|
+
<span class="segmented-control__item-text"
|
|
362
|
+
aria-hidden=${t ? "true" : a}
|
|
363
|
+
>
|
|
364
|
+
${e.text}
|
|
365
|
+
</span>`, l = e.inputType === "radio" ? i`<div class="segmented-control__item">${c}</div>` : i`
|
|
366
|
+
<label class="segmented-control__item">
|
|
367
|
+
<input class="segmented-control__item-input"
|
|
368
|
+
type="checkbox"
|
|
369
|
+
name=${e.groupName || a}
|
|
370
|
+
value=${e.value}
|
|
371
|
+
.checked=${e.selected}
|
|
372
|
+
?disabled=${e.disabled}
|
|
373
|
+
?required=${e.required}
|
|
374
|
+
aria-label=${s}
|
|
375
|
+
@change=${e._handleChange}
|
|
376
|
+
>
|
|
377
|
+
${c}
|
|
378
|
+
</label>`;
|
|
379
|
+
return t && r || f(e) ? i`
|
|
380
|
+
<nldd-tooltip
|
|
381
|
+
text=${t ? r : a}
|
|
382
|
+
shortcut=${e.shortcut || a}
|
|
383
|
+
shortcut-mac=${e.shortcutMac || a}
|
|
384
|
+
shortcut-windows=${e.shortcutWindows || a}
|
|
385
|
+
shortcut-linux=${e.shortcutLinux || a}
|
|
386
|
+
>
|
|
387
|
+
${l}
|
|
388
|
+
</nldd-tooltip>
|
|
389
|
+
` : l;
|
|
390
|
+
}
|
|
391
|
+
// src/components/inputs/segmented-control/segmented-control.ts
|
|
392
|
+
var S = class extends r {
|
|
393
|
+
constructor(...e) {
|
|
394
|
+
super(...e), this.required = !1, this.value = "", this.selected = !1, this.disabled = !1, this.appearance = "neutral-tinted", this.size = "md", this.variant = "text", this.inputType = "radio", this.groupName = "", this.text = "", this.icon = "", this.shortcut = "", this.shortcutMac = "", this.shortcutWindows = "", this.shortcutLinux = "", this._groupPosition = null, this._appliedRadioLabel = null, this._shortcutAvailability = new d(this), this._onRadioFocus = () => {
|
|
395
|
+
this._tooltip?._handleFocusIn();
|
|
396
|
+
}, this._onRadioBlur = () => {
|
|
397
|
+
this._tooltip?._handleTriggerLeave();
|
|
398
|
+
}, this._onRadioClick = () => {
|
|
399
|
+
this.inputType === "radio" && this._select();
|
|
400
|
+
}, this._onRadioKeyDown = (e) => {
|
|
401
|
+
this.inputType !== "radio" || this.disabled || e.key === " " && (e.preventDefault(), this._select());
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
connectedCallback() {
|
|
405
|
+
super.connectedCallback(), this.addEventListener("click", this._onRadioClick), this.addEventListener("keydown", this._onRadioKeyDown), this.addEventListener("focus", this._onRadioFocus), this.addEventListener("blur", this._onRadioBlur);
|
|
406
|
+
}
|
|
407
|
+
disconnectedCallback() {
|
|
408
|
+
super.disconnectedCallback(), this.removeEventListener("click", this._onRadioClick), this.removeEventListener("keydown", this._onRadioKeyDown), this.removeEventListener("focus", this._onRadioFocus), this.removeEventListener("blur", this._onRadioBlur);
|
|
409
|
+
}
|
|
410
|
+
get _tooltip() {
|
|
411
|
+
return this.inputType === "radio" ? this.shadowRoot?.querySelector("nldd-tooltip") ?? null : null;
|
|
412
|
+
}
|
|
413
|
+
updated() {
|
|
414
|
+
this._syncRadioAria();
|
|
415
|
+
}
|
|
416
|
+
_syncRadioAria() {
|
|
417
|
+
if (this.inputType !== "radio") {
|
|
418
|
+
for (let e of [
|
|
419
|
+
"role",
|
|
420
|
+
"aria-checked",
|
|
421
|
+
"aria-disabled",
|
|
422
|
+
"aria-posinset",
|
|
423
|
+
"aria-setsize",
|
|
424
|
+
"tabindex"
|
|
425
|
+
]) this.removeAttribute(e);
|
|
426
|
+
this._appliedRadioLabel = m(this, "aria-label", "", this._appliedRadioLabel);
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.selected));
|
|
430
|
+
let e = [this.text, u(this)].filter(Boolean).join(" ");
|
|
431
|
+
this._appliedRadioLabel = m(this, "aria-label", e, this._appliedRadioLabel), this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled");
|
|
432
|
+
let t = this._groupPosition;
|
|
433
|
+
t ? (this.setAttribute("aria-posinset", String(t.posInSet)), this.setAttribute("aria-setsize", String(t.setSize))) : (this.removeAttribute("aria-posinset"), this.removeAttribute("aria-setsize"));
|
|
434
|
+
let n = !this.disabled && t?.tabbable !== !1;
|
|
435
|
+
this.setAttribute("tabindex", n ? "0" : "-1");
|
|
436
|
+
}
|
|
437
|
+
_select() {
|
|
438
|
+
this.disabled || this.selected || this.dispatchEvent(new CustomEvent("item-change", {
|
|
439
|
+
detail: {
|
|
440
|
+
value: this.value,
|
|
441
|
+
checked: !0
|
|
442
|
+
},
|
|
443
|
+
bubbles: !0,
|
|
444
|
+
composed: !0
|
|
445
|
+
}));
|
|
446
|
+
}
|
|
447
|
+
_handleChange(e) {
|
|
448
|
+
let t = e.target;
|
|
449
|
+
this.dispatchEvent(new CustomEvent("item-change", {
|
|
450
|
+
detail: {
|
|
451
|
+
value: this.value,
|
|
452
|
+
checked: t.checked
|
|
453
|
+
},
|
|
454
|
+
bubbles: !0,
|
|
455
|
+
composed: !0
|
|
456
|
+
}));
|
|
457
|
+
}
|
|
458
|
+
focus(e) {
|
|
459
|
+
p(this, e) || (this.inputType === "radio" ? super.focus(e) : this.shadowRoot?.querySelector(".segmented-control__item-input")?.focus(e));
|
|
460
|
+
}
|
|
461
|
+
render() {
|
|
462
|
+
return x(this);
|
|
463
|
+
}
|
|
464
|
+
}, C, w, T = (S.styles = y, S);
|
|
465
|
+
o([t({
|
|
466
|
+
type: Boolean,
|
|
467
|
+
reflect: !0
|
|
468
|
+
})], T.prototype, "required", void 0), o([t({ type: String })], T.prototype, "value", void 0), o([t({
|
|
469
|
+
type: Boolean,
|
|
470
|
+
reflect: !0
|
|
471
|
+
})], T.prototype, "selected", void 0), o([t({
|
|
472
|
+
type: Boolean,
|
|
473
|
+
reflect: !0
|
|
474
|
+
})], T.prototype, "disabled", void 0), o([t({
|
|
475
|
+
reflect: !0,
|
|
476
|
+
converter: c("neutral-tinted")
|
|
477
|
+
})], T.prototype, "appearance", void 0), o([t({
|
|
478
|
+
reflect: !0,
|
|
479
|
+
converter: c("md")
|
|
480
|
+
})], T.prototype, "size", void 0), o([t({
|
|
481
|
+
reflect: !0,
|
|
482
|
+
attribute: "variant",
|
|
483
|
+
converter: c("text")
|
|
484
|
+
})], T.prototype, "variant", void 0), o([t({
|
|
485
|
+
reflect: !0,
|
|
486
|
+
attribute: "input-type",
|
|
487
|
+
converter: c("radio")
|
|
488
|
+
})], T.prototype, "inputType", void 0), o([t({
|
|
489
|
+
type: String,
|
|
490
|
+
attribute: "group-name"
|
|
491
|
+
})], T.prototype, "groupName", void 0), o([t({
|
|
492
|
+
reflect: !0,
|
|
493
|
+
converter: c("")
|
|
494
|
+
})], T.prototype, "text", void 0), o([t({ type: String })], T.prototype, "icon", void 0), o([t({
|
|
495
|
+
reflect: !0,
|
|
496
|
+
converter: c("")
|
|
497
|
+
})], T.prototype, "shortcut", void 0), o([t({
|
|
498
|
+
reflect: !0,
|
|
499
|
+
attribute: "shortcut-mac",
|
|
500
|
+
converter: c("")
|
|
501
|
+
})], T.prototype, "shortcutMac", void 0), o([t({
|
|
502
|
+
reflect: !0,
|
|
503
|
+
attribute: "shortcut-windows",
|
|
504
|
+
converter: c("")
|
|
505
|
+
})], T.prototype, "shortcutWindows", void 0), o([t({
|
|
506
|
+
reflect: !0,
|
|
507
|
+
attribute: "shortcut-linux",
|
|
508
|
+
converter: c("")
|
|
509
|
+
})], T.prototype, "shortcutLinux", void 0), o([n()], T.prototype, "_groupPosition", void 0), T = o([s("nldd-segmented-control-item")], T);
|
|
510
|
+
var E = (C = class extends h(r) {
|
|
511
|
+
constructor(...e) {
|
|
512
|
+
super(...e), this.required = !1, this.invalid = !1, this._initialValue = "", this._initialValues = [], this.value = "", this.values = [], this.appearance = "neutral-tinted", this.size = "md", this.type = "radio", this.variant = "text", this.disabled = !1, this.width = "", this.name = "", this.accessibleLabel = "", this.accessibleLabeledBy = "", this._appliedLabel = null, this._generatedName = "", this._handleItemChange = (e) => {
|
|
513
|
+
if (e.stopPropagation(), !this.disabled) {
|
|
514
|
+
if (this.type === "checkbox") {
|
|
515
|
+
let t = this.values, n = e.detail.checked ? [...t, e.detail.value] : t.filter((t) => t !== e.detail.value);
|
|
516
|
+
this.values = n, this._syncItems(), this.commitFormValue(), this.dispatchEvent(new CustomEvent("change", {
|
|
517
|
+
detail: { values: n },
|
|
518
|
+
bubbles: !0,
|
|
519
|
+
composed: !0
|
|
520
|
+
}));
|
|
521
|
+
} else {
|
|
522
|
+
if (e.detail.value === this.value) return;
|
|
523
|
+
this.value = e.detail.value, this._syncItems(), this.commitFormValue(), this.dispatchEvent(new CustomEvent("change", {
|
|
524
|
+
detail: { value: this.value },
|
|
525
|
+
bubbles: !0,
|
|
526
|
+
composed: !0
|
|
527
|
+
}));
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}, this._handleKeydown = (e) => {
|
|
531
|
+
if (this.disabled || this.type === "checkbox") return;
|
|
532
|
+
if (e.key === "Enter") {
|
|
533
|
+
g(this, e);
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
let t = this._getItems().filter((e) => !e.disabled);
|
|
537
|
+
if (t.length === 0) return;
|
|
538
|
+
let n = t.findIndex((e) => e.selected), r;
|
|
539
|
+
switch (e.key) {
|
|
540
|
+
case "ArrowLeft":
|
|
541
|
+
case "ArrowUp":
|
|
542
|
+
e.preventDefault(), r = n <= 0 ? t.length - 1 : n - 1;
|
|
543
|
+
break;
|
|
544
|
+
case "ArrowRight":
|
|
545
|
+
case "ArrowDown":
|
|
546
|
+
e.preventDefault(), r = n >= t.length - 1 ? 0 : n + 1;
|
|
547
|
+
break;
|
|
548
|
+
case "Home":
|
|
549
|
+
e.preventDefault(), r = 0;
|
|
550
|
+
break;
|
|
551
|
+
case "End":
|
|
552
|
+
e.preventDefault(), r = t.length - 1;
|
|
553
|
+
break;
|
|
554
|
+
default: return;
|
|
555
|
+
}
|
|
556
|
+
r !== n && t[r] && (t[r].focus(), t[r]._select());
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
connectedCallback() {
|
|
560
|
+
super.connectedCallback(), this.setAttribute("role", this.type === "checkbox" ? "group" : "radiogroup"), this.accessibleLabel && this.setAttribute("aria-label", this.accessibleLabel), this.accessibleLabeledBy && this.setAttribute("aria-labelledby", this.accessibleLabeledBy), this.addEventListener("item-change", this._handleItemChange), this.addEventListener("keydown", this._handleKeydown);
|
|
561
|
+
}
|
|
562
|
+
disconnectedCallback() {
|
|
563
|
+
super.disconnectedCallback(), this.removeEventListener("item-change", this._handleItemChange), this.removeEventListener("keydown", this._handleKeydown);
|
|
564
|
+
}
|
|
565
|
+
firstUpdated() {
|
|
566
|
+
this._syncItems(), this._initialValue = this.value, this._initialValues = [...this.values];
|
|
567
|
+
}
|
|
568
|
+
formValue() {
|
|
569
|
+
if (this.type !== "checkbox") return this.value || null;
|
|
570
|
+
if (this.values.length === 0 || !this.name) return null;
|
|
571
|
+
let e = new FormData();
|
|
572
|
+
for (let t of this.values) e.append(this.name, t);
|
|
573
|
+
return e;
|
|
574
|
+
}
|
|
575
|
+
formResetCallback() {
|
|
576
|
+
this.value = this._initialValue, this.values = [...this._initialValues];
|
|
577
|
+
}
|
|
578
|
+
validationAnchor() {
|
|
579
|
+
let e = this._getItems().filter((e) => !e.disabled);
|
|
580
|
+
return e.find((e) => e.selected) ?? e[0];
|
|
581
|
+
}
|
|
582
|
+
formStateRestoreCallback(e) {
|
|
583
|
+
e !== null && (this.type === "checkbox" && e instanceof FormData && this.name ? this.values = e.getAll(this.name).map(String) : typeof e == "string" && (this.value = e));
|
|
584
|
+
}
|
|
585
|
+
updated(e) {
|
|
586
|
+
if (e.has("width")) {
|
|
587
|
+
let e = this.width;
|
|
588
|
+
e && e !== "full" && e !== "fit-content" && CSS.supports("width", e) ? this.style.setProperty("--_segmented-control-width", e) : this.style.removeProperty("--_segmented-control-width");
|
|
589
|
+
}
|
|
590
|
+
(e.has("value") || e.has("values") || e.has("appearance") || e.has("size") || e.has("disabled") || e.has("type") || e.has("variant") || e.has("name")) && this._syncItems(), (e.has("value") || e.has("values") || e.has("type") || e.has("name")) && this.commitFormValue(), e.has("type") && this.setAttribute("role", this.type === "checkbox" ? "group" : "radiogroup"), e.has("accessibleLabel") && (this._appliedLabel = m(this, "aria-label", this.accessibleLabel, this._appliedLabel)), e.has("accessibleLabeledBy") && (this.accessibleLabeledBy ? this.setAttribute("aria-labelledby", this.accessibleLabeledBy) : this.removeAttribute("aria-labelledby"));
|
|
591
|
+
}
|
|
592
|
+
_getItems() {
|
|
593
|
+
let e = this.shadowRoot?.querySelector("slot");
|
|
594
|
+
return e ? e.assignedElements().filter((e) => e.tagName.toLowerCase() === "nldd-segmented-control-item") : [];
|
|
595
|
+
}
|
|
596
|
+
_getSelectedValues() {
|
|
597
|
+
return this.type === "checkbox" ? this.values : this.value ? [this.value] : [];
|
|
598
|
+
}
|
|
599
|
+
_syncItems() {
|
|
600
|
+
let e = this._getItems();
|
|
601
|
+
this.toggleAttribute("aria-required", this.required), this.invalid ? this.setAttribute("aria-invalid", "true") : this.removeAttribute("aria-invalid");
|
|
602
|
+
let t = this._getSelectedValues();
|
|
603
|
+
this.disabled ? e.forEach((e) => {
|
|
604
|
+
e.hasAttribute("disabled") || (e.setAttribute("group-disabled", ""), e.disabled = !0);
|
|
605
|
+
}) : e.forEach((e) => {
|
|
606
|
+
e.hasAttribute("group-disabled") && (e.removeAttribute("group-disabled"), e.disabled = !1);
|
|
607
|
+
}), e.forEach((e) => {
|
|
608
|
+
e.appearance = this.appearance, e.size = this.size, e.inputType = this.type, e.variant = this.variant, e.groupName = this.name || this._autoName, e.selected = this.type === "checkbox" ? t.includes(e.value) : e.value === this.value;
|
|
609
|
+
});
|
|
610
|
+
let n = this.type === "radio" ? _(e, (e) => e.selected, (e) => e.disabled) : [];
|
|
611
|
+
e.forEach((e, t) => {
|
|
612
|
+
e._groupPosition = n[t] ?? null;
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
get _autoName() {
|
|
616
|
+
return this._generatedName || (this._generatedName = `nldd-segmented-${w._idCounter++}`), this._generatedName;
|
|
617
|
+
}
|
|
618
|
+
_onSlotChange() {
|
|
619
|
+
this._syncItems();
|
|
620
|
+
}
|
|
621
|
+
focus(e) {
|
|
622
|
+
if (p(this, e)) return;
|
|
623
|
+
let t = this._getItems().filter((e) => !e.disabled);
|
|
624
|
+
(t.find((e) => e.selected) ?? t[0])?.focus(e);
|
|
625
|
+
}
|
|
626
|
+
render() {
|
|
627
|
+
return b(this);
|
|
628
|
+
}
|
|
629
|
+
}, w = C, C.styles = v, C.isFormInput = !0, C._idCounter = 0, C);
|
|
630
|
+
o([t({
|
|
631
|
+
type: Boolean,
|
|
632
|
+
reflect: !0
|
|
633
|
+
})], E.prototype, "required", void 0), o([t({
|
|
634
|
+
type: Boolean,
|
|
635
|
+
reflect: !0
|
|
636
|
+
})], E.prototype, "invalid", void 0), o([t({
|
|
637
|
+
reflect: !0,
|
|
638
|
+
converter: c("")
|
|
639
|
+
})], E.prototype, "value", void 0), o([t({
|
|
640
|
+
type: Array,
|
|
641
|
+
attribute: !1
|
|
642
|
+
})], E.prototype, "values", void 0), o([t({
|
|
643
|
+
reflect: !0,
|
|
644
|
+
converter: c("neutral-tinted")
|
|
645
|
+
})], E.prototype, "appearance", void 0), o([t({
|
|
646
|
+
reflect: !0,
|
|
647
|
+
converter: c("md")
|
|
648
|
+
})], E.prototype, "size", void 0), o([t({
|
|
649
|
+
reflect: !0,
|
|
650
|
+
converter: c("radio")
|
|
651
|
+
})], E.prototype, "type", void 0), o([t({
|
|
652
|
+
reflect: !0,
|
|
653
|
+
attribute: "variant",
|
|
654
|
+
converter: c("text")
|
|
655
|
+
})], E.prototype, "variant", void 0), o([t({
|
|
656
|
+
type: Boolean,
|
|
657
|
+
reflect: !0
|
|
658
|
+
})], E.prototype, "disabled", void 0), o([t({
|
|
659
|
+
reflect: !0,
|
|
660
|
+
converter: c("")
|
|
661
|
+
})], E.prototype, "width", void 0), o([t({
|
|
662
|
+
reflect: !0,
|
|
663
|
+
converter: c("")
|
|
664
|
+
})], E.prototype, "name", void 0), o([t({
|
|
665
|
+
type: String,
|
|
666
|
+
attribute: "accessible-label"
|
|
667
|
+
})], E.prototype, "accessibleLabel", void 0), o([t({
|
|
668
|
+
type: String,
|
|
669
|
+
attribute: "accessible-labeled-by"
|
|
670
|
+
})], E.prototype, "accessibleLabeledBy", void 0), E = w = o([s("nldd-segmented-control")], E);
|
|
671
|
+
export { E as NLDDSegmentedControl, T as NLDDSegmentedControlItem };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { i as e } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import "./decorate-TduJMFD_.js";
|
|
3
|
+
// src/assets/styles/shadow-resets.ts
|
|
4
|
+
var t = e`
|
|
5
|
+
all: revert !important;
|
|
6
|
+
`, n = e`
|
|
7
|
+
text-align: start !important;
|
|
8
|
+
letter-spacing: normal !important;
|
|
9
|
+
word-spacing: normal !important;
|
|
10
|
+
text-transform: none !important;
|
|
11
|
+
`;
|
|
12
|
+
export { t as n, n as t };
|