@ukic/web-components 2.1.0-beta.1 → 2.1.0-beta.11

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 (868) hide show
  1. package/README.md +8 -0
  2. package/dist/cjs/OpenInNew-f9958725.js +7 -0
  3. package/dist/cjs/OpenInNew-f9958725.js.map +1 -0
  4. package/dist/cjs/{check-icon-999d9877.js → check-icon-b2f60716.js} +2 -2
  5. package/dist/cjs/check-icon-b2f60716.js.map +1 -0
  6. package/dist/cjs/chevron-icon-2bb3a907.js +10 -0
  7. package/dist/cjs/chevron-icon-2bb3a907.js.map +1 -0
  8. package/dist/cjs/core.cjs.js +2 -2
  9. package/dist/cjs/{helpers-8bc3b6d2.js → helpers-2021e212.js} +78 -4
  10. package/dist/cjs/helpers-2021e212.js.map +1 -0
  11. package/dist/cjs/ic-alert.cjs.entry.js +6 -25
  12. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-back-to-top.cjs.entry.js +24 -12
  14. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
  16. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-breadcrumb.cjs.entry.js +15 -6
  18. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-button_3.cjs.entry.js +46 -31
  20. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-card.cjs.entry.js +29 -5
  22. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-checkbox-group.cjs.entry.js +4 -4
  24. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-checkbox.cjs.entry.js +16 -4
  26. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-chip.cjs.entry.js +77 -0
  28. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -0
  29. package/dist/cjs/ic-classification-banner.cjs.entry.js +3 -3
  30. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-data-entity.cjs.entry.js +2 -2
  32. package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-data-row.cjs.entry.js +14 -12
  34. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-divider.cjs.entry.js +3 -3
  36. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-footer-link-group.cjs.entry.js +4 -3
  38. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-footer-link.cjs.entry.js +12 -5
  40. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-footer.cjs.entry.js +5 -5
  42. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-hero.cjs.entry.js +3 -3
  44. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +164 -0
  46. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -0
  47. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +79 -45
  48. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-input-label_2.cjs.entry.js +6 -8
  50. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-link.cjs.entry.js +14 -8
  52. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-menu-group.cjs.entry.js +24 -0
  54. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -0
  55. package/dist/cjs/ic-menu-item.cjs.entry.js +120 -0
  56. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -0
  57. package/dist/cjs/ic-navigation-button.cjs.entry.js +5 -4
  58. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-navigation-group.cjs.entry.js +7 -6
  60. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-navigation-item.cjs.entry.js +19 -12
  62. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-navigation-menu.cjs.entry.js +8 -8
  64. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-page-header.cjs.entry.js +5 -5
  66. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-popover-menu.cjs.entry.js +236 -0
  68. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -0
  69. package/dist/cjs/ic-radio-group.cjs.entry.js +13 -5
  70. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-radio-option.cjs.entry.js +24 -6
  72. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-search-bar.cjs.entry.js +56 -42
  74. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  76. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-select.cjs.entry.js +218 -69
  78. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-side-navigation.cjs.entry.js +26 -14
  80. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  82. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-status-tag.cjs.entry.js +6 -5
  84. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-step.cjs.entry.js +103 -15
  86. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-stepper.cjs.entry.js +166 -42
  88. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-switch.cjs.entry.js +12 -3
  90. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  91. package/dist/cjs/ic-tab-context.cjs.entry.js +7 -2
  92. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ic-tab-group.cjs.entry.js +9 -118
  94. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  96. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  97. package/dist/cjs/ic-tab.cjs.entry.js +10 -2
  98. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  99. package/dist/cjs/ic-text-field.cjs.entry.js +5 -5
  100. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  101. package/dist/cjs/ic-theme.cjs.entry.js +4 -4
  102. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  103. package/dist/cjs/ic-toast-region.cjs.entry.js +48 -0
  104. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -0
  105. package/dist/cjs/ic-toast.cjs.entry.js +165 -0
  106. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -0
  107. package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -10
  108. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  109. package/dist/cjs/ic-typography.cjs.entry.js +1 -1
  110. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  111. package/dist/cjs/{index-3ef30d9d.js → index-f79a4e53.js} +33 -2
  112. package/dist/cjs/index-f79a4e53.js.map +1 -0
  113. package/dist/cjs/loader.cjs.js +2 -2
  114. package/dist/cjs/types-3eb02246.js.map +1 -1
  115. package/dist/collection/assets/back-icon.svg +1 -1
  116. package/dist/collection/assets/check-icon.svg +1 -1
  117. package/dist/collection/assets/chevron-icon.svg +1 -1
  118. package/dist/collection/assets/dismiss-icon.svg +3 -0
  119. package/dist/collection/assets/error-icon.svg +3 -3
  120. package/dist/collection/assets/info-icon.svg +3 -3
  121. package/dist/collection/assets/neutral-icon.svg +3 -3
  122. package/dist/collection/assets/success-icon.svg +3 -3
  123. package/dist/collection/assets/warning-icon-outline.svg +3 -0
  124. package/dist/collection/assets/warning-icon.svg +3 -3
  125. package/dist/collection/collection-manifest.json +7 -0
  126. package/dist/collection/components/ic-alert/ic-alert.css +13 -13
  127. package/dist/collection/components/ic-alert/ic-alert.js +32 -24
  128. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  129. package/dist/collection/components/ic-back-to-top/assets/ArrowUpward.svg +2 -2
  130. package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +18 -8
  131. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +18 -7
  132. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
  133. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +20 -5
  134. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +33 -4
  135. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
  136. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +2 -2
  137. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
  138. package/dist/collection/components/ic-button/ic-button.css +16 -15
  139. package/dist/collection/components/ic-button/ic-button.js +18 -32
  140. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  141. package/dist/collection/components/ic-card/ic-card.css +75 -17
  142. package/dist/collection/components/ic-card/ic-card.js +103 -16
  143. package/dist/collection/components/ic-card/ic-card.js.map +1 -1
  144. package/dist/collection/components/ic-checkbox/ic-checkbox.css +28 -30
  145. package/dist/collection/components/ic-checkbox/ic-checkbox.js +63 -11
  146. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  147. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +18 -2
  148. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +11 -11
  149. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  150. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js +1 -1
  151. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +1 -1
  152. package/dist/collection/components/ic-chip/ic-chip.css +596 -0
  153. package/dist/collection/components/ic-chip/ic-chip.js +247 -0
  154. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -0
  155. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js +11 -0
  156. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js.map +1 -0
  157. package/dist/collection/components/ic-chip/ic-chip.types.js +2 -0
  158. package/dist/collection/components/ic-chip/ic-chip.types.js.map +1 -0
  159. package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +5 -1
  160. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +6 -6
  161. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
  162. package/dist/collection/components/ic-data-entity/ic-data-entity.css +1 -1
  163. package/dist/collection/components/ic-data-entity/ic-data-entity.js +2 -2
  164. package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +1 -1
  165. package/dist/collection/components/ic-data-row/ic-data-row.css +19 -7
  166. package/dist/collection/components/ic-data-row/ic-data-row.js +14 -12
  167. package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
  168. package/dist/collection/components/ic-divider/ic-divider.css +1 -1
  169. package/dist/collection/components/ic-divider/ic-divider.js +1 -1
  170. package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
  171. package/dist/collection/components/ic-footer/ic-footer.css +4 -4
  172. package/dist/collection/components/ic-footer/ic-footer.js +19 -16
  173. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  174. package/dist/collection/components/ic-footer-link/ic-footer-link.css +44 -6
  175. package/dist/collection/components/ic-footer-link/ic-footer-link.js +101 -4
  176. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  177. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +1 -1
  178. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +4 -3
  179. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  180. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js +1 -1
  181. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +1 -1
  182. package/dist/collection/components/ic-hero/ic-hero.css +35 -30
  183. package/dist/collection/components/ic-hero/ic-hero.js +10 -10
  184. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  185. package/dist/collection/components/ic-horizontal-scroll/assets/left-arrow.svg +3 -0
  186. package/dist/collection/components/ic-horizontal-scroll/assets/right-arrow.svg +3 -0
  187. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +539 -0
  188. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +219 -0
  189. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -0
  190. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js +34 -0
  191. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js.map +1 -0
  192. package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +16 -17
  193. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +8 -8
  194. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
  195. package/dist/collection/components/ic-input-container/ic-input-container.css +0 -1
  196. package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
  197. package/dist/collection/components/ic-input-container/ic-input-container.js.map +1 -1
  198. package/dist/collection/components/ic-input-label/ic-input-label.js +8 -8
  199. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  200. package/dist/collection/components/ic-input-validation/ic-input-validation.css +4 -5
  201. package/dist/collection/components/ic-input-validation/ic-input-validation.js +5 -5
  202. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  203. package/dist/collection/components/ic-link/ic-link.css +14 -10
  204. package/dist/collection/components/ic-link/ic-link.js +43 -13
  205. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  206. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +43 -7
  207. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +48 -9
  208. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  209. package/dist/collection/components/ic-menu/ic-menu.css +20 -15
  210. package/dist/collection/components/ic-menu/ic-menu.js +144 -73
  211. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  212. package/dist/collection/components/ic-menu-group/ic-menu-group.css +465 -0
  213. package/dist/collection/components/ic-menu-group/ic-menu-group.js +45 -0
  214. package/dist/collection/components/ic-menu-group/ic-menu-group.js.map +1 -0
  215. package/dist/collection/components/ic-menu-item/ic-menu-item.css +633 -0
  216. package/dist/collection/components/ic-menu-item/ic-menu-item.js +392 -0
  217. package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -0
  218. package/dist/collection/components/ic-menu-item/ic-menu-item.types.js +2 -0
  219. package/dist/collection/components/ic-menu-item/ic-menu-item.types.js.map +1 -0
  220. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +9 -8
  221. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  222. package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +14 -7
  223. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +7 -6
  224. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  225. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +68 -18
  226. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +113 -16
  227. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  228. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +15 -11
  229. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +8 -8
  230. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  231. package/dist/collection/components/ic-page-header/ic-page-header.css +15 -5
  232. package/dist/collection/components/ic-page-header/ic-page-header.js +10 -10
  233. package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
  234. package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +535 -0
  235. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +432 -0
  236. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -0
  237. package/dist/collection/components/ic-popover-menu/ic-popover-menu.test.a11y.js +13 -0
  238. package/dist/collection/components/ic-popover-menu/ic-popover-menu.test.a11y.js.map +1 -0
  239. package/dist/collection/components/ic-radio-group/ic-radio-group.css +32 -0
  240. package/dist/collection/components/ic-radio-group/ic-radio-group.js +44 -13
  241. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  242. package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js +1 -1
  243. package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +1 -1
  244. package/dist/collection/components/ic-radio-option/ic-radio-option.css +32 -42
  245. package/dist/collection/components/ic-radio-option/ic-radio-option.js +65 -19
  246. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  247. package/dist/collection/components/ic-search-bar/ic-search-bar.css +24 -18
  248. package/dist/collection/components/ic-search-bar/ic-search-bar.js +90 -83
  249. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  250. package/dist/collection/components/ic-section-container/ic-section-container.css +1 -0
  251. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  252. package/dist/collection/components/ic-section-container/ic-section-container.js.map +1 -1
  253. package/dist/collection/components/ic-select/assets/Expand.svg +1 -1
  254. package/dist/collection/components/ic-select/ic-select.css +47 -30
  255. package/dist/collection/components/ic-select/ic-select.js +336 -88
  256. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  257. package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js +90 -0
  258. package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js.map +1 -1
  259. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +47 -37
  260. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +40 -24
  261. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  262. package/dist/collection/components/ic-skeleton/ic-skeleton.css +1 -1
  263. package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
  264. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
  265. package/dist/collection/components/ic-status-tag/ic-status-tag.css +7 -7
  266. package/dist/collection/components/ic-status-tag/ic-status-tag.js +22 -3
  267. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
  268. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js +1 -1
  269. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +1 -1
  270. package/dist/collection/components/ic-step/ic-step.css +127 -30
  271. package/dist/collection/components/ic-step/ic-step.js +269 -28
  272. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  273. package/dist/collection/components/ic-step/ic-step.types.js.map +1 -1
  274. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js +74 -0
  275. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js.map +1 -0
  276. package/dist/collection/components/ic-stepper/ic-stepper.css +15 -1
  277. package/dist/collection/components/ic-stepper/ic-stepper.js +210 -40
  278. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  279. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js +13 -1
  280. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +1 -1
  281. package/dist/collection/components/ic-switch/ic-switch.css +20 -20
  282. package/dist/collection/components/ic-switch/ic-switch.js +36 -7
  283. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  284. package/dist/collection/components/ic-tab/ic-tab.css +1 -1
  285. package/dist/collection/components/ic-tab/ic-tab.js +37 -6
  286. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  287. package/dist/collection/components/ic-tab-context/ic-tab-context.js +31 -4
  288. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  289. package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js +1 -1
  290. package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +1 -1
  291. package/dist/collection/components/ic-tab-group/ic-tab-group.css +6 -120
  292. package/dist/collection/components/ic-tab-group/ic-tab-group.js +12 -156
  293. package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
  294. package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +4 -0
  295. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
  296. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
  297. package/dist/collection/components/ic-text-field/ic-text-field.css +7 -7
  298. package/dist/collection/components/ic-text-field/ic-text-field.js +32 -32
  299. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  300. package/dist/collection/components/ic-theme/ic-theme.js +9 -6
  301. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
  302. package/dist/collection/components/ic-toast/ic-toast.css +602 -0
  303. package/dist/collection/components/ic-toast/ic-toast.js +382 -0
  304. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -0
  305. package/dist/collection/components/ic-toast/ic-toast.test.a11y.js +16 -0
  306. package/dist/collection/components/ic-toast/ic-toast.test.a11y.js.map +1 -0
  307. package/dist/collection/components/ic-toast/ic-toast.types.js +2 -0
  308. package/dist/collection/components/ic-toast/ic-toast.types.js.map +1 -0
  309. package/dist/collection/components/ic-toast-region/ic-toast-region.js +81 -0
  310. package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -0
  311. package/dist/collection/components/ic-tooltip/ic-tooltip.css +9 -11
  312. package/dist/collection/components/ic-tooltip/ic-tooltip.js +28 -3
  313. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  314. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +34 -52
  315. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +21 -15
  316. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  317. package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js +1 -1
  318. package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +1 -1
  319. package/dist/collection/components/ic-typography/ic-typography.js +1 -1
  320. package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
  321. package/dist/collection/normalize.css +440 -0
  322. package/dist/collection/testspec.setup.js +8 -0
  323. package/dist/collection/testspec.setup.js.map +1 -1
  324. package/dist/collection/utils/constants.js +28 -0
  325. package/dist/collection/utils/constants.js.map +1 -1
  326. package/dist/collection/utils/helpers.js +13 -4
  327. package/dist/collection/utils/helpers.js.map +1 -1
  328. package/dist/collection/utils/types.js.map +1 -1
  329. package/dist/components/OpenInNew.js +5 -0
  330. package/dist/components/OpenInNew.js.map +1 -0
  331. package/dist/components/check-icon.js +1 -1
  332. package/dist/components/chevron-icon.js +1 -1
  333. package/dist/components/helpers.js +71 -4
  334. package/dist/components/helpers.js.map +1 -1
  335. package/dist/components/ic-alert.js +6 -25
  336. package/dist/components/ic-alert.js.map +1 -1
  337. package/dist/components/ic-back-to-top.js +23 -11
  338. package/dist/components/ic-back-to-top.js.map +1 -1
  339. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  340. package/dist/components/ic-breadcrumb2.js +14 -4
  341. package/dist/components/ic-breadcrumb2.js.map +1 -1
  342. package/dist/components/ic-button2.js +9 -20
  343. package/dist/components/ic-button2.js.map +1 -1
  344. package/dist/components/ic-card.js +52 -6
  345. package/dist/components/ic-card.js.map +1 -1
  346. package/dist/components/ic-checkbox-group.js +3 -3
  347. package/dist/components/ic-checkbox-group.js.map +1 -1
  348. package/dist/components/ic-checkbox.js +17 -4
  349. package/dist/components/ic-checkbox.js.map +1 -1
  350. package/dist/components/ic-chip.d.ts +11 -0
  351. package/dist/components/ic-chip.js +111 -0
  352. package/dist/components/ic-chip.js.map +1 -0
  353. package/dist/components/ic-classification-banner.js +2 -2
  354. package/dist/components/ic-classification-banner.js.map +1 -1
  355. package/dist/components/ic-data-entity.js +1 -1
  356. package/dist/components/ic-data-entity.js.map +1 -1
  357. package/dist/components/ic-data-row.js +12 -10
  358. package/dist/components/ic-data-row.js.map +1 -1
  359. package/dist/components/ic-divider2.js +2 -2
  360. package/dist/components/ic-divider2.js.map +1 -1
  361. package/dist/components/ic-footer-link-group.js +4 -3
  362. package/dist/components/ic-footer-link-group.js.map +1 -1
  363. package/dist/components/ic-footer-link.js +17 -5
  364. package/dist/components/ic-footer-link.js.map +1 -1
  365. package/dist/components/ic-footer.js +4 -4
  366. package/dist/components/ic-footer.js.map +1 -1
  367. package/dist/components/ic-hero.js +2 -2
  368. package/dist/components/ic-hero.js.map +1 -1
  369. package/dist/components/ic-horizontal-scroll.d.ts +11 -0
  370. package/dist/components/ic-horizontal-scroll.js +8 -0
  371. package/dist/components/ic-horizontal-scroll.js.map +1 -0
  372. package/dist/components/ic-horizontal-scroll2.js +205 -0
  373. package/dist/components/ic-horizontal-scroll2.js.map +1 -0
  374. package/dist/components/ic-input-component-container2.js +2 -3
  375. package/dist/components/ic-input-component-container2.js.map +1 -1
  376. package/dist/components/ic-input-container2.js +1 -1
  377. package/dist/components/ic-input-container2.js.map +1 -1
  378. package/dist/components/ic-input-label2.js +1 -1
  379. package/dist/components/ic-input-label2.js.map +1 -1
  380. package/dist/components/ic-input-validation2.js +2 -4
  381. package/dist/components/ic-input-validation2.js.map +1 -1
  382. package/dist/components/ic-link2.js +16 -9
  383. package/dist/components/ic-link2.js.map +1 -1
  384. package/dist/components/ic-loading-indicator2.js +27 -7
  385. package/dist/components/ic-loading-indicator2.js.map +1 -1
  386. package/dist/components/ic-menu-group.d.ts +11 -0
  387. package/dist/components/ic-menu-group.js +46 -0
  388. package/dist/components/ic-menu-group.js.map +1 -0
  389. package/dist/components/ic-menu-item.d.ts +11 -0
  390. package/dist/components/ic-menu-item.js +8 -0
  391. package/dist/components/ic-menu-item.js.map +1 -0
  392. package/dist/components/ic-menu-item2.js +167 -0
  393. package/dist/components/ic-menu-item2.js.map +1 -0
  394. package/dist/components/ic-menu2.js +75 -41
  395. package/dist/components/ic-menu2.js.map +1 -1
  396. package/dist/components/ic-navigation-button.js +5 -4
  397. package/dist/components/ic-navigation-button.js.map +1 -1
  398. package/dist/components/ic-navigation-group.js +5 -4
  399. package/dist/components/ic-navigation-group.js.map +1 -1
  400. package/dist/components/ic-navigation-item.js +22 -10
  401. package/dist/components/ic-navigation-item.js.map +1 -1
  402. package/dist/components/ic-navigation-menu2.js +8 -8
  403. package/dist/components/ic-navigation-menu2.js.map +1 -1
  404. package/dist/components/ic-page-header.js +30 -6
  405. package/dist/components/ic-page-header.js.map +1 -1
  406. package/dist/components/ic-popover-menu.d.ts +11 -0
  407. package/dist/components/ic-popover-menu.js +290 -0
  408. package/dist/components/ic-popover-menu.js.map +1 -0
  409. package/dist/components/ic-radio-group.js +14 -5
  410. package/dist/components/ic-radio-group.js.map +1 -1
  411. package/dist/components/ic-radio-option.js +26 -7
  412. package/dist/components/ic-radio-option.js.map +1 -1
  413. package/dist/components/ic-search-bar.js +59 -44
  414. package/dist/components/ic-search-bar.js.map +1 -1
  415. package/dist/components/ic-section-container2.js +1 -1
  416. package/dist/components/ic-section-container2.js.map +1 -1
  417. package/dist/components/ic-select.js +224 -69
  418. package/dist/components/ic-select.js.map +1 -1
  419. package/dist/components/ic-side-navigation.js +23 -11
  420. package/dist/components/ic-side-navigation.js.map +1 -1
  421. package/dist/components/ic-skeleton.js +1 -1
  422. package/dist/components/ic-skeleton.js.map +1 -1
  423. package/dist/components/ic-status-tag.js +6 -4
  424. package/dist/components/ic-status-tag.js.map +1 -1
  425. package/dist/components/ic-step.js +117 -16
  426. package/dist/components/ic-step.js.map +1 -1
  427. package/dist/components/ic-stepper.js +173 -42
  428. package/dist/components/ic-stepper.js.map +1 -1
  429. package/dist/components/ic-switch.js +13 -3
  430. package/dist/components/ic-switch.js.map +1 -1
  431. package/dist/components/ic-tab-context.js +6 -1
  432. package/dist/components/ic-tab-context.js.map +1 -1
  433. package/dist/components/ic-tab-group.js +30 -125
  434. package/dist/components/ic-tab-group.js.map +1 -1
  435. package/dist/components/ic-tab-panel.js +1 -1
  436. package/dist/components/ic-tab-panel.js.map +1 -1
  437. package/dist/components/ic-tab.js +11 -2
  438. package/dist/components/ic-tab.js.map +1 -1
  439. package/dist/components/ic-text-field2.js +6 -6
  440. package/dist/components/ic-text-field2.js.map +1 -1
  441. package/dist/components/ic-theme.js +2 -2
  442. package/dist/components/ic-theme.js.map +1 -1
  443. package/dist/components/ic-toast-region.d.ts +11 -0
  444. package/dist/components/ic-toast-region.js +63 -0
  445. package/dist/components/ic-toast-region.js.map +1 -0
  446. package/dist/components/ic-toast.d.ts +11 -0
  447. package/dist/components/ic-toast.js +214 -0
  448. package/dist/components/ic-toast.js.map +1 -0
  449. package/dist/components/ic-tooltip2.js +13 -5
  450. package/dist/components/ic-tooltip2.js.map +1 -1
  451. package/dist/components/ic-top-navigation.js +22 -11
  452. package/dist/components/ic-top-navigation.js.map +1 -1
  453. package/dist/components/ic-typography2.js.map +1 -1
  454. package/dist/components/index.d.ts +8 -1
  455. package/dist/components/index.js +7 -0
  456. package/dist/components/index.js.map +1 -1
  457. package/dist/components/types.js.map +1 -1
  458. package/dist/core/core.css +3 -3
  459. package/dist/core/core.esm.js +1 -1
  460. package/dist/core/core.esm.js.map +1 -1
  461. package/dist/core/normalize.css +440 -0
  462. package/dist/core/p-037dfe9d.entry.js +2 -0
  463. package/dist/core/p-037dfe9d.entry.js.map +1 -0
  464. package/dist/core/p-05c5c6c4.entry.js +2 -0
  465. package/dist/core/p-05c5c6c4.entry.js.map +1 -0
  466. package/dist/core/p-06321d19.js +2 -0
  467. package/dist/core/p-0a463a65.entry.js +2 -0
  468. package/dist/core/p-0a463a65.entry.js.map +1 -0
  469. package/dist/core/p-0faf328a.entry.js +2 -0
  470. package/dist/core/p-0faf328a.entry.js.map +1 -0
  471. package/dist/core/p-102281fd.entry.js +2 -0
  472. package/dist/core/p-102281fd.entry.js.map +1 -0
  473. package/dist/core/p-1549adc1.entry.js +2 -0
  474. package/dist/core/p-1549adc1.entry.js.map +1 -0
  475. package/dist/core/p-25b208ae.entry.js +2 -0
  476. package/dist/core/p-25b208ae.entry.js.map +1 -0
  477. package/dist/core/{p-c4d3c18c.entry.js → p-26c9e522.entry.js} +2 -2
  478. package/dist/core/p-26c9e522.entry.js.map +1 -0
  479. package/dist/core/p-31a595c1.entry.js +2 -0
  480. package/dist/core/p-31a595c1.entry.js.map +1 -0
  481. package/dist/core/p-33a0aabe.entry.js +2 -0
  482. package/dist/core/p-33a0aabe.entry.js.map +1 -0
  483. package/dist/core/p-360adc51.entry.js +2 -0
  484. package/dist/core/p-360adc51.entry.js.map +1 -0
  485. package/dist/core/p-3d84a743.entry.js +2 -0
  486. package/dist/core/p-3d84a743.entry.js.map +1 -0
  487. package/dist/core/p-3dea2867.js +2 -0
  488. package/dist/core/p-3dea2867.js.map +1 -0
  489. package/dist/core/p-3fd4f8eb.entry.js +2 -0
  490. package/dist/core/p-3fd4f8eb.entry.js.map +1 -0
  491. package/dist/core/p-48a5c2a7.entry.js +2 -0
  492. package/dist/core/p-48a5c2a7.entry.js.map +1 -0
  493. package/dist/core/p-4d8392fe.entry.js +2 -0
  494. package/dist/core/p-4d8392fe.entry.js.map +1 -0
  495. package/dist/core/p-4ee03271.entry.js +2 -0
  496. package/dist/core/p-4ee03271.entry.js.map +1 -0
  497. package/dist/core/{p-f9370be6.js → p-5450cebf.js} +3 -3
  498. package/dist/core/p-5450cebf.js.map +1 -0
  499. package/dist/core/p-58ff516f.entry.js +2 -0
  500. package/dist/core/p-58ff516f.entry.js.map +1 -0
  501. package/dist/core/p-62b3516e.entry.js +2 -0
  502. package/dist/core/p-62b3516e.entry.js.map +1 -0
  503. package/dist/core/p-6f57b13c.js.map +1 -1
  504. package/dist/core/p-73fddc63.entry.js +2 -0
  505. package/dist/core/p-73fddc63.entry.js.map +1 -0
  506. package/dist/core/p-741b4ea3.entry.js +2 -0
  507. package/dist/core/p-741b4ea3.entry.js.map +1 -0
  508. package/dist/core/p-7dcb9104.entry.js +2 -0
  509. package/dist/core/p-7dcb9104.entry.js.map +1 -0
  510. package/dist/core/{p-e93e9aa3.entry.js → p-7fd50355.entry.js} +2 -2
  511. package/dist/core/p-7fd50355.entry.js.map +1 -0
  512. package/dist/core/p-81652a98.entry.js +2 -0
  513. package/dist/core/p-81652a98.entry.js.map +1 -0
  514. package/dist/core/p-87c7ba3b.entry.js +2 -0
  515. package/dist/core/p-87c7ba3b.entry.js.map +1 -0
  516. package/dist/core/p-897e967a.entry.js +2 -0
  517. package/dist/core/p-897e967a.entry.js.map +1 -0
  518. package/dist/core/p-8c7f4343.js +2 -0
  519. package/dist/core/p-8c9cc4d5.entry.js +2 -0
  520. package/dist/core/p-8c9cc4d5.entry.js.map +1 -0
  521. package/dist/core/p-8d4f7027.js +2 -0
  522. package/dist/core/{p-0118400b.entry.js → p-8ffa00c9.entry.js} +2 -2
  523. package/dist/core/p-8ffa00c9.entry.js.map +1 -0
  524. package/dist/core/p-a2c7dc6c.entry.js +2 -0
  525. package/dist/core/p-a2c7dc6c.entry.js.map +1 -0
  526. package/dist/core/p-a3742d40.entry.js +2 -0
  527. package/dist/core/p-a3742d40.entry.js.map +1 -0
  528. package/dist/core/p-a44a0500.entry.js +2 -0
  529. package/dist/core/p-a44a0500.entry.js.map +1 -0
  530. package/dist/core/p-a8e969ea.entry.js +2 -0
  531. package/dist/core/p-a8e969ea.entry.js.map +1 -0
  532. package/dist/core/p-ac6ecdb6.entry.js +2 -0
  533. package/dist/core/p-ac6ecdb6.entry.js.map +1 -0
  534. package/dist/core/p-acb08809.entry.js +2 -0
  535. package/dist/core/p-acb08809.entry.js.map +1 -0
  536. package/dist/core/{p-6be5e06b.entry.js → p-ad2477d8.entry.js} +2 -2
  537. package/dist/core/p-ad2477d8.entry.js.map +1 -0
  538. package/dist/core/p-affb42c7.entry.js +2 -0
  539. package/dist/core/p-affb42c7.entry.js.map +1 -0
  540. package/dist/core/p-b7fc1f35.entry.js +2 -0
  541. package/dist/core/p-b7fc1f35.entry.js.map +1 -0
  542. package/dist/core/p-b8b960a5.entry.js +2 -0
  543. package/dist/core/p-b8b960a5.entry.js.map +1 -0
  544. package/dist/core/p-b921bb19.entry.js +2 -0
  545. package/dist/core/p-b921bb19.entry.js.map +1 -0
  546. package/dist/core/{p-6d0eaaeb.entry.js → p-c9068822.entry.js} +2 -2
  547. package/dist/core/{p-6d0eaaeb.entry.js.map → p-c9068822.entry.js.map} +1 -1
  548. package/dist/core/p-c996810e.entry.js +2 -0
  549. package/dist/core/p-c996810e.entry.js.map +1 -0
  550. package/dist/core/p-cc62d065.entry.js +2 -0
  551. package/dist/core/p-cc62d065.entry.js.map +1 -0
  552. package/dist/core/{p-02799e26.entry.js → p-d2508752.entry.js} +2 -2
  553. package/dist/core/{p-02799e26.entry.js.map → p-d2508752.entry.js.map} +1 -1
  554. package/dist/core/p-d28d7f24.entry.js +2 -0
  555. package/dist/core/p-d28d7f24.entry.js.map +1 -0
  556. package/dist/core/{p-07cd789d.entry.js → p-dbfdfa8a.entry.js} +2 -2
  557. package/dist/core/p-dbfdfa8a.entry.js.map +1 -0
  558. package/dist/core/{p-10da19d2.entry.js → p-dd71a986.entry.js} +2 -2
  559. package/dist/core/p-dd71a986.entry.js.map +1 -0
  560. package/dist/core/p-e4547265.entry.js +2 -0
  561. package/dist/core/p-e4547265.entry.js.map +1 -0
  562. package/dist/core/p-ea0c4aca.entry.js +2 -0
  563. package/dist/core/p-ea0c4aca.entry.js.map +1 -0
  564. package/dist/core/{p-cadb531f.entry.js → p-ed6cf9b9.entry.js} +2 -2
  565. package/dist/core/p-ed6cf9b9.entry.js.map +1 -0
  566. package/dist/core/p-f6ddd32f.entry.js +2 -0
  567. package/dist/core/p-f6ddd32f.entry.js.map +1 -0
  568. package/dist/core/p-f777679c.entry.js +2 -0
  569. package/dist/core/p-f777679c.entry.js.map +1 -0
  570. package/dist/esm/OpenInNew-67a881e0.js +5 -0
  571. package/dist/esm/OpenInNew-67a881e0.js.map +1 -0
  572. package/dist/esm/{check-icon-53f1d9e5.js → check-icon-abb210ec.js} +2 -2
  573. package/dist/esm/check-icon-abb210ec.js.map +1 -0
  574. package/dist/esm/chevron-icon-7927f709.js +8 -0
  575. package/dist/esm/chevron-icon-7927f709.js.map +1 -0
  576. package/dist/esm/core.js +2 -2
  577. package/dist/esm/{helpers-3d41833c.js → helpers-b2b47a7d.js} +72 -5
  578. package/dist/esm/helpers-b2b47a7d.js.map +1 -0
  579. package/dist/esm/ic-alert.entry.js +6 -25
  580. package/dist/esm/ic-alert.entry.js.map +1 -1
  581. package/dist/esm/ic-back-to-top.entry.js +24 -12
  582. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  583. package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
  584. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  585. package/dist/esm/ic-breadcrumb.entry.js +15 -6
  586. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  587. package/dist/esm/ic-button_3.entry.js +46 -31
  588. package/dist/esm/ic-button_3.entry.js.map +1 -1
  589. package/dist/esm/ic-card.entry.js +29 -5
  590. package/dist/esm/ic-card.entry.js.map +1 -1
  591. package/dist/esm/ic-checkbox-group.entry.js +4 -4
  592. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  593. package/dist/esm/ic-checkbox.entry.js +16 -4
  594. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  595. package/dist/esm/ic-chip.entry.js +73 -0
  596. package/dist/esm/ic-chip.entry.js.map +1 -0
  597. package/dist/esm/ic-classification-banner.entry.js +3 -3
  598. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  599. package/dist/esm/ic-data-entity.entry.js +2 -2
  600. package/dist/esm/ic-data-entity.entry.js.map +1 -1
  601. package/dist/esm/ic-data-row.entry.js +14 -12
  602. package/dist/esm/ic-data-row.entry.js.map +1 -1
  603. package/dist/esm/ic-divider.entry.js +3 -3
  604. package/dist/esm/ic-divider.entry.js.map +1 -1
  605. package/dist/esm/ic-footer-link-group.entry.js +4 -3
  606. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  607. package/dist/esm/ic-footer-link.entry.js +12 -5
  608. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  609. package/dist/esm/ic-footer.entry.js +5 -5
  610. package/dist/esm/ic-footer.entry.js.map +1 -1
  611. package/dist/esm/ic-hero.entry.js +3 -3
  612. package/dist/esm/ic-hero.entry.js.map +1 -1
  613. package/dist/esm/ic-horizontal-scroll.entry.js +160 -0
  614. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -0
  615. package/dist/esm/ic-input-component-container_3.entry.js +78 -44
  616. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  617. package/dist/esm/ic-input-label_2.entry.js +3 -5
  618. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  619. package/dist/esm/ic-link.entry.js +14 -8
  620. package/dist/esm/ic-link.entry.js.map +1 -1
  621. package/dist/esm/ic-menu-group.entry.js +20 -0
  622. package/dist/esm/ic-menu-group.entry.js.map +1 -0
  623. package/dist/esm/ic-menu-item.entry.js +116 -0
  624. package/dist/esm/ic-menu-item.entry.js.map +1 -0
  625. package/dist/esm/ic-navigation-button.entry.js +5 -4
  626. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  627. package/dist/esm/ic-navigation-group.entry.js +7 -6
  628. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  629. package/dist/esm/ic-navigation-item.entry.js +19 -12
  630. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  631. package/dist/esm/ic-navigation-menu.entry.js +8 -8
  632. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  633. package/dist/esm/ic-page-header.entry.js +5 -5
  634. package/dist/esm/ic-page-header.entry.js.map +1 -1
  635. package/dist/esm/ic-popover-menu.entry.js +232 -0
  636. package/dist/esm/ic-popover-menu.entry.js.map +1 -0
  637. package/dist/esm/ic-radio-group.entry.js +13 -5
  638. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  639. package/dist/esm/ic-radio-option.entry.js +24 -6
  640. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  641. package/dist/esm/ic-search-bar.entry.js +56 -42
  642. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  643. package/dist/esm/ic-section-container.entry.js +2 -2
  644. package/dist/esm/ic-section-container.entry.js.map +1 -1
  645. package/dist/esm/ic-select.entry.js +218 -69
  646. package/dist/esm/ic-select.entry.js.map +1 -1
  647. package/dist/esm/ic-side-navigation.entry.js +26 -14
  648. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  649. package/dist/esm/ic-skeleton.entry.js +2 -2
  650. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  651. package/dist/esm/ic-status-tag.entry.js +6 -5
  652. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  653. package/dist/esm/ic-step.entry.js +103 -15
  654. package/dist/esm/ic-step.entry.js.map +1 -1
  655. package/dist/esm/ic-stepper.entry.js +166 -42
  656. package/dist/esm/ic-stepper.entry.js.map +1 -1
  657. package/dist/esm/ic-switch.entry.js +12 -3
  658. package/dist/esm/ic-switch.entry.js.map +1 -1
  659. package/dist/esm/ic-tab-context.entry.js +7 -2
  660. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  661. package/dist/esm/ic-tab-group.entry.js +9 -118
  662. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  663. package/dist/esm/ic-tab-panel.entry.js +2 -2
  664. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  665. package/dist/esm/ic-tab.entry.js +10 -2
  666. package/dist/esm/ic-tab.entry.js.map +1 -1
  667. package/dist/esm/ic-text-field.entry.js +5 -5
  668. package/dist/esm/ic-text-field.entry.js.map +1 -1
  669. package/dist/esm/ic-theme.entry.js +4 -4
  670. package/dist/esm/ic-theme.entry.js.map +1 -1
  671. package/dist/esm/ic-toast-region.entry.js +44 -0
  672. package/dist/esm/ic-toast-region.entry.js.map +1 -0
  673. package/dist/esm/ic-toast.entry.js +161 -0
  674. package/dist/esm/ic-toast.entry.js.map +1 -0
  675. package/dist/esm/ic-top-navigation.entry.js +15 -10
  676. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  677. package/dist/esm/ic-typography.entry.js +1 -1
  678. package/dist/esm/ic-typography.entry.js.map +1 -1
  679. package/dist/esm/{index-1500de1f.js → index-90721b3c.js} +33 -2
  680. package/dist/esm/index-90721b3c.js.map +1 -0
  681. package/dist/esm/loader.js +2 -2
  682. package/dist/esm/types-dd515332.js.map +1 -1
  683. package/dist/types/components/ic-alert/ic-alert.d.ts +14 -10
  684. package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +1 -0
  685. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +9 -5
  686. package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +2 -2
  687. package/dist/types/components/ic-button/ic-button.d.ts +11 -14
  688. package/dist/types/components/ic-card/ic-card.d.ts +31 -10
  689. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +18 -10
  690. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +9 -9
  691. package/dist/types/components/ic-chip/ic-chip.d.ts +48 -0
  692. package/dist/types/components/ic-chip/ic-chip.test.a11y.d.ts +1 -0
  693. package/dist/types/components/ic-chip/ic-chip.types.d.ts +2 -0
  694. package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +5 -5
  695. package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +2 -2
  696. package/dist/types/components/ic-data-row/ic-data-row.d.ts +3 -3
  697. package/dist/types/components/ic-footer/ic-footer.d.ts +12 -12
  698. package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +20 -0
  699. package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +1 -1
  700. package/dist/types/components/ic-hero/ic-hero.d.ts +9 -9
  701. package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +39 -0
  702. package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.d.ts +1 -0
  703. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +8 -8
  704. package/dist/types/components/ic-input-container/ic-input-container.d.ts +2 -2
  705. package/dist/types/components/ic-input-label/ic-input-label.d.ts +8 -8
  706. package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +5 -5
  707. package/dist/types/components/ic-link/ic-link.d.ts +10 -7
  708. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +7 -3
  709. package/dist/types/components/ic-menu/ic-menu.d.ts +36 -18
  710. package/dist/types/components/ic-menu-group/ic-menu-group.d.ts +8 -0
  711. package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +74 -0
  712. package/dist/types/components/ic-menu-item/ic-menu-item.types.d.ts +1 -0
  713. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +6 -6
  714. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +3 -3
  715. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +28 -8
  716. package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +2 -2
  717. package/dist/types/components/ic-page-header/ic-page-header.d.ts +10 -8
  718. package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +58 -0
  719. package/dist/types/components/ic-popover-menu/ic-popover-menu.test.a11y.d.ts +1 -0
  720. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +15 -11
  721. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +17 -11
  722. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +31 -30
  723. package/dist/types/components/ic-section-container/ic-section-container.d.ts +2 -2
  724. package/dist/types/components/ic-select/ic-select.d.ts +68 -23
  725. package/dist/types/components/ic-side-navigation/ic-side-navigation-test-examples.d.ts +1 -0
  726. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +13 -12
  727. package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +2 -2
  728. package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +5 -1
  729. package/dist/types/components/ic-step/ic-step.d.ts +37 -8
  730. package/dist/types/components/ic-step/ic-step.types.d.ts +2 -0
  731. package/dist/types/components/ic-stepper/ic-stepper-test-examples.d.ts +4 -0
  732. package/dist/types/components/ic-stepper/ic-stepper.d.ts +23 -6
  733. package/dist/types/components/ic-switch/ic-switch.d.ts +11 -7
  734. package/dist/types/components/ic-tab/ic-tab.d.ts +9 -5
  735. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +8 -4
  736. package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +5 -33
  737. package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +2 -2
  738. package/dist/types/components/ic-text-field/ic-text-field.d.ts +31 -31
  739. package/dist/types/components/ic-theme/ic-theme.d.ts +3 -3
  740. package/dist/types/components/ic-toast/ic-toast.d.ts +66 -0
  741. package/dist/types/components/ic-toast/ic-toast.test.a11y.d.ts +1 -0
  742. package/dist/types/components/ic-toast/ic-toast.types.d.ts +1 -0
  743. package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +12 -0
  744. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +4 -0
  745. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +7 -6
  746. package/dist/types/components/ic-typography/ic-typography.d.ts +1 -1
  747. package/dist/types/components.d.ts +1103 -559
  748. package/dist/types/interface.d.ts +0 -1
  749. package/dist/types/testspec.setup.d.ts +1 -0
  750. package/dist/types/utils/constants.d.ts +22 -0
  751. package/dist/types/utils/helpers.d.ts +2 -0
  752. package/dist/types/utils/types.d.ts +3 -0
  753. package/hydrate/index.js +2030 -602
  754. package/package.json +5 -5
  755. package/dist/cjs/check-icon-999d9877.js.map +0 -1
  756. package/dist/cjs/chevron-icon-d175fe66.js +0 -10
  757. package/dist/cjs/chevron-icon-d175fe66.js.map +0 -1
  758. package/dist/cjs/error-icon-99504103.js +0 -18
  759. package/dist/cjs/error-icon-99504103.js.map +0 -1
  760. package/dist/cjs/helpers-8bc3b6d2.js.map +0 -1
  761. package/dist/cjs/index-3ef30d9d.js.map +0 -1
  762. package/dist/cjs/success-icon-887b2097.js +0 -11
  763. package/dist/cjs/success-icon-887b2097.js.map +0 -1
  764. package/dist/collection/components/ic-alert/ic-alert.types.js +0 -2
  765. package/dist/collection/components/ic-alert/ic-alert.types.js.map +0 -1
  766. package/dist/collection/components/ic-tab-group/assets/left-arrow.svg +0 -3
  767. package/dist/collection/components/ic-tab-group/assets/right-arrow.svg +0 -3
  768. package/dist/components/error-icon.js +0 -15
  769. package/dist/components/error-icon.js.map +0 -1
  770. package/dist/components/success-icon.js +0 -9
  771. package/dist/components/success-icon.js.map +0 -1
  772. package/dist/core/p-0118400b.entry.js.map +0 -1
  773. package/dist/core/p-07cd789d.entry.js.map +0 -1
  774. package/dist/core/p-0b125f26.entry.js +0 -2
  775. package/dist/core/p-0b125f26.entry.js.map +0 -1
  776. package/dist/core/p-10da19d2.entry.js.map +0 -1
  777. package/dist/core/p-1337db5e.entry.js +0 -2
  778. package/dist/core/p-1337db5e.entry.js.map +0 -1
  779. package/dist/core/p-1721bcf3.entry.js +0 -2
  780. package/dist/core/p-1721bcf3.entry.js.map +0 -1
  781. package/dist/core/p-1e7b4310.js +0 -2
  782. package/dist/core/p-23831891.js +0 -2
  783. package/dist/core/p-23831891.js.map +0 -1
  784. package/dist/core/p-272c7abd.entry.js +0 -2
  785. package/dist/core/p-272c7abd.entry.js.map +0 -1
  786. package/dist/core/p-2f114521.entry.js +0 -2
  787. package/dist/core/p-2f114521.entry.js.map +0 -1
  788. package/dist/core/p-31a8595f.entry.js +0 -2
  789. package/dist/core/p-31a8595f.entry.js.map +0 -1
  790. package/dist/core/p-33a45ace.entry.js +0 -2
  791. package/dist/core/p-33a45ace.entry.js.map +0 -1
  792. package/dist/core/p-347ec49e.entry.js +0 -2
  793. package/dist/core/p-347ec49e.entry.js.map +0 -1
  794. package/dist/core/p-39ae284e.entry.js +0 -2
  795. package/dist/core/p-39ae284e.entry.js.map +0 -1
  796. package/dist/core/p-558552f8.entry.js +0 -2
  797. package/dist/core/p-558552f8.entry.js.map +0 -1
  798. package/dist/core/p-5e261268.entry.js +0 -2
  799. package/dist/core/p-5e261268.entry.js.map +0 -1
  800. package/dist/core/p-60ffb73e.entry.js +0 -2
  801. package/dist/core/p-60ffb73e.entry.js.map +0 -1
  802. package/dist/core/p-69650186.entry.js +0 -2
  803. package/dist/core/p-69650186.entry.js.map +0 -1
  804. package/dist/core/p-6b34d98f.entry.js +0 -2
  805. package/dist/core/p-6b34d98f.entry.js.map +0 -1
  806. package/dist/core/p-6be5e06b.entry.js.map +0 -1
  807. package/dist/core/p-6f6bd657.entry.js +0 -2
  808. package/dist/core/p-6f6bd657.entry.js.map +0 -1
  809. package/dist/core/p-7093d214.entry.js +0 -2
  810. package/dist/core/p-7093d214.entry.js.map +0 -1
  811. package/dist/core/p-7577c6a3.entry.js +0 -2
  812. package/dist/core/p-7577c6a3.entry.js.map +0 -1
  813. package/dist/core/p-7b11e1dc.entry.js +0 -2
  814. package/dist/core/p-7b11e1dc.entry.js.map +0 -1
  815. package/dist/core/p-7b39977f.entry.js +0 -2
  816. package/dist/core/p-7b39977f.entry.js.map +0 -1
  817. package/dist/core/p-7f632414.entry.js +0 -2
  818. package/dist/core/p-7f632414.entry.js.map +0 -1
  819. package/dist/core/p-898607d0.entry.js +0 -2
  820. package/dist/core/p-898607d0.entry.js.map +0 -1
  821. package/dist/core/p-8ddeb574.entry.js +0 -2
  822. package/dist/core/p-8ddeb574.entry.js.map +0 -1
  823. package/dist/core/p-9cd04875.entry.js +0 -2
  824. package/dist/core/p-9cd04875.entry.js.map +0 -1
  825. package/dist/core/p-ac43322e.entry.js +0 -2
  826. package/dist/core/p-ac43322e.entry.js.map +0 -1
  827. package/dist/core/p-ae6aa67f.js +0 -2
  828. package/dist/core/p-ae81dffa.entry.js +0 -2
  829. package/dist/core/p-ae81dffa.entry.js.map +0 -1
  830. package/dist/core/p-b3dec76d.entry.js +0 -2
  831. package/dist/core/p-b3dec76d.entry.js.map +0 -1
  832. package/dist/core/p-b5a988c0.entry.js +0 -2
  833. package/dist/core/p-b5a988c0.entry.js.map +0 -1
  834. package/dist/core/p-bf5717ca.js +0 -2
  835. package/dist/core/p-c4d3c18c.entry.js.map +0 -1
  836. package/dist/core/p-c6dd4f47.entry.js +0 -2
  837. package/dist/core/p-c6dd4f47.entry.js.map +0 -1
  838. package/dist/core/p-cadb531f.entry.js.map +0 -1
  839. package/dist/core/p-cc83692e.entry.js +0 -2
  840. package/dist/core/p-cc83692e.entry.js.map +0 -1
  841. package/dist/core/p-dd3c3e3c.entry.js +0 -2
  842. package/dist/core/p-dd3c3e3c.entry.js.map +0 -1
  843. package/dist/core/p-df5caf13.entry.js +0 -2
  844. package/dist/core/p-df5caf13.entry.js.map +0 -1
  845. package/dist/core/p-e106305b.entry.js +0 -2
  846. package/dist/core/p-e106305b.entry.js.map +0 -1
  847. package/dist/core/p-e28af65b.js +0 -2
  848. package/dist/core/p-e28af65b.js.map +0 -1
  849. package/dist/core/p-e590f1d2.entry.js +0 -2
  850. package/dist/core/p-e590f1d2.entry.js.map +0 -1
  851. package/dist/core/p-e93e9aa3.entry.js.map +0 -1
  852. package/dist/core/p-ecfb2e6b.entry.js +0 -2
  853. package/dist/core/p-ecfb2e6b.entry.js.map +0 -1
  854. package/dist/core/p-f9370be6.js.map +0 -1
  855. package/dist/esm/check-icon-53f1d9e5.js.map +0 -1
  856. package/dist/esm/chevron-icon-5b38c60a.js +0 -8
  857. package/dist/esm/chevron-icon-5b38c60a.js.map +0 -1
  858. package/dist/esm/error-icon-6046a380.js +0 -15
  859. package/dist/esm/error-icon-6046a380.js.map +0 -1
  860. package/dist/esm/helpers-3d41833c.js.map +0 -1
  861. package/dist/esm/index-1500de1f.js.map +0 -1
  862. package/dist/esm/success-icon-2f71b115.js +0 -9
  863. package/dist/esm/success-icon-2f71b115.js.map +0 -1
  864. package/dist/types/components/ic-alert/ic-alert.types.d.ts +0 -1
  865. /package/dist/collection/{components/ic-link/assets → assets}/OpenInNew.svg +0 -0
  866. /package/dist/core/{p-1e7b4310.js.map → p-06321d19.js.map} +0 -0
  867. /package/dist/core/{p-ae6aa67f.js.map → p-8c7f4343.js.map} +0 -0
  868. /package/dist/core/{p-bf5717ca.js.map → p-8d4f7027.js.map} +0 -0
