@nldd/design-system 0.8.92 → 0.8.94

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 (630) hide show
  1. package/NOTICES.md +29 -27
  2. package/README.md +39 -26
  3. package/custom-elements.json +2134 -1509
  4. package/dist/components/actions/button/button.d.ts +28 -6
  5. package/dist/components/actions/button/button.d.ts.map +1 -1
  6. package/dist/components/actions/button/button.js +58 -8
  7. package/dist/components/actions/button/button.js.map +1 -1
  8. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  9. package/dist/components/actions/button/button.styles.js +44 -74
  10. package/dist/components/actions/button/button.styles.js.map +1 -1
  11. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  12. package/dist/components/actions/button/button.template.js +4 -3
  13. package/dist/components/actions/button/button.template.js.map +1 -1
  14. package/dist/components/actions/button-bar/button-bar.d.ts +11 -4
  15. package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
  16. package/dist/components/actions/button-bar/button-bar.js +25 -9
  17. package/dist/components/actions/button-bar/button-bar.js.map +1 -1
  18. package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
  19. package/dist/components/actions/button-bar/button-bar.styles.js +18 -3
  20. package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
  21. package/dist/components/actions/button-group/button-group.d.ts +48 -3
  22. package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
  23. package/dist/components/actions/button-group/button-group.js +104 -11
  24. package/dist/components/actions/button-group/button-group.js.map +1 -1
  25. package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
  26. package/dist/components/actions/button-group/button-group.styles.js +64 -4
  27. package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
  28. package/dist/components/actions/icon-button/icon-button.d.ts +13 -7
  29. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  30. package/dist/components/actions/icon-button/icon-button.js +16 -7
  31. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  32. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  33. package/dist/components/actions/icon-button/icon-button.styles.js +35 -61
  34. package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
  35. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  36. package/dist/components/actions/icon-button/icon-button.template.js +8 -4
  37. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  38. package/dist/components/actions/menu/menu.d.ts +46 -31
  39. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  40. package/dist/components/actions/menu/menu.js +87 -64
  41. package/dist/components/actions/menu/menu.js.map +1 -1
  42. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  43. package/dist/components/actions/menu/menu.styles.js +4 -0
  44. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  45. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  46. package/dist/components/actions/menu/menu.template.js +13 -5
  47. package/dist/components/actions/menu/menu.template.js.map +1 -1
  48. package/dist/components/actions/split-button/split-button.d.ts +2 -2
  49. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  50. package/dist/components/actions/split-button/split-button.js +5 -4
  51. package/dist/components/actions/split-button/split-button.js.map +1 -1
  52. package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
  53. package/dist/components/actions/split-button/split-button.styles.js +18 -3
  54. package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
  55. package/dist/components/actions/split-button/split-button.template.js +2 -2
  56. package/dist/components/actions/split-button/split-button.template.js.map +1 -1
  57. package/dist/components/actions/toolbar/toolbar.d.ts +24 -10
  58. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  59. package/dist/components/actions/toolbar/toolbar.js +60 -28
  60. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  61. package/dist/components/actions/toolbar/toolbar.styles.js +7 -7
  62. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  63. package/dist/components/actions/toolbar/toolbar.template.js +3 -2
  64. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  65. package/dist/components/components.js +3034 -1382
  66. package/dist/components/content/avatar/avatar.d.ts +23 -5
  67. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  68. package/dist/components/content/avatar/avatar.js +24 -6
  69. package/dist/components/content/avatar/avatar.js.map +1 -1
  70. package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
  71. package/dist/components/content/avatar/avatar.template.js +5 -2
  72. package/dist/components/content/avatar/avatar.template.js.map +1 -1
  73. package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
  74. package/dist/components/content/avatar-group/avatar-group.template.js +6 -2
  75. package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
  76. package/dist/components/content/code-viewer/code-viewer.d.ts +2 -2
  77. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  78. package/dist/components/content/code-viewer/code-viewer.js +10 -6
  79. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  80. package/dist/components/content/code-viewer/code-viewer.styles.js +6 -6
  81. package/dist/components/content/icon/icon.d.ts +18 -6
  82. package/dist/components/content/icon/icon.d.ts.map +1 -1
  83. package/dist/components/content/icon/icon.js +30 -10
  84. package/dist/components/content/icon/icon.js.map +1 -1
  85. package/dist/components/content/identity/identity.template.d.ts.map +1 -1
  86. package/dist/components/content/identity/identity.template.js +4 -1
  87. package/dist/components/content/identity/identity.template.js.map +1 -1
  88. package/dist/components/content/image/image.d.ts.map +1 -1
  89. package/dist/components/content/image/image.js +2 -1
  90. package/dist/components/content/image/image.js.map +1 -1
  91. package/dist/components/content/image/image.template.d.ts.map +1 -1
  92. package/dist/components/content/image/image.template.js +7 -2
  93. package/dist/components/content/image/image.template.js.map +1 -1
  94. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +3 -3
  95. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
  96. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +3 -3
  97. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  98. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +7 -7
  99. package/dist/components/content/rich-text/rich-text.d.ts +20 -9
  100. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  101. package/dist/components/content/rich-text/rich-text.js +32 -16
  102. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  103. package/dist/components/content/tag/tag.d.ts +2 -2
  104. package/dist/components/content/tag/tag.d.ts.map +1 -1
  105. package/dist/components/content/tag/tag.js +5 -5
  106. package/dist/components/content/tag/tag.js.map +1 -1
  107. package/dist/components/content/tag/tag.template.js +2 -2
  108. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  109. package/dist/components/content/text/text.styles.js +1 -0
  110. package/dist/components/content/text/text.styles.js.map +1 -1
  111. package/dist/components/content/title/title.d.ts +30 -6
  112. package/dist/components/content/title/title.d.ts.map +1 -1
  113. package/dist/components/content/title/title.js +72 -8
  114. package/dist/components/content/title/title.js.map +1 -1
  115. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  116. package/dist/components/content/title/title.styles.js +41 -4
  117. package/dist/components/content/title/title.styles.js.map +1 -1
  118. package/dist/components/content/title/title.template.d.ts +2 -1
  119. package/dist/components/content/title/title.template.d.ts.map +1 -1
  120. package/dist/components/content/title/title.template.js +33 -5
  121. package/dist/components/content/title/title.template.js.map +1 -1
  122. package/dist/components/content/token/token.d.ts +15 -5
  123. package/dist/components/content/token/token.d.ts.map +1 -1
  124. package/dist/components/content/token/token.i18n.d.ts +7 -0
  125. package/dist/components/content/token/token.i18n.d.ts.map +1 -0
  126. package/dist/components/content/token/token.i18n.js +6 -0
  127. package/dist/components/content/token/token.i18n.js.map +1 -0
  128. package/dist/components/content/token/token.js +56 -14
  129. package/dist/components/content/token/token.js.map +1 -1
  130. package/dist/components/content/token/token.template.js +6 -6
  131. package/dist/components/content/token/token.template.js.map +1 -1
  132. package/dist/components/forms/form/form.d.ts +18 -7
  133. package/dist/components/forms/form/form.d.ts.map +1 -1
  134. package/dist/components/forms/form/form.js +18 -7
  135. package/dist/components/forms/form/form.js.map +1 -1
  136. package/dist/components/forms/form-actions/form-actions.d.ts +1 -1
  137. package/dist/components/forms/form-actions/form-actions.js +1 -1
  138. package/dist/components/forms/form-field/form-field.d.ts +12 -1
  139. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  140. package/dist/components/forms/form-field/form-field.js +12 -1
  141. package/dist/components/forms/form-field/form-field.js.map +1 -1
  142. package/dist/components/forms/form-section/form-section.d.ts +3 -3
  143. package/dist/components/forms/form-section/form-section.js +8 -8
  144. package/dist/components/forms/form-section/form-section.js.map +1 -1
  145. package/dist/components/forms/validation-list/validation-list.d.ts +7 -4
  146. package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
  147. package/dist/components/forms/validation-list/validation-list.js +7 -4
  148. package/dist/components/forms/validation-list/validation-list.js.map +1 -1
  149. package/dist/components/{icon-C_zwJZ_g.js → icon-DWNVcttg.js} +4 -4
  150. package/dist/components/{icon-button-oua8pmMC.js → icon-button-DHzLMmj0.js} +62 -78
  151. package/dist/components/index.d.ts +1 -0
  152. package/dist/components/index.d.ts.map +1 -1
  153. package/dist/components/index.js +2 -0
  154. package/dist/components/index.js.map +1 -1
  155. package/dist/components/inputs/checkbox/checkbox.template.d.ts.map +1 -1
  156. package/dist/components/inputs/checkbox/checkbox.template.js +11 -5
  157. package/dist/components/inputs/checkbox/checkbox.template.js.map +1 -1
  158. package/dist/components/inputs/code-editor/code-editor.d.ts +5 -5
  159. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
  160. package/dist/components/inputs/code-editor/code-editor.js +5 -5
  161. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  162. package/dist/components/inputs/code-editor/code-editor.styles.js +3 -3
  163. package/dist/components/inputs/combo-box/combo-box.d.ts +47 -3
  164. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  165. package/dist/components/inputs/combo-box/combo-box.js +119 -41
  166. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  167. package/dist/components/inputs/combo-box/combo-box.template.js +4 -4
  168. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  169. package/dist/components/inputs/date-field/date-field.js +2 -1
  170. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  171. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  172. package/dist/components/inputs/date-field/date-field.template.js +6 -4
  173. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  174. package/dist/components/inputs/date-picker/date-picker.template.js +3 -3
  175. package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
  176. package/dist/components/inputs/dropdown/dropdown.d.ts +0 -2
  177. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  178. package/dist/components/inputs/dropdown/dropdown.js +1 -13
  179. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  180. package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
  181. package/dist/components/inputs/dropdown/dropdown.styles.js +24 -12
  182. package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
  183. package/dist/components/inputs/dropdown/dropdown.template.d.ts.map +1 -1
  184. package/dist/components/inputs/dropdown/dropdown.template.js +3 -4
  185. package/dist/components/inputs/dropdown/dropdown.template.js.map +1 -1
  186. package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
  187. package/dist/components/inputs/file-field/file-field.js +2 -7
  188. package/dist/components/inputs/file-field/file-field.js.map +1 -1
  189. package/dist/components/inputs/file-field/file-field.template.js +3 -3
  190. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +2 -2
  191. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  192. package/dist/components/inputs/number-field/number-field.js +2 -1
  193. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  194. package/dist/components/inputs/number-field/number-field.styles.js +4 -4
  195. package/dist/components/inputs/number-field/number-field.template.js +2 -2
  196. package/dist/components/inputs/password-field/password-field.template.js +2 -2
  197. package/dist/components/inputs/radio-button/radio-button.template.d.ts.map +1 -1
  198. package/dist/components/inputs/radio-button/radio-button.template.js +3 -1
  199. package/dist/components/inputs/radio-button/radio-button.template.js.map +1 -1
  200. package/dist/components/inputs/search-field/search-field.d.ts +24 -24
  201. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  202. package/dist/components/inputs/search-field/search-field.js +42 -41
  203. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  204. package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
  205. package/dist/components/inputs/search-field/search-field.template.js +6 -4
  206. package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
  207. package/dist/components/inputs/segmented-control/segmented-control.d.ts +6 -0
  208. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  209. package/dist/components/inputs/segmented-control/segmented-control.js +13 -0
  210. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  211. package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
  212. package/dist/components/inputs/segmented-control/segmented-control.styles.js +54 -16
  213. package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
  214. package/dist/components/inputs/segmented-control/segmented-control.template.js +2 -2
  215. package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
  216. package/dist/components/inputs/stepper/stepper.js +2 -1
  217. package/dist/components/inputs/stepper/stepper.js.map +1 -1
  218. package/dist/components/inputs/stepper/stepper.template.js +2 -2
  219. package/dist/components/inputs/switch/switch.template.js +1 -1
  220. package/dist/components/inputs/text-editor/text-editor.annotations.d.ts.map +1 -1
  221. package/dist/components/inputs/text-editor/text-editor.annotations.js +6 -4
  222. package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -1
  223. package/dist/components/inputs/text-editor/text-editor.d.ts +27 -64
  224. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  225. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +2 -0
  226. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -1
  227. package/dist/components/inputs/text-editor/text-editor.i18n.js +5 -0
  228. package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
  229. package/dist/components/inputs/text-editor/text-editor.js +87 -20
  230. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  231. package/dist/components/inputs/text-editor/text-editor.labels.d.ts +4 -0
  232. package/dist/components/inputs/text-editor/text-editor.labels.d.ts.map +1 -0
  233. package/dist/components/inputs/text-editor/text-editor.labels.js +5 -0
  234. package/dist/components/inputs/text-editor/text-editor.labels.js.map +1 -0
  235. package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
  236. package/dist/components/inputs/text-editor/text-editor.links.js +7 -5
  237. package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -1
  238. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
  239. package/dist/components/inputs/text-editor/text-editor.markdown.js +6 -2
  240. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
  241. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +27 -3
  242. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
  243. package/dist/components/inputs/text-editor/text-editor.mentions.js +145 -26
  244. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  245. package/dist/components/inputs/text-editor/text-editor.spellcheck.d.ts +11 -0
  246. package/dist/components/inputs/text-editor/text-editor.spellcheck.d.ts.map +1 -0
  247. package/dist/components/inputs/text-editor/text-editor.spellcheck.js +134 -0
  248. package/dist/components/inputs/text-editor/text-editor.spellcheck.js.map +1 -0
  249. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  250. package/dist/components/inputs/text-editor/text-editor.styles.js +9 -3
  251. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  252. package/dist/components/inputs/text-field/text-field.template.js +2 -2
  253. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  254. package/dist/components/inputs/time-field/time-field.js +2 -1
  255. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  256. package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
  257. package/dist/components/inputs/time-field/time-field.template.js +7 -5
  258. package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
  259. package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
  260. package/dist/components/inputs/time-picker/time-picker.js +2 -1
  261. package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
  262. package/dist/components/inputs/toggle-button/toggle-button.d.ts +12 -0
  263. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  264. package/dist/components/inputs/toggle-button/toggle-button.js +17 -0
  265. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  266. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  267. package/dist/components/inputs/toggle-button/toggle-button.styles.js +99 -12
  268. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  269. package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
  270. package/dist/components/inputs/toggle-button/toggle-button.template.js +6 -4
  271. package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
  272. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +4 -2
  273. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
  274. package/dist/components/inputs/toggle-button-group/toggle-button-group.js +8 -2
  275. package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
  276. package/dist/components/inputs/token-field/token-field.d.ts +26 -1
  277. package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
  278. package/dist/components/inputs/token-field/token-field.i18n.js +1 -1
  279. package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -1
  280. package/dist/components/inputs/token-field/token-field.js +59 -6
  281. package/dist/components/inputs/token-field/token-field.js.map +1 -1
  282. package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -1
  283. package/dist/components/inputs/token-field/token-field.styles.js +2 -1
  284. package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
  285. package/dist/components/inputs/token-field/token-field.template.d.ts.map +1 -1
  286. package/dist/components/inputs/token-field/token-field.template.js +7 -5
  287. package/dist/components/inputs/token-field/token-field.template.js.map +1 -1
  288. package/dist/components/layout/app-view/app-view.d.ts +8 -0
  289. package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
  290. package/dist/components/layout/app-view/app-view.js +8 -0
  291. package/dist/components/layout/app-view/app-view.js.map +1 -1
  292. package/dist/components/layout/card/card.d.ts +7 -4
  293. package/dist/components/layout/card/card.d.ts.map +1 -1
  294. package/dist/components/layout/card/card.js +10 -7
  295. package/dist/components/layout/card/card.js.map +1 -1
  296. package/dist/components/layout/card/card.styles.d.ts.map +1 -1
  297. package/dist/components/layout/card/card.styles.js +22 -2
  298. package/dist/components/layout/card/card.styles.js.map +1 -1
  299. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  300. package/dist/components/layout/card/card.template.js +4 -2
  301. package/dist/components/layout/card/card.template.js.map +1 -1
  302. package/dist/components/layout/collection/collection.d.ts +11 -6
  303. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  304. package/dist/components/layout/collection/collection.js +21 -15
  305. package/dist/components/layout/collection/collection.js.map +1 -1
  306. package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
  307. package/dist/components/layout/collection/collection.template.js +5 -2
  308. package/dist/components/layout/collection/collection.template.js.map +1 -1
  309. package/dist/components/layout/container/container.d.ts +13 -8
  310. package/dist/components/layout/container/container.d.ts.map +1 -1
  311. package/dist/components/layout/container/container.js +19 -14
  312. package/dist/components/layout/container/container.js.map +1 -1
  313. package/dist/components/layout/page/page.d.ts +52 -2
  314. package/dist/components/layout/page/page.d.ts.map +1 -1
  315. package/dist/components/layout/page/page.js +94 -3
  316. package/dist/components/layout/page/page.js.map +1 -1
  317. package/dist/components/layout/page/page.template.d.ts +6 -0
  318. package/dist/components/layout/page/page.template.d.ts.map +1 -1
  319. package/dist/components/layout/page/page.template.js +21 -6
  320. package/dist/components/layout/page/page.template.js.map +1 -1
  321. package/dist/components/layout/page-footer/page-footer.d.ts +2 -4
  322. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
  323. package/dist/components/layout/page-footer/page-footer.js +8 -23
  324. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  325. package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
  326. package/dist/components/layout/page-footer/page-footer.template.js +16 -4
  327. package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
  328. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +4 -6
  329. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
  330. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +4 -5
  331. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
  332. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.d.ts.map +1 -1
  333. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js +8 -2
  334. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js.map +1 -1
  335. package/dist/components/layout/page-sections/hero/hero.d.ts +12 -14
  336. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  337. package/dist/components/layout/page-sections/hero/hero.js +19 -20
  338. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  339. package/dist/components/layout/page-sections/hero/hero.template.d.ts.map +1 -1
  340. package/dist/components/layout/page-sections/hero/hero.template.js +6 -2
  341. package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -1
  342. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +6 -8
  343. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
  344. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +6 -7
  345. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
  346. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.d.ts.map +1 -1
  347. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js +8 -2
  348. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js.map +1 -1
  349. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +6 -8
  350. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
  351. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +6 -7
  352. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
  353. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.d.ts.map +1 -1
  354. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js +8 -2
  355. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js.map +1 -1
  356. package/dist/components/layout/page-sections/page-section-controls.d.ts +139 -44
  357. package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -1
  358. package/dist/components/layout/page-sections/page-section-controls.js +44 -47
  359. package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
  360. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +11 -12
  361. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  362. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +21 -20
  363. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  364. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts.map +1 -1
  365. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +8 -2
  366. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
  367. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +14 -8
  368. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
  369. package/dist/components/layout/page-sections/simple-section/simple-section.js +14 -7
  370. package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
  371. package/dist/components/layout/page-sections/simple-section/simple-section.template.d.ts.map +1 -1
  372. package/dist/components/layout/page-sections/simple-section/simple-section.template.js +8 -2
  373. package/dist/components/layout/page-sections/simple-section/simple-section.template.js.map +1 -1
  374. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +6 -8
  375. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
  376. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +6 -7
  377. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
  378. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.d.ts.map +1 -1
  379. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js +8 -2
  380. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js.map +1 -1
  381. package/dist/components/layout/popover/popover.d.ts +12 -8
  382. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  383. package/dist/components/layout/popover/popover.js +40 -19
  384. package/dist/components/layout/popover/popover.js.map +1 -1
  385. package/dist/components/layout/sheet/sheet.d.ts +26 -11
  386. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  387. package/dist/components/layout/sheet/sheet.js +59 -20
  388. package/dist/components/layout/sheet/sheet.js.map +1 -1
  389. package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
  390. package/dist/components/layout/sheet/sheet.styles.js +4 -0
  391. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  392. package/dist/components/layout/sheet/sheet.template.js +1 -1
  393. package/dist/components/layout/sheet/sheet.template.js.map +1 -1
  394. package/dist/components/layout/spacer/spacer.d.ts +13 -0
  395. package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
  396. package/dist/components/layout/spacer/spacer.js +13 -0
  397. package/dist/components/layout/spacer/spacer.js.map +1 -1
  398. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +4 -1
  399. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
  400. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -1
  401. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
  402. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +11 -6
  403. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
  404. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +17 -12
  405. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
  406. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
  407. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +4 -0
  408. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
  409. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +3 -1
  410. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
  411. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +3 -1
  412. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
  413. package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +4 -4
  414. package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
  415. package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +8 -8
  416. package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
  417. package/dist/components/layout/window/window.d.ts +30 -18
  418. package/dist/components/layout/window/window.d.ts.map +1 -1
  419. package/dist/components/layout/window/window.js +68 -32
  420. package/dist/components/layout/window/window.js.map +1 -1
  421. package/dist/components/lists-and-tables/cells/cell/cell.d.ts +4 -2
  422. package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
  423. package/dist/components/lists-and-tables/cells/cell/cell.js +7 -5
  424. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
  425. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +1 -1
  426. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js +2 -1
  427. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +1 -1
  428. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.d.ts.map +1 -1
  429. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js +88 -16
  430. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js.map +1 -1
  431. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +4 -2
  432. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
  433. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +7 -5
  434. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
  435. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
  436. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +23 -0
  437. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
  438. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.d.ts.map +1 -1
  439. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js +11 -2
  440. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js.map +1 -1
  441. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -2
  442. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  443. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +5 -5
  444. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  445. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts.map +1 -1
  446. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js +8 -2
  447. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js.map +1 -1
  448. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts +11 -11
  449. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
  450. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +15 -15
  451. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
  452. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js +5 -5
  453. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js +2 -2
  454. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js.map +1 -1
  455. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +3 -3
  456. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  457. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +6 -6
  458. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  459. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts.map +1 -1
  460. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js +8 -2
  461. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js.map +1 -1
  462. package/dist/components/lists-and-tables/list/list.d.ts +14 -11
  463. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  464. package/dist/components/lists-and-tables/list/list.js +36 -36
  465. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  466. package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
  467. package/dist/components/lists-and-tables/list/list.styles.js +9 -5
  468. package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
  469. package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
  470. package/dist/components/lists-and-tables/list/list.template.js +26 -9
  471. package/dist/components/lists-and-tables/list/list.template.js.map +1 -1
  472. package/dist/components/lists-and-tables/list-item/list-item.d.ts +65 -43
  473. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  474. package/dist/components/lists-and-tables/list-item/list-item.js +116 -47
  475. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  476. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  477. package/dist/components/lists-and-tables/list-item/list-item.styles.js +4 -14
  478. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  479. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +35 -10
  480. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  481. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +45 -18
  482. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  483. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
  484. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +4 -14
  485. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
  486. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  487. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  488. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +11 -2
  489. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  490. package/dist/components/lists-and-tables/table/table.d.ts +4 -2
  491. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  492. package/dist/components/lists-and-tables/table/table.js +15 -12
  493. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  494. package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +0 -2
  495. package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  496. package/dist/components/navigation/breadcrumbs/breadcrumbs.js +4 -19
  497. package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
  498. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +1 -1
  499. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +6 -6
  500. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  501. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.d.ts.map +1 -1
  502. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +10 -4
  503. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
  504. package/dist/components/navigation/link/link.template.js +2 -2
  505. package/dist/components/navigation/menu-bar/menu-bar.js +1 -1
  506. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  507. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +4 -4
  508. package/dist/components/navigation/pagination/pagination.d.ts +0 -3
  509. package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
  510. package/dist/components/navigation/pagination/pagination.js +2 -13
  511. package/dist/components/navigation/pagination/pagination.js.map +1 -1
  512. package/dist/components/navigation/pagination/pagination.styles.js +4 -4
  513. package/dist/components/navigation/pagination/pagination.template.js +3 -3
  514. package/dist/components/navigation/tab-bar/tab-bar.template.js +2 -2
  515. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +12 -0
  516. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  517. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +37 -2
  518. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  519. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  520. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +48 -3
  521. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  522. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
  523. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -2
  524. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
  525. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +6 -2
  526. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  527. package/dist/components/navigation/top-title-bar/top-title-bar.js +7 -2
  528. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  529. package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +2 -2
  530. package/dist/components/navigation/top-title-bar/top-title-bar.template.d.ts.map +1 -1
  531. package/dist/components/navigation/top-title-bar/top-title-bar.template.js +21 -6
  532. package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
  533. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
  534. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +2 -1
  535. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
  536. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +4 -4
  537. package/dist/components/status-and-feedback/badge/badge.template.js +1 -1
  538. package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
  539. package/dist/components/status-and-feedback/banner/banner.js +2 -1
  540. package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
  541. package/dist/components/status-and-feedback/banner/banner.template.js +2 -2
  542. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +1 -1
  543. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.template.js +1 -1
  544. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +14 -5
  545. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  546. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +43 -13
  547. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  548. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.d.ts.map +1 -1
  549. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js +4 -1
  550. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js.map +1 -1
  551. package/dist/components/status-and-feedback/notification/notification.d.ts +8 -8
  552. package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
  553. package/dist/components/status-and-feedback/notification/notification.js +13 -13
  554. package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
  555. package/dist/components/status-and-feedback/notification/notification.template.d.ts.map +1 -1
  556. package/dist/components/status-and-feedback/notification/notification.template.js +6 -3
  557. package/dist/components/status-and-feedback/notification/notification.template.js.map +1 -1
  558. package/dist/components/status-and-feedback/notification/{notification-region.d.ts → notifications-area.d.ts} +3 -3
  559. package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -0
  560. package/dist/components/status-and-feedback/notification/{notification-region.js → notifications-area.js} +137 -140
  561. package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -0
  562. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +4 -4
  563. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
  564. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +11 -10
  565. package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
  566. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
  567. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +10 -6
  568. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
  569. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.d.ts.map +1 -1
  570. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +3 -2
  571. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -1
  572. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +6 -4
  573. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
  574. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +16 -13
  575. package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
  576. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +3 -3
  577. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.d.ts.map +1 -1
  578. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +106 -18
  579. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
  580. package/dist/components/status-and-feedback/status-bar/status-bar.template.js +1 -1
  581. package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts +4 -1
  582. package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +1 -1
  583. package/dist/components/status-and-feedback/step-indicator/step-indicator.js +4 -1
  584. package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +1 -1
  585. package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js +2 -2
  586. package/dist/components/{with-translations-BAKFoEKy.js → with-translations-Dt2DTXJF.js} +40 -12
  587. package/dist/css/form-section.css +4 -4
  588. package/dist/css/form.css +4 -0
  589. package/dist/css/rich-text.css +31 -12
  590. package/dist/css/variables.css +33 -56
  591. package/dist/nldd.min.js +1772 -1113
  592. package/dist/translations/en-US.d.ts +17 -0
  593. package/dist/translations/en-US.d.ts.map +1 -0
  594. package/dist/translations/en-US.js +185 -0
  595. package/dist/translations/en-US.js.map +1 -0
  596. package/dist/translations/fy.d.ts +20 -0
  597. package/dist/translations/fy.d.ts.map +1 -0
  598. package/dist/translations/fy.js +185 -0
  599. package/dist/translations/fy.js.map +1 -0
  600. package/dist/translations/nl.generated.d.ts +188 -0
  601. package/dist/translations/nl.generated.d.ts.map +1 -0
  602. package/dist/translations/nl.generated.js +101 -0
  603. package/dist/translations/nl.generated.js.map +1 -0
  604. package/dist/translations/pap-AW.d.ts +22 -0
  605. package/dist/translations/pap-AW.d.ts.map +1 -0
  606. package/dist/translations/pap-AW.js +185 -0
  607. package/dist/translations/pap-AW.js.map +1 -0
  608. package/dist/translations/pap-CW.d.ts +22 -0
  609. package/dist/translations/pap-CW.d.ts.map +1 -0
  610. package/dist/translations/pap-CW.js +185 -0
  611. package/dist/translations/pap-CW.js.map +1 -0
  612. package/dist/types/vue.d.ts +387 -302
  613. package/dist/utilities/page-section-mixin.d.ts +3 -8
  614. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  615. package/dist/utilities/page-section-mixin.js +4 -84
  616. package/dist/utilities/page-section-mixin.js.map +1 -1
  617. package/dist/utilities/title-bar-label-controller.d.ts +25 -0
  618. package/dist/utilities/title-bar-label-controller.d.ts.map +1 -0
  619. package/dist/utilities/title-bar-label-controller.js +52 -0
  620. package/dist/utilities/title-bar-label-controller.js.map +1 -0
  621. package/dist/utilities/translations.d.ts +37 -0
  622. package/dist/utilities/translations.d.ts.map +1 -0
  623. package/dist/utilities/translations.js +80 -0
  624. package/dist/utilities/translations.js.map +1 -0
  625. package/dist/utilities/with-translations.d.ts.map +1 -1
  626. package/dist/utilities/with-translations.js +2 -15
  627. package/dist/utilities/with-translations.js.map +1 -1
  628. package/package.json +32 -4
  629. package/dist/components/status-and-feedback/notification/notification-region.d.ts.map +0 -1
  630. package/dist/components/status-and-feedback/notification/notification-region.js.map +0 -1
