@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,323 @@
|
|
|
1
|
+
import "./icon-BORlalt0.js";
|
|
2
|
+
import { i as e, n as t } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n, o as r, r as i, t as a } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { t as c } from "./shadow-resets-6SToDsPu.js";
|
|
7
|
+
import { t as l } from "./with-translations-XX14GKFh.js";
|
|
8
|
+
import { t as u } from "./badge.i18n-DqW7hLQj.js";
|
|
9
|
+
// src/components/status-and-feedback/badge/badge.styles.ts
|
|
10
|
+
var d = e`
|
|
11
|
+
:host {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/* # Host */
|
|
17
|
+
|
|
18
|
+
:host {
|
|
19
|
+
--_badge-custom-color: transparent;
|
|
20
|
+
--_badge-background-color: light-dark(var(--primitives-color-critical-650), var(--primitives-color-critical-450));
|
|
21
|
+
--_badge-border-color: light-dark(var(--primitives-color-critical-600), var(--primitives-color-critical-500));
|
|
22
|
+
--_badge-border-width: var(--primitives-border-width-thin);
|
|
23
|
+
--_badge-height: var(--primitives-space-20);
|
|
24
|
+
--_badge-inline-padding: var(--primitives-space-6);
|
|
25
|
+
--_badge-gap: var(--primitives-space-3);
|
|
26
|
+
--_badge-content-color: light-dark(var(--primitives-color-critical-0), var(--primitives-color-critical-1000));
|
|
27
|
+
--_badge-font: var(--primitives-font-body-xs-medium-flat);
|
|
28
|
+
--_badge-dot-size: var(--primitives-space-12);
|
|
29
|
+
--_badge-icon-size: var(--primitives-space-14);
|
|
30
|
+
--_badge-icon-offset-correction: var(--primitives-space-1);
|
|
31
|
+
--_badge-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
32
|
+
--_badge-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
33
|
+
--_badge-pulse-spread: var(--primitives-space-8);
|
|
34
|
+
--_badge-pulse-duration: 1.5s;
|
|
35
|
+
--_badge-corner-radius: var(--primitives-corner-radius-full);
|
|
36
|
+
|
|
37
|
+
${c}
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
vertical-align: middle;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([size="sm"]) {
|
|
43
|
+
--_badge-pulse-spread: var(--primitives-space-6);
|
|
44
|
+
--_badge-height: var(--primitives-space-16);
|
|
45
|
+
--_badge-inline-padding: var(--primitives-space-4);
|
|
46
|
+
--_badge-gap: var(--primitives-space-2);
|
|
47
|
+
--_badge-font: var(--primitives-font-body-xxs-medium-flat);
|
|
48
|
+
--_badge-dot-size: var(--primitives-space-8);
|
|
49
|
+
--_badge-icon-size: var(--primitives-space-12);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ## Color */
|
|
53
|
+
|
|
54
|
+
/* color on the host, for the same reason as custom-color below: the contrast
|
|
55
|
+
token reads currentColor, so without this the flip is computed against the
|
|
56
|
+
inherited color while the fill comes from the context channel. A row that
|
|
57
|
+
sets the channel to white over dark text then paints white on white. */
|
|
58
|
+
:host([color="inherit"]) {
|
|
59
|
+
color: var(--context-content-color, currentColor);
|
|
60
|
+
|
|
61
|
+
--_badge-background-color: currentColor;
|
|
62
|
+
--_badge-border-color: transparent;
|
|
63
|
+
--_badge-content-color: var(--semantics-content-contrast-color);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([color="accent"]),
|
|
67
|
+
:host([data-color-fallback]) {
|
|
68
|
+
--_badge-background-color: var(--components-badge-accent-background-color);
|
|
69
|
+
--_badge-border-color: var(--components-badge-accent-highlight-border-color);
|
|
70
|
+
--_badge-content-color: var(--components-badge-accent-content-color);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:host([color="neutral"]) {
|
|
74
|
+
--_badge-background-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-450));
|
|
75
|
+
--_badge-border-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-500));
|
|
76
|
+
--_badge-content-color: light-dark(var(--primitives-color-neutral-0), var(--primitives-color-neutral-1000));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host([color="warning"]) {
|
|
80
|
+
--_badge-background-color: light-dark(var(--primitives-color-warning-300), var(--primitives-color-warning-700));
|
|
81
|
+
--_badge-border-color: light-dark(var(--primitives-color-warning-400), var(--primitives-color-warning-600));
|
|
82
|
+
--_badge-content-color: light-dark(var(--primitives-color-warning-1000), var(--primitives-color-warning-0));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([color="success"]) {
|
|
86
|
+
--_badge-background-color: var(--primitives-color-success-500);
|
|
87
|
+
--_badge-border-color: var(--primitives-color-success-550);
|
|
88
|
+
--_badge-content-color: light-dark(var(--primitives-color-success-0), var(--primitives-color-success-1000));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/* ## Custom color */
|
|
93
|
+
|
|
94
|
+
/* color on the host rather than on the fill: the contrast token reads
|
|
95
|
+
currentColor, so the text lands on black or white without a second formula
|
|
96
|
+
to keep in step. After every [color] rule, so it wins over one. */
|
|
97
|
+
:host([custom-color]) {
|
|
98
|
+
color: var(--_badge-custom-color);
|
|
99
|
+
|
|
100
|
+
--_badge-background-color: var(--_badge-custom-color);
|
|
101
|
+
--_badge-border-color: transparent;
|
|
102
|
+
--_badge-content-color: var(--semantics-content-contrast-color);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:host([hidden]) {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/* # Block */
|
|
111
|
+
|
|
112
|
+
.badge {
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
position: relative;
|
|
116
|
+
border-radius: var(--_badge-corner-radius);
|
|
117
|
+
box-shadow:
|
|
118
|
+
0 0 0 var(--_badge-ring-thickness) var(--_badge-ring-color),
|
|
119
|
+
inset 0 0 0 var(--_badge-border-width) var(--_badge-border-color);
|
|
120
|
+
background-color: var(--_badge-background-color);
|
|
121
|
+
min-width: var(--_badge-height);
|
|
122
|
+
height: var(--_badge-height);
|
|
123
|
+
padding: 0 var(--_badge-inline-padding);
|
|
124
|
+
gap: var(--_badge-gap);
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
font: var(--_badge-font);
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media (forced-colors: active) {
|
|
132
|
+
.badge {
|
|
133
|
+
border: 1px solid CanvasText;
|
|
134
|
+
background-color: Canvas;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.badge__icon,
|
|
138
|
+
.badge__text {
|
|
139
|
+
color: CanvasText;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* A growing box-shadow rather than a scale: scaling multiplies, so a wide
|
|
144
|
+
badge would throw a halo that is far wider than it is tall. A spread adds
|
|
145
|
+
the same distance on every side, whatever the badge measures.
|
|
146
|
+
|
|
147
|
+
Painted after the badge, so the ring passes over the contrast border the
|
|
148
|
+
badge draws in the surface color instead of starting behind it. The
|
|
149
|
+
element itself is transparent (the ring is the shadow, which paints
|
|
150
|
+
outside the box), so nothing covers the badge's own fill or text. */
|
|
151
|
+
.badge__pulse {
|
|
152
|
+
position: absolute;
|
|
153
|
+
inset: 0;
|
|
154
|
+
border-radius: inherit;
|
|
155
|
+
box-shadow: 0 0 0 0 var(--_badge-background-color);
|
|
156
|
+
pointer-events: none;
|
|
157
|
+
animation: badge-pulse var(--_badge-pulse-duration) infinite;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* The ring rides on the shadow's own color rather than on the element's
|
|
161
|
+
opacity: at spread zero the shadow has no area, so it can start at full
|
|
162
|
+
strength without a flash, and it is already transparent when the spread
|
|
163
|
+
snaps back for the next cycle. Same shape as Shoelace's badge pulse. */
|
|
164
|
+
@keyframes badge-pulse {
|
|
165
|
+
0% {
|
|
166
|
+
box-shadow: 0 0 0 0 var(--_badge-background-color);
|
|
167
|
+
}
|
|
168
|
+
70% {
|
|
169
|
+
box-shadow: 0 0 0 var(--_badge-pulse-spread) transparent;
|
|
170
|
+
}
|
|
171
|
+
100% {
|
|
172
|
+
box-shadow: 0 0 0 0 transparent;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* The ring is decoration on top of a badge that is visible anyway, so it
|
|
177
|
+
simply goes away rather than pulsing its opacity in place. */
|
|
178
|
+
@media (prefers-reduced-motion: reduce) {
|
|
179
|
+
.badge__pulse {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Forced colors paints the badge in system colors; a ring in the same
|
|
185
|
+
Canvas would read as a second, half-drawn badge. */
|
|
186
|
+
@media (forced-colors: active) {
|
|
187
|
+
.badge__pulse {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.badge--dot {
|
|
193
|
+
min-width: var(--_badge-dot-size);
|
|
194
|
+
width: var(--_badge-dot-size);
|
|
195
|
+
height: var(--_badge-dot-size);
|
|
196
|
+
padding: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.badge--icon-only {
|
|
200
|
+
min-width: var(--_badge-height);
|
|
201
|
+
width: var(--_badge-height);
|
|
202
|
+
padding: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
/* # Elements */
|
|
207
|
+
|
|
208
|
+
/* The content carries the content color, not .badge itself: the fill is a
|
|
209
|
+
custom property that resolves where it is used, and a fill of currentColor
|
|
210
|
+
on an element that also sets color would take that color instead of the
|
|
211
|
+
one around it. Mirrors nldd-avatar. */
|
|
212
|
+
.badge__icon {
|
|
213
|
+
color: var(--_badge-content-color);
|
|
214
|
+
display: inline-flex;
|
|
215
|
+
width: var(--_badge-icon-size);
|
|
216
|
+
height: var(--_badge-icon-size);
|
|
217
|
+
flex-shrink: 0;
|
|
218
|
+
align-items: center;
|
|
219
|
+
justify-content: center;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.badge__icon:has(+ .badge__text) {
|
|
223
|
+
margin-left: calc((var(--_badge-height) - var(--_badge-icon-size)) / 2 - var(--_badge-inline-padding) + var(--_badge-icon-offset-correction));
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.badge__icon nldd-icon {
|
|
227
|
+
width: 100%;
|
|
228
|
+
height: 100%;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.badge__text {
|
|
232
|
+
color: var(--_badge-content-color);
|
|
233
|
+
display: inline-block;
|
|
234
|
+
}
|
|
235
|
+
`;
|
|
236
|
+
// src/components/status-and-feedback/badge/badge.template.ts
|
|
237
|
+
function f(e) {
|
|
238
|
+
let t = [];
|
|
239
|
+
e._isDot && t.push("badge--dot"), e._isIconOnly && t.push("badge--icon-only");
|
|
240
|
+
let n = ["badge", ...t].join(" "), a = !e.decorative && (e._isDot || e._isIconOnly);
|
|
241
|
+
return r`
|
|
242
|
+
<span class=${n}
|
|
243
|
+
role=${a ? "img" : i}
|
|
244
|
+
aria-label=${a ? e._ariaLabel : i}
|
|
245
|
+
aria-hidden=${e.decorative ? "true" : i}
|
|
246
|
+
>
|
|
247
|
+
${e.pulse ? r`<span class="badge__pulse"></span>` : ""}
|
|
248
|
+
${e.icon ? r`
|
|
249
|
+
<span class="badge__icon">
|
|
250
|
+
<nldd-icon icon=${e.icon}></nldd-icon>
|
|
251
|
+
</span>
|
|
252
|
+
` : ""}
|
|
253
|
+
${e._hasText ? r`<span class="badge__text">${e._displayValue}</span>` : ""}
|
|
254
|
+
</span>
|
|
255
|
+
`;
|
|
256
|
+
}
|
|
257
|
+
// src/components/status-and-feedback/badge/badge.ts
|
|
258
|
+
var p, m = /* @__PURE__ */ new Set([
|
|
259
|
+
"critical",
|
|
260
|
+
"accent",
|
|
261
|
+
"neutral",
|
|
262
|
+
"warning",
|
|
263
|
+
"success",
|
|
264
|
+
"inherit"
|
|
265
|
+
]), h = (p = class extends l(n, u) {
|
|
266
|
+
constructor(...e) {
|
|
267
|
+
super(...e), this.size = "md", this.color = "critical", this.customColor = "", this.pulse = !1, this.text = "", this.number = void 0, this.max = 99, this.icon = "", this.accessibleLabel = "", this.decorative = !1;
|
|
268
|
+
}
|
|
269
|
+
willUpdate(e) {
|
|
270
|
+
e.has("color") && this.toggleAttribute("data-color-fallback", !m.has(this.color));
|
|
271
|
+
}
|
|
272
|
+
updated(e) {
|
|
273
|
+
e.has("customColor") && (this.customColor ? this.style.setProperty("--_badge-custom-color", this.customColor) : this.style.removeProperty("--_badge-custom-color"));
|
|
274
|
+
}
|
|
275
|
+
get _hasText() {
|
|
276
|
+
return !!this.text || typeof this.number == "number";
|
|
277
|
+
}
|
|
278
|
+
get _isDot() {
|
|
279
|
+
return !this._hasText && !this.icon;
|
|
280
|
+
}
|
|
281
|
+
get _isIconOnly() {
|
|
282
|
+
return !!this.icon && !this._hasText;
|
|
283
|
+
}
|
|
284
|
+
get _displayValue() {
|
|
285
|
+
return this.text ? this.text : typeof this.number == "number" ? this.number > this.max ? `${this.max}+` : String(this.number) : "";
|
|
286
|
+
}
|
|
287
|
+
get _ariaLabel() {
|
|
288
|
+
return this.accessibleLabel ? this.accessibleLabel : this._hasText ? this._displayValue : this._t("components.badge.notification-label");
|
|
289
|
+
}
|
|
290
|
+
render() {
|
|
291
|
+
return f(this);
|
|
292
|
+
}
|
|
293
|
+
}, p.styles = d, p);
|
|
294
|
+
a([t({
|
|
295
|
+
reflect: !0,
|
|
296
|
+
converter: s("md")
|
|
297
|
+
})], h.prototype, "size", void 0), a([t({
|
|
298
|
+
reflect: !0,
|
|
299
|
+
converter: s("critical")
|
|
300
|
+
})], h.prototype, "color", void 0), a([t({
|
|
301
|
+
reflect: !0,
|
|
302
|
+
attribute: "custom-color",
|
|
303
|
+
converter: s("")
|
|
304
|
+
})], h.prototype, "customColor", void 0), a([t({
|
|
305
|
+
type: Boolean,
|
|
306
|
+
reflect: !0
|
|
307
|
+
})], h.prototype, "pulse", void 0), a([t({
|
|
308
|
+
reflect: !0,
|
|
309
|
+
converter: s("")
|
|
310
|
+
})], h.prototype, "text", void 0), a([t({
|
|
311
|
+
type: Number,
|
|
312
|
+
reflect: !0
|
|
313
|
+
})], h.prototype, "number", void 0), a([t({
|
|
314
|
+
reflect: !0,
|
|
315
|
+
converter: s(99)
|
|
316
|
+
})], h.prototype, "max", void 0), a([t({ type: String })], h.prototype, "icon", void 0), a([t({
|
|
317
|
+
type: String,
|
|
318
|
+
attribute: "accessible-label"
|
|
319
|
+
})], h.prototype, "accessibleLabel", void 0), a([t({
|
|
320
|
+
type: Boolean,
|
|
321
|
+
reflect: !0
|
|
322
|
+
})], h.prototype, "decorative", void 0), h = a([o("nldd-badge")], h);
|
|
323
|
+
export { h as NLDDBadge };
|
|
@@ -0,0 +1,325 @@
|
|
|
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 "./button-group-BYGPPLmZ.js";
|
|
7
|
+
import { t as l } from "./shadow-resets-6SToDsPu.js";
|
|
8
|
+
import { t as u } from "./translations-wxBSz213.js";
|
|
9
|
+
import "./icon-button-rKiIHs7A.js";
|
|
10
|
+
import { t as d } from "./banner.i18n-BOCM9rGN.js";
|
|
11
|
+
// src/components/status-and-feedback/banner/banner.styles.ts
|
|
12
|
+
var f = e`
|
|
13
|
+
:host {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* # Host
|
|
19
|
+
*
|
|
20
|
+
* The visual framework lives on .banner, not :host: outer-document rules
|
|
21
|
+
* (a consumer's universal reset) beat normal :host declarations per CSS
|
|
22
|
+
* Scoping. The host only keeps the external contract. */
|
|
23
|
+
|
|
24
|
+
:host {
|
|
25
|
+
--_banner-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
26
|
+
--_banner-padding: var(--primitives-space-12);
|
|
27
|
+
--_banner-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
28
|
+
--_banner-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
29
|
+
--_banner-border-width: var(--primitives-border-width-thin);
|
|
30
|
+
--_banner-icon-color: var(--primitives-color-neutral-750);
|
|
31
|
+
--_banner-icon-size: var(--primitives-space-32);
|
|
32
|
+
--_banner-content-color: var(--semantics-content-color);
|
|
33
|
+
--_banner-text-icon-offset: calc((var(--_banner-icon-size) - var(--primitives-font-size-100) * var(--primitives-line-height-tight)) / 2);
|
|
34
|
+
--_banner-column-gap: var(--primitives-space-8);
|
|
35
|
+
--_banner-dismiss-inset: 0px;
|
|
36
|
+
--_banner-dismissible-padding-right: calc(var(--_banner-dismiss-inset) + var(--semantics-controls-md-min-size));
|
|
37
|
+
--_banner-main-gap: var(--primitives-space-8);
|
|
38
|
+
--_banner-actions-gap: var(--primitives-space-4);
|
|
39
|
+
|
|
40
|
+
${l}
|
|
41
|
+
display: block;
|
|
42
|
+
width: 100%;
|
|
43
|
+
color: var(--_banner-content-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([hidden]) {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* The dismiss slot narrows with the icon-button the template swaps in, so
|
|
51
|
+
the reserved right padding tracks the control size rather than a fixed
|
|
52
|
+
value. --_banner-text-icon-offset follows --_banner-icon-size on its own.
|
|
53
|
+
|
|
54
|
+
--_banner-dismiss-inset pulls the 32px button up until its center sits on the
|
|
55
|
+
24px icon's center (8 - (32 - 24) / 2 = 4), and the same value on the
|
|
56
|
+
right gives the button equal air on both sides of its corner. */
|
|
57
|
+
|
|
58
|
+
:host([size="sm"]) {
|
|
59
|
+
--_banner-padding: var(--primitives-space-8);
|
|
60
|
+
--_banner-icon-size: var(--primitives-space-24);
|
|
61
|
+
--_banner-column-gap: var(--primitives-space-4);
|
|
62
|
+
--_banner-dismiss-inset: calc(var(--_banner-padding) - (var(--semantics-controls-sm-min-size) - var(--_banner-icon-size)) / 2);
|
|
63
|
+
--_banner-dismissible-padding-right: calc(var(--_banner-dismiss-inset) + var(--semantics-controls-sm-min-size));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([variant="accent"]) {
|
|
67
|
+
--_banner-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
68
|
+
--_banner-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
69
|
+
--_banner-icon-color: var(--components-banner-accent-icon-color);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([variant="success"]) {
|
|
73
|
+
--_banner-background-color: var(--semantics-surfaces-success-tinted-background-color);
|
|
74
|
+
--_banner-border-color: var(--semantics-surfaces-success-tinted-highlight-border-color);
|
|
75
|
+
--_banner-icon-color: light-dark(var(--primitives-color-success-550), var(--primitives-color-success-650));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host([variant="warning"]) {
|
|
79
|
+
--_banner-background-color: var(--semantics-surfaces-warning-tinted-background-color);
|
|
80
|
+
--_banner-border-color: var(--semantics-surfaces-warning-tinted-highlight-border-color);
|
|
81
|
+
--_banner-icon-color: light-dark(var(--primitives-color-warning-450), var(--primitives-color-warning-650));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:host([variant="critical"]) {
|
|
85
|
+
--_banner-background-color: var(--semantics-surfaces-critical-tinted-background-color);
|
|
86
|
+
--_banner-border-color: var(--semantics-surfaces-critical-tinted-highlight-border-color);
|
|
87
|
+
--_banner-icon-color: var(--primitives-color-critical-600);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* # Block */
|
|
91
|
+
|
|
92
|
+
.banner {
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
display: grid;
|
|
95
|
+
position: relative;
|
|
96
|
+
border-radius: var(--_banner-corner-radius);
|
|
97
|
+
box-shadow: inset 0 0 0 var(--_banner-border-width) var(--_banner-border-color);
|
|
98
|
+
background-color: var(--_banner-background-color);
|
|
99
|
+
padding: var(--_banner-padding);
|
|
100
|
+
grid-template-columns: auto 1fr;
|
|
101
|
+
gap: var(--_banner-column-gap);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host([dismissible]) .banner {
|
|
105
|
+
padding-right: var(--_banner-dismissible-padding-right);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media (forced-colors: active) {
|
|
109
|
+
.banner {
|
|
110
|
+
border: var(--_banner-border-width) solid CanvasText;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/* # Icon */
|
|
116
|
+
|
|
117
|
+
.banner__icon {
|
|
118
|
+
display: flex;
|
|
119
|
+
grid-column: 1;
|
|
120
|
+
grid-row: 1;
|
|
121
|
+
width: var(--_banner-icon-size);
|
|
122
|
+
align-items: flex-start;
|
|
123
|
+
color: var(--_banner-icon-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/* # Main */
|
|
128
|
+
|
|
129
|
+
.banner__main {
|
|
130
|
+
display: flex;
|
|
131
|
+
grid-column: 2;
|
|
132
|
+
grid-row: 1;
|
|
133
|
+
min-width: 0;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
gap: var(--_banner-main-gap);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.banner__heading {
|
|
139
|
+
display: flex;
|
|
140
|
+
padding-top: var(--_banner-text-icon-offset);
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.banner__heading:has(.banner__supporting-text) {
|
|
145
|
+
padding-top: calc(var(--_banner-text-icon-offset) - var(--primitives-space-2));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* A banner carries text it did not write: a server message, an identifier, a
|
|
149
|
+
URL. One token longer than the banner is wide would otherwise run past the
|
|
150
|
+
edge and get clipped, so a word that cannot fit on a line of its own is
|
|
151
|
+
broken rather than lost. */
|
|
152
|
+
.banner__text {
|
|
153
|
+
margin: 0;
|
|
154
|
+
overflow-wrap: break-word;
|
|
155
|
+
font: var(--primitives-font-body-md-bold-tight);
|
|
156
|
+
text-wrap: pretty;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.banner__supporting-text {
|
|
160
|
+
margin: 0;
|
|
161
|
+
overflow-wrap: break-word;
|
|
162
|
+
font: var(--primitives-font-body-md-regular-tight);
|
|
163
|
+
text-wrap: pretty;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.banner__content {
|
|
167
|
+
display: contents;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.banner__content[hidden] {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.banner__actions {
|
|
175
|
+
display: flex;
|
|
176
|
+
margin-top: var(--_banner-actions-gap);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.banner__actions[hidden] {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
/* # Dismiss */
|
|
185
|
+
|
|
186
|
+
.banner__dismiss-button {
|
|
187
|
+
display: flex;
|
|
188
|
+
position: absolute;
|
|
189
|
+
top: var(--_banner-dismiss-inset);
|
|
190
|
+
right: var(--_banner-dismiss-inset);
|
|
191
|
+
}
|
|
192
|
+
`;
|
|
193
|
+
// src/components/status-and-feedback/banner/banner.template.ts
|
|
194
|
+
function p(e) {
|
|
195
|
+
return i`
|
|
196
|
+
<div class="banner">
|
|
197
|
+
<div class="banner__icon"
|
|
198
|
+
aria-hidden="true"
|
|
199
|
+
>
|
|
200
|
+
<nldd-icon icon=${e._resolvedIcon}></nldd-icon>
|
|
201
|
+
</div>
|
|
202
|
+
<div class="banner__main">
|
|
203
|
+
${e.text || e.supportingText ? i`
|
|
204
|
+
<div class="banner__heading">
|
|
205
|
+
${e.text ? ((t) => {
|
|
206
|
+
switch (e.headingLevel) {
|
|
207
|
+
case 1: return i`<h1 class="banner__text">${t}</h1>`;
|
|
208
|
+
case 2: return i`<h2 class="banner__text">${t}</h2>`;
|
|
209
|
+
case 3: return i`<h3 class="banner__text">${t}</h3>`;
|
|
210
|
+
case 4: return i`<h4 class="banner__text">${t}</h4>`;
|
|
211
|
+
case 5: return i`<h5 class="banner__text">${t}</h5>`;
|
|
212
|
+
case 6: return i`<h6 class="banner__text">${t}</h6>`;
|
|
213
|
+
default: return i`<p class="banner__text">${t}</p>`;
|
|
214
|
+
}
|
|
215
|
+
})(e.text) : a}
|
|
216
|
+
${e.supportingText ? i`
|
|
217
|
+
<p class="banner__supporting-text">${e.supportingText}</p>
|
|
218
|
+
` : a}
|
|
219
|
+
</div>
|
|
220
|
+
` : a}
|
|
221
|
+
<div class="banner__content"
|
|
222
|
+
?hidden=${!e._hasContent}
|
|
223
|
+
>
|
|
224
|
+
<slot></slot>
|
|
225
|
+
</div>
|
|
226
|
+
<div class="banner__actions"
|
|
227
|
+
?hidden=${!e._hasActions}
|
|
228
|
+
>
|
|
229
|
+
<nldd-button-group orientation="horizontal" size="sm">
|
|
230
|
+
<slot name="actions"></slot>
|
|
231
|
+
</nldd-button-group>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
${e.dismissible ? i`
|
|
235
|
+
<div class="banner__dismiss-button">
|
|
236
|
+
<nldd-icon-button
|
|
237
|
+
icon="dismiss-small"
|
|
238
|
+
appearance="neutral-transparent"
|
|
239
|
+
size=${e.size}
|
|
240
|
+
accessible-label=${e._t("components.banner.dismiss-action")}
|
|
241
|
+
@click=${e._onDismissClick}
|
|
242
|
+
></nldd-icon-button>
|
|
243
|
+
</div>
|
|
244
|
+
` : a}
|
|
245
|
+
</div>
|
|
246
|
+
`;
|
|
247
|
+
}
|
|
248
|
+
// src/components/status-and-feedback/banner/banner.ts
|
|
249
|
+
var m, h = {
|
|
250
|
+
neutral: "info-circle-filled",
|
|
251
|
+
accent: "info-circle-filled",
|
|
252
|
+
success: "check-mark-circle-filled",
|
|
253
|
+
warning: "exclamation-triangle-filled",
|
|
254
|
+
critical: "exclamation-circle-filled"
|
|
255
|
+
}, g = (m = class extends r {
|
|
256
|
+
constructor(...e) {
|
|
257
|
+
super(...e), this.variant = "neutral", this.size = "md", this.icon = "", this.text = "", this.supportingText = "", this.headingLevel = null, this.dismissible = !1, this.translations = {}, this._hasContent = !1, this._hasActions = !1;
|
|
258
|
+
}
|
|
259
|
+
_t(e) {
|
|
260
|
+
return u(this.translations, d, e);
|
|
261
|
+
}
|
|
262
|
+
get _resolvedIcon() {
|
|
263
|
+
return this.icon || h[this.variant];
|
|
264
|
+
}
|
|
265
|
+
updated(e) {
|
|
266
|
+
e.has("variant") && this._applyAriaForVariant(this.variant);
|
|
267
|
+
}
|
|
268
|
+
_applyAriaForVariant(e) {
|
|
269
|
+
e === "critical" ? (this.setAttribute("role", "alert"), this.removeAttribute("aria-live")) : (this.setAttribute("role", "status"), this.setAttribute("aria-live", "polite")), this.setAttribute("aria-atomic", "true");
|
|
270
|
+
}
|
|
271
|
+
_attachSlotListeners() {
|
|
272
|
+
let e = this.shadowRoot?.querySelector("slot:not([name])"), t = this.shadowRoot?.querySelector("slot[name=\"actions\"]");
|
|
273
|
+
if (!e && !t) return;
|
|
274
|
+
let n = (e) => (e?.assignedNodes({ flatten: !0 }) ?? []).some((e) => e.nodeType === Node.ELEMENT_NODE || e.nodeType === Node.TEXT_NODE && (e.textContent?.trim() ?? "") !== "");
|
|
275
|
+
this._syncContent = () => {
|
|
276
|
+
this._hasContent = n(e);
|
|
277
|
+
}, this._syncActions = () => {
|
|
278
|
+
this._hasActions = n(t);
|
|
279
|
+
}, e?.addEventListener("slotchange", this._syncContent), t?.addEventListener("slotchange", this._syncActions), this._syncContent(), this._syncActions();
|
|
280
|
+
}
|
|
281
|
+
firstUpdated() {
|
|
282
|
+
this._attachSlotListeners();
|
|
283
|
+
}
|
|
284
|
+
connectedCallback() {
|
|
285
|
+
super.connectedCallback(), this._applyAriaForVariant(this.variant), this.shadowRoot && !this._syncContent && this._attachSlotListeners();
|
|
286
|
+
}
|
|
287
|
+
disconnectedCallback() {
|
|
288
|
+
let e = this.shadowRoot?.querySelector("slot:not([name])"), t = this.shadowRoot?.querySelector("slot[name=\"actions\"]");
|
|
289
|
+
this._syncContent && e?.removeEventListener("slotchange", this._syncContent), this._syncActions && t?.removeEventListener("slotchange", this._syncActions), this._syncContent = void 0, this._syncActions = void 0, super.disconnectedCallback();
|
|
290
|
+
}
|
|
291
|
+
_onDismissClick() {
|
|
292
|
+
this.dispatchEvent(new CustomEvent("dismiss", {
|
|
293
|
+
bubbles: !0,
|
|
294
|
+
composed: !0
|
|
295
|
+
}));
|
|
296
|
+
}
|
|
297
|
+
render() {
|
|
298
|
+
return p(this);
|
|
299
|
+
}
|
|
300
|
+
}, m.styles = f, m);
|
|
301
|
+
o([t({
|
|
302
|
+
reflect: !0,
|
|
303
|
+
converter: c("neutral")
|
|
304
|
+
})], g.prototype, "variant", void 0), o([t({
|
|
305
|
+
reflect: !0,
|
|
306
|
+
converter: c("md")
|
|
307
|
+
})], g.prototype, "size", void 0), o([t({
|
|
308
|
+
reflect: !0,
|
|
309
|
+
converter: c("")
|
|
310
|
+
})], g.prototype, "icon", void 0), o([t({
|
|
311
|
+
reflect: !0,
|
|
312
|
+
converter: c("")
|
|
313
|
+
})], g.prototype, "text", void 0), o([t({
|
|
314
|
+
reflect: !0,
|
|
315
|
+
attribute: "supporting-text",
|
|
316
|
+
converter: c("")
|
|
317
|
+
})], g.prototype, "supportingText", void 0), o([t({
|
|
318
|
+
type: Number,
|
|
319
|
+
reflect: !0,
|
|
320
|
+
attribute: "heading-level"
|
|
321
|
+
})], g.prototype, "headingLevel", void 0), o([t({
|
|
322
|
+
type: Boolean,
|
|
323
|
+
reflect: !0
|
|
324
|
+
})], g.prototype, "dismissible", void 0), o([t({ type: Object })], g.prototype, "translations", void 0), o([n()], g.prototype, "_hasContent", void 0), o([n()], g.prototype, "_hasActions", void 0), g = o([s("nldd-banner")], g);
|
|
325
|
+
export { g as NLDDBanner };
|