@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
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
// node_modules/@codemirror/legacy-modes/mode/shell.js
|
|
2
|
-
var words = {};
|
|
3
|
-
function define(style, dict) {
|
|
4
|
-
for (var i = 0; i < dict.length; i++) words[dict[i]] = style;
|
|
5
|
-
}
|
|
6
|
-
var commonAtoms = ["true", "false"];
|
|
7
|
-
var commonKeywords = [
|
|
8
|
-
"if",
|
|
9
|
-
"then",
|
|
10
|
-
"do",
|
|
11
|
-
"else",
|
|
12
|
-
"elif",
|
|
13
|
-
"while",
|
|
14
|
-
"until",
|
|
15
|
-
"for",
|
|
16
|
-
"in",
|
|
17
|
-
"esac",
|
|
18
|
-
"fi",
|
|
19
|
-
"fin",
|
|
20
|
-
"fil",
|
|
21
|
-
"done",
|
|
22
|
-
"exit",
|
|
23
|
-
"set",
|
|
24
|
-
"unset",
|
|
25
|
-
"export",
|
|
26
|
-
"function"
|
|
27
|
-
];
|
|
28
|
-
var commonCommands = [
|
|
29
|
-
"ab",
|
|
30
|
-
"awk",
|
|
31
|
-
"bash",
|
|
32
|
-
"beep",
|
|
33
|
-
"cat",
|
|
34
|
-
"cc",
|
|
35
|
-
"cd",
|
|
36
|
-
"chown",
|
|
37
|
-
"chmod",
|
|
38
|
-
"chroot",
|
|
39
|
-
"clear",
|
|
40
|
-
"cp",
|
|
41
|
-
"curl",
|
|
42
|
-
"cut",
|
|
43
|
-
"diff",
|
|
44
|
-
"echo",
|
|
45
|
-
"find",
|
|
46
|
-
"gawk",
|
|
47
|
-
"gcc",
|
|
48
|
-
"get",
|
|
49
|
-
"git",
|
|
50
|
-
"grep",
|
|
51
|
-
"hg",
|
|
52
|
-
"kill",
|
|
53
|
-
"killall",
|
|
54
|
-
"ln",
|
|
55
|
-
"ls",
|
|
56
|
-
"make",
|
|
57
|
-
"mkdir",
|
|
58
|
-
"openssl",
|
|
59
|
-
"mv",
|
|
60
|
-
"nc",
|
|
61
|
-
"nl",
|
|
62
|
-
"node",
|
|
63
|
-
"npm",
|
|
64
|
-
"ping",
|
|
65
|
-
"ps",
|
|
66
|
-
"restart",
|
|
67
|
-
"rm",
|
|
68
|
-
"rmdir",
|
|
69
|
-
"sed",
|
|
70
|
-
"service",
|
|
71
|
-
"sh",
|
|
72
|
-
"shopt",
|
|
73
|
-
"shred",
|
|
74
|
-
"source",
|
|
75
|
-
"sort",
|
|
76
|
-
"sleep",
|
|
77
|
-
"ssh",
|
|
78
|
-
"start",
|
|
79
|
-
"stop",
|
|
80
|
-
"su",
|
|
81
|
-
"sudo",
|
|
82
|
-
"svn",
|
|
83
|
-
"tee",
|
|
84
|
-
"telnet",
|
|
85
|
-
"top",
|
|
86
|
-
"touch",
|
|
87
|
-
"vi",
|
|
88
|
-
"vim",
|
|
89
|
-
"wall",
|
|
90
|
-
"wc",
|
|
91
|
-
"wget",
|
|
92
|
-
"who",
|
|
93
|
-
"write",
|
|
94
|
-
"yes",
|
|
95
|
-
"zsh"
|
|
96
|
-
];
|
|
97
|
-
define("atom", commonAtoms);
|
|
98
|
-
define("keyword", commonKeywords);
|
|
99
|
-
define("builtin", commonCommands);
|
|
100
|
-
function tokenBase(stream, state) {
|
|
101
|
-
if (stream.eatSpace()) return null;
|
|
102
|
-
var sol = stream.sol();
|
|
103
|
-
var ch = stream.next();
|
|
104
|
-
if (ch === "\\") {
|
|
105
|
-
stream.next();
|
|
106
|
-
return null;
|
|
107
|
-
}
|
|
108
|
-
if (ch === "'" || ch === "\"" || ch === "`") {
|
|
109
|
-
state.tokens.unshift(tokenString(ch, ch === "`" ? "quote" : "string"));
|
|
110
|
-
return tokenize(stream, state);
|
|
111
|
-
}
|
|
112
|
-
if (ch === "#") {
|
|
113
|
-
if (sol && stream.eat("!")) {
|
|
114
|
-
stream.skipToEnd();
|
|
115
|
-
return "meta";
|
|
116
|
-
}
|
|
117
|
-
stream.skipToEnd();
|
|
118
|
-
return "comment";
|
|
119
|
-
}
|
|
120
|
-
if (ch === "$") {
|
|
121
|
-
state.tokens.unshift(tokenDollar);
|
|
122
|
-
return tokenize(stream, state);
|
|
123
|
-
}
|
|
124
|
-
if (ch === "+" || ch === "=") return "operator";
|
|
125
|
-
if (ch === "-") {
|
|
126
|
-
stream.eat("-");
|
|
127
|
-
stream.eatWhile(/\w/);
|
|
128
|
-
return "attribute";
|
|
129
|
-
}
|
|
130
|
-
if (ch == "<") {
|
|
131
|
-
if (stream.match("<<")) return "operator";
|
|
132
|
-
var heredoc = stream.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);
|
|
133
|
-
if (heredoc) {
|
|
134
|
-
state.tokens.unshift(tokenHeredoc(heredoc[1] || heredoc[2]));
|
|
135
|
-
return "string.special";
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
if (/\d/.test(ch)) {
|
|
139
|
-
stream.eatWhile(/\d/);
|
|
140
|
-
if (stream.eol() || !/\w/.test(stream.peek())) return "number";
|
|
141
|
-
}
|
|
142
|
-
stream.eatWhile(/[\w-]/);
|
|
143
|
-
var cur = stream.current();
|
|
144
|
-
if (stream.peek() === "=" && /\w+/.test(cur)) return "def";
|
|
145
|
-
return words.hasOwnProperty(cur) ? words[cur] : null;
|
|
146
|
-
}
|
|
147
|
-
function tokenString(quote, style) {
|
|
148
|
-
var close = quote == "(" ? ")" : quote == "{" ? "}" : quote;
|
|
149
|
-
return function(stream, state) {
|
|
150
|
-
var next, escaped = false;
|
|
151
|
-
while ((next = stream.next()) != null) {
|
|
152
|
-
if (next === close && !escaped) {
|
|
153
|
-
state.tokens.shift();
|
|
154
|
-
break;
|
|
155
|
-
} else if (next === "$" && !escaped && quote !== "'" && stream.peek() != close) {
|
|
156
|
-
escaped = true;
|
|
157
|
-
stream.backUp(1);
|
|
158
|
-
state.tokens.unshift(tokenDollar);
|
|
159
|
-
break;
|
|
160
|
-
} else if (!escaped && quote !== close && next === quote) {
|
|
161
|
-
state.tokens.unshift(tokenString(quote, style));
|
|
162
|
-
return tokenize(stream, state);
|
|
163
|
-
} else if (!escaped && /['"]/.test(next) && !/['"]/.test(quote)) {
|
|
164
|
-
state.tokens.unshift(tokenStringStart(next, "string"));
|
|
165
|
-
stream.backUp(1);
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
escaped = !escaped && next === "\\";
|
|
169
|
-
}
|
|
170
|
-
return style;
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function tokenStringStart(quote, style) {
|
|
174
|
-
return function(stream, state) {
|
|
175
|
-
state.tokens[0] = tokenString(quote, style);
|
|
176
|
-
stream.next();
|
|
177
|
-
return tokenize(stream, state);
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
var tokenDollar = function(stream, state) {
|
|
181
|
-
if (state.tokens.length > 1) stream.eat("$");
|
|
182
|
-
var ch = stream.next();
|
|
183
|
-
if (/['"({]/.test(ch)) {
|
|
184
|
-
state.tokens[0] = tokenString(ch, ch == "(" ? "quote" : ch == "{" ? "def" : "string");
|
|
185
|
-
return tokenize(stream, state);
|
|
186
|
-
}
|
|
187
|
-
if (!/\d/.test(ch)) stream.eatWhile(/\w/);
|
|
188
|
-
state.tokens.shift();
|
|
189
|
-
return "def";
|
|
190
|
-
};
|
|
191
|
-
function tokenHeredoc(delim) {
|
|
192
|
-
return function(stream, state) {
|
|
193
|
-
if (stream.sol() && stream.string == delim) state.tokens.shift();
|
|
194
|
-
stream.skipToEnd();
|
|
195
|
-
return "string.special";
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
function tokenize(stream, state) {
|
|
199
|
-
return (state.tokens[0] || tokenBase)(stream, state);
|
|
200
|
-
}
|
|
201
|
-
var shell = {
|
|
202
|
-
name: "shell",
|
|
203
|
-
startState: function() {
|
|
204
|
-
return { tokens: [] };
|
|
205
|
-
},
|
|
206
|
-
token: function(stream, state) {
|
|
207
|
-
return tokenize(stream, state);
|
|
208
|
-
},
|
|
209
|
-
languageData: {
|
|
210
|
-
autocomplete: commonAtoms.concat(commonKeywords, commonCommands),
|
|
211
|
-
closeBrackets: { brackets: [
|
|
212
|
-
"(",
|
|
213
|
-
"[",
|
|
214
|
-
"{",
|
|
215
|
-
"'",
|
|
216
|
-
"\"",
|
|
217
|
-
"`"
|
|
218
|
-
] },
|
|
219
|
-
commentTokens: { line: "#" }
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
export { shell };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// node_modules/@codemirror/legacy-modes/mode/toml.js
|
|
2
|
-
var toml = {
|
|
3
|
-
name: "toml",
|
|
4
|
-
startState: function() {
|
|
5
|
-
return {
|
|
6
|
-
inString: false,
|
|
7
|
-
stringType: "",
|
|
8
|
-
lhs: true,
|
|
9
|
-
inArray: 0
|
|
10
|
-
};
|
|
11
|
-
},
|
|
12
|
-
token: function(stream, state) {
|
|
13
|
-
let quote;
|
|
14
|
-
if (!state.inString && (quote = stream.match(/^('''|"""|'|")/))) {
|
|
15
|
-
state.stringType = quote[0];
|
|
16
|
-
state.inString = true;
|
|
17
|
-
}
|
|
18
|
-
if (stream.sol() && !state.inString && state.inArray === 0) state.lhs = true;
|
|
19
|
-
if (state.inString) {
|
|
20
|
-
while (state.inString) if (stream.match(state.stringType)) state.inString = false;
|
|
21
|
-
else if (stream.peek() === "\\") {
|
|
22
|
-
stream.next();
|
|
23
|
-
stream.next();
|
|
24
|
-
} else if (stream.eol()) break;
|
|
25
|
-
else stream.match(/^.[^\\\"\']*/);
|
|
26
|
-
return state.lhs ? "property" : "string";
|
|
27
|
-
} else if (state.inArray && stream.peek() === "]") {
|
|
28
|
-
stream.next();
|
|
29
|
-
state.inArray--;
|
|
30
|
-
return "bracket";
|
|
31
|
-
} else if (state.lhs && stream.peek() === "[" && stream.skipTo("]")) {
|
|
32
|
-
stream.next();
|
|
33
|
-
if (stream.peek() === "]") stream.next();
|
|
34
|
-
return "atom";
|
|
35
|
-
} else if (stream.peek() === "#") {
|
|
36
|
-
stream.skipToEnd();
|
|
37
|
-
return "comment";
|
|
38
|
-
} else if (stream.eatSpace()) return null;
|
|
39
|
-
else if (state.lhs && stream.eatWhile(function(c) {
|
|
40
|
-
return c != "=" && c != " ";
|
|
41
|
-
})) return "property";
|
|
42
|
-
else if (state.lhs && stream.peek() === "=") {
|
|
43
|
-
stream.next();
|
|
44
|
-
state.lhs = false;
|
|
45
|
-
return null;
|
|
46
|
-
} else if (!state.lhs && stream.match(/^\d\d\d\d[\d\-\:\.T]*Z/)) return "atom";
|
|
47
|
-
else if (!state.lhs && (stream.match("true") || stream.match("false"))) return "atom";
|
|
48
|
-
else if (!state.lhs && stream.peek() === "[") {
|
|
49
|
-
state.inArray++;
|
|
50
|
-
stream.next();
|
|
51
|
-
return "bracket";
|
|
52
|
-
} else if (!state.lhs && stream.match(/^\-?\d+(?:\.\d+)?/)) return "number";
|
|
53
|
-
else if (!stream.eatSpace()) stream.next();
|
|
54
|
-
return null;
|
|
55
|
-
},
|
|
56
|
-
languageData: { commentTokens: { line: "#" } }
|
|
57
|
-
};
|
|
58
|
-
export { toml };
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { t as __decorate } from "./decorate-DD7uUxHb.js";
|
|
2
|
-
import { n as queryBreakpoints } from "./breakpoints-DtL62nLI.js";
|
|
3
|
-
import { css, unsafeCSS } from "lit";
|
|
4
|
-
import { property } from "lit/decorators.js";
|
|
5
|
-
// src/utilities/visibility-mixin.styles.ts
|
|
6
|
-
var smMax = unsafeCSS(queryBreakpoints.smMax);
|
|
7
|
-
var mdMin = unsafeCSS(queryBreakpoints.mdMin);
|
|
8
|
-
var mdMax = unsafeCSS(queryBreakpoints.mdMax);
|
|
9
|
-
var lgMin = unsafeCSS(queryBreakpoints.lgMin);
|
|
10
|
-
var sheets = /* @__PURE__ */ new Map();
|
|
11
|
-
/**
|
|
12
|
-
* The `@container` rules for the named `hide-below` / `hide-above` values.
|
|
13
|
-
*
|
|
14
|
-
* Static, so they reach the shadow root through `adoptedStyleSheets` instead
|
|
15
|
-
* of a `<style>` element. That keeps consumers on a `style-src` without
|
|
16
|
-
* `'unsafe-inline'`; a custom CSS length has no static form and gets its rule
|
|
17
|
-
* from the mixin at runtime, into an adopted sheet of its own.
|
|
18
|
-
*
|
|
19
|
-
* The rules are nested (`:host { @container … }`) rather than flattened, because
|
|
20
|
-
* `@container { :host { … } }` is unreliable in Safari.
|
|
21
|
-
*/
|
|
22
|
-
function visibilityStyles(containerName) {
|
|
23
|
-
const key = containerName ?? "";
|
|
24
|
-
const cached = sheets.get(key);
|
|
25
|
-
if (cached) return cached;
|
|
26
|
-
const container = unsafeCSS(containerName ? `${containerName} ` : "");
|
|
27
|
-
const sheet = css`
|
|
28
|
-
/* # Hide below: the value names the breakpoint you hide BELOW */
|
|
29
|
-
|
|
30
|
-
:host([hide-below="md"]) {
|
|
31
|
-
@container ${container}(max-width: ${smMax}) { display: none !important; }
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([hide-below="lg"]) {
|
|
35
|
-
@container ${container}(max-width: ${mdMax}) { display: none !important; }
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/* # Hide above */
|
|
40
|
-
|
|
41
|
-
:host([hide-above="sm"]) {
|
|
42
|
-
@container ${container}(min-width: ${mdMin}) { display: none !important; }
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:host([hide-above="md"]) {
|
|
46
|
-
@container ${container}(min-width: ${lgMin}) { display: none !important; }
|
|
47
|
-
}
|
|
48
|
-
`;
|
|
49
|
-
sheets.set(key, sheet);
|
|
50
|
-
return sheet;
|
|
51
|
-
}
|
|
52
|
-
// src/utilities/visibility-mixin.ts
|
|
53
|
-
var NAMED_BREAKPOINTS = /* @__PURE__ */ new Set([
|
|
54
|
-
"sm",
|
|
55
|
-
"md",
|
|
56
|
-
"lg"
|
|
57
|
-
]);
|
|
58
|
-
function customThreshold(value) {
|
|
59
|
-
if (value === void 0 || NAMED_BREAKPOINTS.has(value)) return null;
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* The open edges hide nothing, so the attribute is written but never applies.
|
|
64
|
-
* That reads like a working value, and the name invites it: `hide-below`
|
|
65
|
-
* names the breakpoint you hide BELOW, so "hide it at sm" comes out as
|
|
66
|
-
* `hide-below="md"` and `hide-below="sm"` does nothing at all. Say so once,
|
|
67
|
-
* rather than let it look applied.
|
|
68
|
-
*/
|
|
69
|
-
/**
|
|
70
|
-
* Adds `hide-below` and `hide-above` attributes that toggle visibility based
|
|
71
|
-
* on the inline-size of an ancestor CSS container.
|
|
72
|
-
*
|
|
73
|
-
* Without a `containerName` argument the rule is an anonymous `@container (…)`
|
|
74
|
-
* query — it matches the nearest ancestor that declares
|
|
75
|
-
* `container-type: inline-size`. Pass a name to target a specific container
|
|
76
|
-
* (e.g. `'cells-container'` for cells inside `nldd-list`, which sets that
|
|
77
|
-
* name inline on its host as a Safari shadow-DOM workaround).
|
|
78
|
-
*
|
|
79
|
-
* Values are either a named breakpoint — `sm` / `md` / `lg` — or a CSS length
|
|
80
|
-
* (e.g. '320px', '20rem'). Named values resolve to the standard breakpoint
|
|
81
|
-
* thresholds: `hide-below` uses the breakpoint's lower bound (e.g.
|
|
82
|
-
* `hide-below="lg"` hides in sm+md and shows in lg), `hide-above` its upper
|
|
83
|
-
* bound; the open edges (below sm, above lg) are no-ops.
|
|
84
|
-
*
|
|
85
|
-
* The named values are static CSS (see `visibility-mixin.styles.ts`), added
|
|
86
|
-
* through `finalizeStyles` so that a component's own `static styles` does not
|
|
87
|
-
* have to know about them. A custom length has no static form: the threshold
|
|
88
|
-
* is only known at runtime and a container query cannot read one from a CSS
|
|
89
|
-
* variable, so its rule is written at runtime into a constructable stylesheet
|
|
90
|
-
* the shadow root adopts. Neither path is an inline stylesheet, so no consumer
|
|
91
|
-
* needs `'unsafe-inline'` in its `style-src` for either.
|
|
92
|
-
*
|
|
93
|
-
* @mixin VisibilityMixin
|
|
94
|
-
*
|
|
95
|
-
* @attr {string} hide-below - Hides the element below this breakpoint: `sm` | `md` | `lg`, or a CSS length. The value names the breakpoint you hide BELOW, so `hide-below="md"` is hidden in sm and visible from md up. `sm` is the open edge and never hides (DEV-warns).
|
|
96
|
-
* @attr {string} hide-above - Hides the element above this breakpoint: `sm` | `md` | `lg`, or a CSS length. `hide-above="sm"` is hidden in md and lg. `lg` is the open edge and never hides (DEV-warns).
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```ts
|
|
100
|
-
* // Cell inside nldd-list — target the named cells-container
|
|
101
|
-
* class NLDDTextCell extends VisibilityMixin(LitElement, 'cells-container') { … }
|
|
102
|
-
*
|
|
103
|
-
* // Other component — fall back to the nearest unnamed container
|
|
104
|
-
* class SomeComponent extends VisibilityMixin(LitElement) { … }
|
|
105
|
-
* ```
|
|
106
|
-
*/
|
|
107
|
-
function VisibilityMixin(Base, containerName) {
|
|
108
|
-
class WithVisibility extends Base {
|
|
109
|
-
/** @internal */
|
|
110
|
-
static finalizeStyles(styles) {
|
|
111
|
-
return [...Base.finalizeStyles.call(this, styles), visibilityStyles(containerName)];
|
|
112
|
-
}
|
|
113
|
-
updated(changed) {
|
|
114
|
-
super.updated(changed);
|
|
115
|
-
if (changed.has("hideBelow") || changed.has("hideAbove")) this._updateVisibilityRules();
|
|
116
|
-
}
|
|
117
|
-
_updateVisibilityRules() {
|
|
118
|
-
const root = this.shadowRoot;
|
|
119
|
-
if (!root) return;
|
|
120
|
-
const containerPrefix = containerName ? `${containerName} ` : "";
|
|
121
|
-
const rules = [];
|
|
122
|
-
const below = customThreshold(this.hideBelow);
|
|
123
|
-
if (below) rules.push(`:host { @container ${containerPrefix}(max-width: ${below}) { display: none !important; } }`);
|
|
124
|
-
const above = customThreshold(this.hideAbove);
|
|
125
|
-
if (above) rules.push(`:host { @container ${containerPrefix}(min-width: ${above}) { display: none !important; } }`);
|
|
126
|
-
if (rules.length === 0) {
|
|
127
|
-
if (this._visibilitySheet) {
|
|
128
|
-
const dropped = this._visibilitySheet;
|
|
129
|
-
root.adoptedStyleSheets = Array.from(root.adoptedStyleSheets).filter((sheet) => sheet !== dropped);
|
|
130
|
-
this._visibilitySheet = void 0;
|
|
131
|
-
}
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
if (!this._visibilitySheet) {
|
|
135
|
-
this._visibilitySheet = new CSSStyleSheet();
|
|
136
|
-
root.adoptedStyleSheets = [...root.adoptedStyleSheets, this._visibilitySheet];
|
|
137
|
-
}
|
|
138
|
-
this._visibilitySheet.replaceSync(rules.join("\n"));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
__decorate([property({
|
|
142
|
-
type: String,
|
|
143
|
-
reflect: true,
|
|
144
|
-
attribute: "hide-below"
|
|
145
|
-
})], WithVisibility.prototype, "hideBelow", void 0);
|
|
146
|
-
__decorate([property({
|
|
147
|
-
type: String,
|
|
148
|
-
reflect: true,
|
|
149
|
-
attribute: "hide-above"
|
|
150
|
-
})], WithVisibility.prototype, "hideAbove", void 0);
|
|
151
|
-
return WithVisibility;
|
|
152
|
-
}
|
|
153
|
-
export { VisibilityMixin as t };
|