@@ -7,8 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  /**
8
8
  * Nederlandse Digitale Dienst Title Bar Component (Lit + TypeScript)
9
9
  *
10
- * A title bar with an optional overline, title, and subtitle on the left, and a
11
- * slot at the end of the title line on the right.
10
+ * A title bar with an optional overline, title, and supporting text on the left,
11
+ * and a slot at the end of the title line on the right.
12
+ *
13
+ * The title comes from `text`, with `heading-level` for its place in the
14
+ * heading structure. `size` is how it looks, `heading-level` what it is, and
15
+ * the two are set apart. `overline` and `supporting-text` go above and below
16
+ * it. Each of the three has a slot in the same place for content that is more
17
+ * than text, and a filled slot takes the place of the attribute.
12
18
  *
13
19
  * @element nldd-title
14
20
  *
@@ -16,26 +22,63 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
16
22
  * @attr {string} color - 'content' (the default) takes the system's own content
17
23
  * colors. 'inherit' lets the title follow the text color of the surface
18
24
  * instead (for colored areas such as the filled categories); overline and
19
- * subtitle get the same color at a lowered opacity.
25
+ * supporting-text get the same color at a lowered opacity.
26
+ * @attr {string} text - Title text. Content in the default slot takes its place.
27
+ * @attr {string} supporting-text - Text below the title. Content in the supporting-text slot takes its place.
28
+ * @attr {string} overline - Text above the title. Content in the overline slot takes its place.
29
+ * @attr {1|2|3|4|5|6} heading-level - Renders text as h1–h6; absent renders a p, for a title that is not a heading.
20
30
  *
21
- * @slot overline - Optional overline above the title
22
- * @slot - Title text (use h1–h6 for semantics)
23
- * @slot subtitle - Optional subtitle below the title
31
+ * @slot overline - Overline that is more than text. Takes the place of the overline attribute.
32
+ * @slot - Title that is more than text, such as a link. Takes the place of text, and brings its own h1–h6 for semantics.
33
+ * @slot supporting-text - Supporting text that is more than text. Takes the place of the supporting-text attribute.
24
34
  * @slot end - Whatever belongs at the end of the title line: a button, a menu, a status badge, a version. Named for the position, not for a kind of content, because anything can sit there.
25
35
  */