@@ -1,69 +1,193 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { checkResizeObserver } from "../../utils/helpers";
3
- export class IcStepper {
2
+ import { checkResizeObserver, pxToRem } from "../../utils/helpers";
3
+ export class Stepper {
4
4
  constructor() {
5
5
  this.resizeObserver = null;
6
- /**
7
- * Get all steps currently within this stepper
8
- */
6
+ // Get all steps currently within this stepper
9
7
  this.getChildren = () => {
10
8
  this.steps = Array.from(this.el.querySelectorAll("ic-step"));
9
+ this.stepsWithStepTitles = Array.from(this.el.querySelectorAll("ic-step[step-title]"));
10
+ };
11
+ // Inform the user that stepTitles are required on all steps in a compact stepper
12
+ this.checkStepTitles = () => {
13
+ if (this.stepsWithStepTitles.length < this.steps.length &&
14
+ this.variantOverride &&
15
+ this.variant === "compact") {
16
+ this.noOfResizes = this.noOfResizes + 1;
17
+ if (this.noOfResizes === 1) {
18
+ console.error(`The prop 'step-title' (web components) / 'stepTitle' (react) is required for all steps of the Stepper component (compact variant)`);
19
+ }
20
+ }
21
+ };
22
+ this.setStepTypes = () => {
23
+ this.getChildren();
24
+ this.stepTypes = [];
25
+ for (let i = 0; i < this.steps.length; i++) {
26
+ this.stepTypes.push("active");
27
+ }
28
+ };
29
+ this.setStepperWidth = () => {
30
+ this.alignedFullWidth =
31
+ this.variant === "default" && this.aligned === "full-width";
32
+ const lastStep = this.steps[this.steps.length - 1];
33
+ lastStep.style.maxWidth = "none";
34
+ if (this.alignedFullWidth) {
35
+ this.stepperWidth = this.el.offsetWidth;
36
+ lastStep.style.maxWidth = pxToRem(`${this.stepperWidth / this.steps.length}px`);
37
+ this.lastStepWidth = lastStep.offsetWidth;
38
+ }
11
39
  };
12
40
  this.initialiseStepStates = () => {
13
41
  this.steps.forEach((step, index) => {
42
+ // Set variant
43
+ step.variant = this.variant;
14
44
  // Assign stepNum to each step
15
45
  step.stepNum = index + 1;
16
- //Assign lastStep to final step
46
+ // Assign lastStep to final step
17
47
  step.lastStep = index === this.steps.length - 1;
18
- if (step.lastStep) {
19
- step.classList.add("last-step");
20
- if (this.el.classList.contains("aligned-full-width")) {
21
- step.style.maxWidth = `${this.lastStepWidth}px`;
48
+ step.lastStepNum = this.steps.length;
49
+ if (step.stepType !== "current") {
50
+ step.current = false;
51
+ this.stepTypes[index] = step.stepType;
52
+ }
53
+ else {
54
+ step.current = true;
55
+ }
56
+ const stepTitleArea = step.shadowRoot &&
57
+ step.shadowRoot.querySelector(".step > .step-title-area");
58
+ if (this.stepsWithStepTitles.length == 0 && this.variantOverride) {
59
+ if (this.variant === "compact") {
60
+ this.autoSetStepTitles = true;
61
+ if (this.autoSetStepTitles) {
62
+ step.stepTitle = "Step " + step.stepNum;
63
+ stepTitleArea &&
64
+ stepTitleArea
65
+ .querySelector(".step-title")
66
+ .setAttribute("aria-hidden", "true");
67
+ }
68
+ }
69
+ if (this.variant === "default") {
70
+ this.autoSetStepTitles = false;
71
+ if (!this.autoSetStepTitles) {
72
+ step.stepTitle = undefined;
73
+ stepTitleArea &&
74
+ stepTitleArea
75
+ .querySelector(".step-title")
76
+ .removeAttribute("aria-hidden");
77
+ }
78
+ }
79
+ }
80
+ if (this.variant === "compact") {
81
+ if (step.current === true || step.stepType === "current") {
82
+ step.classList.remove("hide");
83
+ step.classList.add("show");
22
84
  }
23
- if (this.el.classList.contains("aligned-left")) {
24
- step.style.maxWidth = `${this.connectorWidth + 48}px`;
85
+ else if (step.classList.contains("show")) {
86
+ step.classList.remove("show");
87
+ step.classList.add("hide");
88
+ }
89
+ if (!step.lastStep) {
90
+ step.nextStepTitle = this.steps[index + 1].stepTitle;
91
+ step.progress = (step.stepNum / this.steps.length) * 100;
92
+ }
93
+ else if (step.lastStep && this.stepTypes[index] !== "completed") {
94
+ step.progress = 95;
95
+ }
96
+ else {
97
+ step.progress = 100;
98
+ }
99
+ if (this.hideStepInfo && stepTitleArea !== null) {
100
+ stepTitleArea.classList.remove("visually-hidden");
101
+ }
102
+ step.compactStepStyling = this.stepTypes[index];
103
+ }
104
+ if (this.variant === "default") {
105
+ if (!step.lastStep) {
106
+ if (this.alignedFullWidth) {
107
+ step.style.width = pxToRem(`${(this.stepperWidth - this.lastStepWidth) /
108
+ (this.steps.length - 1)}px`);
109
+ step.style.minWidth = pxToRem("148px");
110
+ }
111
+ }
112
+ else if (step.lastStep) {
113
+ step.classList.add("last-step");
114
+ if (this.alignedFullWidth) {
115
+ step.style.maxWidth = `${this.lastStepWidth}px`;
116
+ }
117
+ else {
118
+ step.style.maxWidth =
119
+ this.connectorWidth > 100
120
+ ? pxToRem(`${this.connectorWidth + 48}px`)
121
+ : pxToRem("148px");
122
+ }
123
+ }
124
+ if (this.aligned === "left") {
125
+ step.style.width =
126
+ this.connectorWidth > 100
127
+ ? pxToRem(`${this.connectorWidth + 48}px`)
128
+ : pxToRem("148px");
129
+ const stepConnect = step.shadowRoot.querySelector(".step > .step-top > .step-connect");
130
+ if (stepConnect) {
131
+ stepConnect.style.width =
132
+ this.connectorWidth > 100
133
+ ? pxToRem(`${this.connectorWidth}px`)
134
+ : pxToRem("100px");
135
+ }
136
+ }
137
+ if (this.hideStepInfo && stepTitleArea !== null) {
138
+ stepTitleArea.classList.add("visually-hidden");
25
139
  }
26
140
  }
27
141
  });
28
- for (let i = 0; i < this.steps.length - 1; i++) {
29
- if (this.el.classList.contains("aligned-full-width")) {
30
- this.steps[i].style.width = `${(this.stepperWidth - this.lastStepWidth) / (this.steps.length - 1)}px`;
31
- this.steps[i].style.minWidth = "148px";
142
+ };
143
+ this.overrideVariant = () => {
144
+ let minDefaultStepperWidth = 148 * this.steps.length;
145
+ if (this.aligned === "left" && this.connectorWidth > 100) {
146
+ minDefaultStepperWidth = (this.connectorWidth + 48) * this.steps.length;
147
+ }
148
+ if (this.variantOverride) {
149
+ if (this.el.clientWidth < minDefaultStepperWidth) {
150
+ this.variant = "compact";
151
+ this.getChildren();
32
152
  }
33
- if (this.el.classList.contains("aligned-left")) {
34
- this.steps[i].style.width = `${this.connectorWidth + 48}px`;
35
- const stepConnect = this.steps[i].shadowRoot.querySelector("div > .step-top > .step-connect");
36
- stepConnect.style.width =
37
- this.connectorWidth > 100 ? `${this.connectorWidth}px` : "100px";
153
+ else {
154
+ this.variant = "default";
155
+ this.getChildren();
38
156
  }
39
157
  }
40
158
  };
159
+ this.resizeObserverCallback = () => {
160
+ this.getChildren();
161
+ this.checkStepTitles();
162
+ this.overrideVariant();
163
+ this.setStepperWidth();
164
+ this.initialiseStepStates();
165
+ };
41
166
  this.runResizeObserver = () => {
42
167
  this.resizeObserver = new ResizeObserver(() => {
43
- this.setStepperWidth();
44
- this.getChildren();
45
- this.initialiseStepStates();
168
+ this.resizeObserverCallback();
46
169
  });
47
170
  this.resizeObserver.observe(this.el);
48
171
  };
49
- this.setStepperWidth = () => {
50
- this.stepperWidth = this.el.offsetWidth;
51
- const allSteps = document.querySelectorAll("ic-step");
52
- const lastStep = allSteps[allSteps.length - 1];
53
- lastStep.style.maxWidth = "none";
54
- if (lastStep.classList.contains("aligned-full-width")) {
55
- lastStep.style.maxWidth = `${this.stepperWidth / allSteps.length}px`;
56
- }
57
- this.lastStepWidth = lastStep.offsetWidth;
58
- this.getChildren();
59
- this.initialiseStepStates();
60
- };
61
172
  this.aligned = "full-width";
173
+ this.variant = "default";
62
174
  this.connectorWidth = 100;
175
+ this.hideStepInfo = false;
63
176
  this.stepperWidth = document
64
177
  .querySelector("ic-stepper")
65
178
  .getBoundingClientRect().width;
66
179
  this.lastStepWidth = 0;
180
+ this.stepTypes = [];
181
+ this.alignedFullWidth = true;
182
+ this.autoSetStepTitles = true;
183
+ this.variantOverride = this.variant !== "compact";
184
+ this.noOfResizes = 0;
185
+ }
186
+ componentWillLoad() {
187
+ this.setStepTypes();
188
+ if (this.variant === "compact") {
189
+ this.variantOverride = false;
190
+ }
67
191
  }
68
192
  componentDidLoad() {
69
193
  checkResizeObserver(this.runResizeObserver);
@@ -75,8 +199,8 @@ export class IcStepper {
75
199
  }
76
200
  render() {
77
201
  return (h(Host, { class: {
78
- ["aligned-left"]: this.aligned === "left",
79
- ["aligned-full-width"]: this.aligned === "full-width",
202
+ [`${this.variant}`]: true,
203
+ ["aligned-left"]: this.variant === "default" && this.aligned === "left",
80
204
  } }, h("ul", { class: "step-item-list" }, h("slot", null))));
81
205
  }
82
206
  static get is() { return "ic-stepper"; }
@@ -110,12 +234,35 @@ export class IcStepper {
110
234
  "optional": true,
111
235
  "docs": {
112
236
  "tags": [],
113
- "text": "How the stepper should be aligned in its container."
237
+ "text": "The alignment of the default stepper within its container."
114
238
  },
115
239
  "attribute": "aligned",
116
240
  "reflect": false,
117
241
  "defaultValue": "\"full-width\""
118
242
  },
243
+ "variant": {
244
+ "type": "string",
245
+ "mutable": true,
246
+ "complexType": {
247
+ "original": "IcStepVariants",
248
+ "resolved": "\"compact\" | \"default\"",
249
+ "references": {
250
+ "IcStepVariants": {
251
+ "location": "import",
252
+ "path": "../ic-step/ic-step.types"
253
+ }
254
+ }
255
+ },
256
+ "required": false,
257
+ "optional": true,
258
+ "docs": {
259
+ "tags": [],
260
+ "text": "The variant of the stepper."
261
+ },
262
+ "attribute": "variant",
263
+ "reflect": false,
264
+ "defaultValue": "\"default\""
265
+ },
119
266
  "connectorWidth": {
120
267
  "type": "number",
121
268
  "mutable": false,
@@ -133,13 +280,36 @@ export class IcStepper {
133
280
  "attribute": "connector-width",
134
281
  "reflect": false,
135
282
  "defaultValue": "100"
283
+ },
284
+ "hideStepInfo": {
285
+ "type": "boolean",
286
+ "mutable": false,
287
+ "complexType": {
288
+ "original": "boolean",
289
+ "resolved": "boolean",
290
+ "references": {}
291
+ },
292
+ "required": false,
293
+ "optional": true,
294
+ "docs": {
295
+ "tags": [],
296
+ "text": "If `true`, the information about each step, i.e. step title, step subtitle and step status, will be hidden on all default steps. The information about each step will still be visible in the compact variant of the stepper."
297
+ },
298
+ "attribute": "hide-step-info",
299
+ "reflect": false,
300
+ "defaultValue": "false"
136
301
  }
137
302
  };
138
303
  }
139
304
  static get states() {
140
305
  return {
141
306
  "stepperWidth": {},
142
- "lastStepWidth": {}
307
+ "lastStepWidth": {},
308
+ "stepTypes": {},
309
+ "alignedFullWidth": {},
310
+ "autoSetStepTitles": {},
311
+ "variantOverride": {},
312
+ "noOfResizes": {}
143
313
  };
144
314
  }
145
315
  static get elementRef() { return "el"; }
@@ -1 +1 @@
1
- {"version":3,"file":"ic-stepper.js","sourceRoot":"","sources":["../../../src/components/ic-stepper/ic-stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAQ1D,MAAM,OAAO,SAAS;;IAqBZ,mBAAc,GAAmB,IAAI,CAAC;IAE9C;;OAEG;IACK,gBAAW,GAAG,GAAS,EAAE;MAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/D,CAAC,CAAC;IAEM,yBAAoB,GAAG,GAAS,EAAE;MACxC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,E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AAC,aAAa,GAAG,QAAQ,CAAC,WAAW,CAAC;MAC1C,IAAI,CAAC,WAAW,EAAE,CAAC;MACnB,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC,CAAC;mBAjFqC,YAAY;0BAKjB,GAAG;wBAEL,QAAQ;OACrC,aAAa,CAAC,YAAY,CAAC;OAC3B,qBAAqB,EAAE,CAAC,KAAK;yBAEC,CAAC;;EAwElC,gBAAgB;IACd,mBAAmB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;EAC9C,CAAC;EAED,oBAAoB;IAClB,IAAI,IAAI,CAAC,cAAc,KAAK,IAAI,EAAE;MAChC,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;KAClC;EACH,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IACH,KAAK,EAAE;QACL,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,OAAO,KAAK,MAAM;QACzC,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC,OAAO,KAAK,YAAY;OACtD;MAED,UAAI,KAAK,EAAC,gBAAgB;QACxB,eAAa,CACV,CACA,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Prop, h, State } from \"@stencil/core\";\nimport { checkResizeObserver } from \"../../utils/helpers\";\nimport { IcStepperAlignment } from \"./ic-stepper.types\";\n\n@Component({\n tag: \"ic-stepper\",\n styleUrl: \"ic-stepper.css\",\n shadow: true,\n})\nexport class IcStepper {\n @Element() el: HTMLIcStepperElement;\n\n /**\n * How the stepper should be aligned in its container.\n */\n @Prop() aligned?: IcStepperAlignment = \"full-width\";\n\n /**\n * The length of the connnector between each step in pixels. Minimum length is 100px.\n */\n @Prop() connectorWidth?: number = 100;\n\n @State() stepperWidth: number = document\n .querySelector(\"ic-stepper\")\n .getBoundingClientRect().width;\n\n @State() lastStepWidth: number = 0;\n\n private steps: HTMLIcStepElement[];\n\n private resizeObserver: ResizeObserver = null;\n\n /**\n * Get all steps currently within this stepper\n */\n private getChildren = (): void => {\n this.steps = Array.from(this.el.querySelectorAll(\"ic-step\"));\n };\n\n private initialiseStepStates = (): void => {\n this.steps.forEach((step, index) => {\n // Assign stepNum to each step\n step.stepNum = index + 1;\n //Assign lastStep to final step\n step.lastStep = index === this.steps.length - 1;\n\n if (step.lastStep) {\n step.classList.add(\"last-step\");\n if (this.el.classList.contains(\"aligned-full-width\")) {\n step.style.maxWidth = `${this.lastStepWidth}px`;\n }\n if (this.el.classList.contains(\"aligned-left\")) {\n step.style.maxWidth = `${this.connectorWidth + 48}px`;\n }\n }\n });\n\n for (let i = 0; i < this.steps.length - 1; i++) {\n if (this.el.classList.contains(\"aligned-full-width\")) {\n this.steps[i].style.width = `${\n (this.stepperWidth - this.lastStepWidth) / (this.steps.length - 1)\n }px`;\n this.steps[i].style.minWidth = \"148px\";\n }\n\n if (this.el.classList.contains(\"aligned-left\")) {\n this.steps[i].style.width = `${this.connectorWidth + 48}px`;\n const stepConnect = this.steps[i].shadowRoot.querySelector(\n \"div > .step-top > .step-connect\"\n ) as HTMLElement;\n stepConnect.style.width =\n this.connectorWidth > 100 ? `${this.connectorWidth}px` : \"100px\";\n }\n }\n };\n\n private runResizeObserver = () => {\n this.resizeObserver = new ResizeObserver(() => {\n this.setStepperWidth();\n this.getChildren();\n this.initialiseStepStates();\n });\n this.resizeObserver.observe(this.el);\n };\n\n private setStepperWidth = (): void => {\n this.stepperWidth = this.el.offsetWidth;\n const allSteps = document.querySelectorAll(\"ic-step\");\n const lastStep = allSteps[allSteps.length - 1];\n lastStep.style.maxWidth = \"none\";\n if (lastStep.classList.contains(\"aligned-full-width\")) {\n lastStep.style.maxWidth = `${this.stepperWidth / allSteps.length}px`;\n }\n this.lastStepWidth = lastStep.offsetWidth;\n this.getChildren();\n this.initialiseStepStates();\n };\n\n componentDidLoad(): void {\n checkResizeObserver(this.runResizeObserver);\n }\n\n disconnectedCallback(): void {\n if (this.resizeObserver !== null) {\n this.resizeObserver.disconnect();\n }\n }\n\n render() {\n return (\n <Host\n class={{\n [\"aligned-left\"]: this.aligned === \"left\",\n [\"aligned-full-width\"]: this.aligned === \"full-width\",\n }}\n >\n <ul class=\"step-item-list\">\n <slot></slot>\n </ul>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"ic-stepper.js","sourceRoot":"","sources":["../../../src/components/ic-stepper/ic-stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AASnE,MAAM,OAAO,OAAO;;IA2CV,mBAAc,GAAmB,IAAI,CAAC;IAE9C,8CAA8C;IACtC,gBAAW,GAAG,GAAS,EAAE;MAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;MAE7D,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,IAAI,CACnC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAChD,CAAC;IACJ,CAAC,CAAC;IAEF,iFAAiF;IACzE,oBAAe,GAAG,GAAS,EAAE;MACnC,IACE,IAAI,CAAC,mBAAmB,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM;QACnD,IAAI,CAAC,eAAe;QACpB,IAAI,CAAC,OAAO,KAAK,SAAS,EAC1B;QACA,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;QACxC,IAAI,IAAI,CAAC,WAAW,KAAK,CAAC,EAAE;UAC1B,OAAO,CAAC,KAAK,CACX,mIAAmI,CACpI,CAAC;SACH;OACF;IACH,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C,YAAY;mBAKC,SAAS;0BAK3B,GAAG;wBAKJ,KAAK;wBAEN,QAAQ;OACrC,aAAa,CAAC,YAAY,CAAC;OAC3B,qBAAqB,EAAE,CAAC,KAAK;yBAEC,CAAC;qBAEE,EAAE;4BAED,IAAI;6BAEH,IAAI;2BAEL,IAAI,CAAC,OAAO,KAAK,SAAS;uBAE/B,CAAC;;EA8MjC,iBAAiB;IACf,IAAI,CAAC,YAAY,EAAE,CAAC;IACpB,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE;MAC9B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;KAC9B;EACH,CAAC;EAED,gBAAgB;IACd,mBAAmB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;EAC9C,CAAC;EAED,oBAAoB;IAClB,IAAI,IAAI,CAAC,cAAc,KAAK,IAAI,EAAE;MAChC,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;KAClC;EACH,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IACH,KAAK,EAAE;QACL,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI;QACzB,CAAC,cAAc,CAAC,EACd,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM;OACxD;MAED,UAAI,KAAK,EAAC,gBAAgB;QACxB,eAAa,CACV,CACA,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Prop, h, State } from \"@stencil/core\";\nimport { checkResizeObserver, pxToRem } from \"../../utils/helpers\";\nimport { IcStepperAlignment } from \"./ic-stepper.types\";\nimport { IcStepTypes, IcStepVariants } from \"../ic-step/ic-step.types\";\n\n@Component({\n tag: \"ic-stepper\",\n styleUrl: \"ic-stepper.css\",\n shadow: true,\n})\nexport class Stepper {\n @Element() el: HTMLIcStepperElement;\n\n /**\n * The alignment of the default stepper within its container.\n */\n @Prop() aligned?: IcStepperAlignment = \"full-width\";\n\n /**\n * The variant of the stepper.\n */\n @Prop({ mutable: true }) variant?: IcStepVariants = \"default\";\n\n /**\n * The length of the connnector between each step in pixels. Minimum length is 100px.\n */\n @Prop() connectorWidth?: number = 100;\n\n /**\n * If `true`, the information about each step, i.e. step title, step subtitle and step status, will be hidden on all default steps. The information about each step will still be visible in the compact variant of the stepper.\n */\n @Prop() hideStepInfo?: boolean = false;\n\n @State() stepperWidth: number = document\n .querySelector(\"ic-stepper\")\n .getBoundingClientRect().width;\n\n @State() lastStepWidth: number = 0;\n\n @State() stepTypes: IcStepTypes[] = [];\n\n @State() alignedFullWidth: boolean = true;\n\n @State() autoSetStepTitles: boolean = true;\n\n @State() variantOverride?: boolean = this.variant !== \"compact\";\n\n @State() noOfResizes?: number = 0;\n\n private steps: HTMLIcStepElement[];\n\n private stepsWithStepTitles: HTMLIcStepElement[];\n\n private resizeObserver: ResizeObserver = null;\n\n // Get all steps currently within this stepper\n private getChildren = (): void => {\n this.steps = Array.from(this.el.querySelectorAll(\"ic-step\"));\n\n this.stepsWithStepTitles = Array.from(\n this.el.querySelectorAll(\"ic-step[step-title]\")\n );\n };\n\n // Inform the user that stepTitles are required on all steps in a compact stepper\n private checkStepTitles = (): void => {\n if (\n this.stepsWithStepTitles.length < this.steps.length &&\n this.variantOverride &&\n this.variant === \"compact\"\n ) {\n this.noOfResizes = this.noOfResizes + 1;\n if (this.noOfResizes === 1) {\n console.error(\n `The prop 'step-title' (web components) / 'stepTitle' (react) is required for all steps of the Stepper component (compact variant)`\n );\n }\n }\n };\n\n private setStepTypes = (): void => {\n this.getChildren();\n this.stepTypes = [];\n for (let i = 0; i < this.steps.length; i++) {\n this.stepTypes.push(\"active\");\n }\n };\n\n private setStepperWidth = (): void => {\n this.alignedFullWidth =\n this.variant === \"default\" && this.aligned === \"full-width\";\n\n const lastStep = this.steps[this.steps.length - 1];\n lastStep.style.maxWidth = \"none\";\n\n if (this.alignedFullWidth) {\n this.stepperWidth = this.el.offsetWidth;\n lastStep.style.maxWidth = pxToRem(\n `${this.stepperWidth / this.steps.length}px`\n );\n this.lastStepWidth = lastStep.offsetWidth;\n }\n };\n\n private initialiseStepStates = (): void => {\n this.steps.forEach((step, index) => {\n // Set variant\n step.variant = this.variant;\n // Assign stepNum to each step\n step.stepNum = index + 1;\n // Assign lastStep to final step\n step.lastStep = index === this.steps.length - 1;\n step.lastStepNum = this.steps.length;\n\n if (step.stepType !== \"current\") {\n step.current = false;\n this.stepTypes[index] = step.stepType;\n } else {\n step.current = true;\n }\n\n const stepTitleArea =\n step.shadowRoot &&\n step.shadowRoot.querySelector(\".step > .step-title-area\");\n\n if (this.stepsWithStepTitles.length == 0 && this.variantOverride) {\n if (this.variant === \"compact\") {\n this.autoSetStepTitles = true;\n if (this.autoSetStepTitles) {\n step.stepTitle = \"Step \" + step.stepNum;\n stepTitleArea &&\n stepTitleArea\n .querySelector(\".step-title\")\n .setAttribute(\"aria-hidden\", \"true\");\n }\n }\n if (this.variant === \"default\") {\n this.autoSetStepTitles = false;\n if (!this.autoSetStepTitles) {\n step.stepTitle = undefined;\n stepTitleArea &&\n stepTitleArea\n .querySelector(\".step-title\")\n .removeAttribute(\"aria-hidden\");\n }\n }\n }\n\n if (this.variant === \"compact\") {\n if (step.current === true || step.stepType === \"current\") {\n step.classList.remove(\"hide\");\n step.classList.add(\"show\");\n } else if (step.classList.contains(\"show\")) {\n step.classList.remove(\"show\");\n step.classList.add(\"hide\");\n }\n\n if (!step.lastStep) {\n step.nextStepTitle = this.steps[index + 1].stepTitle;\n step.progress = (step.stepNum / this.steps.length) * 100;\n } else if (step.lastStep && this.stepTypes[index] !== \"completed\") {\n step.progress = 95;\n } else {\n step.progress = 100;\n }\n\n if (this.hideStepInfo && stepTitleArea !== null) {\n stepTitleArea.classList.remove(\"visually-hidden\");\n }\n\n step.compactStepStyling = this.stepTypes[index];\n }\n\n if (this.variant === \"default\") {\n if (!step.lastStep) {\n if (this.alignedFullWidth) {\n step.style.width = pxToRem(\n `${\n (this.stepperWidth - this.lastStepWidth) /\n (this.steps.length - 1)\n }px`\n );\n step.style.minWidth = pxToRem(\"148px\");\n }\n } else if (step.lastStep) {\n step.classList.add(\"last-step\");\n if (this.alignedFullWidth) {\n step.style.maxWidth = `${this.lastStepWidth}px`;\n } else {\n step.style.maxWidth =\n this.connectorWidth > 100\n ? pxToRem(`${this.connectorWidth + 48}px`)\n : pxToRem(\"148px\");\n }\n }\n\n if (this.aligned === \"left\") {\n step.style.width =\n this.connectorWidth > 100\n ? pxToRem(`${this.connectorWidth + 48}px`)\n : pxToRem(\"148px\");\n const stepConnect = step.shadowRoot.querySelector(\n \".step > .step-top > .step-connect\"\n ) as HTMLElement;\n\n if (stepConnect) {\n stepConnect.style.width =\n this.connectorWidth > 100\n ? pxToRem(`${this.connectorWidth}px`)\n : pxToRem(\"100px\");\n }\n }\n\n if (this.hideStepInfo && stepTitleArea !== null) {\n stepTitleArea.classList.add(\"visually-hidden\");\n }\n }\n });\n };\n\n private overrideVariant = () => {\n let minDefaultStepperWidth = 148 * this.steps.length;\n\n if (this.aligned === \"left\" && this.connectorWidth > 100) {\n minDefaultStepperWidth = (this.connectorWidth + 48) * this.steps.length;\n }\n\n if (this.variantOverride) {\n if (this.el.clientWidth < minDefaultStepperWidth) {\n this.variant = \"compact\";\n this.getChildren();\n } else {\n this.variant = \"default\";\n this.getChildren();\n }\n }\n };\n\n private resizeObserverCallback = () => {\n this.getChildren();\n this.checkStepTitles();\n this.overrideVariant();\n this.setStepperWidth();\n this.initialiseStepStates();\n };\n\n private runResizeObserver = () => {\n this.resizeObserver = new ResizeObserver(() => {\n this.resizeObserverCallback();\n });\n this.resizeObserver.observe(this.el);\n };\n\n componentWillLoad(): void {\n this.setStepTypes();\n if (this.variant === \"compact\") {\n this.variantOverride = false;\n }\n }\n\n componentDidLoad(): void {\n checkResizeObserver(this.runResizeObserver);\n }\n\n disconnectedCallback(): void {\n if (this.resizeObserver !== null) {\n this.resizeObserver.disconnect();\n }\n }\n\n render() {\n return (\n <Host\n class={{\n [`${this.variant}`]: true,\n [\"aligned-left\"]:\n this.variant === \"default\" && this.aligned === \"left\",\n }}\n >\n <ul class=\"step-item-list\">\n <slot></slot>\n </ul>\n </Host>\n );\n }\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import { fixture } from "@open-wc/testing-helpers";
2
2
  import { axe } from "jest-axe";
3
3
  import { checkShadowElementRendersCorrectly } from "../../utils/testa11y.helpers";
4
- describe("stepper component", () => {
4
+ describe("default variant of stepper component", () => {
5
5
  it("passes accessibility", async () => {
6
6
  const el = await fixture(`<ic-stepper>
7
7
  <ic-step step-title="First"></ic-step>
@@ -21,4 +21,16 @@ describe("stepper component", () => {
21
21
  expect(await axe(el)).toHaveNoViolations();
22
22
  });
23
23
  });
24
+ describe("compact variant of ic-stepper", () => {
25
+ it("passes accessibility", async () => {
26
+ const el = await fixture(`<ic-stepper variant="compact" id="standard-compact-stepper">
27
+ <ic-step step-title="Create" step-type="completed"></ic-step>
28
+ <ic-step step-title="Read" step-status="complete" current></ic-step>
29
+ <ic-step step-title="Update" step-status="not required"></ic-step>
30
+ <ic-step step-title="Delete" step-status="not required"></ic-step>
31
+ </ic-stepper>`);
32
+ checkShadowElementRendersCorrectly(el);
33
+ expect(await axe(el)).toHaveNoViolations();
34
+ });
35
+ });
24
36
  //# sourceMappingURL=ic-stepper.test.a11y.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ic-stepper.test.a11y.js","sourceRoot":"","sources":["../../../src/components/ic-stepper/ic-stepper.test.a11y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAElF,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;EACjC,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;IACpC,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC;;;;;;;;;;;;;gBAab,CAAC,CAAC;IACd,kCAAkC,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;EAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture } from \"@open-wc/testing-helpers\";\nimport { axe } from \"jest-axe\";\nimport { checkShadowElementRendersCorrectly } from \"../../utils/testa11y.helpers\";\n\ndescribe(\"stepper component\", () => {\n it(\"passes accessibility\", async () => {\n const el = await fixture(`<ic-stepper>\n <ic-step step-title=\"First\"></ic-step>\n <ic-step\n step-title=\"Second With a Very Long Title\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"current\"\n ></ic-step>\n <ic-step step-title=\"Third\" step-type=\"disabled\"></ic-step>\n <ic-step\n step-title=\"Fourth\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"completed\"\n ></ic-step>\n </ic-stepper>`);\n checkShadowElementRendersCorrectly(el);\n expect(await axe(el)).toHaveNoViolations();\n });\n});\n"]}
1
+ {"version":3,"file":"ic-stepper.test.a11y.js","sourceRoot":"","sources":["../../../src/components/ic-stepper/ic-stepper.test.a11y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAElF,QAAQ,CAAC,sCAAsC,EAAE,GAAG,EAAE;EACpD,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;IACpC,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC;;;;;;;;;;;;;gBAab,CAAC,CAAC;IACd,kCAAkC,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;EAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;EAC7C,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;IACpC,MAAM,EAAE,GACN,MAAM,OAAO,CAAC;;;;;oBAKA,CAAC,CAAC;IAClB,kCAAkC,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;EAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture } from \"@open-wc/testing-helpers\";\nimport { axe } from \"jest-axe\";\nimport { checkShadowElementRendersCorrectly } from \"../../utils/testa11y.helpers\";\n\ndescribe(\"default variant of stepper component\", () => {\n it(\"passes accessibility\", async () => {\n const el = await fixture(`<ic-stepper>\n <ic-step step-title=\"First\"></ic-step>\n <ic-step\n step-title=\"Second With a Very Long Title\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"current\"\n ></ic-step>\n <ic-step step-title=\"Third\" step-type=\"disabled\"></ic-step>\n <ic-step\n step-title=\"Fourth\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"completed\"\n ></ic-step>\n </ic-stepper>`);\n checkShadowElementRendersCorrectly(el);\n expect(await axe(el)).toHaveNoViolations();\n });\n});\n\ndescribe(\"compact variant of ic-stepper\", () => {\n it(\"passes accessibility\", async () => {\n const el =\n await fixture(`<ic-stepper variant=\"compact\" id=\"standard-compact-stepper\">\n <ic-step step-title=\"Create\" step-type=\"completed\"></ic-step>\n <ic-step step-title=\"Read\" step-status=\"complete\" current></ic-step>\n <ic-step step-title=\"Update\" step-status=\"not required\"></ic-step>\n <ic-step step-title=\"Delete\" step-status=\"not required\"></ic-step>\n </ic-stepper>`);\n checkShadowElementRendersCorrectly(el);\n expect(await axe(el)).toHaveNoViolations();\n });\n});\n"]}
@@ -466,19 +466,19 @@ input {
466
466
  }
467
467
 
468
468
  .ic-switch-label-small {
469
- margin-bottom: 10px;
469
+ margin-bottom: 0.625rem;
470
470
  }
471
471
 
472
472
  .ic-switch-toggle {
473
473
  display: flex;
474
474
  align-items: center;
475
475
  justify-content: space-around;
476
- width: 64px;
476
+ width: 4rem;
477
477
  height: var(--ic-space-xl);
478
478
  position: relative;
479
479
  border-radius: 100vw;
480
480
  background-color: var(--ic-architectural-200);
481
- border: 1px solid var(--ic-architectural-700);
481
+ border: 0.063rem solid var(--ic-architectural-700);
482
482
  box-sizing: border-box;
483
483
  transition: var(--ic-transition-duration-fast);
484
484
  }
@@ -493,13 +493,13 @@ input {
493
493
 
494
494
  .ic-switch-toggle::before {
495
495
  content: "";
496
- width: 21.33px;
497
- height: 21.33px;
496
+ width: 1.333rem;
497
+ height: 1.333rem;
498
498
  border-radius: 50%;
499
499
  position: absolute;
500
500
  z-index: 2;
501
501
  top: 50%;
502
- left: 5.33px;
502
+ left: 0.333rem;
503
503
  transform: translate(0, -50%);
504
504
  background-color: var(--ic-architectural-700);
505
505
  transition: var(--ic-transition-duration-slow);
@@ -508,8 +508,8 @@ input {
508
508
  .ic-switch-icon {
509
509
  display: inline-block;
510
510
  vertical-align: middle;
511
- width: 10px;
512
- height: 10px;
511
+ width: 0.625rem;
512
+ height: 0.625rem;
513
513
  }
514
514
 
515
515
  .ic-switch-icon-circle,
@@ -542,26 +542,26 @@ input {
542
542
  }
543
543
 
544
544
  .ic-switch-input:not([disabled]) + .ic-switch-toggle:hover::before {
545
- box-shadow: 0 0 0 12px var(--ic-action-dark-bg-hover);
545
+ box-shadow: 0 0 0 0.75rem var(--ic-action-dark-bg-hover);
546
546
  }
547
547
 
548
548
  .ic-switch-input:not([disabled]) + .ic-switch-toggle:active::before {
549
- box-shadow: 0 0 0 12px var(--ic-action-dark-bg-active);
549
+ box-shadow: 0 0 0 0.75rem var(--ic-action-dark-bg-active);
550
550
  }
551
551
 
552
552
  .ic-switch-input:not([disabled]):checked + .ic-switch-toggle:hover::before {
553
- box-shadow: 0 0 0 12px var(--ic-action-default-bg-hover);
553
+ box-shadow: 0 0 0 0.75rem var(--ic-action-default-bg-hover);
554
554
  }
555
555
 
556
556
  .ic-switch-input:not([disabled]):checked + .ic-switch-toggle:active::before {
557
- box-shadow: 0 0 0 12px var(--ic-action-default-bg-active);
557
+ box-shadow: 0 0 0 0.75rem var(--ic-action-default-bg-active);
558
558
  }
559
559
 
560
560
  .ic-switch-input:focus:not([disabled]) + .ic-switch-toggle,
561
561
  .ic-switch-input:focus-visible:not([disabled]) + .ic-switch-toggle {
562
- box-shadow: 0 0 0 1px var(--ic-architectural-white),
563
- 0 0 0 3px var(--ic-action-default),
564
- 0 0 0 8px var(--ic-action-default-active-alpha);
562
+ box-shadow: 0 0 0 0.063rem var(--ic-architectural-white),
563
+ 0 0 0 0.188rem var(--ic-action-default),
564
+ 0 0 0 0.5rem var(--ic-action-default-active-alpha);
565
565
  }
566
566
 
567
567
  .ic-switch-disabled {
@@ -578,7 +578,7 @@ input {
578
578
 
579
579
  .ic-switch-input:disabled + .ic-switch-toggle {
580
580
  background-color: var(--ic-architectural-80);
581
- border: 1px dashed var(--ic-architectural-300);
581
+ border: 0.063rem dashed var(--ic-architectural-300);
582
582
  }
583
583
 
584
584
  .ic-switch-input:disabled ~ .ic-switch-checked-status {
@@ -591,7 +591,7 @@ input {
591
591
 
592
592
  .ic-switch-input:disabled:checked + .ic-switch-toggle {
593
593
  background-color: var(--ic-status-info-background);
594
- border: 1px dashed #98c9f5;
594
+ border: 0.063rem dashed #98c9f5;
595
595
  }
596
596
 
597
597
  .ic-switch-input:disabled:checked + .ic-switch-toggle::before {
@@ -603,7 +603,7 @@ input {
603
603
  }
604
604
 
605
605
  .ic-switch-small .ic-switch-checked-status {
606
- padding-left: 6px;
606
+ padding-left: 0.375rem;
607
607
  }
608
608
 
609
609
  .ic-switch-small .ic-switch-toggle {
@@ -626,7 +626,7 @@ input {
626
626
  }
627
627
 
628
628
  ::slotted(svg) {
629
- fill: currentColor;
629
+ fill: currentcolor;
630
630
  }
631
631
 
632
632
  @media (forced-colors: active) {
@@ -636,7 +636,7 @@ input {
636
636
  }
637
637
 
638
638
  .ic-switch-input:checked + .ic-switch-toggle::before {
639
- transform: translate(calc(var(--ic-space-xl) - 2px), -50%);
639
+ transform: translate(calc(var(--ic-space-xl) - 0.125rem), -50%);
640
640
  }
641
641
 
642
642
  .ic-switch-input:disabled + .ic-switch-toggle,
@@ -35,6 +35,14 @@ export class Switch {
35
35
  this.checkedState = false;
36
36
  this.initiallyChecked = this.checked;
37
37
  }
38
+ /**
39
+ * Sets focus on the switch.
40
+ */
41
+ async setFocus() {
42
+ if (this.el.shadowRoot.querySelector("input")) {
43
+ this.el.shadowRoot.querySelector("input").focus();
44
+ }
45
+ }
38
46
  componentWillLoad() {
39
47
  this.checkedState = this.checked;
40
48
  addFormResetListener(this.el, this.handleFormReset);
@@ -60,6 +68,7 @@ export class Switch {
60
68
  }
61
69
  static get is() { return "ic-switch"; }
62
70
  static get encapsulation() { return "shadow"; }
71
+ static get delegatesFocus() { return true; }
63
72
  static get originalStyleUrls() {
64
73
  return {
65
74
  "$": ["ic-switch.css"]
@@ -84,7 +93,7 @@ export class Switch {
84
93
  "optional": false,
85
94
  "docs": {
86
95
  "tags": [],
87
- "text": "Applies an aria-label to the component, for when no visual 'name' is provided."
96
+ "text": "The aria-label applied to the switch when no visual 'name' is provided."
88
97
  },
89
98
  "attribute": "label",
90
99
  "reflect": false
@@ -101,7 +110,7 @@ export class Switch {
101
110
  "optional": true,
102
111
  "docs": {
103
112
  "tags": [],
104
- "text": "Hides the label and applies the required label value as an aria-label."
113
+ "text": "If `true`, the label will be hidden and the required label value will be applied as an aria-label."
105
114
  },
106
115
  "attribute": "hide-label",
107
116
  "reflect": false,
@@ -119,7 +128,7 @@ export class Switch {
119
128
  "optional": true,
120
129
  "docs": {
121
130
  "tags": [],
122
- "text": "Provide helper text to display additional field guidance."
131
+ "text": "The helper text that will be displayed for additional field guidance."
123
132
  },
124
133
  "attribute": "helper-text",
125
134
  "reflect": false,
@@ -137,7 +146,7 @@ export class Switch {
137
146
  "optional": true,
138
147
  "docs": {
139
148
  "tags": [],
140
- "text": "If true, the component is checked."
149
+ "text": "If `true`, the switch will display as checked."
141
150
  },
142
151
  "attribute": "checked",
143
152
  "reflect": false,
@@ -155,7 +164,7 @@ export class Switch {
155
164
  "optional": true,
156
165
  "docs": {
157
166
  "tags": [],
158
- "text": "If true, the component reduces in size to the small state."
167
+ "text": "If `true`, the small styling will be applied to the switch."
159
168
  },
160
169
  "attribute": "small",
161
170
  "reflect": false,
@@ -173,7 +182,7 @@ export class Switch {
173
182
  "optional": true,
174
183
  "docs": {
175
184
  "tags": [],
176
- "text": "If true, the component is not interactive."
185
+ "text": "If `true`, the disabled state will be set."
177
186
  },
178
187
  "attribute": "disabled",
179
188
  "reflect": false,
@@ -209,7 +218,7 @@ export class Switch {
209
218
  "optional": true,
210
219
  "docs": {
211
220
  "tags": [],
212
- "text": "If true, the component will render the On/Off state text."
221
+ "text": "If `true`, the switch will render the On/Off state text."
213
222
  },
214
223
  "attribute": "show-state",
215
224
  "reflect": false,
@@ -294,6 +303,26 @@ export class Switch {
294
303
  }
295
304
  }];
296
305
  }
306
+ static get methods() {
307
+ return {
308
+ "setFocus": {
309
+ "complexType": {
310
+ "signature": "() => Promise<void>",
311
+ "parameters": [],
312
+ "references": {
313
+ "Promise": {
314
+ "location": "global"
315
+ }
316
+ },
317
+ "return": "Promise<void>"
318
+ },
319
+ "docs": {
320
+ "text": "Sets focus on the switch.",
321
+ "tags": []
322
+ }
323
+ }
324
+ };
325
+ }
297
326
  static get elementRef() { return "el"; }
298
327
  }
299
328
  //# sourceMappingURL=ic-switch.js.map