@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
package/lint/project.js
CHANGED
|
@@ -6,7 +6,10 @@ import { extname, join, relative, resolve } from 'node:path';
|
|
|
6
6
|
|
|
7
7
|
export const IGNORED_DIRECTORIES = new Set(['node_modules', 'dist', 'build', 'coverage', '.git', '.next', '.nuxt']);
|
|
8
8
|
/** Markdown is linted on request: documentation is full of deliberately wrong examples. */
|
|
9
|
-
const DEFAULT_EXTENSIONS = ['.html', '.htm', '.j2', '.jinja', '.jinja2', '.vue', '.jsx', '.tsx'];
|
|
9
|
+
export const DEFAULT_EXTENSIONS = ['.html', '.htm', '.j2', '.jinja', '.jinja2', '.vue', '.jsx', '.tsx'];
|
|
10
|
+
|
|
11
|
+
/** Read only when a rule about an app's own stylesheets is on. */
|
|
12
|
+
export const STYLESHEET_EXTENSIONS = ['.css', '.scss', '.sass', '.less'];
|
|
10
13
|
|
|
11
14
|
/** Where a tag name stands outside markup: the linter does not read these, a renamed tag does. */
|
|
12
15
|
export const REFERENCE_EXTENSIONS = ['.js', '.mjs', '.cjs', '.ts', '.css', '.scss', '.less'];
|
|
@@ -125,13 +128,79 @@ export function applyBaseline(filename, findings, baseline, root) {
|
|
|
125
128
|
});
|
|
126
129
|
}
|
|
127
130
|
|
|
128
|
-
|
|
131
|
+
const countFindings = (findings) => {
|
|
132
|
+
const counts = {};
|
|
133
|
+
for (const finding of findings.filter(({ severity }) => severity !== 'hint')) {
|
|
134
|
+
counts[baselineKey(finding)] = (counts[baselineKey(finding)] ?? 0) + 1;
|
|
135
|
+
}
|
|
136
|
+
return counts;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/** How many accepted findings of the rules that ran are gone from the files that were read. */
|
|
140
|
+
export function looseInBaseline(results, baseline, root, ran) {
|
|
141
|
+
let loose = 0;
|
|
142
|
+
for (const { filename, findings } of results) {
|
|
143
|
+
const found = countFindings(findings);
|
|
144
|
+
for (const [entry, count] of Object.entries(baseline[relative(root, filename)] ?? {})) {
|
|
145
|
+
if (ran(entry.split('|')[0])) loose += Math.max(0, count - (found[entry] ?? 0));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return loose;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Lowers what the baseline accepts to what is still there, and never raises or adds
|
|
153
|
+
* anything: a ratchet. A file that is gone takes its entry along.
|
|
154
|
+
*/
|
|
155
|
+
export function tightenBaseline(results, root, canonical, ran) {
|
|
156
|
+
if (!existsSync(join(root, BASELINE_FILE))) return undefined;
|
|
157
|
+
const baseline = readBaseline(root, canonical);
|
|
158
|
+
const read = new Map(results.map(({ filename, findings }) => [relative(root, filename), countFindings(findings)]));
|
|
159
|
+
// Only the rules that ran can be compared; what the others accepted moves along as it is.
|
|
160
|
+
const ranOnly = (entries) => Object.fromEntries(Object.entries(entries).filter(([entry]) => ran(entry.split('|')[0])));
|
|
161
|
+
const sameCounts = (a, b) => {
|
|
162
|
+
const left = ranOnly(a);
|
|
163
|
+
const right = ranOnly(b);
|
|
164
|
+
return Object.keys({ ...left, ...right }).every((key) => left[key] === right[key]);
|
|
165
|
+
};
|
|
166
|
+
let dropped = 0;
|
|
167
|
+
for (const [file, entries] of Object.entries(baseline)) {
|
|
168
|
+
if (!existsSync(join(root, file))) {
|
|
169
|
+
// A file that moved takes its entry along, when exactly one file was read under
|
|
170
|
+
// a new name with exactly what was accepted. With nothing of its own that ran,
|
|
171
|
+
// there is nothing to compare, so the entry waits for a run that can. Two
|
|
172
|
+
// candidates are a guess, and a guess drops it: its findings then show.
|
|
173
|
+
if (Object.keys(ranOnly(entries)).length === 0) continue;
|
|
174
|
+
const moved = [...read].filter(([name, found]) => !baseline[name] && sameCounts(entries, found));
|
|
175
|
+
if (moved.length === 1) baseline[moved[0][0]] = entries;
|
|
176
|
+
else dropped += Object.values(entries).reduce((sum, count) => sum + count, 0);
|
|
177
|
+
delete baseline[file];
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
180
|
+
const found = read.get(file);
|
|
181
|
+
if (!found) continue;
|
|
182
|
+
for (const [entry, count] of Object.entries(entries)) {
|
|
183
|
+
if (!ran(entry.split('|')[0])) continue;
|
|
184
|
+
const kept = Math.min(count, found[entry] ?? 0);
|
|
185
|
+
dropped += count - kept;
|
|
186
|
+
if (kept === 0) delete entries[entry];
|
|
187
|
+
else entries[entry] = kept;
|
|
188
|
+
}
|
|
189
|
+
if (Object.keys(entries).length === 0) delete baseline[file];
|
|
190
|
+
}
|
|
191
|
+
writeFileSync(join(root, BASELINE_FILE), `${JSON.stringify(baseline, null, '\t')}\n`);
|
|
192
|
+
return dropped;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** `ran` says which rules this run checked: what another rule accepted stays accepted. */
|
|
196
|
+
export function writeBaseline(results, root, canonical, ran = () => true) {
|
|
129
197
|
const baseline = readBaseline(root, canonical);
|
|
130
198
|
for (const { filename, findings } of results) {
|
|
131
199
|
const key = relative(root, filename);
|
|
200
|
+
const kept = Object.entries(baseline[key] ?? {}).filter(([entry]) => !ran(entry.split('|')[0]));
|
|
132
201
|
delete baseline[key];
|
|
133
|
-
if (findings.every(({ severity }) => severity === 'hint')) continue;
|
|
134
|
-
baseline[key] =
|
|
202
|
+
if (kept.length === 0 && findings.every(({ severity }) => severity === 'hint')) continue;
|
|
203
|
+
baseline[key] = Object.fromEntries(kept);
|
|
135
204
|
// A hint fails nothing, so there is nothing to accept.
|
|
136
205
|
for (const finding of findings.filter(({ severity }) => severity !== 'hint')) {
|
|
137
206
|
const entry = baselineKey(finding);
|
package/lint/rule-data.js
CHANGED
|
@@ -3,13 +3,20 @@
|
|
|
3
3
|
import { readFileSync } from 'node:fs';
|
|
4
4
|
|
|
5
5
|
/** What a rule is about. The first that fits, top to bottom, is the group of a rule. */
|
|
6
|
-
export const GROUPS = ['api', 'a11y', 'copy', 'structure', 'pattern'];
|
|
6
|
+
export const GROUPS = ['api', 'a11y', 'copy', 'structure', 'pattern', 'pure'];
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Groups a project turns on itself, with `--pure` or a level in its config. They ask
|
|
10
|
+
* more than using the components right, so they never fire unasked.
|
|
11
|
+
*/
|
|
12
|
+
export const OPT_IN_GROUPS = ['pure'];
|
|
7
13
|
|
|
8
14
|
/**
|
|
9
15
|
* Turns config keys and --select and --ignore into a level per rule. A key is a
|
|
10
16
|
* group or a rule, and a rule beats its group whatever the order.
|
|
11
17
|
*/
|
|
12
|
-
export function resolveSeverities(data, levels = {}, { select, ignore } = {}) {
|
|
18
|
+
export function resolveSeverities(data, levels = {}, { select, ignore, optIn = [] } = {}) {
|
|
19
|
+
const levelOf = new Map(data.rules.map((rule) => [rule.id, rule.severity]));
|
|
13
20
|
const groupOf = new Map([
|
|
14
21
|
...Object.keys(BUILT_IN_RULES).map((id) => [id, 'api']),
|
|
15
22
|
...data.rules.map((rule) => [rule.id, rule.group]),
|
|
@@ -23,6 +30,14 @@ export function resolveSeverities(data, levels = {}, { select, ignore } = {}) {
|
|
|
23
30
|
);
|
|
24
31
|
for (const [id, group] of groupOf) {
|
|
25
32
|
if (!severities[id] && levels[group]) severities[id] = levels[group];
|
|
33
|
+
if (OPT_IN_GROUPS.includes(group)) {
|
|
34
|
+
// The command line beats the config for the group, not for a rule the config names.
|
|
35
|
+
const namedInConfig = Object.keys(levels).some((key) => canonical(key) === id);
|
|
36
|
+
if (optIn.includes(group) && !namedInConfig && severities[id] === 'off') delete severities[id];
|
|
37
|
+
const chosen = severities[id] || optIn.includes(group) || (select?.length && matches(id, select));
|
|
38
|
+
// The linter runs a rule of such a group only with a level written out.
|
|
39
|
+
severities[id] = chosen ? (severities[id] ?? levelOf.get(id)) : 'off';
|
|
40
|
+
}
|
|
26
41
|
if (select?.length && !matches(id, select)) severities[id] = 'off';
|
|
27
42
|
if (ignore?.length && matches(id, ignore)) severities[id] = 'off';
|
|
28
43
|
}
|
package/lint/tree.js
CHANGED
|
@@ -24,6 +24,8 @@ export const BOUND = Symbol('bound');
|
|
|
24
24
|
* @property {boolean} toggled In the DOM, but maybe not visible (`v-show`).
|
|
25
25
|
* @property {boolean} wrapped A framework wrapper standing in for this tag.
|
|
26
26
|
* @property {boolean} templated A template language writes into the tag itself.
|
|
27
|
+
* @property {boolean} text Holds text of its own, not only elements.
|
|
28
|
+
* @property {boolean} [detached] On a root: markup this file builds to place elsewhere, not what it renders itself.
|
|
27
29
|
*/
|
|
28
30
|
|
|
29
31
|
/** @returns {TreeNode} */
|
|
@@ -41,6 +43,7 @@ export function createNode(name, offset = 0) {
|
|
|
41
43
|
toggled: false,
|
|
42
44
|
wrapped: false,
|
|
43
45
|
templated: false,
|
|
46
|
+
text: false,
|
|
44
47
|
};
|
|
45
48
|
}
|
|
46
49
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nldd/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "Designsysteem voor de Nederlandse Digitale Dienst",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/components/
|
|
7
|
-
"module": "dist/components/
|
|
6
|
+
"main": "dist/components/index.js",
|
|
7
|
+
"module": "dist/components/index.js",
|
|
8
|
+
"types": "dist/components/index.d.ts",
|
|
8
9
|
"unpkg": "dist/nldd.min.js",
|
|
9
10
|
"jsdelivr": "dist/nldd.min.js",
|
|
10
11
|
"exports": {
|
|
11
|
-
".":
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/components/index.d.ts",
|
|
14
|
+
"default": "./dist/components/index.js"
|
|
15
|
+
},
|
|
12
16
|
"./bundle": "./dist/nldd.min.js",
|
|
17
|
+
"./autoloader": {
|
|
18
|
+
"types": "./dist/utilities/autoloader.d.ts",
|
|
19
|
+
"default": "./dist/utilities/autoloader.js"
|
|
20
|
+
},
|
|
21
|
+
"./cdn/*": "./dist/cdn/*",
|
|
13
22
|
"./button": {
|
|
14
23
|
"types": "./dist/components/actions/button/button.d.ts",
|
|
15
24
|
"default": "./dist/components/actions/button/button.js"
|
|
@@ -474,6 +483,30 @@
|
|
|
474
483
|
"types": "./dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts",
|
|
475
484
|
"default": "./dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js"
|
|
476
485
|
},
|
|
486
|
+
"./menu-divider": {
|
|
487
|
+
"types": "./dist/components/actions/menu/menu-divider.d.ts",
|
|
488
|
+
"default": "./dist/components/actions/menu/menu-divider.js"
|
|
489
|
+
},
|
|
490
|
+
"./menu-group": {
|
|
491
|
+
"types": "./dist/components/actions/menu/menu-group.d.ts",
|
|
492
|
+
"default": "./dist/components/actions/menu/menu-group.js"
|
|
493
|
+
},
|
|
494
|
+
"./menu-item": {
|
|
495
|
+
"types": "./dist/components/actions/menu/menu-item.d.ts",
|
|
496
|
+
"default": "./dist/components/actions/menu/menu-item.js"
|
|
497
|
+
},
|
|
498
|
+
"./toolbar-item": {
|
|
499
|
+
"types": "./dist/components/actions/toolbar/toolbar-item.d.ts",
|
|
500
|
+
"default": "./dist/components/actions/toolbar/toolbar-item.js"
|
|
501
|
+
},
|
|
502
|
+
"./toolbar-title": {
|
|
503
|
+
"types": "./dist/components/actions/toolbar/toolbar-title.d.ts",
|
|
504
|
+
"default": "./dist/components/actions/toolbar/toolbar-title.js"
|
|
505
|
+
},
|
|
506
|
+
"./kanban-column": {
|
|
507
|
+
"types": "./dist/components/layout/kanban/kanban-column.d.ts",
|
|
508
|
+
"default": "./dist/components/layout/kanban/kanban-column.js"
|
|
509
|
+
},
|
|
477
510
|
"./styles": "./dist/css/global.css",
|
|
478
511
|
"./styles/open-font": "./dist/css/global-open-font.css",
|
|
479
512
|
"./styles/system-font": "./dist/css/global-open-font.css",
|
|
@@ -516,6 +549,9 @@
|
|
|
516
549
|
},
|
|
517
550
|
"./vue": {
|
|
518
551
|
"types": "./dist/types/vue.d.ts"
|
|
552
|
+
},
|
|
553
|
+
"./react": {
|
|
554
|
+
"types": "./dist/types/react.d.ts"
|
|
519
555
|
}
|
|
520
556
|
},
|
|
521
557
|
"files": [
|
|
@@ -541,9 +577,10 @@
|
|
|
541
577
|
"generate:colors": "node scripts/generate-colors.js && npm run generate:themes",
|
|
542
578
|
"generate:themes": "node scripts/generate-themes.js",
|
|
543
579
|
"generate:component-reference": "node scripts/generate-component-reference.js",
|
|
544
|
-
"generate:cem": "cem analyze && npm run generate:vue-types && npm run generate:lint-data",
|
|
580
|
+
"generate:cem": "cem analyze && npm run generate:vue-types && npm run generate:react-types && npm run generate:autoloader && npm run generate:lint-data",
|
|
545
581
|
"generate:lint-data": "node scripts/generate-lint-data.js",
|
|
546
582
|
"generate:vue-types": "node scripts/generate-vue-types.js",
|
|
583
|
+
"generate:react-types": "node scripts/generate-react-types.js",
|
|
547
584
|
"generate:skill-changelog": "node scripts/generate-skill-changelog.js",
|
|
548
585
|
"generate:skill-principles": "node scripts/generate-skill-principles.js",
|
|
549
586
|
"generate:skill-patterns": "node scripts/generate-skill-patterns.js",
|
|
@@ -557,11 +594,10 @@
|
|
|
557
594
|
"validate:changelog": "node scripts/validate-changelog.js",
|
|
558
595
|
"lint:stories": "node scripts/lint-stories.js",
|
|
559
596
|
"lint:www": "node lint/cli.js lint www/",
|
|
560
|
-
"build:components": "npm run clean:components && npm run build:icons && npm run generate:translations && npm run build:components:modules && npm run build:components:
|
|
597
|
+
"build:components": "npm run clean:components && npm run build:icons && npm run generate:translations && npm run build:components:modules && npm run build:components:standalone && npm run build:components:cdn && npm run build:exports && npm run generate:cem",
|
|
561
598
|
"build:icons": "node scripts/generate-icon-registry.js && node scripts/generate-logo.js",
|
|
562
599
|
"optimize:icons": "node scripts/optimize-icons.js",
|
|
563
600
|
"build:components:modules": "tsc -p tsconfig.build.json",
|
|
564
|
-
"build:components:bundle": "vite build",
|
|
565
601
|
"build:exports": "node scripts/generate-exports.js",
|
|
566
602
|
"clean": "rm -rf dist",
|
|
567
603
|
"clean:components": "rm -rf dist/components dist/nldd.min.js",
|
|
@@ -592,7 +628,10 @@
|
|
|
592
628
|
"pretypecheck": "npm run build:icons",
|
|
593
629
|
"typecheck": "tsc --noEmit",
|
|
594
630
|
"test:vue-types": "vue-tsc --noEmit -p type-tests/vue/tsconfig.json",
|
|
631
|
+
"test:react-types": "tsc -p type-tests/react/tsconfig.json",
|
|
595
632
|
"build:components:standalone": "vite build --config vite.bundle.config.ts",
|
|
633
|
+
"build:components:cdn": "vite build --config vite.cdn.config.ts",
|
|
634
|
+
"generate:autoloader": "node scripts/generate-autoloader.js",
|
|
596
635
|
"generate:translations": "node scripts/generate-translations.js"
|
|
597
636
|
},
|
|
598
637
|
"devDependencies": {
|
|
@@ -608,8 +647,8 @@
|
|
|
608
647
|
"@storybook/addon-docs": "^10.6.0",
|
|
609
648
|
"@storybook/addon-themes": "^10.6.0",
|
|
610
649
|
"@storybook/web-components-vite": "^10.6.0",
|
|
611
|
-
"@vitest/browser-playwright": "5.0
|
|
612
|
-
"@vitest/coverage-v8": "5.0
|
|
650
|
+
"@vitest/browser-playwright": "5.1.0",
|
|
651
|
+
"@vitest/coverage-v8": "5.1.0",
|
|
613
652
|
"ajv": "^8.20.0",
|
|
614
653
|
"axe-core": "^4.13.0",
|
|
615
654
|
"conventional-changelog": "^8.1.0",
|
|
@@ -625,7 +664,7 @@
|
|
|
625
664
|
"typescript": "^5.3.0",
|
|
626
665
|
"typescript-eslint": "^8.58.0",
|
|
627
666
|
"vite": "8.3.5",
|
|
628
|
-
"vitest": "5.0
|
|
667
|
+
"vitest": "5.1.0",
|
|
629
668
|
"vue": "^3.5.40",
|
|
630
669
|
"vue-tsc": "^3.3.7",
|
|
631
670
|
"yaml": "^2.9.1"
|
|
@@ -670,7 +709,7 @@
|
|
|
670
709
|
"conventional-changelog-conventionalcommits": "10.2.1"
|
|
671
710
|
},
|
|
672
711
|
"optionalDependencies": {
|
|
673
|
-
"oxc-parser": "^0.
|
|
712
|
+
"oxc-parser": "^0.157.0"
|
|
674
713
|
},
|
|
675
714
|
"bin": {
|
|
676
715
|
"nldd": "lint/cli.js"
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// src/assets/styles/breakpoints.ts
|
|
2
|
-
/**
|
|
3
|
-
* The same breakpoints in rem, for `@container` and `@media` conditions. With
|
|
4
|
-
* page zoom, Safari compares the width of a container that takes its size from
|
|
5
|
-
* the layout in zoomed pixels, so a px condition sees a narrow container as
|
|
6
|
-
* wide; a rem condition scales with the zoom. At the default font size of
|
|
7
|
-
* 16px they equal the px values.
|
|
8
|
-
*/
|
|
9
|
-
var queryBreakpoints = {
|
|
10
|
-
smMin: "20rem",
|
|
11
|
-
smMax: "40rem",
|
|
12
|
-
mdMin: "40.0625rem",
|
|
13
|
-
mdMax: "62.9375rem",
|
|
14
|
-
lgMin: "63rem"
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Where a page section with two columns side by side (1/2-1/2, 1/3-2/3,
|
|
18
|
-
* 2/3-1/3) stacks them, measured on the section. From 50rem the wide column of
|
|
19
|
-
* 1/3-2/3 gets about 400px next to 280px, enough for the content it carries;
|
|
20
|
-
* one width for all three, so sections on one page stack together.
|
|
21
|
-
*/
|
|
22
|
-
var splitSectionBreakpoints = { stackedMax: "50rem" };
|
|
23
|
-
/**
|
|
24
|
-
* The root font size in CSS pixels: what 1rem is in an `@container` condition.
|
|
25
|
-
* An `@media` condition and `matchMedia` take the browser's initial font size
|
|
26
|
-
* instead, which differs only when a site sets `font-size` on `<html>`; pass
|
|
27
|
-
* them a `queryBreakpoints` string. It reads the computed style of the page,
|
|
28
|
-
* so call it in the browser (in connectedCallback, a resize observer or an
|
|
29
|
-
* event handler), not during SSR.
|
|
30
|
-
*/
|
|
31
|
-
function rootFontSize() {
|
|
32
|
-
return parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* A breakpoint in CSS pixels at the root font size, for the width of a
|
|
36
|
-
* container that script compares itself. It matches what an `@container`
|
|
37
|
-
* condition in the styles sees, also when someone has set a larger default
|
|
38
|
-
* font size. Comparing against more than
|
|
39
|
-
* one breakpoint, read `rootFontSize()` once and pass it in. Browser only, like
|
|
40
|
-
* `rootFontSize()`.
|
|
41
|
-
*/
|
|
42
|
-
function breakpointPx(name, fontSize = rootFontSize()) {
|
|
43
|
-
return parseFloat(queryBreakpoints[name]) * fontSize;
|
|
44
|
-
}
|
|
45
|
-
export { splitSectionBreakpoints as i, queryBreakpoints as n, rootFontSize as r, breakpointPx as t };
|