@ukic/web-components 3.17.0 → 3.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/ic-alert.cjs.entry.js +6 -2
  3. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  4. package/dist/cjs/ic-button_3.cjs.entry.js +28 -16
  5. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-checkbox-group.cjs.entry.js +23 -2
  7. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-chip.cjs.entry.js +12 -5
  9. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-data-list.cjs.entry.js +4 -3
  11. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
  13. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
  15. package/dist/cjs/ic-empty-state.cjs.entry.js +2 -2
  16. package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
  17. package/dist/cjs/ic-hero.cjs.entry.js +4 -4
  18. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
  19. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
  20. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-input-label_2.cjs.entry.js +5 -6
  22. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-layout-grid-item.cjs.entry.js +2 -2
  24. package/dist/cjs/ic-layout-grid.cjs.entry.js +2 -2
  25. package/dist/cjs/ic-link.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  27. package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
  28. package/dist/cjs/ic-navigation-menu.cjs.entry.js +4 -4
  29. package/dist/cjs/ic-page-header.cjs.entry.js +6 -6
  30. package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-pagination.cjs.entry.js +29 -4
  32. package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-popover-menu.cjs.entry.js +4 -4
  34. package/dist/cjs/ic-radio-group.cjs.entry.js +4 -4
  35. package/dist/cjs/ic-radio-option.cjs.entry.js +4 -4
  36. package/dist/cjs/ic-search-bar.cjs.entry.js +9 -9
  37. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  38. package/dist/cjs/ic-select.cjs.entry.js +6 -6
  39. package/dist/cjs/ic-side-navigation.cjs.entry.js +4 -4
  40. package/dist/cjs/ic-skeleton.cjs.entry.js +20 -5
  41. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  43. package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
  44. package/dist/cjs/ic-step.cjs.entry.js +16 -14
  45. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-stepper.cjs.entry.js +24 -4
  47. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-switch.cjs.entry.js +4 -4
  49. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  50. package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
  51. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  52. package/dist/cjs/ic-text-field.cjs.entry.js +5 -5
  53. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  55. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  56. package/dist/cjs/ic-toast.cjs.entry.js +5 -5
  57. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +2 -2
  58. package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
  59. package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -2
  60. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  61. package/dist/cjs/loader.cjs.js +1 -1
  62. package/dist/collection/components/ic-alert/ic-alert.js +26 -2
  63. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  64. package/dist/collection/components/ic-alert/ic-alert.stories.js +15 -0
  65. package/dist/collection/components/ic-button/ic-button.css +12 -0
  66. package/dist/collection/components/ic-button/ic-button.js +3 -3
  67. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  68. package/dist/collection/components/ic-button/ic-button.stories.js +251 -0
  69. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +25 -2
  70. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  71. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +17 -9
  72. package/dist/collection/components/ic-chip/ic-chip.css +12 -0
  73. package/dist/collection/components/ic-chip/ic-chip.js +31 -4
  74. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  75. package/dist/collection/components/ic-chip/ic-chip.stories.js +15 -0
  76. package/dist/collection/components/ic-data-list/ic-data-list.css +4 -0
  77. package/dist/collection/components/ic-data-list/ic-data-list.js +3 -2
  78. package/dist/collection/components/ic-data-list/ic-data-list.js.map +1 -1
  79. package/dist/collection/components/ic-data-list/ic-data-list.stories.js +6 -0
  80. package/dist/collection/components/ic-data-row/ic-data-row.css +1 -1
  81. package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
  82. package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
  83. package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
  84. package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
  85. package/dist/collection/components/ic-hero/ic-hero.js +4 -4
  86. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
  87. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
  88. package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
  89. package/dist/collection/components/ic-input-label/ic-input-label.js +2 -2
  90. package/dist/collection/components/ic-input-validation/ic-input-validation.js +8 -8
  91. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  92. package/dist/collection/components/ic-layout-grid/ic-layout-grid.js +2 -2
  93. package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js +2 -2
  94. package/dist/collection/components/ic-link/ic-link.js +1 -1
  95. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +29 -14
  96. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  97. package/dist/collection/components/ic-menu/ic-menu.css +1 -1
  98. package/dist/collection/components/ic-menu/ic-menu.js +3 -3
  99. package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
  100. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
  101. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
  102. package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
  103. package/dist/collection/components/ic-pagination/ic-pagination.js +35 -4
  104. package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
  105. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
  106. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +4 -4
  107. package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
  108. package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
  109. package/dist/collection/components/ic-search-bar/ic-search-bar.js +9 -9
  110. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  111. package/dist/collection/components/ic-select/ic-select.js +6 -6
  112. package/dist/collection/components/ic-select/ic-select_(multi).stories.js +2 -2
  113. package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +1 -1
  114. package/dist/collection/components/ic-select/ic-select_(single).stories.js +3 -3
  115. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
  116. package/dist/collection/components/ic-skeleton/ic-skeleton.js +58 -5
  117. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
  118. package/dist/collection/components/ic-skeleton/ic-skeleton.stories.js +4 -3
  119. package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
  120. package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
  121. package/dist/collection/components/ic-step/ic-step.css +16 -7
  122. package/dist/collection/components/ic-step/ic-step.js +19 -14
  123. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  124. package/dist/collection/components/ic-stepper/ic-stepper.js +24 -4
  125. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  126. package/dist/collection/components/ic-stepper/ic-stepper.stories.js +12 -0
  127. package/dist/collection/components/ic-switch/ic-switch.js +4 -4
  128. package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
  129. package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
  130. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
  131. package/dist/collection/components/ic-text-field/ic-text-field.js +6 -5
  132. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  133. package/dist/collection/components/ic-text-field/ic-text-field.stories.js +12 -1
  134. package/dist/collection/components/ic-theme/ic-theme.js +1 -1
  135. package/dist/collection/components/ic-toast/ic-toast.js +5 -5
  136. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
  137. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
  138. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
  139. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +5 -2
  140. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  141. package/dist/components/ic-alert.js +7 -2
  142. package/dist/components/ic-alert.js.map +1 -1
  143. package/dist/components/ic-button2.js +4 -4
  144. package/dist/components/ic-button2.js.map +1 -1
  145. package/dist/components/ic-checkbox-group.js +24 -2
  146. package/dist/components/ic-checkbox-group.js.map +1 -1
  147. package/dist/components/ic-chip.js +13 -5
  148. package/dist/components/ic-chip.js.map +1 -1
  149. package/dist/components/ic-data-list.js +4 -3
  150. package/dist/components/ic-data-list.js.map +1 -1
  151. package/dist/components/ic-data-row.js +3 -3
  152. package/dist/components/ic-data-row.js.map +1 -1
  153. package/dist/components/ic-dialog.js +1 -1
  154. package/dist/components/ic-empty-state.js +2 -2
  155. package/dist/components/ic-footer-link.js +2 -2
  156. package/dist/components/ic-hero.js +4 -4
  157. package/dist/components/ic-horizontal-scroll2.js +5 -5
  158. package/dist/components/ic-input-component-container2.js +3 -3
  159. package/dist/components/ic-input-container2.js +2 -2
  160. package/dist/components/ic-input-label2.js +2 -2
  161. package/dist/components/ic-input-validation2.js +4 -5
  162. package/dist/components/ic-input-validation2.js.map +1 -1
  163. package/dist/components/ic-layout-grid-item.js +2 -2
  164. package/dist/components/ic-layout-grid.js +2 -2
  165. package/dist/components/ic-link2.js +1 -1
  166. package/dist/components/ic-loading-indicator2.js +27 -13
  167. package/dist/components/ic-loading-indicator2.js.map +1 -1
  168. package/dist/components/ic-menu-group.js +1 -1
  169. package/dist/components/ic-menu2.js +4 -4
  170. package/dist/components/ic-menu2.js.map +1 -1
  171. package/dist/components/ic-navigation-group.js +1 -1
  172. package/dist/components/ic-navigation-menu2.js +4 -4
  173. package/dist/components/ic-page-header.js +6 -6
  174. package/dist/components/ic-page-header.js.map +1 -1
  175. package/dist/components/ic-pagination-item2.js +1 -1
  176. package/dist/components/ic-pagination.js +30 -5
  177. package/dist/components/ic-pagination.js.map +1 -1
  178. package/dist/components/ic-popover-menu.js +4 -4
  179. package/dist/components/ic-popover-menu.js.map +1 -1
  180. package/dist/components/ic-radio-group.js +4 -4
  181. package/dist/components/ic-radio-group.js.map +1 -1
  182. package/dist/components/ic-radio-option.js +4 -4
  183. package/dist/components/ic-search-bar.js +9 -9
  184. package/dist/components/ic-section-container2.js +2 -2
  185. package/dist/components/ic-select.js +6 -6
  186. package/dist/components/ic-side-navigation.js +4 -4
  187. package/dist/components/ic-side-navigation.js.map +1 -1
  188. package/dist/components/ic-skeleton.js +23 -6
  189. package/dist/components/ic-skeleton.js.map +1 -1
  190. package/dist/components/ic-skip-link.js +2 -2
  191. package/dist/components/ic-status-tag.js +2 -2
  192. package/dist/components/ic-step.js +17 -15
  193. package/dist/components/ic-step.js.map +1 -1
  194. package/dist/components/ic-stepper.js +24 -4
  195. package/dist/components/ic-stepper.js.map +1 -1
  196. package/dist/components/ic-switch.js +4 -4
  197. package/dist/components/ic-tab-context.js +1 -1
  198. package/dist/components/ic-tab-group.js +2 -2
  199. package/dist/components/ic-tab-panel.js +2 -2
  200. package/dist/components/ic-text-field.js +5 -5
  201. package/dist/components/ic-text-field.js.map +1 -1
  202. package/dist/components/ic-theme.js +1 -1
  203. package/dist/components/ic-toast-region.js +1 -1
  204. package/dist/components/ic-toast.js +5 -5
  205. package/dist/components/ic-toggle-button-group.js +2 -2
  206. package/dist/components/ic-toggle-button.js +2 -2
  207. package/dist/components/ic-top-navigation.js +5 -2
  208. package/dist/components/ic-top-navigation.js.map +1 -1
  209. package/dist/core/core.css +1 -1
  210. package/dist/core/core.esm.js +1 -1
  211. package/dist/core/core.esm.js.map +1 -1
  212. package/dist/core/{p-b83a736d.entry.js → p-012e058a.entry.js} +3 -3
  213. package/dist/core/p-012e058a.entry.js.map +1 -0
  214. package/dist/core/{p-6329ddcb.entry.js → p-0257d59e.entry.js} +2 -2
  215. package/dist/core/{p-d3223b89.entry.js → p-06b3ae40.entry.js} +2 -2
  216. package/dist/core/{p-f6bb691a.entry.js → p-091a7fbf.entry.js} +2 -2
  217. package/dist/core/{p-b4a2f6fa.entry.js → p-0eafbaa1.entry.js} +2 -2
  218. package/dist/core/p-0eafbaa1.entry.js.map +1 -0
  219. package/dist/core/{p-1ca4a5ed.entry.js → p-128e2cbb.entry.js} +2 -2
  220. package/dist/core/{p-afbba548.entry.js → p-21efc36e.entry.js} +2 -2
  221. package/dist/core/{p-04cb17d7.entry.js → p-287e5c17.entry.js} +2 -2
  222. package/dist/core/{p-4d3b219c.entry.js → p-28c9a6e4.entry.js} +2 -2
  223. package/dist/core/{p-f57729b8.entry.js → p-296a41ce.entry.js} +2 -2
  224. package/dist/core/p-34cc376c.entry.js +2 -0
  225. package/dist/core/p-34cc376c.entry.js.map +1 -0
  226. package/dist/core/{p-eca43f7d.entry.js → p-3b13d191.entry.js} +2 -2
  227. package/dist/core/{p-adde6c66.entry.js → p-43356493.entry.js} +2 -2
  228. package/dist/core/{p-3636be4f.entry.js → p-44aaf454.entry.js} +2 -2
  229. package/dist/core/{p-f4e3bb5b.entry.js → p-44fbe8c2.entry.js} +2 -2
  230. package/dist/core/{p-a7583faf.entry.js → p-4637c326.entry.js} +2 -2
  231. package/dist/core/{p-30312243.entry.js → p-49444c33.entry.js} +2 -2
  232. package/dist/core/p-49444c33.entry.js.map +1 -0
  233. package/dist/core/p-4fa7fbc4.entry.js +2 -0
  234. package/dist/core/p-4fa7fbc4.entry.js.map +1 -0
  235. package/dist/core/{p-2026f4fa.entry.js → p-52fa3eec.entry.js} +2 -2
  236. package/dist/core/{p-2026f4fa.entry.js.map → p-52fa3eec.entry.js.map} +1 -1
  237. package/dist/core/{p-9c52ee48.entry.js → p-539b975f.entry.js} +2 -2
  238. package/dist/core/{p-319e3d5b.entry.js → p-5cf704e3.entry.js} +2 -2
  239. package/dist/core/p-5e1a77aa.entry.js +2 -0
  240. package/dist/core/p-5e1a77aa.entry.js.map +1 -0
  241. package/dist/core/{p-601d4e3f.entry.js → p-614953c5.entry.js} +2 -2
  242. package/dist/core/{p-3d23ce54.entry.js → p-6b6c1491.entry.js} +2 -2
  243. package/dist/core/{p-5254a078.entry.js → p-6e8ef73c.entry.js} +2 -2
  244. package/dist/core/{p-ae11583f.entry.js → p-6fb29846.entry.js} +2 -2
  245. package/dist/core/p-70e1dd4d.entry.js +2 -0
  246. package/dist/core/p-70e1dd4d.entry.js.map +1 -0
  247. package/dist/core/{p-52c66bfe.entry.js → p-72ac8bb9.entry.js} +2 -2
  248. package/dist/core/{p-ffd0d9d1.entry.js → p-7552c8a1.entry.js} +2 -2
  249. package/dist/core/{p-a8e4258f.entry.js → p-8798cc6b.entry.js} +2 -2
  250. package/dist/core/p-8798cc6b.entry.js.map +1 -0
  251. package/dist/core/{p-ca82850f.entry.js → p-9452b9ac.entry.js} +2 -2
  252. package/dist/core/p-9452b9ac.entry.js.map +1 -0
  253. package/dist/core/p-a5295f66.entry.js +2 -0
  254. package/dist/core/p-a5295f66.entry.js.map +1 -0
  255. package/dist/core/p-a7645717.entry.js +2 -0
  256. package/dist/core/p-a7645717.entry.js.map +1 -0
  257. package/dist/core/p-a86785dd.entry.js +2 -0
  258. package/dist/core/p-a86785dd.entry.js.map +1 -0
  259. package/dist/core/{p-703f3de1.entry.js → p-a8dc3162.entry.js} +2 -2
  260. package/dist/core/{p-f7105cf9.entry.js → p-ad6632a9.entry.js} +2 -2
  261. package/dist/core/p-ae861bb8.entry.js +2 -0
  262. package/dist/core/{p-7d0d85c4.entry.js → p-af02add9.entry.js} +2 -2
  263. package/dist/core/{p-9674b63f.entry.js → p-b00efb15.entry.js} +2 -2
  264. package/dist/core/{p-3238389a.entry.js → p-bb3a5130.entry.js} +2 -2
  265. package/dist/core/{p-53740194.entry.js → p-bfd03fb4.entry.js} +2 -2
  266. package/dist/core/p-bfd03fb4.entry.js.map +1 -0
  267. package/dist/core/{p-67c3985d.entry.js → p-d8200098.entry.js} +2 -2
  268. package/dist/core/{p-6ed48c46.entry.js → p-dfc2a0b1.entry.js} +2 -2
  269. package/dist/core/{p-12c30491.entry.js → p-f4e2e41f.entry.js} +2 -2
  270. package/dist/core/{p-9ca147f3.entry.js → p-fb43abd6.entry.js} +2 -2
  271. package/dist/esm/core.js +1 -1
  272. package/dist/esm/ic-alert.entry.js +6 -2
  273. package/dist/esm/ic-alert.entry.js.map +1 -1
  274. package/dist/esm/ic-button_3.entry.js +28 -16
  275. package/dist/esm/ic-button_3.entry.js.map +1 -1
  276. package/dist/esm/ic-checkbox-group.entry.js +23 -2
  277. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  278. package/dist/esm/ic-chip.entry.js +12 -5
  279. package/dist/esm/ic-chip.entry.js.map +1 -1
  280. package/dist/esm/ic-data-list.entry.js +4 -3
  281. package/dist/esm/ic-data-list.entry.js.map +1 -1
  282. package/dist/esm/ic-data-row.entry.js +3 -3
  283. package/dist/esm/ic-data-row.entry.js.map +1 -1
  284. package/dist/esm/ic-dialog.entry.js +1 -1
  285. package/dist/esm/ic-empty-state.entry.js +2 -2
  286. package/dist/esm/ic-footer-link.entry.js +2 -2
  287. package/dist/esm/ic-hero.entry.js +4 -4
  288. package/dist/esm/ic-horizontal-scroll.entry.js +5 -5
  289. package/dist/esm/ic-input-component-container_3.entry.js +9 -9
  290. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  291. package/dist/esm/ic-input-label_2.entry.js +6 -7
  292. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  293. package/dist/esm/ic-layout-grid-item.entry.js +2 -2
  294. package/dist/esm/ic-layout-grid.entry.js +2 -2
  295. package/dist/esm/ic-link.entry.js +1 -1
  296. package/dist/esm/ic-menu-group.entry.js +1 -1
  297. package/dist/esm/ic-navigation-group.entry.js +1 -1
  298. package/dist/esm/ic-navigation-menu.entry.js +4 -4
  299. package/dist/esm/ic-page-header.entry.js +6 -6
  300. package/dist/esm/ic-pagination-item.entry.js +1 -1
  301. package/dist/esm/ic-pagination.entry.js +29 -4
  302. package/dist/esm/ic-pagination.entry.js.map +1 -1
  303. package/dist/esm/ic-popover-menu.entry.js +4 -4
  304. package/dist/esm/ic-radio-group.entry.js +4 -4
  305. package/dist/esm/ic-radio-option.entry.js +4 -4
  306. package/dist/esm/ic-search-bar.entry.js +9 -9
  307. package/dist/esm/ic-section-container.entry.js +2 -2
  308. package/dist/esm/ic-select.entry.js +6 -6
  309. package/dist/esm/ic-side-navigation.entry.js +4 -4
  310. package/dist/esm/ic-skeleton.entry.js +20 -5
  311. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  312. package/dist/esm/ic-skip-link.entry.js +2 -2
  313. package/dist/esm/ic-status-tag.entry.js +2 -2
  314. package/dist/esm/ic-step.entry.js +17 -15
  315. package/dist/esm/ic-step.entry.js.map +1 -1
  316. package/dist/esm/ic-stepper.entry.js +24 -4
  317. package/dist/esm/ic-stepper.entry.js.map +1 -1
  318. package/dist/esm/ic-switch.entry.js +4 -4
  319. package/dist/esm/ic-tab-context.entry.js +1 -1
  320. package/dist/esm/ic-tab-group.entry.js +2 -2
  321. package/dist/esm/ic-tab-panel.entry.js +2 -2
  322. package/dist/esm/ic-text-field.entry.js +5 -5
  323. package/dist/esm/ic-text-field.entry.js.map +1 -1
  324. package/dist/esm/ic-theme.entry.js +1 -1
  325. package/dist/esm/ic-toast-region.entry.js +1 -1
  326. package/dist/esm/ic-toast.entry.js +5 -5
  327. package/dist/esm/ic-toggle-button-group.entry.js +2 -2
  328. package/dist/esm/ic-toggle-button.entry.js +2 -2
  329. package/dist/esm/ic-top-navigation.entry.js +5 -2
  330. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  331. package/dist/esm/loader.js +1 -1
  332. package/dist/types/components/ic-alert/ic-alert.d.ts +4 -0
  333. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +3 -0
  334. package/dist/types/components/ic-chip/ic-chip.d.ts +5 -0
  335. package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +2 -1
  336. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +4 -1
  337. package/dist/types/components/ic-pagination/ic-pagination.d.ts +7 -0
  338. package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +8 -0
  339. package/dist/types/components/ic-step/ic-step.d.ts +3 -0
  340. package/dist/types/components/ic-stepper/ic-stepper.d.ts +1 -0
  341. package/dist/types/components/ic-text-field/ic-text-field.d.ts +1 -0
  342. package/dist/types/components.d.ts +36 -4
  343. package/hydrate/index.js +291 -172
  344. package/hydrate/index.mjs +291 -172
  345. package/package.json +17 -23
  346. package/vscode-data.json +17 -1
  347. package/dist/core/p-199c5ff6.entry.js +0 -2
  348. package/dist/core/p-199c5ff6.entry.js.map +0 -1
  349. package/dist/core/p-1f41818b.entry.js +0 -2
  350. package/dist/core/p-1f41818b.entry.js.map +0 -1
  351. package/dist/core/p-30312243.entry.js.map +0 -1
  352. package/dist/core/p-33e35173.entry.js +0 -2
  353. package/dist/core/p-33e35173.entry.js.map +0 -1
  354. package/dist/core/p-34407b13.entry.js +0 -2
  355. package/dist/core/p-34407b13.entry.js.map +0 -1
  356. package/dist/core/p-42d35fc4.entry.js +0 -2
  357. package/dist/core/p-42d35fc4.entry.js.map +0 -1
  358. package/dist/core/p-53740194.entry.js.map +0 -1
  359. package/dist/core/p-a8e4258f.entry.js.map +0 -1
  360. package/dist/core/p-b4a2f6fa.entry.js.map +0 -1
  361. package/dist/core/p-b59504f1.entry.js +0 -2
  362. package/dist/core/p-b59504f1.entry.js.map +0 -1
  363. package/dist/core/p-b83a736d.entry.js.map +0 -1
  364. package/dist/core/p-ca82850f.entry.js.map +0 -1
  365. package/dist/core/p-cce398e1.entry.js +0 -2
  366. package/dist/core/p-cce398e1.entry.js.map +0 -1
  367. package/dist/core/p-f51c609d.entry.js +0 -2
  368. /package/dist/core/{p-6329ddcb.entry.js.map → p-0257d59e.entry.js.map} +0 -0
  369. /package/dist/core/{p-d3223b89.entry.js.map → p-06b3ae40.entry.js.map} +0 -0
  370. /package/dist/core/{p-f6bb691a.entry.js.map → p-091a7fbf.entry.js.map} +0 -0
  371. /package/dist/core/{p-1ca4a5ed.entry.js.map → p-128e2cbb.entry.js.map} +0 -0
  372. /package/dist/core/{p-afbba548.entry.js.map → p-21efc36e.entry.js.map} +0 -0
  373. /package/dist/core/{p-04cb17d7.entry.js.map → p-287e5c17.entry.js.map} +0 -0
  374. /package/dist/core/{p-4d3b219c.entry.js.map → p-28c9a6e4.entry.js.map} +0 -0
  375. /package/dist/core/{p-f57729b8.entry.js.map → p-296a41ce.entry.js.map} +0 -0
  376. /package/dist/core/{p-eca43f7d.entry.js.map → p-3b13d191.entry.js.map} +0 -0
  377. /package/dist/core/{p-adde6c66.entry.js.map → p-43356493.entry.js.map} +0 -0
  378. /package/dist/core/{p-3636be4f.entry.js.map → p-44aaf454.entry.js.map} +0 -0
  379. /package/dist/core/{p-f4e3bb5b.entry.js.map → p-44fbe8c2.entry.js.map} +0 -0
  380. /package/dist/core/{p-a7583faf.entry.js.map → p-4637c326.entry.js.map} +0 -0
  381. /package/dist/core/{p-9c52ee48.entry.js.map → p-539b975f.entry.js.map} +0 -0
  382. /package/dist/core/{p-319e3d5b.entry.js.map → p-5cf704e3.entry.js.map} +0 -0
  383. /package/dist/core/{p-601d4e3f.entry.js.map → p-614953c5.entry.js.map} +0 -0
  384. /package/dist/core/{p-3d23ce54.entry.js.map → p-6b6c1491.entry.js.map} +0 -0
  385. /package/dist/core/{p-5254a078.entry.js.map → p-6e8ef73c.entry.js.map} +0 -0
  386. /package/dist/core/{p-ae11583f.entry.js.map → p-6fb29846.entry.js.map} +0 -0
  387. /package/dist/core/{p-52c66bfe.entry.js.map → p-72ac8bb9.entry.js.map} +0 -0
  388. /package/dist/core/{p-ffd0d9d1.entry.js.map → p-7552c8a1.entry.js.map} +0 -0
  389. /package/dist/core/{p-703f3de1.entry.js.map → p-a8dc3162.entry.js.map} +0 -0
  390. /package/dist/core/{p-f7105cf9.entry.js.map → p-ad6632a9.entry.js.map} +0 -0
  391. /package/dist/core/{p-f51c609d.entry.js.map → p-ae861bb8.entry.js.map} +0 -0
  392. /package/dist/core/{p-7d0d85c4.entry.js.map → p-af02add9.entry.js.map} +0 -0
  393. /package/dist/core/{p-9674b63f.entry.js.map → p-b00efb15.entry.js.map} +0 -0
  394. /package/dist/core/{p-3238389a.entry.js.map → p-bb3a5130.entry.js.map} +0 -0
  395. /package/dist/core/{p-67c3985d.entry.js.map → p-d8200098.entry.js.map} +0 -0
  396. /package/dist/core/{p-6ed48c46.entry.js.map → p-dfc2a0b1.entry.js.map} +0 -0
  397. /package/dist/core/{p-12c30491.entry.js.map → p-f4e2e41f.entry.js.map} +0 -0
  398. /package/dist/core/{p-9ca147f3.entry.js.map → p-fb43abd6.entry.js.map} +0 -0
