@ukic/web-components 3.4.0 → 3.6.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 (542) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-fc4016d2.js → helpers-8217daf4.js} +42 -32
  3. package/dist/cjs/helpers-8217daf4.js.map +1 -0
  4. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  5. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  6. package/dist/cjs/ic-alert.cjs.entry.js +8 -8
  7. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-badge.cjs.entry.js +13 -4
  10. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  12. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  13. package/dist/cjs/ic-button_3.cjs.entry.js +143 -148
  14. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
  16. package/dist/cjs/ic-checkbox-group.cjs.entry.js +5 -5
  17. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-checkbox.cjs.entry.js +9 -8
  19. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-chip.cjs.entry.js +1 -1
  21. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  22. package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
  23. package/dist/cjs/ic-dialog.cjs.entry.js +3 -3
  24. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
  27. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  28. package/dist/cjs/ic-footer-link.cjs.entry.js +4 -4
  29. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-hero.cjs.entry.js +5 -5
  32. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
  33. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +19 -14
  34. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-input-label_2.cjs.entry.js +36 -13
  36. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-link.cjs.entry.js +3 -3
  38. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  40. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  41. package/dist/cjs/ic-navigation-button.cjs.entry.js +40 -40
  42. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-navigation-group.cjs.entry.js +7 -4
  44. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-navigation-item.cjs.entry.js +5 -8
  46. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
  48. package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
  49. package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
  50. package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
  51. package/dist/cjs/ic-popover-menu.cjs.entry.js +16 -11
  52. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-radio-group.cjs.entry.js +6 -6
  54. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
  56. package/dist/cjs/ic-search-bar.cjs.entry.js +29 -13
  57. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  59. package/dist/cjs/ic-select.cjs.entry.js +9 -9
  60. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-side-navigation.cjs.entry.js +16 -17
  62. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  64. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  65. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  66. package/dist/cjs/ic-step.cjs.entry.js +14 -14
  67. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  68. package/dist/cjs/ic-switch.cjs.entry.js +6 -6
  69. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  71. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  72. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  73. package/dist/cjs/ic-tab.cjs.entry.js +1 -1
  74. package/dist/cjs/ic-text-field.cjs.entry.js +9 -9
  75. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  77. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  78. package/dist/cjs/ic-toast.cjs.entry.js +4 -4
  79. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
  80. package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
  81. package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -9
  82. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-typography.cjs.entry.js +3 -3
  84. package/dist/cjs/loader.cjs.js +1 -1
  85. package/dist/collection/ag-theme-icds.css +24 -4
  86. package/dist/collection/components/ic-alert/ic-alert.js +7 -7
  87. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  88. package/dist/collection/components/ic-badge/ic-badge.js +12 -3
  89. package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
  90. package/dist/collection/components/ic-button/ic-button.css +8 -0
  91. package/dist/collection/components/ic-button/ic-button.js +3 -3
  92. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  93. package/dist/collection/components/ic-button/ic-button.stories.js +13 -5
  94. package/dist/collection/components/ic-checkbox/ic-checkbox.css +4 -1
  95. package/dist/collection/components/ic-checkbox/ic-checkbox.js +7 -6
  96. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  97. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +21 -2
  98. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +6 -3
  99. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  100. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +22 -0
  101. package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
  102. package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
  103. package/dist/collection/components/ic-dialog/ic-dialog.js +2 -2
  104. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  105. package/dist/collection/components/ic-dialog/ic-dialog.stories.js +39 -30
  106. package/dist/collection/components/ic-divider/ic-divider.stories.js +3 -3
  107. package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
  108. package/dist/collection/components/ic-footer/ic-footer.stories.js +1 -1
  109. package/dist/collection/components/ic-footer-link/ic-footer-link.css +1 -1
  110. package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
  111. package/dist/collection/components/ic-hero/ic-hero.js +4 -4
  112. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
  113. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
  114. package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
  115. package/dist/collection/components/ic-input-label/ic-input-label.css +3 -2
  116. package/dist/collection/components/ic-input-label/ic-input-label.js +31 -8
  117. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  118. package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
  119. package/dist/collection/components/ic-link/ic-link.css +6 -2
  120. package/dist/collection/components/ic-link/ic-link.js +1 -1
  121. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +3 -3
  122. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +208 -214
  123. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  124. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +5 -5
  125. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -1
  126. package/dist/collection/components/ic-menu/ic-menu.js +56 -10
  127. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  128. package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
  129. package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +8 -0
  130. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +53 -47
  131. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  132. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +26 -4
  133. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  134. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +7 -6
  135. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +3 -6
  136. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  137. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
  138. package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
  139. package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
  140. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
  141. package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +0 -1
  142. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +57 -11
  143. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  144. package/dist/collection/components/ic-radio-group/ic-radio-group.css +10 -2
  145. package/dist/collection/components/ic-radio-group/ic-radio-group.js +7 -4
  146. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  147. package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +22 -0
  148. package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
  149. package/dist/collection/components/ic-search-bar/ic-search-bar.css +1 -1
  150. package/dist/collection/components/ic-search-bar/ic-search-bar.js +53 -11
  151. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  152. package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +20 -10
  153. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  154. package/dist/collection/components/ic-select/ic-select.css +2 -2
  155. package/dist/collection/components/ic-select/ic-select.js +8 -7
  156. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  157. package/dist/collection/components/ic-select/ic-select_(multi).stories.js +21 -13
  158. package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +21 -13
  159. package/dist/collection/components/ic-select/ic-select_(single).stories.js +17 -9
  160. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +15 -16
  161. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  162. package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +143 -0
  163. package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
  164. package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
  165. package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
  166. package/dist/collection/components/ic-step/ic-step.js +13 -13
  167. package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
  168. package/dist/collection/components/ic-switch/ic-switch.css +5 -11
  169. package/dist/collection/components/ic-switch/ic-switch.js +5 -4
  170. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  171. package/dist/collection/components/ic-switch/ic-switch.stories.js +8 -1
  172. package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
  173. package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
  174. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
  175. package/dist/collection/components/ic-text-field/ic-text-field.css +1 -1
  176. package/dist/collection/components/ic-text-field/ic-text-field.js +8 -7
  177. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  178. package/dist/collection/components/ic-text-field/ic-text-field.stories.js +12 -1
  179. package/dist/collection/components/ic-theme/ic-theme.js +1 -1
  180. package/dist/collection/components/ic-toast/ic-toast.js +3 -3
  181. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
  182. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
  183. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
  184. package/dist/collection/components/ic-tooltip/ic-tooltip.js +11 -2
  185. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  186. package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +33 -0
  187. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +1 -0
  188. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +13 -7
  189. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  190. package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +19 -2
  191. package/dist/collection/components/ic-typography/ic-typography.js +2 -2
  192. package/dist/collection/patterns/z-index.stories.js +2 -1
  193. package/dist/collection/utils/constants.js +1 -1
  194. package/dist/collection/utils/constants.js.map +1 -1
  195. package/dist/collection/utils/helpers.js +39 -30
  196. package/dist/collection/utils/helpers.js.map +1 -1
  197. package/dist/components/helpers.js +41 -32
  198. package/dist/components/helpers.js.map +1 -1
  199. package/dist/components/ic-alert.js +7 -7
  200. package/dist/components/ic-alert.js.map +1 -1
  201. package/dist/components/ic-badge.js +12 -3
  202. package/dist/components/ic-badge.js.map +1 -1
  203. package/dist/components/ic-button2.js +4 -4
  204. package/dist/components/ic-button2.js.map +1 -1
  205. package/dist/components/ic-checkbox-group.js +4 -4
  206. package/dist/components/ic-checkbox-group.js.map +1 -1
  207. package/dist/components/ic-checkbox.js +8 -7
  208. package/dist/components/ic-checkbox.js.map +1 -1
  209. package/dist/components/ic-data-list.js +2 -2
  210. package/dist/components/ic-data-row.js +2 -2
  211. package/dist/components/ic-dialog.js +2 -2
  212. package/dist/components/ic-dialog.js.map +1 -1
  213. package/dist/components/ic-empty-state.js +2 -2
  214. package/dist/components/ic-footer-link.js +3 -3
  215. package/dist/components/ic-footer-link.js.map +1 -1
  216. package/dist/components/ic-hero.js +4 -4
  217. package/dist/components/ic-horizontal-scroll2.js +5 -5
  218. package/dist/components/ic-input-component-container2.js +3 -3
  219. package/dist/components/ic-input-container2.js +2 -2
  220. package/dist/components/ic-input-label2.js +33 -10
  221. package/dist/components/ic-input-label2.js.map +1 -1
  222. package/dist/components/ic-input-validation2.js +3 -3
  223. package/dist/components/ic-link2.js +2 -2
  224. package/dist/components/ic-link2.js.map +1 -1
  225. package/dist/components/ic-loading-indicator2.js +136 -145
  226. package/dist/components/ic-loading-indicator2.js.map +1 -1
  227. package/dist/components/ic-menu-group.js +1 -1
  228. package/dist/components/ic-menu2.js +16 -9
  229. package/dist/components/ic-menu2.js.map +1 -1
  230. package/dist/components/ic-navigation-button.js +43 -43
  231. package/dist/components/ic-navigation-button.js.map +1 -1
  232. package/dist/components/ic-navigation-group.js +8 -5
  233. package/dist/components/ic-navigation-group.js.map +1 -1
  234. package/dist/components/ic-navigation-item.js +5 -8
  235. package/dist/components/ic-navigation-item.js.map +1 -1
  236. package/dist/components/ic-navigation-menu2.js +5 -5
  237. package/dist/components/ic-page-header.js +6 -6
  238. package/dist/components/ic-pagination-item2.js +2 -2
  239. package/dist/components/ic-pagination.js +4 -4
  240. package/dist/components/ic-popover-menu.js +18 -11
  241. package/dist/components/ic-popover-menu.js.map +1 -1
  242. package/dist/components/ic-radio-group.js +5 -5
  243. package/dist/components/ic-radio-group.js.map +1 -1
  244. package/dist/components/ic-radio-option.js +4 -4
  245. package/dist/components/ic-search-bar.js +32 -13
  246. package/dist/components/ic-search-bar.js.map +1 -1
  247. package/dist/components/ic-section-container2.js +2 -2
  248. package/dist/components/ic-select.js +9 -9
  249. package/dist/components/ic-select.js.map +1 -1
  250. package/dist/components/ic-side-navigation.js +16 -17
  251. package/dist/components/ic-side-navigation.js.map +1 -1
  252. package/dist/components/ic-skeleton.js +2 -2
  253. package/dist/components/ic-skip-link.js +2 -2
  254. package/dist/components/ic-status-tag.js +2 -2
  255. package/dist/components/ic-step.js +13 -13
  256. package/dist/components/ic-stepper.js +2 -2
  257. package/dist/components/ic-switch.js +5 -5
  258. package/dist/components/ic-switch.js.map +1 -1
  259. package/dist/components/ic-tab-context.js +1 -1
  260. package/dist/components/ic-tab-group.js +2 -2
  261. package/dist/components/ic-tab-panel.js +2 -2
  262. package/dist/components/ic-text-field.js +9 -9
  263. package/dist/components/ic-text-field.js.map +1 -1
  264. package/dist/components/ic-theme.js +2 -2
  265. package/dist/components/ic-toast-region.js +1 -1
  266. package/dist/components/ic-toast.js +4 -4
  267. package/dist/components/ic-toggle-button-group.js +2 -2
  268. package/dist/components/ic-toggle-button.js +3 -3
  269. package/dist/components/ic-tooltip2.js +12 -4
  270. package/dist/components/ic-tooltip2.js.map +1 -1
  271. package/dist/components/ic-top-navigation.js +15 -9
  272. package/dist/components/ic-top-navigation.js.map +1 -1
  273. package/dist/components/ic-typography2.js +2 -2
  274. package/dist/core/ag-theme-icds.css +24 -4
  275. package/dist/core/core.css +67 -49
  276. package/dist/core/core.esm.js +1 -1
  277. package/dist/core/core.esm.js.map +1 -1
  278. package/dist/core/{p-2c371198.entry.js → p-0179fbd3.entry.js} +2 -2
  279. package/dist/core/{p-d8ce39ac.entry.js → p-0549305b.entry.js} +2 -2
  280. package/dist/core/p-056be0df.entry.js +2 -0
  281. package/dist/core/p-056be0df.entry.js.map +1 -0
  282. package/dist/core/{p-56fb0298.entry.js → p-06b0d0f6.entry.js} +2 -2
  283. package/dist/core/{p-fa38ad2e.entry.js → p-06e80441.entry.js} +2 -2
  284. package/dist/core/{p-aad2abbf.entry.js → p-08567369.entry.js} +2 -2
  285. package/dist/core/p-08567369.entry.js.map +1 -0
  286. package/dist/core/{p-c5ffe2cf.entry.js → p-0f86ea09.entry.js} +2 -2
  287. package/dist/core/{p-56e0de32.entry.js → p-29468171.entry.js} +2 -2
  288. package/dist/core/{p-9c47521d.entry.js → p-2ec0d11c.entry.js} +2 -2
  289. package/dist/core/{p-9a6dc8b1.entry.js → p-3194e46c.entry.js} +2 -2
  290. package/dist/core/{p-dee21f6d.entry.js → p-3448c713.entry.js} +2 -2
  291. package/dist/core/p-421b5f2d.entry.js +2 -0
  292. package/dist/core/p-421b5f2d.entry.js.map +1 -0
  293. package/dist/core/{p-cfa9ed7d.entry.js → p-4301e11e.entry.js} +2 -2
  294. package/dist/core/{p-1d254b71.entry.js → p-43b98687.entry.js} +2 -2
  295. package/dist/core/{p-1d254b71.entry.js.map → p-43b98687.entry.js.map} +1 -1
  296. package/dist/core/{p-87fa5add.entry.js → p-4935b899.entry.js} +2 -2
  297. package/dist/core/p-4935b899.entry.js.map +1 -0
  298. package/dist/core/p-4b8bfb59.entry.js +2 -0
  299. package/dist/core/p-4b8bfb59.entry.js.map +1 -0
  300. package/dist/core/{p-a17499ff.entry.js → p-4cd83bfe.entry.js} +2 -2
  301. package/dist/core/{p-6eea869b.entry.js → p-50d13439.entry.js} +2 -2
  302. package/dist/core/p-554c555f.entry.js +2 -0
  303. package/dist/core/p-554c555f.entry.js.map +1 -0
  304. package/dist/core/p-57309502.entry.js +2 -0
  305. package/dist/core/p-57309502.entry.js.map +1 -0
  306. package/dist/core/{p-d82b27df.entry.js → p-5fb58cc8.entry.js} +2 -2
  307. package/dist/core/p-627f7172.entry.js +2 -0
  308. package/dist/core/p-627f7172.entry.js.map +1 -0
  309. package/dist/core/{p-d4903dcd.entry.js → p-6dd73165.entry.js} +2 -2
  310. package/dist/core/p-70abcb2b.js +2 -0
  311. package/dist/core/p-70abcb2b.js.map +1 -0
  312. package/dist/core/p-773ded36.entry.js +2 -0
  313. package/dist/core/p-773ded36.entry.js.map +1 -0
  314. package/dist/core/{p-c8cf1ad5.entry.js → p-77750efc.entry.js} +2 -2
  315. package/dist/core/p-7b9e10a0.entry.js +2 -0
  316. package/dist/core/p-7b9e10a0.entry.js.map +1 -0
  317. package/dist/core/{p-26dfc4db.entry.js → p-7cada631.entry.js} +2 -2
  318. package/dist/core/p-7cada631.entry.js.map +1 -0
  319. package/dist/core/{p-51b49429.entry.js → p-8a5b0fb0.entry.js} +2 -2
  320. package/dist/core/{p-60aad45d.entry.js → p-91f6884a.entry.js} +2 -2
  321. package/dist/core/{p-60aad45d.entry.js.map → p-91f6884a.entry.js.map} +1 -1
  322. package/dist/core/p-939adcae.entry.js +2 -0
  323. package/dist/core/p-939adcae.entry.js.map +1 -0
  324. package/dist/core/{p-628c32b8.entry.js → p-948086f4.entry.js} +2 -2
  325. package/dist/core/{p-5eb2ac90.entry.js → p-97f67617.entry.js} +2 -2
  326. package/dist/core/{p-5aec3757.entry.js → p-98869fe7.entry.js} +2 -2
  327. package/dist/core/{p-8958c60f.entry.js → p-9caa9e7b.entry.js} +2 -2
  328. package/dist/core/{p-aad10013.entry.js → p-9d5e4b62.entry.js} +2 -2
  329. package/dist/core/{p-3cb4ecef.entry.js → p-9e051db4.entry.js} +2 -2
  330. package/dist/core/{p-e38fddbb.entry.js → p-9ed5f11d.entry.js} +2 -2
  331. package/dist/core/p-9ed5f11d.entry.js.map +1 -0
  332. package/dist/core/{p-dcce0dfd.entry.js → p-a2ae5d9e.entry.js} +2 -2
  333. package/dist/core/p-a591ef38.entry.js +2 -0
  334. package/dist/core/p-a591ef38.entry.js.map +1 -0
  335. package/dist/core/p-ae2ea264.entry.js +2 -0
  336. package/dist/core/{p-887e00bb.entry.js.map → p-ae2ea264.entry.js.map} +1 -1
  337. package/dist/core/{p-ef36181d.entry.js → p-afde0edc.entry.js} +2 -2
  338. package/dist/core/{p-e2629bfe.entry.js → p-b1b27b7e.entry.js} +2 -2
  339. package/dist/core/p-b730963a.entry.js +2 -0
  340. package/dist/core/p-b730963a.entry.js.map +1 -0
  341. package/dist/core/{p-6cd0b010.entry.js → p-b83cca09.entry.js} +2 -2
  342. package/dist/core/{p-ef4b752c.entry.js → p-ba89fa16.entry.js} +2 -2
  343. package/dist/core/{p-dfc8cba6.entry.js → p-bb21268f.entry.js} +2 -2
  344. package/dist/core/p-bb21268f.entry.js.map +1 -0
  345. package/dist/core/{p-a140bcaa.entry.js → p-c100724d.entry.js} +2 -2
  346. package/dist/core/p-cd42b7c0.entry.js +2 -0
  347. package/dist/core/p-cd42b7c0.entry.js.map +1 -0
  348. package/dist/core/{p-8c77dd65.entry.js → p-cd8dab55.entry.js} +2 -2
  349. package/dist/core/{p-513628ef.entry.js → p-ce916f35.entry.js} +2 -2
  350. package/dist/core/{p-de1e04ac.entry.js → p-d281c3cf.entry.js} +2 -2
  351. package/dist/core/p-d7c8f10d.entry.js +2 -0
  352. package/dist/core/p-d7c8f10d.entry.js.map +1 -0
  353. package/dist/core/{p-fc4f7180.entry.js → p-e29ba8bd.entry.js} +2 -2
  354. package/dist/core/{p-7d2c07e2.entry.js → p-ec1657fc.entry.js} +2 -2
  355. package/dist/core/{p-4a2acb2e.entry.js → p-f4ee5fbb.entry.js} +2 -2
  356. package/dist/core/p-f9491692.entry.js +2 -0
  357. package/dist/core/p-f9491692.entry.js.map +1 -0
  358. package/dist/core/{p-23536595.entry.js → p-fb6e6ac4.entry.js} +2 -2
  359. package/dist/core/{p-bf3b853e.entry.js → p-fc5661ac.entry.js} +2 -2
  360. package/dist/core/{p-1d172032.entry.js → p-ff47772c.entry.js} +2 -2
  361. package/dist/esm/core.js +1 -1
  362. package/dist/esm/{helpers-f2ffaa7c.js → helpers-f5ff3b42.js} +42 -33
  363. package/dist/esm/helpers-f5ff3b42.js.map +1 -0
  364. package/dist/esm/ic-accordion-group.entry.js +1 -1
  365. package/dist/esm/ic-accordion.entry.js +1 -1
  366. package/dist/esm/ic-alert.entry.js +8 -8
  367. package/dist/esm/ic-alert.entry.js.map +1 -1
  368. package/dist/esm/ic-back-to-top.entry.js +1 -1
  369. package/dist/esm/ic-badge.entry.js +13 -4
  370. package/dist/esm/ic-badge.entry.js.map +1 -1
  371. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  372. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  373. package/dist/esm/ic-button_3.entry.js +143 -148
  374. package/dist/esm/ic-button_3.entry.js.map +1 -1
  375. package/dist/esm/ic-card-vertical.entry.js +1 -1
  376. package/dist/esm/ic-checkbox-group.entry.js +5 -5
  377. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  378. package/dist/esm/ic-checkbox.entry.js +9 -8
  379. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  380. package/dist/esm/ic-chip.entry.js +1 -1
  381. package/dist/esm/ic-data-list.entry.js +2 -2
  382. package/dist/esm/ic-data-row.entry.js +3 -3
  383. package/dist/esm/ic-dialog.entry.js +3 -3
  384. package/dist/esm/ic-dialog.entry.js.map +1 -1
  385. package/dist/esm/ic-divider.entry.js +1 -1
  386. package/dist/esm/ic-empty-state.entry.js +3 -3
  387. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  388. package/dist/esm/ic-footer-link.entry.js +4 -4
  389. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  390. package/dist/esm/ic-footer.entry.js +1 -1
  391. package/dist/esm/ic-hero.entry.js +5 -5
  392. package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
  393. package/dist/esm/ic-input-component-container_3.entry.js +19 -14
  394. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  395. package/dist/esm/ic-input-label_2.entry.js +36 -13
  396. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  397. package/dist/esm/ic-link.entry.js +3 -3
  398. package/dist/esm/ic-link.entry.js.map +1 -1
  399. package/dist/esm/ic-menu-group.entry.js +2 -2
  400. package/dist/esm/ic-menu-item.entry.js +1 -1
  401. package/dist/esm/ic-navigation-button.entry.js +40 -40
  402. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  403. package/dist/esm/ic-navigation-group.entry.js +7 -4
  404. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  405. package/dist/esm/ic-navigation-item.entry.js +5 -8
  406. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  407. package/dist/esm/ic-navigation-menu.entry.js +5 -5
  408. package/dist/esm/ic-page-header.entry.js +7 -7
  409. package/dist/esm/ic-pagination-item.entry.js +2 -2
  410. package/dist/esm/ic-pagination.entry.js +5 -5
  411. package/dist/esm/ic-popover-menu.entry.js +16 -11
  412. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  413. package/dist/esm/ic-radio-group.entry.js +6 -6
  414. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  415. package/dist/esm/ic-radio-option.entry.js +5 -5
  416. package/dist/esm/ic-search-bar.entry.js +29 -13
  417. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  418. package/dist/esm/ic-section-container.entry.js +2 -2
  419. package/dist/esm/ic-select.entry.js +9 -9
  420. package/dist/esm/ic-select.entry.js.map +1 -1
  421. package/dist/esm/ic-side-navigation.entry.js +16 -17
  422. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  423. package/dist/esm/ic-skeleton.entry.js +2 -2
  424. package/dist/esm/ic-skip-link.entry.js +2 -2
  425. package/dist/esm/ic-status-tag.entry.js +3 -3
  426. package/dist/esm/ic-step.entry.js +14 -14
  427. package/dist/esm/ic-stepper.entry.js +3 -3
  428. package/dist/esm/ic-switch.entry.js +6 -6
  429. package/dist/esm/ic-switch.entry.js.map +1 -1
  430. package/dist/esm/ic-tab-context.entry.js +1 -1
  431. package/dist/esm/ic-tab-group.entry.js +3 -3
  432. package/dist/esm/ic-tab-panel.entry.js +2 -2
  433. package/dist/esm/ic-tab.entry.js +1 -1
  434. package/dist/esm/ic-text-field.entry.js +9 -9
  435. package/dist/esm/ic-text-field.entry.js.map +1 -1
  436. package/dist/esm/ic-theme.entry.js +2 -2
  437. package/dist/esm/ic-toast-region.entry.js +1 -1
  438. package/dist/esm/ic-toast.entry.js +4 -4
  439. package/dist/esm/ic-toggle-button-group.entry.js +3 -3
  440. package/dist/esm/ic-toggle-button.entry.js +3 -3
  441. package/dist/esm/ic-top-navigation.entry.js +15 -9
  442. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  443. package/dist/esm/ic-typography.entry.js +3 -3
  444. package/dist/esm/loader.js +1 -1
  445. package/dist/types/components/ic-badge/ic-badge.d.ts +1 -0
  446. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +3 -0
  447. package/dist/types/components/ic-input-label/ic-input-label.d.ts +2 -0
  448. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +29 -33
  449. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +2 -0
  450. package/dist/types/components/ic-menu/ic-menu.d.ts +7 -0
  451. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +13 -5
  452. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +4 -1
  453. package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +7 -0
  454. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +3 -0
  455. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +11 -0
  456. package/dist/types/components/ic-select/ic-select.d.ts +1 -0
  457. package/dist/types/components/ic-switch/ic-switch.d.ts +1 -0
  458. package/dist/types/components/ic-text-field/ic-text-field.d.ts +1 -0
  459. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +1 -0
  460. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +1 -0
  461. package/dist/types/components.d.ts +37 -13
  462. package/dist/types/utils/constants.d.ts +1 -1
  463. package/dist/types/utils/helpers.d.ts +3 -2
  464. package/hydrate/index.js +525 -439
  465. package/hydrate/index.mjs +525 -439
  466. package/package.json +3 -5
  467. package/vscode-data.json +8 -0
  468. package/dist/cjs/helpers-fc4016d2.js.map +0 -1
  469. package/dist/core/p-0fb68b4f.entry.js +0 -2
  470. package/dist/core/p-0fb68b4f.entry.js.map +0 -1
  471. package/dist/core/p-15b7adaf.entry.js +0 -2
  472. package/dist/core/p-15b7adaf.entry.js.map +0 -1
  473. package/dist/core/p-26dfc4db.entry.js.map +0 -1
  474. package/dist/core/p-3676ac4e.entry.js +0 -2
  475. package/dist/core/p-3676ac4e.entry.js.map +0 -1
  476. package/dist/core/p-432aeae0.entry.js +0 -2
  477. package/dist/core/p-432aeae0.entry.js.map +0 -1
  478. package/dist/core/p-4dc97b03.entry.js +0 -2
  479. package/dist/core/p-4dc97b03.entry.js.map +0 -1
  480. package/dist/core/p-4e48a671.entry.js +0 -2
  481. package/dist/core/p-4e48a671.entry.js.map +0 -1
  482. package/dist/core/p-554845c4.entry.js +0 -2
  483. package/dist/core/p-554845c4.entry.js.map +0 -1
  484. package/dist/core/p-59b48450.entry.js +0 -2
  485. package/dist/core/p-59b48450.entry.js.map +0 -1
  486. package/dist/core/p-7d352865.entry.js +0 -2
  487. package/dist/core/p-7d352865.entry.js.map +0 -1
  488. package/dist/core/p-7deaf128.entry.js +0 -2
  489. package/dist/core/p-7deaf128.entry.js.map +0 -1
  490. package/dist/core/p-803f2eb8.entry.js +0 -2
  491. package/dist/core/p-803f2eb8.entry.js.map +0 -1
  492. package/dist/core/p-8242c24f.js +0 -2
  493. package/dist/core/p-8242c24f.js.map +0 -1
  494. package/dist/core/p-87fa5add.entry.js.map +0 -1
  495. package/dist/core/p-887e00bb.entry.js +0 -2
  496. package/dist/core/p-aad2abbf.entry.js.map +0 -1
  497. package/dist/core/p-bdcc79dd.entry.js +0 -2
  498. package/dist/core/p-bdcc79dd.entry.js.map +0 -1
  499. package/dist/core/p-c59fd23e.entry.js +0 -2
  500. package/dist/core/p-c59fd23e.entry.js.map +0 -1
  501. package/dist/core/p-dfc8cba6.entry.js.map +0 -1
  502. package/dist/core/p-e38fddbb.entry.js.map +0 -1
  503. package/dist/core/p-eca6e215.entry.js +0 -2
  504. package/dist/core/p-eca6e215.entry.js.map +0 -1
  505. package/dist/esm/helpers-f2ffaa7c.js.map +0 -1
  506. /package/dist/core/{p-2c371198.entry.js.map → p-0179fbd3.entry.js.map} +0 -0
  507. /package/dist/core/{p-d8ce39ac.entry.js.map → p-0549305b.entry.js.map} +0 -0
  508. /package/dist/core/{p-56fb0298.entry.js.map → p-06b0d0f6.entry.js.map} +0 -0
  509. /package/dist/core/{p-fa38ad2e.entry.js.map → p-06e80441.entry.js.map} +0 -0
  510. /package/dist/core/{p-c5ffe2cf.entry.js.map → p-0f86ea09.entry.js.map} +0 -0
  511. /package/dist/core/{p-56e0de32.entry.js.map → p-29468171.entry.js.map} +0 -0
  512. /package/dist/core/{p-9c47521d.entry.js.map → p-2ec0d11c.entry.js.map} +0 -0
  513. /package/dist/core/{p-9a6dc8b1.entry.js.map → p-3194e46c.entry.js.map} +0 -0
  514. /package/dist/core/{p-dee21f6d.entry.js.map → p-3448c713.entry.js.map} +0 -0
  515. /package/dist/core/{p-cfa9ed7d.entry.js.map → p-4301e11e.entry.js.map} +0 -0
  516. /package/dist/core/{p-a17499ff.entry.js.map → p-4cd83bfe.entry.js.map} +0 -0
  517. /package/dist/core/{p-6eea869b.entry.js.map → p-50d13439.entry.js.map} +0 -0
  518. /package/dist/core/{p-d82b27df.entry.js.map → p-5fb58cc8.entry.js.map} +0 -0
  519. /package/dist/core/{p-d4903dcd.entry.js.map → p-6dd73165.entry.js.map} +0 -0
  520. /package/dist/core/{p-c8cf1ad5.entry.js.map → p-77750efc.entry.js.map} +0 -0
  521. /package/dist/core/{p-51b49429.entry.js.map → p-8a5b0fb0.entry.js.map} +0 -0
  522. /package/dist/core/{p-628c32b8.entry.js.map → p-948086f4.entry.js.map} +0 -0
  523. /package/dist/core/{p-5eb2ac90.entry.js.map → p-97f67617.entry.js.map} +0 -0
  524. /package/dist/core/{p-5aec3757.entry.js.map → p-98869fe7.entry.js.map} +0 -0
  525. /package/dist/core/{p-8958c60f.entry.js.map → p-9caa9e7b.entry.js.map} +0 -0
  526. /package/dist/core/{p-aad10013.entry.js.map → p-9d5e4b62.entry.js.map} +0 -0
  527. /package/dist/core/{p-3cb4ecef.entry.js.map → p-9e051db4.entry.js.map} +0 -0
  528. /package/dist/core/{p-dcce0dfd.entry.js.map → p-a2ae5d9e.entry.js.map} +0 -0
  529. /package/dist/core/{p-ef36181d.entry.js.map → p-afde0edc.entry.js.map} +0 -0
  530. /package/dist/core/{p-e2629bfe.entry.js.map → p-b1b27b7e.entry.js.map} +0 -0
  531. /package/dist/core/{p-6cd0b010.entry.js.map → p-b83cca09.entry.js.map} +0 -0
  532. /package/dist/core/{p-ef4b752c.entry.js.map → p-ba89fa16.entry.js.map} +0 -0
  533. /package/dist/core/{p-a140bcaa.entry.js.map → p-c100724d.entry.js.map} +0 -0
  534. /package/dist/core/{p-8c77dd65.entry.js.map → p-cd8dab55.entry.js.map} +0 -0
  535. /package/dist/core/{p-513628ef.entry.js.map → p-ce916f35.entry.js.map} +0 -0
  536. /package/dist/core/{p-de1e04ac.entry.js.map → p-d281c3cf.entry.js.map} +0 -0
  537. /package/dist/core/{p-fc4f7180.entry.js.map → p-e29ba8bd.entry.js.map} +0 -0
  538. /package/dist/core/{p-7d2c07e2.entry.js.map → p-ec1657fc.entry.js.map} +0 -0
  539. /package/dist/core/{p-4a2acb2e.entry.js.map → p-f4ee5fbb.entry.js.map} +0 -0
  540. /package/dist/core/{p-23536595.entry.js.map → p-fb6e6ac4.entry.js.map} +0 -0
  541. /package/dist/core/{p-bf3b853e.entry.js.map → p-fc5661ac.entry.js.map} +0 -0
  542. /package/dist/core/{p-1d172032.entry.js.map → p-ff47772c.entry.js.map} +0 -0
