@nldd/design-system 0.20.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +361 -10
- package/dist/cdn/autoloader.js +181 -0
- package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
- package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
- package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
- package/dist/cdn/chunks/avatar-group-GinEMPm9.js +338 -0
- package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
- package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
- package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
- package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
- package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
- package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
- package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
- package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
- package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
- package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
- package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
- package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
- package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
- package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
- package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
- package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
- package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
- package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
- package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
- package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
- package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
- package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
- package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
- package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
- package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
- package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
- package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
- package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
- package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
- package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
- package/dist/cdn/chunks/combo-box-OywRKaWj.js +512 -0
- package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
- package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
- package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
- package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
- package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
- package/dist/cdn/chunks/date-field-vmZLo80s.js +662 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-CXDzSBoL.js +993 -0
- package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
- package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
- package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
- package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
- package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
- package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
- package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
- package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
- package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
- package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
- package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
- package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
- package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
- package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
- package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
- package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
- package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
- package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
- package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
- package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
- package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
- package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
- package/dist/cdn/chunks/document-tab-bar-A2DFWrP9.js +973 -0
- package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
- package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
- package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
- package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
- package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
- package/dist/cdn/chunks/file-field-DQ52qq5L.js +1484 -0
- package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
- package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
- package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
- package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
- package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
- package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
- package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
- package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
- package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
- package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
- package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
- package/dist/{components/icon-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
- package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
- package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
- package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
- package/dist/cdn/chunks/identity-BLXecYsZ.js +187 -0
- package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
- package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
- package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
- package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
- package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
- package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
- package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
- package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
- package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
- package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
- package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
- package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
- package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
- package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
- package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
- package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
- package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
- package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
- package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
- package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
- package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
- package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
- package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
- package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
- package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
- package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
- package/dist/cdn/chunks/menu-BtxzRedh.js +719 -0
- package/dist/cdn/chunks/menu-bar-BU3Hjk1b.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-C7LQ0NI_.js +365 -0
- package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
- package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
- package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
- package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
- package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
- package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
- package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
- package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
- package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
- package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
- package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
- package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
- package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
- package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
- package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
- package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
- package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
- package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
- package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
- package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
- package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
- package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
- package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
- package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
- package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
- package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
- package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
- package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
- package/dist/cdn/chunks/popover-CGbeEv_-.js +334 -0
- package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
- package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
- package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
- package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
- package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
- package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
- package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
- package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
- package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
- package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
- package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
- package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
- package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
- package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
- package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
- package/dist/cdn/chunks/return-focus-BzZWhXhc.js +57 -0
- package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
- package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
- package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
- package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
- package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
- package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
- package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
- package/dist/cdn/chunks/sheet-CqN7ViYV.js +340 -0
- package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
- package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
- package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
- package/dist/cdn/chunks/sidebar-section-CFPBdETU.js +353 -0
- package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
- package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
- package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
- package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
- package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
- package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
- package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
- package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
- package/dist/cdn/chunks/split-button-DH19p8So.js +268 -0
- package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
- package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
- package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
- package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
- package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
- package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
- package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
- package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
- package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
- package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
- package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
- package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
- package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
- package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
- package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
- package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
- package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
- package/dist/cdn/chunks/tab-bar-CA8K1XjU.js +697 -0
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
- package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
- package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
- package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
- package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
- package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
- package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
- package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
- package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
- package/dist/cdn/chunks/time-field--5K0YTcr.js +607 -0
- package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
- package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
- package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
- package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
- package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
- package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
- package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
- package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
- package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
- package/dist/cdn/chunks/token-field-BpyxOGmU.js +664 -0
- package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
- package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
- package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
- package/dist/cdn/chunks/toolbar-C24LqAzK.js +408 -0
- package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
- package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
- package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
- package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
- package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
- package/dist/cdn/chunks/top-navigation-bar-C_kLPVKD.js +925 -0
- package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
- package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
- package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
- package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
- package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
- package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
- package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
- package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
- package/dist/cdn/chunks/window-CxV6ELE9.js +227 -0
- package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
- package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
- package/dist/components/actions/menu/menu-item.d.ts +6 -2
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +12 -1
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.js +1 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +2 -1
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +1 -0
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +1 -0
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +1 -0
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +1 -0
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +1 -0
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +1 -0
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +1 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +1 -0
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +1 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +1 -0
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +1 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +1 -0
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +1 -0
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +1 -0
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +9 -4
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +20 -7
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +1 -0
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +23 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +68 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +4 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +17 -2
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +1 -0
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +15 -2
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +38 -3
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +1 -1
- package/dist/components/layout/container/container.template.js +1 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +4 -2
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +13 -3
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/nldd.min.js +729 -727
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +11 -3
- package/dist/utilities/autoloader.d.ts +33 -0
- package/dist/utilities/autoloader.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.d.ts +3 -0
- package/dist/utilities/autoloader.generated.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.js +141 -0
- package/dist/utilities/autoloader.generated.js.map +1 -0
- package/dist/utilities/autoloader.js +94 -0
- package/dist/utilities/autoloader.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +9 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +45 -3
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +12 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/loading-tags.d.ts +7 -0
- package/dist/utilities/loading-tags.d.ts.map +1 -0
- package/dist/utilities/loading-tags.js +7 -0
- package/dist/utilities/loading-tags.js.map +1 -0
- package/dist/utilities/owner-form.d.ts +3 -3
- package/dist/utilities/owner-form.d.ts.map +1 -1
- package/dist/utilities/owner-form.js +6 -3
- package/dist/utilities/owner-form.js.map +1 -1
- package/dist/utilities/return-focus.d.ts +14 -0
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +26 -8
- package/dist/utilities/return-focus.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +53 -1
- package/lint/format.js +6 -5
- package/lint/frontends.js +224 -16
- package/lint/linter.js +5 -3
- package/lint/main.js +36 -9
- package/lint/project.js +73 -4
- package/lint/rule-data.js +17 -2
- package/lint/tree.js +3 -0
- package/package.json +50 -11
- package/dist/components/breakpoints-DtL62nLI.js +0 -45
- package/dist/components/components.js +0 -68243
- package/dist/components/decorate-DD7uUxHb.js +0 -51
- package/dist/components/defer-focus-dzorHsCQ.js +0 -176
- package/dist/components/dev-checks-CLB9G43h.js +0 -2711
- package/dist/components/dist-245LaK9m.js +0 -1479
- package/dist/components/dist-BFZM0YsR.js +0 -15772
- package/dist/components/dist-BNkeFjc3.js +0 -1180
- package/dist/components/dist-CSC1dG3L.js +0 -365
- package/dist/components/dist-CeMOOqgP.js +0 -1509
- package/dist/components/dist-DFjwTlJV.js +0 -624
- package/dist/components/dist-DHhnz3Gv.js +0 -381
- package/dist/components/dist-PeUX4vPq.js +0 -2857
- package/dist/components/dist-m70B83qb.js +0 -463
- package/dist/components/element-state-BnarBv0M.js +0 -42
- package/dist/components/gherkin-DzYbEwDO.js +0 -107
- package/dist/components/icon-button-8gvQCwCW.js +0 -2305
- package/dist/components/input-modality-D_CY185R.js +0 -48
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
- package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
- package/dist/components/shell-Dh5IwHd-.js +0 -222
- package/dist/components/toml-D0Pix_8Q.js +0 -58
- package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { t as e } from "./button.i18n-BGFt7Z9u.js";
|
|
2
|
+
import { t } from "./activity-indicator.i18n-D7mCy6d2.js";
|
|
3
|
+
import { t as n } from "./icon-button.i18n-DpZOfIS4.js";
|
|
4
|
+
import { t as r } from "./menu.i18n-C6uYJsG3.js";
|
|
5
|
+
import { t as i } from "./split-button.i18n-DtClSMga.js";
|
|
6
|
+
import { t as a } from "./toolbar.i18n-QwS37CBC.js";
|
|
7
|
+
import { t as o } from "./avatar.i18n-CMwQjBkS.js";
|
|
8
|
+
import { t as s } from "./popover.i18n-DmFBHUvB.js";
|
|
9
|
+
import { t as c } from "./list.i18n-C40ltgdI.js";
|
|
10
|
+
import { t as l } from "./list-item.i18n-Br6J5Ev9.js";
|
|
11
|
+
import { t as u } from "./avatar-group.i18n-BYw_9wt_.js";
|
|
12
|
+
import { t as d } from "./code-viewer.i18n-BHfSDRbK.js";
|
|
13
|
+
import { t as f } from "./image.i18n-ONcm1h7o.js";
|
|
14
|
+
import { t as p } from "./rich-text.i18n-BlJ68YuU.js";
|
|
15
|
+
import { t as m } from "./token.i18n-RGD5zAtl.js";
|
|
16
|
+
import { t as h } from "./validation-list.i18n-CM6In8zD.js";
|
|
17
|
+
import { t as g } from "./combo-box.i18n-BorzYnJ2.js";
|
|
18
|
+
import { r as _ } from "./date-picker.i18n-Dsc_M5QK.js";
|
|
19
|
+
import { t as v } from "./date-field.i18n-BTzc0E9a.js";
|
|
20
|
+
import { t as y } from "./file-field.i18n-pDM7Utud.js";
|
|
21
|
+
import { t as b } from "./number-field.i18n-BS0bINWY.js";
|
|
22
|
+
import { t as x } from "./password-field.i18n-CzdBn-1b.js";
|
|
23
|
+
import { t as S } from "./search-field.i18n-B_Oc7hc-.js";
|
|
24
|
+
import { t as C } from "./slider.i18n-DVw0c8AG.js";
|
|
25
|
+
import { t as w } from "./stepper.i18n-COOAkaBl.js";
|
|
26
|
+
import { t as T } from "./swatch-picker.i18n-_G0nmnGe.js";
|
|
27
|
+
import { t as ee } from "./text-editor.i18n-sJKiRQ4i.js";
|
|
28
|
+
import { t as E } from "./time-picker.i18n-BilOCXlS.js";
|
|
29
|
+
import { t as D } from "./time-field.i18n-CLH5vmS7.js";
|
|
30
|
+
import { t as O } from "./token-field.i18n-BclzoR8F.js";
|
|
31
|
+
import { t as k } from "./card.i18n-CpafLm3i.js";
|
|
32
|
+
import { t as A } from "./collection.i18n-DqWPGnZO.js";
|
|
33
|
+
import { t as j } from "./kanban.i18n-CWqc3e0B.js";
|
|
34
|
+
import { t as M } from "./page-footer.i18n-pbdr4lN3.js";
|
|
35
|
+
import { t as N } from "./sidebar-section.i18n-BuGfRMpD.js";
|
|
36
|
+
import { t as P } from "./window.i18n-CsEnUPAk.js";
|
|
37
|
+
import { t as F } from "./drag-handle-cell.i18n-CKUrbm2q.js";
|
|
38
|
+
import { t as I } from "./list-item-segment.i18n-DHnrQL4V.js";
|
|
39
|
+
import { t as L } from "./table.i18n-Bmb_uw_w.js";
|
|
40
|
+
import { t as R } from "./breadcrumbs.i18n-zmO8jaTO.js";
|
|
41
|
+
import { t as z } from "./document-tab-bar.i18n-DKrA9TnB.js";
|
|
42
|
+
import { t as B } from "./link.i18n-DJPobGmu.js";
|
|
43
|
+
import { t as V } from "./menu-bar.i18n-BoMu4Eoz.js";
|
|
44
|
+
import { t as H } from "./pagination.i18n-QQMx14CQ.js";
|
|
45
|
+
import { t as U } from "./skip-link.i18n--PbEdAmJ.js";
|
|
46
|
+
import { t as W } from "./tab-bar.i18n-Crsc7ShA.js";
|
|
47
|
+
import { t as G } from "./top-navigation-bar.i18n-C-lcH1nB.js";
|
|
48
|
+
import { t as K } from "./badge.i18n-DqW7hLQj.js";
|
|
49
|
+
import { t as q } from "./banner.i18n-BOCM9rGN.js";
|
|
50
|
+
import { t as J } from "./just-in-time-education.i18n-CW_dsaxf.js";
|
|
51
|
+
import { t as Y } from "./notification.i18n-BKUSLN5c.js";
|
|
52
|
+
import { t as X } from "./progress-bar.i18n-Cr5miGTx.js";
|
|
53
|
+
import { t as Z } from "./progress-circle.i18n-CRrXuY4V.js";
|
|
54
|
+
import { t as Q } from "./step-bar.i18n-DocExlD7.js";
|
|
55
|
+
// src/translations/nl.generated.ts
|
|
56
|
+
var $ = {
|
|
57
|
+
...e,
|
|
58
|
+
...n,
|
|
59
|
+
...r,
|
|
60
|
+
...i,
|
|
61
|
+
...a,
|
|
62
|
+
...u,
|
|
63
|
+
...o,
|
|
64
|
+
...d,
|
|
65
|
+
...f,
|
|
66
|
+
...p,
|
|
67
|
+
...m,
|
|
68
|
+
...h,
|
|
69
|
+
...g,
|
|
70
|
+
...v,
|
|
71
|
+
..._,
|
|
72
|
+
...y,
|
|
73
|
+
...b,
|
|
74
|
+
...x,
|
|
75
|
+
...S,
|
|
76
|
+
...C,
|
|
77
|
+
...w,
|
|
78
|
+
...T,
|
|
79
|
+
...ee,
|
|
80
|
+
...D,
|
|
81
|
+
...E,
|
|
82
|
+
...O,
|
|
83
|
+
...k,
|
|
84
|
+
...A,
|
|
85
|
+
...j,
|
|
86
|
+
...M,
|
|
87
|
+
...N,
|
|
88
|
+
...s,
|
|
89
|
+
...P,
|
|
90
|
+
...F,
|
|
91
|
+
...I,
|
|
92
|
+
...l,
|
|
93
|
+
...c,
|
|
94
|
+
...L,
|
|
95
|
+
...R,
|
|
96
|
+
...z,
|
|
97
|
+
...B,
|
|
98
|
+
...V,
|
|
99
|
+
...H,
|
|
100
|
+
...U,
|
|
101
|
+
...W,
|
|
102
|
+
...G,
|
|
103
|
+
...t,
|
|
104
|
+
...K,
|
|
105
|
+
...q,
|
|
106
|
+
...J,
|
|
107
|
+
...Y,
|
|
108
|
+
...X,
|
|
109
|
+
...Z,
|
|
110
|
+
...Q
|
|
111
|
+
};
|
|
112
|
+
export { $ as default, $ as nl };
|
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import "./icon-BORlalt0.js";
|
|
2
|
+
import { a as e, i as t, n, t as r } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n as i, o as a, r as o, t as s } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import "./button-DO90Lo6q.js";
|
|
7
|
+
import { t as u } from "./with-translations-XX14GKFh.js";
|
|
8
|
+
import "./icon-button-rKiIHs7A.js";
|
|
9
|
+
import { t as d } from "./input-modality-XE0B7yCn.js";
|
|
10
|
+
import { t as f } from "./carried-context-DlMSujiJ.js";
|
|
11
|
+
import { n as p } from "./breakpoints-Cwor8TRP.js";
|
|
12
|
+
import { t as m } from "./notification.i18n-BKUSLN5c.js";
|
|
13
|
+
// src/components/status-and-feedback/notification/notification.styles.ts
|
|
14
|
+
var h = e(p.smMax), g = t`
|
|
15
|
+
:host {
|
|
16
|
+
--_notification-width: var(--primitives-area-400);
|
|
17
|
+
--_notification-stack-fanned: 0;
|
|
18
|
+
--_notification-stack-depth: 0;
|
|
19
|
+
--_notification-stack-base-offset: var(--primitives-space-6);
|
|
20
|
+
--_notification-stack-fan-offset: var(--primitives-space-6);
|
|
21
|
+
--_notification-stack-offset: calc(var(--_notification-stack-base-offset) + var(--_notification-stack-fan-offset) * var(--_notification-stack-fanned));
|
|
22
|
+
--_notification-stack-scale-step: 0.03;
|
|
23
|
+
--_notification-padding: var(--primitives-space-12);
|
|
24
|
+
--_notification-gap: var(--primitives-space-6);
|
|
25
|
+
--_notification-icon-color: var(--semantics-content-secondary-color);
|
|
26
|
+
--_notification-icon-size: var(--primitives-space-32);
|
|
27
|
+
--_notification-actions-margin-top: var(--primitives-space-4);
|
|
28
|
+
--_notification-actions-gap: var(--primitives-space-6);
|
|
29
|
+
--_notification-dismiss-inset: calc(var(--_notification-padding) - (var(--semantics-controls-sm-min-size) - var(--_notification-icon-size)) / 2);
|
|
30
|
+
--_notification-dismiss-space: calc(var(--_notification-dismiss-inset) + var(--semantics-controls-sm-min-size));
|
|
31
|
+
--_notification-corner-radius: var(--semantics-overlays-corner-radius);
|
|
32
|
+
--_notification-box-shadow: var(--semantics-overlays-box-shadow);
|
|
33
|
+
--_notification-background-color: var(--semantics-surfaces-base-background-color);
|
|
34
|
+
--_notification-text-font: var(--primitives-font-body-md-bold-tight);
|
|
35
|
+
--_notification-supporting-text-color: var(--semantics-content-secondary-color);
|
|
36
|
+
--_notification-supporting-text-font: var(--primitives-font-body-sm-regular-tight);
|
|
37
|
+
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
display: block;
|
|
40
|
+
border-radius: var(--_notification-corner-radius);
|
|
41
|
+
box-shadow: var(--_notification-box-shadow);
|
|
42
|
+
background-color: var(--_notification-background-color);
|
|
43
|
+
width: var(--_notification-width);
|
|
44
|
+
max-width: 100%;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
/* The region is a column with a max height, so without this the messages
|
|
47
|
+
squeeze to fit instead of letting the list scroll. */
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
translate: 0 calc(var(--_notification-stack-offset) * var(--_notification-stack-depth));
|
|
50
|
+
scale: calc(1 - var(--_notification-stack-scale-step) * var(--_notification-stack-depth)) 1;
|
|
51
|
+
transform-origin: top center;
|
|
52
|
+
transition: translate var(--primitives-transition-duration-medium) var(--primitives-transition-easing-default), scale var(--primitives-transition-duration-medium) var(--primitives-transition-easing-default);
|
|
53
|
+
animation: notification-arrive var(--primitives-transition-duration-medium) var(--primitives-transition-easing-default) both;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([variant="accent"]) {
|
|
57
|
+
--_notification-icon-color: var(--components-notification-icon-color);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([variant="success"]) {
|
|
61
|
+
--_notification-icon-color: var(--primitives-color-success-500);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([variant="warning"]) {
|
|
65
|
+
--_notification-icon-color: light-dark(var(--primitives-color-warning-350), var(--primitives-color-warning-250));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([variant="critical"]) {
|
|
69
|
+
--_notification-icon-color: var(--primitives-color-critical-500);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([hidden]) {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Off for good once it has arrived: a move between overlays reinserts the
|
|
77
|
+
element, and the browser would play the arrival again. */
|
|
78
|
+
:host([data-arrived]) {
|
|
79
|
+
animation: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (prefers-reduced-motion: reduce) {
|
|
83
|
+
:host {
|
|
84
|
+
transition: none;
|
|
85
|
+
animation: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/* # Element */
|
|
91
|
+
|
|
92
|
+
/* Hidden behind the front of the deck: the region cuts those to the height of
|
|
93
|
+
the one in front, and half a row of buttons along that edge reads as a
|
|
94
|
+
mistake rather than as a card further back. */
|
|
95
|
+
.notification {
|
|
96
|
+
display: flex;
|
|
97
|
+
position: relative;
|
|
98
|
+
opacity: calc(1 - var(--_notification-stack-depth));
|
|
99
|
+
transition: opacity var(--primitives-transition-duration-medium) var(--primitives-transition-easing-default);
|
|
100
|
+
padding: var(--_notification-padding);
|
|
101
|
+
padding-inline-end: var(--_notification-dismiss-space);
|
|
102
|
+
gap: var(--_notification-gap);
|
|
103
|
+
align-items: center;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Forced colors drop the shadow this floats on, so there it needs an edge. */
|
|
107
|
+
@media (forced-colors: active) {
|
|
108
|
+
.notification {
|
|
109
|
+
border: var(--primitives-border-width-regular) solid CanvasText;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
/* ## Icon */
|
|
115
|
+
|
|
116
|
+
.notification__icon {
|
|
117
|
+
display: flex;
|
|
118
|
+
align-self: flex-start;
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
color: var(--_notification-icon-color);
|
|
121
|
+
width: var(--_notification-icon-size);
|
|
122
|
+
height: var(--_notification-icon-size);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/* ## Main */
|
|
127
|
+
|
|
128
|
+
.notification__main {
|
|
129
|
+
display: flex;
|
|
130
|
+
min-width: 0;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
flex-grow: 1;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.notification__text {
|
|
136
|
+
margin: 0;
|
|
137
|
+
overflow-wrap: break-word;
|
|
138
|
+
color: var(--semantics-content-color);
|
|
139
|
+
font: var(--_notification-text-font);
|
|
140
|
+
text-wrap: pretty;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.notification__supporting-text {
|
|
144
|
+
margin: 0;
|
|
145
|
+
overflow-wrap: break-word;
|
|
146
|
+
color: var(--_notification-supporting-text-color);
|
|
147
|
+
font: var(--_notification-supporting-text-font);
|
|
148
|
+
text-wrap: pretty;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.notification__actions {
|
|
152
|
+
display: flex;
|
|
153
|
+
margin-top: var(--_notification-actions-margin-top);
|
|
154
|
+
flex-wrap: wrap;
|
|
155
|
+
gap: var(--_notification-actions-gap);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.notification__actions[hidden] {
|
|
159
|
+
display: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
/* ## Dismiss */
|
|
164
|
+
|
|
165
|
+
/* Out of the flow, so the button cannot make the notification taller than the
|
|
166
|
+
message in it. */
|
|
167
|
+
.notification__dismiss-button {
|
|
168
|
+
display: flex;
|
|
169
|
+
position: absolute;
|
|
170
|
+
top: var(--_notification-dismiss-inset);
|
|
171
|
+
right: var(--_notification-dismiss-inset);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
/* # Animation */
|
|
176
|
+
|
|
177
|
+
/* Past the inset, so it starts off the screen rather than at the margin. */
|
|
178
|
+
@keyframes notification-arrive {
|
|
179
|
+
from {
|
|
180
|
+
opacity: 0;
|
|
181
|
+
transform: translateX(calc(100% + var(--semantics-overlays-inset)));
|
|
182
|
+
}
|
|
183
|
+
to {
|
|
184
|
+
opacity: 1;
|
|
185
|
+
transform: none;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@keyframes notification-arrive-from-top {
|
|
190
|
+
from {
|
|
191
|
+
opacity: 0;
|
|
192
|
+
transform: translateY(calc(-100% - max(var(--semantics-overlays-inset), env(safe-area-inset-top))));
|
|
193
|
+
}
|
|
194
|
+
to {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
transform: none;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
/* # Responsive */
|
|
202
|
+
|
|
203
|
+
/* Full width at the top, so it drops in from there rather than crossing the screen. */
|
|
204
|
+
@media (max-width: ${h}) {
|
|
205
|
+
:host {
|
|
206
|
+
width: 100%;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
210
|
+
:host {
|
|
211
|
+
animation-name: notification-arrive-from-top;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
`;
|
|
216
|
+
// src/components/status-and-feedback/notification/notification.template.ts
|
|
217
|
+
function _(e) {
|
|
218
|
+
return a`
|
|
219
|
+
<div class="notification">
|
|
220
|
+
<div class="notification__icon"
|
|
221
|
+
aria-hidden="true"
|
|
222
|
+
>
|
|
223
|
+
<nldd-icon icon=${e._resolvedIcon}></nldd-icon>
|
|
224
|
+
</div>
|
|
225
|
+
<div class="notification__main">
|
|
226
|
+
${e.text ? a`
|
|
227
|
+
<p class="notification__text">
|
|
228
|
+
${e.text}
|
|
229
|
+
</p>
|
|
230
|
+
` : o}
|
|
231
|
+
${e.supportingText ? a`
|
|
232
|
+
<p class="notification__supporting-text">
|
|
233
|
+
${e.supportingText}
|
|
234
|
+
</p>
|
|
235
|
+
` : o}
|
|
236
|
+
<div class="notification__actions"
|
|
237
|
+
?hidden=${!e._hasActions}
|
|
238
|
+
>
|
|
239
|
+
<slot
|
|
240
|
+
name="actions"
|
|
241
|
+
@slotchange=${e._onActionsSlotChange}
|
|
242
|
+
></slot>
|
|
243
|
+
</div>
|
|
244
|
+
</div>
|
|
245
|
+
<div class="notification__dismiss-button">
|
|
246
|
+
<nldd-icon-button
|
|
247
|
+
icon="dismiss-small"
|
|
248
|
+
size="sm"
|
|
249
|
+
appearance="neutral-transparent"
|
|
250
|
+
tooltip-timing="never"
|
|
251
|
+
accessible-label=${e._t("components.notification.dismiss-action")}
|
|
252
|
+
@click=${e._handleDismiss}
|
|
253
|
+
></nldd-icon-button>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
`;
|
|
257
|
+
}
|
|
258
|
+
// src/components/status-and-feedback/notification/notifications-area.ts
|
|
259
|
+
var v = "nldd-notifications-area", y = 2, b = typeof matchMedia == "function" ? matchMedia(`(max-width: ${p.smMax})`) : null;
|
|
260
|
+
function x(e) {
|
|
261
|
+
e.style.left = b?.matches ? "max(var(--semantics-overlays-inset), env(safe-area-inset-left))" : "auto";
|
|
262
|
+
}
|
|
263
|
+
b?.addEventListener("change", () => {
|
|
264
|
+
let e = document.getElementById(v);
|
|
265
|
+
e && x(e);
|
|
266
|
+
});
|
|
267
|
+
var S = null, C = !1, w = [], T = null;
|
|
268
|
+
function E(e) {
|
|
269
|
+
let t = e.shadowRoot;
|
|
270
|
+
return t?.querySelector("slot[name=\"notifications\"]") ? t.querySelector("dialog")?.matches(":modal") ?? !1 : !1;
|
|
271
|
+
}
|
|
272
|
+
function D() {
|
|
273
|
+
for (; w.length;) {
|
|
274
|
+
let e = w[w.length - 1];
|
|
275
|
+
if (e.isConnected && E(e)) return e;
|
|
276
|
+
w.pop();
|
|
277
|
+
}
|
|
278
|
+
return document.body;
|
|
279
|
+
}
|
|
280
|
+
function O(e) {
|
|
281
|
+
let t = D();
|
|
282
|
+
if (e.parentElement === t) return;
|
|
283
|
+
let n = t !== document.body;
|
|
284
|
+
n ? e.setAttribute("slot", "notifications") : e.removeAttribute("slot"), n ? e.setAttribute("popover", "manual") : e.removeAttribute("popover");
|
|
285
|
+
let r = j(e);
|
|
286
|
+
r.forEach((e) => e._setMoving?.(!0)), t.appendChild(e), n && e.showPopover(), r.forEach((e) => e._setMoving?.(!1));
|
|
287
|
+
}
|
|
288
|
+
function k() {
|
|
289
|
+
let e = document.getElementById(v);
|
|
290
|
+
e && O(e);
|
|
291
|
+
}
|
|
292
|
+
function A() {
|
|
293
|
+
if (T) return;
|
|
294
|
+
T = new AbortController();
|
|
295
|
+
let { signal: e } = T;
|
|
296
|
+
document.querySelectorAll("*").forEach((e) => {
|
|
297
|
+
E(e) && w.push(e);
|
|
298
|
+
}), document.addEventListener("open", (e) => {
|
|
299
|
+
let t = e.target;
|
|
300
|
+
t && E(t) && (w.includes(t) || w.push(t), k());
|
|
301
|
+
}, { signal: e }), document.addEventListener("close", (e) => {
|
|
302
|
+
let t = e.target, n = t ? w.indexOf(t) : -1;
|
|
303
|
+
n !== -1 && (w.splice(n, 1), k());
|
|
304
|
+
}, {
|
|
305
|
+
capture: !0,
|
|
306
|
+
signal: e
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
typeof document < "u" && A();
|
|
310
|
+
function j(e) {
|
|
311
|
+
return Array.from(e.querySelectorAll(":scope > nldd-notification"));
|
|
312
|
+
}
|
|
313
|
+
function M(e) {
|
|
314
|
+
return e.querySelector(":scope > [data-expander]");
|
|
315
|
+
}
|
|
316
|
+
function N(e) {
|
|
317
|
+
let t = document.getElementById(v);
|
|
318
|
+
if (t) return t;
|
|
319
|
+
let n = document.createElement("div");
|
|
320
|
+
return n.id = v, n.style.cssText = "\n box-sizing: border-box;\n position: fixed;\n z-index: 1000;\n top: max(var(--semantics-overlays-inset), env(safe-area-inset-top));\n right: max(var(--semantics-overlays-inset), env(safe-area-inset-right));\n bottom: auto;\n left: auto;\n width: auto;\n display: grid;\n align-content: start;\n align-items: start;\n margin: 0;\n border: none;\n background: none;\n pointer-events: none;\n max-height: calc(100dvh - 2 * var(--semantics-overlays-inset));\n overflow: visible;\n padding: 0;\n color: inherit;\n ", x(n), n.addEventListener("pointerdown", () => {}, { passive: !0 }), n.addEventListener("focusin", () => {
|
|
321
|
+
d() && V(n, !0);
|
|
322
|
+
}), n.addEventListener("focusout", (e) => {
|
|
323
|
+
let t = e.relatedTarget;
|
|
324
|
+
t && d() && !n.contains(t) && V(n, !1);
|
|
325
|
+
}), n.setAttribute("role", "region"), n.setAttribute("aria-label", e), n.appendChild(P(n)), O(n), n;
|
|
326
|
+
}
|
|
327
|
+
function P(e) {
|
|
328
|
+
let t = document.createElement("div");
|
|
329
|
+
return t.dataset.expander = "", t.style.cssText = "\n display: none;\n position: relative;\n grid-area: 2 / 1;\n z-index: 1000;\n pointer-events: auto;\n height: var(--primitives-space-24);\n ", t.addEventListener("pointerenter", () => U(e, !0)), t.addEventListener("pointerleave", () => U(e, !1)), t.addEventListener("click", () => V(e, !0)), t;
|
|
330
|
+
}
|
|
331
|
+
function F(e, t) {
|
|
332
|
+
A();
|
|
333
|
+
let n = N(t);
|
|
334
|
+
O(n), e.style.pointerEvents = "auto", n.prepend(e), R(n);
|
|
335
|
+
}
|
|
336
|
+
function I(e) {
|
|
337
|
+
let t = document.getElementById(v);
|
|
338
|
+
t && e.parentElement === t && (j(t)[0] !== e && (e._setMoving?.(!0), t.prepend(e), e._setMoving?.(!1)), R(t));
|
|
339
|
+
}
|
|
340
|
+
function L(e) {
|
|
341
|
+
let t = document.getElementById(v);
|
|
342
|
+
t && (e.parentElement === t && t.removeChild(e), j(t).length === 0 ? (G(), document.removeEventListener("pointerdown", H, !0), C = !1, t.remove()) : R(t));
|
|
343
|
+
}
|
|
344
|
+
function R(e) {
|
|
345
|
+
let t = j(e);
|
|
346
|
+
t.length < 2 && (C = !1), e.style.display = C ? "flex" : "grid", e.style.flexDirection = C ? "column" : "", e.style.gap = C ? "var(--primitives-space-12)" : "", M(e).style.display = !C && t.length > 1 ? "block" : "none", t.forEach((e, n) => {
|
|
347
|
+
e.style.gridArea = C ? "" : "1 / 1", e.style.setProperty("--_notification-stack-depth", C ? "0" : String(Math.min(n, y))), e.style.zIndex = String(C ? n + 1 : t.length - n), e.style.visibility = !C && n > y ? "hidden" : "", e._setFront?.(!C && n === 0);
|
|
348
|
+
}), C ? (G(), t.forEach((e) => {
|
|
349
|
+
e.style.height = "";
|
|
350
|
+
}), z(e)) : (z(e), W(e, t[0]));
|
|
351
|
+
}
|
|
352
|
+
function z(e) {
|
|
353
|
+
B(e, !1), C && (e.scrollHeight <= e.clientHeight || B(e, !0));
|
|
354
|
+
}
|
|
355
|
+
function B(e, t) {
|
|
356
|
+
let n = "var(--semantics-overlays-inset)", r = "var(--primitives-space-48)";
|
|
357
|
+
e.style.overflow = t ? "auto" : "visible", e.style.overscrollBehavior = t ? "contain" : "", e.style.padding = t ? `${n} ${n} ${r} ${r}` : "0", e.style.margin = t ? `calc(-1 * ${n}) calc(-1 * ${n}) 0 calc(-1 * ${r})` : "0", e.style.maxHeight = t ? "100dvh" : `calc(100dvh - 2 * ${n})`;
|
|
358
|
+
}
|
|
359
|
+
function V(e, t) {
|
|
360
|
+
C !== t && (t && j(e).length < 2 || (C = t, t ? (U(e, !1), document.addEventListener("pointerdown", H, !0)) : document.removeEventListener("pointerdown", H, !0), R(e)));
|
|
361
|
+
}
|
|
362
|
+
function H(e) {
|
|
363
|
+
let t = document.getElementById(v);
|
|
364
|
+
t && (e.composedPath().includes(t) || V(t, !1));
|
|
365
|
+
}
|
|
366
|
+
function U(e, t) {
|
|
367
|
+
j(e).forEach((e) => {
|
|
368
|
+
e.style.setProperty("--_notification-stack-fanned", t ? "1" : "0");
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
function W(e, t) {
|
|
372
|
+
G(), t && (typeof ResizeObserver < "u" && (S = new ResizeObserver(() => K(e, t.offsetHeight)), S.observe(t)), K(e, t.offsetHeight));
|
|
373
|
+
}
|
|
374
|
+
function G() {
|
|
375
|
+
S?.disconnect(), S = null;
|
|
376
|
+
}
|
|
377
|
+
function K(e, t) {
|
|
378
|
+
j(e).forEach((e, n) => {
|
|
379
|
+
e.style.height = n === 0 ? "" : `${t}px`;
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
// src/components/status-and-feedback/notification/notification.ts
|
|
383
|
+
var q, J = /* @__PURE__ */ new Set(["notification-arrive", "notification-arrive-from-top"]), Y = {
|
|
384
|
+
neutral: "info-circle-filled",
|
|
385
|
+
accent: "info-circle-filled",
|
|
386
|
+
success: "check-mark-circle-filled",
|
|
387
|
+
warning: "exclamation-triangle-filled",
|
|
388
|
+
critical: "exclamation-circle-filled"
|
|
389
|
+
}, X = 1e4, Z = (q = class extends u(i, m) {
|
|
390
|
+
constructor(...e) {
|
|
391
|
+
super(...e), this.variant = "neutral", this.icon = "", this.text = "", this.supportingText = "", this.duration = X, this._hasActions = !1, this._isFront = !1, this._timer = null, this._timerStartedAt = 0, this._pointerInside = !1, this._focusInside = !1, this._moving = !1, this._remainingDuration = X, this._onActionsSlotChange = (e) => {
|
|
392
|
+
this._hasActions = e.target.assignedElements().length > 0;
|
|
393
|
+
}, this._onPointerMove = () => {
|
|
394
|
+
this._pointerInside || (this._pointerInside = !0, this._clearTimer());
|
|
395
|
+
}, this._onPointerLeave = () => {
|
|
396
|
+
this._pointerInside = !1, this._resumeTimer();
|
|
397
|
+
}, this._onAnimationEnd = (e) => {
|
|
398
|
+
e.target === this && J.has(e.animationName) && this.toggleAttribute("data-arrived", !0);
|
|
399
|
+
}, this._onFocusIn = () => {
|
|
400
|
+
this._focusInside = !0, this._clearTimer();
|
|
401
|
+
}, this._onFocusOut = (e) => {
|
|
402
|
+
this.contains(e.relatedTarget) || (this._focusInside = !1, this._resumeTimer());
|
|
403
|
+
}, this._resumeTimer = () => {
|
|
404
|
+
this._isFront && this._leavesOnItsOwn && this._timer === null && (this._pointerInside || this._focusInside || (this._timerStartedAt = Date.now(), this._timer = window.setTimeout(() => {
|
|
405
|
+
this._timer = null, this._dismiss();
|
|
406
|
+
}, this._remainingDuration)));
|
|
407
|
+
}, this._onKeyDown = (e) => {
|
|
408
|
+
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), this._dismiss());
|
|
409
|
+
}, this._handleDismiss = () => {
|
|
410
|
+
this._dismiss();
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
get _resolvedIcon() {
|
|
414
|
+
return this.icon || Y[this.variant];
|
|
415
|
+
}
|
|
416
|
+
get _leavesOnItsOwn() {
|
|
417
|
+
return this.variant !== "critical" && this.duration > 0;
|
|
418
|
+
}
|
|
419
|
+
static show(e) {
|
|
420
|
+
let t = document.createElement("nldd-notification"), n = () => t.remove();
|
|
421
|
+
return t._apply(e, n), t.addEventListener("dismiss", n), document.body.append(t), {
|
|
422
|
+
element: t,
|
|
423
|
+
dismiss: n,
|
|
424
|
+
update: (e) => {
|
|
425
|
+
t._apply(e, n), t.isConnected ? (t._restart(), I(t)) : document.body.append(t);
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
_apply(e, t) {
|
|
430
|
+
if (e.text !== void 0 && (this.text = e.text), e.supportingText !== void 0 && (this.supportingText = e.supportingText), e.variant !== void 0 && (this.variant = e.variant), e.icon !== void 0 && (this.icon = e.icon), e.duration !== void 0 && (this.duration = e.duration), e.actions !== void 0) {
|
|
431
|
+
this.querySelectorAll(":scope > [slot=\"actions\"]").forEach((e) => e.remove());
|
|
432
|
+
for (let n of e.actions) {
|
|
433
|
+
let e = document.createElement("nldd-button");
|
|
434
|
+
e.slot = "actions", e.setAttribute("size", "sm"), e.setAttribute("text", n.text), e.addEventListener("click", () => {
|
|
435
|
+
n.onClick?.(), t();
|
|
436
|
+
}), this.append(e);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
_restart() {
|
|
441
|
+
this._timer !== null && window.clearTimeout(this._timer), this._timer = null, this._remainingDuration = this.duration, this._resumeTimer();
|
|
442
|
+
}
|
|
443
|
+
connectedCallback() {
|
|
444
|
+
super.connectedCallback(), this.setAttribute("role", this.variant === "critical" ? "alert" : "status"), this._remainingDuration = this.duration, this.addEventListener("pointermove", this._onPointerMove), this.addEventListener("pointerleave", this._onPointerLeave), this.addEventListener("focusin", this._onFocusIn), this.addEventListener("focusout", this._onFocusOut), this.addEventListener("keydown", this._onKeyDown), this.addEventListener("animationend", this._onAnimationEnd), queueMicrotask(() => {
|
|
445
|
+
if (!this.isConnected || this._moving) return;
|
|
446
|
+
let e = document.getElementById("nldd-notifications-area");
|
|
447
|
+
this.parentElement !== e && (this._moving = !0, f(this, this.parentElement), F(this, this._t("components.notification.region-label")), this._moving = !1);
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
disconnectedCallback() {
|
|
451
|
+
super.disconnectedCallback(), !this._moving && (this._clearTimer(), this.removeEventListener("pointermove", this._onPointerMove), this.removeEventListener("pointerleave", this._onPointerLeave), this.removeEventListener("focusin", this._onFocusIn), this.removeEventListener("focusout", this._onFocusOut), this.removeEventListener("keydown", this._onKeyDown), this.removeEventListener("animationend", this._onAnimationEnd), this.removeAttribute("data-arrived"), L(this));
|
|
452
|
+
}
|
|
453
|
+
willUpdate(e) {
|
|
454
|
+
super.willUpdate(e), e.has("variant") && this.setAttribute("role", this.variant === "critical" ? "alert" : "status"), e.has("duration") && (this._remainingDuration = this.duration);
|
|
455
|
+
}
|
|
456
|
+
_setMoving(e) {
|
|
457
|
+
this._moving = e, e && this.toggleAttribute("data-arrived", !0);
|
|
458
|
+
}
|
|
459
|
+
_setFront(e) {
|
|
460
|
+
this._isFront !== e && (this._isFront = e, e ? this._resumeTimer() : this._clearTimer());
|
|
461
|
+
}
|
|
462
|
+
_clearTimer() {
|
|
463
|
+
this._timer !== null && (window.clearTimeout(this._timer), this._timer = null, this._remainingDuration = Math.max(0, this._remainingDuration - (Date.now() - this._timerStartedAt)));
|
|
464
|
+
}
|
|
465
|
+
_dismiss() {
|
|
466
|
+
this._clearTimer(), this.dispatchEvent(new CustomEvent("dismiss", {
|
|
467
|
+
bubbles: !0,
|
|
468
|
+
composed: !0
|
|
469
|
+
}));
|
|
470
|
+
}
|
|
471
|
+
render() {
|
|
472
|
+
return _(this);
|
|
473
|
+
}
|
|
474
|
+
}, q.styles = g, q);
|
|
475
|
+
s([n({
|
|
476
|
+
reflect: !0,
|
|
477
|
+
converter: l("neutral")
|
|
478
|
+
})], Z.prototype, "variant", void 0), s([n({
|
|
479
|
+
reflect: !0,
|
|
480
|
+
converter: l("")
|
|
481
|
+
})], Z.prototype, "icon", void 0), s([n({
|
|
482
|
+
reflect: !0,
|
|
483
|
+
converter: l("")
|
|
484
|
+
})], Z.prototype, "text", void 0), s([n({
|
|
485
|
+
reflect: !0,
|
|
486
|
+
attribute: "supporting-text",
|
|
487
|
+
converter: l("")
|
|
488
|
+
})], Z.prototype, "supportingText", void 0), s([n({
|
|
489
|
+
reflect: !0,
|
|
490
|
+
converter: l(X)
|
|
491
|
+
})], Z.prototype, "duration", void 0), s([r()], Z.prototype, "_hasActions", void 0), s([r()], Z.prototype, "_isFront", void 0), Z = s([c("nldd-notification")], Z);
|
|
492
|
+
export { Z as NLDDNotification };
|