@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,308 @@
|
|
|
1
|
+
import { i as e, n as t } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n, o as r, t as i } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as a } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as o } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
+
import { r as s } from "./element-state-B-44fVqq.js";
|
|
6
|
+
import { t as c } from "./shadow-resets-6SToDsPu.js";
|
|
7
|
+
import { t as l } from "./translations-wxBSz213.js";
|
|
8
|
+
import { r as u, t as d } from "./breakpoints-Cwor8TRP.js";
|
|
9
|
+
import "./inline-dialog-WlqtPBPJ.js";
|
|
10
|
+
import { t as f } from "./table.i18n-Bmb_uw_w.js";
|
|
11
|
+
// src/components/lists-and-tables/table/table.styles.ts
|
|
12
|
+
var p = e`
|
|
13
|
+
:host {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
:host {
|
|
17
|
+
--_table-columns: none;
|
|
18
|
+
--_table-corner-radius: var(--semantics-tables-corner-radius);
|
|
19
|
+
--_table-column-gap: var(--semantics-tables-column-gap);
|
|
20
|
+
--_table-background-color: var(--semantics-surfaces-base-background-color);
|
|
21
|
+
--_table-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
22
|
+
/* Shared so the focus-visible rule can compose the focus ring over the
|
|
23
|
+
border ring with var(...) instead of repeating the inset literal. */
|
|
24
|
+
--_table-border-shadow: inset 0 0 0 var(--semantics-tables-border-width) var(--_table-border-color);
|
|
25
|
+
|
|
26
|
+
${c}
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
display: grid;
|
|
29
|
+
grid-template-columns: var(--_table-columns);
|
|
30
|
+
width: 100%;
|
|
31
|
+
/* The table is always a boxed surface and its own horizontal scroll
|
|
32
|
+
container: the columns scroll when they don't fit and the table is made
|
|
33
|
+
focusable in JS while it scrolls. overflow-y stays hidden so the rounded
|
|
34
|
+
corners keep clipping the rows (and their full-bleed dividers). */
|
|
35
|
+
border-radius: var(--_table-corner-radius);
|
|
36
|
+
box-shadow: var(--_table-border-shadow);
|
|
37
|
+
background-color: var(--_table-background-color);
|
|
38
|
+
overflow-x: auto;
|
|
39
|
+
overflow-y: hidden;
|
|
40
|
+
column-gap: var(--_table-column-gap);
|
|
41
|
+
row-gap: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([hidden]) {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Default surface is base; tinted is opt-in. */
|
|
49
|
+
:host([background="tinted"]) {
|
|
50
|
+
--_table-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
51
|
+
--_table-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Keyboard focus while the table scrolls (it gains tabindex in JS): the
|
|
55
|
+
project focus ring, layered over the border ring (mirrors nldd-code-viewer).
|
|
56
|
+
Focus first (outer), border second (inner). */
|
|
57
|
+
:host(:focus-visible) {
|
|
58
|
+
outline: var(--semantics-focus-ring-outline);
|
|
59
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
60
|
+
box-shadow: var(--semantics-focus-ring-box-shadow), var(--_table-border-shadow);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:host(:focus:not(:focus-visible)) {
|
|
64
|
+
outline: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
slot {
|
|
68
|
+
display: contents;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Empty state spans all columns below the rows; its own padding gives the
|
|
72
|
+
message room. The header is hidden in the empty state (only the message). */
|
|
73
|
+
.table__empty {
|
|
74
|
+
grid-column: 1 / -1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.table__empty[hidden] {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.table__empty-cell {
|
|
82
|
+
padding: var(--primitives-space-16);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.table__empty-cell slot[hidden] {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Empty state: collapse the column tracks to a single box-wide column so the
|
|
90
|
+
message spans the surface instead of the (wider) data columns — otherwise
|
|
91
|
+
the empty box scrolls horizontally. */
|
|
92
|
+
:host(.is-empty) {
|
|
93
|
+
grid-template-columns: minmax(0, 1fr);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host(.is-empty) slot[name="header"] {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Nothing in it and nothing said about it: not a thing on the page. */
|
|
101
|
+
:host(.is-blank) {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
104
|
+
`, m = e`
|
|
105
|
+
:host {
|
|
106
|
+
--_table-row-min-height: var(--semantics-tables-row-min-height);
|
|
107
|
+
/* Block padding goes to the cells (same hook the list uses) so it belongs
|
|
108
|
+
to the cell's box; inline padding stays here because it insets the row
|
|
109
|
+
content from the frame without moving the full-bleed divider. */
|
|
110
|
+
--context-cell-padding-block: var(--semantics-tables-row-padding-block);
|
|
111
|
+
--_table-row-padding-inline: var(--semantics-tables-row-padding-inline);
|
|
112
|
+
--_table-row-divider-color: var(--semantics-tables-border-color);
|
|
113
|
+
--_table-row-divider-thickness: var(--semantics-tables-border-width);
|
|
114
|
+
|
|
115
|
+
${c}
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
display: grid;
|
|
118
|
+
grid-column: 1 / -1;
|
|
119
|
+
grid-template-columns: subgrid;
|
|
120
|
+
min-height: var(--_table-row-min-height);
|
|
121
|
+
/* !important: shields divider and inset from consumer universal resets,
|
|
122
|
+
which beat normal :host declarations per CSS Scoping. They cannot move
|
|
123
|
+
inward: the row is a subgrid participant, and a wrapper would break
|
|
124
|
+
the parent-child column relation. */
|
|
125
|
+
border-bottom: var(--_table-row-divider-thickness) solid var(--_table-row-divider-color) !important;
|
|
126
|
+
padding-inline: var(--_table-row-padding-inline) !important;
|
|
127
|
+
align-items: center;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host([hidden]) {
|
|
131
|
+
display: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* Selection: a full-bleed row tint (reaches the box edges, corners clipped by
|
|
135
|
+
the table) plus the selected content color, from the shared table tokens. */
|
|
136
|
+
:host([selected]) {
|
|
137
|
+
background-color: var(--semantics-tables-row-is-selected-background-color);
|
|
138
|
+
--context-content-color: var(--semantics-tables-row-is-selected-content-color);
|
|
139
|
+
--context-content-secondary-color: var(--semantics-tables-row-is-selected-content-color);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* The box's border ring is the table's outer frame, so the last row drops its
|
|
143
|
+
divider (no doubling on the ring). Inner dividers run full-bleed to the
|
|
144
|
+
sides — the padding only insets the cell content, not the row's border. */
|
|
145
|
+
:host(:last-child) {
|
|
146
|
+
/* !important: the base border-bottom above is important, so this
|
|
147
|
+
suppression has to be too. */
|
|
148
|
+
border-bottom: none !important;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* display:contents so the cells become grid items of this subgrid. */
|
|
152
|
+
slot {
|
|
153
|
+
display: contents;
|
|
154
|
+
}
|
|
155
|
+
`;
|
|
156
|
+
// src/components/lists-and-tables/table/table.template.ts
|
|
157
|
+
function h() {
|
|
158
|
+
return r`
|
|
159
|
+
<slot name="header"></slot>
|
|
160
|
+
<slot></slot>
|
|
161
|
+
<div class="table__empty"
|
|
162
|
+
role="row"
|
|
163
|
+
hidden
|
|
164
|
+
>
|
|
165
|
+
<div class="table__empty-cell"
|
|
166
|
+
role="cell"
|
|
167
|
+
>
|
|
168
|
+
<slot name="empty"></slot>
|
|
169
|
+
<slot name="no-results"
|
|
170
|
+
hidden
|
|
171
|
+
></slot>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
`;
|
|
175
|
+
}
|
|
176
|
+
function g(e) {
|
|
177
|
+
return r`<slot @slotchange=${e}></slot>`;
|
|
178
|
+
}
|
|
179
|
+
// src/components/lists-and-tables/table/table.ts
|
|
180
|
+
var _ = class extends n {
|
|
181
|
+
constructor(...e) {
|
|
182
|
+
super(...e), this.background = "base", this.columns = "", this.smColumns = "", this.mdColumns = "", this.lgColumns = "", this.accessibleLabel = "", this.translations = {}, this.selectable = !1, this._width = 0;
|
|
183
|
+
}
|
|
184
|
+
_t(e) {
|
|
185
|
+
return l(this.translations, f, e);
|
|
186
|
+
}
|
|
187
|
+
connectedCallback() {
|
|
188
|
+
super.connectedCallback(), this.setAttribute("role", "table"), this.style.containerType = "inline-size", this.style.containerName = "cells-container", this._resizeObserver = new ResizeObserver((e) => {
|
|
189
|
+
this._width = e[0].contentRect.width, this._applyColumns(), this._syncHostA11y();
|
|
190
|
+
}), this._resizeObserver.observe(this);
|
|
191
|
+
}
|
|
192
|
+
disconnectedCallback() {
|
|
193
|
+
super.disconnectedCallback(), this._resizeObserver?.disconnect(), this._resizeObserver = void 0, this._rowsObserver?.disconnect(), this._rowsObserver = void 0;
|
|
194
|
+
}
|
|
195
|
+
firstUpdated() {
|
|
196
|
+
(this.shadowRoot?.querySelector("slot:not([name])"))?.addEventListener("slotchange", () => this._updateEmpty()), this._rowsObserver = new MutationObserver((e) => {
|
|
197
|
+
e.some((e) => e.type === "childList" ? e.target === this : e.type === "attributes" && e.attributeName === "hidden" && e.target instanceof Element && e.target.parentElement === this) && this._updateEmpty();
|
|
198
|
+
}), this._rowsObserver.observe(this, {
|
|
199
|
+
childList: !0,
|
|
200
|
+
subtree: !0,
|
|
201
|
+
attributes: !0,
|
|
202
|
+
attributeFilter: ["hidden"]
|
|
203
|
+
}), this._updateEmpty();
|
|
204
|
+
}
|
|
205
|
+
_updateEmpty() {
|
|
206
|
+
let e = this.shadowRoot?.querySelector(".table__empty");
|
|
207
|
+
if (!e) return;
|
|
208
|
+
let t = ((this.shadowRoot?.querySelector("slot:not([name])"))?.assignedElements() ?? []).filter((e) => e.localName === "nldd-table-row"), n = t.length === 0 || t.every((e) => e.hasAttribute("hidden")), r = !!this.querySelector(":scope > [slot=\"empty\"]"), i = n && t.length > 0 && !!this.querySelector(":scope > [slot=\"no-results\"]");
|
|
209
|
+
e.toggleAttribute("hidden", !n), this.shadowRoot?.querySelector("slot[name=\"empty\"]")?.toggleAttribute("hidden", i), this.shadowRoot?.querySelector("slot[name=\"no-results\"]")?.toggleAttribute("hidden", !i), this.classList.toggle("is-empty", n), this.classList.toggle("is-blank", n && !i && !r), s(this, "empty", n && t.length === 0), s(this, "filtered", n && t.length > 0);
|
|
210
|
+
}
|
|
211
|
+
_activeColumns() {
|
|
212
|
+
let e = u();
|
|
213
|
+
return this._width <= d("smMax", e) ? this.smColumns || this.columns : this._width <= d("mdMax", e) ? this.mdColumns || this.columns : this.lgColumns || this.columns;
|
|
214
|
+
}
|
|
215
|
+
_applyColumns() {
|
|
216
|
+
let e = this._activeColumns();
|
|
217
|
+
e ? this.style.setProperty("--_table-columns", e) : this.style.removeProperty("--_table-columns");
|
|
218
|
+
}
|
|
219
|
+
_syncHostA11y() {
|
|
220
|
+
let e = getComputedStyle(this).overflowX;
|
|
221
|
+
(e === "auto" || e === "scroll") && this.scrollWidth > this.clientWidth ? this.setAttribute("tabindex", "0") : this.removeAttribute("tabindex"), this._syncLabel();
|
|
222
|
+
}
|
|
223
|
+
_syncLabel() {
|
|
224
|
+
this.setAttribute("aria-label", this.accessibleLabel || this._t("components.table.accessible-label"));
|
|
225
|
+
}
|
|
226
|
+
updated(e) {
|
|
227
|
+
if ((e.has("columns") || e.has("smColumns") || e.has("mdColumns") || e.has("lgColumns")) && this._applyColumns(), e.has("accessibleLabel") ? this._syncHostA11y() : this._syncLabel(), e.has("selectable")) for (let e of this.querySelectorAll("nldd-table-row")) e._syncAriaSelected();
|
|
228
|
+
}
|
|
229
|
+
render() {
|
|
230
|
+
return h();
|
|
231
|
+
}
|
|
232
|
+
}, v, y = (_.styles = p, _);
|
|
233
|
+
i([t({
|
|
234
|
+
reflect: !0,
|
|
235
|
+
converter: o("base")
|
|
236
|
+
})], y.prototype, "background", void 0), i([t({
|
|
237
|
+
reflect: !0,
|
|
238
|
+
converter: o("")
|
|
239
|
+
})], y.prototype, "columns", void 0), i([t({
|
|
240
|
+
reflect: !0,
|
|
241
|
+
attribute: "sm-columns",
|
|
242
|
+
converter: o("")
|
|
243
|
+
})], y.prototype, "smColumns", void 0), i([t({
|
|
244
|
+
reflect: !0,
|
|
245
|
+
attribute: "md-columns",
|
|
246
|
+
converter: o("")
|
|
247
|
+
})], y.prototype, "mdColumns", void 0), i([t({
|
|
248
|
+
reflect: !0,
|
|
249
|
+
attribute: "lg-columns",
|
|
250
|
+
converter: o("")
|
|
251
|
+
})], y.prototype, "lgColumns", void 0), i([t({
|
|
252
|
+
reflect: !0,
|
|
253
|
+
attribute: "accessible-label",
|
|
254
|
+
converter: o("")
|
|
255
|
+
})], y.prototype, "accessibleLabel", void 0), i([t({ type: Object })], y.prototype, "translations", void 0), i([t({
|
|
256
|
+
type: Boolean,
|
|
257
|
+
reflect: !0
|
|
258
|
+
})], y.prototype, "selectable", void 0), y = i([a("nldd-table")], y);
|
|
259
|
+
var b = (v = class extends n {
|
|
260
|
+
constructor(...e) {
|
|
261
|
+
super(...e), this.selected = !1, this._onSlotChangeBound = this._onSlotChange.bind(this);
|
|
262
|
+
}
|
|
263
|
+
connectedCallback() {
|
|
264
|
+
super.connectedCallback(), this.setAttribute("role", "row"), this._syncAriaSelected(), this._rowHeaderObserver = new MutationObserver(() => this._syncCellRoles()), this._rowHeaderObserver.observe(this, {
|
|
265
|
+
subtree: !0,
|
|
266
|
+
attributes: !0,
|
|
267
|
+
attributeFilter: ["row-header"]
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
disconnectedCallback() {
|
|
271
|
+
super.disconnectedCallback(), this._rowHeaderObserver?.disconnect(), this._rowHeaderObserver = void 0;
|
|
272
|
+
}
|
|
273
|
+
updated(e) {
|
|
274
|
+
e.has("selected") && this._syncAriaSelected();
|
|
275
|
+
}
|
|
276
|
+
get _isHeader() {
|
|
277
|
+
return this.getAttribute("slot") === "header";
|
|
278
|
+
}
|
|
279
|
+
_syncAriaSelected() {
|
|
280
|
+
!this._isHeader && this.closest("nldd-table")?.hasAttribute("selectable") === !0 ? this.setAttribute("aria-selected", String(this.selected)) : this.removeAttribute("aria-selected");
|
|
281
|
+
}
|
|
282
|
+
_onSlotChange(e) {
|
|
283
|
+
let t = e.target.assignedElements();
|
|
284
|
+
this._syncCellRoles();
|
|
285
|
+
for (let e of t) {
|
|
286
|
+
if (e.localName === "nldd-cell") {
|
|
287
|
+
let t = e.getAttribute("width");
|
|
288
|
+
(t === null || t === "" || t === "fit-content") && e.setAttribute("width", "full");
|
|
289
|
+
}
|
|
290
|
+
e.localName === "nldd-title-cell" && !e.hasAttribute("size") && e.size === void 0 && e.setAttribute("size", "6");
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
_syncCellRoles() {
|
|
294
|
+
let e = this.shadowRoot?.querySelector("slot");
|
|
295
|
+
for (let t of e?.assignedElements() ?? []) {
|
|
296
|
+
let e = "cell";
|
|
297
|
+
this._isHeader ? e = "columnheader" : t.hasAttribute("row-header") && (e = "rowheader"), t.setAttribute("role", e);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
render() {
|
|
301
|
+
return g(this._onSlotChangeBound);
|
|
302
|
+
}
|
|
303
|
+
}, v.styles = m, v);
|
|
304
|
+
i([t({
|
|
305
|
+
type: Boolean,
|
|
306
|
+
reflect: !0
|
|
307
|
+
})], b.prototype, "selected", void 0), b = i([a("nldd-table-row")], b);
|
|
308
|
+
export { y as NLDDTable, b as NLDDTableRow };
|
|
@@ -0,0 +1,306 @@
|
|
|
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
|
+
// src/components/content/tag/tag.styles.ts
|
|
9
|
+
var d = e`
|
|
10
|
+
:host {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/* # Host */
|
|
16
|
+
|
|
17
|
+
:host {
|
|
18
|
+
--_tag-corner-radius: var(--primitives-corner-radius-xs);
|
|
19
|
+
--_tag-background-color: var(--semantics-categories-neutral-tinted-background-color);
|
|
20
|
+
--_tag-min-height: var(--primitives-space-24);
|
|
21
|
+
--_tag-inline-padding: var(--primitives-space-6);
|
|
22
|
+
--_tag-gap: var(--primitives-space-3);
|
|
23
|
+
--_tag-content-color: var(--semantics-categories-neutral-tinted-content-color);
|
|
24
|
+
--_tag-border-color: var(--semantics-categories-neutral-tinted-highlight-border-color);
|
|
25
|
+
--_tag-border-width: var(--primitives-border-width-thin);
|
|
26
|
+
--_tag-font: var(--primitives-font-body-sm-medium-flat);
|
|
27
|
+
--_tag-icon-size: var(--primitives-space-16);
|
|
28
|
+
--_tag-icon-offset-correction: var(--primitives-space-1);
|
|
29
|
+
|
|
30
|
+
${u}
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
vertical-align: middle;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([size="sm"]) {
|
|
36
|
+
--_tag-corner-radius: var(--primitives-corner-radius-xxs);
|
|
37
|
+
--_tag-min-height: var(--primitives-space-20);
|
|
38
|
+
--_tag-inline-padding: var(--primitives-space-4);
|
|
39
|
+
--_tag-gap: var(--primitives-space-2);
|
|
40
|
+
--_tag-font: var(--primitives-font-body-xs-medium-flat);
|
|
41
|
+
--_tag-icon-size: var(--primitives-space-14);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* ## Color */
|
|
45
|
+
|
|
46
|
+
:host([color="accent"]) {
|
|
47
|
+
--_tag-background-color: var(--semantics-categories-accent-tinted-background-color);
|
|
48
|
+
--_tag-content-color: var(--semantics-categories-accent-tinted-content-color);
|
|
49
|
+
--_tag-border-color: var(--semantics-categories-accent-tinted-highlight-border-color);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([color="success"]) {
|
|
53
|
+
--_tag-background-color: var(--semantics-categories-success-tinted-background-color);
|
|
54
|
+
--_tag-content-color: var(--semantics-categories-success-tinted-content-color);
|
|
55
|
+
--_tag-border-color: var(--semantics-categories-success-tinted-highlight-border-color);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([color="warning"]) {
|
|
59
|
+
--_tag-background-color: var(--semantics-categories-warning-tinted-background-color);
|
|
60
|
+
--_tag-content-color: var(--semantics-categories-warning-tinted-content-color);
|
|
61
|
+
--_tag-border-color: var(--semantics-categories-warning-tinted-highlight-border-color);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([color="critical"]) {
|
|
65
|
+
--_tag-background-color: var(--semantics-categories-critical-tinted-background-color);
|
|
66
|
+
--_tag-content-color: var(--semantics-categories-critical-tinted-content-color);
|
|
67
|
+
--_tag-border-color: var(--semantics-categories-critical-tinted-highlight-border-color);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* ### Rijkskleuren */
|
|
71
|
+
|
|
72
|
+
:host([color="lintblauw"]) {
|
|
73
|
+
--_tag-background-color: var(--semantics-categories-lintblauw-tinted-background-color);
|
|
74
|
+
--_tag-content-color: var(--semantics-categories-lintblauw-tinted-content-color);
|
|
75
|
+
--_tag-border-color: var(--semantics-categories-lintblauw-tinted-highlight-border-color);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host([color="donkerblauw"]) {
|
|
79
|
+
--_tag-background-color: var(--semantics-categories-donkerblauw-tinted-background-color);
|
|
80
|
+
--_tag-content-color: var(--semantics-categories-donkerblauw-tinted-content-color);
|
|
81
|
+
--_tag-border-color: var(--semantics-categories-donkerblauw-tinted-highlight-border-color);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:host([color="hemelblauw"]) {
|
|
85
|
+
--_tag-background-color: var(--semantics-categories-hemelblauw-tinted-background-color);
|
|
86
|
+
--_tag-content-color: var(--semantics-categories-hemelblauw-tinted-content-color);
|
|
87
|
+
--_tag-border-color: var(--semantics-categories-hemelblauw-tinted-highlight-border-color);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host([color="lichtblauw"]) {
|
|
91
|
+
--_tag-background-color: var(--semantics-categories-lichtblauw-tinted-background-color);
|
|
92
|
+
--_tag-content-color: var(--semantics-categories-lichtblauw-tinted-content-color);
|
|
93
|
+
--_tag-border-color: var(--semantics-categories-lichtblauw-tinted-highlight-border-color);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([color="paars"]) {
|
|
97
|
+
--_tag-background-color: var(--semantics-categories-paars-tinted-background-color);
|
|
98
|
+
--_tag-content-color: var(--semantics-categories-paars-tinted-content-color);
|
|
99
|
+
--_tag-border-color: var(--semantics-categories-paars-tinted-highlight-border-color);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([color="violet"]) {
|
|
103
|
+
--_tag-background-color: var(--semantics-categories-violet-tinted-background-color);
|
|
104
|
+
--_tag-content-color: var(--semantics-categories-violet-tinted-content-color);
|
|
105
|
+
--_tag-border-color: var(--semantics-categories-violet-tinted-highlight-border-color);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:host([color="robijnrood"]) {
|
|
109
|
+
--_tag-background-color: var(--semantics-categories-robijnrood-tinted-background-color);
|
|
110
|
+
--_tag-content-color: var(--semantics-categories-robijnrood-tinted-content-color);
|
|
111
|
+
--_tag-border-color: var(--semantics-categories-robijnrood-tinted-highlight-border-color);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([color="roze"]) {
|
|
115
|
+
--_tag-background-color: var(--semantics-categories-roze-tinted-background-color);
|
|
116
|
+
--_tag-content-color: var(--semantics-categories-roze-tinted-content-color);
|
|
117
|
+
--_tag-border-color: var(--semantics-categories-roze-tinted-highlight-border-color);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([color="rood"]) {
|
|
121
|
+
--_tag-background-color: var(--semantics-categories-rood-tinted-background-color);
|
|
122
|
+
--_tag-content-color: var(--semantics-categories-rood-tinted-content-color);
|
|
123
|
+
--_tag-border-color: var(--semantics-categories-rood-tinted-highlight-border-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host([color="oranje"]) {
|
|
127
|
+
--_tag-background-color: var(--semantics-categories-oranje-tinted-background-color);
|
|
128
|
+
--_tag-content-color: var(--semantics-categories-oranje-tinted-content-color);
|
|
129
|
+
--_tag-border-color: var(--semantics-categories-oranje-tinted-highlight-border-color);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host([color="donkergeel"]) {
|
|
133
|
+
--_tag-background-color: var(--semantics-categories-donkergeel-tinted-background-color);
|
|
134
|
+
--_tag-content-color: var(--semantics-categories-donkergeel-tinted-content-color);
|
|
135
|
+
--_tag-border-color: var(--semantics-categories-donkergeel-tinted-highlight-border-color);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host([color="geel"]) {
|
|
139
|
+
--_tag-background-color: var(--semantics-categories-geel-tinted-background-color);
|
|
140
|
+
--_tag-content-color: var(--semantics-categories-geel-tinted-content-color);
|
|
141
|
+
--_tag-border-color: var(--semantics-categories-geel-tinted-highlight-border-color);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:host([color="donkerbruin"]) {
|
|
145
|
+
--_tag-background-color: var(--semantics-categories-donkerbruin-tinted-background-color);
|
|
146
|
+
--_tag-content-color: var(--semantics-categories-donkerbruin-tinted-content-color);
|
|
147
|
+
--_tag-border-color: var(--semantics-categories-donkerbruin-tinted-highlight-border-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:host([color="bruin"]) {
|
|
151
|
+
--_tag-background-color: var(--semantics-categories-bruin-tinted-background-color);
|
|
152
|
+
--_tag-content-color: var(--semantics-categories-bruin-tinted-content-color);
|
|
153
|
+
--_tag-border-color: var(--semantics-categories-bruin-tinted-highlight-border-color);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:host([color="donkergroen"]) {
|
|
157
|
+
--_tag-background-color: var(--semantics-categories-donkergroen-tinted-background-color);
|
|
158
|
+
--_tag-content-color: var(--semantics-categories-donkergroen-tinted-content-color);
|
|
159
|
+
--_tag-border-color: var(--semantics-categories-donkergroen-tinted-highlight-border-color);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
:host([color="groen"]) {
|
|
163
|
+
--_tag-background-color: var(--semantics-categories-groen-tinted-background-color);
|
|
164
|
+
--_tag-content-color: var(--semantics-categories-groen-tinted-content-color);
|
|
165
|
+
--_tag-border-color: var(--semantics-categories-groen-tinted-highlight-border-color);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:host([color="mosgroen"]) {
|
|
169
|
+
--_tag-background-color: var(--semantics-categories-mosgroen-tinted-background-color);
|
|
170
|
+
--_tag-content-color: var(--semantics-categories-mosgroen-tinted-content-color);
|
|
171
|
+
--_tag-border-color: var(--semantics-categories-mosgroen-tinted-highlight-border-color);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:host([color="mintgroen"]) {
|
|
175
|
+
--_tag-background-color: var(--semantics-categories-mintgroen-tinted-background-color);
|
|
176
|
+
--_tag-content-color: var(--semantics-categories-mintgroen-tinted-content-color);
|
|
177
|
+
--_tag-border-color: var(--semantics-categories-mintgroen-tinted-highlight-border-color);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:host([hidden]) {
|
|
181
|
+
display: none;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
/* # Block */
|
|
186
|
+
|
|
187
|
+
.tag {
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
display: inline-flex;
|
|
190
|
+
border-radius: var(--_tag-corner-radius);
|
|
191
|
+
/* Inset box-shadow rather than a border so the outline never adds to
|
|
192
|
+
the tag's size or shifts the text. */
|
|
193
|
+
box-shadow: inset 0 0 0 var(--_tag-border-width) var(--_tag-border-color);
|
|
194
|
+
background-color: var(--_tag-background-color);
|
|
195
|
+
min-height: var(--_tag-min-height);
|
|
196
|
+
padding: 0 var(--_tag-inline-padding);
|
|
197
|
+
gap: var(--_tag-gap);
|
|
198
|
+
align-items: center;
|
|
199
|
+
color: var(--_tag-content-color);
|
|
200
|
+
font: var(--_tag-font);
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@media (forced-colors: active) {
|
|
205
|
+
.tag {
|
|
206
|
+
border: var(--primitives-border-width-thin) solid CanvasText;
|
|
207
|
+
background-color: Canvas;
|
|
208
|
+
color: CanvasText;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
/* # Elements */
|
|
214
|
+
|
|
215
|
+
.tag__icon {
|
|
216
|
+
display: inline-flex;
|
|
217
|
+
margin-inline: calc((var(--_tag-min-height) - var(--_tag-icon-size)) / 2 - var(--_tag-inline-padding));
|
|
218
|
+
width: var(--_tag-icon-size);
|
|
219
|
+
height: var(--_tag-icon-size);
|
|
220
|
+
flex-shrink: 0;
|
|
221
|
+
align-items: center;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.tag__icon:has(+ .tag__text) {
|
|
225
|
+
margin-left: calc((var(--_tag-min-height) - var(--_tag-icon-size)) / 2 - var(--_tag-inline-padding) + var(--_tag-icon-offset-correction));
|
|
226
|
+
margin-right: 0;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.tag__text {
|
|
230
|
+
display: inline-block;
|
|
231
|
+
}
|
|
232
|
+
`;
|
|
233
|
+
// src/components/content/tag/tag.template.ts
|
|
234
|
+
function f(e) {
|
|
235
|
+
let t = e._effectiveVariant, n = t === "icon" || t === "icon-and-text" && e._hasIcon, r = (t === "text" || t === "icon-and-text") && e._hasText, o = t === "icon" && e._hasIcon && !!e.accessibleLabel;
|
|
236
|
+
return i`
|
|
237
|
+
<span class="tag"
|
|
238
|
+
role=${o ? "img" : a}
|
|
239
|
+
aria-label=${o ? e.accessibleLabel : a}
|
|
240
|
+
>
|
|
241
|
+
${n ? i`
|
|
242
|
+
<span class="tag__icon">
|
|
243
|
+
<slot name="icon">${e.icon ? i`<nldd-icon icon=${e.icon}></nldd-icon>` : t === "icon" ? i`<nldd-icon icon="icon-placeholder"></nldd-icon>` : a}</slot>
|
|
244
|
+
</span>
|
|
245
|
+
` : a}
|
|
246
|
+
${r ? i`
|
|
247
|
+
<span class="tag__text">
|
|
248
|
+
${e._hasSlotText ? a : e.text}<slot></slot>
|
|
249
|
+
</span>
|
|
250
|
+
` : a}
|
|
251
|
+
</span>
|
|
252
|
+
`;
|
|
253
|
+
}
|
|
254
|
+
// src/components/content/tag/tag.ts
|
|
255
|
+
var p = class extends r {
|
|
256
|
+
constructor(...e) {
|
|
257
|
+
super(...e), this.variant = "", this.color = "neutral", this.size = "md", this.text = "", this.icon = "", this.accessibleLabel = "", this._hasSlotText = !1, this._hasSlotIcon = !1;
|
|
258
|
+
}
|
|
259
|
+
get _hasText() {
|
|
260
|
+
return !!this.text || this._hasSlotText;
|
|
261
|
+
}
|
|
262
|
+
get _hasIcon() {
|
|
263
|
+
return !!this.icon || this._hasSlotIcon;
|
|
264
|
+
}
|
|
265
|
+
get _effectiveVariant() {
|
|
266
|
+
return this.variant ? this.variant : this._hasIcon && this._hasText ? "icon-and-text" : this._hasIcon ? "icon" : "text";
|
|
267
|
+
}
|
|
268
|
+
connectedCallback() {
|
|
269
|
+
super.connectedCallback(), this._updateSlotState(), this._childObserver = new MutationObserver(() => this._updateSlotState()), this._childObserver.observe(this, { childList: !0 });
|
|
270
|
+
}
|
|
271
|
+
disconnectedCallback() {
|
|
272
|
+
super.disconnectedCallback(), this._childObserver?.disconnect(), this._childObserver = void 0;
|
|
273
|
+
}
|
|
274
|
+
_updateSlotState() {
|
|
275
|
+
let e = !1, t = !1;
|
|
276
|
+
for (let n of Array.from(this.childNodes)) if (n.nodeType === Node.TEXT_NODE) n.textContent?.trim() && (e = !0);
|
|
277
|
+
else if (n.nodeType === Node.ELEMENT_NODE) {
|
|
278
|
+
let r = n.getAttribute("slot");
|
|
279
|
+
r === "icon" ? t = !0 : r || (e = !0);
|
|
280
|
+
}
|
|
281
|
+
this._hasSlotText = e, this._hasSlotIcon = t;
|
|
282
|
+
}
|
|
283
|
+
updated() {
|
|
284
|
+
l(this, "unnamed", this._effectiveVariant === "icon" && !this.accessibleLabel);
|
|
285
|
+
}
|
|
286
|
+
render() {
|
|
287
|
+
return f(this);
|
|
288
|
+
}
|
|
289
|
+
}, m = (p.styles = d, p);
|
|
290
|
+
o([t({
|
|
291
|
+
reflect: !0,
|
|
292
|
+
converter: c("")
|
|
293
|
+
})], m.prototype, "variant", void 0), o([t({
|
|
294
|
+
reflect: !0,
|
|
295
|
+
converter: c("neutral")
|
|
296
|
+
})], m.prototype, "color", void 0), o([t({
|
|
297
|
+
reflect: !0,
|
|
298
|
+
converter: c("md")
|
|
299
|
+
})], m.prototype, "size", void 0), o([t({
|
|
300
|
+
reflect: !0,
|
|
301
|
+
converter: c("")
|
|
302
|
+
})], m.prototype, "text", void 0), o([t({ type: String })], m.prototype, "icon", void 0), o([t({
|
|
303
|
+
type: String,
|
|
304
|
+
attribute: "accessible-label"
|
|
305
|
+
})], m.prototype, "accessibleLabel", void 0), o([n()], m.prototype, "_hasSlotText", void 0), o([n()], m.prototype, "_hasSlotIcon", void 0), m = o([s("nldd-tag")], m);
|
|
306
|
+
export { m as NLDDTag };
|