@nldd/design-system 0.23.0 → 0.25.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.
Files changed (445) hide show
  1. package/custom-elements.json +1286 -47
  2. package/dist/assets/styles/scroll-fade.d.ts +13 -0
  3. package/dist/assets/styles/scroll-fade.d.ts.map +1 -0
  4. package/dist/assets/styles/scroll-fade.js +53 -0
  5. package/dist/assets/styles/scroll-fade.js.map +1 -0
  6. package/dist/assets/styles/shadow-resets.d.ts +9 -0
  7. package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
  8. package/dist/assets/styles/shadow-resets.js +13 -0
  9. package/dist/assets/styles/shadow-resets.js.map +1 -1
  10. package/dist/cdn/autoloader.js +137 -136
  11. package/dist/cdn/chunks/{activity-indicator-D86Mv6SL.js → activity-indicator-Dc6c9HtC.js} +12 -12
  12. package/dist/cdn/chunks/{avatar-BISv6tzp.js → avatar-CHXRpWWk.js} +17 -17
  13. package/dist/cdn/chunks/{avatar-group-D7IN6DxU.js → avatar-group-B76E8oC6.js} +20 -20
  14. package/dist/cdn/chunks/{badge-R3PZUsqZ.js → badge-tO7gHhdi.js} +5 -5
  15. package/dist/cdn/chunks/{banner-DRANlf5k.js → banner-D4kFQYXF.js} +15 -15
  16. package/dist/cdn/chunks/{bar-split-view-B-Y2nqgS.js → bar-split-view-C9bYdWSR.js} +7 -7
  17. package/dist/cdn/chunks/{blockquote-pUgJLPY1.js → blockquote-DRJajjBB.js} +9 -9
  18. package/dist/cdn/chunks/{box-BbXHpBQy.js → box-D10mS19t.js} +3 -3
  19. package/dist/cdn/chunks/{breadcrumbs-BdF4m3DB.js → breadcrumbs-BUdQJG3z.js} +6 -6
  20. package/dist/cdn/chunks/{button-CsqNHH3w.js → button-CwY9fWCg.js} +61 -48
  21. package/dist/cdn/chunks/{button-bar-CnYIw4fN.js → button-bar-DkqbRvff.js} +30 -30
  22. package/dist/cdn/chunks/{button-group-xaHghyon.js → button-group-p364JgTR.js} +2 -2
  23. package/dist/cdn/chunks/{card-Bbf0aCIh.js → card-B7TaSaw7.js} +9 -9
  24. package/dist/cdn/chunks/{cell-Dggt5oYG.js → cell-BTIpXf1T.js} +6 -6
  25. package/dist/cdn/chunks/{checkbox-DmFAS8ec.js → checkbox-BLEK0rAV.js} +4 -4
  26. package/dist/cdn/chunks/{checkbox-field-fOWPH8Q7.js → checkbox-field-CDtlpN-u.js} +5 -5
  27. package/dist/cdn/chunks/{class-map-BWGTUNv4.js → class-map-5WYS_nCb.js} +1 -1
  28. package/dist/cdn/chunks/{code-editor-CANFZX66.js → code-editor-CanGMLIo.js} +5 -5
  29. package/dist/cdn/chunks/{code-viewer-C_vUEx7J.js → code-viewer-DCZ3wjMd.js} +29 -21
  30. package/dist/cdn/chunks/{codemirror-input-wexTiqWw.js → codemirror-input-CtvDBy25.js} +4 -4
  31. package/dist/cdn/chunks/{collection-_emTry5U.js → collection-D8K79X0H.js} +20 -20
  32. package/dist/cdn/chunks/{combo-box-CGwj1u4a.js → combo-box-BeWoeEY8.js} +25 -25
  33. package/dist/cdn/chunks/{container-D5Dz-j6a.js → container-Be2J-GhB.js} +48 -48
  34. package/dist/cdn/chunks/{custom-element-DbwbPetH.js → custom-element-DGlHv_OV.js} +4 -2
  35. package/dist/cdn/chunks/{date-field-ChmyLtTj.js → date-field-BLaGVd4x.js} +29 -29
  36. package/dist/cdn/chunks/{date-field.i18n-BTzc0E9a.js → date-field.i18n-BqIx3eyr.js} +1 -1
  37. package/dist/cdn/chunks/{date-picker-CUQKdjS4.js → date-picker-C4mLZKWF.js} +16 -16
  38. package/dist/cdn/chunks/{decorate-_JGq4E_7.js → decorate-Czy-wI4F.js} +1 -1
  39. package/dist/cdn/chunks/{described-by-mixin-DbnuGktP.js → described-by-mixin-fLi4Nmt7.js} +6 -3
  40. package/dist/cdn/chunks/{description-cell-BgcO7ObI.js → description-cell-aQyLX0U0.js} +6 -6
  41. package/dist/cdn/chunks/{dev-checks-KAnKlxY0.js → dev-checks-qTR6tciJ.js} +140 -33
  42. package/dist/cdn/chunks/{dist-HgRt6IKh.js → dist-BLnIbkqH.js} +1 -1
  43. package/dist/cdn/chunks/{dist-DADIyiX-.js → dist-BNS6C8sP.js} +2 -2
  44. package/dist/cdn/chunks/{dist-CLKJ5z0x.js → dist-B_fXtXqM.js} +1 -1
  45. package/dist/cdn/chunks/{dist-CKZ98PMy.js → dist-CX0g6sV1.js} +3 -3
  46. package/dist/cdn/chunks/{dist-CJLBwJx0.js → dist-CZOXq9aZ.js} +1 -1
  47. package/dist/cdn/chunks/{dist-CBnQQ6kV.js → dist-CdF0c6UD.js} +2 -2
  48. package/dist/cdn/chunks/{dist-BJrN5nEM.js → dist-DHK9tNd7.js} +1 -1
  49. package/dist/cdn/chunks/{dist-BF9euKgj.js → dist-WQv_JUmB.js} +2 -2
  50. package/dist/cdn/chunks/{dist-D7Wubc1l.js → dist-_QFa91Kz.js} +1 -1
  51. package/dist/cdn/chunks/{dist-Bz3Isx60.js → dist-fDpuYq7K.js} +1 -1
  52. package/dist/cdn/chunks/{dist-BHMubC6P.js → dist-p1FcXq9E.js} +3 -3
  53. package/dist/cdn/chunks/{divider-pO5O6wL4.js → divider-2hHcSIga.js} +2 -2
  54. package/dist/cdn/chunks/{document-tab-bar-C_-iuaUc.js → document-tab-bar-CIWiZUB5.js} +18 -18
  55. package/dist/cdn/chunks/{dropdown-DYO6049g.js → dropdown-Bwn6dQrK.js} +5 -5
  56. package/dist/cdn/chunks/{file-field-C-Fk92rD.js → file-field-CtQ6Fzkj.js} +25 -25
  57. package/dist/cdn/chunks/{form-actions-DrOX7nX8.js → form-actions-DSL0qce-.js} +3 -3
  58. package/dist/cdn/chunks/{form-field-CR2Py09O.js → form-field--t3Bz1pc.js} +7 -7
  59. package/dist/cdn/chunks/{form-section-s1mkLzaC.js → form-section-D1n8Sdmt.js} +16 -16
  60. package/dist/cdn/chunks/{form-ChXBrKw6.js → form-vSM2SOrK.js} +10 -10
  61. package/dist/cdn/chunks/{full-bleed-section-vOVI_f86.js → full-bleed-section-w2pDVC5v.js} +4 -4
  62. package/dist/cdn/chunks/{hero-Cb3qIvvh.js → hero-BypUmnRi.js} +22 -22
  63. package/dist/cdn/chunks/{icon-DBhTZrnl.js → icon-BydOAoVO.js} +7 -7
  64. package/dist/cdn/chunks/{icon-button-bDuQ_6W_.js → icon-button-C_MZ-jXt.js} +56 -43
  65. package/dist/cdn/chunks/{icon-cell-DlSZNTF3.js → icon-cell-jiYNsV84.js} +6 -6
  66. package/dist/cdn/chunks/{identity-CJTVNI9J.js → identity-D1Sw6OdG.js} +55 -39
  67. package/dist/cdn/chunks/{if-defined-28B8DYUB.js → if-defined-pKQLIQvK.js} +1 -1
  68. package/dist/cdn/chunks/{image-DlTxyeL3.js → image-DEI0hogS.js} +20 -20
  69. package/dist/cdn/chunks/{inline-dialog-BJlOrD6M.js → inline-dialog-CTjJ8Tl_.js} +15 -15
  70. package/dist/cdn/chunks/interest-controller-Ban-3NrX.js +117 -0
  71. package/dist/cdn/chunks/{just-in-time-education-DWBDshKs.js → just-in-time-education-pUUxdKPR.js} +5 -5
  72. package/dist/cdn/chunks/{kanban-DIXY8FcZ.js → kanban-KSLBcCb4.js} +9 -9
  73. package/dist/cdn/chunks/{kanban-column-DmnxctX6.js → kanban-column-RNSdiBIT.js} +8 -8
  74. package/dist/cdn/chunks/{keyboard-shortcut-kYOKwBqs.js → keyboard-shortcut-D9TYAQu1.js} +3 -3
  75. package/dist/cdn/chunks/{languages-DGtcUhLc.js → languages-DGZO3jTf.js} +12 -12
  76. package/dist/cdn/chunks/{link-DhnhhTOg.js → link-C4K1qVcb.js} +88 -24
  77. package/dist/cdn/chunks/{link-group-Bx2nkQcS.js → link-group-BEYO7nTK.js} +2 -2
  78. package/dist/cdn/chunks/{list-item-CSNBaRlK.js → list-item-CotWNKc1.js} +19 -19
  79. package/dist/cdn/chunks/{list-item-segment-D6WvAh3A.js → list-item-segment-C-yl2GAS.js} +15 -15
  80. package/dist/cdn/chunks/{list-CXCG_IEc.js → list-rMBdnf1f.js} +15 -15
  81. package/dist/cdn/chunks/{menu-bar-xahTEYTX.js → menu-bar-D9IxDwC2.js} +10 -10
  82. package/dist/cdn/chunks/{menu-bar-item-C950rfSt.js → menu-bar-item-768OWJdt.js} +18 -18
  83. package/dist/cdn/chunks/{menu-divider-XlYJ4zQz.js → menu-divider-BHAGnkBl.js} +3 -3
  84. package/dist/cdn/chunks/{menu-group-E6hIEtLj.js → menu-group-B5MAz_Yk.js} +6 -6
  85. package/dist/cdn/chunks/{menu-item-2y0VC5Gb.js → menu-item-Ba581zRi.js} +24 -24
  86. package/dist/cdn/chunks/{menu-CKxKVA36.js → menu-rE6tDSAy.js} +48 -27
  87. package/dist/cdn/chunks/{menu.template-ZBhUFgBJ.js → menu.template-Eb7J7UrL.js} +130 -76
  88. package/dist/cdn/chunks/{modal-dialog-DdFpcRLJ.js → modal-dialog-Djln8pr7.js} +5 -5
  89. package/dist/cdn/chunks/{multi-line-text-field-okvEa54Q.js → multi-line-text-field-Omt0oidK.js} +5 -5
  90. package/dist/cdn/chunks/{navigation-split-view-dNRQDSpy.js → navigation-split-view-DDng9DdF.js} +11 -11
  91. package/dist/cdn/chunks/nl.generated-CgRVSEh6.js +116 -0
  92. package/dist/cdn/chunks/{notification-2tnwXEY1.js → notification-DB6JOmCC.js} +13 -13
  93. package/dist/cdn/chunks/{number-field-CH7EvpSq.js → number-field-xgr4dysX.js} +7 -7
  94. package/dist/cdn/chunks/{one-half-one-half-section-UZDP-KO-.js → one-half-one-half-section-CFhmSDDa.js} +4 -4
  95. package/dist/cdn/chunks/{one-third-two-thirds-section-8KtESdXO.js → one-third-two-thirds-section-D0JV0GJ_.js} +4 -4
  96. package/dist/cdn/chunks/{one-time-code-field-Bvm3ND6e.js → one-time-code-field-CqgKQqdE.js} +20 -20
  97. package/dist/cdn/chunks/{page-PK1FWuKJ.js → page-DXWHG-hD.js} +10 -10
  98. package/dist/cdn/chunks/{page-footer-BamWKHwH.js → page-footer-GexGY_m-.js} +15 -15
  99. package/dist/cdn/chunks/{page-section-mixin-3q59_Jo_.js → page-section-mixin-CtiPKCqL.js} +4 -10
  100. package/dist/cdn/chunks/{pagination-47zAyQhM.js → pagination-DJkfE8t9.js} +6 -6
  101. package/dist/cdn/chunks/{password-field-FaU02DSW.js → password-field-gKiiE_5e.js} +7 -7
  102. package/dist/cdn/chunks/{popover-642mOFR5.js → popover-C-jxcCHx.js} +74 -50
  103. package/dist/cdn/chunks/{progress-bar-BivaNkIY.js → progress-bar-CBWQRWkE.js} +24 -24
  104. package/dist/cdn/chunks/{progress-circle-ewL0JIcz.js → progress-circle-CCcRDOOJ.js} +22 -22
  105. package/dist/cdn/chunks/{radio-button-DvrYYSnm.js → radio-button-B8xwJO3_.js} +3 -3
  106. package/dist/cdn/chunks/{radio-button-field-BVi0YrTF.js → radio-button-field-B9lRNOXJ.js} +12 -12
  107. package/dist/cdn/chunks/{radio-button-group-DZ9OWUNe.js → radio-button-group-Cy7Ya28w.js} +3 -3
  108. package/dist/cdn/chunks/{render-marked-CO31_4GS.js → render-marked-DjXBoUGY.js} +1 -1
  109. package/dist/cdn/chunks/{reorder-handle-cell-Doetg58W.js → reorder-handle-cell-B6V85qYk.js} +4 -4
  110. package/dist/cdn/chunks/{reorder-handle-mixin-DCjwUXr0.js → reorder-handle-mixin-DTmEmT-V.js} +2 -2
  111. package/dist/cdn/chunks/{repeat-Wb4hkVZc.js → repeat-Ck8L8Iy9.js} +1 -1
  112. package/dist/cdn/chunks/{rich-text-Do08iiIz.js → rich-text-CqQeOXwL.js} +3 -3
  113. package/dist/cdn/chunks/{row-header-mixin-CKR5rHBA.js → row-header-mixin-XRu3gHMf.js} +2 -2
  114. package/dist/cdn/chunks/scroll-fade-e6d1wo3D.js +41 -0
  115. package/dist/cdn/chunks/{search-field-CCeeGiJM.js → search-field-Cz7Ucf6x.js} +9 -9
  116. package/dist/cdn/chunks/{segmented-control-CWIPxEBq.js → segmented-control-CLzKU4SX.js} +33 -33
  117. package/dist/cdn/chunks/{shadow-resets-NKr5gQCc.js → shadow-resets-CodxnaUh.js} +11 -7
  118. package/dist/cdn/chunks/{sheet-WOjBtZvN.js → sheet-DkmSsRV3.js} +4 -4
  119. package/dist/cdn/chunks/{shell-Brn0Dr8F.js → shell-Ex_f7Ov3.js} +3 -3
  120. package/dist/cdn/chunks/{side-by-side-split-view-DGIMsyma.js → side-by-side-split-view-C8aSEGRc.js} +7 -7
  121. package/dist/cdn/chunks/{sidebar-section-BXHeI8GN.js → sidebar-section-CnD-3i7r.js} +8 -8
  122. package/dist/cdn/chunks/{simple-section-C8lJZLAO.js → simple-section-CeKnmobI.js} +4 -4
  123. package/dist/cdn/chunks/{skip-link-QdRgHljr.js → skip-link-DwtFm_NJ.js} +13 -8
  124. package/dist/cdn/chunks/skip-link.i18n-B7pVqo5u.js +6 -0
  125. package/dist/cdn/chunks/{slider-BhjBeWqc.js → slider-BVdkwNW3.js} +21 -21
  126. package/dist/cdn/chunks/slot-content-2qH2vEC_.js +22 -0
  127. package/dist/cdn/chunks/slotted-block-xNpJoXLz.js +14 -0
  128. package/dist/cdn/chunks/{spacer-BgkOjuUj.js → spacer-H4zmoDr_.js} +3 -3
  129. package/dist/cdn/chunks/{spacer-cell-DBI0PVd7.js → spacer-cell-BES4eJH1.js} +4 -4
  130. package/dist/cdn/chunks/{split-button-DfD9vxPe.js → split-button-Caa30uTx.js} +7 -7
  131. package/dist/cdn/chunks/{split-view-divider-B4NFlri5.js → split-view-divider-klvZ8lgP.js} +2 -2
  132. package/dist/cdn/chunks/{split-view-pane-CwFf13hX.js → split-view-pane-Cnx56S5C.js} +4 -4
  133. package/dist/cdn/chunks/{stacked-split-view-BmbzTinq.js → stacked-split-view-CYdGBY7Q.js} +7 -7
  134. package/dist/cdn/chunks/{static-html-CZrcQRgC.js → static-html--Xd5vkAU.js} +1 -1
  135. package/dist/cdn/chunks/{status-bar-CTOf_bDL.js → status-bar-CJybViWL.js} +4 -4
  136. package/dist/cdn/chunks/{step-bar-B5vzvhz-.js → step-bar-BO6Y1BrK.js} +21 -21
  137. package/dist/cdn/chunks/{step-cell-CUA-HUZv.js → step-cell-BQ8EHZVR.js} +5 -5
  138. package/dist/cdn/chunks/{stepper-LxPTQ6HJ.js → stepper-COTaJwSU.js} +6 -6
  139. package/dist/cdn/chunks/{style-map-DiIQAb_L.js → style-map-BwtZr74h.js} +1 -1
  140. package/dist/cdn/chunks/{swatch-picker-Cxv9HK3A.js → swatch-picker-5fxe3QB1.js} +21 -21
  141. package/dist/cdn/chunks/{switch-CbNSJQPp.js → switch-BUxGg2ww.js} +4 -4
  142. package/dist/cdn/chunks/{switch-field-B8vOvcKc.js → switch-field-DOsEK534.js} +5 -5
  143. package/dist/cdn/chunks/{tab-bar-D4ot_wZ4.js → tab-bar-CZ9Z9qV9.js} +21 -21
  144. package/dist/cdn/chunks/{table-uh4YPqda.js → table-SAsB1kDN.js} +5 -5
  145. package/dist/cdn/chunks/{tag-D2dCXT7A.js → tag-xuCeECO3.js} +16 -12
  146. package/dist/cdn/chunks/term-DHEvoltZ.js +212 -0
  147. package/dist/cdn/chunks/term.i18n-DVEJeOb6.js +3 -0
  148. package/dist/cdn/chunks/text-CiFzQPQw.js +260 -0
  149. package/dist/cdn/chunks/{text-cell-DNCpmw9h.js → text-cell-DQNzo2Rp.js} +74 -62
  150. package/dist/cdn/chunks/{text-editor-C6UKAmPL.js → text-editor-DCYF_nqz.js} +257 -237
  151. package/dist/cdn/chunks/{text-field-Dmkd4mHV.js → text-field-BiPeMi6s.js} +22 -22
  152. package/dist/cdn/chunks/{time-field-BfgNZbEb.js → time-field-C-Euaiy0.js} +125 -99
  153. package/dist/cdn/chunks/{time-field.i18n-CLH5vmS7.js → time-field.i18n-BM6qGbmN.js} +0 -1
  154. package/dist/cdn/chunks/{time-picker-C1SBkU-e.js → time-picker-DYkxhEYm.js} +12 -11
  155. package/dist/cdn/chunks/{title-DFrd-Fsh.js → title-DkS07R_v.js} +113 -98
  156. package/dist/cdn/chunks/{title-cell-CC1dQyth.js → title-cell-CJevv6Vg.js} +83 -74
  157. package/dist/cdn/chunks/{toggle-button-bAX6uzgz.js → toggle-button-DDqd56_3.js} +25 -25
  158. package/dist/cdn/chunks/{toggle-button-group-B7CHBww5.js → toggle-button-group-ByxgMVzH.js} +2 -2
  159. package/dist/cdn/chunks/{token-CicHNqIk.js → token-YpVKK1g4.js} +13 -13
  160. package/dist/cdn/chunks/{token-field-BFynQ-T-.js → token-field-vLdJSvUz.js} +21 -21
  161. package/dist/cdn/chunks/{toolbar-hAmL7o23.js → toolbar-C-5H46y9.js} +12 -12
  162. package/dist/cdn/chunks/{toolbar-item-CjgkcYJ2.js → toolbar-item-CvPtoAoQ.js} +3 -3
  163. package/dist/cdn/chunks/{toolbar-title-B1acxCGx.js → toolbar-title-HElUvLeY.js} +4 -4
  164. package/dist/cdn/chunks/{toolbar.styles-xiyZx5D0.js → toolbar.styles-BuJIgj1E.js} +3 -3
  165. package/dist/cdn/chunks/{tooltip-Mj47t8v7.js → tooltip-BF4HkWOi.js} +16 -16
  166. package/dist/cdn/chunks/{top-navigation-bar-vP5QGBXd.js → top-navigation-bar-ngF2MF40.js} +18 -18
  167. package/dist/cdn/chunks/{top-title-bar-Yt6cmRLj.js → top-title-bar-BUjpi-w6.js} +14 -14
  168. package/dist/cdn/chunks/{translations-BMMzf2sX.js → translations-BWgmZCAK.js} +1 -1
  169. package/dist/cdn/chunks/{two-thirds-one-third-section-BHN98jET.js → two-thirds-one-third-section-Ci6O8SwP.js} +4 -4
  170. package/dist/cdn/chunks/{validation-list-CUPzu9_z.js → validation-list-BBNFz_2I.js} +10 -10
  171. package/dist/cdn/chunks/{visibility-mixin-DPuxf-sj.js → visibility-mixin-BP5T5qYB.js} +4 -4
  172. package/dist/cdn/chunks/{visually-hidden-CvjJIBhz.js → visually-hidden-BqYWVy4n.js} +2 -2
  173. package/dist/cdn/chunks/{window-BqGlzGaS.js → window-CvgGg1Ib.js} +4 -4
  174. package/dist/cdn/chunks/{with-translations-CRvWJWep.js → with-translations-8SmMZkGa.js} +3 -3
  175. package/dist/components/actions/button/button.d.ts +9 -0
  176. package/dist/components/actions/button/button.d.ts.map +1 -1
  177. package/dist/components/actions/button/button.js +16 -0
  178. package/dist/components/actions/button/button.js.map +1 -1
  179. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  180. package/dist/components/actions/button/button.styles.js +6 -0
  181. package/dist/components/actions/button/button.styles.js.map +1 -1
  182. package/dist/components/actions/button/button.template.js +1 -1
  183. package/dist/components/actions/button/button.template.js.map +1 -1
  184. package/dist/components/actions/button-bar/button-bar.js +2 -2
  185. package/dist/components/actions/button-bar/button-bar.js.map +1 -1
  186. package/dist/components/actions/icon-button/icon-button.d.ts +8 -0
  187. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  188. package/dist/components/actions/icon-button/icon-button.js +17 -0
  189. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  190. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  191. package/dist/components/actions/icon-button/icon-button.styles.js +6 -0
  192. package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
  193. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  194. package/dist/components/actions/icon-button/icon-button.template.js +4 -2
  195. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  196. package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
  197. package/dist/components/actions/menu/menu-item.js +3 -1
  198. package/dist/components/actions/menu/menu-item.js.map +1 -1
  199. package/dist/components/actions/menu/menu.d.ts +25 -0
  200. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  201. package/dist/components/actions/menu/menu.js +86 -2
  202. package/dist/components/actions/menu/menu.js.map +1 -1
  203. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  204. package/dist/components/actions/menu/menu.styles.js +55 -3
  205. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  206. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  207. package/dist/components/actions/menu/menu.template.js +55 -53
  208. package/dist/components/actions/menu/menu.template.js.map +1 -1
  209. package/dist/components/content/code-viewer/code-viewer.d.ts +2 -1
  210. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  211. package/dist/components/content/code-viewer/code-viewer.js +26 -13
  212. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  213. package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
  214. package/dist/components/content/code-viewer/code-viewer.template.js +2 -0
  215. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  216. package/dist/components/content/identity/identity.d.ts +17 -10
  217. package/dist/components/content/identity/identity.d.ts.map +1 -1
  218. package/dist/components/content/identity/identity.js +33 -19
  219. package/dist/components/content/identity/identity.js.map +1 -1
  220. package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
  221. package/dist/components/content/identity/identity.styles.js +5 -1
  222. package/dist/components/content/identity/identity.styles.js.map +1 -1
  223. package/dist/components/content/identity/identity.template.d.ts +1 -1
  224. package/dist/components/content/identity/identity.template.d.ts.map +1 -1
  225. package/dist/components/content/identity/identity.template.js +11 -5
  226. package/dist/components/content/identity/identity.template.js.map +1 -1
  227. package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
  228. package/dist/components/content/tag/tag.styles.js +6 -2
  229. package/dist/components/content/tag/tag.styles.js.map +1 -1
  230. package/dist/components/content/term/term.d.ts +115 -0
  231. package/dist/components/content/term/term.d.ts.map +1 -0
  232. package/dist/components/content/term/term.i18n.d.ts +5 -0
  233. package/dist/components/content/term/term.i18n.d.ts.map +1 -0
  234. package/dist/components/content/term/term.i18n.js +5 -0
  235. package/dist/components/content/term/term.i18n.js.map +1 -0
  236. package/dist/components/content/term/term.js +256 -0
  237. package/dist/components/content/term/term.js.map +1 -0
  238. package/dist/components/content/term/term.styles.d.ts +2 -0
  239. package/dist/components/content/term/term.styles.d.ts.map +1 -0
  240. package/dist/components/content/term/term.styles.js +65 -0
  241. package/dist/components/content/term/term.styles.js.map +1 -0
  242. package/dist/components/content/term/term.template.d.ts +4 -0
  243. package/dist/components/content/term/term.template.d.ts.map +1 -0
  244. package/dist/components/content/term/term.template.js +55 -0
  245. package/dist/components/content/term/term.template.js.map +1 -0
  246. package/dist/components/content/text/text.d.ts +15 -2
  247. package/dist/components/content/text/text.d.ts.map +1 -1
  248. package/dist/components/content/text/text.js +19 -3
  249. package/dist/components/content/text/text.js.map +1 -1
  250. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  251. package/dist/components/content/text/text.styles.js +7 -155
  252. package/dist/components/content/text/text.styles.js.map +1 -1
  253. package/dist/components/content/text/text.template.d.ts +3 -2
  254. package/dist/components/content/text/text.template.d.ts.map +1 -1
  255. package/dist/components/content/text/text.template.js +3 -4
  256. package/dist/components/content/text/text.template.js.map +1 -1
  257. package/dist/components/content/title/title.d.ts +22 -7
  258. package/dist/components/content/title/title.d.ts.map +1 -1
  259. package/dist/components/content/title/title.js +43 -19
  260. package/dist/components/content/title/title.js.map +1 -1
  261. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  262. package/dist/components/content/tooltip/tooltip.js +8 -7
  263. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  264. package/dist/components/forms/form/form.d.ts +2 -2
  265. package/dist/components/forms/form/form.d.ts.map +1 -1
  266. package/dist/components/forms/form/form.js +2 -2
  267. package/dist/components/forms/form/form.js.map +1 -1
  268. package/dist/components/forms/form-section/form-section.d.ts +2 -2
  269. package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
  270. package/dist/components/forms/form-section/form-section.js +2 -2
  271. package/dist/components/forms/form-section/form-section.js.map +1 -1
  272. package/dist/components/index.d.ts +1 -0
  273. package/dist/components/index.d.ts.map +1 -1
  274. package/dist/components/index.js +1 -0
  275. package/dist/components/index.js.map +1 -1
  276. package/dist/components/inputs/date-field/date-field.i18n.d.ts +1 -1
  277. package/dist/components/inputs/date-field/date-field.i18n.d.ts.map +1 -1
  278. package/dist/components/inputs/date-field/date-field.i18n.js +3 -2
  279. package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
  280. package/dist/components/inputs/date-field/date-field.styles.js +1 -1
  281. package/dist/components/inputs/date-field/date-field.template.js +1 -1
  282. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  283. package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
  284. package/dist/components/inputs/text-editor/text-editor.commands.js +2 -0
  285. package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
  286. package/dist/components/inputs/text-editor/text-editor.emphasis.d.ts.map +1 -1
  287. package/dist/components/inputs/text-editor/text-editor.emphasis.js +7 -0
  288. package/dist/components/inputs/text-editor/text-editor.emphasis.js.map +1 -1
  289. package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts +5 -0
  290. package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts.map +1 -1
  291. package/dist/components/inputs/text-editor/text-editor.focus-selection.js +17 -1
  292. package/dist/components/inputs/text-editor/text-editor.focus-selection.js.map +1 -1
  293. package/dist/components/inputs/time-field/time-field.d.ts +21 -6
  294. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  295. package/dist/components/inputs/time-field/time-field.i18n.d.ts +0 -1
  296. package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -1
  297. package/dist/components/inputs/time-field/time-field.i18n.js +0 -2
  298. package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
  299. package/dist/components/inputs/time-field/time-field.js +69 -13
  300. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  301. package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
  302. package/dist/components/inputs/time-field/time-field.styles.js +13 -1
  303. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  304. package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
  305. package/dist/components/inputs/time-field/time-field.template.js +13 -10
  306. package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
  307. package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
  308. package/dist/components/inputs/time-picker/time-picker.styles.js +3 -2
  309. package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
  310. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
  311. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -1
  312. package/dist/components/layout/page-sections/hero/hero.d.ts +1 -1
  313. package/dist/components/layout/page-sections/hero/hero.js +1 -1
  314. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
  315. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -1
  316. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
  317. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -1
  318. package/dist/components/layout/page-sections/page-section-controls.js +2 -2
  319. package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
  320. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
  321. package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -1
  322. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
  323. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -1
  324. package/dist/components/layout/popover/popover.d.ts +29 -0
  325. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  326. package/dist/components/layout/popover/popover.js +70 -8
  327. package/dist/components/layout/popover/popover.js.map +1 -1
  328. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  329. package/dist/components/layout/popover/popover.styles.js +15 -1
  330. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  331. package/dist/components/layout/popover/popover.template.js +1 -1
  332. package/dist/components/layout/popover/popover.template.js.map +1 -1
  333. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +24 -13
  334. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  335. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +40 -31
  336. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  337. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
  338. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +5 -1
  339. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
  340. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts +1 -1
  341. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts.map +1 -1
  342. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js +15 -8
  343. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js.map +1 -1
  344. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +23 -11
  345. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  346. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +39 -29
  347. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  348. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
  349. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +5 -1
  350. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
  351. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts +1 -1
  352. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts.map +1 -1
  353. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js +15 -16
  354. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js.map +1 -1
  355. package/dist/components/navigation/link/link.d.ts +68 -2
  356. package/dist/components/navigation/link/link.d.ts.map +1 -1
  357. package/dist/components/navigation/link/link.js +162 -1
  358. package/dist/components/navigation/link/link.js.map +1 -1
  359. package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
  360. package/dist/components/navigation/link/link.styles.js +9 -0
  361. package/dist/components/navigation/link/link.styles.js.map +1 -1
  362. package/dist/components/navigation/link/link.template.d.ts +1 -0
  363. package/dist/components/navigation/link/link.template.d.ts.map +1 -1
  364. package/dist/components/navigation/link/link.template.js +4 -1
  365. package/dist/components/navigation/link/link.template.js.map +1 -1
  366. package/dist/components/navigation/skip-link/skip-link.d.ts +12 -4
  367. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  368. package/dist/components/navigation/skip-link/skip-link.i18n.d.ts +1 -0
  369. package/dist/components/navigation/skip-link/skip-link.i18n.d.ts.map +1 -1
  370. package/dist/components/navigation/skip-link/skip-link.i18n.js +2 -0
  371. package/dist/components/navigation/skip-link/skip-link.i18n.js.map +1 -1
  372. package/dist/components/navigation/skip-link/skip-link.js +18 -4
  373. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  374. package/dist/components/navigation/skip-link/skip-link.template.js +1 -1
  375. package/dist/components/navigation/skip-link/skip-link.template.js.map +1 -1
  376. package/dist/css/global-open-font.css +2 -0
  377. package/dist/css/global.css +2 -0
  378. package/dist/css/link.css +93 -0
  379. package/dist/css/text.css +159 -0
  380. package/dist/css/title.css +10 -10
  381. package/dist/nldd.min.js +2207 -2121
  382. package/dist/translations/en-US.d.ts.map +1 -1
  383. package/dist/translations/en-US.js +3 -2
  384. package/dist/translations/en-US.js.map +1 -1
  385. package/dist/translations/fy.d.ts.map +1 -1
  386. package/dist/translations/fy.js +3 -2
  387. package/dist/translations/fy.js.map +1 -1
  388. package/dist/translations/nl.generated.d.ts +3 -2
  389. package/dist/translations/nl.generated.d.ts.map +1 -1
  390. package/dist/translations/nl.generated.js +2 -0
  391. package/dist/translations/nl.generated.js.map +1 -1
  392. package/dist/translations/pap-AW.d.ts.map +1 -1
  393. package/dist/translations/pap-AW.js +3 -2
  394. package/dist/translations/pap-AW.js.map +1 -1
  395. package/dist/translations/pap-CW.d.ts.map +1 -1
  396. package/dist/translations/pap-CW.js +3 -2
  397. package/dist/translations/pap-CW.js.map +1 -1
  398. package/dist/types/react.d.ts +40 -16
  399. package/dist/types/vue.d.ts +42 -16
  400. package/dist/utilities/autoloader.generated.d.ts.map +1 -1
  401. package/dist/utilities/autoloader.generated.js +1 -0
  402. package/dist/utilities/autoloader.generated.js.map +1 -1
  403. package/dist/utilities/custom-element.d.ts +10 -0
  404. package/dist/utilities/custom-element.d.ts.map +1 -1
  405. package/dist/utilities/custom-element.js +11 -0
  406. package/dist/utilities/custom-element.js.map +1 -1
  407. package/dist/utilities/described-by-mixin.d.ts +2 -0
  408. package/dist/utilities/described-by-mixin.d.ts.map +1 -1
  409. package/dist/utilities/described-by-mixin.js +10 -1
  410. package/dist/utilities/described-by-mixin.js.map +1 -1
  411. package/dist/utilities/dev-checks.d.ts +8 -0
  412. package/dist/utilities/dev-checks.d.ts.map +1 -1
  413. package/dist/utilities/dev-checks.js +36 -0
  414. package/dist/utilities/dev-checks.js.map +1 -1
  415. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  416. package/dist/utilities/dev-rules.generated.js +102 -17
  417. package/dist/utilities/dev-rules.generated.js.map +1 -1
  418. package/dist/utilities/interest-controller.d.ts +80 -0
  419. package/dist/utilities/interest-controller.d.ts.map +1 -0
  420. package/dist/utilities/interest-controller.js +339 -0
  421. package/dist/utilities/interest-controller.js.map +1 -0
  422. package/dist/utilities/page-section-mixin.d.ts +2 -3
  423. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  424. package/dist/utilities/page-section-mixin.js +2 -9
  425. package/dist/utilities/page-section-mixin.js.map +1 -1
  426. package/dist/utilities/slot-content.d.ts +18 -7
  427. package/dist/utilities/slot-content.d.ts.map +1 -1
  428. package/dist/utilities/slot-content.js +25 -4
  429. package/dist/utilities/slot-content.js.map +1 -1
  430. package/dist/utilities/slotted-block.d.ts +20 -0
  431. package/dist/utilities/slotted-block.d.ts.map +1 -0
  432. package/dist/utilities/slotted-block.js +30 -0
  433. package/dist/utilities/slotted-block.js.map +1 -0
  434. package/lint/data.generated.json +1 -1
  435. package/lint/fix.js +43 -2
  436. package/lint/frontends.js +149 -15
  437. package/lint/linter.js +3 -2
  438. package/lint/main.js +17 -3
  439. package/lint/project.js +2 -2
  440. package/lint/rule.schema.json +2 -1
  441. package/package.json +11 -2
  442. package/dist/cdn/chunks/nl.generated-Bo4bmwYF.js +0 -114
  443. package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +0 -3
  444. package/dist/cdn/chunks/slot-content-BLuPqVXw.js +0 -13
  445. package/dist/cdn/chunks/text-BX4Xm40t.js +0 -406
