@nldd/design-system 0.29.3 → 0.30.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.
Files changed (459) hide show
  1. package/custom-elements.json +464 -211
  2. package/dist/assets/styles/shadow-resets.d.ts +22 -7
  3. package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
  4. package/dist/assets/styles/shadow-resets.js +30 -1
  5. package/dist/assets/styles/shadow-resets.js.map +1 -1
  6. package/dist/assets/styles/text-wrap.d.ts +20 -4
  7. package/dist/assets/styles/text-wrap.d.ts.map +1 -1
  8. package/dist/assets/styles/text-wrap.js +27 -5
  9. package/dist/assets/styles/text-wrap.js.map +1 -1
  10. package/dist/cdn/autoloader.js +139 -140
  11. package/dist/cdn/chunks/{accordion-qIt44RLF.js → accordion-BcgFdNtq.js} +4 -4
  12. package/dist/cdn/chunks/{accordion-item-Dc6eccrJ.js → accordion-item-DIoa4wMw.js} +7 -6
  13. package/dist/cdn/chunks/{activity-indicator-D3Trvd26.js → activity-indicator-BmpMwyBH.js} +8 -11
  14. package/dist/cdn/chunks/{admonition-SGAs1_Zu.js → admonition-DUsuT-qK.js} +7 -6
  15. package/dist/cdn/chunks/{avatar-vY0iiAzq.js → avatar-BFnVbTB9.js} +8 -8
  16. package/dist/cdn/chunks/{avatar-group-6fsYuye5.js → avatar-group-BDgLxUn9.js} +16 -16
  17. package/dist/cdn/chunks/{badge-D2QCPBU6.js → badge-CAN4lWcI.js} +32 -30
  18. package/dist/cdn/chunks/{banner-N1LY9uhq.js → banner-BncAmkYl.js} +9 -9
  19. package/dist/cdn/chunks/{bar-split-view-CthxhXh8.js → bar-split-view-hlmRlFit.js} +6 -6
  20. package/dist/cdn/chunks/{blockquote-C-oSxq4b.js → blockquote-DUAwVT6v.js} +33 -32
  21. package/dist/cdn/chunks/{box-B_NqS9H1.js → box-CasAZ5pk.js} +4 -4
  22. package/dist/cdn/chunks/{breadcrumbs-v-nEtdOp.js → breadcrumbs-DBHmoFPu.js} +7 -7
  23. package/dist/cdn/chunks/{button-DHLts-vo.js → button-IRm7Oibq.js} +114 -91
  24. package/dist/cdn/chunks/{button-bar-CPLhSKNo.js → button-bar-CocGraYA.js} +5 -5
  25. package/dist/cdn/chunks/{button-group-BIt4ERX1.js → button-group-BfNf2BZe.js} +4 -4
  26. package/dist/cdn/chunks/{card--GUIZiTn.js → card-BaomP9oB.js} +5 -5
  27. package/dist/cdn/chunks/{cell-Ch6VVWYl.js → cell-Dir3g5vA.js} +8 -8
  28. package/dist/cdn/chunks/{checkbox-BNI1xGry.js → checkbox-CIXkUW3R.js} +7 -7
  29. package/dist/cdn/chunks/{checkbox-field-BPtTyzq-.js → checkbox-field-DQ4MlASP.js} +9 -9
  30. package/dist/cdn/chunks/{checkbox-group-DYElCUgt.js → checkbox-group-C8E46V4D.js} +3 -3
  31. package/dist/cdn/chunks/{class-map-DwD-ilOn.js → class-map-D0fkDSLP.js} +1 -1
  32. package/dist/cdn/chunks/{code-editor-DEJ-KbPY.js → code-editor-C8YqZrN-.js} +16 -6
  33. package/dist/cdn/chunks/{code-viewer-CIiRvhkZ.js → code-viewer-Ck7wxfDo.js} +40 -13
  34. package/dist/cdn/chunks/{codemirror-input-y7sZIE85.js → codemirror-input-DNrSyYSw.js} +142 -143
  35. package/dist/cdn/chunks/{collection-Cb7Ej5Ua.js → collection-DprNdn8V.js} +9 -9
  36. package/dist/cdn/chunks/{combo-box-CDqddeN5.js → combo-box-B2L79FY5.js} +20 -11
  37. package/dist/cdn/chunks/{container-DZfSFaA9.js → container-Cg4kOUN8.js} +85 -84
  38. package/dist/cdn/chunks/{custom-element-aLDsY95V.js → custom-element-CDepWGgp.js} +1 -1
  39. package/dist/cdn/chunks/{date-field-C4xutZpO.js → date-field-Dsw2EkcZ.js} +13 -13
  40. package/dist/cdn/chunks/{date-picker-CtdRwpu7.js → date-picker-ugS3-VBq.js} +17 -19
  41. package/dist/cdn/chunks/{decorate-D28R7mwV.js → decorate-CuJsiFnl.js} +10 -12
  42. package/dist/cdn/chunks/described-by-mixin-Ih_IoqBD.js +106 -0
  43. package/dist/cdn/chunks/{description-cell-BYgUCAev.js → description-cell-DiLwKDva.js} +8 -8
  44. package/dist/cdn/chunks/{dev-checks-C6cMs71h.js → dev-checks-Bfy3qHxO.js} +32 -12
  45. package/dist/cdn/chunks/{directive-helpers-B-J-xMIs.js → directive-helpers-DEvA8txp.js} +1 -1
  46. package/dist/cdn/chunks/{dist-CON6NKtQ.js → dist-BEZuPWxd.js} +78 -79
  47. package/dist/cdn/chunks/{dist-CSUsf3Jq.js → dist-BFGGXlGI.js} +113 -114
  48. package/dist/cdn/chunks/{dist-Dr-gFR08.js → dist-BYPfq6x4.js} +5 -6
  49. package/dist/cdn/chunks/{dist-BxjZtyyd.js → dist-C8wDJyDH.js} +69 -70
  50. package/dist/cdn/chunks/{dist-CHuLNwDW.js → dist-CUXioD4z.js} +296 -297
  51. package/dist/cdn/chunks/{dist-BTUxFM2V.js → dist-Cr0OiT-0.js} +1 -1
  52. package/dist/cdn/chunks/{dist-BpXie73W.js → dist-CrMq7oqC.js} +2 -2
  53. package/dist/cdn/chunks/{dist-Bo5l49Uq.js → dist-DPnEBzju.js} +44 -45
  54. package/dist/cdn/chunks/{dist-Bnz9cU2A.js → dist-Djmp37M0.js} +54 -55
  55. package/dist/cdn/chunks/{dist-CIFs0Nqx.js → dist-DsQS8bTi.js} +33 -34
  56. package/dist/cdn/chunks/{dist-tBRozql6.js → dist-UpdpX10o.js} +88 -89
  57. package/dist/cdn/chunks/{dist-DKy1SqZx.js → dist-cg8p9qPS.js} +17 -18
  58. package/dist/cdn/chunks/{dist-3C80SZN9.js → dist-s2b8iJ30.js} +82 -83
  59. package/dist/cdn/chunks/{divider-CTKk-YoH.js → divider-DeLH4QwC.js} +2 -2
  60. package/dist/cdn/chunks/{document-tab-bar-DY_eja8b.js → document-tab-bar-bOkWFMdJ.js} +11 -14
  61. package/dist/cdn/chunks/{dropdown-CruRvMW9.js → dropdown-C1NBctuB.js} +6 -6
  62. package/dist/cdn/chunks/{file-field-D9iNPYKY.js → file-field-DFjBl7rn.js} +110 -108
  63. package/dist/cdn/chunks/{floating-ui.dom-CB34tcZx.js → floating-ui.dom-DlsknQ4T.js} +3 -3
  64. package/dist/cdn/chunks/{form-actions-BuKwcAbF.js → form-actions-DcsN5H-J.js} +2 -2
  65. package/dist/cdn/chunks/{form-associated-mixin-C1rOeFAh.js → form-associated-mixin-YG9BXK0j.js} +2 -2
  66. package/dist/cdn/chunks/form-field-BWtox2o0.js +414 -0
  67. package/dist/cdn/chunks/form-field.i18n-D-3yEP-C.js +6 -0
  68. package/dist/cdn/chunks/{form-sQRdMSb4.js → form-mkjbjprY.js} +1 -1
  69. package/dist/cdn/chunks/form-section-CLuotkhm.js +78 -0
  70. package/dist/cdn/chunks/{full-bleed-section-DM0pv5Xt.js → full-bleed-section-CZfvZFDs.js} +4 -4
  71. package/dist/cdn/chunks/{hero-C8zDTYdo.js → hero-C_x5gAKl.js} +8 -8
  72. package/dist/cdn/chunks/{icon-CgFQSvEf.js → icon-CeybqndL.js} +6 -4
  73. package/dist/cdn/chunks/{icon-button-ya52TYkO.js → icon-button-BLe-iiU5.js} +67 -64
  74. package/dist/cdn/chunks/{icon-cell-DbqWtIl9.js → icon-cell-DUBctf2q.js} +8 -7
  75. package/dist/cdn/chunks/{identity-DPerpCOw.js → identity-C4FW2LCv.js} +33 -30
  76. package/dist/cdn/chunks/{if-defined-D5G_Kkpm.js → if-defined-DwzUaXrb.js} +1 -1
  77. package/dist/cdn/chunks/{image-eyP-R4JG.js → image-7aQSrryL.js} +24 -23
  78. package/dist/cdn/chunks/{inline-dialog-z7jzLiRx.js → inline-dialog-B9o9ckxL.js} +26 -25
  79. package/dist/cdn/chunks/{just-in-time-education-2O-UcSq5.js → just-in-time-education-C-3THmVJ.js} +7 -7
  80. package/dist/cdn/chunks/{kanban-Dz3KcfW2.js → kanban-BemPSLk8.js} +9 -10
  81. package/dist/cdn/chunks/{kanban-column-DQeIGacj.js → kanban-column-CYZjUBUd.js} +40 -41
  82. package/dist/cdn/chunks/{keyboard-shortcut-CUxShTHr.js → keyboard-shortcut-BK35aEeR.js} +5 -5
  83. package/dist/cdn/chunks/{languages-D_vPs_jY.js → languages-CT6Im_c5.js} +3475 -1841
  84. package/dist/cdn/chunks/{link-emVjLq3i.js → link-Lbw4Ut52.js} +7 -7
  85. package/dist/cdn/chunks/{link-group-Cygt2XBP.js → link-group-B1XXP70E.js} +3 -3
  86. package/dist/cdn/chunks/{list-TKhlBlV_.js → list-D2vWEpYC.js} +11 -11
  87. package/dist/cdn/chunks/{list-item-D2On2ug1.js → list-item-Y0wOQqRa.js} +14 -15
  88. package/dist/cdn/chunks/{list-item-segment-XERq2wPj.js → list-item-segment-BamNSRcL.js} +5 -5
  89. package/dist/cdn/chunks/{menu-b2UFN5q8.js → menu-Cvwt6mA5.js} +13 -13
  90. package/dist/cdn/chunks/{menu-bar-BJ6PjqmT.js → menu-bar-D9Etcq_r.js} +7 -7
  91. package/dist/cdn/chunks/{menu-bar-item-kRxuNXj5.js → menu-bar-item-BUVqi3o-.js} +7 -7
  92. package/dist/cdn/chunks/{menu-divider-Cpa6JbxR.js → menu-divider-BqRMxjF3.js} +4 -4
  93. package/dist/cdn/chunks/{menu-group-DrwvnJ1C.js → menu-group-BSnRGQgm.js} +6 -6
  94. package/dist/cdn/chunks/{menu-item-D7CoiS88.js → menu-item-UQoejlK0.js} +6 -6
  95. package/dist/cdn/chunks/{menu.template-BAqqSWm-.js → menu.template-CewvJO-Y.js} +10 -7
  96. package/dist/cdn/chunks/{modal-dialog-DOZuUmOi.js → modal-dialog-C6XUoI95.js} +5 -5
  97. package/dist/cdn/chunks/{multi-line-text-field-CB-rGXUh.js → multi-line-text-field-4Vn5Nrjo.js} +7 -7
  98. package/dist/cdn/chunks/{navigation-split-view-Bc5AUAmC.js → navigation-split-view-BEwcAHWu.js} +7 -13
  99. package/dist/cdn/chunks/{nl.generated-B194RR-y.js → nl.generated-CrkPlg69.js} +2 -2
  100. package/dist/cdn/chunks/{notification-Cs-f2gLW.js → notification-DxsARz6U.js} +8 -8
  101. package/dist/cdn/chunks/{number-field-DqQOrvOA.js → number-field-wFK_taVU.js} +10 -10
  102. package/dist/cdn/chunks/{one-half-one-half-section-BqiqGK-m.js → one-half-one-half-section-CyedWMlH.js} +4 -4
  103. package/dist/cdn/chunks/{one-third-two-thirds-section-3LPjeo2n.js → one-third-two-thirds-section-LRJlzoAZ.js} +4 -4
  104. package/dist/cdn/chunks/{one-time-code-field-CZxm-CQt.js → one-time-code-field-BYQfRePV.js} +11 -12
  105. package/dist/cdn/chunks/{overflow-menu-DkyYNSg3.js → overflow-menu-BdEHECvL.js} +1 -1
  106. package/dist/cdn/chunks/{page-DYzfOL9K.js → page-DpGgV58g.js} +47 -46
  107. package/dist/cdn/chunks/{page-footer-ChNrnN3t.js → page-footer-DxaWwS8U.js} +6 -6
  108. package/dist/cdn/chunks/{page-section-mixin-7d4JVDUI.js → page-section-mixin-DigQhtVE.js} +4 -4
  109. package/dist/cdn/chunks/{pagination-CYl78pZT.js → pagination-Ch0EdxDX.js} +37 -36
  110. package/dist/cdn/chunks/{password-field-Bg1lsru6.js → password-field-Dm8ah1v8.js} +37 -36
  111. package/dist/cdn/chunks/{popover-jP9P86r3.js → popover-Bhr3Nbst.js} +9 -9
  112. package/dist/cdn/chunks/{progress-bar-C08-J2b3.js → progress-bar-BBpNc1Wm.js} +11 -12
  113. package/dist/cdn/chunks/{progress-circle-_NDiM4Vw.js → progress-circle-DfbawfeQ.js} +9 -9
  114. package/dist/cdn/chunks/{radio-button-OdrY0lUT.js → radio-button-D_KTcIAN.js} +6 -6
  115. package/dist/cdn/chunks/{radio-button-field-C8XD59fa.js → radio-button-field-H_NQqcZp.js} +8 -8
  116. package/dist/cdn/chunks/{radio-button-group-C7ntRQO7.js → radio-button-group-kbaWn4YY.js} +3 -3
  117. package/dist/cdn/chunks/{reflect-non-default-Bu3rpCvg.js → reflect-non-default-DUOcGZKf.js} +1 -1
  118. package/dist/cdn/chunks/{render-marked-Cdt8DyWh.js → render-marked-DnJwRVpy.js} +1 -1
  119. package/dist/cdn/chunks/{reorder-handle-cell-C6q1_RaE.js → reorder-handle-cell-BI4CugME.js} +5 -5
  120. package/dist/cdn/chunks/{reorder-handle-mixin-mJLOiHhZ.js → reorder-handle-mixin-LPcbGhhD.js} +2 -2
  121. package/dist/cdn/chunks/{repeat-DLQZAi6Q.js → repeat-BBqtniIo.js} +2 -2
  122. package/dist/cdn/chunks/{rich-text-CR5iRjCn.js → rich-text-xlU1NiF6.js} +4 -4
  123. package/dist/cdn/chunks/{rolldown-runtime-CGnMp29N.js → rolldown-runtime-BMBA7GOT.js} +2 -2
  124. package/dist/cdn/chunks/{row-header-mixin-BUn7AC4_.js → row-header-mixin-CyqWb67i.js} +2 -2
  125. package/dist/cdn/chunks/{scroll-fade-B7Gy3Bmm.js → scroll-fade-CTn6QJuM.js} +2 -2
  126. package/dist/cdn/chunks/{search-field-B62sYRtl.js → search-field-OpYujGwS.js} +41 -38
  127. package/dist/cdn/chunks/{segmented-control-VU38x7xX.js → segmented-control-8NtY_sU6.js} +8 -8
  128. package/dist/cdn/chunks/{shadow-resets-uUyDr3ia.js → shadow-resets-CtbMaZlz.js} +26 -11
  129. package/dist/cdn/chunks/{sheet-jMZkPdlu.js → sheet-C_biEFcb.js} +4 -4
  130. package/dist/cdn/chunks/{shell-2Wa4Waez.js → shell-OXRr3zFb.js} +4 -4
  131. package/dist/cdn/chunks/{side-by-side-split-view-v6riuRqk.js → side-by-side-split-view-DVXrHULp.js} +6 -6
  132. package/dist/cdn/chunks/{sidebar-section-D3Zy_9y1.js → sidebar-section-DYa_6OWF.js} +9 -9
  133. package/dist/cdn/chunks/{simple-section-kCKeHqmt.js → simple-section-CGUSyUAl.js} +4 -4
  134. package/dist/cdn/chunks/{skip-link-BeoObN4D.js → skip-link-Dl2ouKZk.js} +6 -6
  135. package/dist/cdn/chunks/{slider-BSALXKxX.js → slider-Do-LOJNR.js} +13 -17
  136. package/dist/cdn/chunks/{spacer-CXXmb3su.js → spacer-BgHrBz2X.js} +4 -4
  137. package/dist/cdn/chunks/{spacer-cell-BV9uv10a.js → spacer-cell-CiQ8Ufpp.js} +6 -6
  138. package/dist/cdn/chunks/{split-button-DE4NaJZs.js → split-button-Sd_-qYSD.js} +8 -8
  139. package/dist/cdn/chunks/{split-view-divider-BqLSYIwg.js → split-view-divider-D1TzV2VR.js} +4 -4
  140. package/dist/cdn/chunks/{stacked-split-view-CPCCQhHV.js → stacked-split-view-Ctlqwe0S.js} +6 -6
  141. package/dist/cdn/chunks/{static-html-DtH5-I4g.js → static-html-C8oeEnJZ.js} +1 -1
  142. package/dist/cdn/chunks/{status-bar-CBi4aCqy.js → status-bar-u2SmYnKZ.js} +14 -6
  143. package/dist/cdn/chunks/{step-bar-BFzioHLn.js → step-bar-BA852p33.js} +7 -7
  144. package/dist/cdn/chunks/{step-cell-fNIdX1cI.js → step-cell-DF9xadrF.js} +6 -6
  145. package/dist/cdn/chunks/{stepper-CgmgV0qw.js → stepper-dRpkKCse.js} +9 -9
  146. package/dist/cdn/chunks/{style-map-DhI1E0EI.js → style-map-eCE91iAi.js} +1 -1
  147. package/dist/cdn/chunks/{swatch-picker-BYb0cq8H.js → swatch-picker-Bjv3Yyk1.js} +7 -7
  148. package/dist/cdn/chunks/{switch-fRxqZBKc.js → switch-DJBzXPfD.js} +7 -7
  149. package/dist/cdn/chunks/{switch-field-BH6xhWUz.js → switch-field-uMAxSz6L.js} +8 -8
  150. package/dist/cdn/chunks/{tab-bar-B66obS2x.js → tab-bar-DLHqLs6Y.js} +21 -17
  151. package/dist/cdn/chunks/tab-bar.i18n-9sChoP56.js +6 -0
  152. package/dist/cdn/chunks/{table-s8GDKuuW.js → table-BLvkO5AG.js} +6 -6
  153. package/dist/cdn/chunks/{tag-TE8mlX1U.js → tag-DYhl2u2I.js} +6 -6
  154. package/dist/cdn/chunks/{term-Cm9BrUtJ.js → term-D79d-lz3.js} +12 -12
  155. package/dist/cdn/chunks/{text-cell-DxzojZsc.js → text-cell-BbVoThab.js} +42 -39
  156. package/dist/cdn/chunks/{text-editor-C_8jEhF2.js → text-editor-dZhei5Gg.js} +24 -14
  157. package/dist/cdn/chunks/{text-field-BgPlCLFl.js → text-field-DmKGVJvm.js} +7 -7
  158. package/dist/cdn/chunks/{text-DEk52Hq2.js → text-kRZ3cyId.js} +5 -5
  159. package/dist/cdn/chunks/{text-wrap-DjzB16-4.js → text-wrap-C6QQbSuj.js} +13 -5
  160. package/dist/cdn/chunks/{time-field-Sde0_8NH.js → time-field-BXVxhV80.js} +15 -15
  161. package/dist/cdn/chunks/{time-picker-CZbLW9ap.js → time-picker-BjJfPmir.js} +9 -9
  162. package/dist/cdn/chunks/{title-v-FXk0hs.js → title-DsOLSMHj.js} +6 -6
  163. package/dist/cdn/chunks/{title-cell-Bv9b6G_p.js → title-cell-DXcur6Eb.js} +52 -49
  164. package/dist/cdn/chunks/{toggle-button-DWlS9Rbg.js → toggle-button-7fasRpr1.js} +73 -57
  165. package/dist/cdn/chunks/{toggle-button-group-CetB0Cio.js → toggle-button-group-B9No_FIj.js} +3 -3
  166. package/dist/cdn/chunks/{token-BXJXjQwc.js → token-BYCl-dDP.js} +7 -7
  167. package/dist/cdn/chunks/{token-field-CsxYfu8b.js → token-field-C9fGsIxB.js} +11 -11
  168. package/dist/cdn/chunks/{toolbar-CUWVCKM6.js → toolbar-CBs6yMNd.js} +70 -69
  169. package/dist/cdn/chunks/{toolbar-item-BxzbSJdv.js → toolbar-item-DYVo5I60.js} +5 -8
  170. package/dist/cdn/chunks/{toolbar-title-C4qJ_fkM.js → toolbar-title-Bu5PbFPP.js} +5 -5
  171. package/dist/cdn/chunks/{toolbar.styles-D9FuZFnd.js → toolbar.styles-BUS-XIdr.js} +4 -3
  172. package/dist/cdn/chunks/{tooltip-D5XT5lRe.js → tooltip-yXDfEbZ1.js} +8 -8
  173. package/dist/cdn/chunks/{top-navigation-bar-C3azLUd1.js → top-navigation-bar-DW6xYKY0.js} +19 -19
  174. package/dist/cdn/chunks/{top-title-bar-D1m-dREA.js → top-title-bar-Fk4jzs8I.js} +12 -9
  175. package/dist/cdn/chunks/{two-thirds-one-third-section-D3VEGv6P.js → two-thirds-one-third-section-B9a1YYXm.js} +4 -4
  176. package/dist/cdn/chunks/{validation-list-D7tDyaoK.js → validation-list-BAyP6Ccd.js} +61 -49
  177. package/dist/cdn/chunks/{visibility-mixin-D2VzUDfE.js → visibility-mixin-9Nr_J68Z.js} +2 -2
  178. package/dist/cdn/chunks/{visually-hidden-CSYlyubF.js → visually-hidden-BN6jVrRE.js} +2 -2
  179. package/dist/cdn/chunks/{window-6IQfu4dU.js → window-D4rLzdHo.js} +5 -5
  180. package/dist/cdn/chunks/{with-translations-Dr6Z41n9.js → with-translations-RkK-Bq8M.js} +3 -3
  181. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  182. package/dist/components/actions/button/button.styles.js +26 -7
  183. package/dist/components/actions/button/button.styles.js.map +1 -1
  184. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  185. package/dist/components/actions/button/button.template.js +7 -5
  186. package/dist/components/actions/button/button.template.js.map +1 -1
  187. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  188. package/dist/components/actions/icon-button/icon-button.styles.js +4 -2
  189. package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
  190. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  191. package/dist/components/actions/icon-button/icon-button.template.js +4 -2
  192. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  193. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  194. package/dist/components/actions/menu/menu.styles.js +4 -1
  195. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  196. package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -1
  197. package/dist/components/actions/toolbar/toolbar-item.js +1 -7
  198. package/dist/components/actions/toolbar/toolbar-item.js.map +1 -1
  199. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  200. package/dist/components/actions/toolbar/toolbar.styles.js +1 -0
  201. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  202. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  203. package/dist/components/actions/toolbar/toolbar.template.js +2 -1
  204. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  205. package/dist/components/content/accordion/accordion-item.styles.d.ts.map +1 -1
  206. package/dist/components/content/accordion/accordion-item.styles.js +1 -0
  207. package/dist/components/content/accordion/accordion-item.styles.js.map +1 -1
  208. package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -1
  209. package/dist/components/content/admonition/admonition.styles.js +1 -0
  210. package/dist/components/content/admonition/admonition.styles.js.map +1 -1
  211. package/dist/components/content/blockquote/blockquote.template.d.ts.map +1 -1
  212. package/dist/components/content/blockquote/blockquote.template.js +2 -1
  213. package/dist/components/content/blockquote/blockquote.template.js.map +1 -1
  214. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  215. package/dist/components/content/code-viewer/code-viewer.styles.js +30 -3
  216. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  217. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  218. package/dist/components/content/icon/icon-aliases.js +4 -0
  219. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  220. package/dist/components/content/identity/identity.d.ts +14 -5
  221. package/dist/components/content/identity/identity.d.ts.map +1 -1
  222. package/dist/components/content/identity/identity.js +14 -5
  223. package/dist/components/content/identity/identity.js.map +1 -1
  224. package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
  225. package/dist/components/content/identity/identity.styles.js +6 -3
  226. package/dist/components/content/identity/identity.styles.js.map +1 -1
  227. package/dist/components/content/image/image.template.d.ts.map +1 -1
  228. package/dist/components/content/image/image.template.js +9 -8
  229. package/dist/components/content/image/image.template.js.map +1 -1
  230. package/dist/components/content/rich-text/rich-text.d.ts +8 -6
  231. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  232. package/dist/components/content/rich-text/rich-text.js +8 -6
  233. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  234. package/dist/components/content/text/text.d.ts +2 -0
  235. package/dist/components/content/text/text.d.ts.map +1 -1
  236. package/dist/components/content/text/text.js +2 -0
  237. package/dist/components/content/text/text.js.map +1 -1
  238. package/dist/components/forms/form-field/form-field.d.ts +138 -73
  239. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  240. package/dist/components/forms/form-field/form-field.i18n.d.ts +1 -0
  241. package/dist/components/forms/form-field/form-field.i18n.d.ts.map +1 -1
  242. package/dist/components/forms/form-field/form-field.i18n.js +2 -0
  243. package/dist/components/forms/form-field/form-field.i18n.js.map +1 -1
  244. package/dist/components/forms/form-field/form-field.js +317 -149
  245. package/dist/components/forms/form-field/form-field.js.map +1 -1
  246. package/dist/components/forms/form-field/form-field.styles.d.ts +0 -1
  247. package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
  248. package/dist/components/forms/form-field/form-field.styles.js +27 -97
  249. package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
  250. package/dist/components/forms/form-field/form-field.template.d.ts +0 -2
  251. package/dist/components/forms/form-field/form-field.template.d.ts.map +1 -1
  252. package/dist/components/forms/form-field/form-field.template.js +22 -15
  253. package/dist/components/forms/form-field/form-field.template.js.map +1 -1
  254. package/dist/components/forms/form-section/form-section.d.ts +40 -16
  255. package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
  256. package/dist/components/forms/form-section/form-section.js +47 -183
  257. package/dist/components/forms/form-section/form-section.js.map +1 -1
  258. package/dist/components/forms/form-section/form-section.styles.d.ts +2 -0
  259. package/dist/components/forms/form-section/form-section.styles.d.ts.map +1 -0
  260. package/dist/components/forms/form-section/form-section.styles.js +44 -0
  261. package/dist/components/forms/form-section/form-section.styles.js.map +1 -0
  262. package/dist/components/forms/form-section/form-section.template.d.ts +4 -0
  263. package/dist/components/forms/form-section/form-section.template.d.ts.map +1 -0
  264. package/dist/components/forms/form-section/form-section.template.js +19 -0
  265. package/dist/components/forms/form-section/form-section.template.js.map +1 -0
  266. package/dist/components/forms/validation-list/validation-list.d.ts +36 -6
  267. package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
  268. package/dist/components/forms/validation-list/validation-list.js +75 -15
  269. package/dist/components/forms/validation-list/validation-list.js.map +1 -1
  270. package/dist/components/forms/validation-list/validation-list.template.d.ts +1 -1
  271. package/dist/components/forms/validation-list/validation-list.template.d.ts.map +1 -1
  272. package/dist/components/forms/validation-list/validation-list.template.js +2 -2
  273. package/dist/components/forms/validation-list/validation-list.template.js.map +1 -1
  274. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  275. package/dist/components/inputs/code-editor/code-editor.styles.js +10 -0
  276. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  277. package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
  278. package/dist/components/inputs/combo-box/combo-box.styles.js +10 -1
  279. package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
  280. package/dist/components/inputs/date-picker/date-picker.template.d.ts.map +1 -1
  281. package/dist/components/inputs/date-picker/date-picker.template.js +4 -6
  282. package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
  283. package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
  284. package/dist/components/inputs/file-field/file-field.styles.js +3 -2
  285. package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
  286. package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
  287. package/dist/components/inputs/file-field/file-field.template.js +8 -8
  288. package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
  289. package/dist/components/inputs/file-field/file-field.truncate.d.ts +4 -3
  290. package/dist/components/inputs/file-field/file-field.truncate.d.ts.map +1 -1
  291. package/dist/components/inputs/file-field/file-field.truncate.js +8 -5
  292. package/dist/components/inputs/file-field/file-field.truncate.js.map +1 -1
  293. package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js +1 -1
  294. package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js.map +1 -1
  295. package/dist/components/inputs/password-field/password-field.template.d.ts.map +1 -1
  296. package/dist/components/inputs/password-field/password-field.template.js +2 -1
  297. package/dist/components/inputs/password-field/password-field.template.js.map +1 -1
  298. package/dist/components/inputs/search-field/search-field.d.ts +3 -0
  299. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  300. package/dist/components/inputs/search-field/search-field.js +7 -6
  301. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  302. package/dist/components/inputs/slider/slider.template.js +2 -2
  303. package/dist/components/inputs/slider/slider.template.js.map +1 -1
  304. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
  305. package/dist/components/inputs/text-editor/text-editor.mentions.js +2 -1
  306. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  307. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  308. package/dist/components/inputs/text-editor/text-editor.styles.js +10 -0
  309. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  310. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  311. package/dist/components/inputs/toggle-button/toggle-button.styles.js +18 -3
  312. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  313. package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
  314. package/dist/components/inputs/toggle-button/toggle-button.template.js +7 -3
  315. package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
  316. package/dist/components/layout/container/container.template.d.ts.map +1 -1
  317. package/dist/components/layout/container/container.template.js +2 -1
  318. package/dist/components/layout/container/container.template.js.map +1 -1
  319. package/dist/components/layout/kanban/kanban-column.template.d.ts.map +1 -1
  320. package/dist/components/layout/kanban/kanban-column.template.js +5 -7
  321. package/dist/components/layout/kanban/kanban-column.template.js.map +1 -1
  322. package/dist/components/layout/kanban/kanban.template.d.ts.map +1 -1
  323. package/dist/components/layout/kanban/kanban.template.js +2 -3
  324. package/dist/components/layout/kanban/kanban.template.js.map +1 -1
  325. package/dist/components/layout/page/page.template.d.ts.map +1 -1
  326. package/dist/components/layout/page/page.template.js +3 -2
  327. package/dist/components/layout/page/page.template.js.map +1 -1
  328. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +11 -0
  329. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  330. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +11 -0
  331. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  332. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +1 -0
  333. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
  334. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -0
  335. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
  336. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js +2 -2
  337. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js.map +1 -1
  338. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +3 -2
  339. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
  340. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +3 -2
  341. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
  342. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
  343. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +2 -1
  344. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
  345. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +1 -0
  346. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
  347. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +1 -0
  348. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
  349. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +13 -13
  350. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +13 -13
  351. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
  352. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +4 -1
  353. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
  354. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +8 -4
  355. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  356. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +8 -4
  357. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  358. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
  359. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +4 -1
  360. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
  361. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  362. package/dist/components/lists-and-tables/list-item/list-item.template.js +7 -8
  363. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  364. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +1 -1
  365. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
  366. package/dist/components/navigation/pagination/pagination.template.d.ts.map +1 -1
  367. package/dist/components/navigation/pagination/pagination.template.js +3 -2
  368. package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
  369. package/dist/components/navigation/tab-bar/tab-bar.d.ts +8 -0
  370. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  371. package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts +1 -0
  372. package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts.map +1 -1
  373. package/dist/components/navigation/tab-bar/tab-bar.i18n.js +1 -0
  374. package/dist/components/navigation/tab-bar/tab-bar.i18n.js.map +1 -1
  375. package/dist/components/navigation/tab-bar/tab-bar.js +16 -0
  376. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  377. package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
  378. package/dist/components/navigation/tab-bar/tab-bar.template.js +3 -2
  379. package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
  380. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +1 -0
  381. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  382. package/dist/components/navigation/top-title-bar/top-title-bar.js +6 -1
  383. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  384. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map +1 -1
  385. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js +2 -3
  386. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js.map +1 -1
  387. package/dist/components/status-and-feedback/badge/badge.template.d.ts.map +1 -1
  388. package/dist/components/status-and-feedback/badge/badge.template.js +3 -7
  389. package/dist/components/status-and-feedback/badge/badge.template.js.map +1 -1
  390. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.d.ts.map +1 -1
  391. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +3 -4
  392. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js.map +1 -1
  393. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.d.ts.map +1 -1
  394. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +2 -3
  395. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -1
  396. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +12 -6
  397. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
  398. package/dist/components/status-and-feedback/status-bar/status-bar.js +28 -7
  399. package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
  400. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
  401. package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
  402. package/dist/css/form.css +14 -0
  403. package/dist/css/global-open-font.css +0 -1
  404. package/dist/css/global.css +0 -1
  405. package/dist/css/rich-text.css +21 -4
  406. package/dist/css/text.css +3 -1
  407. package/dist/css/title.css +3 -1
  408. package/dist/css/variables.css +5 -0
  409. package/dist/nldd.min.js +1926 -1804
  410. package/dist/translations/en-US.d.ts.map +1 -1
  411. package/dist/translations/en-US.js +2 -0
  412. package/dist/translations/en-US.js.map +1 -1
  413. package/dist/translations/fy.d.ts.map +1 -1
  414. package/dist/translations/fy.js +2 -0
  415. package/dist/translations/fy.js.map +1 -1
  416. package/dist/translations/nl.generated.d.ts +2 -0
  417. package/dist/translations/nl.generated.d.ts.map +1 -1
  418. package/dist/translations/pap-AW.d.ts.map +1 -1
  419. package/dist/translations/pap-AW.js +2 -0
  420. package/dist/translations/pap-AW.js.map +1 -1
  421. package/dist/translations/pap-CW.d.ts.map +1 -1
  422. package/dist/translations/pap-CW.js +2 -0
  423. package/dist/translations/pap-CW.js.map +1 -1
  424. package/dist/types/react.d.ts +20 -25
  425. package/dist/types/vue.d.ts +79 -84
  426. package/dist/utilities/autoloader.generated.d.ts.map +1 -1
  427. package/dist/utilities/autoloader.generated.js +0 -1
  428. package/dist/utilities/autoloader.generated.js.map +1 -1
  429. package/dist/utilities/described-by-mixin.d.ts +36 -1
  430. package/dist/utilities/described-by-mixin.d.ts.map +1 -1
  431. package/dist/utilities/described-by-mixin.js +132 -8
  432. package/dist/utilities/described-by-mixin.js.map +1 -1
  433. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  434. package/dist/utilities/dev-rules.generated.js +33 -14
  435. package/dist/utilities/dev-rules.generated.js.map +1 -1
  436. package/dist/utilities/file-name-breaks.d.ts +13 -0
  437. package/dist/utilities/file-name-breaks.d.ts.map +1 -0
  438. package/dist/utilities/file-name-breaks.js +27 -0
  439. package/dist/utilities/file-name-breaks.js.map +1 -0
  440. package/dist/utilities/reflect-non-default.d.ts +2 -1
  441. package/dist/utilities/reflect-non-default.d.ts.map +1 -1
  442. package/dist/utilities/reflect-non-default.js +3 -2
  443. package/dist/utilities/reflect-non-default.js.map +1 -1
  444. package/dist/utilities/same-items.d.ts +10 -0
  445. package/dist/utilities/same-items.d.ts.map +1 -0
  446. package/dist/utilities/same-items.js +14 -0
  447. package/dist/utilities/same-items.js.map +1 -0
  448. package/lint/data.generated.json +1 -1
  449. package/lint/fix.js +49 -6
  450. package/lint/rule-compiler.js +7 -3
  451. package/lint/rule.schema.json +12 -0
  452. package/package.json +7 -6
  453. package/dist/cdn/chunks/described-by-mixin-k3KNxaZ2.js +0 -62
  454. package/dist/cdn/chunks/form-field-BF-6cws6.js +0 -434
  455. package/dist/cdn/chunks/form-field.i18n-B-UZduXL.js +0 -3
  456. package/dist/cdn/chunks/form-section-Cp9xiFew.js +0 -64
  457. package/dist/cdn/chunks/style-mod-DGMhzWuk.js +0 -1583
  458. package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +0 -3
  459. package/dist/css/form-section.css +0 -104
