@nldd/design-system 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +521 -57
- package/dist/cdn/autoloader.js +181 -0
- package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
- package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
- package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
- package/dist/cdn/chunks/avatar-group-rknt4FBO.js +338 -0
- package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
- package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
- package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
- package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
- package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
- package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
- package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
- package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
- package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
- package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
- package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
- package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
- package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
- package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
- package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
- package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
- package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
- package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
- package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
- package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
- package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
- package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
- package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
- package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
- package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
- package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
- package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
- package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
- package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
- package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
- package/dist/cdn/chunks/combo-box-DyBQSaQl.js +512 -0
- package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
- package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
- package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
- package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
- package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
- package/dist/cdn/chunks/date-field-Clti_wKN.js +654 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-2TCQLd5D.js +993 -0
- package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
- package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
- package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
- package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
- package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
- package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
- package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
- package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
- package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
- package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
- package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
- package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
- package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
- package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
- package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
- package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
- package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
- package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
- package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
- package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
- package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
- package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
- package/dist/cdn/chunks/document-tab-bar-CUc4WWY3.js +973 -0
- package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
- package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
- package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
- package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
- package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
- package/dist/cdn/chunks/file-field-Bff6_1pp.js +1484 -0
- package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
- package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
- package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
- package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
- package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
- package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
- package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
- package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
- package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
- package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
- package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
- package/dist/{components/icon-CrBk3W-t.js → cdn/chunks/icon-BORlalt0.js} +298 -309
- package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
- package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
- package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
- package/dist/cdn/chunks/identity-Cg1l0HhB.js +187 -0
- package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
- package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
- package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
- package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
- package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
- package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
- package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
- package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
- package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
- package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
- package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
- package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
- package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
- package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
- package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
- package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
- package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
- package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
- package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
- package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
- package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
- package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
- package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
- package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
- package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
- package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
- package/dist/cdn/chunks/menu-BOu_pD1Q.js +719 -0
- package/dist/cdn/chunks/menu-bar-0NFXvq-v.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-DGSC_ETi.js +365 -0
- package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
- package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
- package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
- package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
- package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
- package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
- package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
- package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
- package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
- package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
- package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
- package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
- package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
- package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
- package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
- package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
- package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
- package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
- package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
- package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
- package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
- package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
- package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
- package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
- package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
- package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
- package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
- package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
- package/dist/cdn/chunks/popover-C-CVVtfl.js +334 -0
- package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
- package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
- package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
- package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
- package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
- package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
- package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
- package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
- package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
- package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
- package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
- package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
- package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
- package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
- package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
- package/dist/cdn/chunks/return-focus-Xmagtk6r.js +52 -0
- package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
- package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
- package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
- package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
- package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
- package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
- package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
- package/dist/cdn/chunks/sheet-BdVCqm2H.js +340 -0
- package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
- package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
- package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
- package/dist/cdn/chunks/sidebar-section-DP4jnS7g.js +353 -0
- package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
- package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
- package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
- package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
- package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
- package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
- package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
- package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
- package/dist/cdn/chunks/split-button-BeXnOUTt.js +268 -0
- package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
- package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
- package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
- package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
- package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
- package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
- package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
- package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
- package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
- package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
- package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
- package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
- package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
- package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
- package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
- package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
- package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
- package/dist/cdn/chunks/tab-bar-DmslEoPD.js +697 -0
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
- package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
- package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
- package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
- package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
- package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
- package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
- package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
- package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
- package/dist/cdn/chunks/time-field-Cj5WojfO.js +597 -0
- package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
- package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
- package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
- package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
- package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
- package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
- package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
- package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
- package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
- package/dist/cdn/chunks/token-field-hvDB3l6O.js +664 -0
- package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
- package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
- package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
- package/dist/cdn/chunks/toolbar-iNd1VmuG.js +408 -0
- package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
- package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
- package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
- package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
- package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
- package/dist/cdn/chunks/top-navigation-bar-D1hjWIF3.js +925 -0
- package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
- package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
- package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
- package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
- package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
- package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
- package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
- package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
- package/dist/cdn/chunks/window-t5iFkMLY.js +227 -0
- package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
- package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
- package/dist/components/actions/button/button.d.ts +5 -5
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +6 -6
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +6 -8
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +15 -4
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +7 -1
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +2 -2
- package/dist/components/actions/icon-button/icon-button.d.ts +3 -3
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +4 -4
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +2 -4
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +12 -3
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +27 -6
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +31 -8
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +108 -32
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.pointer.d.ts +7 -0
- package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.pointer.js +17 -0
- package/dist/components/actions/menu/menu.pointer.js.map +1 -1
- package/dist/components/actions/menu/menu.safe-triangle.d.ts +6 -5
- package/dist/components/actions/menu/menu.safe-triangle.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.safe-triangle.js +3 -3
- package/dist/components/actions/menu/menu.safe-triangle.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +6 -0
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +17 -9
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +2 -2
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -1
- package/dist/components/content/avatar/avatar.js +1 -1
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +2 -1
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
- package/dist/components/content/image/image.js +1 -1
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +3 -3
- package/dist/components/content/tag/tag.js +3 -3
- package/dist/components/content/tag/tag.template.js +3 -3
- package/dist/components/content/tag/tag.template.js.map +1 -1
- package/dist/components/content/title/title.js +1 -1
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/token/token.d.ts +6 -4
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +6 -4
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +1 -1
- package/dist/components/content/token/token.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +22 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +67 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +1 -1
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +4 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js +2 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +2 -2
- package/dist/components/inputs/segmented-control/segmented-control.js +4 -4
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +2 -2
- package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +1 -1
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +2 -2
- package/dist/components/inputs/toggle-button/toggle-button.js +3 -3
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +7 -10
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js +3 -3
- package/dist/components/layout/card/card.js +1 -1
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +3 -1
- package/dist/components/layout/card/card.styles.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/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.js +2 -1
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +3 -2
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +3 -2
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +5 -2
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +5 -2
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +2 -4
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +2 -2
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +2 -2
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +2 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +2 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +4 -4
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +2 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +2 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +1 -2
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +10 -12
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +1 -0
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +6 -1
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/spacer/spacer.js +1 -1
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +2 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +3 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +2 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +3 -2
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +1 -0
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +7 -1
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +5 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +7 -4
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js +3 -3
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +2 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +2 -2
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +4 -1
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +19 -9
- 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 +30 -14
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +20 -0
- package/dist/components/lists-and-tables/list-item/list-item.styles.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/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +6 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +5 -5
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +5 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +5 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +2 -4
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +7 -4
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +7 -4
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.template.js +5 -5
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +3 -2
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +18 -2
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +51 -3
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +5 -3
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +2 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts +4 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +26 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +2 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +2 -2
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +4 -4
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +4 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +5 -2
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +6 -3
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
- package/dist/css/variables.css +6 -0
- package/dist/nldd.min.js +784 -728
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +26 -14
- 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 +17 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/input-modality.d.ts.map +1 -1
- package/dist/utilities/input-modality.js +4 -2
- package/dist/utilities/input-modality.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/page-section-mixin.d.ts +10 -4
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +29 -23
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/return-focus.d.ts +44 -0
- package/dist/utilities/return-focus.d.ts.map +1 -0
- package/dist/utilities/return-focus.js +99 -0
- package/dist/utilities/return-focus.js.map +1 -0
- package/dist/utilities/slot-content.d.ts +30 -0
- package/dist/utilities/slot-content.d.ts.map +1 -0
- package/dist/utilities/slot-content.js +38 -0
- package/dist/utilities/slot-content.js.map +1 -0
- package/lint/data.generated.json +1 -1
- package/package.json +50 -11
- package/dist/components/breakpoints-DtL62nLI.js +0 -45
- package/dist/components/components.js +0 -67895
- package/dist/components/decorate-C7khEuc7.js +0 -16
- package/dist/components/defer-focus-BQ3c4mzj.js +0 -176
- package/dist/components/dev-checks-lQ-gHUjV.js +0 -2706
- 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-CfpnGzYQ.js +0 -2308
- package/dist/components/input-modality-CiPLYYMN.js +0 -42
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/reflect-non-default-B9wQcnne.js +0 -36
- 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-BMtETgjk.js +0 -153
|
@@ -0,0 +1,697 @@
|
|
|
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 { r as l } from "./element-state-B-44fVqq.js";
|
|
7
|
+
import { t as u } from "./shadow-resets-6SToDsPu.js";
|
|
8
|
+
import { t as d } from "./with-translations-XX14GKFh.js";
|
|
9
|
+
import { t as f } from "./defer-focus-F73ud2D9.js";
|
|
10
|
+
import "./icon-button-rKiIHs7A.js";
|
|
11
|
+
import "./tooltip-BsAHJjci.js";
|
|
12
|
+
import { t as p } from "./sanitize-url-CBuGmY0W.js";
|
|
13
|
+
import "./menu-BOu_pD1Q.js";
|
|
14
|
+
import { t as m } from "./tab-bar.i18n-Crsc7ShA.js";
|
|
15
|
+
// src/components/navigation/tab-bar/tab-bar.styles.ts
|
|
16
|
+
var h = e`
|
|
17
|
+
:host {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/* # Host */
|
|
23
|
+
|
|
24
|
+
:host {
|
|
25
|
+
--_tab-bar-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
26
|
+
--_tab-bar-gap: var(--primitives-space-1);
|
|
27
|
+
--_tab-bar-current-z-index: 1;
|
|
28
|
+
--_tab-bar-focus-z-index: 2;
|
|
29
|
+
|
|
30
|
+
${u}
|
|
31
|
+
display: inline-block;
|
|
32
|
+
position: relative;
|
|
33
|
+
max-width: 100%;
|
|
34
|
+
isolation: isolate;
|
|
35
|
+
-webkit-user-select: none;
|
|
36
|
+
user-select: none;
|
|
37
|
+
-webkit-tap-highlight-color: transparent;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([centered]) {
|
|
41
|
+
display: block;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host([size="lg"]) {
|
|
46
|
+
--_tab-bar-corner-radius: var(--semantics-controls-lg-corner-radius);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host([disabled]) {
|
|
50
|
+
opacity: var(--primitives-opacity-disabled);
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([hidden]) {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* # Block */
|
|
59
|
+
|
|
60
|
+
.tab-bar {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: flex-start;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host([centered]) .tab-bar {
|
|
68
|
+
justify-content: center;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.tab-bar__box {
|
|
72
|
+
display: flex;
|
|
73
|
+
position: relative;
|
|
74
|
+
border-radius: var(--_tab-bar-corner-radius);
|
|
75
|
+
background-color: var(--semantics-buttons-neutral-tinted-background-color);
|
|
76
|
+
min-width: 0;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: var(--_tab-bar-gap);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.tab-bar__items {
|
|
82
|
+
display: grid;
|
|
83
|
+
min-width: 0;
|
|
84
|
+
grid-auto-flow: column;
|
|
85
|
+
grid-auto-columns: auto;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: var(--_tab-bar-gap);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.tab-bar__overflow-button {
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.tab-bar__overflow-button[hidden] {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
::slotted(nldd-tab-bar-item[data-overflow]) {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([data-overflowing]) {
|
|
103
|
+
display: block;
|
|
104
|
+
width: 100%;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:host([data-overflowing]) .tab-bar__box {
|
|
108
|
+
flex-grow: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host([data-overflowing]) .tab-bar__items {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-grow: 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host([data-overflowing]) ::slotted(nldd-tab-bar-item) {
|
|
117
|
+
min-width: 0;
|
|
118
|
+
flex-grow: var(--_tab-bar-item-natural-width);
|
|
119
|
+
flex-shrink: 1;
|
|
120
|
+
flex-basis: calc(var(--_tab-bar-item-natural-width) * 1px);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Measuring: the bar at the full width it may take, every tab at the width
|
|
124
|
+
its content wants, the overflow button present. Never painted. */
|
|
125
|
+
:host([data-measuring]) {
|
|
126
|
+
display: block;
|
|
127
|
+
width: 100%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host([hidden]) {
|
|
131
|
+
display: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:host([data-measuring]) .tab-bar__items {
|
|
135
|
+
display: grid;
|
|
136
|
+
grid-auto-columns: max-content;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host([data-measuring]) ::slotted(nldd-tab-bar-item[data-overflow]) {
|
|
140
|
+
display: inline-block;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:host([data-measuring]) .tab-bar__overflow-button[hidden] {
|
|
144
|
+
display: block;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.tab-bar__box::after {
|
|
148
|
+
content: '';
|
|
149
|
+
position: absolute;
|
|
150
|
+
inset: 0;
|
|
151
|
+
border-radius: inherit;
|
|
152
|
+
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--semantics-buttons-neutral-tinted-highlight-border-color);
|
|
153
|
+
pointer-events: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
/* # Focus */
|
|
158
|
+
|
|
159
|
+
::slotted(nldd-tab-bar-item[current]) {
|
|
160
|
+
position: relative;
|
|
161
|
+
z-index: var(--_tab-bar-current-z-index);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
::slotted(nldd-tab-bar-item:focus-within) {
|
|
165
|
+
position: relative;
|
|
166
|
+
z-index: var(--_tab-bar-focus-z-index);
|
|
167
|
+
}
|
|
168
|
+
`, g = e`
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
/* # Host */
|
|
172
|
+
|
|
173
|
+
:host {
|
|
174
|
+
--_tab-bar-item-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
175
|
+
--_tab-bar-item-min-size: var(--semantics-controls-md-min-size);
|
|
176
|
+
--_tab-bar-item-block-padding: var(--semantics-controls-md-block-padding);
|
|
177
|
+
--_tab-bar-item-inline-padding: var(--semantics-buttons-md-inline-padding);
|
|
178
|
+
--_tab-bar-item-gap: var(--semantics-buttons-md-gap);
|
|
179
|
+
--_tab-bar-item-font: var(--semantics-buttons-md-primary-text-font);
|
|
180
|
+
--_tab-bar-item-icon-size: var(--semantics-buttons-md-icon-size);
|
|
181
|
+
--_tab-bar-item-highlight-border-color: transparent;
|
|
182
|
+
--_tab-bar-item-content-z-index: 1;
|
|
183
|
+
--_tab-bar-item-natural-width: 0;
|
|
184
|
+
|
|
185
|
+
${u}
|
|
186
|
+
display: inline-block;
|
|
187
|
+
position: relative;
|
|
188
|
+
-webkit-tap-highlight-color: transparent;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
:host([size="lg"]) {
|
|
192
|
+
--_tab-bar-item-corner-radius: var(--semantics-controls-lg-corner-radius);
|
|
193
|
+
--_tab-bar-item-min-size: var(--semantics-controls-lg-min-size);
|
|
194
|
+
--_tab-bar-item-block-padding: var(--semantics-controls-lg-block-padding);
|
|
195
|
+
--_tab-bar-item-inline-padding: var(--semantics-buttons-lg-inline-padding);
|
|
196
|
+
--_tab-bar-item-gap: var(--semantics-buttons-lg-gap);
|
|
197
|
+
--_tab-bar-item-font: var(--semantics-buttons-lg-primary-text-font);
|
|
198
|
+
--_tab-bar-item-icon-size: var(--semantics-buttons-lg-icon-size);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:host([variant="icon"]) {
|
|
202
|
+
--_tab-bar-item-block-padding: var(--semantics-buttons-md-is-icon-only-inline-padding);
|
|
203
|
+
--_tab-bar-item-inline-padding: var(--semantics-buttons-md-is-icon-only-inline-padding);
|
|
204
|
+
--_tab-bar-item-icon-size: var(--semantics-buttons-md-is-icon-only-icon-size);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
:host([variant="icon"][size="lg"]) {
|
|
208
|
+
--_tab-bar-item-block-padding: var(--semantics-buttons-lg-is-icon-only-inline-padding);
|
|
209
|
+
--_tab-bar-item-inline-padding: var(--semantics-buttons-lg-is-icon-only-inline-padding);
|
|
210
|
+
--_tab-bar-item-icon-size: var(--semantics-buttons-lg-is-icon-only-icon-size);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:host([variant="icon-and-text"][size="lg"]) {
|
|
214
|
+
--_tab-bar-item-block-padding: var(--primitives-space-8);
|
|
215
|
+
--_tab-bar-item-inline-padding: var(--primitives-space-8);
|
|
216
|
+
--_tab-bar-item-gap: var(--primitives-space-2);
|
|
217
|
+
--_tab-bar-item-font: var(--primitives-font-body-xxs-medium-flat);
|
|
218
|
+
--_tab-bar-item-icon-size: var(--semantics-buttons-md-is-icon-only-icon-size);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:host([hidden]) {
|
|
222
|
+
display: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Text-bearing items may shrink (their grid track narrows below content) so the
|
|
226
|
+
* text can truncate. Icon-only items keep min-width:auto, so their track floors
|
|
227
|
+
* at the fixed touch-target size — an icon can't truncate. */
|
|
228
|
+
:host([variant="text"]),
|
|
229
|
+
:host([variant="icon-and-text"]) {
|
|
230
|
+
min-width: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
/* # Block */
|
|
235
|
+
|
|
236
|
+
.tab-bar__item {
|
|
237
|
+
box-sizing: border-box;
|
|
238
|
+
display: flex;
|
|
239
|
+
position: relative;
|
|
240
|
+
margin: 0;
|
|
241
|
+
border: none;
|
|
242
|
+
border-radius: var(--_tab-bar-item-corner-radius);
|
|
243
|
+
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--_tab-bar-item-highlight-border-color);
|
|
244
|
+
background: none;
|
|
245
|
+
width: 100%;
|
|
246
|
+
height: var(--_tab-bar-item-min-size);
|
|
247
|
+
padding-block: var(--_tab-bar-item-block-padding);
|
|
248
|
+
padding-inline: var(--_tab-bar-item-inline-padding);
|
|
249
|
+
gap: var(--_tab-bar-item-gap);
|
|
250
|
+
align-items: center;
|
|
251
|
+
justify-content: center;
|
|
252
|
+
color: var(--semantics-buttons-neutral-tinted-content-color);
|
|
253
|
+
font: var(--_tab-bar-item-font);
|
|
254
|
+
text-decoration: none;
|
|
255
|
+
appearance: none;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
a.tab-bar__item {
|
|
259
|
+
cursor: var(--semantics-controls-link-cursor);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
:host([variant="icon"]) .tab-bar__item {
|
|
263
|
+
width: var(--_tab-bar-item-min-size);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
:host([variant="icon-and-text"][size="lg"]) .tab-bar__item {
|
|
267
|
+
flex-direction: column;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@media (hover: hover) {
|
|
271
|
+
.tab-bar__item:hover {
|
|
272
|
+
background-color: var(--semantics-buttons-neutral-tinted-is-hovered-background-color);
|
|
273
|
+
color: var(--semantics-buttons-neutral-tinted-is-hovered-content-color);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.tab-bar__item:active {
|
|
278
|
+
background-color: var(--semantics-buttons-neutral-tinted-is-active-background-color);
|
|
279
|
+
color: var(--semantics-buttons-neutral-tinted-is-active-content-color);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:host([current]) .tab-bar__item {
|
|
283
|
+
--_tab-bar-item-highlight-border-color: var(--semantics-tabs-is-current-highlight-border-color);
|
|
284
|
+
|
|
285
|
+
background-color: var(--semantics-tabs-is-current-background-color);
|
|
286
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@media (hover: hover) {
|
|
290
|
+
:host([current]) .tab-bar__item:hover {
|
|
291
|
+
--_tab-bar-item-highlight-border-color: var(--semantics-tabs-is-current-is-hovered-highlight-border-color);
|
|
292
|
+
|
|
293
|
+
background-color: var(--semantics-tabs-is-current-is-hovered-background-color);
|
|
294
|
+
color: var(--semantics-tabs-is-current-is-hovered-content-color);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
:host([current]) .tab-bar__item:active {
|
|
299
|
+
--_tab-bar-item-highlight-border-color: var(--semantics-tabs-is-current-is-active-highlight-border-color);
|
|
300
|
+
|
|
301
|
+
background-color: var(--semantics-tabs-is-current-is-active-background-color);
|
|
302
|
+
color: var(--semantics-tabs-is-current-is-active-content-color);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
@media (forced-colors: active) {
|
|
306
|
+
:host([current]) .tab-bar__item {
|
|
307
|
+
background-color: Highlight;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.tab-bar__item:focus-visible {
|
|
312
|
+
outline: var(--semantics-focus-ring-outline);
|
|
313
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
314
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
:host([current]) .tab-bar__item:focus-visible {
|
|
318
|
+
box-shadow: var(--semantics-focus-ring-box-shadow), inset 0 0 0 var(--primitives-border-width-thin) var(--_tab-bar-item-highlight-border-color);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
/* # Elements */
|
|
323
|
+
|
|
324
|
+
.tab-bar__item-icon {
|
|
325
|
+
display: flex;
|
|
326
|
+
position: relative;
|
|
327
|
+
z-index: var(--_tab-bar-item-content-z-index);
|
|
328
|
+
width: var(--_tab-bar-item-icon-size);
|
|
329
|
+
height: var(--_tab-bar-item-icon-size);
|
|
330
|
+
flex-shrink: 0;
|
|
331
|
+
align-items: center;
|
|
332
|
+
justify-content: center;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
:host([variant="text"]) .tab-bar__item-icon {
|
|
336
|
+
display: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
::slotted([slot="icon"]) {
|
|
340
|
+
display: block;
|
|
341
|
+
width: 100%;
|
|
342
|
+
height: 100%;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.tab-bar__item-text {
|
|
346
|
+
position: relative;
|
|
347
|
+
z-index: var(--_tab-bar-item-content-z-index);
|
|
348
|
+
min-width: 0;
|
|
349
|
+
max-width: 100%;
|
|
350
|
+
font: var(--_tab-bar-item-font);
|
|
351
|
+
overflow: hidden;
|
|
352
|
+
white-space: nowrap;
|
|
353
|
+
text-overflow: ellipsis;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
:host([variant="icon"]) .tab-bar__item-text {
|
|
357
|
+
display: none;
|
|
358
|
+
}
|
|
359
|
+
`;
|
|
360
|
+
// src/components/navigation/tab-bar/tab-bar.template.ts
|
|
361
|
+
function _(e) {
|
|
362
|
+
let t = e.accessibleLabel || "Tabs", n = e.navigation, r = i`
|
|
363
|
+
<div class="tab-bar__box">
|
|
364
|
+
<div class="tab-bar__items"
|
|
365
|
+
role=${n ? a : "tablist"}
|
|
366
|
+
aria-label=${n ? a : t}
|
|
367
|
+
>
|
|
368
|
+
<slot @slotchange=${e._onSlotChange}></slot>
|
|
369
|
+
</div>
|
|
370
|
+
<div class="tab-bar__overflow-button"
|
|
371
|
+
?hidden=${e._overflowItems.length === 0}
|
|
372
|
+
>
|
|
373
|
+
<nldd-icon-button
|
|
374
|
+
appearance="neutral-tinted"
|
|
375
|
+
no-highlight-border
|
|
376
|
+
icon="chevron-down-small"
|
|
377
|
+
text=${e._t("components.tab-bar.overflow-action")}
|
|
378
|
+
size=${e.size}
|
|
379
|
+
?hide-lg-text=${e.variant !== "icon-and-text"}
|
|
380
|
+
?disabled=${e.disabled}
|
|
381
|
+
>
|
|
382
|
+
<nldd-menu
|
|
383
|
+
slot="popup"
|
|
384
|
+
placement="bottom-end"
|
|
385
|
+
@beforetoggle=${(t) => {
|
|
386
|
+
t.newState === "open" && e.requestUpdate();
|
|
387
|
+
}}
|
|
388
|
+
>
|
|
389
|
+
${e._overflowItems.map((t) => i`
|
|
390
|
+
<nldd-menu-item
|
|
391
|
+
text=${t.text}
|
|
392
|
+
icon=${t.icon || a}
|
|
393
|
+
href=${p(t.href) || a}
|
|
394
|
+
@select=${(n) => e._selectFromOverflow(n, t)}
|
|
395
|
+
>${t._slottedIcon?.cloneNode(!0) ?? a}</nldd-menu-item>
|
|
396
|
+
`)}
|
|
397
|
+
</nldd-menu>
|
|
398
|
+
</nldd-icon-button>
|
|
399
|
+
</div>
|
|
400
|
+
</div>
|
|
401
|
+
`;
|
|
402
|
+
return n ? i`
|
|
403
|
+
<nav class="tab-bar"
|
|
404
|
+
aria-label=${t}
|
|
405
|
+
>
|
|
406
|
+
${r}
|
|
407
|
+
</nav>
|
|
408
|
+
` : i`
|
|
409
|
+
<div class="tab-bar">
|
|
410
|
+
${r}
|
|
411
|
+
</div>
|
|
412
|
+
`;
|
|
413
|
+
}
|
|
414
|
+
function v(e) {
|
|
415
|
+
let t = p(e.href), n = !!t, r = e._navigation, o = e._groupDisabled, s = o ? "-1" : e.current || e._isFallbackFocusable ? "0" : "-1", c = e._effectiveVariant === "icon", l = c && e.text || a, u = c || e._effectiveVariant === "icon-and-text", d = i`
|
|
416
|
+
<span class="tab-bar__item-icon"
|
|
417
|
+
aria-hidden="true"
|
|
418
|
+
>
|
|
419
|
+
<slot name="icon" @slotchange=${e._onIconSlotChange}>${e.icon ? i`<nldd-icon icon=${e.icon}></nldd-icon>` : u ? i`<nldd-icon icon="icon-placeholder"></nldd-icon>` : a}</slot>
|
|
420
|
+
</span>
|
|
421
|
+
<span class="tab-bar__item-text">
|
|
422
|
+
${e.text}
|
|
423
|
+
</span>
|
|
424
|
+
`, f;
|
|
425
|
+
return f = n ? i`
|
|
426
|
+
<a class="tab-bar__item"
|
|
427
|
+
href=${t}
|
|
428
|
+
role=${r ? a : "tab"}
|
|
429
|
+
aria-current=${r && e.current ? "page" : a}
|
|
430
|
+
aria-selected=${r ? a : e.current ? "true" : "false"}
|
|
431
|
+
aria-disabled=${o ? "true" : a}
|
|
432
|
+
aria-label=${l}
|
|
433
|
+
tabindex=${s}
|
|
434
|
+
@click=${e._handleClick}
|
|
435
|
+
>${d}</a>
|
|
436
|
+
` : i`
|
|
437
|
+
<button class="tab-bar__item"
|
|
438
|
+
type="button"
|
|
439
|
+
role="tab"
|
|
440
|
+
aria-selected=${e.current ? "true" : "false"}
|
|
441
|
+
aria-disabled=${o ? "true" : a}
|
|
442
|
+
aria-label=${l}
|
|
443
|
+
tabindex=${s}
|
|
444
|
+
@click=${e._handleClick}
|
|
445
|
+
>${d}</button>
|
|
446
|
+
`, c && e.text ? i`<nldd-tooltip text=${e.text}>${f}</nldd-tooltip>` : f;
|
|
447
|
+
}
|
|
448
|
+
// src/components/navigation/tab-bar/tab-bar.ts
|
|
449
|
+
var y = class extends r {
|
|
450
|
+
constructor(...e) {
|
|
451
|
+
super(...e), this.current = !1, this.href = "", this._groupVariant = "", this._authorVariant = "", this.text = "", this.icon = "", this.controls = "", this.controlsElement = null, this.size = "md", this._hasIconSlot = !1, this._navigation = !1, this._isFallbackFocusable = !1, this._groupDisabled = !1, this._awaitingLoad = !1;
|
|
452
|
+
}
|
|
453
|
+
get _effectiveVariant() {
|
|
454
|
+
if (this._authorVariant) return this._authorVariant;
|
|
455
|
+
if (this._groupVariant) return this._groupVariant;
|
|
456
|
+
let e = !!this.icon || this._hasIconSlot;
|
|
457
|
+
return this.text && e ? "icon-and-text" : this.text ? "text" : "icon";
|
|
458
|
+
}
|
|
459
|
+
connectedCallback() {
|
|
460
|
+
super.connectedCallback(), this.setAttribute("role", "none");
|
|
461
|
+
let e = this.getAttribute("variant");
|
|
462
|
+
(e === "text" || e === "icon" || e === "icon-and-text") && (this._authorVariant = e);
|
|
463
|
+
}
|
|
464
|
+
updated() {
|
|
465
|
+
this.setAttribute("variant", this._effectiveVariant), this._applyControls();
|
|
466
|
+
}
|
|
467
|
+
_applyControls() {
|
|
468
|
+
let e = this.renderRoot.querySelector("[role=\"tab\"]"), t = this.controlsElement ?? this._findControls();
|
|
469
|
+
e && "ariaControlsElements" in e && (e.ariaControlsElements?.[0] ?? null) !== t && (e.ariaControlsElements = t ? [t] : null), !t && this.controls && !this.controlsElement && document.readyState === "loading" && !this._awaitingLoad && (this._awaitingLoad = !0, document.addEventListener("DOMContentLoaded", () => {
|
|
470
|
+
this._awaitingLoad = !1, this.isConnected && this._applyControls();
|
|
471
|
+
}, { once: !0 }));
|
|
472
|
+
}
|
|
473
|
+
_findControls() {
|
|
474
|
+
return this.controls ? this.getRootNode().getElementById?.(this.controls) ?? null : null;
|
|
475
|
+
}
|
|
476
|
+
focus(e) {
|
|
477
|
+
f(this, e) || this.shadowRoot?.querySelector(".tab-bar__item")?.focus(e);
|
|
478
|
+
}
|
|
479
|
+
_onIconSlotChange(e) {
|
|
480
|
+
let t = e.target;
|
|
481
|
+
this._hasIconSlot = t.assignedElements({ flatten: !0 }).length > 0, this.closest("nldd-tab-bar")?.requestUpdate();
|
|
482
|
+
}
|
|
483
|
+
get _slottedIcon() {
|
|
484
|
+
return this.querySelector(":scope > [slot=\"icon\"]");
|
|
485
|
+
}
|
|
486
|
+
_handleClick(e) {
|
|
487
|
+
this._groupDisabled ? e.preventDefault() : (p(this.href) || e.preventDefault(), this.dispatchEvent(new CustomEvent("select", {
|
|
488
|
+
bubbles: !0,
|
|
489
|
+
composed: !0,
|
|
490
|
+
detail: { item: this }
|
|
491
|
+
})));
|
|
492
|
+
}
|
|
493
|
+
render() {
|
|
494
|
+
return v(this);
|
|
495
|
+
}
|
|
496
|
+
}, b, x = (y.styles = g, y);
|
|
497
|
+
o([t({
|
|
498
|
+
type: Boolean,
|
|
499
|
+
reflect: !0
|
|
500
|
+
})], x.prototype, "current", void 0), o([t({ type: String })], x.prototype, "href", void 0), o([t({ type: String })], x.prototype, "_groupVariant", void 0), o([t({
|
|
501
|
+
reflect: !0,
|
|
502
|
+
converter: c("")
|
|
503
|
+
})], x.prototype, "text", void 0), o([t({
|
|
504
|
+
reflect: !0,
|
|
505
|
+
converter: c("")
|
|
506
|
+
})], x.prototype, "icon", void 0), o([t({
|
|
507
|
+
reflect: !0,
|
|
508
|
+
converter: c("")
|
|
509
|
+
})], x.prototype, "controls", void 0), o([t({ attribute: !1 })], x.prototype, "controlsElement", void 0), o([t({
|
|
510
|
+
reflect: !0,
|
|
511
|
+
converter: c("md")
|
|
512
|
+
})], x.prototype, "size", void 0), o([n()], x.prototype, "_hasIconSlot", void 0), o([n()], x.prototype, "_navigation", void 0), o([n()], x.prototype, "_isFallbackFocusable", void 0), o([n()], x.prototype, "_groupDisabled", void 0), x = o([s("nldd-tab-bar-item")], x);
|
|
513
|
+
var S = (b = class extends d(r, m) {
|
|
514
|
+
constructor(...e) {
|
|
515
|
+
super(...e), this.centered = !1, this.variant = "", this.size = "md", this.navigation = !1, this.disabled = !1, this.accessibleLabel = "", this._hasCustomLabel = !1, this._overflowItems = [], this._resizeObserver = null, this._itemObserver = null, this._overflowFrame = null, this._onlyCurrentChanged = !0, this._scheduleOverflow = (e = !0) => {
|
|
516
|
+
e && (this._onlyCurrentChanged = !1), !this._overflowFrame && (this._overflowFrame = requestAnimationFrame(() => {
|
|
517
|
+
this._overflowFrame = null;
|
|
518
|
+
let e = this._onlyCurrentChanged;
|
|
519
|
+
this._onlyCurrentChanged = !0, this._updateOverflow(e);
|
|
520
|
+
}));
|
|
521
|
+
}, this._onItemsMutated = (e) => {
|
|
522
|
+
this._scheduleOverflow(e.some((e) => e.attributeName !== "current"));
|
|
523
|
+
}, this._handleItemSelect = (e) => {
|
|
524
|
+
e.stopPropagation(), this._activate(e.detail.item);
|
|
525
|
+
}, this._handleKeyDown = (e) => {
|
|
526
|
+
if (this.disabled) return;
|
|
527
|
+
let t = this._getItems().filter((e) => !e.hasAttribute("data-overflow"));
|
|
528
|
+
if (t.length === 0) return;
|
|
529
|
+
let n = t.findIndex((t) => t === e.target || t.contains(e.target)), r = -1;
|
|
530
|
+
switch (e.key) {
|
|
531
|
+
case "ArrowLeft":
|
|
532
|
+
e.preventDefault(), r = n > 0 ? n - 1 : t.length - 1;
|
|
533
|
+
break;
|
|
534
|
+
case "ArrowRight":
|
|
535
|
+
e.preventDefault(), r = n < t.length - 1 ? n + 1 : 0;
|
|
536
|
+
break;
|
|
537
|
+
case "Home":
|
|
538
|
+
e.preventDefault(), r = 0;
|
|
539
|
+
break;
|
|
540
|
+
case "End":
|
|
541
|
+
e.preventDefault(), r = t.length - 1;
|
|
542
|
+
break;
|
|
543
|
+
default: return;
|
|
544
|
+
}
|
|
545
|
+
r >= 0 && r < t.length && (t[r].focus(), this.navigation || (t.forEach((e) => {
|
|
546
|
+
e.current = e === t[r];
|
|
547
|
+
}), this.dispatchEvent(new CustomEvent("tabchange", {
|
|
548
|
+
bubbles: !0,
|
|
549
|
+
composed: !0,
|
|
550
|
+
detail: { item: t[r] }
|
|
551
|
+
}))));
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
connectedCallback() {
|
|
555
|
+
super.connectedCallback(), this.addEventListener("select", this._handleItemSelect), this.addEventListener("keydown", this._handleKeyDown), this._resizeObserver = new ResizeObserver(() => this._scheduleOverflow()), this._resizeObserver.observe(this), this.parentElement && this._resizeObserver.observe(this.parentElement), this._itemObserver = new MutationObserver(this._onItemsMutated), this._itemObserver.observe(this, {
|
|
556
|
+
subtree: !0,
|
|
557
|
+
attributes: !0,
|
|
558
|
+
attributeFilter: [
|
|
559
|
+
"text",
|
|
560
|
+
"icon",
|
|
561
|
+
"current",
|
|
562
|
+
"variant",
|
|
563
|
+
"size"
|
|
564
|
+
]
|
|
565
|
+
}), document.fonts?.ready.then(() => this._scheduleOverflow());
|
|
566
|
+
}
|
|
567
|
+
disconnectedCallback() {
|
|
568
|
+
super.disconnectedCallback(), this.removeEventListener("select", this._handleItemSelect), this.removeEventListener("keydown", this._handleKeyDown), this._resizeObserver?.disconnect(), this._resizeObserver = null, this._itemObserver?.disconnect(), this._itemObserver = null, this._overflowFrame && cancelAnimationFrame(this._overflowFrame), this._overflowFrame = null;
|
|
569
|
+
}
|
|
570
|
+
_measure() {
|
|
571
|
+
let e = this._getItems(), t = this.shadowRoot?.querySelector(".tab-bar"), n = this.shadowRoot?.querySelector(".tab-bar__items"), r = this.shadowRoot?.querySelector(".tab-bar__overflow-button");
|
|
572
|
+
if (!t || !n || !r || e.length === 0) return null;
|
|
573
|
+
this.toggleAttribute("data-measuring", !0);
|
|
574
|
+
let i = t.clientWidth, a = e.map((e) => e.getBoundingClientRect().width), o = parseFloat(getComputedStyle(n).columnGap) || 0, s = r.getBoundingClientRect().width;
|
|
575
|
+
return this.removeAttribute("data-measuring"), {
|
|
576
|
+
items: e,
|
|
577
|
+
available: i,
|
|
578
|
+
widths: a,
|
|
579
|
+
gap: o,
|
|
580
|
+
budget: i - s - o
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
_toolbarWidths() {
|
|
584
|
+
let e = this._measure();
|
|
585
|
+
if (!e) return null;
|
|
586
|
+
let { items: t, available: n, widths: r, gap: i, budget: a } = e, o = r.reduce((e, t) => e + t, 0) + i * (t.length - 1);
|
|
587
|
+
if (t.length < 2) return {
|
|
588
|
+
preferred: o,
|
|
589
|
+
minimum: o
|
|
590
|
+
};
|
|
591
|
+
let s = Math.max(t.findIndex((e) => e.current), 0), c = n - a - i;
|
|
592
|
+
return {
|
|
593
|
+
preferred: o,
|
|
594
|
+
minimum: Math.min(o, r[s] + i + c)
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
_updateOverflow(e = !1) {
|
|
598
|
+
let t = this._measure();
|
|
599
|
+
if (!t) {
|
|
600
|
+
this._applyOverflow(this._getItems(), /* @__PURE__ */ new Set(), []);
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
let { items: n, available: r, widths: i, gap: a, budget: o } = t, s = (e) => [...e].reduce((e, t) => e + i[t], 0) + a * Math.max(e.size - 1, 0);
|
|
604
|
+
if (i.reduce((e, t) => e + t, 0) + a * (n.length - 1) <= r) {
|
|
605
|
+
this._applyOverflow(n, /* @__PURE__ */ new Set(), i);
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
let c = n.findIndex((e) => e.current), l = new Set(n.map((e, t) => e.hasAttribute("data-overflow") ? -1 : t).filter((e) => e >= 0)), u;
|
|
609
|
+
if (e && this._overflowItems.length > 0 && l.size > 0) {
|
|
610
|
+
if (u = new Set(l), c >= 0 && !u.has(c)) {
|
|
611
|
+
let e = [...u].filter((e) => e !== c).pop();
|
|
612
|
+
e !== void 0 && u.delete(e), u.add(c);
|
|
613
|
+
}
|
|
614
|
+
for (; u.size > 1 && s(u) > o;) {
|
|
615
|
+
let e = [...u].sort((e, t) => e - t).filter((e) => e !== c).pop();
|
|
616
|
+
if (e === void 0) break;
|
|
617
|
+
u.delete(e);
|
|
618
|
+
}
|
|
619
|
+
} else {
|
|
620
|
+
u = /* @__PURE__ */ new Set(), c >= 0 && u.add(c);
|
|
621
|
+
for (let e = 0; e < n.length; e++) {
|
|
622
|
+
if (e === c) continue;
|
|
623
|
+
let t = new Set(u).add(e);
|
|
624
|
+
if (s(t) > o) break;
|
|
625
|
+
u = t;
|
|
626
|
+
}
|
|
627
|
+
u.size === 0 && u.add(0);
|
|
628
|
+
}
|
|
629
|
+
this._applyOverflow(n, new Set(n.map((e, t) => t).filter((e) => !u.has(e))), i);
|
|
630
|
+
}
|
|
631
|
+
_applyOverflow(e, t, n) {
|
|
632
|
+
let r = t.size > 0;
|
|
633
|
+
this.toggleAttribute("data-overflowing", r), e.forEach((e, i) => {
|
|
634
|
+
e.toggleAttribute("data-overflow", t.has(i)), r && n[i] ? e.style.setProperty("--_tab-bar-item-natural-width", String(n[i])) : e.style.removeProperty("--_tab-bar-item-natural-width");
|
|
635
|
+
});
|
|
636
|
+
let i = e.filter((e, n) => t.has(n));
|
|
637
|
+
(i.length !== this._overflowItems.length || i.some((e, t) => e !== this._overflowItems[t])) && (this._overflowItems = i, this._syncItems());
|
|
638
|
+
}
|
|
639
|
+
_selectFromOverflow(e, t) {
|
|
640
|
+
e.stopPropagation(), this._activate(t);
|
|
641
|
+
}
|
|
642
|
+
firstUpdated() {
|
|
643
|
+
this._hasCustomLabel = !!this.accessibleLabel, this._syncItems();
|
|
644
|
+
}
|
|
645
|
+
updated(e) {
|
|
646
|
+
(e.has("variant") || e.has("size") || e.has("navigation") || e.has("disabled")) && (this._syncItems(), this._scheduleOverflow());
|
|
647
|
+
}
|
|
648
|
+
_getItems() {
|
|
649
|
+
let e = this.shadowRoot?.querySelector("slot");
|
|
650
|
+
return e ? e.assignedElements().filter((e) => e.tagName.toLowerCase() === "nldd-tab-bar-item") : [];
|
|
651
|
+
}
|
|
652
|
+
_syncItems() {
|
|
653
|
+
let e = this._getItems();
|
|
654
|
+
l(this, "link-tabs", e.some((e) => e.href)), e.forEach((e) => {
|
|
655
|
+
e._groupVariant = this.variant, e.size = this.size, e._navigation = this.navigation, e._groupDisabled = this.disabled;
|
|
656
|
+
});
|
|
657
|
+
let t = e.some((e) => e.current), n = e.find((e) => !e.hasAttribute("data-overflow")) ?? null;
|
|
658
|
+
e.forEach((e) => {
|
|
659
|
+
e._isFallbackFocusable = !t && e === n;
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
_onSlotChange() {
|
|
663
|
+
this._syncItems(), this._scheduleOverflow();
|
|
664
|
+
}
|
|
665
|
+
_activate(e) {
|
|
666
|
+
this.disabled || (this.navigation || this._getItems().forEach((t) => {
|
|
667
|
+
t.current = t === e;
|
|
668
|
+
}), this.dispatchEvent(new CustomEvent("tabchange", {
|
|
669
|
+
bubbles: !0,
|
|
670
|
+
composed: !0,
|
|
671
|
+
detail: { item: e }
|
|
672
|
+
})));
|
|
673
|
+
}
|
|
674
|
+
render() {
|
|
675
|
+
return _(this);
|
|
676
|
+
}
|
|
677
|
+
}, b.styles = h, b);
|
|
678
|
+
o([t({
|
|
679
|
+
type: Boolean,
|
|
680
|
+
reflect: !0
|
|
681
|
+
})], S.prototype, "centered", void 0), o([t({
|
|
682
|
+
reflect: !0,
|
|
683
|
+
converter: c("")
|
|
684
|
+
})], S.prototype, "variant", void 0), o([t({
|
|
685
|
+
reflect: !0,
|
|
686
|
+
converter: c("md")
|
|
687
|
+
})], S.prototype, "size", void 0), o([t({
|
|
688
|
+
type: Boolean,
|
|
689
|
+
reflect: !0
|
|
690
|
+
})], S.prototype, "navigation", void 0), o([t({
|
|
691
|
+
type: Boolean,
|
|
692
|
+
reflect: !0
|
|
693
|
+
})], S.prototype, "disabled", void 0), o([t({
|
|
694
|
+
type: String,
|
|
695
|
+
attribute: "accessible-label"
|
|
696
|
+
})], S.prototype, "accessibleLabel", void 0), o([n()], S.prototype, "_overflowItems", void 0), S = o([s("nldd-tab-bar")], S);
|
|
697
|
+
export { S as NLDDTabBar, x as NLDDTabBarItem };
|