package/lint/fix.js CHANGED
@@ -154,14 +154,55 @@ function tagEdits(source, offset, endOffset, name, to) {
154
154
  return [open, { from: closing + 2, to: closing + 2 + name.length, text: to, closing: true }];
155
155
  }
156
156
 
157
+ /**
158
+ * What stands between the start tag and the closing tag of an element, when the
159
+ * file says it for certain: no hole a template fills (`{ }`, `${ }`, `{{ }}`)
160
+ * and no comment, which could hold anything.
161
+ */
162
+ function contentOf(source, offset, endOffset, name) {
163
+ if (endOffset === undefined || endOffset >= source.length || !source.startsWith(`<${name}`, offset)) return undefined;
164
+ const startTag = maskedTag(source, offset);
165
+ if (startTag.trimEnd().endsWith('/')) return undefined;
166
+ const start = offset + startTag.length + 1;
167
+ const closing = source.lastIndexOf('</', endOffset);
168
+ if (closing < start || !new RegExp(`^</${name}\\s*>$`).test(source.slice(closing, endOffset + 1))) return undefined;
169
+ const text = source.slice(start, closing);
170
+ if (/[{}]|<!--/.test(text)) return undefined;
171
+ return { startTag, start, end: closing, text };
172
+ }
173
+
174
+ /** Elements that stand in a line of text, and so in a `<p>`. */
175
+ const INLINE = new Set(['a', 'abbr', 'b', 'br', 'cite', 'code', 'del', 'em', 'i', 'ins', 'kbd', 'mark', 'q', 's', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'time', 'u', 'var', 'nldd-avatar', 'nldd-badge', 'nldd-icon', 'nldd-link', 'nldd-status-dot', 'nldd-tag', 'nldd-term', 'nldd-token']);
176
+
177
+ /** Text, with or without inline elements, goes in an element of its own, such as a `<p>`. */
178
+ function wrapEdits(source, { offset, endOffset, tag }, wrapper) {
179
+ const content = contentOf(source, offset, endOffset, tag);
180
+ const inner = content?.text.trim();
181
+ // A blank line ends raw HTML in Markdown, and indenting it leaves trailing space.
182
+ if (!inner || /\n[ \t]*\n/.test(inner)) return [];
183
+ const tags = [...inner.matchAll(/<\/?([a-zA-Z][\w-]*)/g)].map((match) => match[1].toLowerCase());
184
+ if (tags.some((name) => !INLINE.has(name))) return [];
185
+ const leading = /^\s*/.exec(content.text)[0];
186
+ const trailing = /\s*$/.exec(content.text)[0];
187
+ const base = leading.includes('\n') ? leading.slice(leading.lastIndexOf('\n') + 1) : undefined;
188
+ let wrapped = `<${wrapper}>${inner}</${wrapper}>`;
189
+ if (base !== undefined && inner.includes('\n')) {
190
+ const unit = base.includes('\t') || !base ? '\t' : ' ';
191
+ wrapped = `<${wrapper}>\n${base}${unit}${inner.replace(/\n/g, `\n${unit}`)}\n${base}</${wrapper}>`;
192
+ }
193
+ return [{ from: content.start, to: content.end, text: leading + wrapped + trailing }];
194
+ }
195
+
157
196
  /** An edit is `{ from, to, text }` in the source. What is not certain makes none. */