@@ -33,12 +33,12 @@ export class StatusTag {
33
33
  }
34
34
  render() {
35
35
  const { label, status, variant, size, announced, theme, uppercase } = this;
36
- return (h(Host, { key: '49111e8b5eb75c70840fd09ea4a8a1dd3a7ba5f9', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, h("strong", { key: 'b0968e1e0b6a020d13b7156557ffd865c1032d65', class: {
36
+ return (h(Host, { key: '1364b3edcf4a5ebe148cfb8aa777bda105a3282f', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, h("strong", { key: '96a6e601c3aeef8600835dc1e114c7be5a240164', class: {
37
37
  ["tag"]: true,
38
38
  [`${variant}-${status}`]: true,
39
39
  ["outlined"]: variant === "outlined",
40
40
  [`${size}`]: true,
41
- } }, h("ic-typography", { key: '4c03e5a6c47f6c027f8150700d027dab67ca356c', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, h("span", { key: '861310210d2644c28dcd81fe59e846a14865b106' }, label)))));
41
+ } }, h("ic-typography", { key: 'dd831bf604192af5ee4b29676be2eda2d5d12e24', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, h("span", { key: 'd7c07a02acbb5db23516389b41a752c75f6c3da6' }, label)))));
42
42
  }
43
43
  static get is() { return "ic-status-tag"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -57,29 +57,29 @@ export class Step {
57
57
  // STATUS ICON FOR COMPACT STEP
58
58
  let statusIcon;
59
59
  if (this.type === "completed" || this.compactStepStyling === "completed") {
60
- statusIcon = (h("span", { key: '4a9203e6aa1fd036fb787b0157742238663bcbd5', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
60
+ statusIcon = (h("span", { key: 'da8e370996e92dde0f17f6460ecb0c11d8def086', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
61
61
  }
62
62
  else if (this.type === "disabled" ||
63
63
  this.compactStepStyling === "disabled") {
64
- statusIcon = (h("span", { key: '3e6f50e3f85e96b40066233cf8f579eeb2915a4a', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
64
+ statusIcon = (h("span", { key: '581de517797d73b13bab42503a084a579c540d5f', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
65
65
  }
66
66
  // COMPACT STEP COMPONENT
67
- const compactStep = (h("div", { key: 'e0176afedd5e4d78e9cf0cf3b9127fb350d37230', class: {
67
+ const compactStep = (h("div", { key: '2b0b01b29c81bd1ae351b56f04c18f7eab1ca4f1', class: {
68
68
  ["step"]: true,
69
69
  ["current"]: !!this.current,
70
70
  [`compact-step-${this.compactStepStyling}`]: !!this.compactStepStyling,
71
71
  ["disabled"]: this.type === "disabled" || this.compactStepStyling === "disabled",
72
- } }, h("ic-loading-indicator", { key: '35b1cdf3892123ba853ca17b1442f40a4b769674', class: {
72
+ } }, h("ic-loading-indicator", { key: '4f2234e8dc571338c71f63263d2cd45460920717', class: {
73
73
  "compact-step-progress-indicator": true,
74
74
  "not-required": this.type === "disabled" ||
75
75
  this.compactStepStyling === "disabled",
76
- }, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), h("div", { key: '6280811d6995b9a06c2a758a2e27a8b4c50f6a3c', class: "heading-area" }, h("ic-typography", { key: '44382dd1f5a00d397f857341d4c85c35fe3986b0', variant: "h4", class: "heading" }, this.heading), h("div", { key: '80897d2a2b10a74e4effe62b37e1f991041d98d0', class: "info-line" }, h("ic-typography", { key: 'a8fb18daae6c067825f7251a02dc0a43c4d8be00', variant: "caption", class: "step-num" }, `${this.stepNum} of ${this.lastStepNum}`, h("span", { key: '7fec868e706c5ae8500e5f62bd40e06f207f27bc', class: "visually-hidden" }, " steps")), (this.subheading ||
76
+ }, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), h("div", { key: 'bb3834decc5d6e971b8da1b225987f41d7542b67', class: "heading-area" }, h("ic-typography", { key: 'c9ac23c26ecb3a002f065583c36b105dd7a80d35', variant: "h4", class: "heading" }, this.heading), h("div", { key: '72a46d0b49c4b09db01fd6a7a4000efb4d4f6da9', class: "info-line" }, h("ic-typography", { key: '0a8f7b16a04431260d1650474ea86faa0248af2d', variant: "caption", class: "step-num" }, `${this.stepNum} of ${this.lastStepNum}`, h("span", { key: '497ad4a0febb2b9f5380a0bb28f0effc6368cf1d', class: "visually-hidden" }, " steps")), (this.subheading ||
77
77
  this.type === "completed" ||
78
78
  this.type === "disabled" ||
79
79
  (this.variant === "compact" &&
80
80
  !!this.compactStepStyling &&
81
81
  this.compactStepStyling !== "active") ||
82
- !!this.status) && (h("div", { key: '2686329ae67e2d4e5ff70269c53111e51e40e22d', class: "step-status" }, statusIcon !== undefined && statusIcon, (this.subheading || stepType) && (h("ic-typography", { key: '9d084452fe5fc69f3fb75d23e52cafaab618cc76', variant: "caption" }, this.subheading !== null && isPropDefined(this.subheading)
82
+ !!this.status) && (h("div", { key: 'ee5da9d5d75229d3bffbc761dfc4c779b22b063d', class: "step-status" }, statusIcon !== undefined && statusIcon, (this.subheading || stepType) && (h("ic-typography", { key: 'b249e660a2eff61dc1d537ab14e2bf027c2ffab2', variant: "caption" }, this.subheading !== null && isPropDefined(this.subheading)
83
83
  ? this.subheading
84
84
  : this.type === "disabled" ||
85
85
  (this.variant === "compact" &&
@@ -92,26 +92,26 @@ export class Step {
92
92
  // ICON FOR DEFAULT STEP
93
93
  let icon;
94
94
  if (this.type !== "completed") {
95
- icon = (h("ic-typography", { key: '40a724fa1fd9fb124824b86c77f0e8e579e10ddf', variant: "subtitle-small" }, h("span", { key: '80d7cee87c798fd31ef259c60cdc0207d1149569', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
95
+ icon = (h("ic-typography", { key: '8d6b60fe3b7cb9426536ac8afaeb798de0291b1c', variant: "subtitle-small" }, h("span", { key: '464e32e9503075944e90e9e42c72ef3955c948d0', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
96
96
  }
97
97
  else {
98
- icon = (h("div", { key: 'af64e8626ca32695d539a300549709505f5e0074', class: "step-icon-inner", "aria-hidden": "true" }, h("span", { key: 'ae8e6c0527c288eb8cba12ee407ba95b30518ef3', class: "check-icon", innerHTML: checkIcon })));
98
+ icon = (h("div", { key: '620c7f67632c073a4e339427bedc5ffed0a4a320', class: "step-icon-inner", "aria-hidden": "true" }, h("span", { key: '1396290202c009168bf4b7983a2af4f5d8fdeb64', class: "check-icon", innerHTML: checkIcon })));
99
99
  }
100
100
  // STEP CONNECT FOR DEFAULT STEP
101
- const partialBar = this.type === "current" && (h("div", { key: '36d5a9fa668901e1e975222a8b675330af53761d', class: "step-connect-inner" }));
102
- const finalStep = !this.lastStep && (h("div", { key: '5326ee2373d2580f2ba5d41547a50b0c59ad31e6', class: {
101
+ const partialBar = this.type === "current" && (h("div", { key: '7d27dc6a29aca34dcb14c0624c66309614c5378a', class: "step-connect-inner" }));
102
+ const finalStep = !this.lastStep && (h("div", { key: '70aeb7052405a7977a12562c329f227c71e35a8b', class: {
103
103
  ["step-connect"]: true,
104
104
  ["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
105
105
  !this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
106
106
  } }, partialBar));
107
107
  // DEFAULT STEP COMPONENT
108
- const defaultStep = (h("div", { key: 'de6aef5add716f0ab39f01025252963f93ff87db', class: {
108
+ const defaultStep = (h("div", { key: '130b7d2d16c416a5e699a20564b475fe0620af18', class: {
109
109
  ["step"]: true,
110
110
  [`${this.type}`]: true,
111
- } }, h("div", { key: '1c4948393db6d357dddd34ede57e4f85525904e1', class: "step-top" }, h("div", { key: '9a5fbf343c17dbf1426a8d81f7b35964f2ebe384', class: "step-icon" }, icon), finalStep), (this.heading || this.subheading || this.status) && (h("div", { key: 'e9f4545dd4490ad1a7c1cc786c2339c9b097ba2b', class: "heading-area" }, this.heading && (h("ic-typography", { key: 'e26a94db6d7e199eced26ec78b8997641652d77a', variant: "subtitle-large", class: "heading" }, this.heading)), this.heading && (this.subheading || this.status) && (h("ic-typography", { key: 'a30708b8b2c1a7fc37d90b69426f88e794a4e9fb', variant: "caption", class: "subheading" }, this.subheading !== null && isPropDefined(this.subheading)
111
+ } }, h("div", { key: '6b71087d2f67a0858fdd819424fed8d36084d98e', class: "step-top" }, h("div", { key: 'a9d0fc4317db6cc4b60c8429909fe30dbae3001e', class: "step-icon" }, icon), finalStep), (this.heading || this.subheading || this.status) && (h("div", { key: '13c274e45d81977b4ceeaf98a4e092a2d90fec97', class: "heading-area" }, this.heading && (h("ic-typography", { key: '1c4307d5780fff0c7200631e7b729024e3ca8315', variant: "subtitle-large", class: "heading" }, this.heading)), this.heading && (this.subheading || this.status) && (h("ic-typography", { key: '4e6b789f77f40ed85e486bb8bf25b2209e042a91', variant: "caption", class: "subheading" }, this.subheading !== null && isPropDefined(this.subheading)
112
112
  ? this.subheading
113
113
  : stepStatus))))));
114
- return (h(Host, { key: 'b7faa59fe0e1e1315ff7753bcba19a24bc671368', role: "listitem", "aria-label": `Step ${this.stepNum}${ariaLabel}`, "aria-current": (this.current || this.type === "current") && "step", class: {
114
+ return (h(Host, { key: 'aaeb6b423f4a746831b15ec90ae450a4a4c3fc9e', role: "listitem", "aria-label": `Step ${this.stepNum}${ariaLabel}`, "aria-current": (this.current || this.type === "current") && "step", class: {
115
115
  ["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
116
116
  !this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
117
117
  [`ic-step-${this.variant}`]: true,
@@ -241,11 +241,11 @@ export class Stepper {
241
241
  checkResizeObserver(this.runResizeObserver);
242
242
  }
243
243
  render() {
244
- return (h(Host, { key: 'c14ab03785dce7e9468fae22cc65ae18be102ae9', class: {
244
+ return (h(Host, { key: '82128e652194f8c19692211d4170bab0651112c6', class: {
245
245
  [`ic-stepper-${this.variant}`]: true,
246
246
  ["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
247
247
  [`ic-theme-${this.theme}`]: this.theme !== "inherit",
248
- } }, h("ul", { key: 'f1ca972d94d0ba753baffc6af457b5458117e810', class: "step-item-list" }, h("slot", { key: 'f2db26bd574543d137e5eb55e70bfa9201d50cae' }))));
248
+ } }, h("ul", { key: '887be84fa976e8aae0bc1fd659781f4650543725', class: "step-item-list" }, h("slot", { key: '09dfecb16ef10d0920e0b781befed025e16af13c' }))));
249
249
  }
250
250
  static get is() { return "ic-stepper"; }
251
251
  static get encapsulation() { return "shadow"; }
@@ -446,6 +446,7 @@ video {
446
446
 
447
447
  --ic-input-label-text-color: var(--ic-switch-label);
448
448
  --ic-input-label-helper-text-color: var(--ic-switch-help-text);
449
+ --ic-input-label-helpertext-padding: var(--ic-space-xs);
449
450
  }
450
451
 
451
452
  input {
@@ -459,17 +460,16 @@ input {
459
460
  display: flex;
460
461
  flex-wrap: wrap;
461
462
  align-items: center;
462
- gap: var(--ic-space-xxs);
463
463
  cursor: pointer;
464
464
  }
465
465
 
466
466
  .ic-switch-label {
467
467
  margin-left: var(--ic-space-xxs);
468
- margin-bottom: var(--ic-space-sm);
468
+ margin-bottom: var(--ic-space-xs);
469
469
  }
470
470
 
471
471
  .ic-switch-label-small {
472
- margin-bottom: 0.625rem;
472
+ margin-bottom: var(--ic-space-xs);
473
473
  }
474
474
 
475
475
  .ic-switch-toggle {
@@ -484,6 +484,7 @@ input {
484
484
  border: var(--ic-border-width) solid var(--ic-switch-unchecked);
485
485
  box-sizing: border-box;
486
486
  transition: var(--ic-transition-duration-fast);
487
+ margin-left: var(--ic-space-xxs);
487
488
  }
488
489
 
489
490
  .ic-switch-line-break {
@@ -592,10 +593,6 @@ input {
592
593
  background-color: var(--ic-switch-checked);
593
594
  }
594
595
 
595
- .ic-switch-small {
596
- gap: var(--ic-space-xxxs);
597
- }
598
-
599
596
  .ic-switch-small .ic-switch-toggle {
600
597
  width: var(--ic-space-xxl);
601
598
  height: var(--ic-space-lg);
@@ -611,11 +608,8 @@ input {
611
608
  transform: translate(var(--ic-space-lg), -50%);
612
609
  }
613
610
 
614
- ::slotted(*) {
611
+ ::slotted([slot="right-adornment"]) {
615
612
  margin-left: var(--ic-space-sm);
616
- }
617
-
618
- ::slotted(svg) {
619
613
  fill: var(--ic-switch-icon);
620
614
  }
621
615
 
@@ -2,6 +2,7 @@ import { Host, h, } from "@stencil/core";
2
2
  import { getInputDescribedByText, onComponentRequiredPropUndefined, renderHiddenInput, addFormResetListener, removeFormResetListener, removeDisabledFalse, } from "../../utils/helpers";
3
3
  let inputIds = 0;
4
4
  /**
5
+ * @slot helper-text - Content is set as the helper text for the switch.
5
6
  * @slot right-adornment - Content is placed to the right of switch.
6
7
  */
7
8
  export class Switch {
@@ -90,16 +91,16 @@ export class Switch {
90
91
  const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
91
92
  const isSmall = size === "small";
92
93
  renderHiddenInput(this.el, checkedState ? value : "", name, disabled);
93
- return (h(Host, { key: '66d9e066d1e0f20f7fa59fa0ca51c1769562a80e', class: {
94
+ return (h(Host, { key: '41b8e3edfe4befcf823ba88af9b476301be738c0', class: {
94
95
  [`ic-theme-${theme}`]: theme !== "inherit",
95
- } }, h("label", { key: '4bb0893e84a0c5f5f60ae02a00f1939987d5feb6', class: {
96
+ } }, h("label", { key: 'b7be9f77c5ff10bd8f4ebcc76588d5b84567f37c', class: {
96
97
  "ic-switch-container": true,
97
98
  "ic-switch-disabled": !!disabled,
98
99
  "ic-switch-small": isSmall,
99
- }, htmlFor: inputId }, !hideLabel && (h("ic-input-label", { key: '30301d042cec22cb7075eaf3bb424253b6ca1a36', for: inputId, label: label, helperText: helperText, readonly: true, disabled: disabled, class: {
100
+ }, htmlFor: inputId }, !hideLabel && (h("ic-input-label", { key: '799058374e555336d45376ddd645afeee32bafcb', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
100
101
  "ic-switch-label": true,
101
102
  "ic-switch-label-small": isSmall,
102
- } })), !hideLabel && h("span", { key: '6427efd9a6a645dd73783cc6e0356c437856c1bb', class: "ic-switch-line-break" }), h("input", { key: 'dace8d204c141350a2e5cf9ab6ea47337b98731c', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), h("span", { key: 'a443193b38189567ecb9740b47c60c6d9e09fdbc', class: "ic-switch-toggle" }, h("svg", { key: 'b8b91083bb4afa7dc2d63c858e44594cebc5ee89', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("line", { key: 'af086eb2f9f000b7c881620d19f879956b82a3e8', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), h("svg", { key: '788815cfaf4aae19e33b5adb03a8452365d8c700', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: 'f214643ebf7dfdd76f719e82f2241dc779bf5911', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), h("slot", { key: 'a88bdfafceb94160a60e4396c34d1a80ca21a58e', name: "right-adornment" }))));
103
+ } }, h("slot", { key: '509cfc15006377cd5cbb7ead4d33d29069e1ae25', name: "helper-text", slot: "helper-text" }))), !hideLabel && h("span", { key: '01ab8db129ac0a1cb0d1eb36c220211102c77696', class: "ic-switch-line-break" }), h("input", { key: '71c1a210fb9323c0d0bf1139f4bbd68e529b1c1f', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), h("span", { key: '835ba78c97c3af1916e4214e781ecd3e4f465828', class: "ic-switch-toggle" }, h("svg", { key: '8bb00a2e5f95ebe996e73be959467df033c44881', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("line", { key: 'a3d47d6105d552f920ef6143e385515da508500f', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), h("svg", { key: '2d7a5654aebbb042123a706edb2dec1c605d5f9d', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '6c0645133ac7a2fa747ce1cd81df0d2b528e19a5', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), h("slot", { key: 'f7ac187630acff4dabd2c264a6ebdbc717c21221', name: "right-adornment" }))));
103
104
  }
104
105
  static get is() { return "ic-switch"; }
105
106
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"ic-switch.js","sourceRoot":"","sources":["../../../src/components/ic-switch/ic-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EAEL,MAAM,EACN,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAI7B,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB;;GAEG;AAQH,MAAM,OAAO,MAAM;IAPnB;QAQU,YAAO,GAAG,mBAAmB,QAAQ,EAAE,EAAE,CAAC;QAIzC,iBAAY,GAAY,KAAK,CAAC;QAC9B,qBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC;QAEzC;;WAEG;QACK,YAAO,GAAa,KAAK,C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AE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,GAC9B,CACE,CACD;gBACP,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC9B,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n Method,\n Watch,\n} from \"@stencil/core\";\nimport {\n getInputDescribedByText,\n onComponentRequiredPropUndefined,\n renderHiddenInput,\n addFormResetListener,\n removeFormResetListener,\n removeDisabledFalse,\n} from \"../../utils/helpers\";\nimport { IcSwitchChangeEventDetail } from \"./ic-switch.types\";\nimport { IcSizesNoLarge, IcThemeMode } from \"../../utils/types\";\n\nlet inputIds = 0;\n\n/**\n * @slot right-adornment - Content is placed to the right of switch.\n */\n@Component({\n tag: \"ic-switch\",\n styleUrl: \"ic-switch.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Switch {\n private inputId = `ic-switch-input-${inputIds++}`;\n\n @Element() el: HTMLIcSwitchElement;\n\n @State() checkedState: boolean = false;\n @State() initiallyChecked = this.checked;\n\n /**\n * If `true`, the switch will display as checked.\n */\n @Prop() checked?: boolean = false;\n\n @Watch(\"checked\")\n checkedChangeHandler(): void {\n this.checkedState = !!this.checked;\n }\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * The helper text that will be displayed for additional field guidance.\n */\n @Prop() helperText?: string = \"\";\n\n /**\n * If `true`, the label will be hidden and the required label value will be applied as an aria-label.\n */\n @Prop() hideLabel?: boolean = false;\n\n /**\n * The aria-label applied to the switch when no visual 'name' is provided.\n */\n @Prop() label!: string;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name?: string = this.inputId;\n\n /**\n * The size of the switch 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 /**\n * The value of the toggle does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a toggle is analogous to the value of a `<input type=\"checkbox\">`,\n * it's only used when the toggle participates in a native `<form>`.\n */\n @Prop() value?: string | null = \"on\";\n\n /**\n * Emitted when the toggle loses focus.\n */\n @Event() icBlur!: EventEmitter<void>;\n\n /**\n * Emitted when the value property has changed.\n */\n @Event() icChange!: EventEmitter<IcSwitchChangeEventDetail>;\n\n /**\n * Emitted when the toggle has focus.\n */\n @Event() icFocus!: EventEmitter<void>;\n\n disconnectedCallback(): void {\n removeFormResetListener(this.el, this.handleFormReset);\n }\n\n componentWillLoad(): void {\n this.checkedState = this.checked!;\n addFormResetListener(this.el, this.handleFormReset);\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Switch\"\n );\n }\n\n /**\n * Sets focus on the switch.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot?.querySelector(\"input\")?.focus();\n }\n\n private handleChange = () => {\n this.checkedState = !this.checkedState;\n this.icChange.emit({\n checked: this.checkedState,\n value: this.value!,\n });\n };\n\n private onFocus = () => {\n this.icFocus.emit();\n };\n\n private onBlur = () => {\n this.icBlur.emit();\n };\n\n private handleFormReset = (): void => {\n this.checkedState = this.initiallyChecked!;\n };\n\n render() {\n const {\n label,\n checkedState,\n size,\n disabled,\n name,\n value,\n hideLabel,\n helperText,\n inputId,\n theme,\n } = this;\n\n const isSmall = size === \"small\";\n\n renderHiddenInput(this.el, checkedState ? value : \"\", name, disabled);\n\n return (\n <Host\n class={{\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n <label\n class={{\n \"ic-switch-container\": true,\n \"ic-switch-disabled\": !!disabled,\n \"ic-switch-small\": isSmall,\n }}\n htmlFor={inputId}\n >\n {!hideLabel && (\n <ic-input-label\n for={inputId}\n label={label}\n helperText={helperText}\n readonly={true}\n disabled={disabled}\n class={{\n \"ic-switch-label\": true,\n \"ic-switch-label-small\": isSmall,\n }}\n ></ic-input-label>\n )}\n {!hideLabel && <span class=\"ic-switch-line-break\"></span>}\n <input\n checked={checkedState}\n disabled={disabled}\n aria-label={label}\n aria-checked={checkedState ? \"true\" : \"false\"}\n aria-describedby={getInputDescribedByText(\n inputId,\n helperText !== \"\",\n false\n )}\n role=\"switch\"\n class=\"ic-switch-input\"\n type=\"checkbox\"\n name=\"toggle\"\n id={inputId}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onChange={this.handleChange}\n />\n <span class=\"ic-switch-toggle\">\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <line\n class=\"ic-switch-icon-line\"\n x1=\"9\"\n y1={isSmall ? \"2\" : \"1\"}\n x2=\"9\"\n y2={isSmall ? \"8\" : \"9\"}\n />\n </svg>\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n class=\"ic-switch-icon-circle\"\n fill=\"none\"\n cx=\"5\"\n cy=\"5\"\n r={isSmall ? \"3.335\" : \"4.445\"}\n />\n </svg>\n </span>\n <slot name=\"right-adornment\"></slot>\n </label>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"ic-switch.js","sourceRoot":"","sources":["../../../src/components/ic-switch/ic-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EAEL,MAAM,EACN,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAI7B,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB;;;GAGG;AAQH,MAAM,OAAO,MAAM;IAPnB;QAQU,YAAO,GAAG,mBAAmB,QAAQ,EAAE,EAAE,CAAC;QAIzC,iBAAY,GAAY,KAAK,CAAC;QAC9B,qBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC;QAEzC;;WAEG;QACK,YAAO,GAAa,KAAK,CAAC;QAOlC;;WAEG;QACK,aAAQ,GAAa,KAAK,CAAC;QAMnC;;WAEG;QACK,eAAU,GAAY,EAAE,CAAC;QAEjC;;WAEG;QACK,cAAS,GAAa,KAAK,CAAC;QAOpC;;WAEG;QACK,SAAI,GAAY,IAAI,CAAC,OAAO,CAAC;QAErC;;WAEG;QACK,SAAI,GAAoB,QAAQ,CAAC;QAEzC;;WAEG;QACK,UAAK,GAAiB,SAAS,CAAC;QAExC;;;;;;WAMG;QACK,UAAK,GAAmB,IAAI,CAAC;QA0C7B,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;YACvC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;gBACjB,OAAO,EAAE,IAAI,CAAC,YAAY;gBAC1B,KAAK,EAAE,IAAI,CAAC,KAAM;aACnB,CAAC,CAAC;Q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;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n Method,\n Watch,\n} from \"@stencil/core\";\nimport {\n getInputDescribedByText,\n onComponentRequiredPropUndefined,\n renderHiddenInput,\n addFormResetListener,\n removeFormResetListener,\n removeDisabledFalse,\n} from \"../../utils/helpers\";\nimport { IcSwitchChangeEventDetail } from \"./ic-switch.types\";\nimport { IcSizesNoLarge, IcThemeMode } from \"../../utils/types\";\n\nlet inputIds = 0;\n\n/**\n * @slot helper-text - Content is set as the helper text for the switch.\n * @slot right-adornment - Content is placed to the right of switch.\n */\n@Component({\n tag: \"ic-switch\",\n styleUrl: \"ic-switch.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Switch {\n private inputId = `ic-switch-input-${inputIds++}`;\n\n @Element() el: HTMLIcSwitchElement;\n\n @State() checkedState: boolean = false;\n @State() initiallyChecked = this.checked;\n\n /**\n * If `true`, the switch will display as checked.\n */\n @Prop() checked?: boolean = false;\n\n @Watch(\"checked\")\n checkedChangeHandler(): void {\n this.checkedState = !!this.checked;\n }\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * The helper text that will be displayed for additional field guidance.\n */\n @Prop() helperText?: string = \"\";\n\n /**\n * If `true`, the label will be hidden and the required label value will be applied as an aria-label.\n */\n @Prop() hideLabel?: boolean = false;\n\n /**\n * The aria-label applied to the switch when no visual 'name' is provided.\n */\n @Prop() label!: string;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name?: string = this.inputId;\n\n /**\n * The size of the switch 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 /**\n * The value of the toggle does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a toggle is analogous to the value of a `<input type=\"checkbox\">`,\n * it's only used when the toggle participates in a native `<form>`.\n */\n @Prop() value?: string | null = \"on\";\n\n /**\n * Emitted when the toggle loses focus.\n */\n @Event() icBlur!: EventEmitter<void>;\n\n /**\n * Emitted when the value property has changed.\n */\n @Event() icChange!: EventEmitter<IcSwitchChangeEventDetail>;\n\n /**\n * Emitted when the toggle has focus.\n */\n @Event() icFocus!: EventEmitter<void>;\n\n disconnectedCallback(): void {\n removeFormResetListener(this.el, this.handleFormReset);\n }\n\n componentWillLoad(): void {\n this.checkedState = this.checked!;\n addFormResetListener(this.el, this.handleFormReset);\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Switch\"\n );\n }\n\n /**\n * Sets focus on the switch.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot?.querySelector(\"input\")?.focus();\n }\n\n private handleChange = () => {\n this.checkedState = !this.checkedState;\n this.icChange.emit({\n checked: this.checkedState,\n value: this.value!,\n });\n };\n\n private onFocus = () => {\n this.icFocus.emit();\n };\n\n private onBlur = () => {\n this.icBlur.emit();\n };\n\n private handleFormReset = (): void => {\n this.checkedState = this.initiallyChecked!;\n };\n\n render() {\n const {\n label,\n checkedState,\n size,\n disabled,\n name,\n value,\n hideLabel,\n helperText,\n inputId,\n theme,\n } = this;\n\n const isSmall = size === \"small\";\n\n renderHiddenInput(this.el, checkedState ? value : \"\", name, disabled);\n\n return (\n <Host\n class={{\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n <label\n class={{\n \"ic-switch-container\": true,\n \"ic-switch-disabled\": !!disabled,\n \"ic-switch-small\": isSmall,\n }}\n htmlFor={inputId}\n >\n {!hideLabel && (\n <ic-input-label\n for={inputId}\n label={label}\n helperText={helperText}\n readonly={false}\n disabled={disabled}\n class={{\n \"ic-switch-label\": true,\n \"ic-switch-label-small\": isSmall,\n }}\n >\n <slot name=\"helper-text\" slot=\"helper-text\"></slot>\n </ic-input-label>\n )}\n {!hideLabel && <span class=\"ic-switch-line-break\"></span>}\n <input\n checked={checkedState}\n disabled={disabled}\n aria-label={label}\n aria-checked={checkedState ? \"true\" : \"false\"}\n aria-describedby={getInputDescribedByText(\n this.el,\n inputId,\n helperText !== \"\",\n false\n )}\n role=\"switch\"\n class=\"ic-switch-input\"\n type=\"checkbox\"\n name=\"toggle\"\n id={inputId}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onChange={this.handleChange}\n />\n <span class=\"ic-switch-toggle\">\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <line\n class=\"ic-switch-icon-line\"\n x1=\"9\"\n y1={isSmall ? \"2\" : \"1\"}\n x2=\"9\"\n y2={isSmall ? \"8\" : \"9\"}\n />\n </svg>\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n class=\"ic-switch-icon-circle\"\n fill=\"none\"\n cx=\"5\"\n cy=\"5\"\n r={isSmall ? \"3.335\" : \"4.445\"}\n />\n </svg>\n </span>\n <slot name=\"right-adornment\"></slot>\n </label>\n </Host>\n );\n }\n}\n"]}
@@ -62,7 +62,14 @@ export const AriaLabel = {
62
62
 
63
63
  export const HelperText = {
64
64
  render: () =>
65
- html` <ic-switch label="Label" helper-text="Helper Text"></ic-switch>`,
65
+ html`<ic-switch label="Label" helper-text="Helper Text"></ic-switch>
66
+ <ic-switch label="Label">
67
+ <ic-typography variant="caption" slot="helper-text">
68
+ <span>
69
+ Slotted helper text with a <ic-link href="#">link</ic-link>
70
+ </span>
71
+ </ic-typography>
72
+ </ic-switch>`,
66
73
  name: "Helper text",
67
74
  };
68
75
 
@@ -220,7 +220,7 @@ export class TabContext {
220
220
  }
221
221
  }
222
222
  render() {
223
- return h("slot", { key: '308c198fe6530957868154b0e7edb1a977629bca' });
223
+ return h("slot", { key: 'b2129a3c599ca4b97df30f14833761780c2c0940' });
224
224
  }
225
225
  static get is() { return "ic-tab-context"; }
226
226
  static get properties() {
@@ -16,11 +16,11 @@ export class TabGroup {
16
16
  }
17
17
  render() {
18
18
  const { inline, theme, label, monochrome } = this;
19
- return (h(Host, { key: '843cb9e2c3bf88635d7721ce01d0fbcac8c0f774', role: "tablist", "aria-label": label, class: {
19
+ return (h(Host, { key: '5e2ac19760c3c6f6a5fa4e24e4b65d06bf958734', role: "tablist", "aria-label": label, class: {
20
20
  ["ic-tab-group-inline"]: !!inline,
21
21
  [`ic-theme-${theme}`]: theme !== "inherit",
22
22
  ["ic-tab-group-monochrome"]: !!monochrome,
23
- } }, h("ic-horizontal-scroll", { key: '3e65658082dfa15c4249b942a4231402b9b20856', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, h("div", { key: '579c86d070a566e752c102195b8d13de7bdd0ac9', class: "tabs-container" }, h("slot", { key: 'c5d14fa4615b470d8aa01b567667768427f20e50' })))));
23
+ } }, h("ic-horizontal-scroll", { key: 'c1af66d6ccce50093586a87024d2fc2064204e65', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, h("div", { key: '5d74a60b33b216eea766a5d15e9d130cda924d2b', class: "tabs-container" }, h("slot", { key: '7d95c9b98a270810c391abc779ca0bda5c7fa24f' })))));
24
24
  }
25
25
  static get is() { return "ic-tab-group"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -17,10 +17,10 @@ export class TabPanel {
17
17
  }
18
18
  render() {
19
19
  const { active, theme } = this;
20
- return (h(Host, { key: 'b5bfad1dbd94c81d889c5cb1e5dabadece967655', class: {
20
+ return (h(Host, { key: '866d13ac3e2c93c8ea20e83d8513a74664aabfcb', class: {
21
21
  [`ic-theme-${theme}`]: theme !== "inherit",
22
22
  "ic-tab-panel-hidden": !active,
23
- }, role: "tabpanel", "aria-hidden": `${!active}` }, h("div", { key: 'a1032b06a9103331d74a35a9c4bd1a47a63d3335' }, h("slot", { key: '5c8c7c9bbbc6573e9e3a05224cb50ef36740c81c' }))));
23
+ }, role: "tabpanel", "aria-hidden": `${!active}` }, h("div", { key: 'a44da18c8534659c240dcb84ba9941b61574f546' }, h("slot", { key: '91a267e9b16c4ebdadb1b5facb9f7f50f3944f8e' }))));
24
24
  }
25
25
  static get is() { return "ic-tab-panel"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -447,7 +447,7 @@ video {
447
447
  */
448
448
  display: block;
449
449
 
450
- --ic-input-label-helpertext-padding: var(--ic-space-xxs);
450
+ --ic-input-label-helpertext-padding: var(--ic-space-xs);
451
451
  --border-color: var(--ic-text-field-border-neutral);
452
452
  --border-color-hover: var(--ic-text-field-border-neutral-hover);
453
453
  --border-color-pressed: var(--ic-text-field-border-neutral-pressed);
@@ -5,6 +5,7 @@ import { IC_INHERITED_ARIA, IGNORED_KEYBOARD_CHARACTERS, } from "../../utils/con
5
5
  let inputIds = 0;
6
6
  const MUTABLE_ATTRIBUTES = [...IC_INHERITED_ARIA, "title"];
7
7
  /**
8
+ * @slot helper-text - Content is set as the helper text for the text field.
8
9
  * @slot icon - Content will be placed to the left of the text input.
9
10
  */
10
11
  export class TextField {
@@ -358,21 +359,21 @@ export class TextField {
358
359
  const charsRemaining = maxNumChars - numChars;
359
360
  const remainingCharCountDescId = maxCharacters > 0 ? `${inputId}-remaining-char-count-desc` : "";
360
361
  const remainingCharCountDesc = `${charsRemaining} character${charsRemaining === 1 ? "" : "s"} remaining.`;
361
- const describedBy = `${hiddenCharCountDescId} ${numChars > 0 ? remainingCharCountDescId : ""} ${getInputDescribedByText(inputId, helperText !== "", showStatusText)}`.trim();
362
+ const describedBy = `${hiddenCharCountDescId} ${numChars > 0 ? remainingCharCountDescId : ""} ${getInputDescribedByText(this.el, inputId, helperText !== "", showStatusText)}`.trim();
362
363
  const disabledText = disabledMode && !readonly;
363
364
  const showLeftIcon = !!this.el.querySelector(`[slot="icon"]`) && !disabledText;
364
365
  const invalid = `${currentStatus === IcInformationStatus.Error}`;
365
366
  hiddenInput
366
367
  ? renderHiddenInput(this.el, value, name, disabledMode)
367
368
  : removeHiddenInput(this.el);
368
- return (h(Host, { key: 'fe960598716052334b20c15f7e4b05477025783b', class: {
369
+ return (h(Host, { key: '353a70181ab18c4f636b34e2177bb9d088567885', class: {
369
370
  "ic-text-field-full-width": fullWidth,
370
371
  "ic-text-field-disabled": disabledMode,
371
372
  [`ic-theme-${theme}`]: theme !== "inherit",
372
- } }, h("ic-input-container", { key: '1a4e6b2cd9ef8646ed34575b77ce53d82a1dbb1b', readonly: readonly, disabled: disabledMode }, !hideLabel && (h("ic-input-label", { key: '1b56501853e8a8062a4b02fb85be73c69d4b5b1e', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly })), h("ic-input-component-container", { key: '7e104a64fc5ab3a173b814d38287fd843cfb8eb4', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (h("span", { key: 'd3e31bb36c451e33d99b93eb069b6cad1e074de3', class: {
373
+ } }, h("ic-input-container", { key: '96d0ef6132ed2a26ee535cfc5055ddc6287446f6', readonly: readonly, disabled: disabledMode }, !hideLabel && (h("ic-input-label", { key: 'dfcb7859651f74678636e4cda1ba0706b2e3b1fb', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, h("slot", { key: 'd9ee297f2de674a969486a3d00eef54526eace50', name: "helper-text", slot: "helper-text" }))), h("ic-input-component-container", { key: '0a178235ced26ef73fd907d41424a8b4942659dc', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (h("span", { key: 'c5206e3d1af81d4bf9bf0afcc9277899ca2287be', class: {
373
374
  readonly,
374
375
  "has-value": this.getNumberOfCharacters(value) > 0,
375
- }, slot: "left-icon" }, h("slot", { key: '6b91c9ac3cf054c3e30208712e3404c03c1e7d45', name: "icon" }))), !multiline ? (h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: type, min: min, max: max, value: value, class: {
376
+ }, slot: "left-icon" }, h("slot", { key: 'f3945929b482d9a0a954dc1afa658fc0c45d90c8', name: "icon" }))), !multiline ? (h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: type, min: min, max: max, value: value, class: {
376
377
  "no-left-pad": !showLeftIcon && readonly,
377
378
  readonly,
378
379
  "truncate-value": truncateValue,
@@ -380,19 +381,19 @@ export class TextField {
380
381
  "no-resize": resize === false || !!readonly,
381
382
  "no-left-pad": !showLeftIcon && !!readonly,
382
383
  readonly: !!readonly,
383
- }, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (h("slot", { key: '9b9a1124d52713bf7addfdaa9ad2c8f13538e988', name: "clear-button" })), isSlotUsed(el, "search-submit-button") && (h("slot", { key: '3b84112cf83d64ae25bec34bd981a2d53d4cb00c', name: "search-submit-button" }))), isSlotUsed(el, "menu") && h("slot", { key: 'f4b614d2451d5c264455536c365ce01510549df3', name: "menu" }), (!isEmptyString(validationStatus) ||
384
+ }, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (h("slot", { key: '6397d66b59b148884cb2fd7f8913063ca24f0de1', name: "clear-button" })), isSlotUsed(el, "search-submit-button") && (h("slot", { key: 'c5e7f94345cebe1dc99ba475aa5bde1b45dda0e0', name: "search-submit-button" }))), isSlotUsed(el, "menu") && h("slot", { key: '1c7fe7d7654373753295a44a3e126ce2409099cc', name: "menu" }), (!isEmptyString(validationStatus) ||
384
385
  !isEmptyString(validationText) ||
385
386
  maxNumChars > 0 ||
386
387
  maxValueExceeded ||
387
388
  maxCharactersWarning ||
388
389
  minCharactersUnattained ||
389
390
  minValueUnattained) &&
390
- !validationInlineInternal && (h("ic-input-validation", { key: 'a3320c6413c9688905aa7195c07aedaeb5b07aac', status: this.hasStatus(currentStatus) === false ||
391
+ !validationInlineInternal && (h("ic-input-validation", { key: '2ba3ff987910423696b822529b36e59f04b36025', status: this.hasStatus(currentStatus) === false ||
391
392
  (currentStatus === IcInformationStatus.Success &&
392
393
  validationInline) ||
393
394
  validationInlineInternal
394
395
  ? ""
395
- : currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (h("div", { key: '50e3a895feaf7026e41698279e344ec987be3569', slot: "validation-message-adornment" }, !hideCharCount && (h("ic-typography", { key: '6918f82e8bc0ab17941bdafa24249f7ac0fbc191', variant: "caption", class: "char-count-text" }, h("span", { key: '59b2ea3ee4a854eff96af2faacb407f926c1b393', class: "char-count" }, numChars, "/", maxNumChars))), h("span", { key: '977bfee3b55bad4412d6943dfc8e75bd0f4ddb41', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), h("span", { key: '727328e80137330465fcbdc45711f168b5d9d54f', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters."))))))));
396
+ : currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (h("div", { key: '01e443574b72a18ebd0b0646b0c2c30b59cc5726', slot: "validation-message-adornment" }, !hideCharCount && (h("ic-typography", { key: '90d4e1d9325a34444c38a9c75eaaa5e256c23cae', variant: "caption", class: "char-count-text" }, h("span", { key: '901a7db053e3fa59e6db506a53be92ddbf54be5d', class: "char-count" }, numChars, "/", maxNumChars))), h("span", { key: '83b08ec8e8ba8286cc8024b647552c5b3e0d09e5', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), h("span", { key: '28e0fc0de7a73057a7b00bd7e40e71c7611a980c', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters."))))))));
396
397
  }
397
398
  static get is() { return "ic-text-field"; }
398
399
  static get encapsulation() { return "shadow"; }