@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
@@ -2,12 +2,17 @@
2
2
  * Nederlandse Digitale Dienst Button Bar Component (Lit + TypeScript)
3
3
  *
4
4
  * A horizontal container for grouping buttons with a neutral background.
5
- * Automatically propagates its size and variant to all child nldd-button and nldd-icon-button elements.
5
+ * Automatically propagates its size and appearance to all child nldd-button and nldd-icon-button elements.
6
6
  * Renders nldd-button-bar-divider elements as internal dividers — no separate component needed.
7
7
  *
8
+ * The bar is one surface for actions; on/off buttons do not go in it. For a row
9
+ * of toggles use nldd-toggle-button-group, and for one choice out of a few
10
+ * options on one surface nldd-segmented-control. An nldd-toggle-button placed
11
+ * here is shown as it is, and a warning says so in development.
12
+ *
8
13
  * @element nldd-button-bar
9
14
  * @attr {string} size - Bar size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). At 'lg', icon-button children stack their label below the icon (mobile action-bar style).
10
- * @attr {string} variant - Button variant (default: 'neutral-tinted')
15
+ * @attr {string} appearance - Visual style of the buttons (default: 'neutral-tinted'; 'inherit-tinted' and 'inherit-filled' for a colored surface)
11
16
  * @attr {boolean} disabled - Disabled state
12
17
  *
13
18
  * @slot - Default slot for nldd-button, nldd-icon-button and nldd-button-bar-divider elements
@@ -27,7 +32,7 @@ export type BarChild = {
27
32
  export declare class NLDDButtonBar extends LitElement {
28
33
  static styles: import("lit").CSSResult;
29
34
  size: Size;
30
- variant: string;
35
+ appearance: string;
31
36
  disabled: boolean;
32
37
  _children: BarChild[];
33
38
  private _idCounter;
@@ -40,9 +45,11 @@ export declare class NLDDButtonBar extends LitElement {
40
45
  private _handleFocusIn;
41
46
  private _handleFocusOut;
42
47
  private _propagateSize;
43
- private _propagateVariant;
48
+ private _propagateAppearance;
44
49
  private _propagateDisabled;
45
50
  private _buildChildren;
51
+ private _warnedToggleButton;
52
+ private _warnToggleButton;
46
53
  render(): import("lit-html").TemplateResult<1>;
47
54
  }
48
55
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"button-bar.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-bar/button-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAgBjC,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,MAAM,MAAM,QAAQ,GACjB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAIpD,qBACa,aAAc,SAAQ,UAAU;IAC5C,OAAgB,MAAM,0BAAmB;IAGzC,IAAI,EAAE,IAAI,CAAQ;IAGlB,OAAO,EAAE,MAAM,CAAoB;IAGnC,QAAQ,UAAS;IAGjB,SAAS,EAAE,QAAQ,EAAE,C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AO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,SAAS,CAAiC;IAClD,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,qBAAqB,CAA0B;IAE9C,iBAAiB,IAAI,IAAI;IASzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAiB/D,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,kBAAkB;IAsB1B,OAAO,CAAC,cAAc;IAgCtB,OAAO,CAAC,mBAAmB,CAAS;IAEpC,OAAO,CAAC,iBAAiB;IAUhB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,aAAa,CAAC;QACjC,yBAAyB,EAAE,WAAW,CAAC;KACvC;CACD"}
@@ -8,12 +8,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  * Nederlandse Digitale Dienst Button Bar Component (Lit + TypeScript)
9
9
  *
10
10
  * A horizontal container for grouping buttons with a neutral background.
11
- * Automatically propagates its size and variant to all child nldd-button and nldd-icon-button elements.
11
+ * Automatically propagates its size and appearance to all child nldd-button and nldd-icon-button elements.
12
12
  * Renders nldd-button-bar-divider elements as internal dividers — no separate component needed.
13
13
  *
14
+ * The bar is one surface for actions; on/off buttons do not go in it. For a row
15
+ * of toggles use nldd-toggle-button-group, and for one choice out of a few
16
+ * options on one surface nldd-segmented-control. An nldd-toggle-button placed
17
+ * here is shown as it is, and a warning says so in development.
18
+ *
14
19
  * @element nldd-button-bar
15
20
  * @attr {string} size - Bar size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). At 'lg', icon-button children stack their label below the icon (mobile action-bar style).