@@ -1,10 +1,12 @@
1
- import { useArgs } from "@storybook/preview-api";
1
+ import { useArgs } from "storybook/preview-api";
2
2
  import { html } from "lit-html";
3
3
 
4
4
  const defaultArgs = {
5
5
  additionalFieldDisplay: "dynamic",
6
6
  additionalFieldSlot: "additional-field",
7
7
  checked: false,
8
+ checkboxDisabled: false,
9
+ checkboxSize: "medium",
8
10
  disabled: false,
9
11
  dynamicText: "Dynamic text",
10
12
  groupLabel: "Checkbox group label",
@@ -43,7 +45,7 @@ export const Default = {
43
45
  <ic-checkbox
44
46
  value="valueName3"
45
47
  label="Unselected / Disabled"
46
- Disabled
48
+ disabled
47
49
  ></ic-checkbox>
48
50
  </ic-checkbox-group>
49
51
  `,
@@ -76,26 +78,22 @@ export const Required = {
76
78
 
77
79
  export const Disabled = {
78
80
  render: () => html`
79
- <ic-checkbox-group label="This is a label" name="group1" Disabled>
81
+ <ic-checkbox-group label="This is a label" name="group1" disabled>
80
82
  <ic-checkbox
81
83
  value="valueName1"
82
84
  label="Unselected / Disabled 1"
83
- Disabled
84
85
  ></ic-checkbox>
85
86
  <ic-checkbox
86
87
  value="valueName2"
87
88
  label="Unselected / Disabled 2"
88
- Disabled
89
89
  ></ic-checkbox>
90
90
  <ic-checkbox
91
91
  value="valueName3"
92
92
  label="Unselected / Disabled 3"
93
- Disabled
94
93
  ></ic-checkbox>
95
94
  <ic-checkbox
96
95
  value="valueName4"
97
96
  label="Selected / Disabled"
98
- Disabled
99
97
  checked
100
98
  ></ic-checkbox>
101
99
  </ic-checkbox-group>
@@ -872,10 +870,10 @@ export const Playground = {
872
870
  theme=${args.theme}
873
871
  >
874
872
  <ic-checkbox
875
- disabled=${args.disabled}
873
+ disabled=${args.checkboxDisabled}
876
874
  label=${args.label}
877
875
  value=${args.value}
878
- size=${args.size}
876
+ size=${args.checkboxSize}
879
877
  hide-label=${args.hideLabel}
880
878
  indeterminate=${args.indeterminate}
881
879
  checked=${checked}
@@ -889,6 +887,8 @@ export const Playground = {
889
887
  label="What's your favourite type of coffee?"
890
888
  ></ic-text-field>
891
889
  </ic-checkbox>
890
+ <ic-checkbox value="valueName2" label="Checkbox 2"></ic-checkbox>
891
+ <ic-checkbox value="valueName3" label="Checkbox 3"></ic-checkbox>
892
892
  </ic-checkbox-group>`;
893
893
  },
894
894
 
@@ -919,6 +919,14 @@ export const Playground = {
919
919
  },
920
920
  },
921
921
 
922
+ checkboxSize: {
923
+ options: ["medium", "large", "small"],
924
+
925
+ control: {
926
+ type: inlineRadioSelector,
927
+ },
928
+ },
929
+
922
930
  validationAriaLive: {
923
931
  options: ["polite", "assertive", "off"],
924
932
 
@@ -466,6 +466,18 @@ video {
466
466
  background-color: var(--chip-bg-color);
467
467
  border: var(--ic-border-width) solid transparent;
468
468
  justify-content: space-between;
469
+ width: -moz-fit-content;
470
+ width: fit-content;
471
+ box-sizing: border-box;
472
+ max-width: 100%;
473
+ }
474
+
475
+ .chip.full-width {
476
+ width: 100%;
477
+ }
478
+
479
+ :host(.ic-chip-full-width) {
480
+ width: 100%;
469
481
  }
470
482
 
471
483
  @media (prefers-reduced-motion: no-preference) {
@@ -22,6 +22,11 @@ export class Chip {
22
22
  * The text in the dismiss button tooltip and aria label. Makes the user aware of the action resulting from clicking the 'Dismiss chip' button.
23
23
  */
24
24
  this.dismissLabel = "Dismiss";
25
+ /**
26
+ * Specify whether the chip fills the full width of the container.
27
+ * If `true`, this overrides the --input-width CSS variable.
28
+ */
29
+ this.fullWidth = false;
25
30
  /**
26
31
  * The size of the chip.
27
32
  */
@@ -88,13 +93,14 @@ export class Chip {
88
93
  (_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
89
94
  }
90
95
  render() {
91
- const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
96
+ const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, fullWidth, } = this;
92
97
  const ariaLabel = `${label} chip`;
93
- return (h(Host, { key: '91df6058439a8c6dbd74de3d46153e4d0c54d623', class: {
98
+ return (h(Host, { key: '5eddf76a82ea1c0589a664c6553dadbf4dbda7c1', class: {
94
99
  "ic-chip-dismissed": !visible,
95
100
  [`ic-theme-${theme}`]: theme !== "inherit",
96
101
  [`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
97
- } }, visible && (h("div", { key: 'e7fe4dfe8ebedf808512a29aceef28a6700cd233', class: {
102
+ "ic-chip-full-width": fullWidth,
103
+ } }, visible && (h("div", { key: 'c58c911f4373c48d04fe4f4f4295210bf32f6260', class: {
98
104
  chip: true,
99
105
  [`${variant}`]: true,
100
106
  [`${size}`]: true,
@@ -102,7 +108,8 @@ export class Chip {
102
108
  dismissible,
103
109
  hovered,
104
110
  "non-transparent": variant === "outlined" && !transparentBackground,
105
- } }, isSlotUsed(this.el, "icon") && (h("div", { key: '81b38c990e638413596f6e5e8041f68eef20e064', class: "icon" }, h("slot", { key: '3a1fda2665ac0aea65df3bfaa94552f5e6fa2e1e', name: "icon" }))), h("ic-typography", { key: 'a496fa5e7be6ec073cb1b2225b7a1e1f79f94f3f', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, h("span", { key: '942471f0fd86b350166c14433c40d6d912a52b17' }, label)), dismissible && (h("ic-tooltip", { key: 'c9ea0b5045a625a7b42ae71b22bc9737b05501ee', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, h("button", { key: '7fb04f03ac698a002fea17de94980623b33502dd', id: "dismiss-icon", class: "dismiss-icon", ref: (el) => (this.buttonEl = el), "aria-label": `${dismissLabel} ${ariaLabel}`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed(this.el, "badge") && h("slot", { key: '99b017ad25c78367d25411312b47aa1f73d8f682', name: "badge" }))), dismissible && (h("div", { key: 'b847f0255a3aaca7f1f24e2de1e939e0a6518c2f', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
111
+ "full-width": fullWidth,
112
+ } }, isSlotUsed(this.el, "icon") && (h("div", { key: '7eeadeb6eee49ac890dc1c52e39cd0cea4df7c01', class: "icon" }, h("slot", { key: 'ea4df10a163a8c878a7f700696b4ddcc423a213a', name: "icon" }))), h("ic-typography", { key: '2bbdbd7e1c5360a15616c52649dd7388fcaa417f', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, h("span", { key: '3085a661aaa96d6b955cc95240a3f5322e5fdf8a' }, label)), dismissible && (h("ic-tooltip", { key: 'e876238e430c974fa1c3513f7dea201d44a36c8e', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, h("button", { key: '125f60aca78da345de3b1e03751af2b8b3e196d2', id: "dismiss-icon", class: "dismiss-icon", ref: (el) => (this.buttonEl = el), "aria-label": `${dismissLabel} ${ariaLabel}`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed(this.el, "badge") && h("slot", { key: '688e1ad7f6b8bfab9cfa4649d7f515c2d5ae37c1', name: "badge" }))), dismissible && (h("div", { key: '45cb6d6e91a9e0d0c0715044ad40fa6da5cf100b', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
106
113
  }
107
114
  static get is() { return "ic-chip"; }
108
115
  static get encapsulation() { return "shadow"; }
@@ -204,6 +211,26 @@ export class Chip {
204
211
  "reflect": false,
205
212
  "defaultValue": "\"Dismiss\""
206
213
  },
214
+ "fullWidth": {
215
+ "type": "boolean",
216
+ "mutable": false,
217
+ "complexType": {
218
+ "original": "boolean",
219
+ "resolved": "boolean",
220
+ "references": {}
221
+ },
222
+ "required": false,
223
+ "optional": false,
224
+ "docs": {
225
+ "tags": [],
226
+ "text": "Specify whether the chip fills the full width of the container.\nIf `true`, this overrides the --input-width CSS variable."
227
+ },
228
+ "getter": false,
229
+ "setter": false,
230
+ "attribute": "full-width",
231
+ "reflect": false,
232
+ "defaultValue": "false"
233
+ },
207
234
  "label": {
208
235
  "type": "string",
209
236
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"ic-chip.js","sourceRoot":"","sources":["../../../src/components/ic-chip/ic-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,CAAC,EACD,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EAEL,OAAO,EACP,MAAM,EACN,KAAK,EACL,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gCAAgC,EAChC,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,WAAW,MAAM,+BAA+B,CAAC;AAExD;;;GAGG;AAQH,MAAM,OAAO,IAAI;IAPjB;QAaW,oBAAe,GAAsC,IAAI,CAAC;QAC1D,YAAO,GAAG,KAAK,CAAC;QAChB,YAAO,GAAG,IAAI,CAAC;QAyBxB;;WAEG;QACK,aAAQ,GAAG,KAAK,CAAC;QAMzB;;WAEG;QACK,gBAAW,GAAG,KAAK,CAAC;QAE5B;;WAEG;QACK,iBAAY,GAAG,SAAS,CAAC;QAOjC;;WAEG;QACK,SAAI,GAAY,QAAQ,CAAC;QACjC;;;WAGG;QACK,UAAK,GAAgB,SAAS,CAAC;QAEvC;;WAEG;QACK,0BAAqB,GAAG,IAAI,CAAC;QAErC;;WAEG;QACK,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E,CACrC,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n h,\n Prop,\n State,\n Listen,\n Event,\n EventEmitter,\n Element,\n Method,\n Watch,\n Host,\n} from \"@stencil/core\";\nimport {\n onComponentRequiredPropUndefined,\n isSlotUsed,\n removeDisabledFalse,\n convertToRGBA,\n isElInAGGrid,\n getBrandForegroundAppearance,\n renderDynamicChildSlots,\n} from \"../../utils/helpers\";\nimport {\n IcBrandForegroundNoDefault,\n IcColor,\n IcEmphasisType,\n IcSizes,\n IcThemeMode,\n} from \"../../utils/types\";\nimport dismissIcon from \"../../assets/dismiss-icon.svg\";\n\n/**\n * @slot icon - Content will be rendered at the start of the chip.\n * @slot badge - Badge component overlaying the top right of the chip.\n */\n@Component({\n tag: \"ic-chip\",\n styleUrl: \"ic-chip.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Chip {\n private buttonEl?: HTMLButtonElement;\n private hostMutationObserver?: MutationObserver;\n\n @Element() el: HTMLIcChipElement;\n\n @State() foregroundColor: IcBrandForegroundNoDefault | null = null;\n @State() hovered = false;\n @State() visible = true;\n\n /**\n * The custom chip colour. This will override the theme colour.\n * Can be a hex value e.g. \"#ff0000\", RGB e.g. \"rgb(255, 0, 0)\", or RGBA e.g. \"rgba(255, 0, 0, 1)\".\n */\n @Prop() customColor?: IcColor;\n @Watch(\"customColor\")\n customColorHandler(): void {\n const colorRGBA = this.customColor && convertToRGBA(this.customColor);\n if (!colorRGBA) {\n this.foregroundColor = null;\n return;\n }\n\n const { r, g, b, a } = colorRGBA;\n this.foregroundColor = getBrandForegroundAppearance(\n (r * 299 + g * 587 + b * 114) / 1000\n );\n this.el.setAttribute(\n \"style\",\n `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`\n );\n }\n\n /**\n * If `true`, the chip will appear disabled.\n */\n @Prop() disabled = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * If `true`, the chip will have a close button at the end to dismiss it.\n */\n @Prop() dismissible = false;\n\n /**\n * The text in the dismiss button tooltip and aria label. Makes the user aware of the action resulting from clicking the 'Dismiss chip' button.\n */\n @Prop() dismissLabel = \"Dismiss\";\n\n /**\n * The text rendered within the chip.\n */\n @Prop() label!: string;\n\n /**\n * The size of the chip.\n */\n @Prop() size: IcSizes = \"medium\";\n /**\n * Sets the chip to the dark or light theme colors. \"inherit\" will set the color based on the system settings or ic-theme component.\n * Setting the \"customColor\" prop will override this.\n */\n @Prop() theme: IcThemeMode = \"inherit\";\n\n /**\n * If `true`, the outlined variant of chip will have a transparent background rather than the theme defined color.\n */\n @Prop() transparentBackground = true;\n\n /**\n * The emphasis of the chip.\n */\n @Prop() variant: IcEmphasisType = \"filled\";\n\n /**\n * Is emitted when the user dismisses the chip.\n */\n @Event() icDismiss: EventEmitter<void>;\n\n disconnectedCallback(): void {\n this.hostMutationObserver?.disconnect();\n }\n\n componentWillLoad(): void {\n removeDisabledFalse(this.disabled, this.el);\n this.customColorHandler();\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Chip\"\n );\n\n this.hostMutationObserver = new MutationObserver((mutationList) =>\n renderDynamicChildSlots(mutationList, [\"icon\", \"badge\"], this)\n );\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleClick(): void {\n this.visible = !this.visible;\n }\n\n /**\n * Sets focus on the chip.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.buttonEl?.focus();\n }\n\n private dismissAction = () => {\n this.icDismiss.emit();\n };\n\n private mouseEnterHandler = () => {\n this.hovered = true;\n };\n\n private mouseLeaveHandler = () => {\n this.hovered = false;\n };\n\n render() {\n const {\n label,\n variant,\n size,\n dismissible,\n visible,\n disabled,\n hovered,\n theme,\n foregroundColor,\n dismissLabel,\n transparentBackground,\n } = this;\n\n const ariaLabel = `${label} chip`;\n\n return (\n <Host\n class={{\n \"ic-chip-dismissed\": !visible,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n [`ic-chip-${foregroundColor}-text`]:\n variant === \"filled\" && !!foregroundColor,\n }}\n >\n {visible && (\n <div\n class={{\n chip: true,\n [`${variant}`]: true,\n [`${size}`]: true,\n disabled,\n dismissible,\n hovered,\n \"non-transparent\":\n variant === \"outlined\" && !transparentBackground,\n }}\n >\n {isSlotUsed(this.el, \"icon\") && (\n <div class=\"icon\">\n <slot name=\"icon\" />\n </div>\n )}\n <ic-typography\n variant=\"label\"\n apply-vertical-margins={false}\n class={{ label: true, \"in-ag-grid\": isElInAGGrid(this.el) }}\n >\n <span>{label}</span>\n </ic-typography>\n {dismissible && (\n <ic-tooltip\n label={dismissLabel}\n target=\"dismiss-icon\"\n class={{ \"tooltip-disabled\": disabled }}\n >\n <button\n id=\"dismiss-icon\"\n class=\"dismiss-icon\"\n ref={(el) => (this.buttonEl = el)}\n aria-label={`${dismissLabel} ${ariaLabel}`}\n disabled={disabled}\n tabindex={disabled ? -1 : 0}\n onClick={this.dismissAction}\n onMouseEnter={this.mouseEnterHandler}\n onMouseLeave={this.mouseLeaveHandler}\n innerHTML={dismissIcon}\n ></button>\n </ic-tooltip>\n )}\n {isSlotUsed(this.el, \"badge\") && <slot name=\"badge\"></slot>}\n </div>\n )}\n {dismissible && (\n <div class=\"sr-only\" aria-live=\"polite\">\n {!visible ? `Dismissed ${ariaLabel}` : \"\"}\n </div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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n h,\n Prop,\n State,\n Listen,\n Event,\n EventEmitter,\n Element,\n Method,\n Watch,\n Host,\n} from \"@stencil/core\";\nimport {\n onComponentRequiredPropUndefined,\n isSlotUsed,\n removeDisabledFalse,\n convertToRGBA,\n isElInAGGrid,\n getBrandForegroundAppearance,\n renderDynamicChildSlots,\n} from \"../../utils/helpers\";\nimport {\n IcBrandForegroundNoDefault,\n IcColor,\n IcEmphasisType,\n IcSizes,\n IcThemeMode,\n} from \"../../utils/types\";\nimport dismissIcon from \"../../assets/dismiss-icon.svg\";\n\n/**\n * @slot icon - Content will be rendered at the start of the chip.\n * @slot badge - Badge component overlaying the top right of the chip.\n */\n@Component({\n tag: \"ic-chip\",\n styleUrl: \"ic-chip.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Chip {\n private buttonEl?: HTMLButtonElement;\n private hostMutationObserver?: MutationObserver;\n\n @Element() el: HTMLIcChipElement;\n\n @State() foregroundColor: IcBrandForegroundNoDefault | null = null;\n @State() hovered = false;\n @State() visible = true;\n\n /**\n * The custom chip colour. This will override the theme colour.\n * Can be a hex value e.g. \"#ff0000\", RGB e.g. \"rgb(255, 0, 0)\", or RGBA e.g. \"rgba(255, 0, 0, 1)\".\n */\n @Prop() customColor?: IcColor;\n @Watch(\"customColor\")\n customColorHandler(): void {\n const colorRGBA = this.customColor && convertToRGBA(this.customColor);\n if (!colorRGBA) {\n this.foregroundColor = null;\n return;\n }\n\n const { r, g, b, a } = colorRGBA;\n this.foregroundColor = getBrandForegroundAppearance(\n (r * 299 + g * 587 + b * 114) / 1000\n );\n this.el.setAttribute(\n \"style\",\n `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`\n );\n }\n\n /**\n * If `true`, the chip will appear disabled.\n */\n @Prop() disabled = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * If `true`, the chip will have a close button at the end to dismiss it.\n */\n @Prop() dismissible = false;\n\n /**\n * The text in the dismiss button tooltip and aria label. Makes the user aware of the action resulting from clicking the 'Dismiss chip' button.\n */\n @Prop() dismissLabel = \"Dismiss\";\n\n /**\n * Specify whether the chip fills the full width of the container.\n * If `true`, this overrides the --input-width CSS variable.\n */\n @Prop() fullWidth = false;\n\n /**\n * The text rendered within the chip.\n */\n @Prop() label!: string;\n\n /**\n * The size of the chip.\n */\n @Prop() size: IcSizes = \"medium\";\n /**\n * Sets the chip to the dark or light theme colors. \"inherit\" will set the color based on the system settings or ic-theme component.\n * Setting the \"customColor\" prop will override this.\n */\n @Prop() theme: IcThemeMode = \"inherit\";\n\n /**\n * If `true`, the outlined variant of chip will have a transparent background rather than the theme defined color.\n */\n @Prop() transparentBackground = true;\n\n /**\n * The emphasis of the chip.\n */\n @Prop() variant: IcEmphasisType = \"filled\";\n\n /**\n * Is emitted when the user dismisses the chip.\n */\n @Event() icDismiss: EventEmitter<void>;\n\n disconnectedCallback(): void {\n this.hostMutationObserver?.disconnect();\n }\n\n componentWillLoad(): void {\n removeDisabledFalse(this.disabled, this.el);\n this.customColorHandler();\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Chip\"\n );\n\n this.hostMutationObserver = new MutationObserver((mutationList) =>\n renderDynamicChildSlots(mutationList, [\"icon\", \"badge\"], this)\n );\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleClick(): void {\n this.visible = !this.visible;\n }\n\n /**\n * Sets focus on the chip.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.buttonEl?.focus();\n }\n\n private dismissAction = () => {\n this.icDismiss.emit();\n };\n\n private mouseEnterHandler = () => {\n this.hovered = true;\n };\n\n private mouseLeaveHandler = () => {\n this.hovered = false;\n };\n\n render() {\n const {\n label,\n variant,\n size,\n dismissible,\n visible,\n disabled,\n hovered,\n theme,\n foregroundColor,\n dismissLabel,\n transparentBackground,\n fullWidth,\n } = this;\n\n const ariaLabel = `${label} chip`;\n\n return (\n <Host\n class={{\n \"ic-chip-dismissed\": !visible,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n [`ic-chip-${foregroundColor}-text`]:\n variant === \"filled\" && !!foregroundColor,\n \"ic-chip-full-width\": fullWidth,\n }}\n >\n {visible && (\n <div\n class={{\n chip: true,\n [`${variant}`]: true,\n [`${size}`]: true,\n disabled,\n dismissible,\n hovered,\n \"non-transparent\":\n variant === \"outlined\" && !transparentBackground,\n \"full-width\": fullWidth,\n }}\n >\n {isSlotUsed(this.el, \"icon\") && (\n <div class=\"icon\">\n <slot name=\"icon\" />\n </div>\n )}\n <ic-typography\n variant=\"label\"\n apply-vertical-margins={false}\n class={{ label: true, \"in-ag-grid\": isElInAGGrid(this.el) }}\n >\n <span>{label}</span>\n </ic-typography>\n {dismissible && (\n <ic-tooltip\n label={dismissLabel}\n target=\"dismiss-icon\"\n class={{ \"tooltip-disabled\": disabled }}\n >\n <button\n id=\"dismiss-icon\"\n class=\"dismiss-icon\"\n ref={(el) => (this.buttonEl = el)}\n aria-label={`${dismissLabel} ${ariaLabel}`}\n disabled={disabled}\n tabindex={disabled ? -1 : 0}\n onClick={this.dismissAction}\n onMouseEnter={this.mouseEnterHandler}\n onMouseLeave={this.mouseLeaveHandler}\n innerHTML={dismissIcon}\n ></button>\n </ic-tooltip>\n )}\n {isSlotUsed(this.el, \"badge\") && <slot name=\"badge\"></slot>}\n </div>\n )}\n {dismissible && (\n <div class=\"sr-only\" aria-live=\"polite\">\n {!visible ? `Dismissed ${ariaLabel}` : \"\"}\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -12,6 +12,7 @@ const defaultArgs = {
12
12
  transparentBackground: true,
13
13
  variant: "filled",
14
14
  badgeSlot: "badge",
15
+ fullWidth: false,
15
16
  };
16
17
 
17
18
  export default {
@@ -739,6 +740,19 @@ export const WithoutIcons = {
739
740
  name: "Without icons",
740
741
  };
741
742
 
743
+ export const FullWidth = {
744
+ render: () =>
745
+ html`<div style="display:flex; flex-direction: column; gap: 0.5rem ">
746
+ <ic-chip label="Americano" dismissible full-width></ic-chip>
747
+ <ic-chip label="Americano" dismissible> </ic-chip>
748
+ <ic-theme theme="dark">
749
+ <ic-chip label="Cappuccino" full-width> </ic-chip>
750
+ </ic-theme>
751
+ </div>`,
752
+
753
+ name: "Full Width",
754
+ };
755
+
742
756
  export const LongLabel = {
743
757
  render: () =>
744
758
  html`<ic-chip
@@ -913,6 +927,7 @@ export const Playground = {
913
927
  transparent-background=${args.transparentBackground}
914
928
  theme=${args.theme}
915
929
  dismiss-label=${args.dismissLabel}
930
+ full-width=${args.fullWidth}
916
931
  >
917
932
  <svg
918
933
  slot="icon"
@@ -472,6 +472,10 @@ video {
472
472
  background-color: var(--ic-data-list-keyline-heading);
473
473
  }
474
474
 
475
+ .divider-no-heading {
476
+ margin-top: 0;
477
+ }
478
+
475
479
  :host(.ic-data-list-small) .divider {
476
480
  margin-top: var(--ic-space-sm);
477
481
  margin-bottom: var(--ic-space-xs);
@@ -18,10 +18,11 @@ export class DataList {
18
18
  if (size === "small") {
19
19
  Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
20
20
  }
21
- return (h(Host, { key: 'a050ac5764ea9496f33d53abdd27f1a193185cbb', class: {
21
+ const hasHeading = heading || el.querySelector('[slot="heading"]');
22
+ return (h(Host, { key: '17c612682af529e83aa9e68f352e0def68e3ed1f', class: {
22
23
  "ic-data-list-small": size === "small",
23
24
  [`ic-theme-${theme}`]: theme !== "inherit",
24
- } }, h("div", { key: '41836f9dce80428fe7f266601c779255195f2a1a', class: "heading", id: "data-list-heading" }, h("slot", { key: '0bd2c17f6dc9767364dc021695ac5839acb3040f', name: "heading" }, h("ic-typography", { key: '65c4dd118e264af61e6494a81b60e573361ea9d3', variant: "h3" }, heading))), h("div", { key: '5be1cea50a4d8beef81c14da5e13a74a75347244', class: "divider" }), h("ul", { key: '9b71c57f882aec9aecb018e4a1fb98ff66c6aaf1', "aria-labelledby": "data-list-heading", class: "rows" }, h("slot", { key: '729e8422e911d6dc7a64e568af78f9e7e1ba32c7' }))));
25
+ } }, h("div", { key: '35e939693c3be1a65b3773dc4cc777f934b0fbda', class: "heading", id: "data-list-heading" }, h("slot", { key: '6adee6dde0c29913a75228719df88583586dfb6e', name: "heading" }, h("ic-typography", { key: 'fc50ff9029cf0b6d4a327353dc930e6bd9d938da', variant: "h3" }, heading))), h("div", { key: 'f04cf846e38231a4008687d55cdadd825222bbf9', class: { divider: true, "divider-no-heading": !hasHeading } }), h("ul", { key: 'e23f726e29c9436d889e97494d1999208589f857', "aria-labelledby": "data-list-heading", class: "rows" }, h("slot", { key: 'a5c323131aba38658d7b7406d5ee2bf9e3c415d7' }))));
25
26
  }
26
27
  static get is() { return "ic-data-list"; }
27
28
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"ic-data-list.js","sourceRoot":"","sources":["../../../src/components/ic-data-list/ic-data-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGlE;;GAEG;AAMH,MAAM,OAAO,QAAQ;IALrB;QAaE;;WAEG;QACK,SAAI,GAAoB,QAAQ,CAAC;QAEzC;;WAEG;QACK,UAAK,GAAiB,SAAS,CAAC;KA8BzC;IA5BC,MAAM;QACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAE1C,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;YACrB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CACxC,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CACpC,CAAC;QACJ,CAAC;QAED,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,oBAAoB,EAAE,IAAI,KAAK,OAAO;gBACtC,CAAC,YAAY,KAAK,EAAE,CAAC,EAAE,KAAK,KAAK,SAAS;aAC3C;YAED,4DAAK,KAAK,EAAC,SAAS,EAAC,EAAE,EAAC,mBAAmB;gBACzC,6DAAM,IAAI,EAAC,SAAS;oBAClB,sEAAe,OAAO,EAAC,IAAI,IAAE,OAAO,CAAiB,CAChD,CACH;YACN,4DAAK,KAAK,EAAC,SAAS,GAAG;YACvB,8EAAoB,mBAAmB,EAAC,KAAK,EAAC,MAAM;gBAClD,8DAAa,CACV,CACA,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Prop } from \"@stencil/core\";\nimport { IcSizesNoLarge, IcThemeMode } from \"../../utils/types\";\n\n/**\n * @slot heading - Content will be placed at the top of the data list.\n */\n@Component({\n tag: \"ic-data-list\",\n styleUrl: \"ic-data-list.css\",\n shadow: true,\n})\nexport class DataList {\n @Element() el: HTMLIcDataListElement;\n\n /**\n * The title for the data list.\n */\n @Prop() heading?: string;\n\n /**\n * The size of the data list component.\n */\n @Prop() size?: IcSizesNoLarge = \"medium\";\n\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n @Prop() theme?: IcThemeMode = \"inherit\";\n\n render() {\n const { el, heading, size, theme } = this;\n\n if (size === \"small\") {\n Array.from(el.children).forEach((child) =>\n child.setAttribute(\"size\", \"small\")\n );\n }\n\n return (\n <Host\n class={{\n \"ic-data-list-small\": size === \"small\",\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n <div class=\"heading\" id=\"data-list-heading\">\n <slot name=\"heading\">\n <ic-typography variant=\"h3\">{heading}</ic-typography>\n </slot>\n </div>\n <div class=\"divider\" />\n <ul aria-labelledby=\"data-list-heading\" class=\"rows\">\n <slot></slot>\n </ul>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"ic-data-list.js","sourceRoot":"","sources":["../../../src/components/ic-data-list/ic-data-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGlE;;GAEG;AAMH,MAAM,OAAO,QAAQ;IALrB;QAaE;;WAEG;QACK,SAAI,GAAoB,QAAQ,CAAC;QAEzC;;WAEG;QACK,UAAK,GAAiB,SAAS,CAAC;KAgCzC;IA9BC,MAAM;QACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAE1C,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;YACrB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CACxC,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CACpC,CAAC;QACJ,CAAC;QAED,MAAM,UAAU,GAAG,OAAO,IAAI,EAAE,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;QAEnE,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,oBAAoB,EAAE,IAAI,KAAK,OAAO;gBACtC,CAAC,YAAY,KAAK,EAAE,CAAC,EAAE,KAAK,KAAK,SAAS;aAC3C;YAED,4DAAK,KAAK,EAAC,SAAS,EAAC,EAAE,EAAC,mBAAmB;gBACzC,6DAAM,IAAI,EAAC,SAAS;oBAClB,sEAAe,OAAO,EAAC,IAAI,IAAE,OAAO,CAAiB,CAChD,CACH;YACN,4DAAK,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,UAAU,EAAE,GAAI;YACpE,8EAAoB,mBAAmB,EAAC,KAAK,EAAC,MAAM;gBAClD,8DAAa,CACV,CACA,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Prop } from \"@stencil/core\";\nimport { IcSizesNoLarge, IcThemeMode } from \"../../utils/types\";\n\n/**\n * @slot heading - Content will be placed at the top of the data list.\n */\n@Component({\n tag: \"ic-data-list\",\n styleUrl: \"ic-data-list.css\",\n shadow: true,\n})\nexport class DataList {\n @Element() el: HTMLIcDataListElement;\n\n /**\n * The title for the data list.\n */\n @Prop() heading?: string;\n\n /**\n * The size of the data list component.\n */\n @Prop() size?: IcSizesNoLarge = \"medium\";\n\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n @Prop() theme?: IcThemeMode = \"inherit\";\n\n render() {\n const { el, heading, size, theme } = this;\n\n if (size === \"small\") {\n Array.from(el.children).forEach((child) =>\n child.setAttribute(\"size\", \"small\")\n );\n }\n\n const hasHeading = heading || el.querySelector('[slot=\"heading\"]');\n\n return (\n <Host\n class={{\n \"ic-data-list-small\": size === \"small\",\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n <div class=\"heading\" id=\"data-list-heading\">\n <slot name=\"heading\">\n <ic-typography variant=\"h3\">{heading}</ic-typography>\n </slot>\n </div>\n <div class={{ divider: true, \"divider-no-heading\": !hasHeading }} />\n <ul aria-labelledby=\"data-list-heading\" class=\"rows\">\n <slot></slot>\n </ul>\n </Host>\n );\n }\n}\n"]}
@@ -155,6 +155,7 @@ export const IconButton = {
155
155
  variant="icon-tertiary"
156
156
  aria-label="Edit"
157
157
  slot="end-component"
158
+ size="small"
158
159
  >
159
160
  <svg
160
161
  xmlns="http://www.w3.org/2000/svg"
@@ -173,6 +174,7 @@ export const IconButton = {
173
174
  variant="icon-tertiary"
174
175
  aria-label="Edit"
175
176
  slot="end-component"
177
+ size="small"
176
178
  >
177
179
  <svg
178
180
  xmlns="http://www.w3.org/2000/svg"
@@ -191,6 +193,7 @@ export const IconButton = {
191
193
  variant="icon-tertiary"
192
194
  aria-label="Edit"
193
195
  slot="end-component"
196
+ size="small"
194
197
  >
195
198
  <svg
196
199
  xmlns="http://www.w3.org/2000/svg"
@@ -209,6 +212,7 @@ export const IconButton = {
209
212
  variant="icon-tertiary"
210
213
  aria-label="Edit"
211
214
  slot="end-component"
215
+ size="small"
212
216
  >
213
217
  <svg
214
218
  xmlns="http://www.w3.org/2000/svg"
@@ -236,6 +240,7 @@ export const IconButton = {
236
240
  variant="icon-tertiary"
237
241
  aria-label="Edit"
238
242
  slot="end-component"
243
+ size="small"
239
244
  >
240
245
  <svg
241
246
  xmlns="http://www.w3.org/2000/svg"
@@ -502,6 +507,7 @@ export const Playground = {
502
507
  variant="icon-tertiary"
503
508
  aria-label="Edit"
504
509
  slot=${args.endCompSlot}
510
+ size="small"
505
511
  >
506
512
  <svg
507
513
  xmlns="http://www.w3.org/2000/svg"
@@ -448,7 +448,7 @@ video {
448
448
 
449
449
  .data {
450
450
  display: flex;
451
- align-items: center;
451
+ align-items: top;
452
452
  }
453
453
 
454
454
  .text-cells {
@@ -68,12 +68,12 @@ export class DataRow {
68
68
  }
69
69
  render() {
70
70
  const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
71
- return (h(Host, { key: '8a70c9ceda7aebc616eb335f08e626952c87ddf3', class: {
71
+ return (h(Host, { key: '3cfe27bfa3e8e0a563450e3842c31e50a78fcb28', class: {
72
72
  ["ic-data-row-small"]: size === "small",
73
73
  ["breakpoint-medium"]: listSize === "m",
74
74
  ["breakpoint-xs"]: listSize === "xs",
75
75
  [`ic-theme-${theme}`]: theme !== "inherit",
76
- }, role: "listitem" }, h("div", { key: 'b2f75779fb6392023c42d9c1f8bf58a98b431797', class: "data" }, h("div", { key: '059aa84f8a91c9a7cdaea4e118287ea460f1bcdd', class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (h("div", { key: '3bcb9b239d836434ceae03ecd35c1bdc42d73699', class: "end-component" }, h("slot", { key: '453e0c7e4d6b875ddfc319a12dc173913057b8bd', name: "end-component" })))), h("div", { key: 'f16fd733c8ffd0e8ed8e7461099a3b9b81809cb3', class: "divider" })));
76
+ }, role: "listitem" }, h("div", { key: '348b7ebe1cec0baab24213e9cc468a7e2274ae31', class: "data" }, h("div", { key: 'a2d9d409a312f20b259a40a85ce37b8928e8da06', class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (h("div", { key: 'c7f9583403acf4041eebe4b26ff417b453fe07db', class: "end-component" }, h("slot", { key: '837641d249f27635ece7e1eb6505d3e4dbf5492b', name: "end-component" })))), h("div", { key: '9f39724a36e05428a979a589bbed4a09fa2043e0', class: "divider" })));
77
77
  }
78
78
  static get is() { return "ic-data-row"; }
79
79
  static get encapsulation() { return "shadow"; }
@@ -361,7 +361,7 @@ export class Dialog {
361
361
  }
362
362
  render() {
363
363
  const { dialogRendered, disableHeightConstraint, fadeIn, theme, size } = this;
364
- return (h(Host, { key: 'b7042e156db6ea72797e7e83ce6af29747c40d6a', class: {
364
+ return (h(Host, { key: 'fca8d5ed62295efef6630d45e8174331c4d99e48', class: {
365
365
  "ic-dialog-hidden": !dialogRendered,
366
366
  "ic-dialog-fade-in": fadeIn,
367
367
  "disable-height-constraint": !!disableHeightConstraint,
@@ -37,11 +37,11 @@ export class EmptyState {
37
37
  }
38
38
  render() {
39
39
  const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
40
- return (h(Host, { key: '4bb35d1c3476b88cc58e952b1b8785e4425d5339', class: {
40
+ return (h(Host, { key: 'a0dcd0b2fe385b4c2f1f4ffc346ac54b3e19565c', class: {
41
41
  [`ic-empty-state-${aligned}`]: true,
42
42
  [`image-${imageSize}`]: isSlotUsed(this.el, "image"),
43
43
  [`ic-theme-${theme}`]: theme !== "inherit",
44
- } }, isSlotUsed(this.el, "image") && h("slot", { key: '9e87ed9f746d37f57505a75c62b10279b31ef54e', name: "image" }), h("div", { key: '4f94dc11d843660d3fecd976fa71f9c57644c89b' }, h("slot", { key: 'be23c55a8dc832904fbae342890d2a3d2d74ae85', name: "heading" }, h("ic-typography", { key: '52bf3dca695fecff3e5d650bd81db23d09665258', variant: "h4", class: "empty-state-heading" }, heading)), h("slot", { key: '7ed10d78475ac8b9c3f5a084a1294ad1be180f15', name: "subheading" }, h("ic-typography", { key: '5772d056578a64a951178c3c3026b36d4b316496', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), h("slot", { key: '14a8815b51a06521642921f09fa8346483522e84', name: "body" }, h("ic-typography", { key: 'bca780cc2275e81d4e25bae45f5065f6fab3bcd5', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed(this.el, "actions") && (h("div", { key: 'd6c0f61a358c1d0c86c4da922ed0504ffdc8228f', class: "action-area" }, h("slot", { key: 'ac150a34e883376bfee43a6edbeb8992c3bc3f96', name: "actions" })))));
44
+ } }, isSlotUsed(this.el, "image") && h("slot", { key: 'e652b784ccd7b2af7ed0f9755547a9ddbbb4c5e7', name: "image" }), h("div", { key: '1dfc5567a55de1301caec6d779ad60f851826a41' }, h("slot", { key: '70b5a550c9650fcab692acbc53d035e114eaf09e', name: "heading" }, h("ic-typography", { key: '043fc0ae7d4364442d75bb78bdbe3004fa1274f4', variant: "h4", class: "empty-state-heading" }, heading)), h("slot", { key: '84dbde519a4b6cb0cd7ab03e8dbcb85931796a24', name: "subheading" }, h("ic-typography", { key: 'a2d94ae6cba46c73212f2c688858ee56ceaa5a90', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), h("slot", { key: 'aa1fc8130e5d4fb6a472f908a30fd319463b443f', name: "body" }, h("ic-typography", { key: 'f73a7eb783dd049cb4de2510b977500d0fa47d52', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed(this.el, "actions") && (h("div", { key: '3cb1e55fb552cf4177498d87e874d16a3f16d429', class: "action-area" }, h("slot", { key: 'e25cb0c875f095825a512cea93c5ffe700072e71', name: "actions" })))));
45
45
  }
46
46
  static get is() { return "ic-empty-state"; }
47
47
  static get encapsulation() { return "shadow"; }
@@ -39,12 +39,12 @@ export class FooterLink {
39
39
  const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
40
40
  const { small, grouped } = footerConfig;
41
41
  const isLogoLink = !!this.el.closest("div[slot='logo']");
42
- return (h(Host, { key: 'b8797484e397b1a952f2df6f644c985deec5be65', class: {
42
+ return (h(Host, { key: '445c93b158bc2ac7958a7b9712ab29462acdce9e', class: {
43
43
  "footer-link": true,
44
44
  [`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
45
45
  [`footer-link-${this.foregroundColor}`]: true,
46
46
  "footer-logo-link": isLogoLink,
47
- }, role: "listitem" }, h("ic-link", { key: '1cd559f7c768a70d2bc0c92845ad6ae6761b584a', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, h("slot", { key: 'f2104f33d9651f96414a4963b30ea2e6c2414b18' }))));
47
+ }, role: "listitem" }, h("ic-link", { key: 'f6ae4e7d52fdebdd574efd3ff21c6d5e0dbc827b', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, h("slot", { key: '8d8cf6f52b51cd26b6faa02fb91889d674286b38' }))));
48
48
  }
49
49
  static get is() { return "ic-footer-link"; }
50
50
  static get encapsulation() { return "shadow"; }
@@ -78,7 +78,7 @@ export class Hero {
78
78
  "background-position": scrollFactor,
79
79
  };
80
80
  }
81
- return (h(Host, { key: '34d3c839d5827d5dadfdc1a160c4b6b2ae965cdf', class: {
81
+ return (h(Host, { key: '0ae644324ec79f6f3b227626452353339c05272c', class: {
82
82
  [`ic-hero-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
83
83
  ["has-background-image"]: backgroundImage !== undefined,
84
84
  ["has-right-content"]: this.rightContent,
@@ -86,12 +86,12 @@ export class Hero {
86
86
  ["secondary-heading"]: !!secondaryHeading,
87
87
  [`ic-hero-content-aligned-${contentAligned}`]: contentAligned !== undefined,
88
88
  [`ic-theme-${theme}`]: theme !== "inherit",
89
- }, style: style }, h("ic-section-container", { key: '92c885c6bb0532ed6d5adbea3927ff56c88ccf00', aligned: aligned, fullHeight: true, class: "section-container" }, h("div", { key: '808e287fe214793b21c2da1d4db8410a0fecdcb9', class: {
89
+ }, style: style }, h("ic-section-container", { key: '5643bc58c2c704cd503a0933bdb795e181af98d9', aligned: aligned, fullHeight: true, class: "section-container" }, h("div", { key: '1b81861076201ba5b3f643b6288b5bb10841fae4', class: {
90
90
  ["left-container"]: true,
91
91
  ["left-container-full-width"]: this.leftContentFullWidth,
92
- } }, h("div", { key: '09267f66de926f237092d55372f34ee75b3b1bb5', class: "heading" }, h("slot", { key: 'b30e4be509093aa6f7b2dbe906eb63c8ed1f70da', name: "heading" }, h("ic-typography", { key: 'a59edf905e413ecd324b09807acb4efc7730b1ef', variant: size === "small" ? "h2" : "h1", class: {
92
+ } }, h("div", { key: '5a53dc54324f6f15170797ab81616ba2f83eee9b', class: "heading" }, h("slot", { key: 'b535d7a5cf4e0551c7dcfe160fe5e8e735cbfec4', name: "heading" }, h("ic-typography", { key: 'c8abd3f44bc9c5957a4103dd84ac388ccc09fdc8', variant: size === "small" ? "h2" : "h1", class: {
93
93
  ["heading-bottom-spacing"]: size !== "small",
94
- } }, h("h2", { key: 'f3d705dcea394926d050c5e9a518aa6d23e61c74' }, heading)))), h("div", { key: 'e67892b909d8d59b9714c9c39b07f5fbaa47cd5f', class: "subheading" }, h("slot", { key: '94601527aad82e6da4a1723f435b26221f562d3c', name: "subheading" }, h("ic-typography", { key: 'd10d05ad2ecbc02f3cc9612c5e5cd8507c95e7ba', variant: "body" }, subheading))), h("div", { key: '12ea9178058e547b57fd1ca454a00a9bdf542f41', class: "interaction-container" }, h("slot", { key: '8b3e37943fb688843dfcc6f28f7aab2d42c66454', name: "interaction" }))), (isPropDefined(secondaryHeading) || this.rightContent) && (h("div", { key: '2783784a47d8a7667959b6bc0a102e0536050cab', class: "right-container" }, h("slot", { key: 'ad168f0963f7950cf70b8a77abd4390a0585ddff', name: "secondary" }, secondaryHeading && (h("div", { key: 'faa3a3a6f23962c99eab8d1e81e2fa5d96b8f6c2', class: "secondary-container" }, h("div", { key: '147945f65e18d6d3ade2342057e1cdaf68faca50', class: "secondary-heading" }, h("ic-typography", { key: '78a22d379cb17ec183b4f320f652696cf46155b4', variant: "h4" }, h("h3", { key: '87619d7363588a0887f4c704011d824d51f3caa2' }, secondaryHeading))), h("div", { key: '0cc920336ef6d241361f095317391c296ce81e81', class: "secondary-subheading" }, h("ic-typography", { key: '19db9e9c8c392b26e698427048de8ad1bf2b7a5a', variant: "subtitle-small" }, secondarySubheading))))))))));
94
+ } }, h("h2", { key: '6e723202fd477bf488c5b6760bdbf6c4ec7e560d' }, heading)))), h("div", { key: '091d301ed753366740c5d703f40f132f2aee25cf', class: "subheading" }, h("slot", { key: 'ce39e48683e9ce91098b20f9f0e48b7f384cda68', name: "subheading" }, h("ic-typography", { key: 'daeef6b852b0301c4938c803bf1176d739bff0c1', variant: "body" }, subheading))), h("div", { key: '492dacd32aca9642eb52399d02e665fc86243486', class: "interaction-container" }, h("slot", { key: 'e3f6ce704c0bdfac397753ec3d786f2768be4cc9', name: "interaction" }))), (isPropDefined(secondaryHeading) || this.rightContent) && (h("div", { key: '446b6a7afe3ff99602127308142019e167943649', class: "right-container" }, h("slot", { key: '6309a6e8edb1be8c0aae243dd893a732e305d6ca', name: "secondary" }, secondaryHeading && (h("div", { key: 'd4ab8e694dd03bcedb5d3bd71f3c1f1bf63e5b8c', class: "secondary-container" }, h("div", { key: '388608d5a191bafc5c11945c1e24a0a790fa8be8', class: "secondary-heading" }, h("ic-typography", { key: 'bd607ed8f7581dfd58e1ac76c25ba7aca6b730ce', variant: "h4" }, h("h3", { key: '20d2ae02e785decd0cfb86b24b262e19e57c8623' }, secondaryHeading))), h("div", { key: 'cd22db2c0acb66dd4585f95b29ced4988e880276', class: "secondary-subheading" }, h("ic-typography", { key: '43348f58372ffc4fa71f08519f881153bc6d4411', variant: "subtitle-small" }, secondarySubheading))))))))));
95
95
  }
96
96
  static get is() { return "ic-hero"; }
97
97
  static get encapsulation() { return "shadow"; }
@@ -155,22 +155,22 @@ export class HorizontalScroll {
155
155
  }
156
156
  render() {
157
157
  const { firstItemVisible, lastItemVisible, itemOverflow } = this;
158
- return (h(Host, { key: '5c313665e71e0abc91a19f204ccf08d7b017f46b', class: {
158
+ return (h(Host, { key: '5f340f9d11d2ca42a17eacea2b9ce38b35614151', class: {
159
159
  ["ic-horizontal-scroll-visible"]: itemOverflow,
160
160
  ["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum.Dark,
161
161
  ["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum.Light,
162
162
  [`ic-theme-${this.theme}`]: this.theme !== "inherit",
163
- } }, h("div", { key: '7a65d56af26a6bfe660c3e923beaf7b512f77de8', "aria-hidden": "true", class: {
163
+ } }, h("div", { key: '555d223168b83a595030b18c4d21874c1cf679bd', "aria-hidden": "true", class: {
164
164
  ["scroll-container-left"]: true,
165
165
  ["hidden"]: !itemOverflow,
166
166
  ["disabled"]: firstItemVisible,
167
- }, role: "tab" }, h("ic-button", { key: '0203d6acdde7444d03038b3ec86f3e318615030d', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
167
+ }, role: "tab" }, h("ic-button", { key: '9196738f3d7d2c48b9173af7b152828a00c56edd', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
168
168
  ? "dark"
169
- : "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), h("span", { key: 'dffb5fee1c17005205216d0901141317e2dc4aa6', class: "scroll-splitter-left" })), h("slot", { key: 'f637c15f3020e1572a61179c2132dece11d0699a' }), h("div", { key: 'c563d5ca6d07a66f2111bea5aebe7d36ae481770', "aria-hidden": "true", class: {
169
+ : "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), h("span", { key: '89c1dc4017ec5a5ccd691c16c47957d35067d0b5', class: "scroll-splitter-left" })), h("slot", { key: 'bc45bafea5bad600701b74f097aae39c2e6b1e4d' }), h("div", { key: 'b961e7d153dccb0187f0aa8c02f73494f4233649', "aria-hidden": "true", class: {
170
170
  ["scroll-container-right"]: true,
171
171
  ["hidden"]: !itemOverflow,
172
172
  ["disabled"]: lastItemVisible,
173
- }, role: "tab" }, h("span", { key: 'd8afe9aaf2304d13909815aeb8e60ac4f8952f7f', class: "scroll-splitter-right" }), h("ic-button", { key: '4f3be747e736a50705793742b0a1e9fab44d56db', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
173
+ }, role: "tab" }, h("span", { key: 'd0960807543d4513129f192ce975c7a0139a91a0', class: "scroll-splitter-right" }), h("ic-button", { key: '4844fbcec6360b939a67c3878e36f4b812685c22', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
174
174
  ? "dark"
175
175
  : "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
176
176
  }
@@ -48,15 +48,15 @@ export class InputComponentContainer {
48
48
  }
49
49
  render() {
50
50
  const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
51
- return (h(Host, { key: 'c33ebfd9dd18101fb9161259538e8e0046f77a3d', class: {
51
+ return (h(Host, { key: '20c111945d3fea6c2ec9ddcb70a0e5c74489fcd0', class: {
52
52
  [`ic-input-component-container-${size}`]: true,
53
53
  [`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
54
54
  "ic-input-component-container-disabled": !!disabled,
55
55
  "ic-input-component-container-readonly": !!readonly,
56
56
  "ic-input-component-container-multiline": !!multiLine,
57
57
  "ic-input-component-container-full-width": !!fullWidth,
58
- }, "aria-disabled": disabled ? "true" : null }, h("div", { key: 'a70f27a3235ac0edb9d9c5a18983ae3c02de2a48', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (h("div", { key: 'aa0b233280382bd0e95a8ff932bf60a63603b7bf', class: "icon-container" }, h("slot", { key: 'ceb8ec9b420073ac2ecd5d6793ad4342ab9ebbdd', name: "left-icon" }))), h("slot", { key: '1850c6ed04510e678600c653a36e2114f982e561' }), validationInline &&
59
- validationStatus === IcInformationStatus.Success && (h("span", { key: '58d228c595577c1cc9a0fe2b10538cc3efff53ab', class: "inline-success", innerHTML: successIcon })))));
58
+ }, "aria-disabled": disabled ? "true" : null }, h("div", { key: '10974ddaa6b7e895645b50a73501ef8004036e8d', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (h("div", { key: '29b14de6450c67f924e6820cc4ef74f20abad132', class: "icon-container" }, h("slot", { key: '9c35122ee4308cd2782cf405a80b4b986a4b3fe8', name: "left-icon" }))), h("slot", { key: '71782b3c047c6bc14d63bb2218fc825ee644ed12' }), validationInline &&
59
+ validationStatus === IcInformationStatus.Success && (h("span", { key: 'e3ad09a64f224428e5a38127390751d86b5db914', class: "inline-success", innerHTML: successIcon })))));
60
60
  }
61
61
  static get is() { return "ic-input-component-container"; }
62
62
  static get originalStyleUrls() {
@@ -11,11 +11,11 @@ export class InputContainer {
11
11
  this.readonly = false;
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: '32ae22db5e182cc2c092c8f48e61d42a318284a0' }, h("div", { key: 'bae9ef74f7f92004ec99c387a213822315c505ba', class: {
14
+ return (h(Host, { key: '25d076eaba3bd1c7e469a5a3c44b26990dfcb43c' }, h("div", { key: '77559c5ab0557c9d42eb30d4a6487962dc8d2462', class: {
15
15
  ["component-container"]: true,
16
16
  ["disabled"]: !!this.disabled,
17
17
  ["readonly"]: !!this.readonly,
18
- } }, h("slot", { key: 'acca571eaa0d8f19b0e3379d2592409aacf9dd95' }))));
18
+ } }, h("slot", { key: '0b579f90ba6c9b7b5c515632b9e3f78a3a47c9a2' }))));
19
19
  }
20
20
  static get is() { return "ic-input-container"; }
21
21
  static get originalStyleUrls() {
@@ -63,11 +63,11 @@ export class InputLabel {
63
63
  "helpertext-readonly": readonly,
64
64
  };
65
65
  const helperTextSlot = this.el.querySelector("slot[name='helper-text']");
66
- return (h(Host, { key: 'da58fe3cac026661d1c624c69c56c6e64ff3c07a', class: {
66
+ return (h(Host, { key: '632235f5528b1ee7cbdc981b1fd8f83f81317ac5', class: {
67
67
  "ic-input-label-disabled": !!disabled,
68
68
  "ic-input-label-readonly": readonly,
69
69
  "with-helper": this.isHelperTextSlotUsed(helperTextSlot) || helperText !== "",
70
- } }, !hideLabel && (h("ic-typography", { key: 'bb221e5f51681a0caa721c66f03fd475e4e08749', variant: "label", class: {
70
+ } }, !hideLabel && (h("ic-typography", { key: '4d5ffe88dcfd61697ac5c10bbfe72da69d6cd09e', variant: "label", class: {
71
71
  "readonly-label": readonly,
72
72
  "error-label": status === "error" && !(readonly || disabled),
73
73
  } }, readonly || !useLabelTag ? (`${labelText}`) : (h("label", { htmlFor: this.for }, labelText)))), this.isHelperTextSlotUsed(helperTextSlot) ? (h("span", { id: helperTextId, class: helperTextClass }, h("slot", { name: "helper-text" }))) : (helperText !== "" && (h("ic-typography", { variant: "caption", class: helperTextClass }, h("span", { id: helperTextId }, helperText))))));
@@ -3,7 +3,7 @@ import { IcInformationStatus, } from "../../utils/types";
3
3
  import errorIcon from "../../assets/error-icon.svg";
4
4
  import successIcon from "../../assets/success-icon.svg";
5
5
  import warningIcon from "../../assets/warning-icon.svg";
6
- import { getInputValidationTextID, onComponentRequiredPropUndefined, } from "../../utils/helpers";
6
+ import { getInputValidationTextID, isSlotUsed } from "../../utils/helpers";
7
7
  const ICON = {
8
8
  [IcInformationStatus.Warning]: warningIcon,
9
9
  [IcInformationStatus.Error]: errorIcon,
@@ -12,6 +12,7 @@ const ICON = {
12
12
  const INVISIBLE_CHAR = "\u200B";
13
13
  /**
14
14
  * @slot validation-message-adornment - Content will be placed to the right of the validation message.
15
+ * @slot validation-message - Content will be placed as the validation message.
15
16
  */
16
17
  export class InputValidation {
17
18
  constructor() {
@@ -37,20 +38,19 @@ export class InputValidation {
37
38
  }, 200); // Delay to help ensure screen readers detect change
38
39
  }
39
40
  componentDidLoad() {
40
- onComponentRequiredPropUndefined([{ prop: this.message, propName: "message" }], "Input Validation");
41
41
  this.messageEl.textContent = INVISIBLE_CHAR;
42
42
  }
43
43
  render() {
44
44
  const { ariaLiveMode, fullWidth, status, message } = this;
45
45
  const displayIcon = status !== "" ? ICON[status] : "";
46
- return (h(Host, { key: '0513b4d21426f48a3751fbb4f16786d8cdde6f30', class: {
46
+ return (h(Host, { key: '96d572f2475891bb27613f8bdfc137fc5a5eeceb', class: {
47
47
  [`ic-input-validation-${status}`]: status !== "",
48
48
  "ic-input-validation-full-width": !!fullWidth,
49
49
  "ic-input-validation-with-status": status !== "",
50
- } }, displayIcon !== "" && (h("span", { key: '3e6de247d788f9836f338e109d7be5914fa2f320', class: {
50
+ } }, displayIcon !== "" && (h("span", { key: '8b8a9716ab6350d4959ba09254830e17d275258d', class: {
51
51
  "status-icon": true,
52
52
  [`icon-${status}`]: true,
53
- }, innerHTML: displayIcon })), h("ic-typography", { key: '5ee4e673c1f2934d74eafbc08241cdfae1aa5f9f', variant: "caption", class: "statustext" }, h("span", { key: '850149ffb8c4cdab21ab0c05a8787747e399ca41', id: this.for && getInputValidationTextID(this.for) }, message), h("span", { key: 'a26f5aa58e81cf3e9d982d86b75b3ab7e14897ad', ref: (el) => (this.messageEl = el), class: "sr-only", "aria-live": ariaLiveMode })), h("slot", { key: '4dba13235c6ec27d634b0dd38523963798676b36', name: "validation-message-adornment" })));
53
+ }, innerHTML: displayIcon })), h("ic-typography", { key: '587682a13e0ef65b1fc31e7018827077728e1b5d', variant: "caption", class: "statustext" }, h("span", { key: '6c398ad4c73d27b90a9df1485902dcb4d4ea1b49', id: this.for && getInputValidationTextID(this.for) }, isSlotUsed(this.el, "validation-message") ? (h("slot", { name: "validation-message" })) : (message)), h("span", { key: '542800ff7792e9bd075d2f682ca9e997ceb74fc2', ref: (el) => (this.messageEl = el), class: "sr-only", "aria-live": ariaLiveMode })), h("slot", { key: 'edcd7ddf24ae842f40eada9fa221da19b9fb6c79', name: "validation-message-adornment" })));
54
54
  }
55
55
  static get is() { return "ic-input-validation"; }
56
56
  static get originalStyleUrls() {
@@ -135,11 +135,11 @@ export class InputValidation {
135
135
  "mutable": false,
136
136
  "complexType": {
137
137
  "original": "string",
138
- "resolved": "string",
138
+ "resolved": "string | undefined",
139
139
  "references": {}
140
140
  },
141
- "required": true,
142
- "optional": false,
141
+ "required": false,
142
+ "optional": true,
143
143
  "docs": {
144
144
  "tags": [],
145
145
  "text": "The validation message to display."