@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,308 @@
|
|
|
1
|
+
import { r as e } from "./icon-BORlalt0.js";
|
|
2
|
+
import { 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 { t as u } from "./shadow-resets-6SToDsPu.js";
|
|
7
|
+
import { t as d } from "./link-rel-DvrTEfVT.js";
|
|
8
|
+
import { n as f } from "./link-hint-KFhgr5Ng.js";
|
|
9
|
+
import { t as p } from "./with-translations-XX14GKFh.js";
|
|
10
|
+
import "./tooltip-BsAHJjci.js";
|
|
11
|
+
import { t as m } from "./avatar.i18n-CMwQjBkS.js";
|
|
12
|
+
// src/components/content/avatar/avatar.styles.ts
|
|
13
|
+
var h = t`
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/* # Host */
|
|
20
|
+
|
|
21
|
+
:host {
|
|
22
|
+
--_avatar-size: 100%;
|
|
23
|
+
--_avatar-corner-radius: var(--primitives-corner-radius-full);
|
|
24
|
+
--_avatar-background-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-300));
|
|
25
|
+
--_avatar-content-color: var(--primitives-color-neutral-800);
|
|
26
|
+
--_avatar-icon-scale: 0.6;
|
|
27
|
+
--_avatar-initials-scale: 0.52;
|
|
28
|
+
--_avatar-initials-font-weight: 500;
|
|
29
|
+
--_avatar-initials-fit: 1;
|
|
30
|
+
--_avatar-initials-optical-shift: 0.02em;
|
|
31
|
+
--_avatar-shape-scale: 1;
|
|
32
|
+
|
|
33
|
+
${u}
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
width: var(--_avatar-size);
|
|
36
|
+
aspect-ratio: 1;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([hidden]) {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([type="organization"]) {
|
|
47
|
+
--_avatar-corner-radius: var(--primitives-corner-radius-md);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Fill tracks the shared content-color channel (set by list-item / table /
|
|
51
|
+
menu), falling back to currentColor for buttons / standalone — mirrors
|
|
52
|
+
nldd-activity-indicator. The fill (not the text) color must resolve here,
|
|
53
|
+
so .avatar keeps its inherited color and the contrast text lives on the
|
|
54
|
+
child elements. */
|
|
55
|
+
/* color on the host: the contrast token reads currentColor, so the flip has to
|
|
56
|
+
be computed against the same value the fill uses. */
|
|
57
|
+
:host([color="inherit"]) {
|
|
58
|
+
color: var(--context-content-color, currentColor);
|
|
59
|
+
|
|
60
|
+
--_avatar-background-color: currentColor;
|
|
61
|
+
--_avatar-content-color: var(--semantics-content-contrast-color);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Shrink the visible shape to 5/6 of the host (centered), so the avatar lines
|
|
65
|
+
up optically with an icon on the same grid (an icon glyph has built-in
|
|
66
|
+
padding). The host keeps the grid cell size. */
|
|
67
|
+
:host([icon-aligned]) {
|
|
68
|
+
--_avatar-shape-scale: calc(5 / 6);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/* # Size — spacer-aligned, mirrors nldd-icon */
|
|
73
|
+
|
|
74
|
+
:host([size="full"]) { --_avatar-size: 100%; }
|
|
75
|
+
:host([size="16"]) { --_avatar-size: var(--primitives-space-16); }
|
|
76
|
+
:host([size="20"]) { --_avatar-size: var(--primitives-space-20); }
|
|
77
|
+
:host([size="24"]) { --_avatar-size: var(--primitives-space-24); }
|
|
78
|
+
:host([size="28"]) { --_avatar-size: var(--primitives-space-28); }
|
|
79
|
+
:host([size="32"]) { --_avatar-size: var(--primitives-space-32); }
|
|
80
|
+
:host([size="40"]) { --_avatar-size: var(--primitives-space-40); }
|
|
81
|
+
:host([size="44"]) { --_avatar-size: var(--primitives-space-44); }
|
|
82
|
+
:host([size="48"]) { --_avatar-size: var(--primitives-space-48); }
|
|
83
|
+
:host([size="56"]) { --_avatar-size: var(--primitives-space-56); }
|
|
84
|
+
:host([size="64"]) { --_avatar-size: var(--primitives-space-64); }
|
|
85
|
+
:host([size="80"]) { --_avatar-size: var(--primitives-space-80); }
|
|
86
|
+
:host([size="96"]) { --_avatar-size: var(--primitives-space-96); }
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/* # Avatar */
|
|
90
|
+
|
|
91
|
+
/* container-type: inline-size lets the initials and icon scale (cqi) with the
|
|
92
|
+
avatar's rendered width, so a fixed size and a filled (100%) size both work.
|
|
93
|
+
inline-size (not size) leaves the block axis free, so aspect-ratio can drive
|
|
94
|
+
the height without the box collapsing in flex/grid. color stays inherited
|
|
95
|
+
here so --_avatar-background-color's currentColor (color="inherit") resolves to the
|
|
96
|
+
surrounding color, not the content color. */
|
|
97
|
+
.avatar {
|
|
98
|
+
container-type: inline-size;
|
|
99
|
+
display: flex;
|
|
100
|
+
width: calc(100% * var(--_avatar-shape-scale));
|
|
101
|
+
height: calc(100% * var(--_avatar-shape-scale));
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
border-radius: var(--_avatar-corner-radius);
|
|
106
|
+
background-color: var(--_avatar-background-color);
|
|
107
|
+
-webkit-user-select: none;
|
|
108
|
+
user-select: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* # Interactive — the shape itself is the link or button */
|
|
112
|
+
|
|
113
|
+
.avatar--interactive {
|
|
114
|
+
padding: 0;
|
|
115
|
+
border: none;
|
|
116
|
+
cursor: var(--semantics-controls-link-cursor);
|
|
117
|
+
color: inherit;
|
|
118
|
+
font: inherit;
|
|
119
|
+
text-decoration: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.avatar--interactive:focus-visible {
|
|
123
|
+
outline: var(--semantics-focus-ring-outline);
|
|
124
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Darkening the image or fill reads as "this reacts" on a shape too small
|
|
128
|
+
for a border or shadow to register. */
|
|
129
|
+
.avatar--interactive:hover .avatar__image,
|
|
130
|
+
.avatar--interactive:active .avatar__image {
|
|
131
|
+
opacity: 0.85;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.avatar--interactive:hover {
|
|
135
|
+
filter: brightness(0.95);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.avatar--interactive:active {
|
|
139
|
+
filter: brightness(0.9);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
/* # Content */
|
|
144
|
+
|
|
145
|
+
.avatar__image {
|
|
146
|
+
display: block;
|
|
147
|
+
width: 100%;
|
|
148
|
+
height: 100%;
|
|
149
|
+
object-fit: cover;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.avatar__initials {
|
|
153
|
+
font-family: var(--primitives-font-family-body);
|
|
154
|
+
font-weight: var(--_avatar-initials-font-weight);
|
|
155
|
+
font-size: calc(var(--_avatar-initials-scale) * 100cqi);
|
|
156
|
+
line-height: 1;
|
|
157
|
+
color: var(--_avatar-content-color);
|
|
158
|
+
/* fit-initials shrinks wide initials via this factor (measured in JS);
|
|
159
|
+
transform (not font-size) so scrollWidth stays the natural width. The
|
|
160
|
+
optical shift rides along in the same transform — scale is applied
|
|
161
|
+
first, so the translate stays in unscaled em. */
|
|
162
|
+
transform: translateY(var(--_avatar-initials-optical-shift)) scale(var(--_avatar-initials-fit));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.avatar__icon {
|
|
166
|
+
width: calc(var(--_avatar-icon-scale) * 100cqi);
|
|
167
|
+
color: var(--_avatar-content-color);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@media (forced-colors: active) {
|
|
171
|
+
.avatar {
|
|
172
|
+
border: var(--primitives-border-width-regular) solid CanvasText;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
176
|
+
// src/components/content/avatar/avatar.template.ts
|
|
177
|
+
function g(e) {
|
|
178
|
+
let t = !!e.src && !e._imageFailed, n = e.resolvedInitials, r = !t && n !== "", i = !t && !r, s = f(e.href, e.target), c = s ? e._t(`components.avatar.${s}`) : "", l = [e.accessibleLabel || e.name, c].filter(Boolean).join(", ") || o, u = a`
|
|
179
|
+
${t ? a`
|
|
180
|
+
<img class="avatar__image"
|
|
181
|
+
src=${e.src}
|
|
182
|
+
srcset=${e.srcset || o}
|
|
183
|
+
sizes=${e.size ? `${e.size}px` : "auto"}
|
|
184
|
+
alt=""
|
|
185
|
+
loading="lazy"
|
|
186
|
+
decoding="async"
|
|
187
|
+
@error=${e._onImageError}
|
|
188
|
+
>
|
|
189
|
+
` : o}
|
|
190
|
+
${r ? a`
|
|
191
|
+
<span class="avatar__initials"
|
|
192
|
+
aria-hidden="true"
|
|
193
|
+
>${n}</span>
|
|
194
|
+
` : o}
|
|
195
|
+
${i ? a`
|
|
196
|
+
<nldd-icon class="avatar__icon"
|
|
197
|
+
icon=${e.resolvedIcon}
|
|
198
|
+
></nldd-icon>
|
|
199
|
+
` : o}
|
|
200
|
+
`, p = e.href ? a`
|
|
201
|
+
<a class="avatar avatar--interactive"
|
|
202
|
+
href=${e.href}
|
|
203
|
+
target=${e.target || o}
|
|
204
|
+
rel=${d(e.rel, e.target) || o}
|
|
205
|
+
aria-label=${l}
|
|
206
|
+
tabindex=${e.noTab ? "-1" : o}
|
|
207
|
+
>${u}</a>
|
|
208
|
+
` : e.button ? a`
|
|
209
|
+
<button class="avatar avatar--interactive"
|
|
210
|
+
type="button"
|
|
211
|
+
aria-label=${l}
|
|
212
|
+
tabindex=${e.noTab ? "-1" : o}
|
|
213
|
+
>${u}</button>
|
|
214
|
+
` : a`<div class="avatar">${u}</div>`, m = e.decorative ? "" : e.accessibleLabel || e.name;
|
|
215
|
+
return m && e.tooltipTiming !== "never" ? a`
|
|
216
|
+
<nldd-tooltip
|
|
217
|
+
text=${m}
|
|
218
|
+
timing=${e.tooltipTiming}
|
|
219
|
+
>
|
|
220
|
+
${p}
|
|
221
|
+
</nldd-tooltip>
|
|
222
|
+
` : p;
|
|
223
|
+
}
|
|
224
|
+
// src/components/content/avatar/avatar.ts
|
|
225
|
+
var _ = /* @__PURE__ */ e({ NLDDAvatar: () => b }), v, y = .75, b = (v = class extends p(i, m) {
|
|
226
|
+
constructor(...e) {
|
|
227
|
+
super(...e), this.type = "person", this.size = "full", this.color = "neutral", this.iconAligned = !1, this.name = "", this.initials = "", this.src = "", this.srcset = "", this.icon = "", this.accessibleLabel = "", this.decorative = !1, this.tooltipTiming = "delay", this.href = "", this.noTab = !1, this.button = !1, this.target = "", this.rel = "", this._imageFailed = !1, this._onImageError = () => {
|
|
228
|
+
this._imageFailed = !0;
|
|
229
|
+
}, this._resizeObserver = new ResizeObserver(() => this._fitInitials());
|
|
230
|
+
}
|
|
231
|
+
get isInteractive() {
|
|
232
|
+
return !!this.href || this.button;
|
|
233
|
+
}
|
|
234
|
+
get resolvedInitials() {
|
|
235
|
+
if (this.initials) return this.initials.slice(0, 3);
|
|
236
|
+
let e = this.name.trim().split(/\s+/).filter(Boolean);
|
|
237
|
+
return e.length === 0 ? "" : (e[0].charAt(0) + (e.length > 1 ? e[e.length - 1].charAt(0) : "")).toUpperCase();
|
|
238
|
+
}
|
|
239
|
+
get resolvedIcon() {
|
|
240
|
+
return this.icon ? this.icon : this.type === "organization" ? "building" : "person";
|
|
241
|
+
}
|
|
242
|
+
willUpdate(e) {
|
|
243
|
+
super.willUpdate(e), (e.has("src") || e.has("srcset")) && (this._imageFailed = !1);
|
|
244
|
+
}
|
|
245
|
+
firstUpdated() {
|
|
246
|
+
let e = this.shadowRoot?.querySelector(".avatar");
|
|
247
|
+
e && this._resizeObserver.observe(e);
|
|
248
|
+
}
|
|
249
|
+
connectedCallback() {
|
|
250
|
+
super.connectedCallback();
|
|
251
|
+
let e = this.shadowRoot?.querySelector(".avatar");
|
|
252
|
+
this.hasUpdated && e && this._resizeObserver.observe(e);
|
|
253
|
+
}
|
|
254
|
+
disconnectedCallback() {
|
|
255
|
+
super.disconnectedCallback(), this._resizeObserver.disconnect();
|
|
256
|
+
}
|
|
257
|
+
updated(e) {
|
|
258
|
+
let t = !this.decorative && this.name.trim() !== "";
|
|
259
|
+
this.isInteractive ? (this.removeAttribute("role"), this.removeAttribute("aria-label"), this.removeAttribute("aria-hidden")) : t ? (this.setAttribute("role", "img"), this.setAttribute("aria-label", this.name), this.removeAttribute("aria-hidden")) : (this.setAttribute("aria-hidden", "true"), this.removeAttribute("role"), this.removeAttribute("aria-label")), (e.has("name") || e.has("initials") || e.has("src") || e.has("srcset") || e.has("_imageFailed")) && this._fitInitials();
|
|
260
|
+
}
|
|
261
|
+
_fitInitials() {
|
|
262
|
+
let e = this.shadowRoot?.querySelector(".avatar__initials"), t = this.shadowRoot?.querySelector(".avatar");
|
|
263
|
+
if (!e || !t) {
|
|
264
|
+
this.style.removeProperty("--_avatar-initials-fit");
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
let n = t.clientWidth * y, r = e.scrollWidth;
|
|
268
|
+
n <= 0 || r <= 0 || this.style.setProperty("--_avatar-initials-fit", String(Math.min(1, n / r)));
|
|
269
|
+
}
|
|
270
|
+
render() {
|
|
271
|
+
return g(this);
|
|
272
|
+
}
|
|
273
|
+
}, v.styles = h, v);
|
|
274
|
+
s([n({
|
|
275
|
+
reflect: !0,
|
|
276
|
+
converter: l("person")
|
|
277
|
+
})], b.prototype, "type", void 0), s([n({
|
|
278
|
+
reflect: !0,
|
|
279
|
+
converter: l("full")
|
|
280
|
+
})], b.prototype, "size", void 0), s([n({
|
|
281
|
+
reflect: !0,
|
|
282
|
+
converter: l("neutral")
|
|
283
|
+
})], b.prototype, "color", void 0), s([n({
|
|
284
|
+
type: Boolean,
|
|
285
|
+
reflect: !0,
|
|
286
|
+
attribute: "icon-aligned"
|
|
287
|
+
})], b.prototype, "iconAligned", void 0), s([n({ type: String })], b.prototype, "name", void 0), s([n({ type: String })], b.prototype, "initials", void 0), s([n({ type: String })], b.prototype, "src", void 0), s([n({ type: String })], b.prototype, "srcset", void 0), s([n({ type: String })], b.prototype, "icon", void 0), s([n({
|
|
288
|
+
type: String,
|
|
289
|
+
attribute: "accessible-label"
|
|
290
|
+
})], b.prototype, "accessibleLabel", void 0), s([n({
|
|
291
|
+
type: Boolean,
|
|
292
|
+
reflect: !0
|
|
293
|
+
})], b.prototype, "decorative", void 0), s([n({
|
|
294
|
+
reflect: !0,
|
|
295
|
+
attribute: "tooltip-timing",
|
|
296
|
+
converter: l("delay")
|
|
297
|
+
})], b.prototype, "tooltipTiming", void 0), s([n({
|
|
298
|
+
reflect: !0,
|
|
299
|
+
converter: l("")
|
|
300
|
+
})], b.prototype, "href", void 0), s([n({
|
|
301
|
+
type: Boolean,
|
|
302
|
+
reflect: !0,
|
|
303
|
+
attribute: "no-tab"
|
|
304
|
+
})], b.prototype, "noTab", void 0), s([n({
|
|
305
|
+
type: Boolean,
|
|
306
|
+
reflect: !0
|
|
307
|
+
})], b.prototype, "button", void 0), s([n({ type: String })], b.prototype, "target", void 0), s([n({ type: String })], b.prototype, "rel", void 0), s([r()], b.prototype, "_imageFailed", void 0), b = s([c("nldd-avatar")], b);
|
|
308
|
+
export { _ as t };
|
|
@@ -0,0 +1,338 @@
|
|
|
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 { t as u } from "./with-translations-XX14GKFh.js";
|
|
7
|
+
import "./tooltip-BsAHJjci.js";
|
|
8
|
+
import { n as d } from "./breakpoints-Cwor8TRP.js";
|
|
9
|
+
import "./spacer-cell-DuVOgIj8.js";
|
|
10
|
+
import "./text-cell-BkEsGI3g.js";
|
|
11
|
+
import "./avatar-ASqePVhU.js";
|
|
12
|
+
import "./popover-CGbeEv_-.js";
|
|
13
|
+
import "./container-rrbwk0z4.js";
|
|
14
|
+
import "./page-CBf_Decp.js";
|
|
15
|
+
import "./top-title-bar-iNFB2zQL.js";
|
|
16
|
+
import "./list-CaWl3q0Z.js";
|
|
17
|
+
import "./list-item-Cagnf6eG.js";
|
|
18
|
+
import "./cell-BRD2ilQh.js";
|
|
19
|
+
import { t as f } from "./avatar-group.i18n-BYw_9wt_.js";
|
|
20
|
+
// src/components/content/avatar-group/avatar-group.styles.ts
|
|
21
|
+
var p = e(d.mdMin), m = t`
|
|
22
|
+
:host {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/* # Host */
|
|
28
|
+
|
|
29
|
+
:host {
|
|
30
|
+
--_avatar-group-size: var(--primitives-space-40);
|
|
31
|
+
--_avatar-group-overlap-size: calc(var(--_avatar-group-size) * 0.2);
|
|
32
|
+
--_avatar-group-width: calc(var(--_avatar-group-discs) * (var(--_avatar-group-size) - var(--_avatar-group-overlap-size)) + var(--_avatar-group-overlap-size));
|
|
33
|
+
--_avatar-group-min-width: calc(2 * (var(--_avatar-group-size) - var(--_avatar-group-overlap-size)) + var(--_avatar-group-overlap-size));
|
|
34
|
+
--_avatar-group-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
35
|
+
--_avatar-group-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
36
|
+
--_avatar-group-corner-radius: var(--primitives-corner-radius-full);
|
|
37
|
+
--_avatar-group-overflow-background-color: light-dark(var(--primitives-color-neutral-25), var(--primitives-color-neutral-150));
|
|
38
|
+
--_avatar-group-overflow-hover-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-200));
|
|
39
|
+
--_avatar-group-overflow-active-background-color: light-dark(var(--primitives-color-neutral-75), var(--primitives-color-neutral-250));
|
|
40
|
+
--_avatar-group-overflow-expanded-hover-background-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-300));
|
|
41
|
+
--_avatar-group-overflow-content-color: var(--semantics-content-secondary-color);
|
|
42
|
+
--_avatar-group-overflow-font: var(--primitives-font-body-xs-medium-flat);
|
|
43
|
+
--_avatar-group-overflow-font-scale: 0.235;
|
|
44
|
+
--_avatar-group-overflow-font-offset: 5.5px;
|
|
45
|
+
--_avatar-group-overflow-digits-scale: 1;
|
|
46
|
+
--_avatar-group-overflow-icon-scale: 0.5;
|
|
47
|
+
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
width: var(--_avatar-group-width);
|
|
50
|
+
min-width: min(var(--_avatar-group-width), var(--_avatar-group-min-width));
|
|
51
|
+
max-width: 100%;
|
|
52
|
+
vertical-align: middle;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host([hidden]) {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/* ## Size */
|
|
61
|
+
|
|
62
|
+
:host([size="16"]) { --_avatar-group-size: var(--primitives-space-16); }
|
|
63
|
+
:host([size="20"]) { --_avatar-group-size: var(--primitives-space-20); }
|
|
64
|
+
:host([size="24"]) { --_avatar-group-size: var(--primitives-space-24); }
|
|
65
|
+
:host([size="28"]) { --_avatar-group-size: var(--primitives-space-28); }
|
|
66
|
+
:host([size="32"]) { --_avatar-group-size: var(--primitives-space-32); }
|
|
67
|
+
:host([size="44"]) { --_avatar-group-size: var(--primitives-space-44); }
|
|
68
|
+
:host([size="48"]) { --_avatar-group-size: var(--primitives-space-48); }
|
|
69
|
+
:host([size="56"]) { --_avatar-group-size: var(--primitives-space-56); }
|
|
70
|
+
:host([size="64"]) { --_avatar-group-size: var(--primitives-space-64); }
|
|
71
|
+
:host([size="80"]) { --_avatar-group-size: var(--primitives-space-80); }
|
|
72
|
+
:host([size="96"]) { --_avatar-group-size: var(--primitives-space-96); }
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/* # Group */
|
|
76
|
+
|
|
77
|
+
.avatar-group {
|
|
78
|
+
display: flex;
|
|
79
|
+
padding-inline-start: var(--_avatar-group-overlap-size);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/* # Overflow
|
|
84
|
+
|
|
85
|
+
A step away from the surface rather than towards it: it is the one disc
|
|
86
|
+
that holds no face, and it has to stay a disc. In light that means one
|
|
87
|
+
step down from the avatar fill; in dark the scale runs the other way, so
|
|
88
|
+
it is one step up from the surface instead — a darker disc would sink
|
|
89
|
+
into the page. */
|
|
90
|
+
|
|
91
|
+
.avatar-group__overflow-button {
|
|
92
|
+
appearance: none;
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
position: relative;
|
|
96
|
+
z-index: 0;
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
margin-inline-start: calc(-1 * var(--_avatar-group-overlap-size));
|
|
99
|
+
border: none;
|
|
100
|
+
border-radius: var(--_avatar-group-corner-radius);
|
|
101
|
+
box-shadow: 0 0 0 var(--_avatar-group-ring-thickness) var(--_avatar-group-ring-color);
|
|
102
|
+
background-color: var(--_avatar-group-overflow-background-color);
|
|
103
|
+
width: var(--_avatar-group-size);
|
|
104
|
+
height: var(--_avatar-group-size);
|
|
105
|
+
padding: 0;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
color: var(--_avatar-group-overflow-content-color);
|
|
109
|
+
font: var(--_avatar-group-overflow-font);
|
|
110
|
+
/* The offset makes the count relatively larger on a small disc and smaller on a large one. */
|
|
111
|
+
font-size: calc((var(--_avatar-group-overflow-font-scale) * var(--_avatar-group-size) + var(--_avatar-group-overflow-font-offset)) * var(--_avatar-group-overflow-digits-scale));
|
|
112
|
+
line-height: 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.avatar-group__overflow-button--digits-3 {
|
|
116
|
+
--_avatar-group-overflow-digits-scale: 0.8;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.avatar-group__overflow-button--digits-4 {
|
|
120
|
+
--_avatar-group-overflow-digits-scale: 0.7;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.avatar-group__overflow-icon {
|
|
124
|
+
width: calc(var(--_avatar-group-overflow-icon-scale) * var(--_avatar-group-size));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Each state is the smallest step the neutral scale has, one notch further.
|
|
128
|
+
No semantic hover token fits: the button-hover colors are meant for a
|
|
129
|
+
control that already looks like a button, and here they read as a jump.
|
|
130
|
+
It only has to confirm that this disc is clickable. */
|
|
131
|
+
.avatar-group__overflow-button:hover {
|
|
132
|
+
background-color: var(--_avatar-group-overflow-hover-background-color);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.avatar-group__overflow-button:active,
|
|
136
|
+
.avatar-group__overflow-button[aria-expanded="true"] {
|
|
137
|
+
background-color: var(--_avatar-group-overflow-active-background-color);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.avatar-group__overflow-button[aria-expanded="true"]:hover {
|
|
141
|
+
background-color: var(--_avatar-group-overflow-expanded-hover-background-color);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.avatar-group__overflow-button:focus-visible {
|
|
145
|
+
outline: var(--semantics-focus-ring-outline);
|
|
146
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
/* Anchored on md and up, the list needs no bar to close it. */
|
|
151
|
+
@media (min-width: ${p}) {
|
|
152
|
+
.avatar-group__overflow-title-bar {
|
|
153
|
+
display: none;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
/* # Avatars
|
|
159
|
+
|
|
160
|
+
A slotted avatar can't be wrapped, so the group sizes it here. The ring
|
|
161
|
+
is a box-shadow rather than a border: it sits outside the shape without
|
|
162
|
+
changing the diameter, so overlap stays exact. */
|
|
163
|
+
|
|
164
|
+
/* !important: nldd-avatar sizes itself from :host([size]) in its own shadow
|
|
165
|
+
tree, and a tree's own rules beat an outer ::slotted() of equal weight. */
|
|
166
|
+
.avatar-group ::slotted(nldd-avatar) {
|
|
167
|
+
position: relative;
|
|
168
|
+
flex-shrink: 0;
|
|
169
|
+
margin-inline-start: calc(-1 * var(--_avatar-group-overlap-size));
|
|
170
|
+
border-radius: var(--_avatar-group-corner-radius);
|
|
171
|
+
box-shadow: 0 0 0 var(--_avatar-group-ring-thickness) var(--_avatar-group-ring-color);
|
|
172
|
+
width: var(--_avatar-group-size) !important;
|
|
173
|
+
height: var(--_avatar-group-size) !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* A box-shadow does not paint in forced colors, so the separation comes
|
|
177
|
+
back as a real border there. */
|
|
178
|
+
@media (forced-colors: active) {
|
|
179
|
+
.avatar-group ::slotted(nldd-avatar) {
|
|
180
|
+
border: var(--_avatar-group-ring-thickness) solid Canvas;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
`;
|
|
184
|
+
// src/components/content/avatar-group/avatar-group.template.ts
|
|
185
|
+
function h(e, t) {
|
|
186
|
+
let n = e._overflowCountFits, r = Math.min(String(e._overflow.length).length, 4), i = a`
|
|
187
|
+
<button class="avatar-group__overflow-button avatar-group__overflow-button--digits-${r}"
|
|
188
|
+
id=${e._triggerId}
|
|
189
|
+
type="button"
|
|
190
|
+
aria-label=${t}
|
|
191
|
+
popovertarget=${e._popoverId}
|
|
192
|
+
>
|
|
193
|
+
${n ? `+${e._overflow.length}` : a`<nldd-icon class="avatar-group__overflow-icon" icon="ellipsis"></nldd-icon>`}
|
|
194
|
+
</button>
|
|
195
|
+
`;
|
|
196
|
+
return n ? i : a`<nldd-tooltip text=${t}>${i}</nldd-tooltip>`;
|
|
197
|
+
}
|
|
198
|
+
function g(e) {
|
|
199
|
+
let t = e._overflow, n = e._t("components.avatar-group.overflow-label").replace("{count}", String(t.length)), r = e.accessibleLabel || e._t("components.avatar-group.overflow-popover-label");
|
|
200
|
+
return a`
|
|
201
|
+
<style id="generated-rules"></style>
|
|
202
|
+
<div class="avatar-group"
|
|
203
|
+
role=${e.accessibleLabel ? "group" : o}
|
|
204
|
+
aria-label=${e.accessibleLabel || o}
|
|
205
|
+
>
|
|
206
|
+
<slot @slotchange=${e._onSlotChange}></slot>
|
|
207
|
+
${t.length > 0 ? h(e, n) : o}
|
|
208
|
+
</div>
|
|
209
|
+
${t.length > 0 ? a`
|
|
210
|
+
<nldd-popover
|
|
211
|
+
id=${e._popoverId}
|
|
212
|
+
anchor=${e._triggerId}
|
|
213
|
+
placement="bottom-end"
|
|
214
|
+
accessible-label=${r}
|
|
215
|
+
>
|
|
216
|
+
<nldd-page
|
|
217
|
+
landmarks="region"
|
|
218
|
+
sticky-header
|
|
219
|
+
>
|
|
220
|
+
<nldd-top-title-bar
|
|
221
|
+
class="avatar-group__overflow-title-bar"
|
|
222
|
+
slot="header"
|
|
223
|
+
text=${r}
|
|
224
|
+
heading-level="2"
|
|
225
|
+
dismiss-text=${e._t("components.avatar-group.overflow-close")}
|
|
226
|
+
></nldd-top-title-bar>
|
|
227
|
+
<nldd-container
|
|
228
|
+
padding-inline="16"
|
|
229
|
+
padding-block="8"
|
|
230
|
+
>
|
|
231
|
+
<nldd-list dividers="never">
|
|
232
|
+
${t.map((e) => a`
|
|
233
|
+
<nldd-list-item size="sm">
|
|
234
|
+
<nldd-cell width="fit-content">
|
|
235
|
+
${e.avatar}
|
|
236
|
+
</nldd-cell>
|
|
237
|
+
<nldd-spacer-cell size="8"></nldd-spacer-cell>
|
|
238
|
+
<nldd-text-cell
|
|
239
|
+
width="full"
|
|
240
|
+
text=${e.name}
|
|
241
|
+
></nldd-text-cell>
|
|
242
|
+
</nldd-list-item>
|
|
243
|
+
`)}
|
|
244
|
+
</nldd-list>
|
|
245
|
+
</nldd-container>
|
|
246
|
+
</nldd-page>
|
|
247
|
+
</nldd-popover>
|
|
248
|
+
` : o}
|
|
249
|
+
`;
|
|
250
|
+
}
|
|
251
|
+
// src/components/content/avatar-group/avatar-group.ts
|
|
252
|
+
var _, v = [
|
|
253
|
+
24,
|
|
254
|
+
40,
|
|
255
|
+
56,
|
|
256
|
+
80
|
|
257
|
+
], y = .2, b = (_ = class extends u(i, f) {
|
|
258
|
+
constructor(...e) {
|
|
259
|
+
super(...e), this.size = "40", this.max = void 0, this.accessibleLabel = "", this._overflow = [], this._total = 0, this._fitMax = void 0, this._resizeObserver = new ResizeObserver(([e]) => this._measureFit(e.contentRect.width)), this._id = Math.random().toString(36).slice(2, 9), this._assigned = [], this._onSlotChange = (e) => {
|
|
260
|
+
this._assigned = e.target.assignedElements(), this._recompute();
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
get _popoverId() {
|
|
264
|
+
return `avatar-group-overflow-${this._id}`;
|
|
265
|
+
}
|
|
266
|
+
get _triggerId() {
|
|
267
|
+
return `avatar-group-trigger-${this._id}`;
|
|
268
|
+
}
|
|
269
|
+
get _effectiveMax() {
|
|
270
|
+
let e = typeof this.max == "number" && this.max > 0 ? this.max : void 0;
|
|
271
|
+
return this._fitMax === void 0 ? e : e === void 0 ? this._fitMax : Math.min(e, this._fitMax);
|
|
272
|
+
}
|
|
273
|
+
_rowWidth(e) {
|
|
274
|
+
let t = Number(this.size);
|
|
275
|
+
return e * t * .8 + t * y;
|
|
276
|
+
}
|
|
277
|
+
_measureFit(e) {
|
|
278
|
+
if (e === 0) return;
|
|
279
|
+
let t = this._assigned.length;
|
|
280
|
+
if (this._rowWidth(t) <= e + .5) {
|
|
281
|
+
this._fitMax = void 0;
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
let n = Math.floor((e + .5 - this._rowWidth(0)) / (Number(this.size) * .8));
|
|
285
|
+
this._fitMax = Math.max(1, n - 1);
|
|
286
|
+
}
|
|
287
|
+
connectedCallback() {
|
|
288
|
+
super.connectedCallback(), this._resizeObserver.observe(this);
|
|
289
|
+
}
|
|
290
|
+
disconnectedCallback() {
|
|
291
|
+
super.disconnectedCallback(), this._resizeObserver.disconnect();
|
|
292
|
+
}
|
|
293
|
+
get _overflowCountFits() {
|
|
294
|
+
let e = v[String(this._overflow.length).length - 1];
|
|
295
|
+
return e !== void 0 && Number(this.size) >= e;
|
|
296
|
+
}
|
|
297
|
+
_nameOf(e) {
|
|
298
|
+
return e.getAttribute("name") || "";
|
|
299
|
+
}
|
|
300
|
+
willUpdate(e) {
|
|
301
|
+
(e.has("max") || e.has("_fitMax") || e.has("size")) && this._recompute();
|
|
302
|
+
}
|
|
303
|
+
_recompute() {
|
|
304
|
+
let e = this._assigned, t = this._effectiveMax, n = t !== void 0 && e.length > t ? e.slice(t) : [];
|
|
305
|
+
this._overflow = n.map((e) => {
|
|
306
|
+
let t = e.cloneNode(!0);
|
|
307
|
+
return t.setAttribute("decorative", ""), t.setAttribute("tooltip-timing", "never"), t.setAttribute("size", "32"), t.removeAttribute("slot"), {
|
|
308
|
+
avatar: t,
|
|
309
|
+
name: this._nameOf(e)
|
|
310
|
+
};
|
|
311
|
+
}), this._total = e.length;
|
|
312
|
+
}
|
|
313
|
+
_syncGeneratedRules() {
|
|
314
|
+
let e = this.shadowRoot?.querySelector("#generated-rules");
|
|
315
|
+
if (!e) return;
|
|
316
|
+
let t = this._total, n = this._effectiveMax, r = this._overflow.length > 0 && n !== void 0 ? `.avatar-group ::slotted(:nth-child(n + ${n + 1})) { display: none; }` : "";
|
|
317
|
+
e.textContent = `${`:host { --_avatar-group-discs: ${typeof this.max == "number" && this.max > 0 && t > this.max ? this.max + 1 : t}; }`}\n${r}\n${Array.from({ length: t }, (e, n) => `.avatar-group ::slotted(:nth-child(${n + 1})) { z-index: ${t - n}; }`).join("\n")}`;
|
|
318
|
+
}
|
|
319
|
+
updated() {
|
|
320
|
+
this._syncGeneratedRules(), this._measureFit(this.getBoundingClientRect().width);
|
|
321
|
+
let e = this.shadowRoot?.querySelector("nldd-popover"), t = this.shadowRoot?.querySelector(".avatar-group__overflow-button") ?? null;
|
|
322
|
+
e && e.anchorElement !== t && (e.anchorElement = t);
|
|
323
|
+
}
|
|
324
|
+
render() {
|
|
325
|
+
return g(this);
|
|
326
|
+
}
|
|
327
|
+
}, _.styles = m, _);
|
|
328
|
+
s([n({
|
|
329
|
+
reflect: !0,
|
|
330
|
+
converter: l("40")
|
|
331
|
+
})], b.prototype, "size", void 0), s([n({
|
|
332
|
+
type: Number,
|
|
333
|
+
reflect: !0
|
|
334
|
+
})], b.prototype, "max", void 0), s([n({
|
|
335
|
+
type: String,
|
|
336
|
+
attribute: "accessible-label"
|
|
337
|
+
})], b.prototype, "accessibleLabel", void 0), s([r()], b.prototype, "_overflow", void 0), s([r()], b.prototype, "_total", void 0), s([r()], b.prototype, "_fitMax", void 0), b = s([c("nldd-avatar-group")], b);
|
|
338
|
+
export { b as NLDDAvatarGroup };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// src/components/content/avatar-group/avatar-group.i18n.ts
|
|
2
|
+
var e = {
|
|
3
|
+
"components.avatar-group.overflow-label": "Nog {count} tonen",
|
|
4
|
+
"components.avatar-group.overflow-popover-label": "Overige namen",
|
|
5
|
+
"components.avatar-group.overflow-close": "Sluit"
|
|
6
|
+
};
|
|
7
|
+
export { e as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// src/components/content/avatar/avatar.i18n.ts
|
|
2
|
+
var e = {
|
|
3
|
+
"components.avatar.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
|
|
4
|
+
"components.avatar.link-hint-external-lowercase-label": "andere website",
|
|
5
|
+
"components.avatar.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad"
|
|
6
|
+
};
|
|
7
|
+
export { e as t };
|