@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAQ9E,KAAK,UAAU,GACZ,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,GACtB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;IAEvF,SAAS,SAAM;IAEf,kFAAkF;IAElF,OAAO,SAAM;IAEb,0GAA0G;IAE1G,eAAe,SAAM;IAGrB,QAAQ,SAAM;IAGd,WAAW,SAAM;IAGjB,eAAe,SAAM;IAGrB,aAAa,SAAM;IAEnB,4DAA4D;IAE5D,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAErC,+DAA+D;IAE/D,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IAEvC;8DAC0D;IAE1D,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAa;IAEzC;;;OAGG;IAEH,GAAG,EAAE,MAAM,GAAG,SAAS,CAAa;IAEpC;;6BAEyB;IACzB,MAAM,wBAAmC;IAEzC;+EAC2E;IAC3E,SAAS,qBAAgC;IAEzC,6GAA6G;IAC7G,OAAO,CAAC,qBAAqB,CAA4C;IAEhE,oBAAoB,IAAI,IAAI;IAK5B,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA4B/D,OAAO,CAAC,YAAY;IAsCpB,OAAO,CAAC,UAAU;IAIlB;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAK5C,6DAA6D;IACpD,eAAe,IAAI,OAAO,GAAG,IAAI;IAI1C,+DAA+D;IACtD,eAAe,IAAI,SAAS,OAAO,EAAE;IAIrC,MAAM;CAKf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nederlandse Digitale Dienst Button Component (Lit + TypeScript)
|
|
3
3
|
*
|
|
4
4
|
* @element nldd-button
|
|
5
|
-
* @attr {string} appearance - Visual style, color included: 'primary' | 'secondary' | 'destructive' | 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-base' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | '
|
|
5
|
+
* @attr {string} appearance - Visual style, color included: 'primary' | 'secondary' | 'destructive' | 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-base' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | 'content-filled' | 'content-tinted'. The content appearances take their colors from --context-content-color, for buttons on colored surfaces; content-filled uses the surface color (--context-background-color) as the label color, so a colored surface of your own sets that variable.
|
|
6
6
|
* @attr {string} size - Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). 'lg' uses larger text and 24px start/end icons.
|
|
7
7
|
* @attr {string} horizontal-alignment - Horizontal alignment of the button content: 'left' | 'center' | 'right' (default: unset, centered). Most visible with width="full" or a fixed width.
|
|
8
8
|
* @attr {boolean} loading - Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe.
|
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
* @slot start-icon - Slot for a custom start icon (e.g. custom SVG). Wins over `start-icon`.
|
|
39
39
|
* @slot end-icon - Slot for a custom end icon (e.g. custom SVG). Wins over `end-icon`.
|
|
40
40
|
* @slot popup - A single `nldd-menu` or `nldd-popover` this button invokes. Slotting it auto-anchors the overlay to the button and toggles it on click (no id/anchor wiring). The overlay syncs `expanded` and `aria-haspopup` back onto the button. Add `expandable` for the disclosure chevron. Mirrors nldd-split-button; the manual `anchor`/`popovertarget` wiring keeps working when you don't slot an overlay.
|
|
41
|
+
* @attr {string} interestfor - ID of an nldd-popover that describes this button and opens on interest, as the `interest` slot does, for a popover that stands elsewhere: one shared by several controls, or a button in a `<p>`, where markup of your own in the button would break the paragraph. Looked up in the tree of this button. A popover in the `interest` slot wins. Keep `accessible-label` on that popover: it names the popover where it stands, and is left out while it describes this button.
|
|
42
|
+
* @slot interest - A single `nldd-popover` that describes this button and opens on interest instead of on a click: when the pointer rests on the button, when it gets keyboard focus, and on a long press on touch. The button keeps its own click, such as a reaction badge that toggles a reaction and shows who reacted. Focus stays on the button, the popover's content is read as the button's description, and Escape closes it. The pointer can move onto the popover without closing it. Information only: what hover opens cannot be reached with the keyboard, so put no link or button in it, and use the `popup` slot for content you act on. The popover needs no `accessible-label` here: its content is what is read.
|
|
41
43
|
*
|
|
42
44
|
* @fires click - When button is clicked (not fired when disabled)
|
|
43
45
|
*/
|
|
@@ -56,6 +58,7 @@ import { withTranslations } from '../../../utilities/with-translations.js';
|
|
|
56
58
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
57
59
|
import { nlddButtonTranslations } from './button.i18n.js';
|
|
58
60
|
import { PopupAnchorController } from '../../../utilities/popup-anchor-controller.js';
|
|
61
|
+
import { InterestController } from '../../../utilities/interest-controller.js';
|
|
59
62
|
import './../../content/icon/icon.js';
|
|
60
63
|
import './../../status-and-feedback/activity-indicator/activity-indicator.js';
|
|
61
64
|
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
@@ -86,6 +89,7 @@ let NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitElemen
|
|
|
86
89
|
this.expanded = false;
|
|
87
90
|
this.type = 'button';
|
|
88
91
|
this.popovertarget = undefined;
|
|
92
|
+
this.interestfor = undefined;
|
|
89
93
|
/**
|
|
90
94
|
* Direct element reference to the popover this button invokes — IDL-only
|
|
91
95
|
* counterpart to `popovertarget` that works across shadow boundaries.
|
|
@@ -150,6 +154,9 @@ let NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitElemen
|
|
|
150
154
|
* button and turns clicks into open/close. Not private: the template module
|
|
151
155
|
* binds its handlers. */
|
|
152
156
|
this._popup = new PopupAnchorController(this);
|
|
157
|
+
/** Wiring for a popover slotted into `interest`: opens it on hover, focus
|
|
158
|
+
* and a long press. Not private: the template module binds its handler. */
|
|
159
|
+
this._interest = new InterestController(this);
|
|
153
160
|
/** Renders again when shortcuts become available or unavailable, for the shortcut in the accessible name. */
|
|
154
161
|
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
155
162
|
}
|
|
@@ -159,6 +166,8 @@ let NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitElemen
|
|
|
159
166
|
}
|
|
160
167
|
updated(changedProperties) {
|
|
161
168
|
anchorPopoverTarget(this, popoverTargetOf(this, this.popovertarget, this.popoverTargetElement));
|
|
169
|
+
if (changedProperties.has('interestfor'))
|
|
170
|
+
this._interest.refresh();
|
|
162
171
|
if (changedProperties.has('maxWidth')) {
|
|
163
172
|
// The cap lands on the host; the inner button is already max-width: 100%
|
|
164
173
|
// of it, so it follows without a variable of its own. Invalid values do
|
|
@@ -240,6 +249,10 @@ let NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitElemen
|
|
|
240
249
|
describedTarget() {
|
|
241
250
|
return this.shadowRoot?.querySelector('button, a') ?? null;
|
|
242
251
|
}
|
|
252
|
+
/** The popover in the `interest` slot describes the button. */
|
|
253
|
+
ownDescriptions() {
|
|
254
|
+
return this._interest.overlay ? [this._interest.overlay] : [];
|
|
255
|
+
}
|
|
243
256
|
render() {
|
|
244
257
|
return template.call(this, {
|
|
245
258
|
handleClick: this._handleClick.bind(this),
|
|
@@ -284,6 +297,9 @@ __decorate([
|
|
|
284
297
|
__decorate([
|
|
285
298
|
property({ type: String })
|
|
286
299
|
], NLDDButton.prototype, "popovertarget", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
property({ type: String, reflect: true })
|
|
302
|
+
], NLDDButton.prototype, "interestfor", void 0);
|
|
287
303
|
__decorate([
|
|
288
304
|
property({ attribute: false })
|
|
289
305
|
], NLDDButton.prototype, "popoverTargetElement", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings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AE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;4CACxD;AAGd;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;+CAChF;AAGjB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,kBAAkB,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;mDAChF;AAGrB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;iDAChF;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCACL;AAIrC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACY;AAKvC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACc;AAOzC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACS;AA5JxB,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CA6QtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"button.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,yBA8nBxB,CAAC"}
|
|
@@ -10,6 +10,8 @@ export const buttonStyles = css `
|
|
|
10
10
|
|
|
11
11
|
:host {
|
|
12
12
|
--_button-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
13
|
+
/* Unset outside a field, so border-radius falls back to the own corner. */
|
|
14
|
+
--_button-nested-corner-radius: var(--context-control-corner-radius);
|
|
13
15
|
/* A parent that stacks its buttons says so through the context variable;
|
|
14
16
|
the button's own width attribute overrides it with an inline style. */
|
|
15
17
|
--_button-width: var(--context-button-width, auto);
|
|
@@ -52,6 +54,12 @@ export const buttonStyles = css `
|
|
|
52
54
|
-webkit-tap-highlight-color: transparent;
|
|
53
55
|
}
|
|
54
56
|
|
|
57
|
+
/* iOS opens a link preview on a long press, which is ours here. */
|
|
58
|
+
:host(:has(> [slot="interest"])) .button,
|
|
59
|
+
:host([interestfor]) .button {
|
|
60
|
+
-webkit-touch-callout: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
55
63
|
:host([size="xs"]) {
|
|
56
64
|
--_button-corner-radius: var(--semantics-controls-xs-corner-radius);
|
|
57
65
|
--_button-min-size: var(--semantics-controls-xs-min-size);
|
|
@@ -180,18 +188,16 @@ export const buttonStyles = css `
|
|
|
180
188
|
--_button-is-active-highlight-border-color: transparent;
|
|
181
189
|
}
|
|
182
190
|
|
|
183
|
-
/* The
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
here on the host — inside a :root token it would freeze — with the
|
|
187
|
-
tokens' white/black contrast flip as fallback. */
|
|
191
|
+
/* The tokens derive from currentColor, which stays unresolved inside them;
|
|
192
|
+
the host sets it from the context. The filled label reads
|
|
193
|
+
--context-background-color here: inside a :root token it would freeze. */
|
|
188
194
|
|
|
189
|
-
:host([appearance="
|
|
190
|
-
:host([expanded][appearance="
|
|
191
|
-
--_button-background-color: var(--context-button-background-color, var(--semantics-buttons-
|
|
192
|
-
--_button-primary-content-color: var(--semantics-buttons-
|
|
193
|
-
--_button-secondary-content-color: var(--semantics-buttons-
|
|
194
|
-
--_button-highlight-border-color: var(--semantics-buttons-
|
|
195
|
+
:host([appearance="content-tinted"]),
|
|
196
|
+
:host([expanded][appearance="content-tinted"]) {
|
|
197
|
+
--_button-background-color: var(--context-button-background-color, var(--semantics-buttons-content-tinted-background-color));
|
|
198
|
+
--_button-primary-content-color: var(--semantics-buttons-content-tinted-content-color);
|
|
199
|
+
--_button-secondary-content-color: var(--semantics-buttons-content-tinted-content-secondary-color);
|
|
200
|
+
--_button-highlight-border-color: var(--semantics-buttons-content-tinted-highlight-border-color);
|
|
195
201
|
--_button-is-hovered-background-color: var(--_button-background-color);
|
|
196
202
|
--_button-is-hovered-primary-content-color: var(--_button-primary-content-color);
|
|
197
203
|
--_button-is-hovered-secondary-content-color: var(--_button-secondary-content-color);
|
|
@@ -200,14 +206,16 @@ export const buttonStyles = css `
|
|
|
200
206
|
--_button-is-active-primary-content-color: var(--_button-primary-content-color);
|
|
201
207
|
--_button-is-active-secondary-content-color: var(--_button-secondary-content-color);
|
|
202
208
|
--_button-is-active-highlight-border-color: var(--_button-highlight-border-color);
|
|
209
|
+
|
|
210
|
+
color: var(--context-content-color);
|
|
203
211
|
}
|
|
204
212
|
|
|
205
|
-
:host([appearance="
|
|
206
|
-
:host([expanded][appearance="
|
|
207
|
-
--_button-background-color: var(--semantics-buttons-
|
|
208
|
-
--_button-primary-content-color: var(--context-
|
|
209
|
-
--_button-secondary-content-color: var(--semantics-buttons-
|
|
210
|
-
--_button-highlight-border-color: var(--semantics-buttons-
|
|
213
|
+
:host([appearance="content-filled"]),
|
|
214
|
+
:host([expanded][appearance="content-filled"]) {
|
|
215
|
+
--_button-background-color: var(--semantics-buttons-content-filled-background-color);
|
|
216
|
+
--_button-primary-content-color: var(--context-background-color);
|
|
217
|
+
--_button-secondary-content-color: var(--semantics-buttons-content-filled-content-secondary-color);
|
|
218
|
+
--_button-highlight-border-color: var(--semantics-buttons-content-filled-highlight-border-color);
|
|
211
219
|
--_button-is-hovered-background-color: var(--_button-background-color);
|
|
212
220
|
--_button-is-hovered-primary-content-color: var(--_button-primary-content-color);
|
|
213
221
|
--_button-is-hovered-secondary-content-color: var(--_button-secondary-content-color);
|
|
@@ -216,18 +224,19 @@ export const buttonStyles = css `
|
|
|
216
224
|
--_button-is-active-primary-content-color: var(--_button-primary-content-color);
|
|
217
225
|
--_button-is-active-secondary-content-color: var(--_button-secondary-content-color);
|
|
218
226
|
--_button-is-active-highlight-border-color: var(--_button-highlight-border-color);
|
|
227
|
+
|
|
228
|
+
color: var(--context-content-color);
|
|
219
229
|
}
|
|
220
230
|
|
|
221
|
-
/*
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
these rules deliberately pins the color through hover/active/expanded. */
|
|
226
|
-
:host([appearance="inherit-filled"]) .button {
|
|
231
|
+
/* content-filled paints its fill with currentColor, so the inner button
|
|
232
|
+
keeps the inherited color and the label color goes to the content layer.
|
|
233
|
+
The higher specificity pins it through hover, active and expanded. */
|
|
234
|
+
:host([appearance="content-filled"]) .button {
|
|
227
235
|
color: inherit;
|
|
228
236
|
}
|
|
229
237
|
|
|
230
|
-
:host([appearance="
|
|
238
|
+
:host([appearance="content-filled"]) .button > * {
|
|
239
|
+
--context-content-color: var(--_button-primary-content-color);
|
|
231
240
|
color: var(--_button-primary-content-color);
|
|
232
241
|
}
|
|
233
242
|
|
|
@@ -380,7 +389,7 @@ export const buttonStyles = css `
|
|
|
380
389
|
position: relative;
|
|
381
390
|
margin: 0;
|
|
382
391
|
border: none;
|
|
383
|
-
border-radius: var(--_button-corner-radius);
|
|
392
|
+
border-radius: var(--_button-nested-corner-radius, var(--_button-corner-radius));
|
|
384
393
|
background: none;
|
|
385
394
|
background-color: var(--_button-background-color);
|
|
386
395
|
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--_button-highlight-border-color);
|
|
@@ -392,6 +401,7 @@ export const buttonStyles = css `
|
|
|
392
401
|
gap: var(--_button-gap);
|
|
393
402
|
align-items: center;
|
|
394
403
|
justify-content: center;
|
|
404
|
+
--context-content-color: var(--_button-primary-content-color);
|
|
395
405
|
color: var(--_button-primary-content-color);
|
|
396
406
|
font: var(--_button-font);
|
|
397
407
|
text-align: center;
|
|
@@ -411,6 +421,7 @@ export const buttonStyles = css `
|
|
|
411
421
|
.button:hover {
|
|
412
422
|
@media (hover: hover) {
|
|
413
423
|
background-color: var(--_button-is-hovered-background-color);
|
|
424
|
+
--context-content-color: var(--_button-is-hovered-primary-content-color);
|
|
414
425
|
color: var(--_button-is-hovered-primary-content-color);
|
|
415
426
|
--_button-highlight-border-color: var(--_button-is-hovered-highlight-border-color);
|
|
416
427
|
}
|
|
@@ -418,6 +429,7 @@ export const buttonStyles = css `
|
|
|
418
429
|
|
|
419
430
|
.button:active {
|
|
420
431
|
background-color: var(--_button-is-active-background-color);
|
|
432
|
+
--context-content-color: var(--_button-is-active-primary-content-color);
|
|
421
433
|
color: var(--_button-is-active-primary-content-color);
|
|
422
434
|
--_button-highlight-border-color: var(--_button-is-active-highlight-border-color);
|
|
423
435
|
}
|
|
@@ -473,10 +485,11 @@ export const buttonStyles = css `
|
|
|
473
485
|
position:relative). It lives outside the <button>/<a> so the indicator's
|
|
474
486
|
role="status" live region announces loading without joining the button's
|
|
475
487
|
accessible name. The activity-indicator inside fills it and centers its
|
|
476
|
-
circle, which
|
|
488
|
+
circle, which takes the content color from the context. */
|
|
477
489
|
.button__activity-indicator {
|
|
478
490
|
position: absolute;
|
|
479
491
|
inset: 0;
|
|
492
|
+
--context-content-color: var(--_button-primary-content-color);
|
|
480
493
|
color: var(--_button-primary-content-color);
|
|
481
494
|
}
|
|
482
495
|
|
|
@@ -512,6 +525,7 @@ export const buttonStyles = css `
|
|
|
512
525
|
|
|
513
526
|
.button__supporting-text {
|
|
514
527
|
min-width: 0;
|
|
528
|
+
--context-content-color: var(--_button-secondary-content-color);
|
|
515
529
|
color: var(--_button-secondary-content-color);
|
|
516
530
|
font: var(--_button-supporting-font);
|
|
517
531
|
text-wrap: pretty;
|
|
@@ -519,11 +533,13 @@ export const buttonStyles = css `
|
|
|
519
533
|
|
|
520
534
|
.button:hover .button__supporting-text {
|
|
521
535
|
@media (hover: hover) {
|
|
536
|
+
--context-content-color: var(--_button-is-hovered-secondary-content-color);
|
|
522
537
|
color: var(--_button-is-hovered-secondary-content-color);
|
|
523
538
|
}
|
|
524
539
|
}
|
|
525
540
|
|
|
526
541
|
.button:active .button__supporting-text {
|
|
542
|
+
--context-content-color: var(--_button-is-active-secondary-content-color);
|
|
527
543
|
color: var(--_button-is-active-secondary-content-color);
|
|
528
544
|
}
|
|
529
545
|
|
|
@@ -566,16 +582,19 @@ export const buttonStyles = css `
|
|
|
566
582
|
.button__shortcut {
|
|
567
583
|
display: flex;
|
|
568
584
|
flex-shrink: 0;
|
|
585
|
+
--context-content-color: var(--_button-secondary-content-color);
|
|
569
586
|
color: var(--_button-secondary-content-color);
|
|
570
587
|
}
|
|
571
588
|
|
|
572
589
|
.button:hover .button__shortcut {
|
|
573
590
|
@media (hover: hover) {
|
|
591
|
+
--context-content-color: var(--_button-is-hovered-secondary-content-color);
|
|
574
592
|
color: var(--_button-is-hovered-secondary-content-color);
|
|
575
593
|
}
|
|
576
594
|
}
|
|
577
595
|
|
|
578
596
|
.button:active .button__shortcut {
|
|
597
|
+
--context-content-color: var(--_button-is-active-secondary-content-color);
|
|
579
598
|
color: var(--_button-is-active-secondary-content-color);
|
|
580
599
|
}
|
|
581
600
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"button.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoC3B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0lBrB,CAAC"}
|
|
@@ -22,7 +22,7 @@ function renderContent(component) {
|
|
|
22
22
|
<nldd-keyboard-shortcut
|
|
23
23
|
size="inherit"
|
|
24
24
|
appearance="simple"
|
|
25
|
-
color="
|
|
25
|
+
color="content"
|
|
26
26
|
keys=${component.shortcut || nothing}
|
|
27
27
|
mac-keys=${component.shortcutMac || nothing}
|
|
28
28
|
windows-keys=${component.shortcutWindows || nothing}
|
|
@@ -103,7 +103,7 @@ export function template(helpers) {
|
|
|
103
103
|
// a named slot so it never lands in the text/icon slots; it renders nothing
|
|
104
104
|
// in flow (a popover is display:none until shown in the top layer). See
|
|
105
105
|
// _handleClick.
|
|
106
|
-
const popupSlot = html `<slot name="popup" @slotchange=${this._popup.handleSlotChange}></slot>`;
|
|
106
|
+
const popupSlot = html `<slot name="popup" @slotchange=${this._popup.handleSlotChange}></slot><slot name="interest" @slotchange=${this._interest.handleSlotChange}></slot>`;
|
|
107
107
|
if (this.href) {
|
|
108
108
|
const resolvedRel = linkRel(this.rel, this.target);
|
|
109
109
|
return html `
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,sDAAsD,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAMvE,SAAS,aAAa,CAAC,SAAqB;IAC3C,iEAAiE;IACjE,OAAO,IAAI,CAAA;;6BAEiB,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;uBAEhC,SAAS,CAAC,SAAS;;IAEtC,CAAC,CAAC,CAAC,OAAO;;mDAEqC,SAAS,CAAC,IAAI;MAC3D,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAA,yCAAyC,SAAS,CAAC,cAAc,SAAS,CAAC,CAAC,CAAC,OAAO;;KAEpH,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;;;;;;aAMrB,SAAS,CAAC,QAAQ,IAAI,OAAO;iBACzB,SAAS,CAAC,WAAW,IAAI,OAAO;qBAC5B,SAAS,CAAC,eAAe,IAAI,OAAO;mBACtC,SAAS,CAAC,aAAa,IAAI,OAAO;;;IAGjD,CAAC,CAAC,CA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AgB;KAChB,SAAS;GACX,CAAC;IACH,CAAC;IAED,uEAAuE;IACvE,2EAA2E;IAC3E,wEAAwE;IACxE,yEAAyE;IACzE,wEAAwE;IACxE,OAAO,IAAI,CAAA;kBACM,WAAW;UACnB,IAAI,CAAC,IAAI;eACJ,IAAI,CAAC,QAAQ;mBACT,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;gBACnC,SAAS;mBACN,IAAI,CAAC,SAAS,IAAI,OAAO;mBACzB,YAAY;eAChB,QAAQ;cACT,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;2BACd,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,oBAAoB,CAAC;0BACrE,IAAI,CAAC,mBAAmB;kBAChC,IAAI,CAAC,MAAM,CAAC,iBAAiB;YACnC,OAAO,CAAC,WAAW;;KAE1B,OAAO;;IAER,gBAAgB;IAChB,SAAS;EACX,CAAC;AACH,CAAC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @element nldd-button-bar
|
|
14
14
|
* @attr {string} size - Bar size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). At 'lg', icon-button children stack their label below the icon (mobile action-bar style).
|
|
15
|
-
* @attr {string} appearance - Visual style of the buttons
|
|
15
|
+
* @attr {string} appearance - Visual style of the buttons: 'primary' | 'secondary' | 'accent-filled' | 'neutral-tinted' (default) | 'neutral-base' | 'content-filled' | 'content-tinted'. The content appearances are for a colored surface.
|
|
16
16
|
* @attr {boolean} disabled - Disabled state
|
|
17
17
|
*
|
|
18
18
|
* @slot - Default slot for nldd-button, nldd-icon-button and nldd-button-bar-divider elements
|
|
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
*
|
|
19
19
|
* @element nldd-button-bar
|
|
20
20
|
* @attr {string} size - Bar size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). At 'lg', icon-button children stack their label below the icon (mobile action-bar style).
|
|
21
|
-
* @attr {string} appearance - Visual style of the buttons
|
|
21
|
+
* @attr {string} appearance - Visual style of the buttons: 'primary' | 'secondary' | 'accent-filled' | 'neutral-tinted' (default) | 'neutral-base' | 'content-filled' | 'content-tinted'. The content appearances are for a colored surface.
|
|
22
22
|
* @attr {boolean} disabled - Disabled state
|
|
23
23
|
*
|
|
24
24
|
* @slot - Default slot for nldd-button, nldd-icon-button and nldd-button-bar-divider elements
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-bar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-bar/button-bar.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"button-bar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-bar/button-bar.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,yBAkI3B,CAAC"}
|
|
@@ -54,17 +54,21 @@ export const buttonBarStyles = css `
|
|
|
54
54
|
|
|
55
55
|
/* ## On-color */
|
|
56
56
|
|
|
57
|
-
:host([appearance="
|
|
58
|
-
--_button-bar-background-color: var(--semantics-buttons-
|
|
59
|
-
--_button-bar-divider-color: var(--semantics-buttons-
|
|
60
|
-
--_button-bar-highlight-border-color: var(--semantics-buttons-
|
|
57
|
+
:host([appearance="content-tinted"]) {
|
|
58
|
+
--_button-bar-background-color: var(--semantics-buttons-content-tinted-background-color);
|
|
59
|
+
--_button-bar-divider-color: var(--semantics-buttons-content-tinted-divider-color);
|
|
60
|
+
--_button-bar-highlight-border-color: var(--semantics-buttons-content-tinted-highlight-border-color);
|
|
61
61
|
--context-button-background-color: transparent;
|
|
62
|
+
|
|
63
|
+
color: var(--context-content-color);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
:host([appearance="
|
|
65
|
-
--_button-bar-background-color: var(--semantics-buttons-
|
|
66
|
-
--_button-bar-divider-color: var(--semantics-buttons-
|
|
67
|
-
--_button-bar-highlight-border-color: var(--semantics-buttons-
|
|
66
|
+
:host([appearance="content-filled"]) {
|
|
67
|
+
--_button-bar-background-color: var(--semantics-buttons-content-filled-background-color);
|
|
68
|
+
--_button-bar-divider-color: var(--semantics-buttons-content-filled-divider-color);
|
|
69
|
+
--_button-bar-highlight-border-color: var(--semantics-buttons-content-filled-highlight-border-color);
|
|
70
|
+
|
|
71
|
+
color: var(--context-content-color);
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
:host([hidden]) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-bar.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-bar/button-bar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"button-bar.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-bar/button-bar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkIjC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nederlandse Digitale Dienst Icon Button Component (Lit + TypeScript)
|
|
3
3
|
*
|
|
4
4
|
* @element nldd-icon-button
|
|
5
|
-
* @attr {string} appearance - Visual style, color included: '
|
|
5
|
+
* @attr {string} appearance - Visual style, color included: 'primary' | 'secondary' | 'destructive' | 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-base' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | 'content-filled' | 'content-tinted'. The content appearances take their colors from --context-content-color, for buttons on colored surfaces; content-filled uses the surface color (--context-background-color) for its icon.
|
|
6
6
|
* @attr {string} size - Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md')
|
|
7
7
|
* @attr {boolean} hide-lg-text - In lg size, hides the text label and enlarges the icon by one step (28px)
|
|
8
8
|
* @attr {boolean} no-highlight-border - Removes the per-appearance highlight border (e.g. when a control group draws a single border instead).
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
*
|
|
33
33
|
* @slot icon - Slot for a custom icon (e.g. custom SVG). Wins over `icon`; falls back to a placeholder icon when neither is set.
|
|
34
34
|
* @slot popup - A single `nldd-menu` or `nldd-popover` this button invokes. Slotting it auto-anchors the overlay to the button and toggles it on click (no id/anchor wiring). The overlay syncs `expanded` and `aria-haspopup` back onto the button. Add `expandable` for the disclosure chevron. Mirrors nldd-split-button; manual `popovertarget` wiring keeps working without a slotted overlay.
|
|
35
|
+
* @attr {string} interestfor - ID of an nldd-popover that describes this button and opens on interest, as the `interest` slot does, for a popover that stands elsewhere: one shared by several controls, or a button in a `<p>`, where markup of your own in the button would break the paragraph. Looked up in the tree of this button. A popover in the `interest` slot wins. Keep `accessible-label` on that popover: it names the popover where it stands, and is left out while it describes this button.
|
|
36
|
+
* @slot interest - A single `nldd-popover` that describes this button and opens on interest instead of on a click: when the pointer rests on the button, when it gets keyboard focus, and on a long press on touch. It takes the place of the button's own tooltip, so let it say what the button does where the icon does not. The button keeps its own click. Focus stays on the button, the popover's content is read as the button's description (after `accessible-label`, which stays its name), and Escape closes it. Information only: put no link or button in it. The popover needs no `accessible-label` here.
|
|
35
37
|
*
|
|
36
38
|
* @example
|
|
37
39
|
* ```html
|
|
@@ -47,10 +49,11 @@
|
|
|
47
49
|
*/
|
|
48
50
|
import { LitElement } from 'lit';
|
|
49
51
|
import { PopupAnchorController } from '../../../utilities/popup-anchor-controller.js';
|
|
52
|
+
import { InterestController } from '../../../utilities/interest-controller.js';
|
|
50
53
|
import './../../content/icon/icon.js';
|
|
51
54
|
import './../../status-and-feedback/activity-indicator/activity-indicator.js';
|
|
52
55
|
export type Size = 'xs' | 'sm' | 'md' | 'lg';
|
|
53
|
-
export type Appearance = 'primary' | 'secondary' | 'destructive' | 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-base' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | '
|
|
56
|
+
export type Appearance = 'primary' | 'secondary' | 'destructive' | 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-base' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | 'content-filled' | 'content-tinted';
|
|
54
57
|
export type ButtonType = 'button' | 'submit' | 'reset';
|
|
55
58
|
export type PopupType = 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid';
|
|
56
59
|
declare const NLDDIconButton_base: (abstract new (...args: any[]) => LitElement & {
|
|
@@ -101,6 +104,7 @@ export declare class NLDDIconButton extends NLDDIconButton_base {
|
|
|
101
104
|
/** Width mode: 'full' (stretch to container) or any CSS length. */
|
|
102
105
|
width: string;
|
|
103
106
|
popovertarget: string | undefined;
|
|
107
|
+
interestfor: string | undefined;
|
|
104
108
|
/**
|
|
105
109
|
* Direct element reference to the popover this button invokes — IDL-only
|
|
106
110
|
* counterpart to `popovertarget` that works across shadow boundaries.
|
|
@@ -152,6 +156,10 @@ export declare class NLDDIconButton extends NLDDIconButton_base {
|
|
|
152
156
|
* button and turns clicks into open/close. Not private: the template module
|
|
153
157
|
* binds its handlers. */
|
|
154
158
|
_popup: PopupAnchorController;
|
|
159
|
+
/** Wiring for a popover slotted into `interest`: opens it on hover, focus
|
|
160
|
+
* and a long press, in place of the tooltip. Not private: the template
|
|
161
|
+
* module reads it. */
|
|
162
|
+
_interest: InterestController;
|
|
155
163
|
/** Renders again when shortcuts become available or unavailable, for the shortcut in the accessible name. */
|
|
156
164
|
private _shortcutAvailability;
|
|
157
165
|
disconnectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAG/E,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAK9E,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC7C,MAAM,MAAM,UAAU,GACnB,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,gBAAgB,CAAC;AACpB,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AACvD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;AAExE,qBACa,cAAe,SAAQ,mBAAwD;IAC3F,OAAgB,MAAM,0BAAoB;IAK1C,MAAM,CAAC,cAAc,UAAQ;IAC7B,OAAO,CAAC,UAAU,CAAqB;IAGvC,UAAU,EAAE,UAAU,CAAoB;IAG1C,IAAI,EAAE,IAAI,CAAQ;IAElB,iFAAiF;IAEjF,UAAU,UAAS;IAEnB;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEhB,4GAA4G;IAE5G,WAAW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CAAC,GAAG,IAAI;IAwB/D,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAmC3C;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAO5C,iBAAiB,IAAI,IAAI;IAIhB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
|
|
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
* Nederlandse Digitale Dienst Icon Button Component (Lit + TypeScript)
|
|
9
9
|
*
|
|
10
10
|
* @element nldd-icon-button
|
|
11
|
-
* @attr {string} appearance - Visual style, color included: '
|
|
11
|
+
* @attr {string} appearance - Visual style, color included: 'primary' | 'secondary' | 'destructive' | 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-base' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | 'content-filled' | 'content-tinted'. The content appearances take their colors from --context-content-color, for buttons on colored surfaces; content-filled uses the surface color (--context-background-color) for its icon.
|
|
12
12
|
* @attr {string} size - Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md')
|
|
13
13
|
* @attr {boolean} hide-lg-text - In lg size, hides the text label and enlarges the icon by one step (28px)
|
|
14
14
|
* @attr {boolean} no-highlight-border - Removes the per-appearance highlight border (e.g. when a control group draws a single border instead).
|
|
@@ -38,6 +38,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
38
38
|
*
|
|
39
39
|
* @slot icon - Slot for a custom icon (e.g. custom SVG). Wins over `icon`; falls back to a placeholder icon when neither is set.
|
|
40
40
|
* @slot popup - A single `nldd-menu` or `nldd-popover` this button invokes. Slotting it auto-anchors the overlay to the button and toggles it on click (no id/anchor wiring). The overlay syncs `expanded` and `aria-haspopup` back onto the button. Add `expandable` for the disclosure chevron. Mirrors nldd-split-button; manual `popovertarget` wiring keeps working without a slotted overlay.
|
|
41
|
+
* @attr {string} interestfor - ID of an nldd-popover that describes this button and opens on interest, as the `interest` slot does, for a popover that stands elsewhere: one shared by several controls, or a button in a `<p>`, where markup of your own in the button would break the paragraph. Looked up in the tree of this button. A popover in the `interest` slot wins. Keep `accessible-label` on that popover: it names the popover where it stands, and is left out while it describes this button.
|
|
42
|
+
* @slot interest - A single `nldd-popover` that describes this button and opens on interest instead of on a click: when the pointer rests on the button, when it gets keyboard focus, and on a long press on touch. It takes the place of the button's own tooltip, so let it say what the button does where the icon does not. The button keeps its own click. Focus stays on the button, the popover's content is read as the button's description (after `accessible-label`, which stays its name), and Escape closes it. Information only: put no link or button in it. The popover needs no `accessible-label` here.
|
|
41
43
|
*
|
|
42
44
|
* @example
|
|
43
45
|
* ```html
|
|
@@ -60,6 +62,8 @@ import { template } from './icon-button.template.js';
|
|
|
60
62
|
import { withTranslations } from '../../../utilities/with-translations.js';
|
|
61
63
|
import { nlddIconButtonTranslations } from './icon-button.i18n.js';
|
|
62
64
|
import { PopupAnchorController } from '../../../utilities/popup-anchor-controller.js';
|
|
65
|
+
import { InterestController } from '../../../utilities/interest-controller.js';
|
|
66
|
+
import { applyDescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
63
67
|
import { ShortcutAvailabilityController } from '../../../utilities/shortcut.js';
|
|
64
68
|
import './../../content/icon/icon.js';
|
|
65
69
|
import './../../status-and-feedback/activity-indicator/activity-indicator.js';
|
|
@@ -99,6 +103,7 @@ let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, n
|
|
|
99
103
|
/** Width mode: 'full' (stretch to container) or any CSS length. */
|
|
100
104
|
this.width = '';
|
|
101
105
|
this.popovertarget = undefined;
|
|
106
|
+
this.interestfor = undefined;
|
|
102
107
|
/**
|
|
103
108
|
* Direct element reference to the popover this button invokes — IDL-only
|
|
104
109
|
* counterpart to `popovertarget` that works across shadow boundaries.
|
|
@@ -148,6 +153,10 @@ let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, n
|
|
|
148
153
|
* button and turns clicks into open/close. Not private: the template module
|
|
149
154
|
* binds its handlers. */
|
|
150
155
|
this._popup = new PopupAnchorController(this);
|
|
156
|
+
/** Wiring for a popover slotted into `interest`: opens it on hover, focus
|
|
157
|
+
* and a long press, in place of the tooltip. Not private: the template
|
|
158
|
+
* module reads it. */
|
|
159
|
+
this._interest = new InterestController(this);
|
|
151
160
|
/** Renders again when shortcuts become available or unavailable, for the shortcut in the accessible name. */
|
|
152
161
|
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
153
162
|
}
|
|
@@ -164,6 +173,11 @@ let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, n
|
|
|
164
173
|
}
|
|
165
174
|
updated(changedProperties) {
|
|
166
175
|
anchorPopoverTarget(this, popoverTargetOf(this, this.popovertarget, this.popoverTargetElement));
|
|
176
|
+
if (changedProperties.has('interestfor'))
|
|
177
|
+
this._interest.refresh();
|
|
178
|
+
// By element: the button sits in this shadow root, the popover outside it.
|
|
179
|
+
const overlay = this._interest.overlay;
|
|
180
|
+
applyDescribedBy(this.shadowRoot?.querySelector('.icon-button'), overlay ? [overlay] : [], true);
|
|
167
181
|
if (changedProperties.has('width')) {
|
|
168
182
|
const w = this.width;
|
|
169
183
|
// 'full' switches host to block + 100% via CSS attribute selector.
|
|
@@ -284,6 +298,9 @@ __decorate([
|
|
|
284
298
|
__decorate([
|
|
285
299
|
property({ type: String })
|
|
286
300
|
], NLDDIconButton.prototype, "popovertarget", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
property({ type: String, reflect: true })
|
|
303
|
+
], NLDDIconButton.prototype, "interestfor", void 0);
|
|
287
304
|
__decorate([
|
|
288
305
|
property({ attribute: false })
|
|
289
306
|
], NLDDIconButton.prototype, "popoverTargetElement", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAoBrF,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,gBAAgB,CAAC,UAAU,EAAE,0BAA0B,CAAC;IAArF;;QAOE,eAAU,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QAGvC,eAAU,GAAe,gBAAgB,CAAC;QAG1C,SAAI,GA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