@nldd/design-system 0.28.1 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/custom-elements.json +1909 -684
- package/dist/assets/styles/shadow-resets.d.ts +7 -0
- package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
- package/dist/assets/styles/shadow-resets.js +17 -0
- package/dist/assets/styles/shadow-resets.js.map +1 -1
- package/dist/assets/styles/text-wrap.d.ts +78 -0
- package/dist/assets/styles/text-wrap.d.ts.map +1 -0
- package/dist/assets/styles/text-wrap.fixtures.d.ts +6 -0
- package/dist/assets/styles/text-wrap.fixtures.d.ts.map +1 -0
- package/dist/assets/styles/text-wrap.fixtures.js +25 -0
- package/dist/assets/styles/text-wrap.fixtures.js.map +1 -0
- package/dist/assets/styles/text-wrap.js +102 -0
- package/dist/assets/styles/text-wrap.js.map +1 -0
- package/dist/cdn/autoloader.js +140 -140
- package/dist/cdn/chunks/{accordion-qNc04J73.js → accordion-BIgPiBgT.js} +5 -4
- package/dist/cdn/chunks/{accordion-item-C6M7whqP.js → accordion-item-YHiK4fhb.js} +15 -14
- package/dist/cdn/chunks/{activity-indicator-NvfhYycS.js → activity-indicator-BiuU--e6.js} +23 -31
- package/dist/cdn/chunks/{admonition-CrFn5dn8.js → admonition-CpxxWW6f.js} +21 -20
- package/dist/cdn/chunks/{avatar-De4nVQAy.js → avatar-DeeEjbzl.js} +46 -45
- package/dist/cdn/chunks/{avatar-group-cS_7WjsC.js → avatar-group-Ey17PhOt.js} +16 -16
- package/dist/cdn/chunks/{badge-BNmnWgNJ.js → badge-B0K1AVec.js} +5 -10
- package/dist/cdn/chunks/{banner-CJ0VfDQl.js → banner-YQpzU7Yz.js} +27 -33
- package/dist/cdn/chunks/{bar-split-view-DJZ_RMrc.js → bar-split-view-DNWrGLv3.js} +7 -7
- package/dist/cdn/chunks/{blockquote-Fbk-Cz-z.js → blockquote-zBgtNbdZ.js} +32 -29
- package/dist/cdn/chunks/{box-DUjTdMwj.js → box-CLEd1Y-1.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-DvQfnS-r.js → breadcrumbs-DCwiSLxQ.js} +44 -51
- package/dist/cdn/chunks/{button-BiZEK2qo.js → button-DpSJe6ns.js} +84 -89
- package/dist/cdn/chunks/{button-bar-BD8YYSya.js → button-bar-Bw46AWOo.js} +3 -3
- package/dist/cdn/chunks/{button-group-BDgwtxiB.js → button-group-Bd5CZm4t.js} +2 -2
- package/dist/cdn/chunks/{card-7YW4G3mN.js → card-xq9jqLek.js} +20 -19
- package/dist/cdn/chunks/{cell-D4rzlHiL.js → cell-CNGu9Srs.js} +6 -6
- package/dist/cdn/chunks/{checkbox-BAXC8LxT.js → checkbox-DJU2ntYs.js} +6 -5
- package/dist/cdn/chunks/{checkbox-field-DokK3uET.js → checkbox-field-36mh4uD-.js} +44 -41
- package/dist/cdn/chunks/{checkbox-group-dYi8Qw-Z.js → checkbox-group-CaoyYQC1.js} +3 -3
- package/dist/cdn/chunks/{class-map-Dk5rXpmX.js → class-map-07EioFee.js} +1 -1
- package/dist/cdn/chunks/{code-editor-Uc5WnSyE.js → code-editor-CqHXUdbC.js} +6 -5
- package/dist/cdn/chunks/{code-viewer-DmaSO8TW.js → code-viewer-ro55V04o.js} +42 -58
- package/dist/cdn/chunks/{codemirror-input-yuu4_CF5.js → codemirror-input-D4u8naKh.js} +5 -5
- package/dist/cdn/chunks/{collection-DRkMikEK.js → collection-DVED8Kff.js} +13 -15
- package/dist/cdn/chunks/{combo-box-BfgDCM9z.js → combo-box-CMdGMQ8q.js} +13 -15
- package/dist/cdn/chunks/{container-Ce02W6bB.js → container-BxfHTSXb.js} +2 -2
- package/dist/cdn/chunks/{custom-element-B7CAmse4.js → custom-element-7tLnKgZE.js} +1 -1
- package/dist/cdn/chunks/{date-field-D0qFC7IW.js → date-field-KrAEvvJg.js} +91 -104
- package/dist/cdn/chunks/{date-picker-DwXIznN6.js → date-picker-CeyTd4Mj.js} +134 -128
- package/dist/cdn/chunks/{decorate-CrwTiRI4.js → decorate-CIC8fGPN.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-Dks9Tazd.js → described-by-mixin-DSeADwWP.js} +2 -2
- package/dist/cdn/chunks/{description-cell-vdXLTWdM.js → description-cell-DDjPf92m.js} +42 -26
- package/dist/cdn/chunks/{dev-checks-C7AQOQdy.js → dev-checks-DE09CTk9.js} +20 -5
- package/dist/cdn/chunks/{directive-helpers-DhYhHq0V.js → directive-helpers-DUlH8eNt.js} +1 -1
- package/dist/cdn/chunks/{dist-BF_HsA1F.js → dist-3XSbEdbz.js} +1 -1
- package/dist/cdn/chunks/{dist-fQWTQex_.js → dist-BV06hHwA.js} +3 -3
- package/dist/cdn/chunks/{dist-CpFmom1e.js → dist-CLyXDlop.js} +1 -1
- package/dist/cdn/chunks/{dist-BO8LBhZ9.js → dist-CanlbdZP.js} +1 -1
- package/dist/cdn/chunks/{dist-Ef-Tq6YF.js → dist-Cku1NQ9X.js} +2 -2
- package/dist/cdn/chunks/{dist-DKwVzsKb.js → dist-DJ_2VKiG.js} +3 -3
- package/dist/cdn/chunks/{dist-DA8xWaRD.js → dist-Dpc1YfbE.js} +1 -1
- package/dist/cdn/chunks/{dist-C3SPGWp1.js → dist-DsE-63gX.js} +1 -1
- package/dist/cdn/chunks/{dist-DsI2zIZX.js → dist-DtpgX9L8.js} +2 -2
- package/dist/cdn/chunks/{dist-BStcClNc.js → dist-DuaPU_hA.js} +2 -2
- package/dist/cdn/chunks/{dist-L5MKtblc.js → dist-lUsXGXhR.js} +1 -1
- package/dist/cdn/chunks/{divider-DtcYfGdC.js → divider-BixGehzs.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-C16nriDX.js → document-tab-bar-BlP7NEb9.js} +57 -65
- package/dist/cdn/chunks/{dropdown-imPdtMWv.js → dropdown-DpCdMFod.js} +12 -11
- package/dist/cdn/chunks/{file-field-KvBiDQDG.js → file-field-CYjsw4xy.js} +127 -133
- package/dist/cdn/chunks/{form-D1EnbYQi.js → form-DDB03czp.js} +1 -1
- package/dist/cdn/chunks/{form-actions-BVb12cWB.js → form-actions-DZgcVawx.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-1aHgl6CN.js → form-associated-mixin-9cC5HSCG.js} +2 -2
- package/dist/cdn/chunks/{form-field-C7IKuhqV.js → form-field-CuTa78j4.js} +62 -57
- package/dist/cdn/chunks/{form-section-C3EY5PYR.js → form-section-J2if8kVt.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-D0Eg6xrZ.js → full-bleed-section-enjghRsm.js} +3 -3
- package/dist/cdn/chunks/{hero-CLt5Cw5O.js → hero-AHBPM3ks.js} +14 -14
- package/dist/cdn/chunks/{icon-Dm2x9BcO.js → icon-C_xeQP4j.js} +2 -2
- package/dist/cdn/chunks/{icon-button-CBEWhco-.js → icon-button-CkNgX7Ra.js} +9 -9
- package/dist/cdn/chunks/{icon-cell-DXxd6Nry.js → icon-cell-qieQ2vyq.js} +26 -27
- package/dist/cdn/chunks/{identity-BeTWWEj8.js → identity-CnYwgyF7.js} +24 -21
- package/dist/cdn/chunks/{if-defined-mF0X0Rdi.js → if-defined-BG5WQE1B.js} +1 -1
- package/dist/cdn/chunks/{image-COSXwiWa.js → image--K2M19ce.js} +57 -57
- package/dist/cdn/chunks/{inline-dialog-DIOgk8bK.js → inline-dialog-CfiC1tbk.js} +26 -20
- package/dist/cdn/chunks/{just-in-time-education-BZNVdvuU.js → just-in-time-education-Dxca2LqF.js} +24 -32
- package/dist/cdn/chunks/{kanban-Cck2OXzv.js → kanban-Dwb93dgS.js} +6 -6
- package/dist/cdn/chunks/{kanban-column--KK3DP8d.js → kanban-column-Br4GovWU.js} +28 -33
- package/dist/cdn/chunks/{keyboard-shortcut-CuyFIf1M.js → keyboard-shortcut-a-CkABX1.js} +68 -73
- package/dist/cdn/chunks/{languages-AgQxW3ST.js → languages-BrBEUYzL.js} +12 -12
- package/dist/cdn/chunks/{layout-pass-Cq85kSHX.js → layout-pass-B2ALRYc9.js} +14 -4
- package/dist/cdn/chunks/{link-Dwx2iVe3.js → link-CROYAF4K.js} +37 -44
- package/dist/cdn/chunks/{link-group-C1W4fywA.js → link-group-pbOW9KCb.js} +2 -2
- package/dist/cdn/chunks/{list-DLzBphoL.js → list-D_BWUBh4.js} +41 -51
- package/dist/cdn/chunks/{list-item-C_ehVVWB.js → list-item-DeFrncLo.js} +116 -127
- package/dist/cdn/chunks/{list-item-segment-BSKAGZX1.js → list-item-segment-C1X5v2_Z.js} +35 -42
- package/dist/cdn/chunks/{menu-C1PAGWta.js → menu-CkMJUE0H.js} +13 -19
- package/dist/cdn/chunks/{menu-bar-0nenrPh7.js → menu-bar-B3F-QjLV.js} +7 -7
- package/dist/cdn/chunks/{menu-bar-item-CxwtcbeA.js → menu-bar-item-CyixR7Fi.js} +33 -41
- package/dist/cdn/chunks/{menu-divider-FTcoHy0o.js → menu-divider-uBPiSPsv.js} +3 -3
- package/dist/cdn/chunks/{menu-group-CbuJhLxI.js → menu-group-BXS5r-lc.js} +4 -4
- package/dist/cdn/chunks/{menu-item-BMblp58r.js → menu-item-CORxUt3u.js} +4 -4
- package/dist/cdn/chunks/{menu.template-DVwVuOZ7.js → menu.template-NyA_JtUm.js} +63 -64
- package/dist/cdn/chunks/{modal-dialog-Bd0UpTKp.js → modal-dialog-Dt5uenA0.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-C_Mrqdc7.js → multi-line-text-field-CkCvyJov.js} +7 -6
- package/dist/cdn/chunks/{navigation-split-view-DI6bkyO8.js → navigation-split-view-Clp3Camr.js} +7 -7
- package/dist/cdn/chunks/{notification-DlP3Jqyg.js → notification-B36JO2cS.js} +102 -101
- package/dist/cdn/chunks/{number-field-BJ6CkhId.js → number-field-Cjrwd3G0.js} +86 -61
- package/dist/cdn/chunks/{one-half-one-half-section-DHCUh_wz.js → one-half-one-half-section-Bc4rFjtM.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-DYTm8bKQ.js → one-third-two-thirds-section-DikIdU3X.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-DHuL7IM1.js → one-time-code-field-CqNmLld4.js} +29 -23
- package/dist/cdn/chunks/{overflow-menu-ziAYinfd.js → overflow-menu-6tdlRjhY.js} +1 -1
- package/dist/cdn/chunks/{page-CN9aT0-o.js → page-CpdGz0K6.js} +23 -16
- package/dist/cdn/chunks/{page-footer-BHk3XPcl.js → page-footer-_W5dGcQt.js} +46 -47
- package/dist/cdn/chunks/{page-section-mixin-BCWdaBe-.js → page-section-mixin-DSdHIkwR.js} +3 -3
- package/dist/cdn/chunks/{pagination-TG6S64c8.js → pagination-DJqmp7nt.js} +9 -12
- package/dist/cdn/chunks/{password-field-WlBkV6Zk.js → password-field-JKBHK_MQ.js} +12 -14
- package/dist/cdn/chunks/picker-popover-controller-dE7AINjc.js +15 -0
- package/dist/cdn/chunks/{popover-SPjzHEBv.js → popover-LljgfgHS.js} +8 -11
- package/dist/cdn/chunks/{progress-bar-y1V2-yVB.js → progress-bar-fILD82bn.js} +48 -46
- package/dist/cdn/chunks/{progress-circle-CmHdUkXN.js → progress-circle-72YbT9v1.js} +50 -51
- package/dist/cdn/chunks/{radio-button-0w_6MBnr.js → radio-button-B45WY4fZ.js} +4 -4
- package/dist/cdn/chunks/{radio-button-field-DRxHUlU-.js → radio-button-field-CG2ljZ-j.js} +36 -33
- package/dist/cdn/chunks/{radio-button-group-BOSrS8Cw.js → radio-button-group-DgQHIiXR.js} +3 -3
- package/dist/cdn/chunks/{render-marked-B37AmEcK.js → render-marked-vXU387IN.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-DNexvOly.js → reorder-handle-cell-Bc0LM08A.js} +7 -10
- package/dist/cdn/chunks/{reorder-handle-mixin-DR6s48h0.js → reorder-handle-mixin-DIkeFpRU.js} +2 -2
- package/dist/cdn/chunks/{repeat-DmJWskI3.js → repeat-Cy1a-r4p.js} +2 -2
- package/dist/cdn/chunks/{rich-text-Dt9MNeaN.js → rich-text-BZ6J0VNi.js} +6 -9
- package/dist/cdn/chunks/{row-header-mixin-CACRXO0G.js → row-header-mixin-CnCxMteQ.js} +2 -2
- package/dist/cdn/chunks/sanitize-url-EEu5iGkI.js +7 -0
- package/dist/cdn/chunks/{scroll-fade-CnG9vdGO.js → scroll-fade-BoXGZJeO.js} +2 -2
- package/dist/cdn/chunks/{scroll-mode-controller-CuCRKyLT.js → scroll-mode-controller-DlKGaDhM.js} +1 -1
- package/dist/cdn/chunks/{search-field-DHwGMif1.js → search-field-BaPPorsw.js} +14 -16
- package/dist/cdn/chunks/{segmented-control-DhEmavt0.js → segmented-control-CY7eFebV.js} +10 -11
- package/dist/cdn/chunks/{shadow-resets-B5O9JTmC.js → shadow-resets-kAFcguCG.js} +13 -3
- package/dist/cdn/chunks/{sheet-BLe_3_DE.js → sheet-EvUuqzd5.js} +3 -3
- package/dist/cdn/chunks/{shell-DqPhGCqs.js → shell-ZiZriusi.js} +4 -4
- package/dist/cdn/chunks/{side-by-side-split-view-DCAuNLWx.js → side-by-side-split-view-qj871uv2.js} +6 -6
- package/dist/cdn/chunks/{sidebar-section-nC17BdDf.js → sidebar-section-C2KLgpwu.js} +77 -77
- package/dist/cdn/chunks/{simple-section-C2XC7_dY.js → simple-section-CVQRynxS.js} +3 -3
- package/dist/cdn/chunks/{skip-link-DVUTni1o.js → skip-link-CpxEwJKH.js} +28 -26
- package/dist/cdn/chunks/{slider-D6bcOyZe.js → slider-DHY89yV6.js} +13 -15
- package/dist/cdn/chunks/{spacer-D39nYCkZ.js → spacer-BDRDeRQr.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-BWIkzpvO.js → spacer-cell-DvUxqmbS.js} +4 -4
- package/dist/cdn/chunks/{split-button-QFO3hzQ4.js → split-button-DGzX2W4w.js} +12 -13
- package/dist/cdn/chunks/{split-view-divider-BwBUUVjD.js → split-view-divider-BQdN8I8c.js} +2 -2
- package/dist/cdn/chunks/{stacked-split-view-yNPky0NT.js → stacked-split-view-CdXyXpzb.js} +6 -6
- package/dist/cdn/chunks/{static-html-CTzABBaH.js → static-html-ooiG7-by.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CLC37EL9.js → status-bar-S5IvBhAD.js} +5 -5
- package/dist/cdn/chunks/{step-bar-BhgHHkDX.js → step-bar-pkYf_gF8.js} +36 -43
- package/dist/cdn/chunks/{step-cell-DC2qTAyk.js → step-cell-3yG-UCmv.js} +5 -5
- package/dist/cdn/chunks/{stepper-B-cc2_Sm.js → stepper-DIufBp3c.js} +10 -13
- package/dist/cdn/chunks/{style-map-HtOjYtU6.js → style-map-DP8rklU9.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-k_4WmoQz.js → swatch-picker-uyMsXHeI.js} +7 -6
- package/dist/cdn/chunks/{switch-CkeeQxIb.js → switch-DQ3UDIy5.js} +6 -5
- package/dist/cdn/chunks/{switch-field-Bz3JEf0A.js → switch-field-BXH62I0E.js} +26 -23
- package/dist/cdn/chunks/{tab-bar-A1J5hAqM.js → tab-bar-B2m7RGKe.js} +63 -61
- package/dist/cdn/chunks/{table-D_AIkENk.js → table-Dtg4t_dM.js} +44 -45
- package/dist/cdn/chunks/{tag-CSEVQj4T.js → tag-BdB8MDQQ.js} +21 -19
- package/dist/cdn/chunks/{term-DuVHCQcO.js → term-DD2K8Qqb.js} +15 -18
- package/dist/cdn/chunks/{text-CBH-FTlq.js → text-C8iP63bA.js} +41 -39
- package/dist/cdn/chunks/{text-cell-D60E-KiB.js → text-cell-1pWwBLLI.js} +55 -42
- package/dist/cdn/chunks/{text-editor-CFesnlv8.js → text-editor-DjNky4l-.js} +615 -629
- package/dist/cdn/chunks/{text-field-ClvBNmw_.js → text-field-ClVrHYGz.js} +7 -6
- package/dist/cdn/chunks/text-wrap-DJ9PcwZ4.js +29 -0
- package/dist/cdn/chunks/{time-field-D1ueoBOt.js → time-field-CrwLpzZp.js} +49 -55
- package/dist/cdn/chunks/{time-picker-ttlWNV2I.js → time-picker-BYhEzGJL.js} +103 -98
- package/dist/cdn/chunks/{title-D2otK52V.js → title-DdqeERnM.js} +81 -93
- package/dist/cdn/chunks/{title-cell-BOolNM8K.js → title-cell-C4U3rN33.js} +66 -53
- package/dist/cdn/chunks/{toggle-button-CzWCZusb.js → toggle-button-CknaEM8j.js} +73 -66
- package/dist/cdn/chunks/{toggle-button-group-BUKU9xiy.js → toggle-button-group-CxyhERqD.js} +3 -3
- package/dist/cdn/chunks/{token-HxBj8tdv.js → token-I0vH42iy.js} +13 -15
- package/dist/cdn/chunks/{token-field-DHAfga9R.js → token-field-B1sAqN0B.js} +17 -19
- package/dist/cdn/chunks/{toolbar-CR6uWzjc.js → toolbar-DRIyU8-Z.js} +48 -54
- package/dist/cdn/chunks/{toolbar-item-M5kEBN_1.js → toolbar-item-D1JDaFal.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-2XyAXFDG.js → toolbar-title-D7CCOmDz.js} +7 -10
- package/dist/cdn/chunks/{toolbar.styles-SLbsPK33.js → toolbar.styles-CXjPigMk.js} +10 -18
- package/dist/cdn/chunks/{tooltip-yN6v0-a6.js → tooltip-5clp5S3T.js} +41 -40
- package/dist/cdn/chunks/{top-navigation-bar-DSv3hYF4.js → top-navigation-bar-CEuIAOoy.js} +116 -109
- package/dist/cdn/chunks/{top-title-bar-Cs93GAbh.js → top-title-bar-M3NiRgr_.js} +14 -7
- package/dist/cdn/chunks/{two-thirds-one-third-section-DtrkuHxs.js → two-thirds-one-third-section-BJGAw7Mq.js} +3 -3
- package/dist/cdn/chunks/{validation-list-BrEOIlrc.js → validation-list-CTb7X_Gq.js} +30 -31
- package/dist/cdn/chunks/{visibility-mixin-CklY4qL7.js → visibility-mixin-BgnkZDZM.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-Clb3JvVO.js → visually-hidden-B4_jKNA7.js} +2 -2
- package/dist/cdn/chunks/{window-CVRtBBjQ.js → window-BmxrtW9P.js} +7 -10
- package/dist/cdn/chunks/with-translations-DSfo7eL-.js +28 -0
- package/dist/components/actions/button/button.d.ts +6 -9
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +5 -11
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +2 -1
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +6 -9
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +5 -8
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +10 -13
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +3 -19
- 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 +25 -22
- 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 +3 -7
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +5 -4
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +2 -10
- package/dist/components/actions/split-button/split-button.js.map +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 +2 -0
- package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.d.ts +7 -4
- package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +2 -9
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +7 -4
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +15 -25
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +2 -10
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/content/accordion/accordion-item.styles.d.ts.map +1 -1
- package/dist/components/content/accordion/accordion-item.styles.js +3 -2
- package/dist/components/content/accordion/accordion-item.styles.js.map +1 -1
- package/dist/components/content/accordion/accordion.d.ts +1 -1
- package/dist/components/content/accordion/accordion.js +1 -1
- package/dist/components/content/accordion/accordion.styles.d.ts.map +1 -1
- package/dist/components/content/accordion/accordion.styles.js +1 -0
- package/dist/components/content/accordion/accordion.styles.js.map +1 -1
- package/dist/components/content/admonition/admonition.d.ts +2 -2
- package/dist/components/content/admonition/admonition.js +2 -2
- package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -1
- package/dist/components/content/admonition/admonition.styles.js +3 -2
- package/dist/components/content/admonition/admonition.styles.js.map +1 -1
- package/dist/components/content/avatar/avatar.d.ts +14 -17
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +16 -16
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +2 -1
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +5 -8
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +3 -0
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +16 -5
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +5 -13
- 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 +3 -16
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/icon/icon-categories.d.ts +2 -0
- package/dist/components/content/icon/icon-categories.d.ts.map +1 -0
- package/dist/components/content/icon/icon-categories.js +454 -0
- package/dist/components/content/icon/icon-categories.js.map +1 -0
- package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
- package/dist/components/content/identity/identity.styles.js +3 -0
- package/dist/components/content/identity/identity.styles.js.map +1 -1
- package/dist/components/content/image/image.d.ts +9 -9
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +9 -17
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +11 -8
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +2 -7
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +15 -14
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +18 -25
- 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 +3 -1
- package/dist/components/content/tag/tag.styles.js.map +1 -1
- package/dist/components/content/term/term.d.ts +6 -5
- package/dist/components/content/term/term.d.ts.map +1 -1
- package/dist/components/content/term/term.js +2 -10
- package/dist/components/content/term/term.js.map +1 -1
- package/dist/components/content/text/text.d.ts +8 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +11 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +7 -8
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +3 -1
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +3 -1
- 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 +7 -19
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/token/token.d.ts +9 -6
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +7 -14
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +1 -1
- package/dist/components/content/token/token.template.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +2 -1
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +5 -6
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +2 -11
- package/dist/components/forms/form-field/form-field.js.map +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 +8 -0
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.template.js +1 -1
- package/dist/components/forms/form-field/form-field.template.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +12 -4
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +2 -9
- package/dist/components/forms/validation-list/validation-list.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 +2 -0
- package/dist/components/forms/validation-list/validation-list.styles.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +1 -0
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- 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 -1
- 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 +1 -0
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +7 -4
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +2 -10
- package/dist/components/inputs/combo-box/combo-box.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 +1 -0
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +26 -5
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +11 -21
- package/dist/components/inputs/date-field/date-field.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 +1 -12
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +128 -62
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +19 -1
- package/dist/components/inputs/date-picker/date-picker.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 +3 -8
- package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +2 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +7 -7
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +75 -5
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +2 -10
- package/dist/components/inputs/file-field/file-field.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 +6 -9
- 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 +1 -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.d.ts +16 -8
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +18 -19
- package/dist/components/inputs/number-field/number-field.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 +30 -12
- package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.template.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.template.js +34 -25
- package/dist/components/inputs/number-field/number-field.template.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +6 -4
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js +30 -15
- package/dist/components/inputs/one-time-code-field/one-time-code-field.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 +1 -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.d.ts +11 -5
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +2 -10
- package/dist/components/inputs/password-field/password-field.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 +1 -0
- package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
- 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 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +7 -5
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +2 -11
- package/dist/components/inputs/search-field/search-field.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 +1 -0
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +3 -3
- package/dist/components/inputs/segmented-control/segmented-control.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 +3 -4
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/slider/slider.d.ts +7 -5
- package/dist/components/inputs/slider/slider.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.js +2 -10
- package/dist/components/inputs/slider/slider.js.map +1 -1
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.styles.js +1 -0
- package/dist/components/inputs/slider/slider.styles.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts +9 -5
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +2 -11
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +20 -23
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.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.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +1 -0
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- 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 -1
- package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +16 -10
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +2 -15
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.js +6 -3
- package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.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 +7 -20
- 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 +1 -0
- package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +16 -5
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +5 -18
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +18 -4
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +15 -8
- package/dist/components/inputs/time-picker/time-picker.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 +1 -0
- package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +7 -2
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +11 -2
- package/dist/components/inputs/toggle-button/toggle-button.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 +1 -0
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +0 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +6 -10
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +8 -12
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +13 -4
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +2 -9
- package/dist/components/inputs/token-field/token-field.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 +3 -2
- package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +6 -9
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +2 -1
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +7 -4
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +2 -10
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +1 -0
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/kanban/kanban.d.ts +9 -12
- package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.styles.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.styles.js +2 -7
- package/dist/components/layout/kanban/kanban.styles.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +15 -6
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +30 -12
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +2 -1
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +5 -4
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +2 -12
- package/dist/components/layout/page-footer/page-footer.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 +2 -0
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +7 -7
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +13 -13
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +4 -5
- 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 +2 -10
- 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.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +25 -22
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +1 -1
- package/dist/components/layout/popover/popover.d.ts +5 -8
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +2 -14
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +5 -8
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +2 -14
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +23 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +26 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.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 +16 -3
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts +3 -5
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js +2 -11
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +32 -1
- 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 +35 -1
- 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 +16 -6
- 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.d.ts +18 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +21 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.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 +16 -6
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +13 -5
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +2 -11
- package/dist/components/lists-and-tables/list/list.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 +2 -9
- 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 +6 -9
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +4 -14
- package/dist/components/lists-and-tables/list-item/list-item.js.map +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 +2 -10
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +2 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +6 -9
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +2 -9
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +5 -4
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +15 -21
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +2 -0
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +9 -6
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +6 -14
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +15 -15
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +10 -9
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +7 -10
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.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 +2 -10
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +6 -9
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.js +2 -10
- package/dist/components/navigation/link/link.styles.js.map +1 -1
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +2 -1
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +3 -6
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.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 +2 -10
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts +9 -4
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +2 -9
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +4 -7
- package/dist/components/navigation/skip-link/skip-link.d.ts.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 +6 -0
- package/dist/components/navigation/skip-link/skip-link.styles.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.js +2 -6
- package/dist/components/navigation/skip-link/skip-link.template.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +3 -6
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +25 -17
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +8 -11
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.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 +8 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +2 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +14 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +14 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +5 -4
- 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 +2 -9
- 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 +2 -7
- 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 -6
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +0 -5
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +5 -5
- package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +2 -10
- package/dist/components/status-and-feedback/banner/banner.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 +3 -6
- 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 +6 -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.d.ts +4 -7
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.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 +2 -10
- 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/notification/notification.d.ts +4 -7
- package/dist/components/status-and-feedback/notification/notification.d.ts.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 -2
- package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.js +5 -0
- package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +9 -6
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +3 -11
- 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 +6 -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.d.ts +8 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +2 -9
- package/dist/components/status-and-feedback/progress-circle/progress-circle.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/step-bar/step-bar.d.ts +12 -12
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +4 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.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 -15
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
- package/dist/css/rich-text.css +38 -40
- package/dist/css/text.css +2 -0
- package/dist/css/title.css +2 -0
- package/dist/css/variables.css +5 -1
- package/dist/nldd.min.js +1684 -1704
- package/dist/types/react.d.ts +79 -70
- package/dist/types/vue.d.ts +95 -85
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +20 -5
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/layout-pass.d.ts +3 -1
- package/dist/utilities/layout-pass.d.ts.map +1 -1
- package/dist/utilities/layout-pass.js +26 -3
- package/dist/utilities/layout-pass.js.map +1 -1
- package/dist/utilities/picker-popover-controller.d.ts +25 -0
- package/dist/utilities/picker-popover-controller.d.ts.map +1 -0
- package/dist/utilities/picker-popover-controller.js +33 -0
- package/dist/utilities/picker-popover-controller.js.map +1 -0
- package/dist/utilities/sanitize-url.d.ts +11 -5
- package/dist/utilities/sanitize-url.d.ts.map +1 -1
- package/dist/utilities/sanitize-url.js +13 -9
- package/dist/utilities/sanitize-url.js.map +1 -1
- package/dist/utilities/with-translations.d.ts +14 -9
- package/dist/utilities/with-translations.d.ts.map +1 -1
- package/dist/utilities/with-translations.js +6 -5
- package/dist/utilities/with-translations.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/fix.js +6 -3
- package/package.json +1 -1
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +0 -7
- package/dist/cdn/chunks/translations-1C8iw2u1.js +0 -14
- package/dist/cdn/chunks/with-translations-CaLhynTn.js +0 -16
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
import { inheritedTextReset } from '../../../assets/styles/shadow-resets.js';
|
|
2
|
+
import { inheritedTextReset, visuallyHidden } from '../../../assets/styles/shadow-resets.js';
|
|
3
|
+
import { wrapCodeText, wrapUiText } from '../../../assets/styles/text-wrap.js';
|
|
3
4
|
export const fileFieldStyles = css `
|
|
4
5
|
:host {
|
|
5
6
|
box-sizing: border-box;
|
|
@@ -52,6 +53,7 @@ export const fileFieldStyles = css `
|
|
|
52
53
|
|
|
53
54
|
${inheritedTextReset}
|
|
54
55
|
display: block;
|
|
56
|
+
isolation: isolate;
|
|
55
57
|
width: var(--_file-field-width);
|
|
56
58
|
max-width: 100%;
|
|
57
59
|
min-width: 0;
|
|
@@ -241,7 +243,7 @@ export const fileFieldStyles = css `
|
|
|
241
243
|
.file-field__text {
|
|
242
244
|
padding-block: var(--primitives-space-8);
|
|
243
245
|
white-space: normal;
|
|
244
|
-
|
|
246
|
+
${wrapUiText}
|
|
245
247
|
text-wrap: balance;
|
|
246
248
|
}
|
|
247
249
|
|
|
@@ -430,7 +432,7 @@ export const fileFieldStyles = css `
|
|
|
430
432
|
:is(.file-field__name, .file-field__folder).is-wrapped {
|
|
431
433
|
display: block;
|
|
432
434
|
white-space: normal;
|
|
433
|
-
|
|
435
|
+
${wrapCodeText}
|
|
434
436
|
text-wrap: balance;
|
|
435
437
|
}
|
|
436
438
|
|
|
@@ -452,12 +454,7 @@ export const fileFieldStyles = css `
|
|
|
452
454
|
|
|
453
455
|
.file-field__full-name,
|
|
454
456
|
.file-field__status {
|
|
455
|
-
|
|
456
|
-
width: 1px;
|
|
457
|
-
height: 1px;
|
|
458
|
-
clip-path: inset(50%);
|
|
459
|
-
white-space: nowrap;
|
|
460
|
-
overflow: hidden;
|
|
457
|
+
${visuallyHidden}
|
|
461
458
|
}
|
|
462
459
|
|
|
463
460
|
.file-field__name-start {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/file-field/file-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"file-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/file-field/file-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAE/E,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkD9B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgMlB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6LV,YAAY;;;;;;;;;;;;;;;;;;;;;;IAsBZ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4JjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-line-text-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"multi-line-text-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,wBAAwB,yBA0LpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-line-text-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;IAsBvC,kBAAkB
|
|
1
|
+
{"version":3,"file":"multi-line-text-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;IAsBvC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoKrB,CAAC"}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* @element nldd-number-field
|
|
7
7
|
* @keywords getal
|
|
8
8
|
* @related nldd-slider, nldd-stepper
|
|
9
|
+
* @attr {'end'|'split'|'none'} spin-buttons - Where the decrement and increment buttons go: 'end' (the default) puts them side by side at the end, so the value lines up at the start with the other fields in a form; 'split' puts decrement at the start and increment at the end, with the value centered between them, for a short counter such as a quantity; 'none' leaves them out.
|
|
9
10
|
* @attr {'sm'|'md'} size - Size: 'sm' | 'md' (default: 'md')
|
|
10
11
|
* @attr {string} width - Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px')
|
|
11
12
|
* @attr {string} accessible-label - Accessible label (aria-label) forwarded to the native input
|
|
12
|
-
* @attr {boolean} hide-spin-buttons - When set, hides the decrement and increment buttons
|
|
13
13
|
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
14
14
|
* @attr {string} name - Name for form submission
|
|
15
15
|
* @attr {number} value - Current value. Leave it out for an empty field, which submits an empty string and takes `min` and `max` as no reason to be invalid: only `required` asks for a value, as with a native number input. As a property, `null` is empty. In an empty field + and - are both enabled, and start at 0, or at the nearer end of the range when 0 lies outside it (`min="1"` starts at 1).
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
* @attr {number} max - Maximum value (default: Infinity)
|
|
18
18
|
* @attr {number} step - Step size (default: 1)
|
|
19
19
|
* @attr {boolean} required - A value has to be filled in. An empty field is then invalid.
|
|
20
|
-
* @attr {boolean}
|
|
20
|
+
* @attr {boolean} readonly - Readonly state: the value shows and submits but cannot be changed. The +/- buttons are hidden, and the field keeps its width
|
|
21
|
+
* @attr {boolean} disabled - Disabled state. The +/- buttons are hidden, and the field keeps its width
|
|
21
22
|
* @attr {object} translations - Translations; unspecified keys fall back to Dutch
|
|
22
23
|
*
|
|
23
24
|
* @fires input - When the value changes (typing, +/- button, or on-commit correction); not for typing that reads as the same number, such as `1.0` after `1`. detail: { value: number | null }, null when the field is empty
|
|
@@ -25,11 +26,19 @@
|
|
|
25
26
|
*/
|
|
26
27
|
import { LitElement } from 'lit';
|
|
27
28
|
import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
28
|
-
import type { NLDDNumberFieldTranslations } from './number-field.i18n.js';
|
|
29
29
|
import './../../actions/icon-button/icon-button.js';
|
|
30
30
|
import './../../content/icon/icon.js';
|
|
31
31
|
export type NumberFieldSize = 'sm' | 'md';
|
|
32
|
-
|
|
32
|
+
export type NumberFieldSpinButtons = 'end' | 'split' | 'none';
|
|
33
|
+
declare const NLDDNumberField_base: typeof LitElement & (abstract new (...args: any[]) => import("../../../utilities/with-translations.js").WithTranslations<{
|
|
34
|
+
'components.number-field.decrement-action': string;
|
|
35
|
+
'components.number-field.increment-action': string;
|
|
36
|
+
'components.number-field.to-adjust-value-action': string;
|
|
37
|
+
}>) & (abstract new (...args: any[]) => LitElement & import("../../../utilities/with-translations.js").WithTranslations<{
|
|
38
|
+
'components.number-field.decrement-action': string;
|
|
39
|
+
'components.number-field.increment-action': string;
|
|
40
|
+
'components.number-field.to-adjust-value-action': string;
|
|
41
|
+
}> & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement) & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
|
|
33
42
|
export declare class NLDDNumberField extends NLDDNumberField_base {
|
|
34
43
|
static styles: import("lit").CSSResult;
|
|
35
44
|
static formProperties: string[];
|
|
@@ -42,12 +51,12 @@ export declare class NLDDNumberField extends NLDDNumberField_base {
|
|
|
42
51
|
/** Counts for the implicit-submission rule: a single-line field where Enter
|
|
43
52
|
* would submit the form. See utilities/implicit-submission.ts. */
|
|
44
53
|
static blocksImplicitSubmission: boolean;
|
|
54
|
+
spinButtons: NumberFieldSpinButtons;
|
|
45
55
|
size: NumberFieldSize;
|
|
46
56
|
/** Width mode: 'full' (stretch to container) or any CSS length. */
|
|
47
57
|
width: string;
|
|
48
58
|
/** Accessible label forwarded as aria-label to the native input. */
|
|
49
59
|
accessibleLabel: string;
|
|
50
|
-
hideSpinButtons: boolean;
|
|
51
60
|
/**
|
|
52
61
|
* Marks the control as invalid.
|
|
53
62
|
*
|
|
@@ -66,9 +75,9 @@ export declare class NLDDNumberField extends NLDDNumberField_base {
|
|
|
66
75
|
step: number;
|
|
67
76
|
/** A value has to be filled in. An empty field is then invalid. */
|
|
68
77
|
required: boolean;
|
|
78
|
+
/** The value shows and submits but cannot be changed; the +/- buttons are hidden. */
|
|
79
|
+
readonly: boolean;
|
|
69
80
|
disabled: boolean;
|
|
70
|
-
/** Override one or more translation keys. Unspecified keys fall back to Dutch. */
|
|
71
|
-
translations: Partial<NLDDNumberFieldTranslations>;
|
|
72
81
|
/** The value last committed or set from outside: what `change` compares with.
|
|
73
82
|
* Typing already moves `value`, so comparing with that would leave a typed
|
|
74
83
|
* number without its `change`. */
|
|
@@ -82,7 +91,6 @@ export declare class NLDDNumberField extends NLDDNumberField_base {
|
|
|
82
91
|
formResetCallback(): void;
|
|
83
92
|
formStateRestoreCallback(state: FormValue, mode?: 'restore' | 'autocomplete'): void;
|
|
84
93
|
private _clampValue;
|
|
85
|
-
_t(key: keyof NLDDNumberFieldTranslations): string;
|
|
86
94
|
_handleDecrease(): void;
|
|
87
95
|
_handleIncrease(): void;
|
|
88
96
|
/** Where + and - begin in an empty field: 0, or the nearer end of the range. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.ts"],"names":[],"mappings":"AAAA
|
|
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AAI;IAoBtD,SAAS,IAAI,SAAS;IAI/B,mEAAmE;IAC1D,iBAAiB,IAAI,IAAI;IAKzB,wBAAwB,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,cAAc,GAAG,IAAI;IAK5F,OAAO,CAAC,WAAW;IAMZ,eAAe,IAAI,IAAI;IAKvB,eAAe,IAAI,IAAI;IAK9B,gFAAgF;IAChF,OAAO,CAAC,WAAW;IAInB,mGAAmG;IACnG;kDAC8C;IACvC,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAItC,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAcnC,8EAA8E;IACvE,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IASpC,OAAO,CAAC,YAAY;IA4BpB,OAAO,CAAC,MAAM;IAId;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAKnC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,mBAAmB,EAAE,eAAe,CAAC;KACrC;CACD"}
|
|
@@ -12,10 +12,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
12
12
|
* @element nldd-number-field
|
|
13
13
|
* @keywords getal
|
|
14
14
|
* @related nldd-slider, nldd-stepper
|
|
15
|
+
* @attr {'end'|'split'|'none'} spin-buttons - Where the decrement and increment buttons go: 'end' (the default) puts them side by side at the end, so the value lines up at the start with the other fields in a form; 'split' puts decrement at the start and increment at the end, with the value centered between them, for a short counter such as a quantity; 'none' leaves them out.
|
|
15
16
|
* @attr {'sm'|'md'} size - Size: 'sm' | 'md' (default: 'md')
|
|
16
17
|
* @attr {string} width - Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px')
|
|
17
18
|
* @attr {string} accessible-label - Accessible label (aria-label) forwarded to the native input
|
|
18
|
-
* @attr {boolean} hide-spin-buttons - When set, hides the decrement and increment buttons
|
|
19
19
|
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
20
20
|
* @attr {string} name - Name for form submission
|
|
21
21
|
* @attr {number} value - Current value. Leave it out for an empty field, which submits an empty string and takes `min` and `max` as no reason to be invalid: only `required` asks for a value, as with a native number input. As a property, `null` is empty. In an empty field + and - are both enabled, and start at 0, or at the nearer end of the range when 0 lies outside it (`min="1"` starts at 1).
|
|
@@ -23,7 +23,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
23
23
|
* @attr {number} max - Maximum value (default: Infinity)
|
|
24
24
|
* @attr {number} step - Step size (default: 1)
|
|
25
25
|
* @attr {boolean} required - A value has to be filled in. An empty field is then invalid.
|
|
26
|
-
* @attr {boolean}
|
|
26
|
+
* @attr {boolean} readonly - Readonly state: the value shows and submits but cannot be changed. The +/- buttons are hidden, and the field keeps its width
|
|
27
|
+
* @attr {boolean} disabled - Disabled state. The +/- buttons are hidden, and the field keeps its width
|
|
27
28
|
* @attr {object} translations - Translations; unspecified keys fall back to Dutch
|
|
28
29
|
*
|
|
29
30
|
* @fires input - When the value changes (typing, +/- button, or on-commit correction); not for typing that reads as the same number, such as `1.0` after `1`. detail: { value: number | null }, null when the field is empty
|
|
@@ -41,7 +42,7 @@ import { nlddNumberFieldTranslations } from './number-field.i18n.js';
|
|
|
41
42
|
import './../../actions/icon-button/icon-button.js';
|
|
42
43
|
import './../../content/icon/icon.js';
|
|
43
44
|
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
44
|
-
import {
|
|
45
|
+
import { withTranslations } from '../../../utilities/with-translations.js';
|
|
45
46
|
import { deferFocus } from '../../../utilities/defer-focus.js';
|
|
46
47
|
/** A number as a native number input accepts it: no hex, no Infinity. Above
|
|
47
48
|
* the class: an element already in the page upgrades while the class is
|
|
@@ -55,15 +56,15 @@ function emptyOrNumber(value) {
|
|
|
55
56
|
const parsed = Number(text);
|
|
56
57
|
return Number.isFinite(parsed) ? parsed : null;
|
|
57
58
|
}
|
|
58
|
-
let NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(LitElement)) {
|
|
59
|
+
let NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(withTranslations(LitElement, nlddNumberFieldTranslations))) {
|
|
59
60
|
constructor() {
|
|
60
61
|
super(...arguments);
|
|
62
|
+
this.spinButtons = 'end';
|
|
61
63
|
this.size = 'md';
|
|
62
64
|
/** Width mode: 'full' (stretch to container) or any CSS length. */
|
|
63
65
|
this.width = '';
|
|
64
66
|
/** Accessible label forwarded as aria-label to the native input. */
|
|
65
67
|
this.accessibleLabel = '';
|
|
66
|
-
this.hideSpinButtons = false;
|
|
67
68
|
/**
|
|
68
69
|
* Marks the control as invalid.
|
|
69
70
|
*
|
|
@@ -82,9 +83,9 @@ let NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(L
|
|
|
82
83
|
this.step = 1;
|
|
83
84
|
/** A value has to be filled in. An empty field is then invalid. */
|
|
84
85
|
this.required = false;
|
|
86
|
+
/** The value shows and submits but cannot be changed; the +/- buttons are hidden. */
|
|
87
|
+
this.readonly = false;
|
|
85
88
|
this.disabled = false;
|
|
86
|
-
/** Override one or more translation keys. Unspecified keys fall back to Dutch. */
|
|
87
|
-
this.translations = {};
|
|
88
89
|
/** The value last committed or set from outside: what `change` compares with.
|
|
89
90
|
* Typing already moves `value`, so comparing with that would leave a typed
|
|
90
91
|
* number without its `change`. */
|
|
@@ -129,18 +130,14 @@ let NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(L
|
|
|
129
130
|
if (this.value !== null)
|
|
130
131
|
this.value = this._clamp(this.value);
|
|
131
132
|
}
|
|
132
|
-
// — i18n —————————————————————————————————————————————————————————————————
|
|
133
|
-
_t(key) {
|
|
134
|
-
return translate(this.translations, nlddNumberFieldTranslations, key);
|
|
135
|
-
}
|
|
136
133
|
// — Actions ——————————————————————————————————————————————————————————————
|
|
137
134
|
_handleDecrease() {
|
|
138
|
-
if (this.disabled)
|
|
135
|
+
if (this.disabled || this.readonly)
|
|
139
136
|
return;
|
|
140
137
|
this._commitValue(this.value === null ? this._startValue() : this.value - this.step);
|
|
141
138
|
}
|
|
142
139
|
_handleIncrease() {
|
|
143
|
-
if (this.disabled)
|
|
140
|
+
if (this.disabled || this.readonly)
|
|
144
141
|
return;
|
|
145
142
|
this._commitValue(this.value === null ? this._startValue() : this.value + this.step);
|
|
146
143
|
}
|
|
@@ -155,6 +152,7 @@ let NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(L
|
|
|
155
152
|
submitOnEnter(this, e);
|
|
156
153
|
}
|
|
157
154
|
_handleInput(e) {
|
|
155
|
+
e.stopPropagation();
|
|
158
156
|
if (this.disabled)
|
|
159
157
|
return;
|
|
160
158
|
const input = e.target;
|
|
@@ -171,6 +169,7 @@ let NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(L
|
|
|
171
169
|
}
|
|
172
170
|
/** Fires on blur or Enter. Clamps the value; an emptied field stays empty. */
|
|
173
171
|
_handleChange(e) {
|
|
172
|
+
e.stopPropagation();
|
|
174
173
|
if (this.disabled)
|
|
175
174
|
return;
|
|
176
175
|
const input = e.target;
|
|
@@ -235,6 +234,9 @@ NLDDNumberField.isTextEntry = true;
|
|
|
235
234
|
/** Counts for the implicit-submission rule: a single-line field where Enter
|
|
236
235
|
* would submit the form. See utilities/implicit-submission.ts. */
|
|
237
236
|
NLDDNumberField.blocksImplicitSubmission = true;
|
|
237
|
+
__decorate([
|
|
238
|
+
property({ reflect: true, attribute: 'spin-buttons', converter: reflectNonDefault('end') })
|
|
239
|
+
], NLDDNumberField.prototype, "spinButtons", void 0);
|
|
238
240
|
__decorate([
|
|
239
241
|
property({ reflect: true, converter: reflectNonDefault('md') })
|
|
240
242
|
], NLDDNumberField.prototype, "size", void 0);
|
|
@@ -244,9 +246,6 @@ __decorate([
|
|
|
244
246
|
__decorate([
|
|
245
247
|
property({ type: String, attribute: 'accessible-label' })
|
|
246
248
|
], NLDDNumberField.prototype, "accessibleLabel", void 0);
|
|
247
|
-
__decorate([
|
|
248
|
-
property({ type: Boolean, reflect: true, attribute: 'hide-spin-buttons' })
|
|
249
|
-
], NLDDNumberField.prototype, "hideSpinButtons", void 0);
|
|
250
249
|
__decorate([
|
|
251
250
|
property({ type: Boolean, reflect: true })
|
|
252
251
|
], NLDDNumberField.prototype, "invalid", void 0);
|
|
@@ -270,10 +269,10 @@ __decorate([
|
|
|
270
269
|
], NLDDNumberField.prototype, "required", void 0);
|
|
271
270
|
__decorate([
|
|
272
271
|
property({ type: Boolean, reflect: true })
|
|
273
|
-
], NLDDNumberField.prototype, "
|
|
272
|
+
], NLDDNumberField.prototype, "readonly", void 0);
|
|
274
273
|
__decorate([
|
|
275
|
-
property({ type:
|
|
276
|
-
], NLDDNumberField.prototype, "
|
|
274
|
+
property({ type: Boolean, reflect: true })
|
|
275
|
+
], NLDDNumberField.prototype, "disabled", void 0);
|
|
277
276
|
NLDDNumberField = __decorate([
|
|
278
277
|
customElement('nldd-number-field')
|
|
279
278
|
], NLDDNumberField);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"number-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;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,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C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ACX;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACZ;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAClB;AAIT;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AAIjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AArEL,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAkN3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"number-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,yBAmJ7B,CAAC"}
|
|
@@ -35,10 +35,6 @@ export const numberFieldStyles = css `
|
|
|
35
35
|
pointer-events: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
:host([disabled]) nldd-icon-button {
|
|
39
|
-
opacity: 1;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
38
|
:host {
|
|
43
39
|
width: var(--_number-field-width);
|
|
44
40
|
max-width: 100%;
|
|
@@ -68,6 +64,11 @@ export const numberFieldStyles = css `
|
|
|
68
64
|
align-items: center;
|
|
69
65
|
}
|
|
70
66
|
|
|
67
|
+
:host([readonly]) .number-field {
|
|
68
|
+
border-color: var(--semantics-input-fields-is-read-only-border-color);
|
|
69
|
+
background-color: var(--semantics-input-fields-is-read-only-background-color);
|
|
70
|
+
}
|
|
71
|
+
|
|
71
72
|
.number-field:has(.number-field__input:focus-visible) {
|
|
72
73
|
outline: var(--semantics-focus-ring-outline);
|
|
73
74
|
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
@@ -88,12 +89,24 @@ export const numberFieldStyles = css `
|
|
|
88
89
|
--context-control-corner-radius: var(--_number-field-nested-control-corner-radius);
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
.
|
|
92
|
-
|
|
92
|
+
/* Hidden, not removed: the field keeps its width when it turns readonly or disabled. */
|
|
93
|
+
:host(:is([readonly], [disabled])) :is(.number-field__decrement-button, .number-field__increment-button) {
|
|
94
|
+
visibility: hidden;
|
|
93
95
|
}
|
|
94
96
|
|
|
95
|
-
.number-
|
|
96
|
-
|
|
97
|
+
.number-field__spin-buttons {
|
|
98
|
+
display: flex;
|
|
99
|
+
height: 100%;
|
|
100
|
+
padding-inline-end: var(--_number-field-spin-button-padding);
|
|
101
|
+
gap: var(--_number-field-spin-button-padding);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host([spin-buttons="split"]) .number-field__decrement-button {
|
|
105
|
+
padding-inline-start: var(--_number-field-spin-button-padding);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:host([spin-buttons="split"]) .number-field__increment-button {
|
|
109
|
+
padding-inline-end: var(--_number-field-spin-button-padding);
|
|
97
110
|
}
|
|
98
111
|
|
|
99
112
|
.number-field__input {
|
|
@@ -103,10 +116,11 @@ export const numberFieldStyles = css `
|
|
|
103
116
|
border: none;
|
|
104
117
|
background: transparent;
|
|
105
118
|
min-width: 0;
|
|
106
|
-
padding: 0
|
|
119
|
+
padding-block: 0;
|
|
120
|
+
padding-inline: var(--_number-field-inline-padding) var(--primitives-space-6);
|
|
107
121
|
align-self: stretch;
|
|
108
122
|
flex-grow: 1;
|
|
109
|
-
text-align:
|
|
123
|
+
text-align: start;
|
|
110
124
|
--context-content-color: var(--semantics-content-color);
|
|
111
125
|
color: var(--semantics-content-color);
|
|
112
126
|
font: var(--_number-field-text-font);
|
|
@@ -123,10 +137,14 @@ export const numberFieldStyles = css `
|
|
|
123
137
|
-webkit-appearance: none;
|
|
124
138
|
}
|
|
125
139
|
|
|
126
|
-
:host([
|
|
140
|
+
:host([spin-buttons="split"]) .number-field__input {
|
|
141
|
+
padding: 0 var(--primitives-space-6);
|
|
142
|
+
text-align: center;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:host([spin-buttons="none"]) .number-field__input {
|
|
127
146
|
min-width: var(--primitives-space-80);
|
|
128
147
|
padding-inline: var(--_number-field-inline-padding);
|
|
129
|
-
text-align: left;
|
|
130
148
|
}
|
|
131
149
|
|
|
132
150
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;IAiBhC,kBAAkB
|
|
1
|
+
{"version":3,"file":"number-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;IAiBhC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkIrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,4CAA4C,CAAC;AAEpD,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,eAAe,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"number-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,4CAA4C,CAAC;AAEpD,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,eAAe,GAAG,cAAc,CAgE9E"}
|
|
@@ -1,29 +1,43 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
2
|
import './../../actions/icon-button/icon-button.js';
|
|
3
3
|
export function numberFieldTemplate(component) {
|
|
4
|
-
const { value } = component;
|
|
4
|
+
const { value, spinButtons } = component;
|
|
5
5
|
const empty = value === null;
|
|
6
6
|
const canDecrease = value === null || value > component.min;
|
|
7
7
|
const canIncrease = value === null || value < component.max;
|
|
8
8
|
const iconButtonSize = component.size === 'sm' ? 'xs' : 'sm';
|
|
9
|
+
const decrement = html `
|
|
10
|
+
<div class="number-field__decrement-button">
|
|
11
|
+
<nldd-icon-button
|
|
12
|
+
appearance="neutral-tinted"
|
|
13
|
+
size=${iconButtonSize}
|
|
14
|
+
icon="minus"
|
|
15
|
+
text=${component._t('components.number-field.decrement-action')}
|
|
16
|
+
tooltip-timing="never"
|
|
17
|
+
?disabled=${component.disabled || component.readonly || !canDecrease}
|
|
18
|
+
@click=${component._handleDecrease}
|
|
19
|
+
></nldd-icon-button>
|
|
20
|
+
</div>
|
|
21
|
+
`;
|
|
22
|
+
const increment = html `
|
|
23
|
+
<div class="number-field__increment-button">
|
|
24
|
+
<nldd-icon-button
|
|
25
|
+
appearance="neutral-tinted"
|
|
26
|
+
size=${iconButtonSize}
|
|
27
|
+
icon="plus"
|
|
28
|
+
text=${component._t('components.number-field.increment-action')}
|
|
29
|
+
tooltip-timing="never"
|
|
30
|
+
?disabled=${component.disabled || component.readonly || !canIncrease}
|
|
31
|
+
@click=${component._handleIncrease}
|
|
32
|
+
></nldd-icon-button>
|
|
33
|
+
</div>
|
|
34
|
+
`;
|
|
9
35
|
return html `
|
|
10
36
|
<div class="number-field"
|
|
11
37
|
role="group"
|
|
12
38
|
aria-label=${component._t('components.number-field.to-adjust-value-action')}
|
|
13
39
|
>
|
|
14
|
-
${
|
|
15
|
-
<div class="number-field__decrement-button">
|
|
16
|
-
<nldd-icon-button
|
|
17
|
-
appearance="neutral-tinted"
|
|
18
|
-
size=${iconButtonSize}
|
|
19
|
-
icon="minus"
|
|
20
|
-
text=${component._t('components.number-field.decrement-action')}
|
|
21
|
-
tooltip-timing="never"
|
|
22
|
-
?disabled=${component.disabled || !canDecrease}
|
|
23
|
-
@click=${component._handleDecrease}
|
|
24
|
-
></nldd-icon-button>
|
|
25
|
-
</div>
|
|
26
|
-
` : nothing}
|
|
40
|
+
${spinButtons === 'split' ? decrement : nothing}
|
|
27
41
|
<input class="number-field__input"
|
|
28
42
|
type="number"
|
|
29
43
|
inputmode=${Number.isInteger(component.step) ? 'numeric' : 'decimal'}
|
|
@@ -33,23 +47,18 @@ export function numberFieldTemplate(component) {
|
|
|
33
47
|
max=${Number.isFinite(component.max) ? component.max : nothing}
|
|
34
48
|
step=${component.step}
|
|
35
49
|
?disabled=${component.disabled}
|
|
50
|
+
?readonly=${component.readonly}
|
|
36
51
|
?required=${component.required}
|
|
37
52
|
name=${component.name || nothing}
|
|
38
53
|
@keydown=${component._handleKeydown}
|
|
39
54
|
@input=${component._handleInput}
|
|
40
55
|
@change=${component._handleChange}
|
|
41
56
|
>
|
|
42
|
-
${
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
icon="plus"
|
|
48
|
-
text=${component._t('components.number-field.increment-action')}
|
|
49
|
-
tooltip-timing="never"
|
|
50
|
-
?disabled=${component.disabled || !canIncrease}
|
|
51
|
-
@click=${component._handleIncrease}
|
|
52
|
-
></nldd-icon-button>
|
|
57
|
+
${spinButtons === 'split' ? increment : nothing}
|
|
58
|
+
${spinButtons !== 'split' && spinButtons !== 'none' ? html `
|
|
59
|
+
<div class="number-field__spin-buttons">
|
|
60
|
+
${decrement}
|
|
61
|
+
${increment}
|
|
53
62
|
</div>
|
|
54
63
|
` : nothing}
|
|
55
64
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,4CAA4C,CAAC;AAEpD,MAAM,UAAU,mBAAmB,CAAC,SAA0B;IAC7D,MAAM,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"number-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,4CAA4C,CAAC;AAEpD,MAAM,UAAU,mBAAmB,CAAC,SAA0B;IAC7D,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC;IACzC,MAAM,KAAK,GAAG,KAAK,KAAK,IAAI,CAAC;IAC7B,MAAM,WAAW,GAAG,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC;IAC5D,MAAM,WAAW,GAAG,KAAK,KAAK,IAAI,IAAI,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,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;WACvB,SAAS,CAAC,IAAI,IAAI,OAAO;eACrB,SAAS,CAAC,cAAc;aAC1B,SAAS,CAAC,YAAY;cACrB,SAAS,CAAC,aAAa;;KAEhC,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;KAC7C,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA;;OAEtD,SAAS;OACT,SAAS;;IAEZ,CAAC,CAAC,CAAC,OAAO;;EAEZ,CAAC;AACH,CAAC"}
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
* @keywords otp, pin, verification code, eenmalige code, verificatiecode
|
|
30
30
|
* @related nldd-password-field
|
|
31
31
|
*
|
|
32
|
+
* @attr {number} length - How many characters the code has (default: 6).
|
|
33
|
+
* @attr {string} format - The shape of a code that is printed in groups, such as '###-###' or '#### ####': each `#` is a box, anything else a separator you see but a screen reader does not hear. The number of `#` is then the length, so `format` wins over `length`. The value never holds a separator: '123-234' is submitted as '123234'. Leave it out for a code without groups, as most codes from a text message are.
|
|
32
34
|
* @attr {'sm'|'md'|'lg'} size - 'sm' | 'md' (default) | 'lg'. 'lg' has boxes 56px tall with larger characters, for a page where the code is the only thing to do, such as signing in. Where the boxes do not fit the width, the field steps down a size, to md and then sm: a code never wraps onto a second line. Where not even sm fits, the field shows the code in a text field of its own size.
|
|
33
35
|
* @attr {boolean} centered - Puts the boxes in the middle of the row, as on a sign-in page where the code is the only field. The field keeps the full width of the row, so it still sees when the boxes no longer fit and steps down a size; centering it from outside, with the alignment of its parent, would shrink it to its boxes and take that away.
|
|
34
36
|
* @attr {string} accessible-label - Accessible label forwarded to the inner input. Set automatically by nldd-form-field.
|
|
@@ -38,8 +40,6 @@
|
|
|
38
40
|
* @attr {string} input-id - Sets the id on the native input. Set automatically by nldd-form-field.
|
|
39
41
|
* @attr {string} value - The code
|
|
40
42
|
* @attr {'numeric'|'alphanumeric'} type - What the code holds: 'numeric' (default, digits only, raises the number keyboard) | 'alphanumeric' (letters and digits)
|
|
41
|
-
* @attr {number} length - How many characters the code has (default: 6).
|
|
42
|
-
* @attr {string} format - The shape of a code that is printed in groups, such as '###-###' or '#### ####': each `#` is a box, anything else a separator you see but a screen reader does not hear. The number of `#` is then the length, so `format` wins over `length`. The value never holds a separator: '123-234' is submitted as '123234'. Leave it out for a code without groups, as most codes from a text message are.
|
|
43
43
|
* @attr {boolean} required - Required state. A code that is not complete counts as invalid too.
|
|
44
44
|
* @attr {boolean} readonly - Readonly state
|
|
45
45
|
* @attr {boolean} disabled - Disabled state
|
|
@@ -81,6 +81,8 @@ export declare class NLDDOneTimeCodeField extends NLDDOneTimeCodeField_base {
|
|
|
81
81
|
/** Counts for the implicit-submission rule: a single-line field where Enter
|
|
82
82
|
* would submit the form. See utilities/implicit-submission.ts. */
|
|
83
83
|
static blocksImplicitSubmission: boolean;
|
|
84
|
+
length: number;
|
|
85
|
+
format: string;
|
|
84
86
|
size: OneTimeCodeSize;
|
|
85
87
|
centered: boolean;
|
|
86
88
|
/** Accessible label forwarded to the inner <input>. Set automatically by nldd-form-field. */
|
|
@@ -91,8 +93,6 @@ export declare class NLDDOneTimeCodeField extends NLDDOneTimeCodeField_base {
|
|
|
91
93
|
inputId: string;
|
|
92
94
|
value: string;
|
|
93
95
|
type: OneTimeCodeType;
|
|
94
|
-
length: number;
|
|
95
|
-
format: string;
|
|
96
96
|
required: boolean;
|
|
97
97
|
readonly: boolean;
|
|
98
98
|
disabled: boolean;
|
|
@@ -185,6 +185,8 @@ export declare class NLDDOneTimeCodeField extends NLDDOneTimeCodeField_base {
|
|
|
185
185
|
* the caret on.
|
|
186
186
|
*/
|
|
187
187
|
_handleBeforeInput(e: InputEvent): void;
|
|
188
|
+
/** Empties the box the caret is in, or the one before it when it is already empty. */
|
|
189
|
+
private _deleteBackward;
|
|
188
190
|
/**
|
|
189
191
|
* As a text field the input edits like any other: select, move and delete
|
|
190
192
|
* where you like. Only what cannot be in the code is kept out, and a pasted
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-time-code-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/one-time-code-field/one-time-code-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAS7F,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,cAAc,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAOjD,8EAA8E;AAC9E,UAAU,SAAS;IAClB,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,CAAC;CACjB;AA4DD,0DAA0D;AAC1D,eAAO,MAAM,GAAG,eAAgB,CAAC;AAEjC,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,GAAG,MAAM,CAAC;;AAa7C,qBACa,oBAAqB,SAAQ,yBAAuC;IAChF,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF,OAAgB,MAAM,0BAA0B;IAEhD,MAAM,CAAC,cAAc,WAAa;IAElC;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAC1B;kFAC8E;IAC9E,MAAM,CAAC,WAAW,UAAQ;IAE1B;uEACmE;IACnE,MAAM,CAAC,wBAAwB,UAAQ;IAGvC,IAAI,EAAE,eAAe,CAAQ;IAG7B,QAAQ,UAAS;IAEjB,6FAA6F;IAE7F,eAAe,SAAM;IAGrB,SAAS,UAAS;IAGlB,OAAO,UAAS;IAGhB,IAAI,SAAM;IAGV,OAAO,SAAM;IAGb,KAAK,SAAM;IAGX,IAAI,EAAE,eAAe,CAAa;IAGlC,
|
|
1
|
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