158
- function editsOf(source, { fix, offset, endOffset, tag }) {
197
+ function editsOf(source, { fix, offset, endOffset, tag, mention }) {
159
198
  return [
160
199
  ...Object.entries(fix.rename ?? {}).flatMap(([from, to]) => renameEdits(source, offset, from, to)),
161
200
  ...Object.entries(fix.value ?? {}).flatMap(([name, values]) => valueEdits(source, offset, name, values)),
162
201
  ...(fix.remove ?? []).flatMap((name) => removeEdits(source, offset, name)),
163
202
  ...Object.entries(fix.flag ?? {}).flatMap(([from, to]) => flagEdits(source, offset, from, to)),
164
- ...(fix.tag ? tagEdits(source, offset, endOffset, tag, fix.tag) : []),
203
+ ...(fix.tag && mention ? [{ from: offset + 1, to: offset + 1 + tag.length, text: fix.tag }] : []),
204
+ ...(fix.tag && !mention ? tagEdits(source, offset, endOffset, tag, fix.tag) : []),
205
+ ...(fix.wrap ? wrapEdits(source, { offset, endOffset, tag }, fix.wrap) : []),
165
206
  ];
166
207
  }
167
208
 
package/lint/frontends.js CHANGED
@@ -97,8 +97,18 @@ function readHtmlChildren(children, parent, given) {
97
97
  // A Lit hole between the tags can render anything, or nothing.
98
98
  const hole = given.lit && children.find((node) => node.type === 'text' && node.data.includes('${'));
99
99
  if (hole) appendUnknown(parent, hole.startIndex ?? 0);
100
+ // In Markdown, text in an element can be a paragraph the renderer writes around it.
101
+ const paragraphs = given.markdown && parent.name !== '#root' ? given.markdown(children) : null;
100
102
  for (const node of children) {
101
- if (node.type === 'text' && node.data.trim()) parent.text = true;
103
+ if (node.type === 'text' && node.data.trim()) {
104
+ const paragraph = paragraphs?.(node.data);
105
+ if (paragraph?.loose !== false) parent.text = true;
106
+ if (paragraph?.at >= 0) {
107
+ const p = createNode('p', (node.startIndex ?? 0) + paragraph.at);
108
+ p.text = true;
109
+ appendChild(parent, p);
110
+ }
111
+ }
102
112
  // htmlparser2 gives <style> a type of its own. The group pure reads every block in it.
103
113
  if (node.type === 'style') {
104
114
  for (const block of styleBlocks(node)) appendChild(parent, styleNode(block));
@@ -124,17 +134,23 @@ function readHtmlChildren(children, parent, given) {
124
134
  repeated: inherited.repeated || Object.keys(attribs).some((key) => REPEATED.has(key)),
125
135
  inert: inherited.inert,
126
136
  lit: inherited.lit,
137
+ markdown: inherited.markdown,
138
+ jsx: inherited.jsx,
127
139
  });
128
140
  continue;
129
141
  }
130
142
  const element = createNode(name, node.startIndex ?? 0);
131
143
  element.endOffset = node.endIndex ?? undefined;
132
- for (const [key, value] of Object.entries(attribs)) readAttribute(element, key, value);
144
+ for (const [key, value] of Object.entries(attribs)) {
145
+ // MDX writes JSX: a handler or a prop for React is no attribute.
146
+ if (inherited.jsx && (/^on[A-Z]/.test(key) || REACT_ONLY.has(key))) continue;
147
+ readAttribute(element, inherited.jsx && key === 'className' ? 'class' : key, value);
148
+ }
133
149
  element.conditional ||= inherited.conditional;
134
150
  element.repeated ||= inherited.repeated;
135
151
  element.opaque = isOpaqueTag(name) || name === 'template';
136
152
  appendChild(parent, element);
137
- readHtmlChildren(node.children, element, { inert: inherited.inert, lit: inherited.lit });
153
+ readHtmlChildren(node.children, element, { inert: inherited.inert, lit: inherited.lit, markdown: inherited.markdown, jsx: inherited.jsx });
138
154
  }
139
155
  }