package/lint/fix.js CHANGED
@@ -131,11 +131,15 @@ function flagEdits(source, startTag, from, to) {
131
131
  /**
132
132
  * The parser says where an element ends: a comment or a string that looks like its
133
133
  * closing tag does not count. Without a closing tag of its own it stays as it is.
134
+ * `attributes` go into the start tag with the new name; one the element already
135
+ * has, under any value, makes no edit.
134
136
  */
135
- function tagEdits(source, { offset, endOffset, tag: name, startTag }, to) {
137
+ function tagEdits(source, { offset, endOffset, tag: name, startTag }, to, attributes = {}) {
136
138
  // An element the file never closes ends past the last character.
137
139
  if (!startTag || endOffset === undefined || endOffset >= source.length || !source.startsWith(`<${name}`, offset)) return [];
138
- const open = { from: offset + 1, to: offset + 1 + name.length, text: to };
140
+ if (Object.keys(attributes).some((attribute) => findAttribute(startTag, attribute))) return [];
141
+ const added = Object.entries(attributes).map(([attribute, value]) => ` ${attribute}="${value}"`).join('');
142
+ const open = { from: offset + 1, to: offset + 1 + name.length, text: to + added };
139
143
  if (startTag.selfClosing && startTag.end === endOffset) return [open];
140
144
  const closing = source.lastIndexOf('</', endOffset);
141
145
  if (closing <= offset || !new RegExp(`^</${name}\\s*>$`).test(source.slice(closing, endOffset + 1))) return [];
@@ -223,6 +227,39 @@ function unwrapEdits(source, finding, { drop = [], move = {} }) {
223
227
  return [{ from: finding.offset, to: finding.endOffset + 1, text }];
224
228
  }
225
229
 
230
+ /**
231
+ * Attributes that moved to a child of their own, such as the title of a form
232
+ * section that became an nldd-title in its header slot. The child goes first,
233
+ * with the attributes as they were written, binding and all; on a line of its
234
+ * own when the content of the element starts on one. An attribute a template
235
+ * language writes into makes no edit.
236
+ */
237
+ function childEdits(source, finding, { tag, slot, attributes }) {
238
+ const { startTag, offset, endOffset, tag: name } = finding;
239
+ if (!startTag || startTag.selfClosing || endOffset === undefined || !source.startsWith(`<${name}`, offset)) return [];
240
+ const moved = attributes.map((attribute) => findAttribute(startTag, attribute)).filter(Boolean);
241
+ if (moved.length === 0 || moved.some((attribute) => attribute.templated)) return [];
242
+ // Nothing left in the start tag: it closes up, also when it spread over lines.
243
+ const nameEnd = offset + 1 + name.length;
244
+ const removals = moved.length === startTag.attributes.length && !/\/[*/]/.test(source.slice(nameEnd, startTag.end))
245
+ ? [{ from: nameEnd, to: startTag.end, text: '' }]
246
+ : attributes.flatMap((attribute) => removeEdits(source, finding, attribute));
247
+ const collapsed = removals.length === 1 && moved.length === startTag.attributes.length && removals[0].from === nameEnd;
248
+ // An attribute that cannot go would end up both on the element and on the child.
249
+ if (!collapsed && removals.length !== moved.length) return [];
250
+ const written = moved.map((attribute) => source.slice(attribute.start, attribute.end)).join(' ');
251
+ const child = `<${tag}${slot ? ` slot="${slot}"` : ''} ${written}></${tag}>`;
252
+ const at = startTag.end + 1;
253
+ const lineStart = source.lastIndexOf('\n', offset - 1) + 1;
254
+ const indent = source.slice(lineStart, offset);
255
+ const next = /^(\r?\n)([ \t]*)(<\/)?/.exec(source.slice(at));
256
+ if (/\S/.test(indent) || !next) return [...removals, { from: at, to: at, text: child }];
257
+ // Before the closing tag of an empty element the next line is one level up.
258
+ const unit = indent.includes(' ') && !indent.includes('\t') ? ' ' : '\t';
259
+ const childIndent = next[3] ? indent + unit : next[2];
260
+ return [...removals, { from: at, to: at, text: `${next[1]}${childIndent}${child}` }];
261
+ }
262
+
226
263
  /** An edit is `{ from, to, text }` in the source. What is not certain makes none. */
227
264
  function editsOf(source, finding) {
228
265
  const { fix, offset, tag, mention, startTag } = finding;
@@ -231,10 +268,13 @@ function editsOf(source, finding) {
231
268
  ...Object.entries(fix.value ?? {}).flatMap(([name, values]) => valueEdits(source, startTag, name, values)),
232
269
  ...(fix.remove ?? []).flatMap((name) => removeEdits(source, finding, name)),
233
270
  ...Object.entries(fix.flag ?? {}).flatMap(([from, to]) => flagEdits(source, startTag, from, to)),
234
- ...(fix.tag && mention ? [{ from: offset + 1, to: offset + 1 + tag.length, text: fix.tag }] : []),
235
- ...(fix.tag && !mention ? tagEdits(source, finding, fix.tag) : []),
271
+ // A mention, such as `<nldd-x>` in a sentence, takes the new name only: with
272
+ // attributes it would no longer be a tag that stands for the element.
273
+ ...(fix.tag && mention && !fix.attributes ? [{ from: offset + 1, to: offset + 1 + tag.length, text: fix.tag }] : []),
274
+ ...(fix.tag && !mention ? tagEdits(source, finding, fix.tag, fix.attributes) : []),
236
275
  ...(fix.wrap ? wrapEdits(source, finding, fix.wrap) : []),
237
276
  ...(fix.unwrap ? unwrapEdits(source, finding, fix.unwrap) : []),
277
+ ...(fix.child ? childEdits(source, finding, fix.child) : []),
238
278
  ...(fix.translation ? translationEdits(source, finding, fix.translation) : []),
239
279
  // A token that got another name: the finding spans the old name in a `var()`, and
240
280
  // startsWith checks that the span still holds it.
@@ -345,6 +385,7 @@ export function renameReferences(source, renamedTags, kind) {
345
385
  fixed += count;
346
386
  };
347
387
  for (const [from, to] of renamedTags) {
388
+ if (to === null) continue;
348
389
  if (new RegExp(`(define|customElement)\\(\\s*["'\`]${from}["'\`]`).test(source)) continue;
349
390
  apply(replaceAll(text, nameIn(entryPoint(from)), entryPoint(to)));
350
391
  apply(replaceAll(text, nameIn(toClass(from)), toClass(to)));
@@ -372,7 +413,7 @@ const overlaps = (a, b) => a.from === b.from || (a.from < b.to && b.from < a.to)
372
413
  /**
373
414
  * One pass of fixes. An edit that overlaps one already taken is left for the next pass, so a
374
415
  * caller applies this until `fixed` is 0, as fixUntilStable does.
375
- * @returns {{ source: string, fixed: number, renamedTags: Map<string, string> }}
416
+ * @returns {{ source: string, fixed: number, renamedTags: Map<string, string | null> }}
376
417
  */
377
418
  export function applyFixes(source, findings) {
378
419
  const renamedTags = new Map();
@@ -388,7 +429,9 @@ export function applyFixes(source, findings) {
388
429
  const clash = (edit, i) => unique.some((other) => overlaps(edit, other)) || found.slice(i + 1).some((other) => overlaps(edit, other));
389
430
  if (found.length === 0 || found.some(clash)) continue;
390
431
  unique.push(...found);
391
- if (finding.fix.tag) renamedTags.set(finding.tag, finding.fix.tag);
432
+ // A tag that took attributes with its new name meant more than that name, so
433
+ // what names it elsewhere is pointed at, not renamed: `null` says so.
434
+ if (finding.fix.tag) renamedTags.set(finding.tag, finding.fix.attributes ? null : finding.fix.tag);
392
435
  if (finding.fix.translation) translated.add(finding.offset);
393
436
  }
394
437
  let fixed = source;
@@ -38,14 +38,14 @@ function excepted(className, node, favorable = true) {
38
38
  const CSS_PSEUDOS = new Set(['is', 'not', 'has', 'where', 'matches']);
39
39
 
40
40
  /**
41
- * Whether a field hands its label to `target`, as _findInput in nldd-form-field does:
42
- * the first input in document order, helper text left out. The answer is `maybe` when
41
+ * Whether a field hands its label to `target`, as _findInputs in nldd-form-field does:
42
+ * the first input in document order, help text in the `help-text` slot left out. The answer is `maybe` when
43
43
  * something before it may or may not be an input that renders.
44
44
  */
45
45
  function findsInput(node, target, isInput, uncertain = false) {
46
46
  let maybe = uncertain;
47
47
  for (const child of node.children) {
48
- if (child.name === 'nldd-form-field-help-text') continue;
48
+ if (child.attrs.get('slot') === 'help-text') continue;
49
49
  const unsure = maybe || child.conditional || child.repeated;
50
50
  if (child === target) return maybe ? 'maybe' : 'yes';
51
51
  if (isInput(child)) {
@@ -63,6 +63,10 @@ function fieldLabelCheck(isInput, allowMaybe) {
63
63
  return (node) => {
64
64
  for (let parent = node.parent; parent; parent = parent.parent) {
65
65
  if (parent.name === 'nldd-form-field') {
66
+ // A group names itself and none of its controls.
67
+ // A boolean attribute: `group="false"` is a group too.
68
+ if (parent.attrs.get('group') === BOUND) return allowMaybe;
69
+ if (parent.attrs.has('group')) return false;
66
70
  const label = parent.attrs.get('label');
67
71
  const unknownLabel = label === BOUND || parent.spread;
68
72
  if (!unknownLabel && !label) return false;
@@ -24,8 +24,20 @@
24
24
  "remove": { "type": "array", "items": { "type": "string" }, "description": "Attributes in `removed` that do nothing any more." },
25
25
  "flag": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Attributes in `removed` whose value became a boolean attribute, old to new. The context names the value; only a value written out in the markup." },
26
26
  "tag": { "type": "string", "description": "The new tag of a component in `removed` that got another name." },
27
+ "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." },
27
28
  "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." },
28
29
  "wrap": { "type": "string", "description": "The element that the text of an element goes in, with any inline elements. Only content written out in the markup, with inline elements only." },
30
+ "child": {
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "required": ["tag", "attributes"],
34
+ "properties": {
35
+ "tag": { "type": "string", "description": "The element the attributes move to." },
36
+ "slot": { "type": "string", "description": "The slot that element goes in." },
37
+ "attributes": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Attributes in `removed` that move, as they are written." }
38
+ },
39
+ "description": "Attributes in `removed` that moved to a child of their own, which the fix adds as the first child. Only attributes the markup writes out or binds."
40
+ },
29
41
  "unwrap": {
30
42
  "type": "object",
31
43
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nldd/design-system",
3
- "version": "0.29.3",
3
+ "version": "0.30.1",
4
4
  "description": "Designsysteem voor de Nederlandse Digitale Dienst",
5
5
  "type": "module",
6
6
  "main": "dist/components/index.js",
@@ -661,8 +661,8 @@
661
661
  "@semantic-release/exec": "^7.1.0",
662
662
  "@semantic-release/git": "^11.0.1",
663
663
  "@types/react": "^19.3.0",
664
- "@vitest/browser-playwright": "5.1.1",
665
- "@vitest/coverage-v8": "5.1.1",
664
+ "@vitest/browser-playwright": "5.1.2",
665
+ "@vitest/coverage-v8": "5.1.2",
666
666
  "ajv": "^8.20.0",
667
667
  "axe-core": "^4.14.1",
668
668
  "conventional-changelog": "^8.1.0",
@@ -676,10 +676,11 @@
676
676
  "svgo": "^4.1.0",
677
677
  "typescript": "^5.3.0",
678
678
  "typescript-eslint": "^8.73.0",
679
- "vite": "8.3.8",
680
- "vitest": "5.1.1",
679
+ "vite": "8.4.0",
680
+ "vitest": "5.1.2",
681
681
  "vue": "^3.5.40",
682
682
  "vue-tsc": "^3.3.7",
683
+ "web-features": "^3.48.0",
683
684
  "yaml": "^2.9.1"
684
685
  },
685
686
  "engines": {
@@ -722,7 +723,7 @@
722
723
  "conventional-changelog-conventionalcommits": "10.2.1"
723
724
  },
724
725
  "optionalDependencies": {
725
- "oxc-parser": "^0.159.0"
726
+ "oxc-parser": "^0.160.0"
726
727
  },
727
728
  "bin": {
728
729
  "nldd": "lint/cli.js"
@@ -1,62 +0,0 @@
1
- import { r as e } from "./custom-element-aLDsY95V.js";
2
- import { r as t } from "./element-state-D-J_cHEV.js";
3
- import { t as n } from "./owned-attribute-x9OCTy_4.js";
4
- import { t as r } from "./decorate-D28R7mwV.js";
5
- // src/utilities/described-by-mixin.ts
6
- function i(e, t, n = !1) {
7
- if (!e) return;
8
- if (!n && "describedByElements" in e) {
9
- e.describedByElements = [...t];
10
- return;
11
- }
12
- let r = e;
13
- r.ariaDescribedByElements = t.length ? [...t] : null;
14
- }
15
- function a(e, t, n = !1) {
16
- e && (!n && "invalid" in e ? e.invalid = t : t ? e.setAttribute("aria-invalid", "true") : e.removeAttribute("aria-invalid"));
17
- }
18
- function o(o) {
19
- class s extends o {
20
- constructor(...e) {
21
- super(...e), this.describedByElements = [], this.accessibleDescription = "", this.accessibleDescribedBy = "", this._descriptionTextElement = null, this._appliedDescription = null, this.addController({ hostUpdated: () => {
22
- let e = this.describedTarget(), t = e === this;
23
- i(e, [
24
- ...this.describedByElements,
25
- ...this._appDescriptions(t),
26
- ...this.ownDescriptions()
27
- ], t);
28
- let n = this.invalid;
29
- n !== void 0 && a(e, n, t);
30
- } }), this.addEventListener("focusin", () => {
31
- this.accessibleDescribedBy && this.requestUpdate();
32
- });
33
- }
34
- _appDescriptions(e) {
35
- let r = (this.accessibleDescribedBy ?? "").split(/\s+/).filter(Boolean), i = this.getRootNode(), a = r.map((e) => i.getElementById ? i.getElementById(e) : null).filter((e) => e !== null);
36
- t(this, "no-description-target", a.length < r.length);
37
- let o = a.length ? "" : (this.accessibleDescription ?? "").trim();
38
- if (e) return this._appliedDescription = n(this, "aria-description", o, this._appliedDescription), a;
39
- if (o) {
40
- let e = this._descriptionTextElement;
41
- return e && e.getRootNode() === this.shadowRoot || (e = document.createElement("span"), e.hidden = !0, e.dataset.description = "", this.shadowRoot?.append(e), this._descriptionTextElement = e), e.textContent = o, [e];
42
- }
43
- return this._descriptionTextElement?.remove(), this._descriptionTextElement = null, a;
44
- }
45
- describedTarget() {
46
- return this.shadowRoot?.querySelector("input, textarea, select") ?? null;
47
- }
48
- ownDescriptions() {
49
- return [];
50
- }
51
- }
52
- return r([e({ attribute: !1 })], s.prototype, "describedByElements", void 0), r([e({
53
- type: String,
54
- reflect: !0,
55
- attribute: "accessible-description"
56
- })], s.prototype, "accessibleDescription", void 0), r([e({
57
- type: String,
58
- reflect: !0,
59
- attribute: "accessible-described-by"
60
- })], s.prototype, "accessibleDescribedBy", void 0), s;
61
- }
62
- export { i as n, o as t };