@nldd/design-system 0.31.0 → 0.32.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/custom-elements.json +2036 -100
- package/dist/cdn/autoloader.js +139 -139
- package/dist/cdn/chunks/{accordion-D7VeSx-7.js → accordion-CLT6C7Ys.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-DjFnuCY9.js → accordion-item-DqkLuze7.js} +5 -5
- package/dist/cdn/chunks/{activity-indicator-nshVcQbZ.js → activity-indicator-DYgJcdQr.js} +7 -6
- package/dist/cdn/chunks/{admonition-BhYcjvcU.js → admonition-307OSenQ.js} +5 -5
- package/dist/cdn/chunks/{avatar-Dw9XZk73.js → avatar-DZx4eWGL.js} +7 -7
- package/dist/cdn/chunks/{avatar-group-B0ZliBMF.js → avatar-group-D0Z4Yu0y.js} +15 -15
- package/dist/cdn/chunks/{badge-2ObEfIYt.js → badge-Ez8ID47C.js} +6 -6
- package/dist/cdn/chunks/{banner-D9d_367R.js → banner-Cu1cwuLr.js} +9 -8
- package/dist/cdn/chunks/{bar-split-view-Cpq5j2Yd.js → bar-split-view-7bviCuBj.js} +52 -32
- package/dist/cdn/chunks/{blockquote-M372pBfW.js → blockquote-PCr0GO6z.js} +7 -7
- package/dist/cdn/chunks/{box-bpcNQSk1.js → box-BOZDuPmd.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-YBuCnLD2.js → breadcrumbs-CVXCsvXU.js} +6 -6
- package/dist/cdn/chunks/{button-BsJDVMS5.js → button-3Up7cEWx.js} +14 -10
- package/dist/cdn/chunks/{button-bar-C7WBKVht.js → button-bar-bK3oi0e-.js} +3 -3
- package/dist/cdn/chunks/{button-group-D3zUCJnu.js → button-group-DSBBqKvs.js} +2 -2
- package/dist/cdn/chunks/{card-BY2Fz35J.js → card-CH0xAbO6.js} +4 -4
- package/dist/cdn/chunks/{cell-DfQcb8oJ.js → cell-BwW6TV8v.js} +6 -6
- package/dist/cdn/chunks/{checkbox-BurSrNRq.js → checkbox-CYR3ChYP.js} +5 -5
- package/dist/cdn/chunks/{checkbox-field-jcCJRers.js → checkbox-field-D43DeCUk.js} +8 -8
- package/dist/cdn/chunks/{checkbox-group--6ifWQ_F.js → checkbox-group-BVr37vFn.js} +3 -3
- package/dist/cdn/chunks/{class-map-pfTGN6Lt.js → class-map-B9MjP-Ik.js} +1 -1
- package/dist/cdn/chunks/{code-editor-D6xQxxSm.js → code-editor-CGx_sn9q.js} +5 -5
- package/dist/cdn/chunks/{code-viewer-CsO0Hzkz.js → code-viewer-CyEZJm0a.js} +8 -8
- package/dist/cdn/chunks/{codemirror-input-Bu7mes2L.js → codemirror-input-BRShjOew.js} +5 -5
- package/dist/cdn/chunks/{collection-CLD0J381.js → collection-B3wQHswI.js} +8 -8
- package/dist/cdn/chunks/{combo-box-cC87aRbF.js → combo-box-UI2A1nHw.js} +9 -9
- package/dist/cdn/chunks/{container-Dcd-wtk5.js → container-GzgjWXSY.js} +3 -3
- package/dist/cdn/chunks/{custom-element-BPzCecdN.js → custom-element-CF94IDoN.js} +1 -1
- package/dist/cdn/chunks/{date-field-CfIXnk2K.js → date-field-BoAnSKOD.js} +12 -12
- package/dist/cdn/chunks/{date-picker-D4W0Be1y.js → date-picker-Dn80yrfN.js} +11 -11
- package/dist/cdn/chunks/{decorate-CNSW3HVY.js → decorate-DNdCDV-Z.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-BNEosRlm.js → described-by-mixin-6MEe_hOH.js} +2 -2
- package/dist/cdn/chunks/{description-cell-3zl0cEJE.js → description-cell-QR-as1SF.js} +7 -7
- package/dist/cdn/chunks/{dev-checks-sh4nGzvD.js → dev-checks-DlNQtR5p.js} +23 -18
- package/dist/cdn/chunks/{directive-helpers-C8_pU38P.js → directive-helpers-9JM8Li8K.js} +1 -1
- package/dist/cdn/chunks/{dist-DzvZLbav.js → dist-B5rtEAPd.js} +3 -3
- package/dist/cdn/chunks/{dist-D8GVh7JF.js → dist-BGxQOo33.js} +1 -1
- package/dist/cdn/chunks/{dist-DosCjwbX.js → dist-BKGDiUni.js} +2 -2
- package/dist/cdn/chunks/{dist-BMreXo8L.js → dist-BvZqEQHV.js} +2 -2
- package/dist/cdn/chunks/{dist-C0eqMXKG.js → dist-C6dhaR9M.js} +2 -2
- package/dist/cdn/chunks/{dist-BQhMIRwq.js → dist-CIp0mUeR.js} +3 -3
- package/dist/cdn/chunks/{dist-CYoggrc-.js → dist-DVm3azdM.js} +1 -1
- package/dist/cdn/chunks/{dist-DHJOmDf7.js → dist-Drahkxmv.js} +1 -1
- package/dist/cdn/chunks/{dist-UPMuGK3l.js → dist-Dtrv48QJ.js} +2 -2
- package/dist/cdn/chunks/{dist-BwkztXx2.js → dist-Duw9BWmb.js} +3 -3
- package/dist/cdn/chunks/{dist-DwGJ42jg.js → dist-QKanuZ5c.js} +2 -2
- package/dist/cdn/chunks/{dist-BA1lxpkp.js → dist-gCusBxjl.js} +4 -4
- package/dist/cdn/chunks/{dist-Du5XeaUH.js → dist-z3iYo2pQ.js} +3 -3
- package/dist/cdn/chunks/{divider-ja-sWdqK.js → divider-Dv0ZKI-0.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-CzlWDPeb.js → document-tab-bar-Dzp5ncIl.js} +9 -9
- package/dist/cdn/chunks/{dropdown-CDnfyMTi.js → dropdown-kVarufY1.js} +5 -5
- package/dist/cdn/chunks/{file-field-VGbq3duI.js → file-field-B0aEvinG.js} +14 -14
- package/dist/cdn/chunks/{form-EDk-AXxW.js → form-CvuALdyG.js} +1 -1
- package/dist/cdn/chunks/{form-actions-DJlOHVjC.js → form-actions-BPehBKcl.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-BDrjhoXJ.js → form-associated-mixin-BMdwBjn_.js} +29 -3
- package/dist/cdn/chunks/{form-field-DwfFYaIJ.js → form-field-B0pcB33o.js} +8 -8
- package/dist/cdn/chunks/{form-section-D5pvpU0g.js → form-section-DWlfhgMj.js} +3 -3
- package/dist/cdn/chunks/{full-bleed-section-B2lrxacX.js → full-bleed-section-4orVi9nk.js} +3 -3
- package/dist/cdn/chunks/{hero-8OBYFEcb.js → hero-DvG8bQx1.js} +155 -103
- package/dist/cdn/chunks/{icon-DZh6I8EN.js → icon-CoujQk37.js} +3 -3
- package/dist/cdn/chunks/{icon-button-Cfl9Uloz.js → icon-button-CghwJ1ZM.js} +10 -10
- package/dist/cdn/chunks/{icon-cell-BKxm4x3C.js → icon-cell-CB8JJxPx.js} +5 -5
- package/dist/cdn/chunks/{identity-D6mA_Ysl.js → identity-D7knBYp4.js} +7 -7
- package/dist/cdn/chunks/{if-defined-Laa7Mar_.js → if-defined-DogpZQqB.js} +1 -1
- package/dist/cdn/chunks/{image-BNQlE_4Z.js → image-Cabp3_Mm.js} +19 -14
- package/dist/cdn/chunks/{inline-dialog-5vpq_6bt.js → inline-dialog-BA1HLcgr.js} +8 -8
- package/dist/cdn/chunks/{just-in-time-education-C8uCzm2s.js → just-in-time-education-k1iYVZNa.js} +5 -5
- package/dist/cdn/chunks/{kanban-_aubAWTm.js → kanban-MhZkM6ah.js} +5 -5
- package/dist/cdn/chunks/{kanban-column-CmitV46A.js → kanban-column-EHsh2VXL.js} +4 -4
- package/dist/cdn/chunks/{keyboard-shortcut-DY96tl24.js → keyboard-shortcut-ClT66akm.js} +4 -4
- package/dist/cdn/chunks/{languages-B0lgBg4r.js → languages-ksBh8Hul.js} +12 -12
- package/dist/cdn/chunks/{link-CEyAJ_y7.js → link-B9gG-fEr.js} +6 -6
- package/dist/cdn/chunks/{link-group-DwnzL75g.js → link-group-C3Z_3TDw.js} +2 -2
- package/dist/cdn/chunks/{list-D-_Z5AED.js → list-BqJ_ucfa.js} +9 -9
- package/dist/cdn/chunks/{list-item-BqzGOqJl.js → list-item-DpQBn1El.js} +74 -73
- package/dist/cdn/chunks/{list-item-segment-Ct876W0e.js → list-item-segment-AVJcFdeh.js} +29 -28
- package/dist/cdn/chunks/{menu-BDLqu0jO.js → menu-CYxTNgBa.js} +10 -10
- package/dist/cdn/chunks/{menu-bar-DbCYdFuj.js → menu-bar-BcZ1EP6b.js} +13 -8
- package/dist/cdn/chunks/{menu-bar-item-CFfcPjci.js → menu-bar-item-D0UrqKlH.js} +7 -7
- package/dist/cdn/chunks/{menu-divider-DTzCjHnW.js → menu-divider-uvK-8rJG.js} +3 -3
- package/dist/cdn/chunks/{menu-group-rYPRHllx.js → menu-group-BIPjBdrU.js} +4 -4
- package/dist/cdn/chunks/{menu-item-CjzoSHHj.js → menu-item-DcBe9_qD.js} +4 -4
- package/dist/cdn/chunks/{menu.template-D7dG2HRa.js → menu.template-BFq905uv.js} +6 -6
- package/dist/cdn/chunks/{modal-dialog-Cjn3EHfN.js → modal-dialog-CXfPMsvc.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-B8DstPYy.js → multi-line-text-field-BLibOq1E.js} +6 -6
- package/dist/cdn/chunks/{navigation-split-view-BHM4b_Gb.js → navigation-split-view-jk6HesTp.js} +5 -5
- package/dist/cdn/chunks/{notification-CieKHgKd.js → notification-Bc53Pa5u.js} +7 -7
- package/dist/cdn/chunks/{number-field-CVYaConf.js → number-field-CYDiJ7CO.js} +38 -16
- package/dist/cdn/chunks/{one-half-one-half-section-aMdIJ_5N.js → one-half-one-half-section-DTTHJknv.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-Dalek6lE.js → one-third-two-thirds-section-C0YU3ss3.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-BxkICLRG.js → one-time-code-field-DsfKUJDd.js} +8 -8
- package/dist/cdn/chunks/{overflow-menu-GR6uppZW.js → overflow-menu-8GWanho5.js} +1 -1
- package/dist/cdn/chunks/{page-C18ixnPr.js → page-BIXY8Czs.js} +5 -5
- package/dist/cdn/chunks/{page-footer-CP6K-aw-.js → page-footer-BSPneEMd.js} +5 -5
- package/dist/cdn/chunks/{page-section-mixin-BLPRaUH6.js → page-section-mixin-HrMHOk9c.js} +3 -3
- package/dist/cdn/chunks/{pagination-YLIq3Jcw.js → pagination-DkV6axw8.js} +7 -7
- package/dist/cdn/chunks/{password-field-CCRqiNHh.js → password-field-eZtU3DR2.js} +9 -9
- package/dist/cdn/chunks/{popover-NvRaYQGL.js → popover-BjXDnHDF.js} +5 -5
- package/dist/cdn/chunks/press-feedback-BtUqwC_0.js +12 -0
- package/dist/cdn/chunks/{progress-bar-DS0_RN2t.js → progress-bar-D5-CB4NJ.js} +14 -15
- package/dist/cdn/chunks/{progress-circle-B5zlQKGK.js → progress-circle-tXH6BMlN.js} +18 -16
- package/dist/cdn/chunks/{radio-button-gY-u--Id.js → radio-button-CsgnS_Qn.js} +4 -4
- package/dist/cdn/chunks/{radio-button-field-DZ2p1w_S.js → radio-button-field-DbnG-fR8.js} +7 -7
- package/dist/cdn/chunks/{radio-button-group-C0VdrjGz.js → radio-button-group-BUujUoVm.js} +3 -3
- package/dist/cdn/chunks/{render-marked-SMLwIKOz.js → render-marked-BSbmklIR.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-BfNGWoUb.js → reorder-handle-cell-Bi_v5VZB.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-Dy5l6J0C.js → reorder-handle-mixin-Cu-u0TY-.js} +2 -2
- package/dist/cdn/chunks/{repeat-HQymq8gF.js → repeat-DU632DST.js} +2 -2
- package/dist/cdn/chunks/{rich-text-BALF1UpX.js → rich-text-C4DZxOTU.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-De75PIGu.js → row-header-mixin-CMAyjE-7.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-Bj7GnOWo.js → scroll-fade-DBQ2mD8Y.js} +2 -2
- package/dist/cdn/chunks/{search-field-DP7e4bm8.js → search-field-NJcMkh2l.js} +10 -10
- package/dist/cdn/chunks/{segmented-control-BXtb8I7v.js → segmented-control-Bx0X7A2X.js} +7 -7
- package/dist/cdn/chunks/{shadow-resets-CF-vkJJ8.js → shadow-resets-BplgOKPc.js} +2 -2
- package/dist/cdn/chunks/{sheet-Beykq5Xb.js → sheet-96shetPW.js} +3 -3
- package/dist/cdn/chunks/{shell-CTGO74H-.js → shell-D53z8Daa.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-BZlxFAIM.js → side-by-side-split-view-CA3ZYDmC.js} +4 -4
- package/dist/cdn/chunks/{sidebar-section-CsODVvuK.js → sidebar-section-oUXcNchf.js} +8 -8
- package/dist/cdn/chunks/{simple-section-9pgvujZx.js → simple-section-DhSCulaz.js} +3 -3
- package/dist/cdn/chunks/{skip-link-qdhDQoe7.js → skip-link-CNvkL2ng.js} +5 -5
- package/dist/cdn/chunks/{slider-CR_O2nPE.js → slider-Ba5O0jF6.js} +12 -11
- package/dist/cdn/chunks/{spacer-DbZEWOe2.js → spacer-Bz-xBLrh.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-BnDgG-8g.js → spacer-cell-k1AYw_80.js} +4 -4
- package/dist/cdn/chunks/{split-button-rY9ZZF4m.js → split-button-DwHGhJ94.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-CXsR2koZ.js → split-view-divider-BTt7hrtq.js} +2 -2
- package/dist/cdn/chunks/{stacked-split-view-CA97yLNG.js → stacked-split-view-Cq3kBEo7.js} +4 -4
- package/dist/cdn/chunks/{static-html-CfvOicw5.js → static-html-C1_QY9-9.js} +1 -1
- package/dist/cdn/chunks/{status-bar-Cg0AkR2_.js → status-bar-Y3NC9vFo.js} +4 -4
- package/dist/cdn/chunks/{step-bar-CAF54DmI.js → step-bar-DEOX-7NN.js} +7 -7
- package/dist/cdn/chunks/{step-cell-BfmEAqar.js → step-cell-Crml9Hpt.js} +5 -5
- package/dist/cdn/chunks/{stepper-C2oRKeaC.js → stepper-XZGIlIIU.js} +7 -7
- package/dist/cdn/chunks/{style-map-BZRDrOiA.js → style-map-Bznyirg7.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-DW07gML2.js → swatch-picker-4fIhPJQc.js} +6 -6
- package/dist/cdn/chunks/{switch-D3dbZ1J9.js → switch-DPjb_Wtv.js} +5 -5
- package/dist/cdn/chunks/{switch-field-DrP2P8J-.js → switch-field-DF96_PUQ.js} +7 -7
- package/dist/cdn/chunks/{tab-bar-D0VfxxWN.js → tab-bar-CtZpacEn.js} +8 -8
- package/dist/cdn/chunks/{table-CWQWdro8.js → table-S76Xq4j8.js} +5 -5
- package/dist/cdn/chunks/{tag-Dc2wNx-T.js → tag-Bzem1z9I.js} +5 -5
- package/dist/cdn/chunks/{term-DUIQ5xer.js → term-Bbuv7_kb.js} +12 -12
- package/dist/cdn/chunks/{text-BGobv84x.js → text-C7mSKF-E.js} +4 -4
- package/dist/cdn/chunks/{text-cell-CGvUJRLw.js → text-cell-CMXSo5Ra.js} +9 -9
- package/dist/cdn/chunks/{text-editor-CHsINr20.js → text-editor-DgkEF4fV.js} +11 -11
- package/dist/cdn/chunks/{text-field-CpSGZVmD.js → text-field-B06CiuOY.js} +6 -6
- package/dist/cdn/chunks/{text-wrap-DHroWilR.js → text-wrap-EQF-fBi4.js} +2 -2
- package/dist/cdn/chunks/{time-field-CJVbIp-l.js → time-field-CUvhCoHF.js} +14 -14
- package/dist/cdn/chunks/{time-picker-S2rQpNA-.js → time-picker-wgfjQpFB.js} +6 -6
- package/dist/cdn/chunks/{title-DrogO1fi.js → title-Uzi0g--W.js} +5 -5
- package/dist/cdn/chunks/{title-cell-CX_yGWvW.js → title-cell-Cc9j1I4W.js} +9 -9
- package/dist/cdn/chunks/{toggle-button-CwVn3pQ-.js → toggle-button-DeKfh6eM.js} +9 -9
- package/dist/cdn/chunks/{toggle-button-group-BY4GlP2N.js → toggle-button-group-DU2SGR3P.js} +2 -2
- package/dist/cdn/chunks/{token-vYddtNLa.js → token-BC3tY59o.js} +5 -5
- package/dist/cdn/chunks/{token-field-CgE9PfeW.js → token-field-BO_hUPuR.js} +11 -11
- package/dist/cdn/chunks/{toolbar-Cl9XcbRF.js → toolbar-BWmrbOds.js} +9 -9
- package/dist/cdn/chunks/{toolbar-item-BQKbNQGY.js → toolbar-item-jnrwcrih.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-Ka7Q_vfZ.js → toolbar-title-STB4FCnn.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-QMkPXyiR.js → toolbar.styles-D7-Iy0U9.js} +3 -11
- package/dist/cdn/chunks/{tooltip-BERJsBSV.js → tooltip-C1qPjhuT.js} +5 -5
- package/dist/cdn/chunks/{top-navigation-bar-CJCQf83I.js → top-navigation-bar-9Iy3niRW.js} +117 -128
- package/dist/cdn/chunks/{top-title-bar-CT4gj9gn.js → top-title-bar-AiWXxvEn.js} +6 -6
- package/dist/cdn/chunks/{two-thirds-one-third-section-CQwCU61R.js → two-thirds-one-third-section-B4-HS2qN.js} +3 -3
- package/dist/cdn/chunks/{validation-list-3b8a8S3f.js → validation-list-_cQOzDKg.js} +5 -5
- package/dist/cdn/chunks/{visibility-mixin-BDaVoR0J.js → visibility-mixin-yf02zdEy.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-GgT4UkeT.js → visually-hidden-hjpQo7w2.js} +2 -2
- package/dist/cdn/chunks/{window-BTU1k5p4.js → window-Br52FScm.js} +4 -4
- package/dist/cdn/chunks/{with-translations-D3sJ-X8x.js → with-translations-Z7dHTxzy.js} +3 -3
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +4 -0
- package/dist/components/actions/button/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 +0 -8
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +2 -2
- package/dist/components/content/blockquote/blockquote.js +2 -2
- package/dist/components/content/blockquote/blockquote.styles.js +2 -2
- package/dist/components/content/icon/icon.d.ts +1 -1
- package/dist/components/content/icon/icon.js +1 -1
- package/dist/components/content/icon/icon.styles.js +1 -1
- package/dist/components/content/identity/identity.d.ts +1 -1
- package/dist/components/content/identity/identity.js +1 -1
- package/dist/components/content/image/image.d.ts +2 -2
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +3 -3
- 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 +5 -2
- 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 +3 -1
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +1 -1
- package/dist/components/content/text/text.d.ts +1 -1
- package/dist/components/content/text/text.js +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +10 -2
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +32 -4
- 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 +13 -5
- 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.d.ts +5 -1
- 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 +6 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.js +1 -1
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.styles.js +3 -2
- package/dist/components/inputs/slider/slider.styles.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +1 -1
- package/dist/components/inputs/switch/switch.js +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts +3 -3
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.js +31 -24
- package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +9 -9
- package/dist/components/layout/page-sections/hero/hero.d.ts +32 -28
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +40 -33
- 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 +61 -23
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +20 -10
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +80 -32
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.d.ts +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.js +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +2 -1
- 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 +6 -3
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +4 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +3 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +21 -7
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +4 -0
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +5 -3
- 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.js +5 -3
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.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 +10 -21
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.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 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.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 +1 -0
- package/dist/components/status-and-feedback/banner/banner.styles.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 -7
- 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 +4 -0
- 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 +16 -8
- 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.js +6 -6
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +0 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +3 -2
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +3 -2
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +1 -1
- package/dist/css/rich-text.css +2 -3
- package/dist/css/variables.css +22 -9
- package/dist/nldd.min.js +1003 -966
- package/dist/types/react.d.ts +36 -40
- package/dist/types/vue.d.ts +207 -51
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +23 -18
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/form-associated-mixin.d.ts +10 -0
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
- package/dist/utilities/form-associated-mixin.js +49 -0
- package/dist/utilities/form-associated-mixin.js.map +1 -1
- package/dist/utilities/press-feedback.d.ts +16 -0
- package/dist/utilities/press-feedback.d.ts.map +1 -0
- package/dist/utilities/press-feedback.js +27 -0
- package/dist/utilities/press-feedback.js.map +1 -0
- package/lint/data.generated.json +1 -1
- package/lint/fix.js +43 -6
- package/lint/rule.schema.json +2 -1
- package/package.json +1 -1
package/lint/fix.js
CHANGED
|
@@ -120,12 +120,20 @@ function removeEdits(source, finding, name) {
|
|
|
120
120
|
/** One attribute that became another: a value written out that became a
|
|
121
121
|
* boolean, or a boolean that became a value (`spin-buttons="none"`). The whole
|
|
122
122
|
* attribute turns into `to`, written as it lands in the tag: a bare name or
|
|
123
|
-
* `name="value"`, so the name is what stands before `=`.
|
|
124
|
-
*
|
|
123
|
+
* `name="value"`, so the name is what stands before `=`. Where the new
|
|
124
|
+
* attributes depend on the value, `to` maps each written value to what it
|
|
125
|
+
* becomes, one attribute or more (`only="md"` to `hide-below="md" hide-above="md"`),
|
|
126
|
+
* and a value it does not name stays a finding. An element that already has one
|
|
127
|
+
* of the new attributes, or a templated attribute, is left alone. */
|
|
125
128
|
function flagEdits(source, startTag, from, to) {
|
|
126
129
|
const found = findAttribute(startTag, from);
|
|
127
|
-
if (!found || found.prefix || found.templated
|
|
128
|
-
|
|
130
|
+
if (!found || found.prefix || found.templated) return [];
|
|
131
|
+
const written = typeof to === 'string' ? undefined : writtenText(source, found);
|
|
132
|
+
const text = typeof to === 'string' ? to : written !== undefined && Object.hasOwn(to, written) ? to[written] : undefined;
|
|
133
|
+
if (text === undefined) return [];
|
|
134
|
+
const names = [...text.matchAll(/([a-z0-9-]+)(?:="[^"]*")?/g)].map(([, name]) => name);
|
|
135
|
+
if (names.some((name) => findAttribute(startTag, name))) return [];
|
|
136
|
+
return [{ from: found.start, to: found.end, text }];
|
|
129
137
|
}
|
|
130
138
|
|
|
131
139
|
/**
|
|
@@ -260,14 +268,43 @@ function childEdits(source, finding, { tag, slot, attributes }) {
|
|
|
260
268
|
return [...removals, { from: at, to: at, text: `${next[1]}${childIndent}${child}` }];
|
|
261
269
|
}
|
|
262
270
|
|
|
271
|
+
/**
|
|
272
|
+
* Old attributes that lost to another on the same element, and so did nothing:
|
|
273
|
+
* `yields: { below: [above, only] }` says a pane with `above` ignored `below`.
|
|
274
|
+
* What lost goes, so it does not turn into a new attribute that works. A winner
|
|
275
|
+
* that is bound, or written empty, leaves it unknown whether it won: `null`.
|
|
276
|
+
*/
|
|
277
|
+
function yielded(source, startTag, yields = {}) {
|
|
278
|
+
const lost = new Set();
|
|
279
|
+
for (const [name, winners] of Object.entries(yields)) {
|
|
280
|
+
if (!findAttribute(startTag, name)) continue;
|
|
281
|
+
const present = winners.map((winner) => findAttribute(startTag, winner)).filter(Boolean);
|
|
282
|
+
if (present.length === 0) continue;
|
|
283
|
+
if (!present.some((found) => writtenText(source, found))) return null;
|
|
284
|
+
lost.add(name);
|
|
285
|
+
}
|
|
286
|
+
return lost;
|
|
287
|
+
}
|
|
288
|
+
|
|
263
289
|
/** An edit is `{ from, to, text }` in the source. What is not certain makes none. */
|
|
264
290
|
function editsOf(source, finding) {
|
|
265
291
|
const { fix, offset, tag, mention, startTag } = finding;
|
|
292
|
+
const lost = yielded(source, startTag, fix.yields);
|
|
293
|
+
if (!lost) return [];
|
|
294
|
+
const kept = (entries) => entries.filter(([name]) => !lost.has(name));
|
|
295
|
+
const changed = [
|
|
296
|
+
...kept(Object.entries(fix.rename ?? {})).flatMap(([from, to]) => renameEdits(source, startTag, from, to)),
|
|
297
|
+
...kept(Object.entries(fix.flag ?? {})).flatMap(([from, to]) => flagEdits(source, startTag, from, to)),
|
|
298
|
+
];
|
|
299
|
+
// What lost goes only with the change of what won, and all of it: left behind, the next
|
|
300
|
+
// pass would read it as the only one and turn it into an attribute that works.
|
|
301
|
+
const removals = [...lost].map((name) => removeEdits(source, finding, name));
|
|
302
|
+
if (lost.size > 0 && (changed.length === 0 || removals.some((edits) => edits.length === 0))) return [];
|
|
266
303
|
return [
|
|
267
|
-
...
|
|
304
|
+
...changed,
|
|
305
|
+
...removals.flat(),
|
|
268
306
|
...Object.entries(fix.value ?? {}).flatMap(([name, values]) => valueEdits(source, startTag, name, values)),
|
|
269
307
|
...(fix.remove ?? []).flatMap((name) => removeEdits(source, finding, name)),
|
|
270
|
-
...Object.entries(fix.flag ?? {}).flatMap(([from, to]) => flagEdits(source, startTag, from, to)),
|
|
271
308
|
// A mention, such as `<nldd-x>` in a sentence, takes the new name only: with
|
|
272
309
|
// attributes it would no longer be a tag that stands for the element.
|
|
273
310
|
...(fix.tag && mention && !fix.attributes ? [{ from: offset + 1, to: offset + 1 + tag.length, text: fix.tag }] : []),
|
package/lint/rule.schema.json
CHANGED
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"rename": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Attributes in `removed` that got another name, old to new." },
|
|
23
23
|
"value": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Per attribute, values that got another name, old to new. Only a value written out in the markup, in quotes or as a literal in the braces of JSX." },
|
|
24
24
|
"remove": { "type": "array", "items": { "type": "string" }, "description": "Attributes in `removed` that do nothing any more." },
|
|
25
|
-
"flag": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Attributes in `removed`
|
|
25
|
+
"flag": { "type": "object", "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "object", "additionalProperties": { "type": "string" } }] }, "description": "Attributes in `removed` that became another attribute, old to new: a value that became a boolean, or a boolean that became a value (`spin-buttons=\"none\"`). Where what it becomes depends on the value, a map from each written value to one or more attributes; a value it does not name stays a finding. Only a value written out in the markup." },
|
|
26
|
+
"yields": { "type": "object", "additionalProperties": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "description": "Attributes in `removed` that did nothing next to another one in `removed`, attribute to the attributes it lost to (`below: [above, only]`). Where one of those is written out too, the fix removes it instead of changing it, together with the change of what won. A winner that is bound or empty makes no edit." },
|
|
26
27
|
"tag": { "type": "string", "description": "The new tag of a component in `removed` that got another name." },
|
|
27
28
|
"attributes": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Attributes the element takes with its new `tag`, such as the `slot` of an element that became the content of a slot. An element that already has one of them makes no edit. What names the old tag outside the markup is pointed at, not renamed: it meant more than the name." },
|
|
28
29
|
"translation": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Attributes in `removed` whose text became a translation key, attribute to key. The text goes in `translations`; only a value written out in the markup." },
|