26
36
  import { LitElement } from 'lit';
27
- import { customElement, property } from 'lit/decorators.js';
37
+ import { customElement, property, state } from 'lit/decorators.js';
28
38
  import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
29
39
  import { titleStyles } from './title.styles.js';
30
40
  import { titleTemplate } from './title.template.js';
41
+ /** One warning per page: a missed rename is one search-and-replace, not one per title. */
42
+ let warnedAboutSubtitle = false;
31
43
  let NLDDTitle = class NLDDTitle extends LitElement {
32
44
  constructor() {
33
45
  super(...arguments);
34
46
  this.size = 3;
35
47
  this.color = 'content';
48
+ this.text = '';
49
+ this.supportingText = '';
50
+ this.overline = '';
51
+ this.headingLevel = null;
52
+ /** @internal */
53
+ this._hasOverlineSlotted = false;
54
+ /** @internal */
55
+ this._hasDefaultSlotted = false;
56
+ /** @internal */
57
+ this._hasSupportingTextSlotted = false;
58
+ /** @internal */
59
+ this._onSlotChange = (e) => {
60
+ const slot = e.target;
61
+ // Whitespace between the tags is not content: without this check the text
62
+ // would vanish behind a slot that only holds a newline.
63
+ const hasContent = slot.assignedNodes().some((node) => node.nodeType === Node.ELEMENT_NODE || (node.textContent ?? '').trim().length > 0);
64
+ if (slot.name === 'overline')
65
+ this._hasOverlineSlotted = hasContent;
66
+ else if (slot.name === 'supporting-text')
67
+ this._hasSupportingTextSlotted = hasContent;
68
+ else
69
+ this._hasDefaultSlotted = hasContent;
70
+ };
71
+ }
72
+ firstUpdated() {
73
+ // The subtitle slot was renamed to supporting-text. Content in a slot that
74
+ // no longer exists is not rendered and reports nothing, so say it here.
75
+ if (import.meta.env?.DEV && !warnedAboutSubtitle && this.querySelector(':scope > [slot="subtitle"]')) {
76
+ warnedAboutSubtitle = true;
77
+ console.warn('NLDDTitle: the subtitle slot is now supporting-text. Rename slot="subtitle" to slot="supporting-text", or use the supporting-text attribute, here and on every other nldd-title.');
78
+ }
36
79
  }
37
80
  render() {
38
- return titleTemplate();
81
+ return titleTemplate(this);
39
82
  }
40
83
  };