140
156
 
@@ -279,24 +295,115 @@ export function parseStylesheet(source, filename = '') {
279
295
  return blocks.length === 0 ? [] : [stylesheetRoot(blocks)];
280
296
  }
281
297
 
282
- /** Every code block and inline tag in a Markdown file is a tree of its own. */
283
- export function parseMarkdown(source) {
298
+ /**
299
+ * Where a string in a script ends, from its opening quote. A template literal can
300
+ * span lines, the others cannot.
301
+ */
302
+ function endOfString(source, start) {
303
+ let at = start + 1;
304
+ while (at < source.length && source[at] !== source[start] && (source[start] === '`' || source[at] !== '\n')) {
305
+ at += source[at] === '\\' ? 2 : 1;
306
+ }
307
+ return at;
308
+ }
309
+
310
+ /** Where a `{…}` expression ends, from its opening brace, past strings and nested braces. */
311
+ function endOfExpression(source, start) {
312
+ let depth = 0;
313
+ for (let at = start; at < source.length; at += 1) {
314
+ const char = source[at];
315
+ if (char === '"' || char === "'" || char === '`') at = endOfString(source, at);
316
+ else if (char === '{') depth += 1;
317
+ else if (char === '}' && --depth === 0) return at;
318
+ }
319
+ return source.length - 1;
320
+ }
321
+
322
+ /**
323
+ * MDX as HTML of the same length. An expression in a value reads as bound, a
324
+ * spread as `v-bind`, an expression between the tags as a component of the app, and a
325
+ * comment as nothing. ESM goes, so `import` and `export` are not prose.
326
+ */
327
+ function mdxAsHtml(mdx) {
328
+ const source = mdx.replace(/^(?:import|export)\s.*(?:\n.*\S.*)*/gm, blank);
329
+ const out = source.split('');
330
+ let inTag = false;
331
+ for (let at = 0; at < out.length; at += 1) {
332
+ const char = out[at];
333
+ if (inTag && (char === '"' || char === "'")) at = endOfString(source, at);
334
+ else if (char === '<' && /[a-zA-Z/]/.test(source[at + 1] ?? '')) inTag = true;
335
+ else if (char === '>') inTag = false;
336
+ else if (char === '{') {
337
+ const end = endOfExpression(source, at);
338
+ const length = end - at + 1;
339
+ let fill;
340
+ // An empty `{}` is no expression MDX accepts; it reads as an empty value.
341
+ if (inTag && out[at - 1] === '=') fill = length >= 3 ? `\${${'x'.repeat(length - 3)}}` : '""';
342
+ else if (inTag) fill = length >= 6 ? 'v-bind'.padEnd(length) : `{${'x'.repeat(Math.max(length - 2, 0))}}`.slice(0, length);
343
+ else if (length >= 4 && !/^\{\s*\/\*/.test(source.slice(at, end))) fill = `<X${' '.repeat(length - 4)}/>`;
344
+ else fill = blank(source.slice(at, end + 1));
345
+ out.splice(at, length, ...fill);
346
+ at = end;
347
+ }
348
+ }
349
+ return out.join('');
350
+ }
351
+
352
+ /**
353
+ * Which text in an element Markdown writes a paragraph around. Raw HTML in Markdown
354
+ * runs to the first blank line, and what follows is Markdown again. In MDX, an
355
+ * element whose content starts on a line of its own holds Markdown, so its text is
356
+ * a paragraph; on the same line as the tag it is just text.
357
+ */
358
+ const markdownParagraphs = (mdx) => (children) => {
359
+ if (mdx) {
360
+ const flow = children[0]?.type === 'text' && /^[ \t]*\n/.test(children[0].data);
361
+ return (data) => (flow ? { loose: false, at: data.search(/\S/) } : { loose: true, at: -1 });
362
+ }
363
+ return (data) => {
364
+ const paragraph = /\n[ \t]*\n\s*\S/.exec(data);
365
+ return { loose: data.slice(0, paragraph?.index).trim() !== '', at: paragraph ? paragraph.index + paragraph[0].length - 1 : -1 };
366
+ };
367
+ };
368
+
369
+ /** A tag in a mention that the source does not close is only its start tag. */
370
+ function markMentions(node, source) {
371
+ for (const child of node.children) {
372
+ const written = source.slice(child.offset, (child.endOffset ?? 0) + 1);
373
+ if (child.name.startsWith('nldd-') && !new RegExp(`</${child.name}\\s*>$`).test(written)) {
374
+ child.mention = true;
375
+ child.endOffset = undefined;
376
+ }
377
+ markMentions(child, source);
378
+ }
379
+ }
380
+
381
+ /**
382
+ * A Markdown or MDX file: every code block is a tree of its own, an inline tag a
383
+ * mention, and the markup in the prose one tree, which is what the page renders.
384
+ */
385
+ export function parseMarkdown(source, filename = '') {
386
+ const mdx = filename.endsWith('.mdx');
284
387
  const roots = [];
285
- const read = (text, offset) => {
388
+ const read = (text, offset, given = {}) => {
286
389
  const root = createRoot();
287
390
  const padded = ' '.repeat(offset) + quietIfTemplated(text);
288
- readHtmlChildren(parseMarkup(padded, { selfClosing: true }).children, root, {});
391
+ readHtmlChildren(parseMarkup(padded, { selfClosing: true }).children, root, given);
289
392
  roots.push(root);
290
393
  };
291
- const fences = /^( *)```[^\n]*\n([\s\S]*?)^ *```/gm;
394
+ const fences = /^( *)(```|~~~)[^\n]*\n([\s\S]*?)^ *\2/gm;
292
395
  for (const match of source.matchAll(fences)) {
293
- if (match[2].includes('<nldd-')) read(match[2], match.index + match[0].indexOf('\n') + 1);
396
+ if (match[3].includes('<nldd-')) read(match[3], match.index + match[0].indexOf('\n') + 1);
294
397
  }
295
- const prose = source.replace(fences, (block) => ' '.repeat(block.length));
398
+ let prose = source.replace(fences, blank).replace(/^---\n[\s\S]*?\n---(?=\n)/, blank);
296
399
  // A bare `<nldd-button>` in a sentence names the tag and says nothing about its attributes.
297
400
  for (const match of prose.matchAll(/`(<nldd-[^`\n]*)`/g)) {
298
401
  read(match[1].replace(/^<([a-z-]+)\s*\/?>$/, '<$1 v-bind="x"><Mention /></$1>'), match.index + 1);
402
+ markMentions(roots.at(-1), source);
299
403
  }
404
+ prose = prose.replace(/`[^`\n]*`/g, blank).replace(/<[a-z][a-z+.-]*:[^\s>]*>/gi, blank);
405
+ if (mdx) prose = mdxAsHtml(prose);
406
+ if (prose.includes('<nldd-')) read(prose, 0, { markdown: markdownParagraphs(mdx), jsx: mdx });
300
407
  return roots;
301
408
  }
302
409
 
@@ -369,6 +476,25 @@ export function parseLit(source) {
369
476
  });
370
477
  }
371
478
 
479
+ /**
480
+ * A script holds `html` templates, or JSX, as a React app writes in a `.js` file.
481
+ * JSX is read only where no template holds our markup and the file parses as
482
+ * JSX: anything else stays unread, and says so.
483
+ */
484
+ export async function parseScript(source, filename) {
485
+ const templates = parseLit(source);
486
+ if (templates.length > 0 || !/<(nldd-|Nldd)/.test(source)) return templates;
487
+ await loadOxc(filename);
488
+ try {
489
+ const roots = await parseJsx(source, filename);
490
+ if (roots.syntaxError) return [];
491
+ roots.jsx = true;
492
+ return roots;
493
+ } catch {
494
+ return [];
495
+ }
496
+ }
497
+
372
498
  function jsxName(node) {
373
499
  if (node.type === 'JSXIdentifier') return node.name;
374
500
  if (node.type === 'JSXMemberExpression') return `${jsxName(node.object)}.${node.property.name}`;
@@ -611,11 +737,18 @@ function jsxTree(node, roots, detached = true) {
611
737
 
612
738
  let oxcParser;
613
739
 
614
- export async function parseJsx(source, filename) {
740
+ /** The JSX parser, an optional dependency: without it a file with JSX cannot be read, and the run says why. */
741
+ async function loadOxc(filename) {
615
742
  oxcParser ??= await import('oxc-parser').catch(() => {
616
743
  throw new Error(`Reading ${filename} needs the optional dependency oxc-parser, which needs Node 20.19 or newer.`);
617
744
  });
618
- const { program, errors } = oxcParser.parseSync(filename, source);
745
+ }
746
+
747
+ export async function parseJsx(source, filename) {
748
+ await loadOxc(filename);
749
+ // A .js file takes JSX only when asked: React apps write it there too.
750
+ const options = /\.[cm]?js$/.test(filename) ? { lang: 'jsx' } : {};
751
+ const { program, errors } = oxcParser.parseSync(filename, source, options);
619
752
  const found = [];
620
753
  collectJsx(program, found, {}, exportedNamesOf(program));
621
754
  const bindings = bindingCounts(program);
@@ -686,11 +819,12 @@ const PARSERS = {
686
819
  '.jinja2': parseHtml,
687
820
  '.vue': parseVue,
688
821
  '.md': parseMarkdown,
822
+ '.mdx': parseMarkdown,
689
823
  '.jsx': parseJsx,
690
824
  '.tsx': parseJsx,
691
825
  '.ts': parseLit,
692
- '.js': parseLit,
693
- '.mjs': parseLit,
826
+ '.js': parseScript,
827
+ '.mjs': parseScript,
694
828
  '.css': parseStylesheet,
695
829
  '.scss': parseStylesheet,
696
830
  '.sass': parseStylesheet,
@@ -705,7 +839,7 @@ const PARSERS = {
705
839
  export function readerOf(filename) {
706
840
  const parser = PARSERS[filename.slice(filename.lastIndexOf('.'))];
707
841
  if (!parser) return 'none';
708
- return parser === parseLit ? 'templates' : 'markup';
842
+ return parser === parseLit || parser === parseScript ? 'templates' : 'markup';
709
843
  }
710
844
 
711
845
  /** @returns {Promise<import('./tree.js').TreeNode[]>} */
package/lint/linter.js CHANGED
@@ -401,6 +401,7 @@ export function createLinter(data = loadData(), { wrappers = {}, severities: con
401
401
  tag: node.name,
402
402
  offset: node.offset,
403
403
  endOffset: node.endOffset,
404
+ mention: node.mention,
404
405
  ...position(node.offset),
405
406
  }))
406
407
  .concat(
@@ -408,13 +409,13 @@ export function createLinter(data = loadData(), { wrappers = {}, severities: con
408
409
  .filter(({ rule }) => ranInSource(rule))
409
410
  .map((finding) => ({ ...finding, ...position(finding.offset) })),
410
411
  );
411
- const stuck = stuckTags(source, all, /\.[jt]sx$/.test(filename));
412
+ const stuck = stuckTags(source, all, /\.[jt]sx$/.test(filename) || Boolean(parsed.jsx));
412
413
  for (const finding of all) {
413
414
  if (finding.fix && (!canFix(source, finding) || (finding.fix.tag && stuck.has(finding.tag)))) finding.fix = undefined;
414
415
  }
415
416
  const fires = (line, id) => all.some((finding) => finding.line === line && finding.rule === id);
416
417
  // A rule that did not run here says nothing, and Markdown shows a suppression as an example.
417
- const unneeded = /\.md$/.test(filename) || parsed.length === 0 || parsed.syntaxError
418
+ const unneeded = /\.mdx?$/.test(filename) || parsed.length === 0 || parsed.syntaxError
418
419
  ? []
419
420
  : [...suppressed].flatMap(([line, ids]) =>
420
421
  [...ids]
package/lint/main.js CHANGED
@@ -96,11 +96,11 @@ function isUtf8(filename) {
96
96
  function fixReferences(renamedTags, paths, root, exclude) {
97
97
  const isBuilt = (file) => relative(root, file).split(sep).some((part) => IGNORED_DIRECTORIES.has(part));
98
98
  const inMarkup = findFiles(paths, root, exclude);
99
- const elsewhere = findFiles(paths, root, exclude, REFERENCE_EXTENSIONS).filter((file) => REFERENCE_EXTENSIONS.includes(extname(file)));
99
+ const elsewhere = findFiles(paths, root, exclude, REFERENCE_EXTENSIONS).filter((file) => REFERENCE_EXTENSIONS.includes(extname(file)) && !inMarkup.includes(file));
100
100
  let fixed = 0;
101
101
  let files = 0;
102
102
  const remaining = [];
103
- const kindOf = (file) => (inMarkup.includes(file) ? 'markup' : /\.(css|scss|less)$/.test(file) ? 'styles' : 'script');
103
+ const kindOf = (file) => (/\.(css|scss|less)$/.test(file) ? 'styles' : /\.[cm]?[jt]s$/.test(file) || !inMarkup.includes(file) ? 'script' : 'markup');
104
104
  for (const list of [inMarkup, elsewhere]) {
105
105
  for (const filename of list.filter((file) => !/\.min\.[cm]?js$/.test(file))) {
106
106
  const source = readFileSync(filename, 'utf8');
@@ -116,6 +116,20 @@ function fixReferences(renamedTags, paths, root, exclude) {
116
116
  return { fixed, files, remaining };
117
117
  }
118
118
 
119
+ /**
120
+ * A script a bundler wrote: the linter reads a build through its HTML, and a bundle
121
+ * carries the styles of the components as if they were the app's. Minified code
122
+ * has few lines for its size; one long line, such as an inline SVG, does not make
123
+ * a file of the app a bundle.
124
+ */
125
+ function isBundle(filename, source) {
126
+ if (!/\.[cm]?js$/.test(filename)) return false;
127
+ return /\.min\.[cm]?js$/.test(filename) || source.length / source.split('\n').length > MINIFIED_LINE_LENGTH;
128
+ }
129
+
130
+ /** The average line length above which a script counts as minified. */
131
+ const MINIFIED_LINE_LENGTH = 500;
132
+
119
133
  const MAX_FIX_PASSES = 10;
120
134
 
121
135
  /** One fix can open the way for the next: a renamed tag has rules of its own. */
@@ -174,7 +188,7 @@ async function runLint(data, paths, options) {
174
188
  : findFiles(paths, root, config.exclude, extensions).map((filename) => ({
175
189
  filename,
176
190
  source: readFileSync(filename, 'utf8'),
177
- }));
191
+ })).filter(({ filename, source }) => !isBundle(filename, source));
178
192
 
179
193
  // Most files in an app use no component at all, and those need no parser either.
180
194
  // Tightening has to see every file the baseline names, also one without a component left.
package/lint/project.js CHANGED
@@ -6,12 +6,12 @@ import { extname, join, relative, resolve } from 'node:path';
6
6
 
7
7
  export const IGNORED_DIRECTORIES = new Set(['node_modules', 'dist', 'build', 'coverage', '.git', '.next', '.nuxt']);
8
8
  /** Markdown is linted on request: documentation is full of deliberately wrong examples. */
9
- export const DEFAULT_EXTENSIONS = ['.html', '.htm', '.j2', '.jinja', '.jinja2', '.tmpl', '.gohtml', '.vue', '.jsx', '.tsx'];
9
+ export const DEFAULT_EXTENSIONS = ['.html', '.htm', '.j2', '.jinja', '.jinja2', '.tmpl', '.gohtml', '.vue', '.jsx', '.tsx', '.js'];
10
10
 
11
11
  /** An app's own stylesheets: read for the tokens they name, and in full when the group pure is on. */
12
12
  export const STYLESHEET_EXTENSIONS = ['.css', '.scss', '.sass', '.less'];
13
13
 
14
- /** Where a tag name stands outside markup: the linter does not read these, a renamed tag does. */
14
+ /** Where a tag name stands outside markup: a renamed tag reads these, also a `.js` the linter reads as markup. */
15
15
  export const REFERENCE_EXTENSIONS = ['.js', '.mjs', '.cjs', '.ts', '.css', '.scss', '.less'];
16
16
 
17
17
  function walkDirectory(directory, found, extensions) {
@@ -23,7 +23,8 @@
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." },
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
- "tag": { "type": "string", "description": "The new tag of a component in `removed` that got another name." }
26
+ "tag": { "type": "string", "description": "The new tag of a component in `removed` that got another name." },
27
+ "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." }
27
28
  }
28
29
  },
29
30
  "context": { "type": "string", "description": "CSS selector for the elements the rule applies to." },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nldd/design-system",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "Designsysteem voor de Nederlandse Digitale Dienst",
5
5
  "type": "module",
6
6
  "main": "dist/components/index.js",
@@ -67,6 +67,10 @@
67
67
  "types": "./dist/components/content/code-viewer/code-viewer.d.ts",
68
68
  "default": "./dist/components/content/code-viewer/code-viewer.js"
69
69
  },
70
+ "./term": {
71
+ "types": "./dist/components/content/term/term.d.ts",
72
+ "default": "./dist/components/content/term/term.js"
73
+ },
70
74
  "./icon": {
71
75
  "types": "./dist/components/content/icon/icon.d.ts",
72
76
  "default": "./dist/components/content/icon/icon.js"
@@ -513,6 +517,10 @@
513
517
  "./styles/variables": "./dist/css/variables.css",
514
518
  "./styles/tokens": "./dist/css/tokens.css",
515
519
  "./styles/fouc": "./dist/css/fouc.css",
520
+ "./styles/text": "./dist/css/text.css",
521
+ "./styles/title": "./dist/css/title.css",
522
+ "./styles/link": "./dist/css/link.css",
523
+ "./styles/rich-text": "./dist/css/rich-text.css",
516
524
  "./themes": "./dist/css/themes.css",
517
525
  "./themes/*": "./dist/css/themes/*",
518
526
  "./fonts/*": "./dist/fonts/*",
@@ -572,7 +580,7 @@
572
580
  },
573
581
  "scripts": {
574
582
  "build": "npm run build:styles && npm run build:assets && npm run validate:styles && npm run validate:host-styles && npm run build:components",
575
- "build:styles": "rm -rf dist/css dist/fonts && mkdir -p dist/css dist/fonts && cp src/assets/styles/variables.css src/assets/styles/colors.generated.css src/assets/styles/rijksoverheid-fonts.css src/assets/styles/inter-font.css src/assets/styles/jetbrains-mono-font.css src/assets/styles/document-reset.css src/assets/styles/fouc.css dist/css/ && cp src/assets/styles/themes.css dist/css/ && mkdir -p dist/css/themes && cp src/assets/styles/themes/*.css dist/css/themes/ && cp src/components/content/rich-text/rich-text.css src/components/content/title/title.css src/components/forms/form/form.css src/components/forms/form-section/form-section.css dist/css/ && printf '@import \"./rijksoverheid-fonts.css\";\\n@import \"./jetbrains-mono-font.css\";\\n@import \"./variables.css\";\\n@import \"./document-reset.css\";\\n@import \"./rich-text.css\";\\n@import \"./title.css\";\\n@import \"./form-section.css\";\\n@import \"./form.css\";\\n@import \"./fouc.css\";\\n' > dist/css/global.css && printf '@import \"./inter-font.css\";\\n@import \"./jetbrains-mono-font.css\";\\n@import \"./variables.css\";\\n@import \"./document-reset.css\";\\n@import \"./rich-text.css\";\\n@import \"./title.css\";\\n@import \"./form-section.css\";\\n@import \"./form.css\";\\n@import \"./fouc.css\";\\n' > dist/css/global-open-font.css && printf '@import \"./rijksoverheid-fonts.css\";\\n@import \"./jetbrains-mono-font.css\";\\n@import \"./variables.css\";\\n' > dist/css/tokens.css && cp src/assets/fonts/*.woff2 dist/fonts/",
583
+ "build:styles": "node scripts/build-styles.js",
576
584
  "build:assets": "mkdir -p dist/favicon && cp src/assets/favicon/favicon.svg src/assets/favicon/touch-icon.png dist/ && for theme in src/assets/favicon/*/; do cp -R \"${theme%/}\" dist/favicon/; done",
577
585
  "generate:colors": "node scripts/generate-colors.js && npm run generate:themes",
578
586
  "generate:themes": "node scripts/generate-themes.js",
@@ -588,6 +596,7 @@
588
596
  "generate:publiccode": "node scripts/sync-publiccode.js",
589
597
  "generate:skill-docs": "npm run generate:component-reference && npm run generate:skill-changelog && npm run generate:skill-principles && npm run generate:skill-patterns && npm run generate:plugin-version",
590
598
  "validate:styles": "node scripts/validate-css-variables.js",
599
+ "check:server-import": "node scripts/check-server-import.js",
591
600
  "validate:host-styles": "node scripts/validate-host-styles.js",
592
601
  "validate:component-api": "node scripts/validate-component-api.js",
593
602
  "validate:skill-markup": "node scripts/validate-skill-markup.js",
@@ -1,114 +0,0 @@
1
- import { t as e } from "./button.i18n-BGFt7Z9u.js";
2
- import { t } from "./icon-button.i18n-DpZOfIS4.js";
3
- import { t as ee } from "./menu-item.i18n-CKUJBOeE.js";
4
- import { t as n } from "./menu.i18n-C6uYJsG3.js";
5
- import { t as r } from "./split-button.i18n-DtClSMga.js";
6
- import { t as i } from "./toolbar.i18n-QwS37CBC.js";
7
- import { t as a } from "./avatar-group.i18n-BYw_9wt_.js";
8
- import { t as o } from "./avatar.i18n-CMwQjBkS.js";
9
- import { t as s } from "./code-viewer.i18n-BHfSDRbK.js";
10
- import { t as c } from "./image.i18n-ONcm1h7o.js";
11
- import { t as l } from "./rich-text.i18n-BlJ68YuU.js";
12
- import { t as u } from "./token.i18n-RGD5zAtl.js";
13
- import { t as d } from "./validation-list.i18n-CM6In8zD.js";
14
- import { t as f } from "./combo-box.i18n-BorzYnJ2.js";
15
- import { t as p } from "./date-field.i18n-BTzc0E9a.js";
16
- import { r as m } from "./date-picker.i18n-Dsc_M5QK.js";
17
- import { t as h } from "./file-field.i18n-pDM7Utud.js";
18
- import { t as g } from "./number-field.i18n-BS0bINWY.js";
19
- import { t as _ } from "./password-field.i18n-CzdBn-1b.js";
20
- import { t as v } from "./search-field.i18n-B_Oc7hc-.js";
21
- import { t as y } from "./slider.i18n-DVw0c8AG.js";
22
- import { t as b } from "./stepper.i18n-COOAkaBl.js";
23
- import { t as x } from "./swatch-picker.i18n-_G0nmnGe.js";
24
- import { t as S } from "./text-editor.i18n-sJKiRQ4i.js";
25
- import { t as C } from "./time-field.i18n-CLH5vmS7.js";
26
- import { t as w } from "./time-picker.i18n-BilOCXlS.js";
27
- import { t as te } from "./token-field.i18n-BclzoR8F.js";
28
- import { t as T } from "./card.i18n-CpafLm3i.js";
29
- import { t as E } from "./collection.i18n-DqWPGnZO.js";
30
- import { t as D } from "./kanban.i18n-CWqc3e0B.js";
31
- import { t as O } from "./page-footer.i18n-pbdr4lN3.js";
32
- import { t as k } from "./sidebar-section.i18n-BuGfRMpD.js";
33
- import { t as A } from "./popover.i18n-DmFBHUvB.js";
34
- import { t as j } from "./window.i18n-CsEnUPAk.js";
35
- import { t as M } from "./reorder-handle-cell.i18n-DlH2aVwd.js";
36
- import { t as N } from "./list-item-segment.i18n-DHnrQL4V.js";
37
- import { t as P } from "./list-item.i18n-Br6J5Ev9.js";
38
- import { t as F } from "./list.i18n-C40ltgdI.js";
39
- import { t as I } from "./table.i18n-Bmb_uw_w.js";
40
- import { t as L } from "./breadcrumbs.i18n-zmO8jaTO.js";
41
- import { t as R } from "./document-tab-bar.i18n-DKrA9TnB.js";
42
- import { t as z } from "./link.i18n-DJPobGmu.js";
43
- import { t as B } from "./menu-bar.i18n-BoMu4Eoz.js";
44
- import { t as V } from "./pagination.i18n-QQMx14CQ.js";
45
- import { t as H } from "./skip-link.i18n--PbEdAmJ.js";
46
- import { t as U } from "./tab-bar.i18n-Crsc7ShA.js";
47
- import { t as W } from "./top-navigation-bar.i18n-C-lcH1nB.js";
48
- import { t as G } from "./activity-indicator.i18n-D7mCy6d2.js";
49
- import { t as K } from "./badge.i18n-DqW7hLQj.js";
50
- import { t as q } from "./banner.i18n-BOCM9rGN.js";
51
- import { t as J } from "./just-in-time-education.i18n-CW_dsaxf.js";
52
- import { t as Y } from "./notification.i18n-BKUSLN5c.js";
53
- import { t as X } from "./progress-bar.i18n-Cr5miGTx.js";
54
- import { t as Z } from "./progress-circle.i18n-CRrXuY4V.js";
55
- import { t as Q } from "./step-bar.i18n-DocExlD7.js";
56
- // src/translations/nl.generated.ts
57
- var $ = {
58
- ...e,
59
- ...t,
60
- ...ee,
61
- ...n,
62
- ...r,
63
- ...i,
64
- ...a,
65
- ...o,
66
- ...s,
67
- ...c,
68
- ...l,
69
- ...u,
70
- ...d,
71
- ...f,
72
- ...p,
73
- ...m,
74
- ...h,
75
- ...g,
76
- ..._,
77
- ...v,
78
- ...y,
79
- ...b,
80
- ...x,
81
- ...S,
82
- ...C,
83
- ...w,
84
- ...te,
85
- ...T,
86
- ...E,
87
- ...D,
88
- ...O,
89
- ...k,
90
- ...A,
91
- ...j,
92
- ...M,
93
- ...N,
94
- ...P,
95
- ...F,
96
- ...I,
97
- ...L,
98
- ...R,
99
- ...z,
100
- ...B,
101
- ...V,
102
- ...H,
103
- ...U,
104
- ...W,
105
- ...G,
106
- ...K,
107
- ...q,
108
- ...J,
109
- ...Y,
110
- ...X,
111
- ...Z,
112
- ...Q
113
- };
114
- export { $ as default, $ as nl };
@@ -1,3 +0,0 @@
1
- // src/components/navigation/skip-link/skip-link.i18n.ts
2
- var e = { "components.skip-link.action": "Sla over" };
3
- export { e as t };
@@ -1,13 +0,0 @@
1
- // src/utilities/slot-content.ts
2
- function e(e) {
3
- return e.assignedNodes().some((e) => e.nodeType === Node.ELEMENT_NODE || e.nodeType === Node.TEXT_NODE && (e.textContent ?? "").trim().length > 0);
4
- }
5
- var t = class {
6
- constructor(t) {
7
- this._host = t, this.has = !1, this.onChange = (t) => {
8
- let n = e(t.target);
9
- n !== this.has && (this.has = n, this._host.requestUpdate());
10
- };
11
- }
12
- };
13
- export { t };