@nldd/design-system 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/custom-elements.json +1268 -204
- package/dist/assets/styles/scroll-fade.d.ts +13 -0
- package/dist/assets/styles/scroll-fade.d.ts.map +1 -0
- package/dist/assets/styles/scroll-fade.js +53 -0
- package/dist/assets/styles/scroll-fade.js.map +1 -0
- package/dist/assets/styles/shadow-resets.d.ts +19 -0
- package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
- package/dist/assets/styles/shadow-resets.js +35 -0
- package/dist/assets/styles/shadow-resets.js.map +1 -1
- package/dist/cdn/autoloader.js +137 -136
- package/dist/cdn/chunks/{activity-indicator-BTnpfsIt.js → activity-indicator-DWBG1Csi.js} +8 -7
- package/dist/cdn/chunks/{avatar--5c37XVW.js → avatar-CRZLseMs.js} +20 -19
- package/dist/cdn/chunks/{avatar-group-BNfmY5CU.js → avatar-group-coYbMhot.js} +17 -16
- package/dist/cdn/chunks/{badge-YAvIVoRy.js → badge-DAXG-uIw.js} +13 -10
- package/dist/cdn/chunks/{banner-BpCK57yd.js → banner-BbR0rebp.js} +9 -7
- package/dist/cdn/chunks/{bar-split-view-BgYo4YJw.js → bar-split-view-DoklVwuj.js} +27 -24
- package/dist/cdn/chunks/{blockquote-BOu-31f3.js → blockquote-DfIl4wTC.js} +4 -3
- package/dist/cdn/chunks/{box-YipFNjJh.js → box-CXICi_Gs.js} +12 -10
- package/dist/cdn/chunks/{breadcrumbs-DSVAVozW.js → breadcrumbs-CVoNqsU2.js} +13 -8
- package/dist/cdn/chunks/{button-XtEOeBEq.js → button-DWzqSerk.js} +101 -75
- package/dist/cdn/chunks/{button-bar-D1i71rRQ.js → button-bar-DwFLuumP.js} +15 -11
- package/dist/cdn/chunks/{button-group-un5QDbqK.js → button-group-D-nEY7Wz.js} +2 -2
- package/dist/cdn/chunks/{card-D5yTAdts.js → card-CIVLEFhz.js} +24 -22
- package/dist/cdn/chunks/{cell-BbtB9C2Z.js → cell-C79LmCOU.js} +6 -6
- package/dist/cdn/chunks/{checkbox-oYX8b8iy.js → checkbox-BQepKdVv.js} +25 -20
- package/dist/cdn/chunks/{checkbox-field-Cmc6Aagc.js → checkbox-field-ColaTYKE.js} +9 -7
- package/dist/cdn/chunks/{class-map-DKd4N9Wz.js → class-map-9VgiG_zt.js} +1 -1
- package/dist/cdn/chunks/{code-editor-BZwpTu4O.js → code-editor-FNmK9xRx.js} +7 -6
- package/dist/cdn/chunks/{code-viewer-C4XDF03i.js → code-viewer-C5whEGq6.js} +147 -102
- package/dist/cdn/chunks/{codemirror-input-Sen5OmAF.js → codemirror-input-SKGbh9LP.js} +4 -4
- package/dist/cdn/chunks/{collection-BnZstW7U.js → collection-Dq6Z66UX.js} +8 -8
- package/dist/cdn/chunks/{combo-box-BpaGeypm.js → combo-box-CoOSPICd.js} +17 -8
- package/dist/cdn/chunks/{container-DuV5d7Eb.js → container-CtwuWO3a.js} +14 -6
- package/dist/cdn/chunks/{custom-element-DsfOrnOD.js → custom-element-BVKCDhPV.js} +1 -1
- package/dist/cdn/chunks/{date-field-FactdbhC.js → date-field-CqnGM7GR.js} +24 -14
- package/dist/cdn/chunks/{date-field.i18n-BTzc0E9a.js → date-field.i18n-BqIx3eyr.js} +1 -1
- package/dist/cdn/chunks/{date-picker-BtlBTKvh.js → date-picker-C2iGHw2u.js} +18 -10
- package/dist/cdn/chunks/{decorate-CJCfz_g6.js → decorate-CK3hc5C5.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-CPultP0p.js → described-by-mixin-DGAPpEdM.js} +6 -3
- package/dist/cdn/chunks/{description-cell-DFc0_dWI.js → description-cell-B08Ma5EJ.js} +9 -8
- package/dist/cdn/chunks/{dev-checks-DGwOQoR3.js → dev-checks-BwWYGVrJ.js} +175 -72
- package/dist/cdn/chunks/{dist-BUqkX3a-.js → dist-B2YK3eT2.js} +3 -3
- package/dist/cdn/chunks/{dist-D-9cbJjq.js → dist-B4vELUJW.js} +3 -3
- package/dist/cdn/chunks/{dist-CtdONv3x.js → dist-B8vBP_Xz.js} +1 -1
- package/dist/cdn/chunks/{dist-ClsiJytN.js → dist-BThgPtD7.js} +2 -2
- package/dist/cdn/chunks/{dist-BuquxOFD.js → dist-CKeY28-M.js} +2 -2
- package/dist/cdn/chunks/{dist-CxdoWiwX.js → dist-CQ5kBaGZ.js} +1 -1
- package/dist/cdn/chunks/{dist-Bmb_H8Sp.js → dist-CWN_qz9z.js} +1 -1
- package/dist/cdn/chunks/{dist-6xUfJUfa.js → dist-D1t9kkjo.js} +1 -1
- package/dist/cdn/chunks/{dist-BWSiWu4t.js → dist-DP5DQSlX.js} +2 -2
- package/dist/cdn/chunks/{dist-CM5DHMaz.js → dist-DzcXDSFC.js} +1 -1
- package/dist/cdn/chunks/{dist-AQ1Gehx3.js → dist-jAq440y0.js} +1 -1
- package/dist/cdn/chunks/{divider-CZ8Hn1om.js → divider-KgHxRNV9.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-BBnyyiEA.js → document-tab-bar-CTIcETDr.js} +27 -13
- package/dist/cdn/chunks/{dropdown-Bbbgy8mT.js → dropdown-BhrCadMW.js} +10 -5
- package/dist/cdn/chunks/{file-field-CddG_e0F.js → file-field-DzH4Yrj5.js} +30 -12
- package/dist/cdn/chunks/{form-DIIMIq0q.js → form-CzmdlZ0i.js} +1 -1
- package/dist/cdn/chunks/{form-actions-BICy0Sgp.js → form-actions-CDQW1p3w.js} +2 -2
- package/dist/cdn/chunks/{form-field-Bnei2EQO.js → form-field-D_qJpPAS.js} +15 -8
- package/dist/cdn/chunks/{form-section-Cv0tr0pm.js → form-section-Jy5b5Qtp.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-LOfo_1Aj.js → full-bleed-section-BDIuXLGU.js} +3 -3
- package/dist/cdn/chunks/{hero-BABWpYs5.js → hero-BPHFHrUT.js} +106 -97
- package/dist/cdn/chunks/{icon-D5dJm51v.js → icon-BE2ojX0S.js} +52 -29
- package/dist/cdn/chunks/{icon-button-DtxIRaQy.js → icon-button-CFMhdG1B.js} +85 -63
- package/dist/cdn/chunks/{icon-cell-Be5awZV7.js → icon-cell-CQ-e1GB2.js} +11 -11
- package/dist/cdn/chunks/{identity-B4KtbT8h.js → identity-7wQDjeGb.js} +7 -5
- package/dist/cdn/chunks/{if-defined-BirFs11D.js → if-defined-G1P3HUvi.js} +1 -1
- package/dist/cdn/chunks/{image-BpVEir6U.js → image-QPbmNKvZ.js} +44 -34
- package/dist/cdn/chunks/{inline-dialog-B627fZmT.js → inline-dialog-DP3AXfJV.js} +9 -6
- package/dist/cdn/chunks/interest-controller-Ban-3NrX.js +117 -0
- package/dist/cdn/chunks/{just-in-time-education-Nw5ido3N.js → just-in-time-education-DnaF_sLc.js} +8 -5
- package/dist/cdn/chunks/{kanban-column-v5rfv8fN.js → kanban-column-B_Jrut9s.js} +6 -4
- package/dist/cdn/chunks/{kanban-9HGexCJx.js → kanban-o2GMLjsq.js} +5 -5
- package/dist/cdn/chunks/{keyboard-shortcut-CVNilmgr.js → keyboard-shortcut-Dm366Dra.js} +8 -6
- package/dist/cdn/chunks/{languages-Ce4h7R1-.js → languages-Dlh_tbAH.js} +12 -12
- package/dist/cdn/chunks/{link-BQQwp17j.js → link-DhTY3Sjh.js} +41 -23
- package/dist/cdn/chunks/{link-group-CQhEcQIV.js → link-group-YuwD1m6-.js} +2 -2
- package/dist/cdn/chunks/{list-DDxjOe38.js → list-Cdvib5Y-.js} +48 -13
- package/dist/cdn/chunks/{list-item-segment-CnGHU6G-.js → list-item-segment-F3av0jxz.js} +14 -12
- package/dist/cdn/chunks/{list-item-Da6-fFDs.js → list-item-vO3GwQWa.js} +110 -103
- package/dist/cdn/chunks/{menu-bar-MPNB2ovW.js → menu-bar-imOaTlGm.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-item-BuZ-VvnR.js → menu-bar-item-ChQbM1ER.js} +7 -6
- package/dist/cdn/chunks/{menu-uOExHS1i.js → menu-dTVlz6mn.js} +35 -18
- package/dist/cdn/chunks/{menu-divider-CcOTQxx5.js → menu-divider-D7s6f49y.js} +3 -3
- package/dist/cdn/chunks/{menu-group-DGgbYejF.js → menu-group-BcEmoNvL.js} +4 -4
- package/dist/cdn/chunks/{menu-item-DgM4RmyD.js → menu-item-BGlVTfe6.js} +34 -32
- package/dist/cdn/chunks/menu-item.i18n-CKUJBOeE.js +7 -0
- package/dist/cdn/chunks/{menu.template-DkbfQRQ6.js → menu.template-syBthjEV.js} +150 -90
- package/dist/cdn/chunks/{modal-dialog-BRYfJ7Vf.js → modal-dialog-BBK25tjm.js} +27 -26
- package/dist/cdn/chunks/{multi-line-text-field-CWOPY6sF.js → multi-line-text-field-DuL6nLG_.js} +9 -5
- package/dist/cdn/chunks/{navigation-split-view-BRiplUXM.js → navigation-split-view-CdZNbX91.js} +50 -69
- package/dist/cdn/chunks/nl.generated-CgRVSEh6.js +116 -0
- package/dist/cdn/chunks/{notification-DhnzrUQp.js → notification-Dwhfnjb2.js} +9 -6
- package/dist/cdn/chunks/{number-field-DgRrXCiv.js → number-field-Dl4zZvVe.js} +13 -7
- package/dist/cdn/chunks/{one-half-one-half-section-D7tzDw-p.js → one-half-one-half-section-BJxLZfiK.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-E8xOdcsf.js → one-third-two-thirds-section-CARh_hdH.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-BoJdVvNN.js → one-time-code-field-FaxqiiD6.js} +10 -6
- package/dist/cdn/chunks/{page-DDm193hL.js → page-Cc5bb6VU.js} +35 -32
- package/dist/cdn/chunks/{page-footer-32oZSwvG.js → page-footer-Df1cS-ks.js} +45 -42
- package/dist/cdn/chunks/{page-section-mixin-CmsW9L1S.js → page-section-mixin-BzgAU2sX.js} +38 -40
- package/dist/cdn/chunks/{pagination-Co1BlFTP.js → pagination-BcnkrWV_.js} +13 -6
- package/dist/cdn/chunks/{password-field-BxKQRE4K.js → password-field-CeIJm406.js} +11 -7
- package/dist/cdn/chunks/{popover-DpCE_XjR.js → popover-BIMt3aqW.js} +75 -49
- package/dist/cdn/chunks/{progress-bar-5WAVf0HV.js → progress-bar-C9CWhkse.js} +11 -9
- package/dist/cdn/chunks/{progress-circle-D7Mn6WZv.js → progress-circle-CJL1aFbS.js} +9 -7
- package/dist/cdn/chunks/{radio-button-pd8lwtEO.js → radio-button-DKo5kdLW.js} +16 -16
- package/dist/cdn/chunks/{radio-button-field-Dxnahic-.js → radio-button-field-DPZajMnT.js} +9 -7
- package/dist/cdn/chunks/{radio-button-group-D_4lI2U-.js → radio-button-group-BBZhU3bn.js} +3 -3
- package/dist/cdn/chunks/{render-marked-CAskRZMx.js → render-marked-Bkoq5vNH.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-BL8ECfi5.js → reorder-handle-cell-CEW8Cg1r.js} +5 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-BDRPLv58.js → reorder-handle-mixin-BkksqjmK.js} +2 -2
- package/dist/cdn/chunks/{repeat-D5W3dDCY.js → repeat-C5V9E9Ta.js} +1 -1
- package/dist/cdn/chunks/{rich-text-diNxNddp.js → rich-text-DEFr_Niu.js} +4 -7
- package/dist/cdn/chunks/{row-header-mixin-Dj6t4nYI.js → row-header-mixin-BSORP0i7.js} +2 -2
- package/dist/cdn/chunks/scroll-fade-B7kZVxmh.js +41 -0
- package/dist/cdn/chunks/{search-field-CLuQnvBU.js → search-field-Dr0MLD_z.js} +17 -9
- package/dist/cdn/chunks/{segmented-control-B0z5J7r9.js → segmented-control-aOIkoklF.js} +12 -6
- package/dist/cdn/chunks/shadow-resets-CRBumQjX.js +28 -0
- package/dist/cdn/chunks/{sheet-CKfFzUCu.js → sheet-BCPE_pDl.js} +38 -36
- package/dist/cdn/chunks/{shell-CglPjEWB.js → shell-ZCsqW56P.js} +24 -21
- package/dist/cdn/chunks/{side-by-side-split-view-DU4ODEBX.js → side-by-side-split-view-BWIyZmzo.js} +22 -19
- package/dist/cdn/chunks/{sidebar-section-DzJw-MHs.js → sidebar-section-Di3mQROc.js} +23 -18
- package/dist/cdn/chunks/{simple-section-BfhBYqMa.js → simple-section-sOkNMsbz.js} +3 -3
- package/dist/cdn/chunks/{skip-link-DwVvD9XL.js → skip-link-mcskOuFr.js} +14 -8
- package/dist/cdn/chunks/skip-link.i18n-B7pVqo5u.js +6 -0
- package/dist/cdn/chunks/{slider-BBxKxr-H.js → slider-CkPk4lBA.js} +11 -9
- package/dist/cdn/chunks/{spacer-CqK1xVh2.js → spacer-RB_KBaTr.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-DS7Tphdm.js → spacer-cell-V1UaaPcO.js} +4 -4
- package/dist/cdn/chunks/{split-button-Brh7EmIA.js → split-button-BUEhYiI5.js} +19 -15
- package/dist/cdn/chunks/{split-view-divider-Bh3XLobi.js → split-view-divider-Rmb9cG9K.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-BPKlAR4d.js → split-view-pane-DQRZ9tE0.js} +23 -20
- package/dist/cdn/chunks/{stacked-split-view-SrIHWkKW.js → stacked-split-view-BaeQhWmd.js} +22 -19
- package/dist/cdn/chunks/{static-html-OvWm15yg.js → static-html-CAczcbUD.js} +1 -1
- package/dist/cdn/chunks/{status-bar-IqyLnoMx.js → status-bar-D3-IYqUp.js} +5 -4
- package/dist/cdn/chunks/{step-bar-DltkU-AG.js → step-bar-BfNXoHds.js} +13 -6
- package/dist/cdn/chunks/{step-cell-BHW3t6nn.js → step-cell-BN2ZKsQ4.js} +9 -6
- package/dist/cdn/chunks/{stepper-DMlk7A-Y.js → stepper-DuPRMxBx.js} +6 -6
- package/dist/cdn/chunks/{style-map-CNYX1L3t.js → style-map-LFqo5rE_.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-BAKkJFgt.js → swatch-picker-BVKCFzpO.js} +6 -5
- package/dist/cdn/chunks/{switch-B3d_1Leh.js → switch-CgUZ0WlQ.js} +11 -10
- package/dist/cdn/chunks/{switch-field-BXJj1PHC.js → switch-field-B4c8-L61.js} +9 -7
- package/dist/cdn/chunks/{tab-bar-C7T0XL0u.js → tab-bar-D-1g8fdF.js} +14 -8
- package/dist/cdn/chunks/{table-CVyPmXfX.js → table-jrJ4EJpq.js} +5 -5
- package/dist/cdn/chunks/{tag-KdbJbRcK.js → tag-JYwa5l-A.js} +11 -6
- package/dist/cdn/chunks/term-NyLmTWnF.js +214 -0
- package/dist/cdn/chunks/term.i18n-DVEJeOb6.js +3 -0
- package/dist/cdn/chunks/{text-cell-CUH5Tf5F.js → text-cell-BXLFcD_e.js} +21 -18
- package/dist/cdn/chunks/{text-editor-Bsfygq28.js → text-editor-rLc5H6kD.js} +284 -238
- package/dist/cdn/chunks/{text-field-BQxQe0ch.js → text-field-B7M4VwCe.js} +14 -5
- package/dist/cdn/chunks/{text-lQLJJw1m.js → text-gy-gkfSS.js} +19 -34
- package/dist/cdn/chunks/{time-field-kdMQ7qaa.js → time-field-BtQRsvpR.js} +128 -98
- package/dist/cdn/chunks/{time-field.i18n-CLH5vmS7.js → time-field.i18n-BM6qGbmN.js} +0 -1
- package/dist/cdn/chunks/{time-picker-T1bZ4zxP.js → time-picker-BKLwibb9.js} +13 -7
- package/dist/cdn/chunks/{title-yXmufzsm.js → title-DLD3RW7l.js} +15 -34
- package/dist/cdn/chunks/{title-cell-CyJr9OiV.js → title-cell-BCUBuKIO.js} +22 -19
- package/dist/cdn/chunks/{toggle-button-DiZaFEAk.js → toggle-button-Etx8hKQS.js} +13 -7
- package/dist/cdn/chunks/{toggle-button-group-DRai7q0C.js → toggle-button-group-Ph1kcTqj.js} +2 -2
- package/dist/cdn/chunks/{token-C6EudIjw.js → token-BQtumlDT.js} +9 -7
- package/dist/cdn/chunks/{token-field-OCw3wLIW.js → token-field-BrV2RZHi.js} +19 -11
- package/dist/cdn/chunks/{toolbar-item-CI3OVQuq.js → toolbar-item-x-y_AxHu.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-xvfrEhvQ.js → toolbar-title-g47zMdG2.js} +4 -4
- package/dist/cdn/chunks/{toolbar-K5UY_y15.js → toolbar-w_2rxcNu.js} +8 -8
- package/dist/cdn/chunks/{toolbar.styles-BBj5j7Iq.js → toolbar.styles-EP0gu8kg.js} +7 -3
- package/dist/cdn/chunks/{tooltip-B6XDYQNn.js → tooltip-D47hF_iD.js} +49 -36
- package/dist/cdn/chunks/{top-navigation-bar-D7JkgCQi.js → top-navigation-bar-DO7JsQVs.js} +19 -17
- package/dist/cdn/chunks/{top-title-bar-BMSTl1Z7.js → top-title-bar-CVEOoXhu.js} +8 -6
- package/dist/cdn/chunks/translations-eWWV6weF.js +14 -0
- package/dist/cdn/chunks/{two-thirds-one-third-section-Cc1Mh9TT.js → two-thirds-one-third-section-x3dadNwz.js} +3 -3
- package/dist/cdn/chunks/{validation-list-xF6yTpz8.js → validation-list-krcQHzP3.js} +4 -3
- package/dist/cdn/chunks/{visibility-mixin-LkgEnUqn.js → visibility-mixin-CXBa-fVi.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-CMo9yGtA.js → visually-hidden-Cd1_FE1J.js} +2 -2
- package/dist/cdn/chunks/{window-CclQ8SHn.js → window-JbrLuRjR.js} +40 -39
- package/dist/cdn/chunks/{with-translations-DdCPcavT.js → with-translations-DhRk5rH-.js} +3 -3
- package/dist/components/actions/button/button.d.ts +11 -2
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +17 -1
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +45 -26
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.js +2 -2
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts +1 -1
- package/dist/components/actions/button-bar/button-bar.js +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.js +12 -8
- package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +10 -2
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +18 -1
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +35 -20
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +4 -2
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +15 -1
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.i18n.d.ts +7 -0
- package/dist/components/actions/menu/menu-item.i18n.d.ts.map +1 -0
- package/dist/components/actions/menu/menu-item.i18n.js +6 -0
- package/dist/components/actions/menu/menu-item.i18n.js.map +1 -0
- package/dist/components/actions/menu/menu-item.js +17 -2
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +15 -0
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +59 -2
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +58 -4
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +63 -55
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +2 -2
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +1 -1
- package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +12 -8
- package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +4 -0
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/content/avatar/avatar.d.ts +7 -5
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +7 -5
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.styles.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +13 -12
- package/dist/components/content/avatar/avatar.styles.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js +2 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +1 -0
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +7 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +42 -14
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +37 -8
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +2 -0
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +17 -15
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +19 -17
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
- package/dist/components/content/icon/icon.styles.js +47 -24
- package/dist/components/content/icon/icon.styles.js.map +1 -1
- package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
- package/dist/components/content/identity/identity.styles.js +2 -0
- package/dist/components/content/identity/identity.styles.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +33 -23
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +6 -8
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +5 -5
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +4 -4
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +5 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +0 -7
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +0 -10
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/content/tag/tag.styles.js +7 -2
- package/dist/components/content/tag/tag.styles.js.map +1 -1
- package/dist/components/content/term/term.d.ts +115 -0
- package/dist/components/content/term/term.d.ts.map +1 -0
- package/dist/components/content/term/term.i18n.d.ts +5 -0
- package/dist/components/content/term/term.i18n.d.ts.map +1 -0
- package/dist/components/content/term/term.i18n.js +5 -0
- package/dist/components/content/term/term.i18n.js.map +1 -0
- package/dist/components/content/term/term.js +256 -0
- package/dist/components/content/term/term.js.map +1 -0
- package/dist/components/content/term/term.styles.d.ts +2 -0
- package/dist/components/content/term/term.styles.d.ts.map +1 -0
- package/dist/components/content/term/term.styles.js +65 -0
- package/dist/components/content/term/term.styles.js.map +1 -0
- package/dist/components/content/term/term.template.d.ts +4 -0
- package/dist/components/content/term/term.template.d.ts.map +1 -0
- package/dist/components/content/term/term.template.js +57 -0
- package/dist/components/content/term/term.template.js.map +1 -0
- package/dist/components/content/text/text.d.ts +2 -2
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +17 -32
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +0 -6
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +0 -8
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +10 -26
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/token/token.styles.d.ts.map +1 -1
- package/dist/components/content/token/token.styles.js +4 -2
- package/dist/components/content/token/token.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +18 -5
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.js +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +10 -3
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.styles.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.styles.js +1 -0
- package/dist/components/forms/validation-list/validation-list.styles.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +3 -3
- package/dist/components/inputs/checkbox/checkbox.js +2 -2
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +23 -18
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +3 -3
- package/dist/components/inputs/checkbox-field/checkbox-field.js +2 -2
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +4 -2
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +2 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +9 -0
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.d.ts +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.js +3 -2
- package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +11 -1
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +1 -1
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +8 -0
- package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +5 -0
- package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +18 -0
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +4 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +6 -0
- package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +4 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +4 -0
- package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +3 -3
- package/dist/components/inputs/radio-button/radio-button.js +2 -2
- package/dist/components/inputs/radio-button/radio-button.styles.js +13 -13
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +3 -3
- package/dist/components/inputs/radio-button-field/radio-button-field.js +2 -2
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +4 -2
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +8 -0
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +6 -0
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.styles.js +3 -1
- package/dist/components/inputs/slider/slider.styles.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.js +1 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +3 -3
- package/dist/components/inputs/switch/switch.js +2 -2
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +7 -6
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +3 -3
- package/dist/components/inputs/switch-field/switch-field.js +2 -2
- package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.styles.js +4 -2
- package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.js +2 -0
- package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.emphasis.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.emphasis.js +7 -0
- package/dist/components/inputs/text-editor/text-editor.emphasis.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts +5 -0
- package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.focus-selection.js +17 -1
- package/dist/components/inputs/text-editor/text-editor.focus-selection.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +6 -0
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +3 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +26 -0
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +9 -0
- package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +21 -6
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.i18n.d.ts +0 -1
- package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.i18n.js +0 -2
- package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +69 -13
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.js +17 -1
- package/dist/components/inputs/time-field/time-field.styles.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 +13 -10
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js +8 -2
- package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +6 -0
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +9 -1
- package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +3 -1
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +5 -3
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +7 -0
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +30 -0
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/kanban/kanban.styles.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.styles.js +2 -0
- package/dist/components/layout/kanban/kanban.styles.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +8 -5
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +5 -2
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +4 -5
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +4 -5
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +14 -5
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +2 -2
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +2 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +21 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -1
- package/dist/components/layout/popover/popover.d.ts +29 -0
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +70 -8
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +18 -2
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/popover/popover.template.js +1 -1
- package/dist/components/layout/popover/popover.template.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +3 -1
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/shell/shell.d.ts +1 -1
- package/dist/components/layout/shell/shell.js +1 -1
- package/dist/components/layout/shell/shell.styles.d.ts.map +1 -1
- package/dist/components/layout/shell/shell.styles.js +6 -3
- package/dist/components/layout/shell/shell.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +8 -5
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +0 -28
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +10 -57
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +8 -5
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js +2 -4
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +8 -5
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +2 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +2 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +8 -5
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +8 -5
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js.map +1 -1
- package/dist/components/layout/window/window.styles.d.ts.map +1 -1
- package/dist/components/layout/window/window.styles.js +3 -2
- package/dist/components/layout/window/window.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +3 -2
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +6 -6
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.js +1 -0
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +4 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +5 -3
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +5 -3
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +14 -11
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +14 -11
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +40 -5
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +27 -20
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +11 -9
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +8 -3
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +18 -4
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +8 -1
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +18 -0
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.js +11 -3
- package/dist/components/navigation/link/link.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +1 -0
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +7 -0
- package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +12 -4
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.i18n.d.ts +1 -0
- package/dist/components/navigation/skip-link/skip-link.i18n.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.i18n.js +2 -0
- package/dist/components/navigation/skip-link/skip-link.i18n.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +18 -4
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.js +1 -0
- package/dist/components/navigation/skip-link/skip-link.styles.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.js +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +6 -0
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +2 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +2 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +4 -6
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +4 -6
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +3 -2
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +3 -3
- package/dist/components/status-and-feedback/badge/badge.js +3 -3
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +7 -4
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +2 -0
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +3 -0
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +3 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +3 -2
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.js +3 -0
- package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +3 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +2 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +8 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
- package/dist/css/form-section.css +2 -0
- package/dist/css/rich-text.css +14 -38
- package/dist/css/title.css +7 -15
- package/dist/css/variables.css +41 -24
- package/dist/nldd.min.js +2983 -2327
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +6 -2
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +6 -2
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +6 -2
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +4 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +6 -2
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +6 -2
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/react.d.ts +76 -50
- package/dist/types/vue.d.ts +84 -56
- package/dist/utilities/autoloader.generated.d.ts.map +1 -1
- package/dist/utilities/autoloader.generated.js +1 -0
- package/dist/utilities/autoloader.generated.js.map +1 -1
- package/dist/utilities/described-by-mixin.d.ts +2 -0
- package/dist/utilities/described-by-mixin.d.ts.map +1 -1
- package/dist/utilities/described-by-mixin.js +10 -1
- package/dist/utilities/described-by-mixin.js.map +1 -1
- package/dist/utilities/dev-checks.d.ts +5 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +14 -0
- 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 +154 -54
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/interest-controller.d.ts +80 -0
- package/dist/utilities/interest-controller.d.ts.map +1 -0
- package/dist/utilities/interest-controller.js +339 -0
- package/dist/utilities/interest-controller.js.map +1 -0
- package/dist/utilities/page-section-mixin.d.ts +4 -5
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +10 -13
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/translations.d.ts.map +1 -1
- package/dist/utilities/translations.js +9 -0
- package/dist/utilities/translations.js.map +1 -1
- package/lint/css.js +224 -0
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +5 -2
- package/lint/frontends.js +67 -42
- package/lint/linter.js +188 -7
- package/lint/main.js +20 -7
- package/lint/project.js +2 -2
- package/lint/rule-data.js +20 -0
- package/package.json +5 -1
- package/dist/cdn/chunks/nl.generated-fkFCex7n.js +0 -112
- package/dist/cdn/chunks/shadow-resets-BeVmf7ky.js +0 -12
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +0 -3
- package/dist/cdn/chunks/translations-wxBSz213.js +0 -8
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nederlandse Digitale Dienst Term Component (Lit + TypeScript)
|
|
3
|
+
*
|
|
4
|
+
* A term in running text with an explanation behind it, such as a legal term
|
|
5
|
+
* from a glossary. The term stays part of the sentence, marked with a dotted
|
|
6
|
+
* underline, and opens its definition in a popover on a click, a tap, Enter
|
|
7
|
+
* or Space. On sm the popover is a bottom sheet.
|
|
8
|
+
*
|
|
9
|
+
* The term is the control: it carries the button role and its expanded state,
|
|
10
|
+
* so a term injected into content needs no ARIA of your own. Focus moves into
|
|
11
|
+
* the popover when it opens, so its content is read, and returns to the term
|
|
12
|
+
* when it closes.
|
|
13
|
+
*
|
|
14
|
+
* Mark only the first occurrence of a concept in a question or section. The
|
|
15
|
+
* underline is the only sign that the term is a control, so it cannot get
|
|
16
|
+
* lighter or go away. A text that marks every occurrence gets busy.
|
|
17
|
+
*
|
|
18
|
+
* A short definition goes in `definition`, as text:
|
|
19
|
+
*
|
|
20
|
+
* <p>De <nldd-term definition="Degene die het doel van en de middelen
|
|
21
|
+
* voor de verwerking vaststelt." source="Artikel 4 AVG"
|
|
22
|
+
* source-href="…">verwerkingsverantwoordelijke</nldd-term>
|
|
23
|
+
* bepaalt of een DPIA nodig is.</p>
|
|
24
|
+
*
|
|
25
|
+
* A `source` shows under the definition, as a link with `source-href`.
|
|
26
|
+
*
|
|
27
|
+
* A definition with more paragraphs or links is an nldd-popover of your own,
|
|
28
|
+
* outside the sentence, that `popovertarget` points at. Every term for the
|
|
29
|
+
* same concept can point at the same popover: it opens against the term you
|
|
30
|
+
* clicked. Markup in the term itself would break: a `<p>` inside a `<p>`
|
|
31
|
+
* closes the paragraph, and the definition would fall out of the term. Give a
|
|
32
|
+
* source in that popover the shape the term gives it: after an
|
|
33
|
+
* `nldd-spacer size="8"`, an nldd-text with `size="sm"` and
|
|
34
|
+
* `color="secondary"`, with "Bron:" and an nldd-link.
|
|
35
|
+
*
|
|
36
|
+
* <p>De <nldd-term popovertarget="verwerkingsverantwoordelijke">
|
|
37
|
+
* verwerkingsverantwoordelijke</nldd-term> bepaalt of een DPIA nodig is.</p>
|
|
38
|
+
* <nldd-popover id="verwerkingsverantwoordelijke"
|
|
39
|
+
* accessible-label="Verwerkingsverantwoordelijke">…</nldd-popover>
|
|
40
|
+
*
|
|
41
|
+
* @element nldd-term
|
|
42
|
+
* @attr {string} definition - The definition, as plain text. The term shows it in a popover of its own, named after the term. Ignored when `popovertarget` is set.
|
|
43
|
+
* @attr {string} source - Where the definition comes from, such as a glossary or an article of law, as plain text. Shown under the definition in the term's own popover. Ignored when `popovertarget` is set.
|
|
44
|
+
* @attr {string} source-href - Link for `source`. Without `source` it has no effect.
|
|
45
|
+
* @attr {object} translations - Override translation keys (the label before the source).
|
|
46
|
+
* @attr {string} popovertarget - ID of an nldd-popover with the definition, looked up in the tree of this term. Positioned against the term when it opens, so it needs no `anchor`, and it can be shared by every term for the same concept. Wins over `definition`.
|
|
47
|
+
*
|
|
48
|
+
* @slot - The term, as plain text. Whitespace around it is dropped, so the underline ends where the word does. It also names the popover that `definition` opens.
|
|
49
|
+
*/
|
|
50
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
51
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
52
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
53
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
54
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
55
|
+
};
|
|
56
|
+
import { LitElement } from 'lit';
|
|
57
|
+
import { property, query, state } from 'lit/decorators.js';
|
|
58
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
59
|
+
import { popoverTargetOf } from '../../../utilities/popover-target.js';
|
|
60
|
+
import { setState } from '../../../utilities/element-state.js';
|
|
61
|
+
import { termStyles } from './term.styles.js';
|
|
62
|
+
import { termTemplate } from './term.template.js';
|
|
63
|
+
import { nlddTermTranslations } from './term.i18n.js';
|
|
64
|
+
import { translate } from '../../../utilities/translations.js';
|
|
65
|
+
import '../../layout/popover/popover.js';
|
|
66
|
+
import '../../layout/container/container.js';
|
|
67
|
+
import '../text/text.js';
|
|
68
|
+
import '../../navigation/link/link.js';
|
|
69
|
+
import '../../layout/spacer/spacer.js';
|
|
70
|
+
let NLDDTerm = class NLDDTerm extends LitElement {
|
|
71
|
+
constructor() {
|
|
72
|
+
super(...arguments);
|
|
73
|
+
this.definition = '';
|
|
74
|
+
this.source = '';
|
|
75
|
+
this.sourceHref = '';
|
|
76
|
+
/** Override one or more translation keys. Unspecified keys fall back to Dutch. */
|
|
77
|
+
this.translations = {};
|
|
78
|
+
this.popovertarget = '';
|
|
79
|
+
/** The term as it shows: the slotted text without the whitespace around
|
|
80
|
+
* it, which the underline would otherwise run into. */
|
|
81
|
+
this._termDisplay = '';
|
|
82
|
+
/** The term as a name, for the popover `definition` opens. */
|
|
83
|
+
this._termText = '';
|
|
84
|
+
/** Whether the popover was open for this term when the pointer went down:
|
|
85
|
+
* the browser closes it on that pointerdown, before the click, and the
|
|
86
|
+
* click must not open it again. */
|
|
87
|
+
this._wasOpenOnPointerdown = false;
|
|
88
|
+
/** Whether Space went down on the term, so its keyup may click. */
|
|
89
|
+
this._spaceDown = false;
|
|
90
|
+
/** The shared popover this term listens to, to keep its expanded state. */
|
|
91
|
+
this._sharedOverlay = null;
|
|
92
|
+
/** A framework can patch the term's text in place, which fires no slotchange. */
|
|
93
|
+
this._textObserver = new MutationObserver(() => this._readTerm());
|
|
94
|
+
/** The popover takes `aria-expanded` off the term it leaves. This term can
|
|
95
|
+
* still open it, so it says it is closed instead. Runs after the
|
|
96
|
+
* popover's own listener, which was there first. */
|
|
97
|
+
this._handleSharedToggle = () => {
|
|
98
|
+
const trigger = this._triggerEl;
|
|
99
|
+
if (trigger && !trigger.hasAttribute('aria-expanded'))
|
|
100
|
+
trigger.setAttribute('aria-expanded', 'false');
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
connectedCallback() {
|
|
104
|
+
super.connectedCallback();
|
|
105
|
+
this._textObserver.observe(this, { characterData: true, childList: true, subtree: true });
|
|
106
|
+
if (this.hasUpdated) {
|
|
107
|
+
this._listenToSharedOverlay();
|
|
108
|
+
this._readTerm();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
disconnectedCallback() {
|
|
112
|
+
super.disconnectedCallback();
|
|
113
|
+
this._textObserver.disconnect();
|
|
114
|
+
this._setSharedOverlay(null);
|
|
115
|
+
}
|
|
116
|
+
firstUpdated() {
|
|
117
|
+
this._triggerEl?.setAttribute('aria-expanded', 'false');
|
|
118
|
+
}
|
|
119
|
+
updated() {
|
|
120
|
+
const own = this._ownPopoverEl;
|
|
121
|
+
if (own && own.anchorElement !== this._triggerEl)
|
|
122
|
+
own.anchorElement = this._triggerEl;
|
|
123
|
+
this._listenToSharedOverlay();
|
|
124
|
+
}
|
|
125
|
+
/** The popover this term opens: the one `popovertarget` names, or its own. */
|
|
126
|
+
_overlay() {
|
|
127
|
+
if (this.popovertarget) {
|
|
128
|
+
const target = popoverTargetOf(this, this.popovertarget, null);
|
|
129
|
+
return target?.matches('nldd-popover') ? target : null;
|
|
130
|
+
}
|
|
131
|
+
return this._ownPopoverEl;
|
|
132
|
+
}
|
|
133
|
+
/** A term rendered before its popover finds it on its next update or click. */
|
|
134
|
+
_listenToSharedOverlay() {
|
|
135
|
+
const overlay = this.popovertarget ? this._overlay() : null;
|
|
136
|
+
this._setSharedOverlay(overlay);
|
|
137
|
+
setState(this, 'no-popover-target', Boolean(this.popovertarget) && !overlay);
|
|
138
|
+
}
|
|
139
|
+
_setSharedOverlay(overlay) {
|
|
140
|
+
if (overlay === this._sharedOverlay)
|
|
141
|
+
return;
|
|
142
|
+
this._sharedOverlay?.removeEventListener('toggle', this._handleSharedToggle);
|
|
143
|
+
this._sharedOverlay = overlay;
|
|
144
|
+
overlay?.addEventListener('toggle', this._handleSharedToggle);
|
|
145
|
+
}
|
|
146
|
+
_handleSlotChange() {
|
|
147
|
+
this._readTerm();
|
|
148
|
+
}
|
|
149
|
+
_readTerm() {
|
|
150
|
+
const slot = this.shadowRoot?.querySelector('slot:not([name])');
|
|
151
|
+
if (!slot)
|
|
152
|
+
return;
|
|
153
|
+
const text = slot.assignedNodes({ flatten: true })
|
|
154
|
+
.map((node) => node.textContent ?? '')
|
|
155
|
+
.join('')
|
|
156
|
+
.replace(/\s+/g, ' ')
|
|
157
|
+
.trim();
|
|
158
|
+
this._termDisplay = text;
|
|
159
|
+
// A soft hyphen breaks a long word in the sentence, not in the name.
|
|
160
|
+
this._termText = text.replace(/\u00AD/g, '');
|
|
161
|
+
}
|
|
162
|
+
_handlePointerdown() {
|
|
163
|
+
const overlay = this._overlay();
|
|
164
|
+
this._wasOpenOnPointerdown = Boolean(overlay?.matches(':popover-open') && overlay.anchorElement === this._triggerEl);
|
|
165
|
+
}
|
|
166
|
+
_handleClick(event) {
|
|
167
|
+
this._listenToSharedOverlay();
|
|
168
|
+
const overlay = this._overlay();
|
|
169
|
+
const trigger = this._triggerEl;
|
|
170
|
+
// A keyboard click has no pointerdown before it, so a snapshot left
|
|
171
|
+
// from a gesture that ended without a click must not count.
|
|
172
|
+
const wasOpen = event.detail > 0 && this._wasOpenOnPointerdown;
|
|
173
|
+
this._wasOpenOnPointerdown = false;
|
|
174
|
+
if (!overlay || !trigger)
|
|
175
|
+
return;
|
|
176
|
+
// A shared popover may be open against another term.
|
|
177
|
+
if (overlay.anchorElement !== trigger) {
|
|
178
|
+
if (overlay.matches(':popover-open'))
|
|
179
|
+
overlay.hidePopover();
|
|
180
|
+
overlay.anchorElement = trigger;
|
|
181
|
+
}
|
|
182
|
+
if (!wasOpen && !overlay.matches(':popover-open'))
|
|
183
|
+
overlay.show();
|
|
184
|
+
}
|
|
185
|
+
/** As a native button: Enter acts on the key going down, Space on the key
|
|
186
|
+
* coming up, and Space does not scroll the page. */
|
|
187
|
+
_handleKeydown(event) {
|
|
188
|
+
if (event.key === 'Enter') {
|
|
189
|
+
event.preventDefault();
|
|
190
|
+
// Once per press, as a native button: a held key repeats keydown.
|
|
191
|
+
if (event.repeat)
|
|
192
|
+
return;
|
|
193
|
+
this._triggerEl?.click();
|
|
194
|
+
}
|
|
195
|
+
else if (event.key === ' ') {
|
|
196
|
+
event.preventDefault();
|
|
197
|
+
this._spaceDown = true;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
/** Only a Space that went down on the term: the keyup of one pressed in
|
|
201
|
+
* the popover lands here when the popover hands focus back. */
|
|
202
|
+
_handleKeyup(event) {
|
|
203
|
+
if (event.key !== ' ')
|
|
204
|
+
return;
|
|
205
|
+
event.preventDefault();
|
|
206
|
+
if (!this._spaceDown)
|
|
207
|
+
return;
|
|
208
|
+
this._spaceDown = false;
|
|
209
|
+
this._triggerEl?.click();
|
|
210
|
+
}
|
|
211
|
+
_handleBlur() {
|
|
212
|
+
this._spaceDown = false;
|
|
213
|
+
}
|
|
214
|
+
_t(key) {
|
|
215
|
+
return translate(this.translations, nlddTermTranslations, key);
|
|
216
|
+
}
|
|
217
|
+
focus(options) {
|
|
218
|
+
this._triggerEl?.focus(options);
|
|
219
|
+
}
|
|
220
|
+
render() {
|
|
221
|
+
return termTemplate(this);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
NLDDTerm.styles = termStyles;
|
|
225
|
+
__decorate([
|
|
226
|
+
property({ type: String, reflect: true })
|
|
227
|
+
], NLDDTerm.prototype, "definition", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
property({ type: String, reflect: true })
|
|
230
|
+
], NLDDTerm.prototype, "source", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
property({ type: String, reflect: true, attribute: 'source-href' })
|
|
233
|
+
], NLDDTerm.prototype, "sourceHref", void 0);
|
|
234
|
+
__decorate([
|
|
235
|
+
property({ type: Object })
|
|
236
|
+
], NLDDTerm.prototype, "translations", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
property({ type: String, reflect: true })
|
|
239
|
+
], NLDDTerm.prototype, "popovertarget", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
state()
|
|
242
|
+
], NLDDTerm.prototype, "_termDisplay", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
state()
|
|
245
|
+
], NLDDTerm.prototype, "_termText", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
query('.term')
|
|
248
|
+
], NLDDTerm.prototype, "_triggerEl", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
query('nldd-popover')
|
|
251
|
+
], NLDDTerm.prototype, "_ownPopoverEl", void 0);
|
|
252
|
+
NLDDTerm = __decorate([
|
|
253
|
+
customElement('nldd-term')
|
|
254
|
+
], NLDDTerm);
|
|
255
|
+
export { NLDDTerm };
|
|
256
|
+
//#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GhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAC9B;AAGZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;4CACpD;AAIhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CACsB;AAGjD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CACvB;AAKnB;IADC,KAAK,EAAE;8CACU;AAIlB;IADC,KAAK,EAAE;2CACO;AAGP;IADP,KAAK,CAAC,OAAO,CAAC;4CACyB;AAGhC;IADP,KAAK,CAAC,cAAc,CAAC;+CACqB;AAhC/B,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAqLpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"term.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/term/term.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,yBA6DtB,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { inheritedTextReset } from '../../../assets/styles/shadow-resets.js';
|
|
3
|
+
export const termStyles = css `
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/* # Host */
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
--_term-corner-radius: var(--primitives-corner-radius-xs);
|
|
10
|
+
--_term-underline-color: var(--context-content-secondary-color);
|
|
11
|
+
--_term-is-hovered-underline-color: var(--context-content-color);
|
|
12
|
+
--_term-underline-offset: 0.15em;
|
|
13
|
+
|
|
14
|
+
${inheritedTextReset}
|
|
15
|
+
display: inline;
|
|
16
|
+
-webkit-tap-highlight-color: transparent;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host([hidden]) {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
/* # Term */
|
|
25
|
+
|
|
26
|
+
.term {
|
|
27
|
+
display: inline;
|
|
28
|
+
border-radius: var(--_term-corner-radius);
|
|
29
|
+
color: inherit;
|
|
30
|
+
text-decoration: underline dotted;
|
|
31
|
+
text-decoration-color: var(--_term-underline-color);
|
|
32
|
+
text-underline-offset: var(--_term-underline-offset);
|
|
33
|
+
-webkit-tap-highlight-color: transparent;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (hover: hover) {
|
|
37
|
+
.term:hover {
|
|
38
|
+
text-decoration-color: var(--_term-is-hovered-underline-color);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/* # Focus */
|
|
44
|
+
|
|
45
|
+
.term:focus-visible {
|
|
46
|
+
outline: var(--semantics-focus-ring-outline);
|
|
47
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
48
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.term:focus:not(:focus-visible) {
|
|
52
|
+
outline: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (forced-colors: active) {
|
|
56
|
+
.term {
|
|
57
|
+
text-decoration-color: CanvasText;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.term:focus-visible {
|
|
61
|
+
outline: 2px solid CanvasText;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
//# sourceMappingURL=term.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"term.styles.js","sourceRoot":"","sources":["../../../../src/components/content/term/term.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;IAWzB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"term.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/term/term.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,wBAAgB,YAAY,CAAC,SAAS,EAAE,QAAQ,GAAG,cAAc,CAsDhE"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { html, nothing } from 'lit';
|
|
2
|
+
export function termTemplate(component) {
|
|
3
|
+
// Its own popover only for text: one that popovertarget names is the
|
|
4
|
+
// consumer's, outside the sentence.
|
|
5
|
+
const source = component.source
|
|
6
|
+
? html `
|
|
7
|
+
<nldd-spacer size="8"></nldd-spacer>
|
|
8
|
+
<nldd-text
|
|
9
|
+
size="sm"
|
|
10
|
+
color="secondary"
|
|
11
|
+
>
|
|
12
|
+
${component._t('components.term.source-capitalize')}:
|
|
13
|
+
${component.sourceHref
|
|
14
|
+
? html `<nldd-link href=${component.sourceHref}>${component.source}</nldd-link>`
|
|
15
|
+
: component.source}
|
|
16
|
+
</nldd-text>
|
|
17
|
+
`
|
|
18
|
+
: nothing;
|
|
19
|
+
const ownPopover = component.definition && !component.popovertarget
|
|
20
|
+
? html `
|
|
21
|
+
<nldd-popover
|
|
22
|
+
accessible-label=${component._termText || nothing}
|
|
23
|
+
>
|
|
24
|
+
<nldd-container
|
|
25
|
+
padding="16"
|
|
26
|
+
>
|
|
27
|
+
<nldd-text>
|
|
28
|
+
${component.definition}
|
|
29
|
+
</nldd-text>
|
|
30
|
+
${source}
|
|
31
|
+
</nldd-container>
|
|
32
|
+
</nldd-popover>
|
|
33
|
+
`
|
|
34
|
+
: nothing;
|
|
35
|
+
// A span, not a button: a button lays out as inline-block, so a term of
|
|
36
|
+
// several words would not wrap with the sentence around it. The slot is
|
|
37
|
+
// only read: the span shows the term without the whitespace around it,
|
|
38
|
+
// which is why its content stays on the line of its tags.
|
|
39
|
+
return html `
|
|
40
|
+
<span class="term"
|
|
41
|
+
role="button"
|
|
42
|
+
tabindex="0"
|
|
43
|
+
aria-haspopup="dialog"
|
|
44
|
+
@pointerdown=${() => component._handlePointerdown()}
|
|
45
|
+
@click=${(event) => component._handleClick(event)}
|
|
46
|
+
@keydown=${(event) => component._handleKeydown(event)}
|
|
47
|
+
@keyup=${(event) => component._handleKeyup(event)}
|
|
48
|
+
@blur=${() => component._handleBlur()}
|
|
49
|
+
>${component._termDisplay}</span>
|
|
50
|
+
<slot
|
|
51
|
+
hidden
|
|
52
|
+
@slotchange=${() => component._handleSlotChange()}
|
|
53
|
+
></slot>
|
|
54
|
+
${ownPopover}
|
|
55
|
+
`;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=term.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"term.template.js","sourceRoot":"","sources":["../../../../src/components/content/term/term.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAGzD,MAAM,UAAU,YAAY,CAAC,SAAmB;IAC/C,qEAAqE;IACrE,oCAAoC;IACpC,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM;QAC9B,CAAC,CAAC,IAAI,CAAA;;;;;;MAMF,SAAS,CAAC,EAAE,CAAC,mCAAmC,CAAC;MACjD,SAAS,CAAC,UAAU;YACrB,CAAC,CAAC,IAAI,CAAA,mBAAmB,SAAS,CAAC,UAAU,IAAI,SAAS,CAAC,MAAM,cAAc;YAC/E,CAAC,CAAC,SAAS,CAAC,MAAM;;GAEpB;QACD,CAAC,CAAC,OAAO,CAAC;IACX,MAAM,UAAU,GAAG,SAAS,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,aAAa;QAClE,CAAC,CAAC,IAAI,CAAA;;uBAEe,SAAS,CAAC,SAAS,IAAI,OAAO;;;;;;QAM7C,SAAS,CAAC,UAAU;;OAErB,MAAM;;;GAGV;QACD,CAAC,CAAC,OAAO,CAAC;IACX,wEAAwE;IACxE,wEAAwE;IACxE,uEAAuE;IACvE,0DAA0D;IAC1D,OAAO,IAAI,CAAA;;;;;kBAKM,GAAG,EAAE,CAAC,SAAS,CAAC,kBAAkB,EAAE;YAC1C,CAAC,KAAiB,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC;cAClD,CAAC,KAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC;YAC3D,CAAC,KAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC;WACxD,GAAG,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE;KACnC,SAAS,CAAC,YAAY;;;iBAGV,GAAG,EAAE,CAAC,SAAS,CAAC,iBAAiB,EAAE;;IAEhD,UAAU;EACZ,CAAC;AACH,CAAC"}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
* @attr {string} lg-custom-size - The same, at lg
|
|
39
39
|
* @attr {string} weight - Font weight: 'regular' | 'medium' | 'bold' (default: 'regular'). With 'bold' a slotted `<strong>` no longer stands out: there is nothing bolder in the scale.
|
|
40
40
|
* @attr {string} line-height - Line height: 'flat' | 'tight' | 'snug' | 'loose' (default: 'snug')
|
|
41
|
-
* @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'
|
|
41
|
+
* @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'. Each follows the surface the text sits on, through the `--context-content-*` it passes on; an area of your own that sets `color` sets `--context-content-color` too.
|
|
42
42
|
* @attr {string} horizontal-alignment - Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box.
|
|
43
43
|
*
|
|
44
44
|
* @slot - The text. Inline elements look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, `<mark>` is highlighted, `<q>` is quoted in italics, and an element with `data-mention` is a mention (`<a href="…" data-mention>` as the tinted token, `<span data-mention>` without the tint; write the name without the `@`). This holds for elements directly in the text; one inside another (a link inside `<strong>`) keeps only the outer one's styling. Components such as `nldd-tag` are left alone.
|
|
@@ -48,7 +48,7 @@ import { LitElement, type PropertyValues } from 'lit';
|
|
|
48
48
|
type Size = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'display-6' | 'display-5' | 'display-4' | 'display-3' | 'display-2' | 'display-1';
|
|
49
49
|
type Weight = 'regular' | 'medium' | 'bold';
|
|
50
50
|
type LineHeight = 'flat' | 'tight' | 'snug' | 'loose';
|
|
51
|
-
type Color = 'content' | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'
|
|
51
|
+
type Color = 'content' | 'secondary' | 'accent' | 'success' | 'warning' | 'critical';
|
|
52
52
|
type HorizontalAlignment = 'left' | 'center' | 'right';
|
|
53
53
|
export declare class NLDDText extends LitElement {
|
|
54
54
|
static styles: import("lit").CSSResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAQtD,KAAK,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,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tD,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAMzC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAQtC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;CACD"}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
* @attr {string} lg-custom-size - The same, at lg
|
|
39
39
|
* @attr {string} weight - Font weight: 'regular' | 'medium' | 'bold' (default: 'regular'). With 'bold' a slotted `<strong>` no longer stands out: there is nothing bolder in the scale.
|
|
40
40
|
* @attr {string} line-height - Line height: 'flat' | 'tight' | 'snug' | 'loose' (default: 'snug')
|
|
41
|
-
* @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'
|
|
41
|
+
* @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'. Each follows the surface the text sits on, through the `--context-content-*` it passes on; an area of your own that sets `color` sets `--context-content-color` too.
|
|
42
42
|
* @attr {string} horizontal-alignment - Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box.
|
|
43
43
|
*
|
|
44
44
|
* @slot - The text. Inline elements look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, `<mark>` is highlighted, `<q>` is quoted in italics, and an element with `data-mention` is a mention (`<a href="…" data-mention>` as the tinted token, `<span data-mention>` without the tint; write the name without the `@`). This holds for elements directly in the text; one inside another (a link inside `<strong>`) keeps only the outer one's styling. Components such as `nldd-tag` are left alone.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAoDrD,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAoDrD,eAAO,MAAM,UAAU,WA2StB,CAAC"}
|
|
@@ -64,14 +64,13 @@ export const textStyles = css `
|
|
|
64
64
|
--_text-sm-custom-font: var(--primitives-font-weight-display-bold) max(var(--_text-sm-custom-size), var(--primitives-font-size-700)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
|
|
65
65
|
--_text-md-custom-font: var(--primitives-font-weight-display-bold) max(var(--_text-md-custom-size), var(--primitives-font-size-800)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
|
|
66
66
|
--_text-lg-custom-font: var(--primitives-font-weight-display-bold) max(var(--_text-lg-custom-size), var(--primitives-font-size-1000)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
|
|
67
|
-
--_text-color: var(--context-content-color
|
|
67
|
+
--_text-color: var(--context-content-color);
|
|
68
68
|
--_text-align: left;
|
|
69
|
-
--_text-link-color: var(--
|
|
70
|
-
--_text-link-is-hovered-color: var(--
|
|
71
|
-
--_text-link-is-active-color: var(--
|
|
69
|
+
--_text-link-color: var(--context-link-color);
|
|
70
|
+
--_text-link-is-hovered-color: var(--context-link-is-hovered-color);
|
|
71
|
+
--_text-link-is-active-color: var(--context-link-is-active-color);
|
|
72
72
|
--_text-link-underline-offset: var(--primitives-space-2);
|
|
73
73
|
--_text-link-corner-radius: var(--primitives-corner-radius-xxs);
|
|
74
|
-
--_text-link-is-hovered-inherit-thickness: var(--primitives-border-width-regular);
|
|
75
74
|
--_text-mention-color: var(--semantics-mentions-content-color);
|
|
76
75
|
--_text-mention-icon-size: 0.95em;
|
|
77
76
|
--_text-mention-inline-padding: 0.3em;
|
|
@@ -186,6 +185,7 @@ export const textStyles = css `
|
|
|
186
185
|
|
|
187
186
|
::slotted(a) {
|
|
188
187
|
border-radius: var(--_text-link-corner-radius);
|
|
188
|
+
--context-content-color: var(--_text-link-color);
|
|
189
189
|
color: var(--_text-link-color);
|
|
190
190
|
text-decoration: underline;
|
|
191
191
|
text-underline-offset: var(--_text-link-underline-offset);
|
|
@@ -193,10 +193,12 @@ export const textStyles = css `
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
::slotted(a:hover) {
|
|
196
|
+
--context-content-color: var(--_text-link-is-hovered-color);
|
|
196
197
|
color: var(--_text-link-is-hovered-color);
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
::slotted(a:active) {
|
|
201
|
+
--context-content-color: var(--_text-link-is-active-color);
|
|
200
202
|
color: var(--_text-link-is-active-color);
|
|
201
203
|
}
|
|
202
204
|
|
|
@@ -210,21 +212,8 @@ export const textStyles = css `
|
|
|
210
212
|
outline: none;
|
|
211
213
|
}
|
|
212
214
|
|
|
213
|
-
:host([color="inherit"]) ::slotted(a) {
|
|
214
|
-
color: currentColor;
|
|
215
|
-
text-decoration-color: currentColor;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
:host([color="inherit"]) ::slotted(a:hover) {
|
|
219
|
-
color: currentColor;
|
|
220
|
-
text-decoration-thickness: var(--_text-link-is-hovered-inherit-thickness);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
:host([color="inherit"]) ::slotted(a:active) {
|
|
224
|
-
color: currentColor;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
215
|
::slotted([data-mention]) {
|
|
216
|
+
--context-content-color: var(--_text-mention-color);
|
|
228
217
|
color: var(--_text-mention-color);
|
|
229
218
|
font-weight: var(--primitives-font-weight-body-bold);
|
|
230
219
|
white-space: nowrap;
|
|
@@ -252,6 +241,7 @@ export const textStyles = css `
|
|
|
252
241
|
border-radius: var(--_text-mention-corner-radius);
|
|
253
242
|
box-shadow: inset 0 0 0 var(--_text-mention-border-width) var(--_text-mention-border-color);
|
|
254
243
|
background-color: var(--_text-mention-background-color);
|
|
244
|
+
--context-content-color: var(--_text-mention-color);
|
|
255
245
|
color: var(--_text-mention-color);
|
|
256
246
|
text-decoration: none;
|
|
257
247
|
cursor: default;
|
|
@@ -261,15 +251,13 @@ export const textStyles = css `
|
|
|
261
251
|
|
|
262
252
|
::slotted(a[data-mention]:hover) {
|
|
263
253
|
background-color: var(--_text-mention-is-hovered-background-color);
|
|
254
|
+
--context-content-color: var(--_text-mention-color);
|
|
264
255
|
color: var(--_text-mention-color);
|
|
265
256
|
}
|
|
266
257
|
|
|
267
258
|
::slotted(a[data-mention]:active) {
|
|
268
259
|
background-color: var(--_text-mention-is-active-background-color);
|
|
269
|
-
color: var(--_text-mention-color);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
:host([color="inherit"]) ::slotted(a[data-mention]) {
|
|
260
|
+
--context-content-color: var(--_text-mention-color);
|
|
273
261
|
color: var(--_text-mention-color);
|
|
274
262
|
}
|
|
275
263
|
|
|
@@ -304,6 +292,7 @@ export const textStyles = css `
|
|
|
304
292
|
border-radius: var(--_text-mark-corner-radius);
|
|
305
293
|
background-color: var(--_text-mark-background-color);
|
|
306
294
|
padding: var(--_text-mark-padding);
|
|
295
|
+
--context-content-color: var(--_text-mark-color);
|
|
307
296
|
color: var(--_text-mark-color);
|
|
308
297
|
}
|
|
309
298
|
|
|
@@ -326,27 +315,23 @@ export const textStyles = css `
|
|
|
326
315
|
/* # Color */
|
|
327
316
|
|
|
328
317
|
:host([color="secondary"]) {
|
|
329
|
-
--_text-color: var(--context-content-secondary-color
|
|
318
|
+
--_text-color: var(--context-content-secondary-color);
|
|
330
319
|
}
|
|
331
320
|
|
|
332
321
|
:host([color="accent"]) {
|
|
333
|
-
--_text-color: var(--
|
|
322
|
+
--_text-color: var(--context-content-accent-color);
|
|
334
323
|
}
|
|
335
324
|
|
|
336
325
|
:host([color="success"]) {
|
|
337
|
-
--_text-color: var(--
|
|
326
|
+
--_text-color: var(--context-content-success-color);
|
|
338
327
|
}
|
|
339
328
|
|
|
340
329
|
:host([color="warning"]) {
|
|
341
|
-
--_text-color: var(--
|
|
330
|
+
--_text-color: var(--context-content-warning-color);
|
|
342
331
|
}
|
|
343
332
|
|
|
344
333
|
:host([color="critical"]) {
|
|
345
|
-
--_text-color: var(--
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
:host([color="inherit"]) {
|
|
349
|
-
--_text-color: inherit;
|
|
334
|
+
--_text-color: var(--context-content-critical-color);
|
|
350
335
|
}
|
|
351
336
|
|
|
352
337
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.styles.js","sourceRoot":"","sources":["../../../../src/components/content/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAkB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAChD,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAChD,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAChD,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAEhD,iHAAiH;AACjH,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAa,EAAE,CAAC,GAAG,CAAA;GAC3F,SAAS,CAAC,IAAI,CAAC;uBACK,KAAK;mBACT,SAAS,CAAC,EAAE,CAAC;;;uBAGT,KAAK,qBAAqB,KAAK;mBACnC,SAAS,CAAC,EAAE,CAAC;;;uBAGT,KAAK;mBACT,SAAS,CAAC,EAAE,CAAC;;;4CAGY,KAAK;mBAC9B,SAAS,CAAC,EAAE,CAAC;;;4CAGY,KAAK,qBAAqB,KAAK;mBACxD,SAAS,CAAC,E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;GACjL,MAAM,CAAC,8BAA8B,EAAE,GAAG,CAAA,eAAe,KAAK,GAAG,EAAE,GAAG,CAAA,eAAe,KAAK,GAAG,EAAE,6BAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqN/H,CAAC"}
|
|
@@ -37,10 +37,6 @@
|
|
|
37
37
|
* @attr {string} sm-custom-size - A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than `display-1`. A var() works when the variable holds a length; one that is not defined leaves the title without its size, the floor included. For headings use `size`; if a design does not fit the scale, raise it as an issue. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a title made large for a wide screen never breaks a narrow one. Never smaller than `display-1` at the same breakpoint: a smaller value shows as `display-1`, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of `display-1`. An invalid value falls back to `size`
|
|
38
38
|
* @attr {string} md-custom-size - The same, at md
|
|
39
39
|
* @attr {string} lg-custom-size - The same, at lg
|
|
40
|
-
* @attr {string} color - 'content' (the default) takes the system's own content
|
|
41
|
-
* colors. 'inherit' lets the title follow the text color of the surface
|
|
42
|
-
* instead (for colored areas such as the filled categories); overline and
|
|
43
|
-
* supporting-text get the same color at a lowered opacity.
|
|
44
40
|
* @attr {string} text - Title text. Content in the default slot takes its place.
|
|
45
41
|
* @attr {string} supporting-text - Text below the title. Content in the supporting-text slot takes its place.
|
|
46
42
|
* @attr {string} overline - Text above the title. Content in the overline slot takes its place.
|
|
@@ -54,7 +50,6 @@
|
|
|
54
50
|
*/
|
|
55
51
|
import { LitElement, type PropertyValues } from 'lit';
|
|
56
52
|
export type TitleSize = 'display-1' | 'display-2' | 'display-3' | 'display-4' | 'display-5' | 'display-6';
|
|
57
|
-
type TitleColor = 'content' | 'inherit';
|
|
58
53
|
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
59
54
|
export declare class NLDDTitle extends LitElement {
|
|
60
55
|
static styles: import("lit").CSSResult;
|
|
@@ -62,7 +57,6 @@ export declare class NLDDTitle extends LitElement {
|
|
|
62
57
|
smCustomSize: string;
|
|
63
58
|
mdCustomSize: string;
|
|
64
59
|
lgCustomSize: string;
|
|
65
|
-
color: TitleColor;
|
|
66
60
|
text: string;
|
|
67
61
|
supportingText: string;
|
|
68
62
|
overline: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAQtD,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAC1G,KAAK,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1C,qBACa,SAAU,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAAe;IAGrC,IAAI,CAAC,EAAE,SAAS,CAAC;IAGjB,YAAY,SAAM;IAGlB,YAAY,SAAM;IAGlB,YAAY,SAAM;IAGlB,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,QAAQ,SAAM;IAGd,YAAY,EAAE,YAAY,GAAG,IAAI,CAAQ;IAEzC,gBAAgB;IACP,mBAAmB,UAAS;IACrC,gBAAgB;IACP,kBAAkB,UAAS;IACpC,gBAAgB;IACP,yBAAyB,UAAS;IAC3C,4DAA4D;IACnD,aAAa,EAAE,YAAY,GAAG,IAAI,CAAQ;IAEnD,gBAAgB;IAChB,aAAa,GAAI,GAAG,KAAK,KAAG,IAAI,CAa9B;IAEF,+EAA+E;IAC/E,OAAO,CAAC,YAAY,CAA2C;IAEtD,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAUzC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAQtC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;KACxB;CACD"}
|