41
84
  NLDDTitle.styles = titleStyles;
@@ -45,6 +88,27 @@ __decorate([
45
88
  __decorate([
46
89
  property({ reflect: true, converter: reflectNonDefault('content') })
47
90
  ], NLDDTitle.prototype, "color", void 0);
91
+ __decorate([
92
+ property({ reflect: true, converter: reflectNonDefault('') })
93
+ ], NLDDTitle.prototype, "text", void 0);
94
+ __decorate([
95
+ property({ reflect: true, attribute: 'supporting-text', converter: reflectNonDefault('') })
96
+ ], NLDDTitle.prototype, "supportingText", void 0);
97
+ __decorate([
98
+ property({ reflect: true, converter: reflectNonDefault('') })
99
+ ], NLDDTitle.prototype, "overline", void 0);
100
+ __decorate([
101
+ property({ type: Number, reflect: true, attribute: 'heading-level' })
102
+ ], NLDDTitle.prototype, "headingLevel", void 0);
103
+ __decorate([
104
+ state()
105
+ ], NLDDTitle.prototype, "_hasOverlineSlotted", void 0);
106
+ __decorate([
107
+ state()
108
+ ], NLDDTitle.prototype, "_hasDefaultSlotted", void 0);
109
+ __decorate([
110
+ state()
111
+ ], NLDDTitle.prototype, "_hasSupportingTextSlotted", void 0);
48
112
  NLDDTitle = __decorate([
49
113
  customElement('nldd-title')
50
114
  ], NLDDTitle);
@@ -1 +1 @@
1
- {"version":3,"file":"title.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAM7C,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QAIN,SAAI,GAAS,CAAC,CAAC;QAGf,UAAK,GAAe,SAAS,CAAC;IAK/B,CAAC;IAHS,MAAM;QACd,OAAO,aAAa,EAAE,CAAC;IACxB,CAAC;;AAVe,gBAAM,GAAG,WAAW,AAAd,CAAe;AAGrC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAC3B;AAGf;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAa,SAAS,CAAC,EAAE,CAAC;wCACnD;AAPlB,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CAYrB"}
1
+ {"version":3,"file":"title.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,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3,"file":"title.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,yBAuPvB,CAAC"}
1
+ {"version":3,"file":"title.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,yBA4RvB,CAAC"}
@@ -199,6 +199,13 @@ export const titleStyles = css `
199
199
  flex-basis: 0;
200
200
  }
201
201
 
202
+ .title__overline {
203
+ margin: 0;
204
+ color: var(--semantics-content-secondary-color);
205
+ font: var(--primitives-font-body-sm-regular-tight);
206
+ overflow-wrap: anywhere;
207
+ }
208
+
202
209
  ::slotted([slot="overline"]) {
203
210
  ${slottedReset}
204
211
  ${inheritedTextReset}
@@ -210,6 +217,15 @@ export const titleStyles = css `
210
217
 
211
218
  /* The measure is in ch, so one value covers every size: ch scales with the
212
219
  font, and 40 characters stays 40 characters at 18px and at 52px. */
220
+ .title__text {
221
+ margin: 0;
222
+ max-width: 40ch;
223
+ color: var(--semantics-content-color);
224
+ font: var(--_font);
225
+ overflow-wrap: anywhere;
226
+ text-wrap: balance;
227
+ }
228
+
213
229
  ::slotted(:not([slot])) {
214
230
  ${slottedReset}
215
231
  ${inheritedTextReset}
@@ -221,7 +237,14 @@ export const titleStyles = css `
221
237
  text-wrap: balance !important;
222
238
  }
223
239
 
224
- ::slotted([slot="subtitle"]) {
240
+ .title__supporting-text {
241
+ margin: 0;
242
+ color: var(--semantics-content-secondary-color);
243
+ font: var(--primitives-font-body-md-regular-tight);
244
+ overflow-wrap: anywhere;
245
+ }
246
+
247
+ ::slotted([slot="supporting-text"]) {
225
248
  ${slottedReset}
226
249
  ${inheritedTextReset}
227
250
  margin: 0 !important;
@@ -230,11 +253,25 @@ export const titleStyles = css `
230
253
  overflow-wrap: anywhere !important;
231
254
  }
232
255
 
233
- :host([size="5"]) ::slotted([slot="subtitle"]),
234
- :host([size="6"]) ::slotted([slot="subtitle"]) {
256
+ :host([size="5"]) .title__supporting-text,
257
+ :host([size="6"]) .title__supporting-text {
258
+ font: var(--primitives-font-body-sm-regular-tight);
259
+ }
260
+
261
+ :host([size="5"]) ::slotted([slot="supporting-text"]),
262
+ :host([size="6"]) ::slotted([slot="supporting-text"]) {
235
263
  font: var(--primitives-font-body-sm-regular-tight) !important;
236
264
  }
237
265
 
266
+ :host([color="inherit"]) .title__text {
267
+ color: inherit;
268
+ }
269
+
270
+ :host([color="inherit"]) .title__overline,
271
+ :host([color="inherit"]) .title__supporting-text {
272
+ color: color-mix(in oklab, currentColor var(--semantics-content-secondary-opacity), transparent);
273
+ }
274
+
238
275
  /* !important matches the hardened slotted rules above. */
239
276
 
240
277
  :host([color="inherit"]) ::slotted(:not([slot])) {
@@ -242,7 +279,7 @@ export const titleStyles = css `
242
279
  }
243
280
 
244
281
  :host([color="inherit"]) ::slotted([slot="overline"]),
245
- :host([color="inherit"]) ::slotted([slot="subtitle"]) {
282
+ :host([color="inherit"]) ::slotted([slot="supporting-text"]) {
246
283
  color: color-mix(in oklab, currentColor var(--semantics-content-secondary-opacity), transparent) !important;
247
284
  }
248
285
 
@@ -1 +1 @@
1
- {"version":3,"file":"title.styles.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE3F,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KA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K;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwC7C,YAAY;IACZ,kBAAkB;;;;;;;;;;;;;;;;;;;IAmBlB,YAAY;IACZ,kBAAkB;;;;;;;;;;;;;;;;;IAiBlB,YAAY;IACZ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CrB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import { TemplateResult } from 'lit';
2
- export declare function titleTemplate(): TemplateResult;
2
+ import type { NLDDTitle } from './title.js';
3
+ export declare function titleTemplate(component: NLDDTitle): TemplateResult;
3
4
  //# sourceMappingURL=title.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"title.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAE3C,wBAAgB,aAAa,IAAI,cAAc,CAa9C"}
1
+ {"version":3,"file":"title.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB5C,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,cAAc,CAsBlE"}
@@ -1,11 +1,39 @@
1
- import { html } from 'lit';
2
- export function titleTemplate() {
1
+ import { html, nothing } from 'lit';
2
+ import { html as staticHtml, unsafeStatic } from 'lit/static-html.js';
3
+ // SAFETY: the only tags unsafeStatic ever sees. A heading-level outside the map
4
+ // renders a <p>, so no tag name is derived from input.
5
+ const HEADING_TAGS = {
6
+ 1: unsafeStatic('h1'),
7
+ 2: unsafeStatic('h2'),
8
+ 3: unsafeStatic('h3'),
9
+ 4: unsafeStatic('h4'),
10
+ 5: unsafeStatic('h5'),
11
+ 6: unsafeStatic('h6'),
12
+ };
13
+ function renderText(component) {
14
+ if (!component.text || component._hasDefaultSlotted)
15
+ return nothing;
16
+ const tag = component.headingLevel ? HEADING_TAGS[component.headingLevel] : undefined;
17
+ return tag
18
+ ? staticHtml `<${tag} class="title__text">${component.text}</${tag}>`
19
+ : html `<p class="title__text">${component.text}</p>`;
20
+ }
21
+ export function titleTemplate(component) {
3
22
  return html `
4
23
  <div class="title">
5
24
  <div class="title__title-group">
6
- <slot name="overline"></slot>
7
- <slot></slot>
8
- <slot name="subtitle"></slot>
25
+ ${component.overline && !component._hasOverlineSlotted ? html `<p class="title__overline">${component.overline}</p>` : nothing}
26
+ <slot
27
+ name="overline"
28
+ @slotchange=${component._onSlotChange}
29
+ ></slot>
30
+ ${renderText(component)}
31
+ <slot @slotchange=${component._onSlotChange}></slot>
32
+ ${component.supportingText && !component._hasSupportingTextSlotted ? html `<p class="title__supporting-text">${component.supportingText}</p>` : nothing}
33
+ <slot
34
+ name="supporting-text"
35
+ @slotchange=${component._onSlotChange}
36
+ ></slot>
9
37
  </div>
10
38
  <div class="title__end">
11
39
  <slot name="end"></slot>
@@ -1 +1 @@
1
- {"version":3,"file":"title.template.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAE3C,MAAM,UAAU,aAAa;IAC5B,OAAO,IAAI,CAAA;;;;;;;;;;;EAWV,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"title.template.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGtE,gFAAgF;AAChF,uDAAuD;AACvD,MAAM,YAAY,GAAoD;IACrE,CAAC,EAAE,YAAY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.
14
14
  * @attr {'none' | 'dismiss' | 'menu'} control - Control type (default: 'none')
15
+ * @attr {string} dismiss-text - Accessible label for the dismiss button. Unset, it names the token: `Verwijder "{text}"`, so a row of tokens does not read as a row of identical buttons.
16
+ * @attr {string} menu-text - Accessible label for the menu button. Unset, it is `Toon opties voor "{text}"`.
17
+ * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
18
+ * @attr {boolean} roving - Inside a roving-focus container (e.g. nldd-token-field): the host is the single tab stop, so the trailing control is not separately tabbable.
15
19
  * @attr {boolean} expanded - Reflects whether the token's menu is open (control="menu"); managed by the token.
16
20
  * @attr {boolean} disabled - Disabled state
17
- * @attr {string} dismiss-text - Accessible label for the dismiss button (default: 'Verwijder')
18
- * @attr {string} menu-text - Accessible label for the menu button (default: 'Toon opties')
19
- * @attr {boolean} roving - Inside a roving-focus container (e.g. nldd-token-field): the host is the single tab stop, so the trailing control is not separately tabbable.
20
21
  *
21
22
  * @slot - Token text
22
23
  * @slot menu - An nldd-menu that the token opens from its menu button (control="menu").
@@ -24,6 +25,7 @@
24
25
  * @fires dismiss - When the dismiss button is clicked
25
26
  */
26
27
  import { LitElement } from 'lit';
28
+ import { type NLDDTokenTranslations } from './token.i18n.js';
27
29
  import './../../actions/icon-button/icon-button.js';
28
30
  export type TokenControl = 'none' | 'dismiss' | 'menu';
29
31
  export declare class NLDDToken extends LitElement {
@@ -32,15 +34,23 @@ export declare class NLDDToken extends LitElement {
32
34
  * content keeps working. */
33
35
  text: string;
34
36
  control: TokenControl;
35
- expanded: boolean;
36
- disabled: boolean;
37
37
  dismissText: string;
38
38
  menuText: string;
39
+ translations: Partial<NLDDTokenTranslations>;
39
40
  /** Inside a roving-focus container (e.g. nldd-token-field): the host carries the
40
41
  * single tab stop and manages focus itself, so the trailing control (dismiss or
41
42
  * menu) is taken out of the tab order — it stays reachable by mouse and by the
42
43
  * host's own key handlers. */
43
44
  roving: boolean;
45
+ expanded: boolean;
46
+ disabled: boolean;
47
+ /** Text of the default slot, kept current for the control labels. */
48
+ private _slotText;
49
+ private _textObserver;
50
+ private _readSlotText;
51
+ _t(key: keyof NLDDTokenTranslations): string;
52
+ get _dismissLabel(): string;
53
+ get _menuLabel(): string;
44
54
  _handleDismiss(e: Event): void;
45
55
  private _menuButton?;
46
56
  private _menu;
@@ -1 +1 @@
1
- {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../src/components/content/token/token.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,OAAO,4CAA4C,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAEvD,qBACa,SAAU,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAAe;IAErC;iCAC6B;IAE7B,IAAI,SAAM;IAGV,OAAO,EAAE,YAAY,CAAU;IAG/B,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,WAAW,SAAe;IAG1B,QAAQ,SAAiB;IAEzB;;;mCAG+B;IAE/B,MAAM,UAAS;IAEf,cAAc,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAU9B,OAAO,CAAC,WAAW,CAAC,CAAc;IAElC,OAAO,CAAC,KAAK,CAAyB;IACtC,OAAO,CAAC,qBAAqB,CAAS;IAEtC;wFACoF;IACpF,iBAAiB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAajC,OAAO,CAAC,iBAAiB,CAUvB;IAEF;oFACgF;IAChF,4BAA4B,IAAI,IAAI;IAIpC,gBAAgB,IAAI,IAAI;IAYf,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAKrC;;uFAEmF;IACnF,OAAO,CAAC,kBAAkB,CAOxB;IAEF;;;0FAGsF;IAC7E,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAKnC,MAAM;CAGf;AAED,OAAO,CAAC,MA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Yf,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAMrC;;uFAEmF;IACnF,OAAO,CAAC,kBAAkB,CAOxB;IAEF;;;0FAGsF;IAC7E,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAKnC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;KACxB;CACD"}
@@ -0,0 +1,7 @@
1
+ export declare const nlddTokenTranslations: {
2
+ 'components.token.dismiss-action': string;
3
+ 'components.token.open-menu-action': string;
4
+ 'components.token.open-token-menu-action': string;
5
+ };
6
+ export type NLDDTokenTranslations = typeof nlddTokenTranslations;
7
+ //# sourceMappingURL=token.i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/content/token/token.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export const nlddTokenTranslations = {
2
+ 'components.token.dismiss-action': 'Verwijder',
3
+ 'components.token.open-menu-action': 'Toon opties',
4
+ 'components.token.open-token-menu-action': 'Toon opties voor',
5
+ };
6
+ //# sourceMappingURL=token.i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.i18n.js","sourceRoot":"","sources":["../../../../src/components/content/token/token.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACpC,iCAAiC,EAAE,WAAW;IAC9C,mCAAmC,EAAE,aAAa;IAClD,yCAAyC,EAAE,kBAAkB;CAC7D,CAAC"}
@@ -18,11 +18,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  *
19
19
  * @attr {string} text - Token text; falls back to the default slot when unset.
20
20
  * @attr {'none' | 'dismiss' | 'menu'} control - Control type (default: 'none')
21
+ * @attr {string} dismiss-text - Accessible label for the dismiss button. Unset, it names the token: `Verwijder "{text}"`, so a row of tokens does not read as a row of identical buttons.
22
+ * @attr {string} menu-text - Accessible label for the menu button. Unset, it is `Toon opties voor "{text}"`.
23
+ * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
24
+ * @attr {boolean} roving - Inside a roving-focus container (e.g. nldd-token-field): the host is the single tab stop, so the trailing control is not separately tabbable.
21
25
  * @attr {boolean} expanded - Reflects whether the token's menu is open (control="menu"); managed by the token.
22
26
  * @attr {boolean} disabled - Disabled state
23
- * @attr {string} dismiss-text - Accessible label for the dismiss button (default: 'Verwijder')
24
- * @attr {string} menu-text - Accessible label for the menu button (default: 'Toon opties')
25
- * @attr {boolean} roving - Inside a roving-focus container (e.g. nldd-token-field): the host is the single tab stop, so the trailing control is not separately tabbable.
26
27
  *
27
28
  * @slot - Token text
28
29
  * @slot menu - An nldd-menu that the token opens from its menu button (control="menu").
@@ -30,11 +31,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
30
31
  * @fires dismiss - When the dismiss button is clicked
31
32
  */
32
33
  import { LitElement } from 'lit';
33
- import { customElement, property, query } from 'lit/decorators.js';
34
+ import { customElement, property, query, state } from 'lit/decorators.js';
34
35
  import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
35
36
  import { tokenStyles } from './token.styles.js';
36
37
  import { tokenTemplate } from './token.template.js';
38
+ import { nlddTokenTranslations } from './token.i18n.js';
37
39
  import './../../actions/icon-button/icon-button.js';
40
+ import { translate } from '../../../utilities/translations.js';
38
41
  let NLDDToken = class NLDDToken extends LitElement {
39
42
  constructor() {
40
43
  super(...arguments);
@@ -42,15 +45,19 @@ let NLDDToken = class NLDDToken extends LitElement {
42
45
  * content keeps working. */
43
46
  this.text = '';
44
47
  this.control = 'none';
45
- this.expanded = false;
46
- this.disabled = false;
47
- this.dismissText = 'Verwijder';
48
- this.menuText = 'Toon opties';
48
+ this.dismissText = '';
49
+ this.menuText = '';
50
+ this.translations = {};
49
51
  /** Inside a roving-focus container (e.g. nldd-token-field): the host carries the
50
52
  * single tab stop and manages focus itself, so the trailing control (dismiss or
51
53
  * menu) is taken out of the tab order — it stays reachable by mouse and by the
52
54
  * host's own key handlers. */
53
55
  this.roving = false;
56
+ this.expanded = false;
57
+ this.disabled = false;
58
+ /** Text of the default slot, kept current for the control labels. */
59
+ this._slotText = '';
60
+ this._textObserver = new MutationObserver(() => this._readSlotText());
54
61
  this._menu = null;
55
62
  this._pointerdownWhileOpen = false;
56
63
  this._handleMenuToggle = (e) => {
@@ -79,6 +86,32 @@ let NLDDToken = class NLDDToken extends LitElement {
79
86
  }
80
87
  };
81
88
  }
89
+ _readSlotText() {
90
+ this._slotText = [...this.childNodes]
91
+ .filter((node) => !(node instanceof Element && node.hasAttribute('slot')))
92
+ .map((node) => node.textContent)
93
+ .join('')
94
+ .replace(/\s+/g, ' ')
95
+ .trim();
96
+ }
97
+ _t(key) {
98
+ return translate(this.translations, nlddTokenTranslations, key);
99
+ }
100
+ get _dismissLabel() {
101
+ const label = this.text || this._slotText;
102
+ if (this.dismissText)
103
+ return this.dismissText;
104
+ const action = this._t('components.token.dismiss-action');
105
+ return label ? `${action} "${label}"` : action;
106
+ }
107
+ get _menuLabel() {
108
+ const label = this.text || this._slotText;
109
+ if (this.menuText)
110
+ return this.menuText;
111
+ if (!label)
112
+ return this._t('components.token.open-menu-action');
113
+ return `${this._t('components.token.open-token-menu-action')} "${label}"`;
114
+ }
82
115
  _handleDismiss(e) {
83
116
  e.stopPropagation();
84
117
  if (this.disabled)
@@ -125,9 +158,12 @@ let NLDDToken = class NLDDToken extends LitElement {
125
158
  connectedCallback() {
126
159
  super.connectedCallback();
127
160
  this.addEventListener('keydown', this._handleHostKeydown);
161
+ this._readSlotText();
162
+ this._textObserver.observe(this, { childList: true, characterData: true, subtree: true });
128
163
  }
129
164
  disconnectedCallback() {
130
165
  this.removeEventListener('keydown', this._handleHostKeydown);
166
+ this._textObserver.disconnect();
131
167
  super.disconnectedCallback();
132
168
  }
133
169
  /** Force the focus ring so the whole token reads as focused when it is focused
@@ -149,21 +185,27 @@ __decorate([
149
185
  __decorate([
150
186
  property({ reflect: true, converter: reflectNonDefault('none') })
151
187
  ], NLDDToken.prototype, "control", void 0);
152
- __decorate([
153
- property({ type: Boolean, reflect: true })
154
- ], NLDDToken.prototype, "expanded", void 0);
155
- __decorate([
156
- property({ type: Boolean, reflect: true })
157
- ], NLDDToken.prototype, "disabled", void 0);
158
188
  __decorate([
159
189
  property({ type: String, attribute: 'dismiss-text' })
160
190
  ], NLDDToken.prototype, "dismissText", void 0);
161
191
  __decorate([
162
192
  property({ type: String, attribute: 'menu-text' })
163
193
  ], NLDDToken.prototype, "menuText", void 0);
194
+ __decorate([
195
+ property({ type: Object })
196
+ ], NLDDToken.prototype, "translations", void 0);
164
197
  __decorate([
165
198
  property({ type: Boolean, reflect: true })
166
199
  ], NLDDToken.prototype, "roving", void 0);
200
+ __decorate([
201
+ property({ type: Boolean, reflect: true })
202
+ ], NLDDToken.prototype, "expanded", void 0);
203
+ __decorate([
204
+ property({ type: Boolean, reflect: true })
205
+ ], NLDDToken.prototype, "disabled", void 0);
206
+ __decorate([
207
+ state()
208
+ ], NLDDToken.prototype, "_slotText", void 0);
167
209
  __decorate([
168
210
  query('.token__menu-action nldd-icon-button')
169
211
  ], NLDDToken.prototype, "_menuButton", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../src/components/content/token/token.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB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IAAI,EAAE,MAAM,EAAE,CAAC;uCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAe,MAAM,CAAC,EAAE,CAAC;0CACjD;AAG/B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;8CACrC;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;2CACrC;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CACuB;AAOlD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCAC5B;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CAC1B;AAIT;IADP,KAAK,EAAE;4CACe;AAyCf;IADP,KAAK,CAAC,sCAAsC,CAAC;8CACZ;AA5EtB,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CAmKrB"}
@@ -9,10 +9,10 @@ export function tokenTemplate(component) {
9
9
  <div class="token__dismiss-action">
10
10
  <nldd-icon-button
11
11
  size="sm"
12
- variant="neutral-tinted"
12
+ appearance="neutral-tinted"
13
13
  icon="dismiss-small"
14
- text=${component.dismissText}
15
- accessible-label=${component.dismissText}
14
+ text=${component._dismissLabel}
15
+ accessible-label=${component._dismissLabel}
16
16
  tooltip-timing="never"
17
17
  ?no-tab=${component.roving}
18
18
  ?disabled=${component.disabled}
@@ -24,10 +24,10 @@ export function tokenTemplate(component) {
24
24
  <div class="token__menu-action">
25
25
  <nldd-icon-button
26
26
  size="sm"
27
- variant="neutral-tinted"
27
+ appearance="neutral-tinted"
28
28
  icon="chevron-down-small"
29
- text=${component.menuText}
30
- accessible-label=${component.menuText}
29
+ text=${component._menuLabel}
30
+ accessible-label=${component._menuLabel}
31
31
  tooltip-timing="never"
32
32
  popup-type="menu"
33
33
  ?no-tab=${component.roving}
@@ -1 +1 @@
1
- {"version":3,"file":"token.template.js","sourceRoot":"","sources":["../../../../src/components/content/token/token.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAGpD;2DAC2D;AAC3D,MAAM,UAAU,aAAa,CAAC,SAAoB;IACjD,OAAO,IAAI,CAAA;;+BAEmB,SAAS,CAAC,IAAI,IAAI,IAAI,CAAA,eAAe;KAC/D,SAAS,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;;;;;aAM9B,SAAS,CAAC,WAAW;yBACT,SAAS,CAAC,WAAW;;gBAE9B,SAAS,CAAC,MAAM;kBACd,SAAS,CAAC,QAAQ;eACrB,SAAS,CAAC,cAAc;;;IAGnC,CAAC,CAAC,CAAC,OAAO;KACT,SAAS,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA;;;;;;aAM3B,SAAS,CAAC,QAAQ;yBACN,SAAS,CAAC,QAAQ;;;gBAG3B,SAAS,CAAC,MAAM;kBACd,SAAS,CAAC,QAAQ;kBAClB,SAAS,CAAC,QAAQ;qBACf,SAAS,CAAC,4BAA4B;eAC5C,SAAS,CAAC,gBAAgB;;;IAGrC,CAAC,CAAC,CAAC,OAAO;;IAEV,SAAS,CAAC,OAAO,KAAK,MAAM;QAC7B,CAAC,CAAC,IAAI,CAAA,iCAAiC,SAAS,CAAC,iBAAiB,UAAU;QAC5E,CAAC,CAAC,OAAO;EACV,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"token.template.js","sourceRoot":"","sources":["../../../../src/components/content/token/token.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAGpD;2DAC2D;AAC3D,MAAM,UAAU,aAAa,CAAC,SAAoB;IACjD,OAAO,IAAI,CAAA;;+BAEmB,SAAS,CAAC,IAAI,IAAI,IAAI,CAAA,eAAe;KAC/D,SAAS,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;;;;;aAM9B,SAAS,CAAC,aAAa;yBACX,SAAS,CAAC,aAAa;;gBAEhC,SAAS,CAAC,MAAM;kBACd,SAAS,CAAC,QAAQ;eACrB,SAAS,CAAC,cAAc;;;IAGnC,CAAC,CAAC,CAAC,OAAO;KACT,SAAS,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA;;;;;;aAM3B,SAAS,CAAC,UAAU;yBACR,SAAS,CAAC,UAAU;;;gBAG7B,SAAS,CAAC,MAAM;kBACd,SAAS,CAAC,QAAQ;kBAClB,SAAS,CAAC,QAAQ;qBACf,SAAS,CAAC,4BAA4B;eAC5C,SAAS,CAAC,gBAAgB;;;IAGrC,CAAC,CAAC,CAAC,OAAO;;IAEV,SAAS,CAAC,OAAO,KAAK,MAAM;QAC7B,CAAC,CAAC,IAAI,CAAA,iCAAiC,SAAS,CAAC,iBAAiB,UAAU;QAC5E,CAAC,CAAC,OAAO;EACV,CAAC;AACH,CAAC"}
@@ -14,6 +14,11 @@
14
14
  * `dist/css/form.css` (or `global.css`), not in a component-specific shadow
15
15
  * stylesheet. Import it as part of your app's global CSS bundle.
16
16
  *
17
+ * **When a field turns red:** on submit the form marks every control the
18
+ * browser rejects with `invalid`, and clears it again once the value passes.
19
+ * Setting `invalid` yourself is fine, but do it on submit, not while someone is
20
+ * still typing, or a field turns red over a value that is not finished yet.
21
+ *
17
22
  * **Two usage modes:**
18
23
  *
19
24
  * 1. **Auto-wrap** (default): write children directly. Component creates a
@@ -44,14 +49,14 @@
44
49
  *
45
50
  * @element nldd-form
46
51
  *
52
+ * @attr {string} label-alignment - Default `label-alignment` for descendant nldd-form-field and nldd-form-actions ('top' | 'right' | 'left'). Propagated to descendants as `form-label-alignment`. A `label-alignment` of its own on the descendant takes precedence through the CSS cascade.
47
53
  * @attr {string} name - Form name
48
- * @attr {string} action - URL endpoint for submission
54
+ * @attr {string} autocomplete - 'on' | 'off' (form-level autofill toggle)
55
+ * @attr {string} target - Submit target ('_self' | '_blank' | ...)
49
56
  * @attr {string} method - HTTP method ('get' | 'post' | 'dialog')
50
- * @attr {boolean} novalidate - Skip native browser validation
57
+ * @attr {string} action - URL endpoint for submission
51
58
  * @attr {string} enctype - Encoding type for submission
52
- * @attr {string} target - Submit target ('_self' | '_blank' | ...)
53
- * @attr {string} autocomplete - 'on' | 'off' (form-level autofill toggle)
54
- * @attr {string} label-alignment - Default `label-alignment` for descendant nldd-form-field and nldd-form-actions ('top' | 'right' | 'left'). Propagated to descendants as `form-label-alignment`. A `label-alignment` of its own on the descendant takes precedence through the CSS cascade.
59
+ * @attr {boolean} novalidate - Skip native browser validation
55
60
  *
56
61
  * @prop {HTMLFormElement | null} form - The inner <form> element (read-only). Use it for `form.checkValidity()`, direct DOM manipulation, or as the target for framework-managed children.
57
62
  *
@@ -67,7 +72,10 @@
67
72
  *
68
73
  * Auto-wrap mode:
69
74
  * ```html
70
- * <nldd-form name="profile" novalidate>
75
+ * <nldd-form
76
+ * name="profile"
77
+ * novalidate
78
+ * >
71
79
  * <nldd-text-field name="email" autocomplete="email"></nldd-text-field>
72
80
  * <nldd-button type="submit" text="Verstuur"></nldd-button>
73
81
  * </nldd-form>
@@ -75,7 +83,10 @@
75
83
  *
76
84
  * User-provided form mode (React/Vue/Angular):
77
85
  * ```html
78
- * <nldd-form name="profile" novalidate>
86
+ * <nldd-form
87
+ * name="profile"
88
+ * novalidate
89
+ * >
79
90
  * <form>
80
91
  * <nldd-text-field name="email" autocomplete="email"></nldd-text-field>
81
92
  * <nldd-button type="submit" text="Verstuur"></nldd-button>
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form/form.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AAcH,qBAAa,QAAS,SAAQ,WAAW;IACxC,MAAM,KAAK,kBAAkB,aAE5B;IAED,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,SAAS,CAAiC;IAElD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,OAAO,CAAC,cAAc,CA6BpB;IAEF,4EAA4E;IAC5E,OAAO,CAAC,YAAY,CAA4B;IAEhD;;;;;;;;;;OAUG;IACH,OAAO,CAAC,YAAY,CAQlB;IAEF;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,YAAY,CAKlB;IAEF,sDAAsD;IACtD,OAAO,CAAC,OAAO,CAA0B;IACzC,wEAAwE;IACxE,OAAO,CAAC,iBAAiB,CAAS;IAElC,iBAAiB,IAAI,IAAI;IAwEzB,oBAAoB,IAAI,IAAI;IAQ5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAU3F;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,wBAAwB;IAKhC,OAAO,CAAC,iBAAiB;IAQzB,uEAAuE;IACvE,IAAI,IAAI,IAAI,eAAe,GAAG,IAAI,CAEjC;CACD;AAMD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;CACD"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form/form.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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