16
- * @attr {string} variant - Button variant (default: 'neutral-tinted')
21
+ * @attr {string} appearance - Visual style of the buttons (default: 'neutral-tinted'; 'inherit-tinted' and 'inherit-filled' for a colored surface)
17
22
  * @attr {boolean} disabled - Disabled state
18
23
  *
19
24
  * @slot - Default slot for nldd-button, nldd-icon-button and nldd-button-bar-divider elements
@@ -40,13 +45,14 @@ let NLDDButtonBar = class NLDDButtonBar extends LitElement {
40
45
  constructor() {
41
46
  super(...arguments);
42
47
  this.size = 'md';
43
- this.variant = 'neutral-tinted';
48
+ this.appearance = 'neutral-tinted';
44
49
  this.disabled = false;
45
50
  this._children = [];
46
51
  this._idCounter = 0;
47
52
  this._observer = null;
48
53
  this._building = false;
49
54
  this._individuallyDisabled = new WeakSet();
55
+ this._warnedToggleButton = false;
50
56
  }
51
57
  connectedCallback() {
52
58
  super.connectedCallback();
@@ -67,8 +73,8 @@ let NLDDButtonBar = class NLDDButtonBar extends LitElement {
67
73
  if (changedProperties.has('size') || changedProperties.has('_children')) {
68
74
  this._propagateSize();
69
75
  }
70
- if (changedProperties.has('variant') || changedProperties.has('_children')) {
71
- this._propagateVariant();
76
+ if (changedProperties.has('appearance') || changedProperties.has('_children')) {
77
+ this._propagateAppearance();
72
78
  }
73
79
  if (changedProperties.has('disabled')) {
74
80
  this._propagateDisabled();
@@ -97,10 +103,10 @@ let NLDDButtonBar = class NLDDButtonBar extends LitElement {
97
103
  .filter(el => BUTTON_TAGS.includes(el.tagName.toLowerCase()))
98
104
  .forEach(el => el.setAttribute('size', this.size));
99
105
  }
100
- _propagateVariant() {
106
+ _propagateAppearance() {
101
107
  Array.from(this.children)
102
108
  .filter(el => BUTTON_TAGS.includes(el.tagName.toLowerCase()))
103
- .forEach(el => el.setAttribute('variant', this.variant));
109
+ .forEach(el => el.setAttribute('appearance', this.appearance));
104
110
  }
105
111
  _propagateDisabled() {
106
112
  const buttons = Array.from(this.children).filter(el => BUTTON_TAGS.includes(el.tagName.toLowerCase()));
@@ -131,9 +137,11 @@ let NLDDButtonBar = class NLDDButtonBar extends LitElement {
131
137
  if (tag === 'nldd-button-bar-divider') {
132
138
  return { type: 'divider', id: this._idCounter++ };
133
139
  }
140
+ if (tag === 'nldd-toggle-button')
141
+ this._warnToggleButton();
134
142
  if (BUTTON_TAGS.includes(tag)) {
135
143
  el.setAttribute('size', this.size);
136
- el.setAttribute('variant', this.variant);
144
+ el.setAttribute('appearance', this.appearance);
137
145
  // The bar draws one group border (.button-bar::after); children drop theirs.
138
146
  el.setAttribute('no-highlight-border', '');
139
147
  }
@@ -146,6 +154,14 @@ let NLDDButtonBar = class NLDDButtonBar extends LitElement {
146
154
  });
147
155
  this._building = false;
148
156
  }
157
+ _warnToggleButton() {
158
+ if (!import.meta.env?.DEV || this._warnedToggleButton)
159
+ return;
160
+ this._warnedToggleButton = true;
161
+ console.warn('<nldd-button-bar>: nldd-toggle-button is not supported here. The bar is one surface for actions, '
162
+ + 'and a selected toggle breaks it. Use nldd-toggle-button-group for a row of toggles, '
163
+ + 'or nldd-segmented-control for one choice out of a few options.');
164
+ }
149
165
  render() {
150
166
  return template.call(this);
151
167
  }
@@ -156,7 +172,7 @@ __decorate([
156
172
  ], NLDDButtonBar.prototype, "size", void 0);
157
173
  __decorate([
158
174
  property({ reflect: true, converter: reflectNonDefault('neutral-tinted') })
159
- ], NLDDButtonBar.prototype, "variant", void 0);
175
+ ], NLDDButtonBar.prototype, "appearance", void 0);
160
176
  __decorate([
161
177
  property({ type: Boolean, reflect: true })
162
178
  ], NLDDButtonBar.prototype, "disabled", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"button-bar.js","sourceRoot":"","sources":["../../../../src/components/actions/button-bar/button-bar.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;GAeG;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,eAAe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EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAO,IAAI,CAAC,EAAE,CAAC;2CACpD;AAGlB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,gBAAgB,CAAC,EAAE,CAAC;iDAC9C;AAGtC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAC1B;AAGjB;IADC,KAAK,EAAE;gDACmB;AAbf,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CAqJzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"button-bar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-bar/button-bar.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,yBA+G3B,CAAC"}
1
+ {"version":3,"file":"button-bar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-bar/button-bar.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,yBA8H3B,CAAC"}
@@ -39,19 +39,34 @@ export const buttonBarStyles = css `
39
39
 
40
40
  /* ## Accent Filled (Primary) */
41
41
 
42
- :host([variant="accent-filled"]),
43
- :host([variant="primary"]) {
42
+ :host([appearance="accent-filled"]),
43
+ :host([appearance="primary"]) {
44
44
  --_background-color: var(--semantics-buttons-accent-filled-background-color);
45
45
  --_divider-color: var(--semantics-buttons-accent-filled-divider-color);
46
46
  --_highlight-border-color: var(--semantics-buttons-accent-filled-highlight-border-color);
47
47
  }
48
48
 
49
- :host([variant="neutral-base"]) {
49
+ :host([appearance="neutral-base"]) {
50
50
  --_background-color: var(--semantics-buttons-neutral-base-background-color);
51
51
  --_divider-color: var(--semantics-buttons-neutral-base-divider-color);
52
52
  --_highlight-border-color: var(--semantics-buttons-neutral-base-highlight-border-color);
53
53
  }
54
54
 
55
+ /* ## On-color */
56
+
57
+ :host([appearance="inherit-tinted"]) {
58
+ --_background-color: var(--semantics-buttons-inherit-tinted-background-color);
59
+ --_divider-color: var(--semantics-buttons-inherit-tinted-divider-color);
60
+ --_highlight-border-color: var(--semantics-buttons-inherit-tinted-highlight-border-color);
61
+ --context-button-background-color: transparent;
62
+ }
63
+
64
+ :host([appearance="inherit-filled"]) {
65
+ --_background-color: var(--semantics-buttons-inherit-filled-background-color);
66
+ --_divider-color: var(--semantics-buttons-inherit-filled-divider-color);
67
+ --_highlight-border-color: var(--semantics-buttons-inherit-filled-highlight-border-color);
68
+ }
69
+
55
70
  :host([hidden]) {
56
71
  display: none;
57
72
  }
@@ -1 +1 @@
1
- {"version":3,"file":"button-bar.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-bar/button-bar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+GjC,CAAC"}
1
+ {"version":3,"file":"button-bar.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-bar/button-bar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8HjC,CAAC"}
@@ -1,11 +1,28 @@
1
1
  /**
2
2
  * Nederlandse Digitale Dienst Button Group Component (Lit + TypeScript)
3
3
  *
4
- * A container for grouping related buttons together, either horizontally or vertically.
4
+ * A container for grouping related buttons together, in a row or stacked.
5
+ *
6
+ * `auto`, the default, is a row on a container wide enough for one and a stack
7
+ * over the full width below the sm breakpoint, where two labels beside each
8
+ * other leave no room for either. The group is its own container, so it follows
9
+ * the width it was given rather than the width of the window: the same group is
10
+ * a row in a page and a stack in a sheet beside it.
11
+ *
12
+ * Being a container has one consequence to know: the width has to come from the
13
+ * parent, since a container may not size itself from what is inside it. In a
14
+ * parent that shrink-wraps its content (an inline-flex box, a float, a table
15
+ * cell, a flex item at `width: auto`) the group measures zero and its buttons
16
+ * are invisible. It says so once in development. Give the group or that parent
17
+ * a width.
18
+ *
19
+ * A stack fills the width with its buttons, except an `nldd-icon-button`, which
20
+ * keeps its own size: a bar with a single glyph in the middle is not a bigger
21
+ * target, only a wider one.
5
22
  *
6
23
  * @element nldd-button-group
7
24
  * @attr {string} size - Button group size: 'sm' | 'md' (default: 'md')
8
- * @attr {string} orientation - Layout direction: 'horizontal' | 'vertical' (default: 'vertical')
25
+ * @attr {string} orientation - Layout direction: 'auto' | 'horizontal' | 'vertical' (default: 'auto')
9
26
  *
10
27
  * @slot - Default slot for buttons (max 3)
11
28
  *
@@ -13,14 +30,42 @@
13
30
  */
14
31
  import { LitElement } from 'lit';
15
32
  type Size = 'sm' | 'md';
16
- type Orientation = 'horizontal' | 'vertical';
33
+ type Orientation = 'auto' | 'horizontal' | 'vertical';
17
34
  export declare class NLDDButtonGroup extends LitElement {
18
35
  static styles: import("lit").CSSResult;
19
36
  size: Size;
20
37
  orientation: Orientation;
21
38
  private _slot;
39
+ /** DEV only: watches for the collapse below, then lets itself go. */
40
+ private _collapseObserver;
41
+ /** Timer holding a zero-width reading before it counts as a verdict. */
42
+ private _collapseVerdict;
22
43
  handleSlotChange(): void;
23
44
  updated(changedProperties: Map<string, unknown>): void;
45
+ connectedCallback(): void;
46
+ disconnectedCallback(): void;
47
+ /**
48
+ * The group is an inline-size container while `orientation` is `auto`, so its
49
+ * width has to come from its parent: a container may not size itself from its
50
+ * own contents. In a parent that shrink-wraps (inline-flex, a float, a table
51
+ * cell, a flex item at `width: auto`) there is nothing to take, the group
52
+ * measures zero and the buttons disappear without an error.
53
+ *
54
+ * Watched rather than sampled: a group can be in a closed sheet or behind
55
+ * `display: none` on its first frame, and a parent can get its width a tick
56
+ * later, so one look would call both of those a collapse or miss the real
57
+ * one. The observer waits for the group to be displayed, says it once and
58
+ * stops watching either way. It starts again when the group is reconnected
59
+ * somewhere else or when `orientation` turns to `auto`, since both change
60
+ * the answer.
61
+ *
62
+ * A zero reading waits before it counts: a parent can hand over its width a
63
+ * frame or two after the first paint, and that looks exactly like a collapse
64
+ * until it does. Only a zero that is still zero when the timer runs out gets
65
+ * said out loud.
66
+ */
67
+ private _watchForCollapse;
68
+ private _stopWatchingForCollapse;
24
69
  render(): import("lit-html").TemplateResult<1>;
25
70
  }
26
71
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACxB,KAAK,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;AAE7C,qBACa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAG3C,IAAI,EAAE,IAAI,CAAQ;IAGlB,WAAW,EAAE,WAAW,CAAc;IAGtC,OAAO,CAAC,KAAK,CAAmB;IAEhC,gBAAgB;IAqBP,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAM/C,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,mBAAmB,EAAE,eAAe,CAAC;KACrC;CACD"}
1
+ {"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACxB,KAAK,WAAW,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;AAEtD,qBACa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAG3C,IAAI,EAAE,IAAI,CAAQ;IAGlB,WAAW,EAAE,WAAW,CAAU;IAGlC,OAAO,CAAC,KAAK,CAAmB;IAEhC,qEAAqE;IACrE,OAAO,CAAC,iBAAiB,CAA+B;IACxD,wEAAwE;IACxE,OAAO,CAAC,gBAAgB,CAAK;IAE7B,gBAAgB;IAeP,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAO/C,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAKrC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,iBAAiB;IAgCzB,OAAO,CAAC,wBAAwB;IAOvB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,mBAAmB,EAAE,eAAe,CAAC;KACrC;CACD"}
@@ -7,11 +7,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  /**
8
8
  * Nederlandse Digitale Dienst Button Group Component (Lit + TypeScript)
9
9
  *
10
- * A container for grouping related buttons together, either horizontally or vertically.
10
+ * A container for grouping related buttons together, in a row or stacked.
11
+ *
12
+ * `auto`, the default, is a row on a container wide enough for one and a stack
13
+ * over the full width below the sm breakpoint, where two labels beside each
14
+ * other leave no room for either. The group is its own container, so it follows
15
+ * the width it was given rather than the width of the window: the same group is
16
+ * a row in a page and a stack in a sheet beside it.
17
+ *
18
+ * Being a container has one consequence to know: the width has to come from the
19
+ * parent, since a container may not size itself from what is inside it. In a
20
+ * parent that shrink-wraps its content (an inline-flex box, a float, a table
21
+ * cell, a flex item at `width: auto`) the group measures zero and its buttons
22
+ * are invisible. It says so once in development. Give the group or that parent
23
+ * a width.
24
+ *
25
+ * A stack fills the width with its buttons, except an `nldd-icon-button`, which
26
+ * keeps its own size: a bar with a single glyph in the middle is not a bigger
27
+ * target, only a wider one.
11
28
  *
12
29
  * @element nldd-button-group
13
30
  * @attr {string} size - Button group size: 'sm' | 'md' (default: 'md')
14
- * @attr {string} orientation - Layout direction: 'horizontal' | 'vertical' (default: 'vertical')
31
+ * @attr {string} orientation - Layout direction: 'auto' | 'horizontal' | 'vertical' (default: 'auto')
15
32
  *
16
33
  * @slot - Default slot for buttons (max 3)
17
34
  *
@@ -26,7 +43,11 @@ let NLDDButtonGroup = class NLDDButtonGroup extends LitElement {
26
43
  constructor() {
27
44
  super(...arguments);
28
45
  this.size = 'md';
29
- this.orientation = 'vertical';
46
+ this.orientation = 'auto';
47
+ /** DEV only: watches for the collapse below, then lets itself go. */
48
+ this._collapseObserver = null;
49
+ /** Timer holding a zero-width reading before it counts as a verdict. */
50
+ this._collapseVerdict = 0;
30
51
  }
31
52
  handleSlotChange() {
32
53
  const assigned = this._slot
@@ -38,19 +59,91 @@ let NLDDButtonGroup = class NLDDButtonGroup extends LitElement {
38
59
  if (import.meta.env?.DEV)
39
60
  console.warn('nldd-button-group: Only 3 buttons are allowed. Extra buttons will be hidden.');
40
61
  }
41
- if (this.orientation === 'vertical') {
42
- el.setAttribute('width', 'full');
43
- }
44
- else {
45
- el.removeAttribute('width');
46
- }
47
62
  el.setAttribute('size', this.size);
48
63
  });
49
64
  }
50
65
  updated(changedProperties) {
51
- if (changedProperties.has('orientation') || changedProperties.has('size')) {
66
+ if (changedProperties.has('size'))
52
67
  this.handleSlotChange();
68
+ // Switching to auto makes the group a container after the fact, so the
69
+ // question it can then fail is only worth asking from here on.
70
+ if (changedProperties.has('orientation'))
71
+ this._watchForCollapse();
72
+ }
73
+ connectedCallback() {
74
+ super.connectedCallback();
75
+ // Also on reconnect: a group that moves takes a new parent with it, and
76
+ // that parent decides whether there is a width to take.
77
+ this._watchForCollapse();
78
+ }
79
+ disconnectedCallback() {
80
+ super.disconnectedCallback();
81
+ this._stopWatchingForCollapse();
82
+ }
83
+ /**
84
+ * The group is an inline-size container while `orientation` is `auto`, so its
85
+ * width has to come from its parent: a container may not size itself from its
86
+ * own contents. In a parent that shrink-wraps (inline-flex, a float, a table
87
+ * cell, a flex item at `width: auto`) there is nothing to take, the group
88
+ * measures zero and the buttons disappear without an error.
89
+ *
90
+ * Watched rather than sampled: a group can be in a closed sheet or behind
91
+ * `display: none` on its first frame, and a parent can get its width a tick
92
+ * later, so one look would call both of those a collapse or miss the real
93
+ * one. The observer waits for the group to be displayed, says it once and
94
+ * stops watching either way. It starts again when the group is reconnected
95
+ * somewhere else or when `orientation` turns to `auto`, since both change
96
+ * the answer.
97
+ *
98
+ * A zero reading waits before it counts: a parent can hand over its width a
99
+ * frame or two after the first paint, and that looks exactly like a collapse
100
+ * until it does. Only a zero that is still zero when the timer runs out gets
101
+ * said out loud.
102
+ */
103
+ _watchForCollapse() {
104
+ if (!import.meta.env?.DEV)
105
+ return;
106
+ if (this.orientation !== 'auto') {
107
+ this._stopWatchingForCollapse();
108
+ return;
53
109
  }
110
+ if (this._collapseObserver)
111
+ return;
112
+ this._collapseObserver = new ResizeObserver(() => {
113
+ // No box at all (display:none, a closed sheet): nothing to judge yet.
114
+ // Client rects rather than offsetParent: that is null for a fixed
115
+ // element too, and a fixed group can collapse like any other.
116
+ if (!this.isConnected || this.getClientRects().length === 0)
117
+ return;
118
+ if (!this._slot?.assignedElements({ flatten: true }).length)
119
+ return;
120
+ if (this.getBoundingClientRect().width > 0) {
121
+ // It got a width, from the start or a tick late. Nothing to say.
122
+ this._stopWatchingForCollapse();
123
+ return;
124
+ }
125
+ // Zero, but not yet a verdict: a parent can hand over its width a
126
+ // frame or two later, and that is the same zero. Give it a moment and
127
+ // keep watching, so a width that arrives cancels this.
128
+ if (this._collapseVerdict !== 0)
129
+ return;
130
+ this._collapseVerdict = window.setTimeout(() => {
131
+ if (!this.isConnected || this.getClientRects().length === 0)
132
+ return;
133
+ if (this.getBoundingClientRect().width > 0)
134
+ return;
135
+ console.warn('nldd-button-group: the group is 0 wide, so its buttons are invisible. It takes its width from its parent (it is a container query while orientation is auto), and a parent that sizes itself from its content leaves nothing to take. Give the group or that parent a width.');
136
+ this._stopWatchingForCollapse();
137
+ }, 250);
138
+ });
139
+ this._collapseObserver.observe(this);
140
+ }
141
+ _stopWatchingForCollapse() {
142
+ this._collapseObserver?.disconnect();
143
+ this._collapseObserver = null;
144
+ if (this._collapseVerdict)
145
+ clearTimeout(this._collapseVerdict);
146
+ this._collapseVerdict = 0;
54
147
  }
55
148
  render() {
56
149
  return template.call(this);
@@ -61,7 +154,7 @@ __decorate([
61
154
  property({ reflect: true, converter: reflectNonDefault('md') })
62
155
  ], NLDDButtonGroup.prototype, "size", void 0);
63
156
  __decorate([
64
- property({ reflect: true, converter: reflectNonDefault('vertical') })
157
+ property({ reflect: true, converter: reflectNonDefault('auto') })
65
158
  ], NLDDButtonGroup.prototype, "orientation", void 0);
66
159
  __decorate([
67
160
  query('slot')
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;GAYG;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,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAM/C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QAIN,SAAI,GAAS,IAAI,CAA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ge,sBAAM,GAAG,iBAAiB,AAApB,CAAqB;AAG3C;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAO,IAAI,CAAC,EAAE,CAAC;6CACpD;AAGlB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAc,MAAM,CAAC,EAAE,CAAC;oDAC7C;AAG1B;IADP,KAAK,CAAC,MAAM,CAAC;8CACkB;AAVpB,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAiH3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,yBAmD7B,CAAC"}
1
+ {"version":3,"file":"button-group.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,yBA6G7B,CAAC"}
@@ -1,4 +1,6 @@
1
- import { css } from 'lit';
1
+ import { css, unsafeCSS } from 'lit';
2
+ import { breakpoints } from "../../../assets/styles/breakpoints.js";
3
+ const smMax = unsafeCSS(breakpoints.smMax);
2
4
  export const buttonGroupStyles = css `
3
5
  :host {
4
6
  box-sizing: border-box;
@@ -18,24 +20,82 @@ export const buttonGroupStyles = css `
18
20
  justify-content: flex-start;
19
21
  }
20
22
 
23
+ /* Only auto asks its own width a question, so only auto becomes a container.
24
+ A container may not size itself from its contents, and a group pinned to a
25
+ row or a stack would then measure zero in a parent that shrink-wraps, for
26
+ a query it never runs. */
27
+ :host(:not([orientation="horizontal"], [orientation="vertical"])) {
28
+ container-type: inline-size;
29
+ }
30
+
21
31
  :host([size="sm"]) {
22
32
  --_gap: var(--components-button-group-sm-gap);
23
33
  }
24
34
 
25
- /* ## Horizontal
26
- The row keeps the full width (like vertical) so full-width children
35
+ /* ## In a row
36
+ The row keeps the full width (like the stack) so full-width children
27
37
  can actually stretch; content-sized buttons still sit left within
28
38
  the row. */
29
39
 
30
- :host([orientation="horizontal"]) {
40
+ :host([orientation="horizontal"]),
41
+ :host(:not([orientation="horizontal"], [orientation="vertical"])) {
31
42
  --_flex-direction: row;
32
43
  --_flex-wrap: wrap;
33
44
  }
34
45
 
46
+ /* ## Auto
47
+ Auto is the default: a row, and stacked over the full width on a narrow
48
+ container, where two labels beside each other leave no room for either.
49
+
50
+ Auto is matched as "neither of the other two" rather than as itself: the
51
+ attribute reflects only when it is not the default, so auto is written out
52
+ OR absent, and a rule that named it would have needed a second selector
53
+ beside it everywhere. */
54
+
55
+ @container (max-width: ${smMax}) {
56
+ :host(:not([orientation="horizontal"], [orientation="vertical"])) .button-group {
57
+ flex-direction: column;
58
+ --context-button-width: 100%;
59
+ }
60
+
61
+ /* display as well as width: a button host shrink-wraps as inline-flex, so
62
+ width alone leaves the button itself content-sized in a stretched box.
63
+ An icon-only control is the exception: its size is its icon, and a
64
+ full-width bar with one glyph in the middle is not a bigger target for
65
+ the thumb, just a wider one. */
66
+ :host(:not([orientation="horizontal"], [orientation="vertical"])) ::slotted(:not(nldd-icon-button)) {
67
+ display: block;
68
+ width: 100%;
69
+ }
70
+
71
+ /* align-self as well: a column stretches its items across the full width
72
+ on its own, so without this the icon button is a wide bar regardless of
73
+ the width rule above. */
74
+ :host(:not([orientation="horizontal"], [orientation="vertical"])) ::slotted(nldd-icon-button) {
75
+ align-self: flex-start;
76
+ }
77
+ }
78
+
79
+ :host([orientation="vertical"]) .button-group {
80
+ --context-button-width: 100%;
81
+ }
82
+
83
+ :host([orientation="vertical"]) ::slotted(:not(nldd-icon-button)) {
84
+ display: block;
85
+ width: 100%;
86
+ }
87
+
88
+ :host([orientation="vertical"]) ::slotted(nldd-icon-button) {
89
+ align-self: flex-start;
90
+ }
91
+
35
92
  :host([hidden]) {
36
93
  display: none;
37
94
  }
38
95
 
96
+ /* The stacking rules above set display on every slotted child at a higher
97
+ specificity than this selector, so without !important a hidden button in
98
+ a stacked group stays in the row. */
39
99
  ::slotted([hidden]) {
40
100
  display: none !important;
41
101
  }
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDnC,CAAC"}
1
+ {"version":3,"file":"button-group.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAmDV,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D9B,CAAC"}