@ukic/web-components 2.1.0-beta.16 → 2.1.0-beta.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1029) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/helpers-eb53c416.js.map +1 -1
  3. package/dist/cjs/ic-alert.cjs.entry.js +8 -8
  4. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  5. package/dist/cjs/ic-back-to-top.cjs.entry.js +2 -2
  6. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +25 -19
  8. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-breadcrumb.cjs.entry.js +5 -5
  10. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-button_3.cjs.entry.js +71 -70
  12. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-card.cjs.entry.js +40 -40
  14. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-checkbox-group.cjs.entry.js +17 -17
  16. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-checkbox.cjs.entry.js +32 -29
  18. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-chip.cjs.entry.js +15 -15
  20. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-data-row.cjs.entry.js +20 -20
  22. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-dialog.cjs.entry.js +54 -55
  24. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-footer-link-group.cjs.entry.js +16 -16
  26. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-footer-link.cjs.entry.js +14 -14
  28. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-footer.cjs.entry.js +17 -17
  30. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-hero.cjs.entry.js +18 -18
  32. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +33 -20
  34. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +86 -86
  36. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-input-label_2.cjs.entry.js +7 -7
  38. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-link.cjs.entry.js +17 -17
  40. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-menu-item.cjs.entry.js +12 -12
  42. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-navigation-button.cjs.entry.js +15 -15
  44. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-navigation-group.cjs.entry.js +36 -36
  46. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-navigation-item.cjs.entry.js +42 -42
  48. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-navigation-menu.cjs.entry.js +26 -26
  50. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-page-header.cjs.entry.js +12 -12
  52. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-pagination-item.cjs.entry.js +5 -5
  54. package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-pagination.cjs.entry.js +30 -30
  56. package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-popover-menu.cjs.entry.js +61 -61
  58. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-radio-group.cjs.entry.js +35 -28
  60. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-radio-option.cjs.entry.js +36 -29
  62. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-search-bar.cjs.entry.js +121 -121
  64. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-select.cjs.entry.js +66 -65
  66. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-side-navigation.cjs.entry.js +31 -35
  68. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-skeleton.cjs.entry.js +3 -3
  70. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  72. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-step.cjs.entry.js +7 -7
  74. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-stepper.cjs.entry.js +13 -13
  76. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-switch.cjs.entry.js +16 -16
  78. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-tab-context.cjs.entry.js +26 -32
  80. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  82. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  84. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-tab.cjs.entry.js +16 -16
  86. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-text-field.cjs.entry.js +53 -53
  88. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-toast-region.cjs.entry.js +12 -12
  91. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-toast.cjs.entry.js +57 -57
  93. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-top-navigation.cjs.entry.js +38 -38
  95. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-typography.cjs.entry.js +11 -11
  97. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  98. package/dist/cjs/loader.cjs.js +1 -1
  99. package/dist/collection/collection-manifest.json +4 -4
  100. package/dist/collection/components/ic-alert/ic-alert.js +49 -49
  101. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  102. package/dist/collection/components/ic-alert/{ic-alert.test.a11y.js → test/a11y/ic-alert.test.a11y.js} +1 -1
  103. package/dist/collection/components/ic-alert/test/a11y/ic-alert.test.a11y.js.map +1 -0
  104. package/dist/collection/components/ic-alert/test/basic/ic-alert.e2e.js.map +1 -0
  105. package/dist/collection/components/ic-alert/{ic-alert.spec.js → test/basic/ic-alert.spec.js} +1 -1
  106. package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +1 -0
  107. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +4 -4
  108. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
  109. package/dist/collection/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.js.map +1 -0
  110. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.e2e.js.map +1 -0
  111. package/dist/collection/components/ic-back-to-top/{ic-back-to-top.spec.js → test/basic/ic-back-to-top.spec.js} +3 -3
  112. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +1 -0
  113. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +24 -24
  114. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
  115. package/dist/collection/components/ic-breadcrumb/{ic-breadcrumb.spec.js → test/basic/ic-breadcrumb.spec.js} +1 -1
  116. package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js.map +1 -0
  117. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +25 -19
  118. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
  119. package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group.test.a11y.js → test/a11y/ic-breadcrumb-group.test.a11y.js} +1 -1
  120. package/dist/collection/components/ic-breadcrumb-group/test/a11y/ic-breadcrumb-group.test.a11y.js.map +1 -0
  121. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group-test-examples.js.map +1 -0
  122. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.e2e.js.map +1 -0
  123. package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group.spec.js → test/basic/ic-breadcrumb-group.spec.js} +5 -5
  124. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js.map +1 -0
  125. package/dist/collection/components/ic-button/ic-button.css +4 -0
  126. package/dist/collection/components/ic-button/ic-button.js +191 -190
  127. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  128. package/dist/collection/components/ic-button/{ic-button.test.a11y.js → test/a11y/ic-button.test.a11y.js} +1 -1
  129. package/dist/collection/components/ic-button/test/a11y/ic-button.test.a11y.js.map +1 -0
  130. package/dist/collection/components/ic-button/test/basic/ic-button.e2e.js.map +1 -0
  131. package/dist/collection/components/ic-button/{ic-button.spec.js → test/basic/ic-button.spec.js} +2 -2
  132. package/dist/collection/components/ic-button/test/basic/ic-button.spec.js.map +1 -0
  133. package/dist/collection/components/ic-card/ic-card.js +120 -120
  134. package/dist/collection/components/ic-card/ic-card.js.map +1 -1
  135. package/dist/collection/components/ic-card/{ic-card.test.a11y.js → test/a11y/ic-card.test.a11y.js} +1 -1
  136. package/dist/collection/components/ic-card/test/a11y/ic-card.test.a11y.js.map +1 -0
  137. package/dist/collection/components/ic-card/test/basic/ic-card.e2e.js.map +1 -0
  138. package/dist/collection/components/ic-card/{ic-card.spec.js → test/basic/ic-card.spec.js} +1 -1
  139. package/dist/collection/components/ic-card/test/basic/ic-card.spec.js.map +1 -0
  140. package/dist/collection/components/ic-checkbox/ic-checkbox.js +94 -91
  141. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  142. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +58 -58
  143. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  144. package/dist/collection/components/ic-checkbox-group/{ic-checkbox-group.test.a11y.js → test/a11y/ic-checkbox-group.test.a11y.js} +1 -1
  145. package/dist/collection/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.js.map +1 -0
  146. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.e2e.js.map +1 -0
  147. package/dist/collection/components/ic-checkbox-group/{ic-checkbox-group.spec.js → test/basic/ic-checkbox-group.spec.js} +3 -3
  148. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +1 -0
  149. package/dist/collection/components/ic-chip/ic-chip.js +54 -54
  150. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  151. package/dist/collection/components/ic-chip/{ic-chip.test.a11y.js → test/a11y/ic-chip.test.a11y.js} +1 -1
  152. package/dist/collection/components/ic-chip/test/a11y/ic-chip.test.a11y.js.map +1 -0
  153. package/dist/collection/components/ic-chip/{ic-chip.spec.js → test/basic/ic-chip.spec.js} +1 -1
  154. package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js.map +1 -0
  155. package/dist/collection/components/ic-classification-banner/{ic-classification-banner.test.a11y.js → test/a11y/ic-classification-banner.test.a11y.js} +1 -1
  156. package/dist/collection/components/ic-classification-banner/test/a11y/ic-classification-banner.test.a11y.js.map +1 -0
  157. package/dist/collection/components/ic-classification-banner/{ic-classification-banner.spec.js → test/basic/ic-classification-banner.spec.js} +1 -1
  158. package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js.map +1 -0
  159. package/dist/collection/components/ic-data-entity/{ic-data-entity.test.a11y.js → test/a11y/ic-data-entity.test.a11y.js} +1 -1
  160. package/dist/collection/components/ic-data-entity/test/a11y/ic-data-entity.test.a11y.js.map +1 -0
  161. package/dist/collection/components/ic-data-entity/{ic-data-entity.spec.js → test/basic/ic-data-entity.spec.js} +1 -1
  162. package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js.map +1 -0
  163. package/dist/collection/components/ic-data-row/ic-data-row.js +35 -35
  164. package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
  165. package/dist/collection/components/ic-data-row/{ic-data-row.test.a11y.js → test/a11y/ic-data-row.test.a11y.js} +1 -1
  166. package/dist/collection/components/ic-data-row/test/a11y/ic-data-row.test.a11y.js.map +1 -0
  167. package/dist/collection/components/ic-data-row/{ic-data-row.spec.js → test/basic/ic-data-row.spec.js} +1 -1
  168. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js.map +1 -0
  169. package/dist/collection/components/ic-dialog/ic-dialog.css +1 -4
  170. package/dist/collection/components/ic-dialog/ic-dialog.js +122 -123
  171. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  172. package/dist/collection/components/ic-dialog/{ic-dialog.test.a11y.js → test/a11y/ic-dialog.test.a11y.js} +1 -1
  173. package/dist/collection/components/ic-dialog/test/a11y/ic-dialog.test.a11y.js.map +1 -0
  174. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.e2e.js.map +1 -0
  175. package/dist/collection/components/ic-dialog/{ic-dialog.spec.js → test/basic/ic-dialog.spec.js} +4 -4
  176. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +1 -0
  177. package/dist/collection/components/ic-divider/{ic-divider.spec.js → test/basic/ic-divider.spec.js} +1 -1
  178. package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js.map +1 -0
  179. package/dist/collection/components/ic-footer/ic-footer.js +47 -47
  180. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  181. package/dist/collection/components/ic-footer/{ic-footer.test.a11y.js → test/a11y/ic-footer.test.a11y.js} +1 -1
  182. package/dist/collection/components/ic-footer/test/a11y/ic-footer.test.a11y.js.map +1 -0
  183. package/dist/collection/components/ic-footer/test/basic/ic-footer.e2e.js.map +1 -0
  184. package/dist/collection/components/ic-footer/{ic-footer.spec.js → test/basic/ic-footer.spec.js} +3 -3
  185. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +1 -0
  186. package/dist/collection/components/ic-footer-link/ic-footer-link.js +33 -33
  187. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  188. package/dist/collection/components/ic-footer-link/{ic-footer-link.test.a11y.js → test/a11y/ic-footer-link.test.a11y.js} +1 -1
  189. package/dist/collection/components/ic-footer-link/test/a11y/ic-footer-link.test.a11y.js.map +1 -0
  190. package/dist/collection/components/ic-footer-link/{ic-footer-link.spec.js → test/basic/ic-footer-link.spec.js} +1 -1
  191. package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js.map +1 -0
  192. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +18 -18
  193. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  194. package/dist/collection/components/ic-footer-link-group/{ic-footer-link-group.test.a11y.js → test/a11y/ic-footer-link-group.test.a11y.js} +1 -1
  195. package/dist/collection/components/ic-footer-link-group/test/a11y/ic-footer-link-group.test.a11y.js.map +1 -0
  196. package/dist/collection/components/ic-footer-link-group/{ic-footer-link-group.spec.js → test/basic/ic-footer-link-group.spec.js} +3 -3
  197. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +1 -0
  198. package/dist/collection/components/ic-hero/ic-hero.js +95 -95
  199. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  200. package/dist/collection/components/ic-hero/{ic-hero.test.a11y.js → test/a11y/ic-hero.test.a11y.js} +1 -1
  201. package/dist/collection/components/ic-hero/test/a11y/ic-hero.test.a11y.js.map +1 -0
  202. package/dist/collection/components/ic-hero/{ic-hero.spec.js → test/basic/ic-hero.spec.js} +1 -1
  203. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +1 -0
  204. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +35 -22
  205. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -1
  206. package/dist/collection/components/ic-horizontal-scroll/{ic-horizontal-scroll.test.a11y.js → test/a11y/ic-horizontal-scroll.test.a11y.js} +1 -1
  207. package/dist/collection/components/ic-horizontal-scroll/test/a11y/ic-horizontal-scroll.test.a11y.js.map +1 -0
  208. package/dist/collection/components/ic-horizontal-scroll/{ic-horizontal-scroll.spec.js → test/basic/ic-horizontal-scroll.spec.js} +2 -2
  209. package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js.map +1 -0
  210. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +45 -45
  211. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
  212. package/dist/collection/components/ic-input-component-container/{ic-input-component-container.spec.js → test/basic/ic-input-component-container.spec.js} +1 -1
  213. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +1 -0
  214. package/dist/collection/components/ic-input-container/{ic-input-container.spec.js → test/basic/ic-input-container.spec.js} +1 -1
  215. package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js.map +1 -0
  216. package/dist/collection/components/ic-input-label/ic-input-label.js +51 -51
  217. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  218. package/dist/collection/components/ic-input-label/{ic-input-label.spec.js → test/basic/ic-input-label.spec.js} +1 -1
  219. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +1 -0
  220. package/dist/collection/components/ic-input-validation/ic-input-validation.js +41 -41
  221. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  222. package/dist/collection/components/ic-input-validation/{ic-input-validation.spec.js → test/basic/ic-input-validation.spec.js} +1 -1
  223. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js.map +1 -0
  224. package/dist/collection/components/ic-link/ic-link.js +48 -48
  225. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  226. package/dist/collection/components/ic-link/{ic-link.test.a11y.js → test/a11y/ic-link.test.a11y.js} +1 -1
  227. package/dist/collection/components/ic-link/test/a11y/ic-link.test.a11y.js.map +1 -0
  228. package/dist/collection/components/ic-link/{ic-link.spec.js → test/basic/ic-link.spec.js} +2 -2
  229. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +1 -0
  230. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +89 -89
  231. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  232. package/dist/collection/components/ic-loading-indicator/{ic-loading-indicator.test.a11y.js → test/a11y/ic-loading-indicator.test.a11y.js} +1 -1
  233. package/dist/collection/components/ic-loading-indicator/test/a11y/ic-loading-indicator.test.a11y.js.map +1 -0
  234. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.e2e.js.map +1 -0
  235. package/dist/collection/components/ic-loading-indicator/{ic-loading-indicator.spec.js → test/basic/ic-loading-indicator.spec.js} +3 -3
  236. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js.map +1 -0
  237. package/dist/collection/components/ic-menu/ic-menu.js +238 -238
  238. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  239. package/dist/collection/components/ic-menu/{ic-menu.spec.js → test/basic/ic-menu.spec.js} +3 -3
  240. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +1 -0
  241. package/dist/collection/components/ic-menu-group/{ic-menu-group.spec.js → test/basic/ic-menu-group.spec.js} +2 -2
  242. package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js.map +1 -0
  243. package/dist/collection/components/ic-menu-item/ic-menu-item.js +75 -75
  244. package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
  245. package/dist/collection/components/ic-menu-item/{ic-menu-item.spec.js → test/basic/ic-menu-item.spec.js} +2 -2
  246. package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js.map +1 -0
  247. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +56 -56
  248. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  249. package/dist/collection/components/ic-navigation-button/{ic-navigation-button.spec.js → test/basic/ic-navigation-button.spec.js} +2 -2
  250. package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js.map +1 -0
  251. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +55 -55
  252. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  253. package/dist/collection/components/ic-navigation-group/{ic-navigation-group.test.a11y.js → test/a11y/ic-navigation-group.test.a11y.js} +1 -1
  254. package/dist/collection/components/ic-navigation-group/test/a11y/ic-navigation-group.test.a11y.js.map +1 -0
  255. package/dist/collection/components/ic-navigation-group/{ic-navigation-group.spec.js → test/basic/ic-navigation-group.spec.js} +8 -8
  256. package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js.map +1 -0
  257. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +5 -4
  258. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +135 -135
  259. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  260. package/dist/collection/components/ic-navigation-item/{ic-navigation-item.test.a11y.js → test/a11y/ic-navigation-item.test.a11y.js} +1 -1
  261. package/dist/collection/components/ic-navigation-item/test/a11y/ic-navigation-item.test.a11y.js.map +1 -0
  262. package/dist/collection/components/ic-navigation-item/{ic-navigation-item.spec.js → test/basic/ic-navigation-item.spec.js} +5 -5
  263. package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js.map +1 -0
  264. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +1 -4
  265. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +31 -31
  266. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  267. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.e2e.js.map +1 -0
  268. package/dist/collection/components/ic-navigation-menu/{ic-navigation-menu.spec.js → test/basic/ic-navigation-menu.spec.js} +6 -6
  269. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js.map +1 -0
  270. package/dist/collection/components/ic-page-header/ic-page-header.js +56 -56
  271. package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
  272. package/dist/collection/components/ic-page-header/{ic-page-header.test.a11y.js → test/a11y/ic-page-header.test.a11y.js} +1 -1
  273. package/dist/collection/components/ic-page-header/test/a11y/ic-page-header.test.a11y.js.map +1 -0
  274. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.e2e.js.map +1 -0
  275. package/dist/collection/components/ic-page-header/{ic-page-header.spec.js → test/basic/ic-page-header.spec.js} +7 -7
  276. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js.map +1 -0
  277. package/dist/collection/components/ic-pagination/ic-pagination.js +97 -97
  278. package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
  279. package/dist/collection/components/ic-pagination/{ic-pagination.test.a11y.js → test/a11y/ic-pagination.test.a11y.js} +1 -1
  280. package/dist/collection/components/ic-pagination/test/a11y/ic-pagination.test.a11y.js.map +1 -0
  281. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.e2e.js.map +1 -0
  282. package/dist/collection/components/ic-pagination/{ic-pagination.spec.js → test/basic/ic-pagination.spec.js} +3 -3
  283. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +1 -0
  284. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +65 -65
  285. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js.map +1 -1
  286. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +96 -96
  287. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  288. package/dist/collection/components/ic-popover-menu/{ic-popover-menu.test.a11y.js → test/a11y/ic-popover-menu.test.a11y.js} +1 -1
  289. package/dist/collection/components/ic-popover-menu/test/a11y/ic-popover-menu.test.a11y.js.map +1 -0
  290. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.e2e.js.map +1 -0
  291. package/dist/collection/components/ic-popover-menu/{ic-popover-menu.spec.js → test/basic/ic-popover-menu.spec.js} +4 -4
  292. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js.map +1 -0
  293. package/dist/collection/components/ic-radio-group/ic-radio-group.js +94 -81
  294. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  295. package/dist/collection/components/ic-radio-group/{ic-radio-group.test.a11y.js → test/a11y/ic-radio-group.test.a11y.js} +1 -1
  296. package/dist/collection/components/ic-radio-group/test/a11y/ic-radio-group.test.a11y.js.map +1 -0
  297. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js.map +1 -0
  298. package/dist/collection/components/ic-radio-group/{ic-radio-group.spec.js → test/basic/ic-radio-group.spec.js} +3 -3
  299. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -0
  300. package/dist/collection/components/ic-radio-option/ic-radio-option.js +112 -88
  301. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  302. package/dist/collection/components/ic-search-bar/ic-search-bar.js +384 -384
  303. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  304. package/dist/collection/components/ic-search-bar/{ic-search-bar.test.a11y.js → test/a11y/ic-search-bar.test.a11y.js} +1 -1
  305. package/dist/collection/components/ic-search-bar/test/a11y/ic-search-bar.test.a11y.js.map +1 -0
  306. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +1 -0
  307. package/dist/collection/components/ic-search-bar/{ic-search-bar.spec.js → test/basic/ic-search-bar.spec.js} +7 -7
  308. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +1 -0
  309. package/dist/collection/components/ic-section-container/{ic-section-container.spec.js → test/basic/ic-section-container.spec.js} +1 -1
  310. package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js.map +1 -0
  311. package/dist/collection/components/ic-select/ic-select.js +266 -265
  312. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  313. package/dist/collection/components/ic-select/{ic-select.test.a11y.js → test/a11y/ic-select.test.a11y.js} +1 -1
  314. package/dist/collection/components/ic-select/test/a11y/ic-select.test.a11y.js.map +1 -0
  315. package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js.map +1 -0
  316. package/dist/collection/components/ic-select/{ic-select.spec.js → test/basic/ic-select.spec.js} +6 -6
  317. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +1 -0
  318. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +1 -4
  319. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +75 -79
  320. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  321. package/dist/collection/components/ic-side-navigation/{ic-side-navigation.test.a11y.js → test/a11y/ic-side-navigation.test.a11y.js} +1 -1
  322. package/dist/collection/components/ic-side-navigation/test/a11y/ic-side-navigation.test.a11y.js.map +1 -0
  323. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.js.map +1 -0
  324. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js.map +1 -0
  325. package/dist/collection/components/ic-side-navigation/{ic-side-navigation.spec.js → test/basic/ic-side-navigation.spec.js} +5 -5
  326. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +1 -0
  327. package/dist/collection/components/ic-skeleton/ic-skeleton.js +22 -22
  328. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
  329. package/dist/collection/components/ic-skeleton/{ic-skeleton.test.a11y.js → test/a11y/ic-skeleton.test.a11y.js} +1 -1
  330. package/dist/collection/components/ic-skeleton/test/a11y/ic-skeleton.test.a11y.js.map +1 -0
  331. package/dist/collection/components/ic-skeleton/{ic-skeleton.spec.js → test/basic/ic-skeleton.spec.js} +1 -1
  332. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js.map +1 -0
  333. package/dist/collection/components/ic-status-tag/ic-status-tag.js +40 -40
  334. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
  335. package/dist/collection/components/ic-status-tag/{ic-status-tag.test.a11y.js → test/a11y/ic-status-tag.test.a11y.js} +1 -1
  336. package/dist/collection/components/ic-status-tag/test/a11y/ic-status-tag.test.a11y.js.map +1 -0
  337. package/dist/collection/components/ic-status-tag/{ic-status-tag.spec.js → test/basic/ic-status-tag.spec.js} +1 -1
  338. package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js.map +1 -0
  339. package/dist/collection/components/ic-step/ic-step.js +126 -126
  340. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  341. package/dist/collection/components/ic-step/{ic-step.spec.js → test/basic/ic-step.spec.js} +3 -3
  342. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js.map +1 -0
  343. package/dist/collection/components/ic-stepper/ic-stepper.js +41 -41
  344. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  345. package/dist/collection/components/ic-stepper/{ic-stepper.test.a11y.js → test/a11y/ic-stepper.test.a11y.js} +1 -1
  346. package/dist/collection/components/ic-stepper/test/a11y/ic-stepper.test.a11y.js.map +1 -0
  347. package/dist/collection/components/ic-stepper/test/basic/ic-stepper-test-examples.js.map +1 -0
  348. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js.map +1 -0
  349. package/dist/collection/components/ic-stepper/{ic-stepper.spec.js → test/basic/ic-stepper.spec.js} +3 -3
  350. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +1 -0
  351. package/dist/collection/components/ic-switch/ic-switch.js +72 -72
  352. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  353. package/dist/collection/components/ic-switch/{ic-switch.test.a11y.js → test/a11y/ic-switch.test.a11y.js} +1 -1
  354. package/dist/collection/components/ic-switch/test/a11y/ic-switch.test.a11y.js.map +1 -0
  355. package/dist/collection/components/ic-switch/{ic-switch.spec.js → test/basic/ic-switch.spec.js} +1 -1
  356. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +1 -0
  357. package/dist/collection/components/ic-tab/ic-tab.js +56 -56
  358. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  359. package/dist/collection/components/ic-tab/test/basic/ic-tab.e2e.js.map +1 -0
  360. package/dist/collection/components/ic-tab/{ic-tab.spec.js → test/basic/ic-tab.spec.js} +3 -3
  361. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +1 -0
  362. package/dist/collection/components/ic-tab-context/ic-tab-context.js +71 -77
  363. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  364. package/dist/collection/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.js.map +1 -0
  365. package/dist/collection/components/ic-tab-context/{ic-tab-context.e2e.js → test/basic/ic-tab-context.e2e.js} +1 -1
  366. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.e2e.js.map +1 -0
  367. package/dist/collection/components/ic-tab-context/{ic-tab-context.spec.js → test/basic/ic-tab-context.spec.js} +4 -4
  368. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js.map +1 -0
  369. package/dist/collection/components/ic-tab-group/ic-tab-group.js +27 -27
  370. package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
  371. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +33 -33
  372. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
  373. package/dist/collection/components/ic-tab-panel/{ic-tab-panel.spec.js → test/basic/ic-tab-panel.spec.js} +1 -1
  374. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js.map +1 -0
  375. package/dist/collection/components/ic-text-field/ic-text-field.js +371 -371
  376. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  377. package/dist/collection/components/ic-text-field/test/a11y/ic-text-field.test.a11y.js.map +1 -0
  378. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.e2e.js.map +1 -0
  379. package/dist/collection/components/ic-text-field/{ic-text-field.input.spec.js → test/basic/ic-text-field.input.spec.js} +2 -2
  380. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +1 -0
  381. package/dist/collection/components/ic-text-field/{ic-text-field.textarea.spec.js → test/basic/ic-text-field.textarea.spec.js} +1 -1
  382. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +1 -0
  383. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
  384. package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js.map +1 -0
  385. package/dist/collection/components/ic-theme/{ic-theme.spec.js → test/basic/ic-theme.spec.js} +3 -3
  386. package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js.map +1 -0
  387. package/dist/collection/components/ic-toast/ic-toast.js +111 -111
  388. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  389. package/dist/collection/components/ic-toast/{ic-toast.test.a11y.js → test/a11y/ic-toast.test.a11y.js} +1 -1
  390. package/dist/collection/components/ic-toast/test/a11y/ic-toast.test.a11y.js.map +1 -0
  391. package/dist/collection/components/ic-toast/test/basic/ic-toast.e2e.js.map +1 -0
  392. package/dist/collection/components/ic-toast/{ic-toast.spec.js → test/basic/ic-toast.spec.js} +4 -4
  393. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -0
  394. package/dist/collection/components/ic-toast-region/ic-toast-region.js +12 -12
  395. package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -1
  396. package/dist/collection/components/ic-toast-region/{ic-toast-region.spec.js → test/basic/ic-toast-region.spec.js} +3 -3
  397. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js.map +1 -0
  398. package/dist/collection/components/ic-tooltip/ic-tooltip.js +47 -47
  399. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  400. package/dist/collection/components/ic-tooltip/{ic-tooltip.test.a11y.js → test/a11y/ic-tooltip.test.a11y.js} +1 -1
  401. package/dist/collection/components/ic-tooltip/test/a11y/ic-tooltip.test.a11y.js.map +1 -0
  402. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js.map +1 -0
  403. package/dist/collection/components/ic-tooltip/{ic-tooltip.spec.js → test/basic/ic-tooltip.spec.js} +2 -2
  404. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js.map +1 -0
  405. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +82 -82
  406. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  407. package/dist/collection/components/ic-top-navigation/{ic-top-navigation.test.a11y.js → test/a11y/ic-top-navigation.test.a11y.js} +1 -1
  408. package/dist/collection/components/ic-top-navigation/test/a11y/ic-top-navigation.test.a11y.js.map +1 -0
  409. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.e2e.js.map +1 -0
  410. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js.map +1 -0
  411. package/dist/collection/components/ic-top-navigation/{ic-top-navigation.spec.js → test/basic/ic-top-navigation.spec.js} +8 -8
  412. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js.map +1 -0
  413. package/dist/collection/components/ic-typography/ic-typography.js +36 -36
  414. package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
  415. package/dist/collection/components/ic-typography/{ic-typography.test.a11y.js → test/a11y/ic-typography.test.a11y.js} +1 -1
  416. package/dist/collection/components/ic-typography/test/a11y/ic-typography.test.a11y.js.map +1 -0
  417. package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js.map +1 -0
  418. package/dist/collection/components/ic-typography/{ic-typography.spec.js → test/basic/ic-typography.spec.js} +1 -1
  419. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +1 -0
  420. package/dist/collection/testspec.setup.js.map +1 -1
  421. package/dist/collection/utils/helpers.js.map +1 -1
  422. package/dist/components/helpers.js +1 -1
  423. package/dist/components/helpers.js.map +1 -1
  424. package/dist/components/ic-alert2.js +13 -13
  425. package/dist/components/ic-alert2.js.map +1 -1
  426. package/dist/components/ic-back-to-top.js +4 -4
  427. package/dist/components/ic-back-to-top.js.map +1 -1
  428. package/dist/components/ic-breadcrumb-group.js +25 -19
  429. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  430. package/dist/components/ic-breadcrumb2.js +7 -7
  431. package/dist/components/ic-breadcrumb2.js.map +1 -1
  432. package/dist/components/ic-button2.js +47 -46
  433. package/dist/components/ic-button2.js.map +1 -1
  434. package/dist/components/ic-card.js +50 -50
  435. package/dist/components/ic-card.js.map +1 -1
  436. package/dist/components/ic-checkbox-group.js +20 -20
  437. package/dist/components/ic-checkbox-group.js.map +1 -1
  438. package/dist/components/ic-checkbox.js +37 -34
  439. package/dist/components/ic-checkbox.js.map +1 -1
  440. package/dist/components/ic-chip.js +19 -19
  441. package/dist/components/ic-chip.js.map +1 -1
  442. package/dist/components/ic-data-row.js +21 -21
  443. package/dist/components/ic-data-row.js.map +1 -1
  444. package/dist/components/ic-dialog.js +60 -61
  445. package/dist/components/ic-dialog.js.map +1 -1
  446. package/dist/components/ic-footer-link-group.js +19 -19
  447. package/dist/components/ic-footer-link-group.js.map +1 -1
  448. package/dist/components/ic-footer-link.js +16 -16
  449. package/dist/components/ic-footer-link.js.map +1 -1
  450. package/dist/components/ic-footer.js +19 -19
  451. package/dist/components/ic-footer.js.map +1 -1
  452. package/dist/components/ic-hero.js +25 -25
  453. package/dist/components/ic-hero.js.map +1 -1
  454. package/dist/components/ic-horizontal-scroll2.js +34 -21
  455. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  456. package/dist/components/ic-input-component-container2.js +8 -8
  457. package/dist/components/ic-input-component-container2.js.map +1 -1
  458. package/dist/components/ic-input-label2.js +8 -8
  459. package/dist/components/ic-input-label2.js.map +1 -1
  460. package/dist/components/ic-input-validation2.js +6 -6
  461. package/dist/components/ic-input-validation2.js.map +1 -1
  462. package/dist/components/ic-link2.js +20 -20
  463. package/dist/components/ic-link2.js.map +1 -1
  464. package/dist/components/ic-loading-indicator2.js +24 -24
  465. package/dist/components/ic-loading-indicator2.js.map +1 -1
  466. package/dist/components/ic-menu-item2.js +17 -17
  467. package/dist/components/ic-menu-item2.js.map +1 -1
  468. package/dist/components/ic-menu2.js +93 -93
  469. package/dist/components/ic-menu2.js.map +1 -1
  470. package/dist/components/ic-navigation-button.js +20 -20
  471. package/dist/components/ic-navigation-button.js.map +1 -1
  472. package/dist/components/ic-navigation-group.js +40 -40
  473. package/dist/components/ic-navigation-group.js.map +1 -1
  474. package/dist/components/ic-navigation-item.js +52 -52
  475. package/dist/components/ic-navigation-item.js.map +1 -1
  476. package/dist/components/ic-navigation-menu2.js +28 -28
  477. package/dist/components/ic-navigation-menu2.js.map +1 -1
  478. package/dist/components/ic-page-header.js +18 -18
  479. package/dist/components/ic-page-header.js.map +1 -1
  480. package/dist/components/ic-pagination-item2.js +11 -11
  481. package/dist/components/ic-pagination-item2.js.map +1 -1
  482. package/dist/components/ic-pagination.js +39 -39
  483. package/dist/components/ic-pagination.js.map +1 -1
  484. package/dist/components/ic-popover-menu.js +64 -64
  485. package/dist/components/ic-popover-menu.js.map +1 -1
  486. package/dist/components/ic-radio-group.js +40 -33
  487. package/dist/components/ic-radio-group.js.map +1 -1
  488. package/dist/components/ic-radio-option.js +42 -35
  489. package/dist/components/ic-radio-option.js.map +1 -1
  490. package/dist/components/ic-search-bar.js +145 -145
  491. package/dist/components/ic-search-bar.js.map +1 -1
  492. package/dist/components/ic-select.js +95 -94
  493. package/dist/components/ic-select.js.map +1 -1
  494. package/dist/components/ic-side-navigation.js +40 -44
  495. package/dist/components/ic-side-navigation.js.map +1 -1
  496. package/dist/components/ic-skeleton.js +5 -5
  497. package/dist/components/ic-skeleton.js.map +1 -1
  498. package/dist/components/ic-status-tag.js +6 -6
  499. package/dist/components/ic-status-tag.js.map +1 -1
  500. package/dist/components/ic-step.js +15 -15
  501. package/dist/components/ic-step.js.map +1 -1
  502. package/dist/components/ic-stepper.js +19 -19
  503. package/dist/components/ic-stepper.js.map +1 -1
  504. package/dist/components/ic-switch.js +21 -21
  505. package/dist/components/ic-switch.js.map +1 -1
  506. package/dist/components/ic-tab-context.js +28 -34
  507. package/dist/components/ic-tab-context.js.map +1 -1
  508. package/dist/components/ic-tab-group.js +3 -3
  509. package/dist/components/ic-tab-group.js.map +1 -1
  510. package/dist/components/ic-tab-panel.js +4 -4
  511. package/dist/components/ic-tab-panel.js.map +1 -1
  512. package/dist/components/ic-tab.js +17 -17
  513. package/dist/components/ic-tab.js.map +1 -1
  514. package/dist/components/ic-text-field2.js +83 -83
  515. package/dist/components/ic-text-field2.js.map +1 -1
  516. package/dist/components/ic-theme.js.map +1 -1
  517. package/dist/components/ic-toast-region.js +12 -12
  518. package/dist/components/ic-toast-region.js.map +1 -1
  519. package/dist/components/ic-toast.js +62 -62
  520. package/dist/components/ic-toast.js.map +1 -1
  521. package/dist/components/ic-tooltip2.js +26 -26
  522. package/dist/components/ic-tooltip2.js.map +1 -1
  523. package/dist/components/ic-top-navigation.js +47 -47
  524. package/dist/components/ic-top-navigation.js.map +1 -1
  525. package/dist/components/ic-typography2.js +14 -14
  526. package/dist/components/ic-typography2.js.map +1 -1
  527. package/dist/core/core.esm.js +1 -1
  528. package/dist/core/core.esm.js.map +1 -1
  529. package/dist/core/{p-3ce0aa02.entry.js → p-00b0c1b5.entry.js} +2 -2
  530. package/dist/core/p-00b0c1b5.entry.js.map +1 -0
  531. package/dist/core/{p-ca6820dc.entry.js → p-0471f0a2.entry.js} +2 -2
  532. package/dist/core/p-0471f0a2.entry.js.map +1 -0
  533. package/dist/core/{p-bad10f6c.entry.js → p-053b387f.entry.js} +2 -2
  534. package/dist/core/p-053b387f.entry.js.map +1 -0
  535. package/dist/core/{p-31e80ccb.entry.js → p-071bd3f5.entry.js} +2 -2
  536. package/dist/core/p-071bd3f5.entry.js.map +1 -0
  537. package/dist/core/p-0738d6e3.entry.js +2 -0
  538. package/dist/core/p-0738d6e3.entry.js.map +1 -0
  539. package/dist/core/{p-b03bd9c6.entry.js → p-0ccdb432.entry.js} +2 -2
  540. package/dist/core/p-0ccdb432.entry.js.map +1 -0
  541. package/dist/core/{p-aeef3c9d.entry.js → p-0d4507ef.entry.js} +2 -2
  542. package/dist/core/p-0d4507ef.entry.js.map +1 -0
  543. package/dist/core/{p-97286148.entry.js → p-11e0f917.entry.js} +2 -2
  544. package/dist/core/p-11e0f917.entry.js.map +1 -0
  545. package/dist/core/{p-97fd0cc1.entry.js → p-12287f17.entry.js} +2 -2
  546. package/dist/core/p-12287f17.entry.js.map +1 -0
  547. package/dist/core/{p-a9de9aba.entry.js → p-18f86ab2.entry.js} +2 -2
  548. package/dist/core/{p-a9de9aba.entry.js.map → p-18f86ab2.entry.js.map} +1 -1
  549. package/dist/core/{p-ef91c17e.entry.js → p-1a7d6eca.entry.js} +2 -2
  550. package/dist/core/p-1a7d6eca.entry.js.map +1 -0
  551. package/dist/core/p-1c30ece9.entry.js +2 -0
  552. package/dist/core/p-1c30ece9.entry.js.map +1 -0
  553. package/dist/core/{p-b0685167.entry.js → p-206a402a.entry.js} +2 -2
  554. package/dist/core/p-206a402a.entry.js.map +1 -0
  555. package/dist/core/{p-a74b8476.entry.js → p-221c905b.entry.js} +2 -2
  556. package/dist/core/p-221c905b.entry.js.map +1 -0
  557. package/dist/core/p-2b80ce4c.entry.js +2 -0
  558. package/dist/core/p-2b80ce4c.entry.js.map +1 -0
  559. package/dist/core/{p-323bce82.entry.js → p-3294961a.entry.js} +2 -2
  560. package/dist/core/p-3294961a.entry.js.map +1 -0
  561. package/dist/core/p-36115f6a.entry.js +2 -0
  562. package/dist/core/p-36115f6a.entry.js.map +1 -0
  563. package/dist/core/{p-311c38b3.entry.js → p-38450979.entry.js} +2 -2
  564. package/dist/core/p-38450979.entry.js.map +1 -0
  565. package/dist/core/{p-b35a9909.entry.js → p-39ec4fc2.entry.js} +2 -2
  566. package/dist/core/p-39ec4fc2.entry.js.map +1 -0
  567. package/dist/core/p-4a47cc51.entry.js +2 -0
  568. package/dist/core/p-4a47cc51.entry.js.map +1 -0
  569. package/dist/core/{p-ecdcae46.entry.js → p-4a814585.entry.js} +2 -2
  570. package/dist/core/p-4a814585.entry.js.map +1 -0
  571. package/dist/core/{p-820e4c17.entry.js → p-51d4c05c.entry.js} +2 -2
  572. package/dist/core/{p-820e4c17.entry.js.map → p-51d4c05c.entry.js.map} +1 -1
  573. package/dist/core/{p-2e051e1e.entry.js → p-54a5e971.entry.js} +2 -2
  574. package/dist/core/p-54a5e971.entry.js.map +1 -0
  575. package/dist/core/{p-0d325b4c.entry.js → p-57ba3442.entry.js} +2 -2
  576. package/dist/core/p-57ba3442.entry.js.map +1 -0
  577. package/dist/core/{p-68308ecd.entry.js → p-594e88fe.entry.js} +2 -2
  578. package/dist/core/p-594e88fe.entry.js.map +1 -0
  579. package/dist/core/{p-79914e0c.entry.js → p-5d245683.entry.js} +2 -2
  580. package/dist/core/{p-79914e0c.entry.js.map → p-5d245683.entry.js.map} +1 -1
  581. package/dist/core/{p-29d9fea1.entry.js → p-64584eb6.entry.js} +2 -2
  582. package/dist/core/p-64584eb6.entry.js.map +1 -0
  583. package/dist/core/{p-ad6c4c02.entry.js → p-67e99ad8.entry.js} +2 -2
  584. package/dist/core/p-67e99ad8.entry.js.map +1 -0
  585. package/dist/core/{p-f0714432.entry.js → p-6921177c.entry.js} +2 -2
  586. package/dist/core/p-6921177c.entry.js.map +1 -0
  587. package/dist/core/{p-84c8c4c7.entry.js → p-6ac8df90.entry.js} +2 -2
  588. package/dist/core/{p-84c8c4c7.entry.js.map → p-6ac8df90.entry.js.map} +1 -1
  589. package/dist/core/{p-dbe06c3b.entry.js → p-6aee5f18.entry.js} +2 -2
  590. package/dist/core/p-6aee5f18.entry.js.map +1 -0
  591. package/dist/core/{p-da4c1409.entry.js → p-7350d63d.entry.js} +2 -2
  592. package/dist/core/p-7350d63d.entry.js.map +1 -0
  593. package/dist/core/p-75e23d08.entry.js +2 -0
  594. package/dist/core/p-75e23d08.entry.js.map +1 -0
  595. package/dist/core/p-7ae1d7bc.entry.js +2 -0
  596. package/dist/core/p-7ae1d7bc.entry.js.map +1 -0
  597. package/dist/core/{p-6c76c6ba.entry.js → p-7fafc87a.entry.js} +2 -2
  598. package/dist/core/p-7fafc87a.entry.js.map +1 -0
  599. package/dist/core/{p-2ec49a7e.entry.js → p-9779c179.entry.js} +2 -2
  600. package/dist/core/{p-2ec49a7e.entry.js.map → p-9779c179.entry.js.map} +1 -1
  601. package/dist/core/{p-617950f8.entry.js → p-9e7b1167.entry.js} +2 -2
  602. package/dist/core/p-9e7b1167.entry.js.map +1 -0
  603. package/dist/core/{p-bda4414e.entry.js → p-ac10763e.entry.js} +2 -2
  604. package/dist/core/p-ac10763e.entry.js.map +1 -0
  605. package/dist/core/{p-31ccdd50.entry.js → p-acdc2931.entry.js} +2 -2
  606. package/dist/core/p-acdc2931.entry.js.map +1 -0
  607. package/dist/core/{p-f381e93f.entry.js → p-bc02816a.entry.js} +2 -2
  608. package/dist/core/p-bc02816a.entry.js.map +1 -0
  609. package/dist/core/{p-551986d1.entry.js → p-bde0fcab.entry.js} +2 -2
  610. package/dist/core/p-bde0fcab.entry.js.map +1 -0
  611. package/dist/core/{p-8911656b.entry.js → p-be6ee8a9.entry.js} +2 -2
  612. package/dist/core/{p-8911656b.entry.js.map → p-be6ee8a9.entry.js.map} +1 -1
  613. package/dist/core/{p-4a385752.js → p-bf5669a2.js} +2 -2
  614. package/dist/core/{p-4a385752.js.map → p-bf5669a2.js.map} +1 -1
  615. package/dist/core/{p-c0333310.entry.js → p-c4dcc6b9.entry.js} +2 -2
  616. package/dist/core/p-c4dcc6b9.entry.js.map +1 -0
  617. package/dist/core/{p-dfd31e28.entry.js → p-ca0e8569.entry.js} +2 -2
  618. package/dist/core/p-ca0e8569.entry.js.map +1 -0
  619. package/dist/core/p-ddb60a4b.entry.js +2 -0
  620. package/dist/core/p-ddb60a4b.entry.js.map +1 -0
  621. package/dist/core/{p-e3e6308b.entry.js → p-e0bbf81e.entry.js} +2 -2
  622. package/dist/core/{p-5fcd965f.entry.js → p-e6d3b5f8.entry.js} +2 -2
  623. package/dist/core/p-e6d3b5f8.entry.js.map +1 -0
  624. package/dist/core/p-e8be020c.entry.js +2 -0
  625. package/dist/core/p-e8be020c.entry.js.map +1 -0
  626. package/dist/core/{p-249af8ab.entry.js → p-fa40a71b.entry.js} +2 -2
  627. package/dist/core/{p-249af8ab.entry.js.map → p-fa40a71b.entry.js.map} +1 -1
  628. package/dist/esm/core.js +1 -1
  629. package/dist/esm/{helpers-8e57082b.js → helpers-c4e378c4.js} +2 -2
  630. package/dist/esm/{helpers-8e57082b.js.map → helpers-c4e378c4.js.map} +1 -1
  631. package/dist/esm/ic-alert.entry.js +9 -9
  632. package/dist/esm/ic-alert.entry.js.map +1 -1
  633. package/dist/esm/ic-back-to-top.entry.js +3 -3
  634. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  635. package/dist/esm/ic-breadcrumb-group.entry.js +26 -20
  636. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  637. package/dist/esm/ic-breadcrumb.entry.js +6 -6
  638. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  639. package/dist/esm/ic-button_3.entry.js +72 -71
  640. package/dist/esm/ic-button_3.entry.js.map +1 -1
  641. package/dist/esm/ic-card.entry.js +41 -41
  642. package/dist/esm/ic-card.entry.js.map +1 -1
  643. package/dist/esm/ic-checkbox-group.entry.js +18 -18
  644. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  645. package/dist/esm/ic-checkbox.entry.js +33 -30
  646. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  647. package/dist/esm/ic-chip.entry.js +16 -16
  648. package/dist/esm/ic-chip.entry.js.map +1 -1
  649. package/dist/esm/ic-data-row.entry.js +21 -21
  650. package/dist/esm/ic-data-row.entry.js.map +1 -1
  651. package/dist/esm/ic-dialog.entry.js +55 -56
  652. package/dist/esm/ic-dialog.entry.js.map +1 -1
  653. package/dist/esm/ic-divider.entry.js +1 -1
  654. package/dist/esm/ic-footer-link-group.entry.js +17 -17
  655. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  656. package/dist/esm/ic-footer-link.entry.js +15 -15
  657. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  658. package/dist/esm/ic-footer.entry.js +18 -18
  659. package/dist/esm/ic-footer.entry.js.map +1 -1
  660. package/dist/esm/ic-hero.entry.js +19 -19
  661. package/dist/esm/ic-hero.entry.js.map +1 -1
  662. package/dist/esm/ic-horizontal-scroll.entry.js +34 -21
  663. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  664. package/dist/esm/ic-input-component-container_3.entry.js +87 -87
  665. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  666. package/dist/esm/ic-input-label_2.entry.js +8 -8
  667. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  668. package/dist/esm/ic-link.entry.js +18 -18
  669. package/dist/esm/ic-link.entry.js.map +1 -1
  670. package/dist/esm/ic-menu-item.entry.js +13 -13
  671. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  672. package/dist/esm/ic-navigation-button.entry.js +16 -16
  673. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  674. package/dist/esm/ic-navigation-group.entry.js +37 -37
  675. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  676. package/dist/esm/ic-navigation-item.entry.js +43 -43
  677. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  678. package/dist/esm/ic-navigation-menu.entry.js +27 -27
  679. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  680. package/dist/esm/ic-page-header.entry.js +13 -13
  681. package/dist/esm/ic-page-header.entry.js.map +1 -1
  682. package/dist/esm/ic-pagination-item.entry.js +6 -6
  683. package/dist/esm/ic-pagination-item.entry.js.map +1 -1
  684. package/dist/esm/ic-pagination.entry.js +31 -31
  685. package/dist/esm/ic-pagination.entry.js.map +1 -1
  686. package/dist/esm/ic-popover-menu.entry.js +62 -62
  687. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  688. package/dist/esm/ic-radio-group.entry.js +36 -29
  689. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  690. package/dist/esm/ic-radio-option.entry.js +37 -30
  691. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  692. package/dist/esm/ic-search-bar.entry.js +122 -122
  693. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  694. package/dist/esm/ic-select.entry.js +67 -66
  695. package/dist/esm/ic-select.entry.js.map +1 -1
  696. package/dist/esm/ic-side-navigation.entry.js +32 -36
  697. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  698. package/dist/esm/ic-skeleton.entry.js +3 -3
  699. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  700. package/dist/esm/ic-status-tag.entry.js +4 -4
  701. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  702. package/dist/esm/ic-step.entry.js +7 -7
  703. package/dist/esm/ic-step.entry.js.map +1 -1
  704. package/dist/esm/ic-stepper.entry.js +14 -14
  705. package/dist/esm/ic-stepper.entry.js.map +1 -1
  706. package/dist/esm/ic-switch.entry.js +17 -17
  707. package/dist/esm/ic-switch.entry.js.map +1 -1
  708. package/dist/esm/ic-tab-context.entry.js +26 -32
  709. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  710. package/dist/esm/ic-tab-group.entry.js +2 -2
  711. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  712. package/dist/esm/ic-tab-panel.entry.js +2 -2
  713. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  714. package/dist/esm/ic-tab.entry.js +17 -17
  715. package/dist/esm/ic-tab.entry.js.map +1 -1
  716. package/dist/esm/ic-text-field.entry.js +54 -54
  717. package/dist/esm/ic-text-field.entry.js.map +1 -1
  718. package/dist/esm/ic-theme.entry.js +1 -1
  719. package/dist/esm/ic-theme.entry.js.map +1 -1
  720. package/dist/esm/ic-toast-region.entry.js +12 -12
  721. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  722. package/dist/esm/ic-toast.entry.js +58 -58
  723. package/dist/esm/ic-toast.entry.js.map +1 -1
  724. package/dist/esm/ic-top-navigation.entry.js +39 -39
  725. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  726. package/dist/esm/ic-typography.entry.js +12 -12
  727. package/dist/esm/ic-typography.entry.js.map +1 -1
  728. package/dist/esm/loader.js +1 -1
  729. package/dist/types/components/ic-alert/ic-alert.d.ts +12 -12
  730. package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +8 -8
  731. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +6 -6
  732. package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +15 -11
  733. package/dist/types/components/ic-button/ic-button.d.ts +52 -52
  734. package/dist/types/components/ic-card/ic-card.d.ts +32 -32
  735. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +27 -26
  736. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +13 -13
  737. package/dist/types/components/ic-chip/ic-chip.d.ts +16 -16
  738. package/dist/types/components/ic-data-row/ic-data-row.d.ts +11 -11
  739. package/dist/types/components/ic-dialog/ic-dialog.d.ts +47 -47
  740. package/dist/types/components/ic-footer/ic-footer.d.ts +20 -20
  741. package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +9 -9
  742. package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +8 -8
  743. package/dist/types/components/ic-hero/ic-hero.d.ts +24 -24
  744. package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +15 -14
  745. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +15 -15
  746. package/dist/types/components/ic-input-label/ic-input-label.d.ts +14 -14
  747. package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +8 -8
  748. package/dist/types/components/ic-link/ic-link.d.ts +8 -8
  749. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +38 -38
  750. package/dist/types/components/ic-menu/ic-menu.d.ts +63 -63
  751. package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +23 -23
  752. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +21 -21
  753. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +20 -20
  754. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +39 -39
  755. package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +14 -14
  756. package/dist/types/components/ic-page-header/ic-page-header.d.ts +19 -19
  757. package/dist/types/components/ic-pagination/ic-pagination.d.ts +26 -26
  758. package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +15 -15
  759. package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +22 -22
  760. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +19 -21
  761. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +31 -26
  762. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +105 -105
  763. package/dist/types/components/ic-select/ic-select.d.ts +86 -86
  764. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +27 -24
  765. package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +8 -8
  766. package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +8 -8
  767. package/dist/types/components/ic-step/ic-step.d.ts +24 -24
  768. package/dist/types/components/ic-stepper/ic-stepper.d.ts +17 -17
  769. package/dist/types/components/ic-switch/ic-switch.d.ts +23 -23
  770. package/dist/types/components/ic-tab/ic-tab.d.ts +16 -16
  771. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +20 -19
  772. package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +4 -4
  773. package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +6 -6
  774. package/dist/types/components/ic-text-field/ic-text-field.d.ts +102 -102
  775. package/dist/types/components/ic-theme/ic-theme.d.ts +1 -1
  776. package/dist/types/components/ic-toast/ic-toast.d.ts +26 -27
  777. package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +3 -3
  778. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +17 -17
  779. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +32 -32
  780. package/dist/types/components/ic-typography/ic-typography.d.ts +16 -16
  781. package/dist/types/components.d.ts +5 -1
  782. package/dist/types/testspec.setup.d.ts +7 -5
  783. package/hydrate/index.js +1637 -1610
  784. package/package.json +3 -3
  785. package/dist/collection/components/ic-alert/ic-alert.e2e.js.map +0 -1
  786. package/dist/collection/components/ic-alert/ic-alert.spec.js.map +0 -1
  787. package/dist/collection/components/ic-alert/ic-alert.test.a11y.js.map +0 -1
  788. package/dist/collection/components/ic-back-to-top/ic-back-to-top.e2e.js.map +0 -1
  789. package/dist/collection/components/ic-back-to-top/ic-back-to-top.spec.js.map +0 -1
  790. package/dist/collection/components/ic-back-to-top/ic-back-to-top.test.a11y.js.map +0 -1
  791. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.spec.js.map +0 -1
  792. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group-test-examples.js.map +0 -1
  793. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.e2e.js.map +0 -1
  794. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.spec.js.map +0 -1
  795. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.test.a11y.js.map +0 -1
  796. package/dist/collection/components/ic-button/ic-button.e2e.js.map +0 -1
  797. package/dist/collection/components/ic-button/ic-button.spec.js.map +0 -1
  798. package/dist/collection/components/ic-button/ic-button.test.a11y.js.map +0 -1
  799. package/dist/collection/components/ic-card/ic-card.e2e.js.map +0 -1
  800. package/dist/collection/components/ic-card/ic-card.spec.js.map +0 -1
  801. package/dist/collection/components/ic-card/ic-card.test.a11y.js.map +0 -1
  802. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.e2e.js.map +0 -1
  803. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.spec.js.map +0 -1
  804. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +0 -1
  805. package/dist/collection/components/ic-chip/ic-chip.spec.js.map +0 -1
  806. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js.map +0 -1
  807. package/dist/collection/components/ic-classification-banner/ic-classification-banner.spec.js.map +0 -1
  808. package/dist/collection/components/ic-classification-banner/ic-classification-banner.test.a11y.js.map +0 -1
  809. package/dist/collection/components/ic-data-entity/ic-data-entity.spec.js.map +0 -1
  810. package/dist/collection/components/ic-data-entity/ic-data-entity.test.a11y.js.map +0 -1
  811. package/dist/collection/components/ic-data-row/ic-data-row.spec.js.map +0 -1
  812. package/dist/collection/components/ic-data-row/ic-data-row.test.a11y.js.map +0 -1
  813. package/dist/collection/components/ic-dialog/ic-dialog.e2e.js.map +0 -1
  814. package/dist/collection/components/ic-dialog/ic-dialog.spec.js.map +0 -1
  815. package/dist/collection/components/ic-dialog/ic-dialog.test.a11y.js.map +0 -1
  816. package/dist/collection/components/ic-divider/ic-divider.spec.js.map +0 -1
  817. package/dist/collection/components/ic-footer/ic-footer.e2e.js.map +0 -1
  818. package/dist/collection/components/ic-footer/ic-footer.spec.js.map +0 -1
  819. package/dist/collection/components/ic-footer/ic-footer.test.a11y.js.map +0 -1
  820. package/dist/collection/components/ic-footer-link/ic-footer-link.spec.js.map +0 -1
  821. package/dist/collection/components/ic-footer-link/ic-footer-link.test.a11y.js.map +0 -1
  822. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.spec.js.map +0 -1
  823. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +0 -1
  824. package/dist/collection/components/ic-hero/ic-hero.spec.js.map +0 -1
  825. package/dist/collection/components/ic-hero/ic-hero.test.a11y.js.map +0 -1
  826. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.spec.js.map +0 -1
  827. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js.map +0 -1
  828. package/dist/collection/components/ic-input-component-container/ic-input-component-container.spec.js.map +0 -1
  829. package/dist/collection/components/ic-input-container/ic-input-container.spec.js.map +0 -1
  830. package/dist/collection/components/ic-input-label/ic-input-label.spec.js.map +0 -1
  831. package/dist/collection/components/ic-input-validation/ic-input-validation.spec.js.map +0 -1
  832. package/dist/collection/components/ic-link/ic-link.spec.js.map +0 -1
  833. package/dist/collection/components/ic-link/ic-link.test.a11y.js.map +0 -1
  834. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.e2e.js.map +0 -1
  835. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.spec.js.map +0 -1
  836. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.test.a11y.js.map +0 -1
  837. package/dist/collection/components/ic-menu/ic-menu.spec.js.map +0 -1
  838. package/dist/collection/components/ic-menu-group/ic-menu-group.spec.js.map +0 -1
  839. package/dist/collection/components/ic-menu-item/ic-menu-item.spec.js.map +0 -1
  840. package/dist/collection/components/ic-navigation-button/ic-navigation-button.spec.js.map +0 -1
  841. package/dist/collection/components/ic-navigation-group/ic-navigation-group.spec.js.map +0 -1
  842. package/dist/collection/components/ic-navigation-group/ic-navigation-group.test.a11y.js.map +0 -1
  843. package/dist/collection/components/ic-navigation-item/ic-navigation-item.spec.js.map +0 -1
  844. package/dist/collection/components/ic-navigation-item/ic-navigation-item.test.a11y.js.map +0 -1
  845. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.e2e.js.map +0 -1
  846. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.spec.js.map +0 -1
  847. package/dist/collection/components/ic-page-header/ic-page-header.e2e.js.map +0 -1
  848. package/dist/collection/components/ic-page-header/ic-page-header.spec.js.map +0 -1
  849. package/dist/collection/components/ic-page-header/ic-page-header.test.a11y.js.map +0 -1
  850. package/dist/collection/components/ic-pagination/ic-pagination.e2e.js.map +0 -1
  851. package/dist/collection/components/ic-pagination/ic-pagination.spec.js.map +0 -1
  852. package/dist/collection/components/ic-pagination/ic-pagination.test.a11y.js.map +0 -1
  853. package/dist/collection/components/ic-popover-menu/ic-popover-menu.e2e.js.map +0 -1
  854. package/dist/collection/components/ic-popover-menu/ic-popover-menu.spec.js.map +0 -1
  855. package/dist/collection/components/ic-popover-menu/ic-popover-menu.test.a11y.js.map +0 -1
  856. package/dist/collection/components/ic-radio-group/ic-radio-group.e2e.js.map +0 -1
  857. package/dist/collection/components/ic-radio-group/ic-radio-group.spec.js.map +0 -1
  858. package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +0 -1
  859. package/dist/collection/components/ic-search-bar/ic-search-bar.e2e.js.map +0 -1
  860. package/dist/collection/components/ic-search-bar/ic-search-bar.spec.js.map +0 -1
  861. package/dist/collection/components/ic-search-bar/ic-search-bar.test.a11y.js.map +0 -1
  862. package/dist/collection/components/ic-section-container/ic-section-container.spec.js.map +0 -1
  863. package/dist/collection/components/ic-select/ic-select.e2e.js.map +0 -1
  864. package/dist/collection/components/ic-select/ic-select.spec.js.map +0 -1
  865. package/dist/collection/components/ic-select/ic-select.test.a11y.js.map +0 -1
  866. package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js.map +0 -1
  867. package/dist/collection/components/ic-side-navigation/ic-side-navigation.e2e.js.map +0 -1
  868. package/dist/collection/components/ic-side-navigation/ic-side-navigation.spec.js.map +0 -1
  869. package/dist/collection/components/ic-side-navigation/ic-side-navigation.test.a11y.js.map +0 -1
  870. package/dist/collection/components/ic-skeleton/ic-skeleton.spec.js.map +0 -1
  871. package/dist/collection/components/ic-skeleton/ic-skeleton.test.a11y.js.map +0 -1
  872. package/dist/collection/components/ic-status-tag/ic-status-tag.spec.js.map +0 -1
  873. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +0 -1
  874. package/dist/collection/components/ic-step/ic-step.spec.js.map +0 -1
  875. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js.map +0 -1
  876. package/dist/collection/components/ic-stepper/ic-stepper.e2e.js.map +0 -1
  877. package/dist/collection/components/ic-stepper/ic-stepper.spec.js.map +0 -1
  878. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +0 -1
  879. package/dist/collection/components/ic-switch/ic-switch.spec.js.map +0 -1
  880. package/dist/collection/components/ic-switch/ic-switch.test.a11y.js.map +0 -1
  881. package/dist/collection/components/ic-tab/ic-tab.e2e.js.map +0 -1
  882. package/dist/collection/components/ic-tab/ic-tab.spec.js.map +0 -1
  883. package/dist/collection/components/ic-tab-context/ic-tab-context.e2e.js.map +0 -1
  884. package/dist/collection/components/ic-tab-context/ic-tab-context.spec.js.map +0 -1
  885. package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +0 -1
  886. package/dist/collection/components/ic-tab-panel/ic-tab-panel.spec.js.map +0 -1
  887. package/dist/collection/components/ic-text-field/ic-text-field.e2e.js.map +0 -1
  888. package/dist/collection/components/ic-text-field/ic-text-field.input.spec.js.map +0 -1
  889. package/dist/collection/components/ic-text-field/ic-text-field.test.a11y.js.map +0 -1
  890. package/dist/collection/components/ic-text-field/ic-text-field.textarea.spec.js.map +0 -1
  891. package/dist/collection/components/ic-theme/ic-theme.e2e.js.map +0 -1
  892. package/dist/collection/components/ic-theme/ic-theme.spec.js.map +0 -1
  893. package/dist/collection/components/ic-toast/ic-toast.e2e.js.map +0 -1
  894. package/dist/collection/components/ic-toast/ic-toast.spec.js.map +0 -1
  895. package/dist/collection/components/ic-toast/ic-toast.test.a11y.js.map +0 -1
  896. package/dist/collection/components/ic-toast-region/ic-toast-region.spec.js.map +0 -1
  897. package/dist/collection/components/ic-tooltip/ic-tooltip.e2e.js.map +0 -1
  898. package/dist/collection/components/ic-tooltip/ic-tooltip.spec.js.map +0 -1
  899. package/dist/collection/components/ic-tooltip/ic-tooltip.test.a11y.js.map +0 -1
  900. package/dist/collection/components/ic-top-navigation/ic-top-navigation.e2e.js.map +0 -1
  901. package/dist/collection/components/ic-top-navigation/ic-top-navigation.mobile.e2e.js.map +0 -1
  902. package/dist/collection/components/ic-top-navigation/ic-top-navigation.spec.js.map +0 -1
  903. package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +0 -1
  904. package/dist/collection/components/ic-typography/ic-typography.e2e.js.map +0 -1
  905. package/dist/collection/components/ic-typography/ic-typography.spec.js.map +0 -1
  906. package/dist/collection/components/ic-typography/ic-typography.test.a11y.js.map +0 -1
  907. package/dist/core/p-0d325b4c.entry.js.map +0 -1
  908. package/dist/core/p-29d9fea1.entry.js.map +0 -1
  909. package/dist/core/p-2e051e1e.entry.js.map +0 -1
  910. package/dist/core/p-3114a4b3.entry.js +0 -2
  911. package/dist/core/p-3114a4b3.entry.js.map +0 -1
  912. package/dist/core/p-311c38b3.entry.js.map +0 -1
  913. package/dist/core/p-31ccdd50.entry.js.map +0 -1
  914. package/dist/core/p-31e80ccb.entry.js.map +0 -1
  915. package/dist/core/p-323bce82.entry.js.map +0 -1
  916. package/dist/core/p-3918c27a.entry.js +0 -2
  917. package/dist/core/p-3918c27a.entry.js.map +0 -1
  918. package/dist/core/p-3ce0aa02.entry.js.map +0 -1
  919. package/dist/core/p-524557bc.entry.js +0 -2
  920. package/dist/core/p-524557bc.entry.js.map +0 -1
  921. package/dist/core/p-551986d1.entry.js.map +0 -1
  922. package/dist/core/p-57460fa3.entry.js +0 -2
  923. package/dist/core/p-57460fa3.entry.js.map +0 -1
  924. package/dist/core/p-5fcd965f.entry.js.map +0 -1
  925. package/dist/core/p-617950f8.entry.js.map +0 -1
  926. package/dist/core/p-68308ecd.entry.js.map +0 -1
  927. package/dist/core/p-6c76c6ba.entry.js.map +0 -1
  928. package/dist/core/p-97286148.entry.js.map +0 -1
  929. package/dist/core/p-97fd0cc1.entry.js.map +0 -1
  930. package/dist/core/p-a74b8476.entry.js.map +0 -1
  931. package/dist/core/p-ad6c4c02.entry.js.map +0 -1
  932. package/dist/core/p-aeef3c9d.entry.js.map +0 -1
  933. package/dist/core/p-b03bd9c6.entry.js.map +0 -1
  934. package/dist/core/p-b0685167.entry.js.map +0 -1
  935. package/dist/core/p-b35a9909.entry.js.map +0 -1
  936. package/dist/core/p-bad10f6c.entry.js.map +0 -1
  937. package/dist/core/p-bda4414e.entry.js.map +0 -1
  938. package/dist/core/p-c0333310.entry.js.map +0 -1
  939. package/dist/core/p-c3f9fb1d.entry.js +0 -2
  940. package/dist/core/p-c3f9fb1d.entry.js.map +0 -1
  941. package/dist/core/p-ca6820dc.entry.js.map +0 -1
  942. package/dist/core/p-d6694b41.entry.js +0 -2
  943. package/dist/core/p-d6694b41.entry.js.map +0 -1
  944. package/dist/core/p-da4c1409.entry.js.map +0 -1
  945. package/dist/core/p-dbe06c3b.entry.js.map +0 -1
  946. package/dist/core/p-dfd31e28.entry.js.map +0 -1
  947. package/dist/core/p-ea233813.entry.js +0 -2
  948. package/dist/core/p-ea233813.entry.js.map +0 -1
  949. package/dist/core/p-ecdcae46.entry.js.map +0 -1
  950. package/dist/core/p-ef91c17e.entry.js.map +0 -1
  951. package/dist/core/p-f0714432.entry.js.map +0 -1
  952. package/dist/core/p-f381e93f.entry.js.map +0 -1
  953. package/dist/core/p-fd482bd7.entry.js +0 -2
  954. package/dist/core/p-fd482bd7.entry.js.map +0 -1
  955. package/dist/core/p-fe2c4009.entry.js +0 -2
  956. package/dist/core/p-fe2c4009.entry.js.map +0 -1
  957. /package/dist/collection/components/ic-alert/{ic-alert.e2e.js → test/basic/ic-alert.e2e.js} +0 -0
  958. /package/dist/collection/components/ic-back-to-top/{ic-back-to-top.test.a11y.js → test/a11y/ic-back-to-top.test.a11y.js} +0 -0
  959. /package/dist/collection/components/ic-back-to-top/{ic-back-to-top.e2e.js → test/basic/ic-back-to-top.e2e.js} +0 -0
  960. /package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group-test-examples.js → test/basic/ic-breadcrumb-group-test-examples.js} +0 -0
  961. /package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group.e2e.js → test/basic/ic-breadcrumb-group.e2e.js} +0 -0
  962. /package/dist/collection/components/ic-button/{ic-button.e2e.js → test/basic/ic-button.e2e.js} +0 -0
  963. /package/dist/collection/components/ic-card/{ic-card.e2e.js → test/basic/ic-card.e2e.js} +0 -0
  964. /package/dist/collection/components/ic-checkbox-group/{ic-checkbox-group.e2e.js → test/basic/ic-checkbox-group.e2e.js} +0 -0
  965. /package/dist/collection/components/ic-dialog/{ic-dialog.e2e.js → test/basic/ic-dialog.e2e.js} +0 -0
  966. /package/dist/collection/components/ic-footer/{ic-footer.e2e.js → test/basic/ic-footer.e2e.js} +0 -0
  967. /package/dist/collection/components/ic-loading-indicator/{ic-loading-indicator.e2e.js → test/basic/ic-loading-indicator.e2e.js} +0 -0
  968. /package/dist/collection/components/ic-navigation-menu/{ic-navigation-menu.e2e.js → test/basic/ic-navigation-menu.e2e.js} +0 -0
  969. /package/dist/collection/components/ic-page-header/{ic-page-header.e2e.js → test/basic/ic-page-header.e2e.js} +0 -0
  970. /package/dist/collection/components/ic-pagination/{ic-pagination.e2e.js → test/basic/ic-pagination.e2e.js} +0 -0
  971. /package/dist/collection/components/ic-popover-menu/{ic-popover-menu.e2e.js → test/basic/ic-popover-menu.e2e.js} +0 -0
  972. /package/dist/collection/components/ic-radio-group/{ic-radio-group.e2e.js → test/basic/ic-radio-group.e2e.js} +0 -0
  973. /package/dist/collection/components/ic-search-bar/{ic-search-bar.e2e.js → test/basic/ic-search-bar.e2e.js} +0 -0
  974. /package/dist/collection/components/ic-select/{ic-select.e2e.js → test/basic/ic-select.e2e.js} +0 -0
  975. /package/dist/collection/components/ic-side-navigation/{ic-side-navigation-test-examples.js → test/basic/ic-side-navigation-test-examples.js} +0 -0
  976. /package/dist/collection/components/ic-side-navigation/{ic-side-navigation.e2e.js → test/basic/ic-side-navigation.e2e.js} +0 -0
  977. /package/dist/collection/components/ic-stepper/{ic-stepper-test-examples.js → test/basic/ic-stepper-test-examples.js} +0 -0
  978. /package/dist/collection/components/ic-stepper/{ic-stepper.e2e.js → test/basic/ic-stepper.e2e.js} +0 -0
  979. /package/dist/collection/components/ic-tab/{ic-tab.e2e.js → test/basic/ic-tab.e2e.js} +0 -0
  980. /package/dist/collection/components/ic-tab-context/{ic-tab-context.test.a11y.js → test/a11y/ic-tab-context.test.a11y.js} +0 -0
  981. /package/dist/collection/components/ic-text-field/{ic-text-field.test.a11y.js → test/a11y/ic-text-field.test.a11y.js} +0 -0
  982. /package/dist/collection/components/ic-text-field/{ic-text-field.e2e.js → test/basic/ic-text-field.e2e.js} +0 -0
  983. /package/dist/collection/components/ic-theme/{ic-theme.e2e.js → test/basic/ic-theme.e2e.js} +0 -0
  984. /package/dist/collection/components/ic-toast/{ic-toast.e2e.js → test/basic/ic-toast.e2e.js} +0 -0
  985. /package/dist/collection/components/ic-tooltip/{ic-tooltip.e2e.js → test/basic/ic-tooltip.e2e.js} +0 -0
  986. /package/dist/collection/components/ic-top-navigation/{ic-top-navigation.e2e.js → test/basic/ic-top-navigation.e2e.js} +0 -0
  987. /package/dist/collection/components/ic-top-navigation/{ic-top-navigation.mobile.e2e.js → test/basic/ic-top-navigation.mobile.e2e.js} +0 -0
  988. /package/dist/collection/components/ic-typography/{ic-typography.e2e.js → test/basic/ic-typography.e2e.js} +0 -0
  989. /package/dist/core/{p-e3e6308b.entry.js.map → p-e0bbf81e.entry.js.map} +0 -0
  990. /package/dist/types/components/ic-alert/{ic-alert.test.a11y.d.ts → test/a11y/ic-alert.test.a11y.d.ts} +0 -0
  991. /package/dist/types/components/ic-back-to-top/{ic-back-to-top.test.a11y.d.ts → test/a11y/ic-back-to-top.test.a11y.d.ts} +0 -0
  992. /package/dist/types/components/ic-breadcrumb-group/{ic-breadcrumb-group.test.a11y.d.ts → test/a11y/ic-breadcrumb-group.test.a11y.d.ts} +0 -0
  993. /package/dist/types/components/ic-breadcrumb-group/{ic-breadcrumb-group-test-examples.d.ts → test/basic/ic-breadcrumb-group-test-examples.d.ts} +0 -0
  994. /package/dist/types/components/ic-button/{ic-button.test.a11y.d.ts → test/a11y/ic-button.test.a11y.d.ts} +0 -0
  995. /package/dist/types/components/ic-card/{ic-card.test.a11y.d.ts → test/a11y/ic-card.test.a11y.d.ts} +0 -0
  996. /package/dist/types/components/ic-checkbox-group/{ic-checkbox-group.test.a11y.d.ts → test/a11y/ic-checkbox-group.test.a11y.d.ts} +0 -0
  997. /package/dist/types/components/ic-chip/{ic-chip.test.a11y.d.ts → test/a11y/ic-chip.test.a11y.d.ts} +0 -0
  998. /package/dist/types/components/ic-classification-banner/{ic-classification-banner.test.a11y.d.ts → test/a11y/ic-classification-banner.test.a11y.d.ts} +0 -0
  999. /package/dist/types/components/ic-data-entity/{ic-data-entity.test.a11y.d.ts → test/a11y/ic-data-entity.test.a11y.d.ts} +0 -0
  1000. /package/dist/types/components/ic-data-row/{ic-data-row.test.a11y.d.ts → test/a11y/ic-data-row.test.a11y.d.ts} +0 -0
  1001. /package/dist/types/components/ic-dialog/{ic-dialog.test.a11y.d.ts → test/a11y/ic-dialog.test.a11y.d.ts} +0 -0
  1002. /package/dist/types/components/ic-footer/{ic-footer.test.a11y.d.ts → test/a11y/ic-footer.test.a11y.d.ts} +0 -0
  1003. /package/dist/types/components/ic-footer-link/{ic-footer-link.test.a11y.d.ts → test/a11y/ic-footer-link.test.a11y.d.ts} +0 -0
  1004. /package/dist/types/components/ic-footer-link-group/{ic-footer-link-group.test.a11y.d.ts → test/a11y/ic-footer-link-group.test.a11y.d.ts} +0 -0
  1005. /package/dist/types/components/ic-hero/{ic-hero.test.a11y.d.ts → test/a11y/ic-hero.test.a11y.d.ts} +0 -0
  1006. /package/dist/types/components/ic-horizontal-scroll/{ic-horizontal-scroll.test.a11y.d.ts → test/a11y/ic-horizontal-scroll.test.a11y.d.ts} +0 -0
  1007. /package/dist/types/components/ic-link/{ic-link.test.a11y.d.ts → test/a11y/ic-link.test.a11y.d.ts} +0 -0
  1008. /package/dist/types/components/ic-loading-indicator/{ic-loading-indicator.test.a11y.d.ts → test/a11y/ic-loading-indicator.test.a11y.d.ts} +0 -0
  1009. /package/dist/types/components/ic-navigation-group/{ic-navigation-group.test.a11y.d.ts → test/a11y/ic-navigation-group.test.a11y.d.ts} +0 -0
  1010. /package/dist/types/components/ic-navigation-item/{ic-navigation-item.test.a11y.d.ts → test/a11y/ic-navigation-item.test.a11y.d.ts} +0 -0
  1011. /package/dist/types/components/ic-page-header/{ic-page-header.test.a11y.d.ts → test/a11y/ic-page-header.test.a11y.d.ts} +0 -0
  1012. /package/dist/types/components/ic-pagination/{ic-pagination.test.a11y.d.ts → test/a11y/ic-pagination.test.a11y.d.ts} +0 -0
  1013. /package/dist/types/components/ic-popover-menu/{ic-popover-menu.test.a11y.d.ts → test/a11y/ic-popover-menu.test.a11y.d.ts} +0 -0
  1014. /package/dist/types/components/ic-radio-group/{ic-radio-group.test.a11y.d.ts → test/a11y/ic-radio-group.test.a11y.d.ts} +0 -0
  1015. /package/dist/types/components/ic-search-bar/{ic-search-bar.test.a11y.d.ts → test/a11y/ic-search-bar.test.a11y.d.ts} +0 -0
  1016. /package/dist/types/components/ic-select/{ic-select.test.a11y.d.ts → test/a11y/ic-select.test.a11y.d.ts} +0 -0
  1017. /package/dist/types/components/ic-side-navigation/{ic-side-navigation.test.a11y.d.ts → test/a11y/ic-side-navigation.test.a11y.d.ts} +0 -0
  1018. /package/dist/types/components/ic-side-navigation/{ic-side-navigation-test-examples.d.ts → test/basic/ic-side-navigation-test-examples.d.ts} +0 -0
  1019. /package/dist/types/components/ic-skeleton/{ic-skeleton.test.a11y.d.ts → test/a11y/ic-skeleton.test.a11y.d.ts} +0 -0
  1020. /package/dist/types/components/ic-status-tag/{ic-status-tag.test.a11y.d.ts → test/a11y/ic-status-tag.test.a11y.d.ts} +0 -0
  1021. /package/dist/types/components/ic-stepper/{ic-stepper.test.a11y.d.ts → test/a11y/ic-stepper.test.a11y.d.ts} +0 -0
  1022. /package/dist/types/components/ic-stepper/{ic-stepper-test-examples.d.ts → test/basic/ic-stepper-test-examples.d.ts} +0 -0
  1023. /package/dist/types/components/ic-switch/{ic-switch.test.a11y.d.ts → test/a11y/ic-switch.test.a11y.d.ts} +0 -0
  1024. /package/dist/types/components/ic-tab-context/{ic-tab-context.test.a11y.d.ts → test/a11y/ic-tab-context.test.a11y.d.ts} +0 -0
  1025. /package/dist/types/components/ic-text-field/{ic-text-field.test.a11y.d.ts → test/a11y/ic-text-field.test.a11y.d.ts} +0 -0
  1026. /package/dist/types/components/ic-toast/{ic-toast.test.a11y.d.ts → test/a11y/ic-toast.test.a11y.d.ts} +0 -0
  1027. /package/dist/types/components/ic-tooltip/{ic-tooltip.test.a11y.d.ts → test/a11y/ic-tooltip.test.a11y.d.ts} +0 -0
  1028. /package/dist/types/components/ic-top-navigation/{ic-top-navigation.test.a11y.d.ts → test/a11y/ic-top-navigation.test.a11y.d.ts} +0 -0
  1029. /package/dist/types/components/ic-typography/{ic-typography.test.a11y.d.ts → test/a11y/ic-typography.test.a11y.d.ts} +0 -0
@@ -14,18 +14,18 @@ const Step = /*@__PURE__*/ proxyCustomElement(class Step extends HTMLElement {
14
14
  super();
15
15
  this.__registerHost();
16
16
  this.__attachShadow();
17
- this.variant = undefined;
18
- this.stepTitle = undefined;
19
- this.stepSubtitle = undefined;
20
- this.stepStatus = undefined;
21
- this.stepType = "active";
22
- this.current = false;
23
17
  this.compactStepStyling = undefined;
24
- this.stepNum = undefined;
18
+ this.current = false;
25
19
  this.lastStep = undefined;
26
20
  this.lastStepNum = undefined;
27
21
  this.nextStepTitle = undefined;
28
22
  this.progress = undefined;
23
+ this.stepNum = undefined;
24
+ this.stepStatus = undefined;
25
+ this.stepSubtitle = undefined;
26
+ this.stepTitle = undefined;
27
+ this.variant = undefined;
28
+ this.stepType = "active";
29
29
  }
30
30
  stepTypeChangeHandler() {
31
31
  if (this.variant === "compact" && this.stepType === "current") {
@@ -134,18 +134,18 @@ const Step = /*@__PURE__*/ proxyCustomElement(class Step extends HTMLElement {
134
134
  }; }
135
135
  static get style() { return icStepCss; }
136
136
  }, [1, "ic-step", {
137
- "variant": [1],
138
- "stepTitle": [1, "step-title"],
139
- "stepSubtitle": [1, "step-subtitle"],
140
- "stepStatus": [1, "step-status"],
141
- "stepType": [1, "step-type"],
142
- "current": [1028],
143
137
  "compactStepStyling": [1, "compact-step-styling"],
144
- "stepNum": [2, "step-num"],
138
+ "current": [1028],
145
139
  "lastStep": [4, "last-step"],
146
140
  "lastStepNum": [2, "last-step-num"],
147
141
  "nextStepTitle": [1, "next-step-title"],
148
- "progress": [2]
142
+ "progress": [2],
143
+ "stepNum": [2, "step-num"],
144
+ "stepStatus": [1, "step-status"],
145
+ "stepSubtitle": [1, "step-subtitle"],
146
+ "stepTitle": [1, "step-title"],
147
+ "variant": [1],
148
+ "stepType": [1, "step-type"]
149
149
  }]);
150
150
  function defineCustomElement$1() {
151
151
  if (typeof customElements === "undefined") {
@@ -1 +1 @@
1
- {"file":"ic-step.js","mappings":";;;;;;;;;AAAA,MAAM,SAAS,GAAG,8rIAA8rI;;MCUnsI,IAAI;;;;;;;;;oBAyBkB,QAAQ;mBAKI,KAAK;;;;;;;;EAiClD,qBAAqB;IACnB,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;MAC7D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;KACrB;SAAM;MACL,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;KACtB;GACF;EAED,MAAM;;IAEJ,IAAI,SAAS,GAAG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AAa,CAAC,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC;QAC3D,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI;OAC1B,IAEA,IAAI,CAAC,OAAO,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,CAClD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/ic-step/ic-step.css?tag=ic-step&encapsulation=shadow","./src/components/ic-step/ic-step.tsx"],"sourcesContent":["/* SHARED STYLING */\n:host {\n display: flex;\n flex: auto;\n}\n\n.step {\n display: flex;\n flex: 1 1 0;\n}\n\n.step-icon {\n display: flex;\n justify-content: center;\n}\n\n.step-title,\n.step-subtitle,\n.step-status,\n.next-step {\n white-space: pre-line;\n}\n\n.visually-hidden {\n position: absolute;\n left: -625rem;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n/* COMPACT STEP STYLING */\n:host(.compact) {\n column-gap: var(--ic-space-sm);\n\n --compact-step-inner-color: var(--ic-status-info);\n --compact-step-circular-line-width: var(--ic-space-xxs);\n}\n\n:host(.compact) .step {\n column-gap: var(--ic-space-sm);\n}\n\n:host(.compact) .step:not(.current) {\n display: none;\n opacity: 0;\n visibility: hidden;\n}\n\n.compact-step-progress-indicator {\n margin: var(--ic-space-xs) 0 0;\n}\n\n:host(.compact) .step-title-area {\n display: flex;\n flex-direction: column;\n width: 14.25rem;\n}\n\n.info-line {\n display: flex;\n column-gap: var(--ic-space-xs);\n}\n\n.step-status {\n display: flex;\n color: var(--ic-color-secondary-text);\n column-gap: var(--ic-space-xxxs);\n}\n\n.compact-step-completed .step-status {\n color: var(--ic-status-success);\n}\n\n.compact-step-disabled :is(.step-title, .step-status) {\n color: var(--ic-color-tertiary-text);\n}\n\n.step-num {\n color: var(--ic-color-secondary-text);\n white-space: nowrap;\n}\n\n:host(.compact) .step-icon {\n margin: var(--ic-space-xxxs);\n}\n\n:host(.compact) .step-icon svg {\n width: var(--ic-space-md);\n height: var(--ic-space-md);\n}\n\n/* DEFAULT STEP STYLING */\n:host(.default) .step {\n flex-direction: column;\n}\n\n:host(.default.last-step) {\n flex-grow: initial;\n}\n\n.step-top {\n display: flex;\n width: 100%;\n align-items: center;\n align-self: flex-start;\n height: 2.5rem;\n}\n\n:host(.default) .step-icon {\n border-radius: 50%;\n}\n\n.step-icon-inner {\n width: var(--ic-space-xl);\n height: var(--ic-space-xl);\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n}\n\n:host(.default) .current {\n color: var(--ic-status-info);\n}\n\n:host(.default) .step-title-area {\n margin: var(--ic-space-xs) 0;\n padding-right: var(--ic-space-xs);\n width: 100%;\n}\n\n:host(.default) .step-title,\n.step-subtitle {\n width: fit-content;\n}\n\n.step-subtitle {\n color: var(--ic-color-tertiary-text);\n}\n\n.current .step-subtitle {\n color: var(--ic-color-primary-text);\n}\n\n:host(.default) .completed {\n color: var(--ic-status-success);\n}\n\n.active .step-icon-inner {\n box-shadow: inset var(--ic-architectural-200) 0 0 0 0.125rem;\n}\n\n.current .step-icon-inner {\n background-color: var(--ic-status-info);\n color: white;\n}\n\n.disabled {\n color: var(--ic-architectural-200);\n}\n\n.disabled .step-icon-inner {\n border: var(--ic-space-1px) dashed var(--ic-architectural-200);\n width: calc(var(--ic-space-xl) - var(--ic-space-xxxs));\n height: calc(var(--ic-space-xl) - var(--ic-space-xxxs));\n}\n\n.disabled .step-title-area {\n color: var(--ic-color-tertiary-text);\n}\n\n.completed .step-icon-inner {\n background: var(--ic-status-success);\n box-shadow: inset var(--ic-status-success) 0 0 0 var(--ic-space-xxxs);\n border-radius: 100%;\n}\n\n:host(.default) .current .step-icon {\n border: var(--ic-space-xxxs) solid var(--ic-status-info);\n padding: var(--ic-space-xxxs);\n margin: 0 calc(-1 * var(--ic-space-xxxs));\n\n /* compensating for the circle being bigger than other steps */\n}\n\n.step-connect {\n height: var(--ic-space-xxxs);\n background-color: var(--ic-architectural-200);\n margin: 0 var(--ic-space-xs);\n border-radius: var(--ic-space-xxs);\n width: 100%;\n}\n\n.aligned-full-width.step-connect {\n min-width: 6.25rem;\n width: 100%;\n}\n\n.disabled .step-connect {\n height: 0;\n background-color: rgb(0 0 0 / 0%);\n border-top: 0.125rem dashed var(--ic-architectural-200);\n border-radius: 0;\n}\n\n.completed .step-connect {\n background-color: var(--ic-status-success);\n}\n\n.step-connect-inner {\n width: 70%;\n display: flex;\n flex: auto;\n height: var(--ic-space-xxxs);\n border-radius: var(--ic-space-xxs);\n background-color: var(--ic-status-info);\n}\n\n.step-icon-inner .check-icon {\n padding-top: var(--ic-space-xxs);\n}\n\n.step-icon-inner .check-icon svg {\n width: var(--ic-space-md);\n height: auto;\n}\n\n.step-icon-inner .check-icon > svg > path {\n fill: var(--ic-color-white-text);\n}\n\n/** High Contrast **/\n@media (forced-colors: active) {\n /* COMPACT STEP */\n .compact-step-disabled :is(.step-title, .step-status) {\n color: GrayText;\n }\n\n /* DEFAULT STEP */\n .step-connect:not(.disabled .step-connect) {\n border: var(--ic-hc-border);\n }\n\n .active .step-icon-inner,\n .completed .step-icon-inner,\n .current .step-icon-inner {\n forced-color-adjust: none;\n box-shadow: inset canvastext 0 0 0 0.125rem;\n background-color: transparent;\n color: canvastext;\n }\n\n :host(.default) .current .step-icon {\n padding: 0;\n border: none;\n }\n\n .disabled,\n .disabled .step-title-area {\n color: GrayText;\n }\n\n .step-connect-inner,\n .completed .step-connect {\n background-color: canvastext;\n }\n\n .step-icon-inner .check-icon > svg > path {\n fill: canvastext;\n }\n}\n","import { Component, Host, h, Prop, Element, Watch } from \"@stencil/core\";\nimport checkIcon from \"../../assets/check-icon.svg\";\nimport warningIcon from \"../../assets/warning-icon-outline.svg\";\nimport { IcStepVariants, IcStepStatuses, IcStepTypes } from \"./ic-step.types\";\n\n@Component({\n tag: \"ic-step\",\n styleUrl: \"ic-step.css\",\n shadow: true,\n})\nexport class Step {\n @Element() el: HTMLIcStepElement;\n /**\n * @internal The variant of the step. This is managed by ic-stepper.\n */\n @Prop() variant!: IcStepVariants;\n\n /**\n * The title of the step within the stepper.\n */\n @Prop() stepTitle?: string;\n\n /**\n * Additional information about the step. Use this prop to override the default step status messaging displayed when selecting a step type or step status.\n */\n @Prop() stepSubtitle?: string;\n\n /**\n * The status of the step. Use this prop to display a status message on the step if it is required or optional.\n */\n @Prop() stepStatus?: IcStepStatuses;\n\n /**\n * The state of the step within the stepper.\n */\n @Prop() stepType?: IcStepTypes = \"active\";\n\n /**\n * @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.\n */\n @Prop({ mutable: true }) current?: boolean = false;\n\n /**\n * @internal If a compact stepper is being used, this sets the styling of the step.\n */\n @Prop() compactStepStyling?: IcStepTypes;\n\n /**\n * @internal The step number, managed by ic-stepper.\n */\n @Prop() stepNum?: number;\n\n /**\n * @internal If `true`, the step will be marked as being the last one in the series. This is managed by ic-stepper.\n */\n @Prop() lastStep!: boolean;\n\n /**\n * @internal The step number of the final step. This is managed by ic-stepper.\n */\n @Prop() lastStepNum?: number;\n\n /**\n * @internal The name of the next step. This is managed by ic-stepper.\n */\n @Prop() nextStepTitle?: string;\n\n /**\n * @internal The progress of the next step, calculated by dividing the current step number by the total number of steps. This is managed by ic-stepper.\n */\n @Prop() progress?: number;\n\n @Watch(\"stepType\")\n stepTypeChangeHandler(): void {\n if (this.variant === \"compact\" && this.stepType === \"current\") {\n this.current = true;\n } else {\n this.current = false;\n }\n }\n\n render() {\n // ARIA LABEL\n let ariaLabel = \"\";\n\n if (this.stepType === \"completed\") {\n ariaLabel = \". Completed step\";\n } else if (this.stepType === \"disabled\") {\n ariaLabel = \". Non-required step\";\n } else if (this.stepStatus === \"required\") {\n ariaLabel = \". Required step\";\n } else if (this.stepStatus === \"optional\") {\n ariaLabel = \". Optional step\";\n }\n\n // STEP STATUS\n let stepStatus;\n if (this.stepStatus) {\n stepStatus = this.stepStatus[0].toUpperCase() + this.stepStatus.slice(1);\n }\n\n // STEP TYPE\n let stepType;\n if (\n this.stepType === \"disabled\" ||\n this.compactStepStyling === \"disabled\"\n ) {\n stepType = \"Not required\";\n } else if (this.compactStepStyling === \"completed\") {\n stepType = \"Completed\";\n }\n\n // STATUS ICON FOR COMPACT STEP\n let statusIcon;\n if (\n this.stepType === \"completed\" ||\n this.compactStepStyling === \"completed\"\n ) {\n statusIcon = (\n <span\n class=\"check-icon step-icon\"\n aria-hidden=\"true\"\n innerHTML={checkIcon}\n ></span>\n );\n } else if (\n this.stepType === \"disabled\" ||\n this.compactStepStyling === \"disabled\"\n ) {\n statusIcon = (\n <span\n class=\"warning-icon step-icon\"\n aria-hidden=\"true\"\n innerHTML={warningIcon}\n ></span>\n );\n }\n\n // COMPACT STEP COMPONENT\n const compactStep = (\n <div\n class={{\n [\"step\"]: true,\n [\"current\"]: this.current,\n [`compact-step-${this.compactStepStyling}`]:\n !!this.compactStepStyling,\n }}\n >\n <ic-loading-indicator\n class={{\n \"compact-step-progress-indicator\": true,\n \"not-required\":\n this.stepType === \"disabled\" ||\n this.compactStepStyling === \"disabled\",\n }}\n aria-hidden=\"true\"\n size=\"small\"\n inner-label={this.stepNum}\n progress={this.progress}\n ></ic-loading-indicator>\n <div class=\"step-title-area\">\n <ic-typography variant=\"h4\" class=\"step-title\">\n {this.stepTitle}\n </ic-typography>\n <div class=\"info-line\">\n <ic-typography variant=\"caption\" class=\"step-num\">\n {`${this.stepNum} of ${this.lastStepNum}`}\n <span class=\"visually-hidden\"> steps</span>\n </ic-typography>\n {(this.stepSubtitle ||\n this.stepType === \"completed\" ||\n this.stepType === \"disabled\" ||\n (this.variant === \"compact\" &&\n !!this.compactStepStyling &&\n this.compactStepStyling !== \"active\") ||\n !!this.stepStatus) && (\n <div class=\"step-status\">\n {statusIcon !== undefined && statusIcon}\n {(this.stepSubtitle || stepType) && (\n <ic-typography variant=\"caption\">\n {this.stepSubtitle !== null &&\n this.stepSubtitle !== undefined\n ? this.stepSubtitle\n : this.stepType === \"disabled\" ||\n (this.variant === \"compact\" &&\n this.compactStepStyling === \"disabled\") ||\n this.stepType === \"completed\" ||\n (this.variant === \"compact\" &&\n this.compactStepStyling === \"completed\")\n ? stepType\n : this.stepStatus && stepStatus}\n </ic-typography>\n )}\n </div>\n )}\n </div>\n {this.lastStep ? (\n <ic-typography variant=\"subtitle-small\" class=\"next-step\">\n Last step\n </ic-typography>\n ) : (\n this.nextStepTitle !== undefined && (\n <ic-typography variant=\"subtitle-small\" class=\"next-step\">\n Next<span class=\"visually-hidden\"> step is</span>:{\" \"}\n {this.nextStepTitle}\n </ic-typography>\n )\n )}\n </div>\n </div>\n );\n\n // ICON FOR DEFAULT STEP\n let icon;\n if (this.stepType !== \"completed\") {\n icon = (\n <ic-typography variant=\"subtitle-small\">\n <span class=\"step-icon-inner\" aria-hidden=\"true\">\n {this.stepNum}\n </span>\n </ic-typography>\n );\n } else {\n icon = (\n <div class=\"step-icon-inner\" aria-hidden=\"true\">\n <span class=\"check-icon\" innerHTML={checkIcon}></span>\n </div>\n );\n }\n\n // STEP CONNECT FOR DEFAULT STEP\n const partialBar = this.stepType === \"current\" && (\n <div class=\"step-connect-inner\"></div>\n );\n\n const finalStep = !this.lastStep && (\n <div\n class={{\n [\"step-connect\"]: true,\n [\"aligned-full-width\"]:\n this.el.parentElement.classList.contains(\"default\") &&\n !this.el.parentElement.classList.contains(\"aligned-left\"),\n }}\n >\n {partialBar}\n </div>\n );\n\n // DEFAULT STEP COMPONENT\n const defaultStep = (\n <div\n class={{\n [\"step\"]: true,\n [`${this.stepType}`]: true,\n }}\n >\n <div class=\"step-top\">\n <div class=\"step-icon\">{icon}</div>\n {finalStep}\n </div>\n {(this.stepTitle || this.stepSubtitle || this.stepStatus) && (\n <div class=\"step-title-area\">\n {this.stepTitle && (\n <ic-typography variant=\"subtitle-large\" class=\"step-title\">\n {this.stepTitle}\n </ic-typography>\n )}\n {this.stepTitle && (this.stepSubtitle || this.stepStatus) && (\n <ic-typography variant=\"caption\" class=\"step-subtitle\">\n {this.stepSubtitle !== null && this.stepSubtitle !== undefined\n ? this.stepSubtitle\n : stepStatus}\n </ic-typography>\n )}\n </div>\n )}\n </div>\n );\n\n return (\n <Host\n role=\"listitem\"\n aria-label={`Step ${this.stepNum}${ariaLabel}`}\n aria-current={(this.current || this.stepType === \"current\") && \"step\"}\n class={{\n [\"aligned-full-width\"]:\n this.el.parentElement.classList.contains(\"default\") &&\n !this.el.parentElement.classList.contains(\"aligned-left\"),\n [`${this.variant}`]: true,\n }}\n >\n {this.variant === \"compact\" ? compactStep : defaultStep}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ic-step.js","mappings":";;;;;;;;;AAAA,MAAM,SAAS,GAAG,8rIAA8rI;;MCUnsI,IAAI;;;;;;mBAW8B,KAAK;;;;;;;;;;oBAkDjB,QAAQ;;EAGzC,qBAAqB;IACnB,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;MAC7D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;KACrB;SAAM;MACL,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;KACtB;GACF;EAED,MAAM;;IAEJ,IAAI,SAAS,GAAG,EAAE,CAAC;IAEnB,IAAI,IAAI,CAAC,QAAQ,KAAK,WAAW,EAAE;MACjC,SAAS,GAAG,kBAAkB,CAAC;KAChC;SAAM,IAAI,IAAI,CAAC,QAAQ,KAAK,UAAU,EAAE;MACvC,SAAS,GAAG,qBAAqB,CAAC;KACnC;SAAM,IAAI,IAAI,CAAC,UAAU,KAAK,UAAU,EAAE;MACzC,SAAS,GAAG,iBAAiB,CAAC;KAC/B;SAAM,IAAI,IAAI,CAAC,UAAU,KAAK,UAAU,EAAE;MACzC,SAAS,GAAG,iBAAiB,CAAC;KAC/B;;IAGD,IAAI,UAAU,CAAC;IACf,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,C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,WAAK,KAAK,EAAC,iBAAiB,IACzB,IAAI,CAAC,SAAS,KACb,qBAAe,OAAO,EAAC,gBAAgB,EAAC,KAAK,EAAC,YAAY,IACvD,IAAI,CAAC,SAAS,CACD,CACjB,EACA,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,UAAU,CAAC,KACvD,qBAAe,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,eAAe,IACnD,IAAI,CAAC,YAAY,KAAK,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS;QAC1D,IAAI,CAAC,YAAY;QACjB,UAAU,CACA,CACjB,CACG,CACP,CACG,CACP,CAAC;IAEF,QACE,EAAC,IAAI,IACH,IAAI,EAAC,UAAU,gBACH,QAAQ,IAAI,CAAC,OAAO,GAAG,SAAS,EAAE,kBAChC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,KAAK,MAAM,EACrE,KAAK,EAAE;QACL,CAAC,oBAAoB,GACnB,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC;UACnD,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC;QAC3D,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI;OAC1B,IAEA,IAAI,CAAC,OAAO,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,CAClD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/ic-step/ic-step.css?tag=ic-step&encapsulation=shadow","./src/components/ic-step/ic-step.tsx"],"sourcesContent":["/* SHARED STYLING */\n:host {\n display: flex;\n flex: auto;\n}\n\n.step {\n display: flex;\n flex: 1 1 0;\n}\n\n.step-icon {\n display: flex;\n justify-content: center;\n}\n\n.step-title,\n.step-subtitle,\n.step-status,\n.next-step {\n white-space: pre-line;\n}\n\n.visually-hidden {\n position: absolute;\n left: -625rem;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n/* COMPACT STEP STYLING */\n:host(.compact) {\n column-gap: var(--ic-space-sm);\n\n --compact-step-inner-color: var(--ic-status-info);\n --compact-step-circular-line-width: var(--ic-space-xxs);\n}\n\n:host(.compact) .step {\n column-gap: var(--ic-space-sm);\n}\n\n:host(.compact) .step:not(.current) {\n display: none;\n opacity: 0;\n visibility: hidden;\n}\n\n.compact-step-progress-indicator {\n margin: var(--ic-space-xs) 0 0;\n}\n\n:host(.compact) .step-title-area {\n display: flex;\n flex-direction: column;\n width: 14.25rem;\n}\n\n.info-line {\n display: flex;\n column-gap: var(--ic-space-xs);\n}\n\n.step-status {\n display: flex;\n color: var(--ic-color-secondary-text);\n column-gap: var(--ic-space-xxxs);\n}\n\n.compact-step-completed .step-status {\n color: var(--ic-status-success);\n}\n\n.compact-step-disabled :is(.step-title, .step-status) {\n color: var(--ic-color-tertiary-text);\n}\n\n.step-num {\n color: var(--ic-color-secondary-text);\n white-space: nowrap;\n}\n\n:host(.compact) .step-icon {\n margin: var(--ic-space-xxxs);\n}\n\n:host(.compact) .step-icon svg {\n width: var(--ic-space-md);\n height: var(--ic-space-md);\n}\n\n/* DEFAULT STEP STYLING */\n:host(.default) .step {\n flex-direction: column;\n}\n\n:host(.default.last-step) {\n flex-grow: initial;\n}\n\n.step-top {\n display: flex;\n width: 100%;\n align-items: center;\n align-self: flex-start;\n height: 2.5rem;\n}\n\n:host(.default) .step-icon {\n border-radius: 50%;\n}\n\n.step-icon-inner {\n width: var(--ic-space-xl);\n height: var(--ic-space-xl);\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n}\n\n:host(.default) .current {\n color: var(--ic-status-info);\n}\n\n:host(.default) .step-title-area {\n margin: var(--ic-space-xs) 0;\n padding-right: var(--ic-space-xs);\n width: 100%;\n}\n\n:host(.default) .step-title,\n.step-subtitle {\n width: fit-content;\n}\n\n.step-subtitle {\n color: var(--ic-color-tertiary-text);\n}\n\n.current .step-subtitle {\n color: var(--ic-color-primary-text);\n}\n\n:host(.default) .completed {\n color: var(--ic-status-success);\n}\n\n.active .step-icon-inner {\n box-shadow: inset var(--ic-architectural-200) 0 0 0 0.125rem;\n}\n\n.current .step-icon-inner {\n background-color: var(--ic-status-info);\n color: white;\n}\n\n.disabled {\n color: var(--ic-architectural-200);\n}\n\n.disabled .step-icon-inner {\n border: var(--ic-space-1px) dashed var(--ic-architectural-200);\n width: calc(var(--ic-space-xl) - var(--ic-space-xxxs));\n height: calc(var(--ic-space-xl) - var(--ic-space-xxxs));\n}\n\n.disabled .step-title-area {\n color: var(--ic-color-tertiary-text);\n}\n\n.completed .step-icon-inner {\n background: var(--ic-status-success);\n box-shadow: inset var(--ic-status-success) 0 0 0 var(--ic-space-xxxs);\n border-radius: 100%;\n}\n\n:host(.default) .current .step-icon {\n border: var(--ic-space-xxxs) solid var(--ic-status-info);\n padding: var(--ic-space-xxxs);\n margin: 0 calc(-1 * var(--ic-space-xxxs));\n\n /* compensating for the circle being bigger than other steps */\n}\n\n.step-connect {\n height: var(--ic-space-xxxs);\n background-color: var(--ic-architectural-200);\n margin: 0 var(--ic-space-xs);\n border-radius: var(--ic-space-xxs);\n width: 100%;\n}\n\n.aligned-full-width.step-connect {\n min-width: 6.25rem;\n width: 100%;\n}\n\n.disabled .step-connect {\n height: 0;\n background-color: rgb(0 0 0 / 0%);\n border-top: 0.125rem dashed var(--ic-architectural-200);\n border-radius: 0;\n}\n\n.completed .step-connect {\n background-color: var(--ic-status-success);\n}\n\n.step-connect-inner {\n width: 70%;\n display: flex;\n flex: auto;\n height: var(--ic-space-xxxs);\n border-radius: var(--ic-space-xxs);\n background-color: var(--ic-status-info);\n}\n\n.step-icon-inner .check-icon {\n padding-top: var(--ic-space-xxs);\n}\n\n.step-icon-inner .check-icon svg {\n width: var(--ic-space-md);\n height: auto;\n}\n\n.step-icon-inner .check-icon > svg > path {\n fill: var(--ic-color-white-text);\n}\n\n/** High Contrast **/\n@media (forced-colors: active) {\n /* COMPACT STEP */\n .compact-step-disabled :is(.step-title, .step-status) {\n color: GrayText;\n }\n\n /* DEFAULT STEP */\n .step-connect:not(.disabled .step-connect) {\n border: var(--ic-hc-border);\n }\n\n .active .step-icon-inner,\n .completed .step-icon-inner,\n .current .step-icon-inner {\n forced-color-adjust: none;\n box-shadow: inset canvastext 0 0 0 0.125rem;\n background-color: transparent;\n color: canvastext;\n }\n\n :host(.default) .current .step-icon {\n padding: 0;\n border: none;\n }\n\n .disabled,\n .disabled .step-title-area {\n color: GrayText;\n }\n\n .step-connect-inner,\n .completed .step-connect {\n background-color: canvastext;\n }\n\n .step-icon-inner .check-icon > svg > path {\n fill: canvastext;\n }\n}\n","import { Component, Host, h, Prop, Element, Watch } from \"@stencil/core\";\nimport checkIcon from \"../../assets/check-icon.svg\";\nimport warningIcon from \"../../assets/warning-icon-outline.svg\";\nimport { IcStepVariants, IcStepStatuses, IcStepTypes } from \"./ic-step.types\";\n\n@Component({\n tag: \"ic-step\",\n styleUrl: \"ic-step.css\",\n shadow: true,\n})\nexport class Step {\n @Element() el: HTMLIcStepElement;\n\n /**\n * @internal If a compact stepper is being used, this sets the styling of the step.\n */\n @Prop() compactStepStyling?: IcStepTypes;\n\n /**\n * @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.\n */\n @Prop({ mutable: true }) current?: boolean = false;\n\n /**\n * @internal If `true`, the step will be marked as being the last one in the series. This is managed by ic-stepper.\n */\n @Prop() lastStep!: boolean;\n\n /**\n * @internal The step number of the final step. This is managed by ic-stepper.\n */\n @Prop() lastStepNum?: number;\n\n /**\n * @internal The name of the next step. This is managed by ic-stepper.\n */\n @Prop() nextStepTitle?: string;\n\n /**\n * @internal The progress of the next step, calculated by dividing the current step number by the total number of steps. This is managed by ic-stepper.\n */\n @Prop() progress?: number;\n\n /**\n * @internal The step number, managed by ic-stepper.\n */\n @Prop() stepNum?: number;\n\n /**\n * The status of the step. Use this prop to display a status message on the step if it is required or optional.\n */\n @Prop() stepStatus?: IcStepStatuses;\n\n /**\n * Additional information about the step. Use this prop to override the default step status messaging displayed when selecting a step type or step status.\n */\n @Prop() stepSubtitle?: string;\n\n /**\n * The title of the step within the stepper.\n */\n @Prop() stepTitle?: string;\n\n /**\n * @internal The variant of the step. This is managed by ic-stepper.\n */\n @Prop() variant!: IcStepVariants;\n\n /**\n * The state of the step within the stepper.\n */\n @Prop() stepType?: IcStepTypes = \"active\";\n\n @Watch(\"stepType\")\n stepTypeChangeHandler(): void {\n if (this.variant === \"compact\" && this.stepType === \"current\") {\n this.current = true;\n } else {\n this.current = false;\n }\n }\n\n render() {\n // ARIA LABEL\n let ariaLabel = \"\";\n\n if (this.stepType === \"completed\") {\n ariaLabel = \". Completed step\";\n } else if (this.stepType === \"disabled\") {\n ariaLabel = \". Non-required step\";\n } else if (this.stepStatus === \"required\") {\n ariaLabel = \". Required step\";\n } else if (this.stepStatus === \"optional\") {\n ariaLabel = \". Optional step\";\n }\n\n // STEP STATUS\n let stepStatus;\n if (this.stepStatus) {\n stepStatus = this.stepStatus[0].toUpperCase() + this.stepStatus.slice(1);\n }\n\n // STEP TYPE\n let stepType;\n if (\n this.stepType === \"disabled\" ||\n this.compactStepStyling === \"disabled\"\n ) {\n stepType = \"Not required\";\n } else if (this.compactStepStyling === \"completed\") {\n stepType = \"Completed\";\n }\n\n // STATUS ICON FOR COMPACT STEP\n let statusIcon;\n if (\n this.stepType === \"completed\" ||\n this.compactStepStyling === \"completed\"\n ) {\n statusIcon = (\n <span\n class=\"check-icon step-icon\"\n aria-hidden=\"true\"\n innerHTML={checkIcon}\n ></span>\n );\n } else if (\n this.stepType === \"disabled\" ||\n this.compactStepStyling === \"disabled\"\n ) {\n statusIcon = (\n <span\n class=\"warning-icon step-icon\"\n aria-hidden=\"true\"\n innerHTML={warningIcon}\n ></span>\n );\n }\n\n // COMPACT STEP COMPONENT\n const compactStep = (\n <div\n class={{\n [\"step\"]: true,\n [\"current\"]: this.current,\n [`compact-step-${this.compactStepStyling}`]:\n !!this.compactStepStyling,\n }}\n >\n <ic-loading-indicator\n class={{\n \"compact-step-progress-indicator\": true,\n \"not-required\":\n this.stepType === \"disabled\" ||\n this.compactStepStyling === \"disabled\",\n }}\n aria-hidden=\"true\"\n size=\"small\"\n inner-label={this.stepNum}\n progress={this.progress}\n ></ic-loading-indicator>\n <div class=\"step-title-area\">\n <ic-typography variant=\"h4\" class=\"step-title\">\n {this.stepTitle}\n </ic-typography>\n <div class=\"info-line\">\n <ic-typography variant=\"caption\" class=\"step-num\">\n {`${this.stepNum} of ${this.lastStepNum}`}\n <span class=\"visually-hidden\"> steps</span>\n </ic-typography>\n {(this.stepSubtitle ||\n this.stepType === \"completed\" ||\n this.stepType === \"disabled\" ||\n (this.variant === \"compact\" &&\n !!this.compactStepStyling &&\n this.compactStepStyling !== \"active\") ||\n !!this.stepStatus) && (\n <div class=\"step-status\">\n {statusIcon !== undefined && statusIcon}\n {(this.stepSubtitle || stepType) && (\n <ic-typography variant=\"caption\">\n {this.stepSubtitle !== null &&\n this.stepSubtitle !== undefined\n ? this.stepSubtitle\n : this.stepType === \"disabled\" ||\n (this.variant === \"compact\" &&\n this.compactStepStyling === \"disabled\") ||\n this.stepType === \"completed\" ||\n (this.variant === \"compact\" &&\n this.compactStepStyling === \"completed\")\n ? stepType\n : this.stepStatus && stepStatus}\n </ic-typography>\n )}\n </div>\n )}\n </div>\n {this.lastStep ? (\n <ic-typography variant=\"subtitle-small\" class=\"next-step\">\n Last step\n </ic-typography>\n ) : (\n this.nextStepTitle !== undefined && (\n <ic-typography variant=\"subtitle-small\" class=\"next-step\">\n Next<span class=\"visually-hidden\"> step is</span>:{\" \"}\n {this.nextStepTitle}\n </ic-typography>\n )\n )}\n </div>\n </div>\n );\n\n // ICON FOR DEFAULT STEP\n let icon;\n if (this.stepType !== \"completed\") {\n icon = (\n <ic-typography variant=\"subtitle-small\">\n <span class=\"step-icon-inner\" aria-hidden=\"true\">\n {this.stepNum}\n </span>\n </ic-typography>\n );\n } else {\n icon = (\n <div class=\"step-icon-inner\" aria-hidden=\"true\">\n <span class=\"check-icon\" innerHTML={checkIcon}></span>\n </div>\n );\n }\n\n // STEP CONNECT FOR DEFAULT STEP\n const partialBar = this.stepType === \"current\" && (\n <div class=\"step-connect-inner\"></div>\n );\n\n const finalStep = !this.lastStep && (\n <div\n class={{\n [\"step-connect\"]: true,\n [\"aligned-full-width\"]:\n this.el.parentElement.classList.contains(\"default\") &&\n !this.el.parentElement.classList.contains(\"aligned-left\"),\n }}\n >\n {partialBar}\n </div>\n );\n\n // DEFAULT STEP COMPONENT\n const defaultStep = (\n <div\n class={{\n [\"step\"]: true,\n [`${this.stepType}`]: true,\n }}\n >\n <div class=\"step-top\">\n <div class=\"step-icon\">{icon}</div>\n {finalStep}\n </div>\n {(this.stepTitle || this.stepSubtitle || this.stepStatus) && (\n <div class=\"step-title-area\">\n {this.stepTitle && (\n <ic-typography variant=\"subtitle-large\" class=\"step-title\">\n {this.stepTitle}\n </ic-typography>\n )}\n {this.stepTitle && (this.stepSubtitle || this.stepStatus) && (\n <ic-typography variant=\"caption\" class=\"step-subtitle\">\n {this.stepSubtitle !== null && this.stepSubtitle !== undefined\n ? this.stepSubtitle\n : stepStatus}\n </ic-typography>\n )}\n </div>\n )}\n </div>\n );\n\n return (\n <Host\n role=\"listitem\"\n aria-label={`Step ${this.stepNum}${ariaLabel}`}\n aria-current={(this.current || this.stepType === \"current\") && \"step\"}\n class={{\n [\"aligned-full-width\"]:\n this.el.parentElement.classList.contains(\"default\") &&\n !this.el.parentElement.classList.contains(\"aligned-left\"),\n [`${this.variant}`]: true,\n }}\n >\n {this.variant === \"compact\" ? compactStep : defaultStep}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -175,19 +175,24 @@ const Stepper = /*@__PURE__*/ proxyCustomElement(class Stepper extends HTMLEleme
175
175
  });
176
176
  this.resizeObserver.observe(this.el);
177
177
  };
178
- this.aligned = "full-width";
179
- this.variant = "default";
180
- this.connectorWidth = 100;
181
- this.hideStepInfo = false;
178
+ this.alignedFullWidth = true;
179
+ this.autoSetStepTitles = true;
180
+ this.lastStepWidth = 0;
181
+ this.noOfResizes = 0;
182
182
  this.stepperWidth = document
183
183
  .querySelector("ic-stepper")
184
184
  .getBoundingClientRect().width;
185
- this.lastStepWidth = 0;
186
185
  this.stepTypes = [];
187
- this.alignedFullWidth = true;
188
- this.autoSetStepTitles = true;
189
186
  this.variantOverride = this.variant !== "compact";
190
- this.noOfResizes = 0;
187
+ this.aligned = "full-width";
188
+ this.connectorWidth = 100;
189
+ this.hideStepInfo = false;
190
+ this.variant = "default";
191
+ }
192
+ disconnectedCallback() {
193
+ if (this.resizeObserver !== null) {
194
+ this.resizeObserver.disconnect();
195
+ }
191
196
  }
192
197
  componentWillLoad() {
193
198
  this.setStepTypes();
@@ -198,11 +203,6 @@ const Stepper = /*@__PURE__*/ proxyCustomElement(class Stepper extends HTMLEleme
198
203
  componentDidLoad() {
199
204
  checkResizeObserver(this.runResizeObserver);
200
205
  }
201
- disconnectedCallback() {
202
- if (this.resizeObserver !== null) {
203
- this.resizeObserver.disconnect();
204
- }
205
- }
206
206
  render() {
207
207
  return (h(Host, { class: {
208
208
  [`${this.variant}`]: true,
@@ -213,16 +213,16 @@ const Stepper = /*@__PURE__*/ proxyCustomElement(class Stepper extends HTMLEleme
213
213
  static get style() { return icStepperCss; }
214
214
  }, [1, "ic-stepper", {
215
215
  "aligned": [1],
216
- "variant": [1025],
217
216
  "connectorWidth": [2, "connector-width"],
218
217
  "hideStepInfo": [4, "hide-step-info"],
219
- "stepperWidth": [32],
220
- "lastStepWidth": [32],
221
- "stepTypes": [32],
218
+ "variant": [1025],
222
219
  "alignedFullWidth": [32],
223
220
  "autoSetStepTitles": [32],
224
- "variantOverride": [32],
225
- "noOfResizes": [32]
221
+ "lastStepWidth": [32],
222
+ "noOfResizes": [32],
223
+ "stepperWidth": [32],
224
+ "stepTypes": [32],
225
+ "variantOverride": [32]
226
226
  }]);
227
227
  function defineCustomElement$1() {
228
228
  if (typeof customElements === "undefined") {
@@ -1 +1 @@
1
- {"file":"ic-stepper.js","mappings":";;;AAAA,MAAM,YAAY,GAAG,4UAA4U;;MCUpV,OAAO;;;;;IA2CV,mBAAc,GAAmB,IAAI,CAAC;;IAGtC,gBAAW,GAAG;MACpB,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;KACH,CAAC;;IAGM,oBAAe,GAAG;MACxB,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;KACF,CAAC;IAEM,iBAAY,GAAG;MACrB,IAAI,CAAC,WAAW,EAAE,CAAC;MACnB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;MACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAC1C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;OAC/B;KACF,CAAC;IAEM,oBAAe,GAAG;MACxB,IAAI,CAAC,gBAAgB;QACnB,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,OA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G,IAAI;QACzB,CAAC,cAAc,GACb,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM;OACxD,IAED,UAAI,KAAK,EAAC,gBAAgB,IACxB,eAAa,CACV,CACA,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/ic-stepper/ic-stepper.css?tag=ic-stepper&encapsulation=shadow","./src/components/ic-stepper/ic-stepper.tsx"],"sourcesContent":[":host {\n display: flex;\n width: 100%;\n}\n\n.step-item-list {\n display: flex;\n margin: 0;\n padding: 0;\n}\n\n:host(.default:not(.aligned-left)) .step-item-list {\n flex: auto;\n}\n\n:host(.compact) ul ::slotted(ic-step) {\n display: none;\n}\n\n:host(.compact) ul ::slotted(ic-step.show) {\n display: flex;\n}\n\n:host(.compact) ul ::slotted(ic-step.hide) {\n display: none;\n opacity: 0;\n visibility: hidden;\n}\n","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"],"version":3}
1
+ {"file":"ic-stepper.js","mappings":";;;AAAA,MAAM,YAAY,GAAG,4UAA4U;;MCUpV,OAAO;;;;;IACV,mBAAc,GAAmB,IAAI,CAAC;;IAsDtC,gBAAW,GAAG;MACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CA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-stepper.tsx"],"sourcesContent":[":host {\n display: flex;\n width: 100%;\n}\n\n.step-item-list {\n display: flex;\n margin: 0;\n padding: 0;\n}\n\n:host(.default:not(.aligned-left)) .step-item-list {\n flex: auto;\n}\n\n:host(.compact) ul ::slotted(ic-step) {\n display: none;\n}\n\n:host(.compact) ul ::slotted(ic-step.show) {\n display: flex;\n}\n\n:host(.compact) ul ::slotted(ic-step.hide) {\n display: none;\n opacity: 0;\n visibility: hidden;\n}\n","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 private resizeObserver: ResizeObserver = null;\n private steps: HTMLIcStepElement[];\n private stepsWithStepTitles: HTMLIcStepElement[];\n\n @Element() el: HTMLIcStepperElement;\n\n @State() alignedFullWidth: boolean = true;\n @State() autoSetStepTitles: boolean = true;\n @State() lastStepWidth: number = 0;\n @State() noOfResizes?: number = 0;\n @State() stepperWidth: number = document\n .querySelector(\"ic-stepper\")\n .getBoundingClientRect().width;\n @State() stepTypes: IcStepTypes[] = [];\n @State() variantOverride?: boolean = this.variant !== \"compact\";\n\n /**\n * The alignment of the default stepper within 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 /**\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 /**\n * The variant of the stepper.\n */\n @Prop({ mutable: true }) variant?: IcStepVariants = \"default\";\n\n disconnectedCallback(): void {\n if (this.resizeObserver !== null) {\n this.resizeObserver.disconnect();\n }\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 // 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 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"],"version":3}
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { e as addFormResetListener, r as removeDisabledFalse, o as onComponentRequiredPropUndefined, f as removeFormResetListener, h as renderHiddenInput, k as getInputDescribedByText } from './helpers.js';
2
+ import { f as removeFormResetListener, e as addFormResetListener, r as removeDisabledFalse, o as onComponentRequiredPropUndefined, h as renderHiddenInput, k as getInputDescribedByText } from './helpers.js';
3
3
  import { d as defineCustomElement$3 } from './ic-input-label2.js';
4
4
  import { d as defineCustomElement$2 } from './ic-typography2.js';
5
5
 
@@ -11,9 +11,9 @@ const Switch = /*@__PURE__*/ proxyCustomElement(class Switch extends HTMLElement
11
11
  super();
12
12
  this.__registerHost();
13
13
  this.__attachShadow();
14
+ this.icBlur = createEvent(this, "icBlur", 7);
14
15
  this.icChange = createEvent(this, "icChange", 7);
15
16
  this.icFocus = createEvent(this, "icFocus", 7);
16
- this.icBlur = createEvent(this, "icBlur", 7);
17
17
  this.inputId = `ic-switch-input-${inputIds++}`;
18
18
  this.handleChange = () => {
19
19
  this.checkedState = !this.checkedState;
@@ -31,25 +31,20 @@ const Switch = /*@__PURE__*/ proxyCustomElement(class Switch extends HTMLElement
31
31
  this.handleFormReset = () => {
32
32
  this.checkedState = this.initiallyChecked;
33
33
  };
34
- this.label = undefined;
35
- this.hideLabel = false;
36
- this.helperText = "";
34
+ this.checkedState = false;
35
+ this.initiallyChecked = this.checked;
37
36
  this.checked = false;
38
- this.small = false;
39
37
  this.disabled = false;
38
+ this.helperText = "";
39
+ this.hideLabel = false;
40
+ this.label = undefined;
40
41
  this.name = this.inputId;
41
42
  this.showState = false;
43
+ this.small = false;
42
44
  this.value = "on";
43
- this.checkedState = false;
44
- this.initiallyChecked = this.checked;
45
45
  }
46
- /**
47
- * Sets focus on the switch.
48
- */
49
- async setFocus() {
50
- if (this.el.shadowRoot.querySelector("input")) {
51
- this.el.shadowRoot.querySelector("input").focus();
52
- }
46
+ disconnectedCallback() {
47
+ removeFormResetListener(this.el, this.handleFormReset);
53
48
  }
54
49
  componentWillLoad() {
55
50
  this.checkedState = this.checked;
@@ -59,8 +54,13 @@ const Switch = /*@__PURE__*/ proxyCustomElement(class Switch extends HTMLElement
59
54
  componentDidLoad() {
60
55
  onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Switch");
61
56
  }
62
- disconnectedCallback() {
63
- removeFormResetListener(this.el, this.handleFormReset);
57
+ /**
58
+ * Sets focus on the switch.
59
+ */
60
+ async setFocus() {
61
+ if (this.el.shadowRoot.querySelector("input")) {
62
+ this.el.shadowRoot.querySelector("input").focus();
63
+ }
64
64
  }
65
65
  render() {
66
66
  const { label, checkedState, small, disabled, name, showState, value, hideLabel, helperText, inputId, } = this;
@@ -79,14 +79,14 @@ const Switch = /*@__PURE__*/ proxyCustomElement(class Switch extends HTMLElement
79
79
  get el() { return this; }
80
80
  static get style() { return icSwitchCss; }
81
81
  }, [17, "ic-switch", {
82
- "label": [1],
83
- "hideLabel": [4, "hide-label"],
84
- "helperText": [1, "helper-text"],
85
82
  "checked": [4],
86
- "small": [4],
87
83
  "disabled": [4],
84
+ "helperText": [1, "helper-text"],
85
+ "hideLabel": [4, "hide-label"],
86
+ "label": [1],
88
87
  "name": [1],
89
88
  "showState": [4, "show-state"],
89
+ "small": [4],
90
90
  "value": [1],
91
91
  "checkedState": [32],
92
92
  "initiallyChecked": [32],
@@ -1 +1 @@
1
- {"file":"ic-switch.js","mappings":";;;;;AAAA,MAAM,WAAW,GAAG,oiNAAoiN;;ACqBxjN,IAAI,QAAQ,GAAG,CAAC,CAAC;MAYJ,MAAM;;;;;;;;IACT,YAAO,GAAG,mBAAmB,QAAQ,EAAE,EAAE,CAAC;IAiE1C,iBAAY,GAAG;MACrB,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;MACvC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QACjB,OAAO,EAAE,IAAI,CAAC,YAAY;QAC1B,KAAK,EAAE,IAAI,CAAC,KAAK;OAClB,CAAC,CAAC;KACJ,CAAC;IAEM,YAAO,GAAG;MAChB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACrB,CAAC;IAEM,WAAM,GAAG;MACf,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACpB,CAAC;IAEM,oBAAe,GAAG;MACxB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC;KAC3C,CAAC;;qBAvE4B,KAAK;sBAIL,EAAE;mBAIJ,KAAK;iBAIP,KAAK;oBAIF,KAAK;gBAIV,IAAI,CAAC,OAAO;qBAIN,KAAK;iBASH,IAAI;wBAiBH,KAAK;4BACV,IAAI,CAAC,OAAO;;;;;E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O,GAC5B,CACE,CACD,EACP,YAAM,IAAI,EAAC,iBAAiB,GAAQ,EACnC,SAAS,KACR,oCACc,MAAM,EAClB,OAAO,EAAC,OAAO,EACf,KAAK,EAAC,0BAA0B,IAE/B,YAAY,GAAG,IAAI,GAAG,KAAK,CACd,CACjB,CACK,CACH,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/ic-switch/ic-switch.css?tag=ic-switch&encapsulation=shadow","./src/components/ic-switch/ic-switch.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n:host {\n display: inline-block;\n}\n\ninput {\n overflow: hidden;\n appearance: none;\n}\n\n.ic-switch-container {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--ic-space-xxs);\n cursor: pointer;\n}\n\n.ic-switch-label {\n margin-left: var(--ic-space-xxs);\n margin-bottom: var(--ic-space-sm);\n}\n\n.ic-switch-label-small {\n margin-bottom: 0.625rem;\n}\n\n.ic-switch-toggle {\n display: flex;\n align-items: center;\n justify-content: space-around;\n width: 4rem;\n height: var(--ic-space-xl);\n position: relative;\n border-radius: 100vw;\n background-color: var(--ic-architectural-200);\n border: var(--ic-space-1px) solid var(--ic-architectural-700);\n box-sizing: border-box;\n transition: var(--ic-transition-duration-fast);\n}\n\n.ic-switch-line-break {\n flex: 1 0 100%;\n}\n\n.ic-switch-checked-status {\n padding-left: var(--ic-space-xxs);\n}\n\n.ic-switch-toggle::before {\n content: \"\";\n width: 1.333rem;\n height: 1.333rem;\n border-radius: 50%;\n position: absolute;\n z-index: 2;\n top: 50%;\n left: 0.333rem;\n transform: translate(0, -50%);\n background-color: var(--ic-architectural-700);\n transition: var(--ic-transition-duration-slow);\n}\n\n.ic-switch-icon {\n display: inline-block;\n vertical-align: middle;\n width: 0.625rem;\n height: 0.625rem;\n}\n\n.ic-switch-icon-circle,\n.ic-switch-icon-line {\n stroke-width: 1;\n}\n\n.ic-switch-icon-circle {\n stroke: var(--ic-architectural-700);\n}\n\n.ic-switch-icon-line {\n stroke: var(--ic-architectural-white);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .ic-switch-toggle::before {\n transition-duration: 0ms;\n }\n}\n\n.ic-switch-input:checked + .ic-switch-toggle {\n background-color: var(--ic-action-default);\n border: none;\n}\n\n.ic-switch-input:checked + .ic-switch-toggle::before {\n transform: translate(var(--ic-space-xl), -50%);\n background-color: var(--ic-architectural-white);\n}\n\n.ic-switch-input:not([disabled]) + .ic-switch-toggle:hover::before {\n box-shadow: 0 0 0 0.75rem var(--ic-action-dark-bg-hover);\n}\n\n.ic-switch-input:not([disabled]) + .ic-switch-toggle:active::before {\n box-shadow: 0 0 0 0.75rem var(--ic-action-dark-bg-active);\n}\n\n.ic-switch-input:not([disabled]):checked + .ic-switch-toggle:hover::before {\n box-shadow: 0 0 0 0.75rem var(--ic-action-default-bg-hover);\n}\n\n.ic-switch-input:not([disabled]):checked + .ic-switch-toggle:active::before {\n box-shadow: 0 0 0 0.75rem var(--ic-action-default-bg-active);\n}\n\n.ic-switch-input:focus:not([disabled]) + .ic-switch-toggle,\n.ic-switch-input:focus-visible:not([disabled]) + .ic-switch-toggle {\n box-shadow: 0 0 0 var(--ic-space-1px) var(--ic-architectural-white),\n 0 0 0 0.188rem var(--ic-action-default),\n 0 0 0 0.5rem var(--ic-action-default-active-alpha);\n}\n\n.ic-switch-disabled {\n cursor: default;\n}\n\n.ic-switch-disabled .ic-switch-icon-circle {\n stroke: var(--ic-architectural-300);\n}\n\n.ic-switch-disabled .ic-switch-icon-line {\n stroke: var(--ic-action-default-bg-active);\n}\n\n.ic-switch-input:disabled + .ic-switch-toggle {\n background-color: var(--ic-architectural-80);\n border: var(--ic-border-disabled);\n}\n\n.ic-switch-input:disabled ~ .ic-switch-checked-status {\n color: var(--ic-architectural-300);\n}\n\n.ic-switch-input:disabled + .ic-switch-toggle::before {\n background-color: var(--ic-architectural-300);\n}\n\n.ic-switch-input:disabled:checked + .ic-switch-toggle {\n background-color: var(--ic-status-info-background);\n border: var(--ic-space-1px) dashed #98c9f5;\n}\n\n.ic-switch-input:disabled:checked + .ic-switch-toggle::before {\n background-color: var(--ic-architectural-white);\n}\n\n.ic-switch-small {\n gap: var(--ic-space-xxxs);\n}\n\n.ic-switch-small .ic-switch-checked-status {\n padding-left: 0.375rem;\n}\n\n.ic-switch-small .ic-switch-toggle {\n width: var(--ic-space-xxl);\n height: var(--ic-space-lg);\n}\n\n.ic-switch-small .ic-switch-toggle::before {\n width: var(--ic-space-md);\n height: var(--ic-space-md);\n left: var(--ic-space-xxs);\n}\n\n.ic-switch-small .ic-switch-input:checked + .ic-switch-toggle::before {\n transform: translate(var(--ic-space-lg), -50%);\n}\n\n::slotted(*) {\n margin-left: var(--ic-space-sm);\n}\n\n::slotted(svg) {\n fill: currentcolor;\n}\n\n@media (forced-colors: active) {\n .ic-switch-toggle::before,\n .ic-switch-input:checked + .ic-switch-toggle {\n border: var(--ic-hc-border);\n }\n\n .ic-switch-input:checked + .ic-switch-toggle::before {\n transform: translate(calc(var(--ic-space-xl) - 0.125rem), -50%);\n }\n\n .ic-switch-input:disabled + .ic-switch-toggle,\n .ic-switch-input:disabled:checked + .ic-switch-toggle,\n .ic-switch-input:disabled + .ic-switch-toggle::before {\n border-color: GrayText;\n }\n\n .ic-switch-input:disabled ~ .ic-switch-checked-status {\n color: GrayText;\n }\n\n .ic-switch-disabled .ic-switch-icon-circle,\n .ic-switch-disabled .ic-switch-icon-line {\n stroke: GrayText;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n Method,\n} from \"@stencil/core\";\nimport {\n getInputDescribedByText,\n onComponentRequiredPropUndefined,\n renderHiddenInput,\n addFormResetListener,\n removeFormResetListener,\n removeDisabledFalse,\n} from \"../../utils/helpers\";\nimport { IcSwitchChangeEventDetail } from \"./ic-switch.types\";\n\nlet inputIds = 0;\n\n/**\n * @slot right-adornment - Content is placed to the right of switch before state label.\n */\n@Component({\n tag: \"ic-switch\",\n styleUrl: \"ic-switch.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Switch {\n private inputId = `ic-switch-input-${inputIds++}`;\n\n @Element() el: HTMLIcSwitchElement;\n\n /**\n * The aria-label applied to the switch when no visual 'name' is provided.\n */\n @Prop() label!: string;\n\n /**\n * If `true`, the label will be hidden and the required label value will be applied as an aria-label.\n */\n @Prop() hideLabel?: boolean = false;\n /**\n * The helper text that will be displayed for additional field guidance.\n */\n @Prop() helperText?: string = \"\";\n /**\n * If `true`, the switch will display as checked.\n */\n @Prop() checked?: boolean = false;\n /**\n * If `true`, the small styling will be applied to the switch.\n */\n @Prop() small?: boolean = false;\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled?: boolean = false;\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name?: string = this.inputId;\n /**\n * If `true`, the switch will render the On/Off state text.\n */\n @Prop() showState?: boolean = false;\n\n /**\n * The value of the toggle does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a toggle is analogous to the value of a `<input type=\"checkbox\">`,\n * it's only used when the toggle participates in a native `<form>`.\n */\n @Prop() value?: string | null = \"on\";\n\n /**\n * Emitted when the value property has changed.\n */\n @Event() icChange!: EventEmitter<IcSwitchChangeEventDetail>;\n\n /**\n * Emitted when the toggle has focus.\n */\n @Event() icFocus!: EventEmitter<void>;\n\n /**\n * Emitted when the toggle loses focus.\n */\n @Event() icBlur!: EventEmitter<void>;\n\n @State() checkedState: boolean = false;\n @State() initiallyChecked = this.checked;\n\n private handleChange = () => {\n this.checkedState = !this.checkedState;\n this.icChange.emit({\n checked: this.checkedState,\n value: this.value,\n });\n };\n\n private onFocus = () => {\n this.icFocus.emit();\n };\n\n private onBlur = () => {\n this.icBlur.emit();\n };\n\n private handleFormReset = (): void => {\n this.checkedState = this.initiallyChecked;\n };\n\n /**\n * Sets focus on the switch.\n */\n @Method()\n async setFocus(): Promise<void> {\n if (this.el.shadowRoot.querySelector(\"input\")) {\n this.el.shadowRoot.querySelector(\"input\").focus();\n }\n }\n\n componentWillLoad(): void {\n this.checkedState = this.checked;\n addFormResetListener(this.el, this.handleFormReset);\n\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Switch\"\n );\n }\n\n disconnectedCallback(): void {\n removeFormResetListener(this.el, this.handleFormReset);\n }\n\n render() {\n const {\n label,\n checkedState,\n small,\n disabled,\n name,\n showState,\n value,\n hideLabel,\n helperText,\n inputId,\n } = this;\n\n renderHiddenInput(true, this.el, name, checkedState ? value : \"\", disabled);\n\n const describedBy = getInputDescribedByText(\n inputId,\n helperText !== \"\",\n false\n );\n\n return (\n <Host>\n <label\n class={{\n [\"ic-switch-container\"]: true,\n [\"ic-switch-disabled\"]: disabled,\n [\"ic-switch-small\"]: small,\n }}\n htmlFor={inputId}\n >\n {!hideLabel && (\n <ic-input-label\n for={inputId}\n label={label}\n helperText={helperText}\n readonly={true}\n disabled={disabled}\n class={{\n [\"ic-switch-label\"]: true,\n [\"ic-switch-label-small\"]: small,\n }}\n ></ic-input-label>\n )}\n {!hideLabel && <span class=\"ic-switch-line-break\"></span>}\n <input\n checked={checkedState}\n disabled={disabled}\n aria-label={label}\n aria-checked={checkedState ? \"true\" : \"false\"}\n aria-describedby={describedBy}\n role=\"switch\"\n class=\"ic-switch-input\"\n type=\"checkbox\"\n name=\"toggle\"\n id={inputId}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onChange={this.handleChange}\n />\n <span class=\"ic-switch-toggle\">\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <line\n class=\"ic-switch-icon-line\"\n x1=\"9\"\n y1={small ? \"2\" : \"1\"}\n x2=\"9\"\n y2={small ? \"8\" : \"9\"}\n />\n </svg>\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n class=\"ic-switch-icon-circle\"\n fill=\"none\"\n cx=\"5\"\n cy=\"5\"\n r={small ? \"3.335\" : \"4.445\"}\n />\n </svg>\n </span>\n <slot name=\"right-adornment\"></slot>\n {showState && (\n <ic-typography\n aria-hidden=\"true\"\n variant=\"label\"\n class=\"ic-switch-checked-status\"\n >\n {checkedState ? \"On\" : \"Off\"}\n </ic-typography>\n )}\n </label>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ic-switch.js","mappings":";;;;;AAAA,MAAM,WAAW,GAAG,oiNAAoiN;;ACqBxjN,IAAI,QAAQ,GAAG,CAAC,CAAC;MAYJ,MAAM;;;;;;;;IACT,YAAO,GAAG,mBAAmB,QAAQ,EAAE,EAAE,CAAC;IAkG1C,iBAAY,GAAG;MACrB,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;MACvC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QACjB,OAAO,EAAE,IAAI,CAAC,YAAY;QAC1B,KAAK,EAAE,IAAI,CAAC,KAAK;OAClB,CAAC,CAAC;KACJ,CAAC;IAEM,YAAO,GAAG;MAChB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACrB,CAAC;IAEM,WAAM,GAAG;MACf,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACpB,CAAC;IAEM,oBAAe,GAAG;MACxB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC;KAC3C,CAAC;wBAhH+B,KAAK;4BACV,IAAI,CAAC,OAAO;mBAKZ,KAAK;oBAKJ,KAAK;sBAKJ,EAAE;qBAKF,KAAK;;gBAUX,IAAI,CAAC,OAAO;qBAKN,KAAK;iBAKT,KAAK;iBASC,IAAI;;EAiBpC,oBAAoB;IAClB,uBAAuB,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YAAM,IAAI,EAAC,iBAAiB,GAAQ,EACnC,SAAS,KACR,oCACc,MAAM,EAClB,OAAO,EAAC,OAAO,EACf,KAAK,EAAC,0BAA0B,IAE/B,YAAY,GAAG,IAAI,GAAG,KAAK,CACd,CACjB,CACK,CACH,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/ic-switch/ic-switch.css?tag=ic-switch&encapsulation=shadow","./src/components/ic-switch/ic-switch.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n:host {\n display: inline-block;\n}\n\ninput {\n overflow: hidden;\n appearance: none;\n}\n\n.ic-switch-container {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--ic-space-xxs);\n cursor: pointer;\n}\n\n.ic-switch-label {\n margin-left: var(--ic-space-xxs);\n margin-bottom: var(--ic-space-sm);\n}\n\n.ic-switch-label-small {\n margin-bottom: 0.625rem;\n}\n\n.ic-switch-toggle {\n display: flex;\n align-items: center;\n justify-content: space-around;\n width: 4rem;\n height: var(--ic-space-xl);\n position: relative;\n border-radius: 100vw;\n background-color: var(--ic-architectural-200);\n border: var(--ic-space-1px) solid var(--ic-architectural-700);\n box-sizing: border-box;\n transition: var(--ic-transition-duration-fast);\n}\n\n.ic-switch-line-break {\n flex: 1 0 100%;\n}\n\n.ic-switch-checked-status {\n padding-left: var(--ic-space-xxs);\n}\n\n.ic-switch-toggle::before {\n content: \"\";\n width: 1.333rem;\n height: 1.333rem;\n border-radius: 50%;\n position: absolute;\n z-index: 2;\n top: 50%;\n left: 0.333rem;\n transform: translate(0, -50%);\n background-color: var(--ic-architectural-700);\n transition: var(--ic-transition-duration-slow);\n}\n\n.ic-switch-icon {\n display: inline-block;\n vertical-align: middle;\n width: 0.625rem;\n height: 0.625rem;\n}\n\n.ic-switch-icon-circle,\n.ic-switch-icon-line {\n stroke-width: 1;\n}\n\n.ic-switch-icon-circle {\n stroke: var(--ic-architectural-700);\n}\n\n.ic-switch-icon-line {\n stroke: var(--ic-architectural-white);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .ic-switch-toggle::before {\n transition-duration: 0ms;\n }\n}\n\n.ic-switch-input:checked + .ic-switch-toggle {\n background-color: var(--ic-action-default);\n border: none;\n}\n\n.ic-switch-input:checked + .ic-switch-toggle::before {\n transform: translate(var(--ic-space-xl), -50%);\n background-color: var(--ic-architectural-white);\n}\n\n.ic-switch-input:not([disabled]) + .ic-switch-toggle:hover::before {\n box-shadow: 0 0 0 0.75rem var(--ic-action-dark-bg-hover);\n}\n\n.ic-switch-input:not([disabled]) + .ic-switch-toggle:active::before {\n box-shadow: 0 0 0 0.75rem var(--ic-action-dark-bg-active);\n}\n\n.ic-switch-input:not([disabled]):checked + .ic-switch-toggle:hover::before {\n box-shadow: 0 0 0 0.75rem var(--ic-action-default-bg-hover);\n}\n\n.ic-switch-input:not([disabled]):checked + .ic-switch-toggle:active::before {\n box-shadow: 0 0 0 0.75rem var(--ic-action-default-bg-active);\n}\n\n.ic-switch-input:focus:not([disabled]) + .ic-switch-toggle,\n.ic-switch-input:focus-visible:not([disabled]) + .ic-switch-toggle {\n box-shadow: 0 0 0 var(--ic-space-1px) var(--ic-architectural-white),\n 0 0 0 0.188rem var(--ic-action-default),\n 0 0 0 0.5rem var(--ic-action-default-active-alpha);\n}\n\n.ic-switch-disabled {\n cursor: default;\n}\n\n.ic-switch-disabled .ic-switch-icon-circle {\n stroke: var(--ic-architectural-300);\n}\n\n.ic-switch-disabled .ic-switch-icon-line {\n stroke: var(--ic-action-default-bg-active);\n}\n\n.ic-switch-input:disabled + .ic-switch-toggle {\n background-color: var(--ic-architectural-80);\n border: var(--ic-border-disabled);\n}\n\n.ic-switch-input:disabled ~ .ic-switch-checked-status {\n color: var(--ic-architectural-300);\n}\n\n.ic-switch-input:disabled + .ic-switch-toggle::before {\n background-color: var(--ic-architectural-300);\n}\n\n.ic-switch-input:disabled:checked + .ic-switch-toggle {\n background-color: var(--ic-status-info-background);\n border: var(--ic-space-1px) dashed #98c9f5;\n}\n\n.ic-switch-input:disabled:checked + .ic-switch-toggle::before {\n background-color: var(--ic-architectural-white);\n}\n\n.ic-switch-small {\n gap: var(--ic-space-xxxs);\n}\n\n.ic-switch-small .ic-switch-checked-status {\n padding-left: 0.375rem;\n}\n\n.ic-switch-small .ic-switch-toggle {\n width: var(--ic-space-xxl);\n height: var(--ic-space-lg);\n}\n\n.ic-switch-small .ic-switch-toggle::before {\n width: var(--ic-space-md);\n height: var(--ic-space-md);\n left: var(--ic-space-xxs);\n}\n\n.ic-switch-small .ic-switch-input:checked + .ic-switch-toggle::before {\n transform: translate(var(--ic-space-lg), -50%);\n}\n\n::slotted(*) {\n margin-left: var(--ic-space-sm);\n}\n\n::slotted(svg) {\n fill: currentcolor;\n}\n\n@media (forced-colors: active) {\n .ic-switch-toggle::before,\n .ic-switch-input:checked + .ic-switch-toggle {\n border: var(--ic-hc-border);\n }\n\n .ic-switch-input:checked + .ic-switch-toggle::before {\n transform: translate(calc(var(--ic-space-xl) - 0.125rem), -50%);\n }\n\n .ic-switch-input:disabled + .ic-switch-toggle,\n .ic-switch-input:disabled:checked + .ic-switch-toggle,\n .ic-switch-input:disabled + .ic-switch-toggle::before {\n border-color: GrayText;\n }\n\n .ic-switch-input:disabled ~ .ic-switch-checked-status {\n color: GrayText;\n }\n\n .ic-switch-disabled .ic-switch-icon-circle,\n .ic-switch-disabled .ic-switch-icon-line {\n stroke: GrayText;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n Method,\n} from \"@stencil/core\";\nimport {\n getInputDescribedByText,\n onComponentRequiredPropUndefined,\n renderHiddenInput,\n addFormResetListener,\n removeFormResetListener,\n removeDisabledFalse,\n} from \"../../utils/helpers\";\nimport { IcSwitchChangeEventDetail } from \"./ic-switch.types\";\n\nlet inputIds = 0;\n\n/**\n * @slot right-adornment - Content is placed to the right of switch before state label.\n */\n@Component({\n tag: \"ic-switch\",\n styleUrl: \"ic-switch.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Switch {\n private inputId = `ic-switch-input-${inputIds++}`;\n\n @Element() el: HTMLIcSwitchElement;\n\n @State() checkedState: boolean = false;\n @State() initiallyChecked = this.checked;\n\n /**\n * If `true`, the switch will display as checked.\n */\n @Prop() checked?: boolean = false;\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled?: boolean = false;\n\n /**\n * The helper text that will be displayed for additional field guidance.\n */\n @Prop() helperText?: string = \"\";\n\n /**\n * If `true`, the label will be hidden and the required label value will be applied as an aria-label.\n */\n @Prop() hideLabel?: boolean = false;\n\n /**\n * The aria-label applied to the switch when no visual 'name' is provided.\n */\n @Prop() label!: string;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name?: string = this.inputId;\n\n /**\n * If `true`, the switch will render the On/Off state text.\n */\n @Prop() showState?: boolean = false;\n\n /**\n * If `true`, the small styling will be applied to the switch.\n */\n @Prop() small?: boolean = false;\n\n /**\n * The value of the toggle does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a toggle is analogous to the value of a `<input type=\"checkbox\">`,\n * it's only used when the toggle participates in a native `<form>`.\n */\n @Prop() value?: string | null = \"on\";\n\n /**\n * Emitted when the toggle loses focus.\n */\n @Event() icBlur!: EventEmitter<void>;\n\n /**\n * Emitted when the value property has changed.\n */\n @Event() icChange!: EventEmitter<IcSwitchChangeEventDetail>;\n\n /**\n * Emitted when the toggle has focus.\n */\n @Event() icFocus!: EventEmitter<void>;\n\n disconnectedCallback(): void {\n removeFormResetListener(this.el, this.handleFormReset);\n }\n\n componentWillLoad(): void {\n this.checkedState = this.checked;\n addFormResetListener(this.el, this.handleFormReset);\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Switch\"\n );\n }\n\n /**\n * Sets focus on the switch.\n */\n @Method()\n async setFocus(): Promise<void> {\n if (this.el.shadowRoot.querySelector(\"input\")) {\n this.el.shadowRoot.querySelector(\"input\").focus();\n }\n }\n\n private handleChange = () => {\n this.checkedState = !this.checkedState;\n this.icChange.emit({\n checked: this.checkedState,\n value: this.value,\n });\n };\n\n private onFocus = () => {\n this.icFocus.emit();\n };\n\n private onBlur = () => {\n this.icBlur.emit();\n };\n\n private handleFormReset = (): void => {\n this.checkedState = this.initiallyChecked;\n };\n\n render() {\n const {\n label,\n checkedState,\n small,\n disabled,\n name,\n showState,\n value,\n hideLabel,\n helperText,\n inputId,\n } = this;\n\n renderHiddenInput(true, this.el, name, checkedState ? value : \"\", disabled);\n\n const describedBy = getInputDescribedByText(\n inputId,\n helperText !== \"\",\n false\n );\n\n return (\n <Host>\n <label\n class={{\n [\"ic-switch-container\"]: true,\n [\"ic-switch-disabled\"]: disabled,\n [\"ic-switch-small\"]: small,\n }}\n htmlFor={inputId}\n >\n {!hideLabel && (\n <ic-input-label\n for={inputId}\n label={label}\n helperText={helperText}\n readonly={true}\n disabled={disabled}\n class={{\n [\"ic-switch-label\"]: true,\n [\"ic-switch-label-small\"]: small,\n }}\n ></ic-input-label>\n )}\n {!hideLabel && <span class=\"ic-switch-line-break\"></span>}\n <input\n checked={checkedState}\n disabled={disabled}\n aria-label={label}\n aria-checked={checkedState ? \"true\" : \"false\"}\n aria-describedby={describedBy}\n role=\"switch\"\n class=\"ic-switch-input\"\n type=\"checkbox\"\n name=\"toggle\"\n id={inputId}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onChange={this.handleChange}\n />\n <span class=\"ic-switch-toggle\">\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <line\n class=\"ic-switch-icon-line\"\n x1=\"9\"\n y1={small ? \"2\" : \"1\"}\n x2=\"9\"\n y2={small ? \"8\" : \"9\"}\n />\n </svg>\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n class=\"ic-switch-icon-circle\"\n fill=\"none\"\n cx=\"5\"\n cy=\"5\"\n r={small ? \"3.335\" : \"4.445\"}\n />\n </svg>\n </span>\n <slot name=\"right-adornment\"></slot>\n {showState && (\n <ic-typography\n aria-hidden=\"true\"\n variant=\"label\"\n class=\"ic-switch-checked-status\"\n >\n {checkedState ? \"On\" : \"Off\"}\n </ic-typography>\n )}\n </label>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -5,10 +5,10 @@ const TabContext = /*@__PURE__*/ proxyCustomElement(class TabContext extends HTM
5
5
  constructor() {
6
6
  super();
7
7
  this.__registerHost();
8
- this.tabSelect = createEvent(this, "tabSelect", 3);
9
8
  this.icTabSelect = createEvent(this, "icTabSelect", 3);
10
- this.newTabs = [];
9
+ this.tabSelect = createEvent(this, "tabSelect", 3);
11
10
  this.newTabPanels = [];
11
+ this.newTabs = [];
12
12
  // Sets attributes to link tab-group, tabs and tab-panels
13
13
  this.linkTabs = () => {
14
14
  this.tabs.forEach((tab, index) => {
@@ -44,19 +44,18 @@ const TabContext = /*@__PURE__*/ proxyCustomElement(class TabContext extends HTM
44
44
  this.tabPanels = Array.from(this.host.children).filter((child) => child.tagName === "IC-TAB-PANEL");
45
45
  this.enabledTabs = this.getEnabledTabs();
46
46
  };
47
- // Determines how keyboard navigation is to be handled based on the activation type
48
- this.attatchEventListeners = () => {
47
+ this.keydownHandler = (event) => {
49
48
  if (this.activationType === "automatic") {
50
- this.tabGroup.addEventListener("keydown", (event) => {
51
- this.handleKeyBoardNavAutomatic(event);
52
- });
49
+ this.handleKeyBoardNavAutomatic(event);
53
50
  }
54
51
  else {
55
- this.tabGroup.addEventListener("keydown", (event) => {
56
- this.handleKeyBoardNavManual(event);
57
- });
52
+ this.handleKeyBoardNavManual(event);
58
53
  }
59
54
  };
55
+ // Determines how keyboard navigation is to be handled based on the activation type
56
+ this.attatchEventListeners = () => {
57
+ this.tabGroup.addEventListener("keydown", this.keydownHandler);
58
+ };
60
59
  // Determines whether the selected tab is being controlled within the component
61
60
  // or by the user (via selectedTabIndex and onIcTabSelect)
62
61
  this.setControlledMode = () => {
@@ -182,15 +181,29 @@ const TabContext = /*@__PURE__*/ proxyCustomElement(class TabContext extends HTM
182
181
  if (preventDefault)
183
182
  event.preventDefault();
184
183
  };
185
- this.contextId = "default";
184
+ this.selectedTab = undefined;
186
185
  this.activationType = "automatic";
187
- this.selectedTabIndex = undefined;
188
186
  this.appearance = "dark";
189
- this.selectedTab = undefined;
187
+ this.contextId = "default";
188
+ this.selectedTabIndex = undefined;
190
189
  }
191
190
  updateSelectedTab(newValue) {
192
191
  this.selectedTab = newValue;
193
192
  }
193
+ componentDidLoad() {
194
+ this.setControlledMode();
195
+ this.getChildren();
196
+ this.linkTabs();
197
+ this.attatchEventListeners();
198
+ this.setInitialTab();
199
+ this.configureTabs();
200
+ }
201
+ componentWillUpdate() {
202
+ this.configureTabs();
203
+ }
204
+ disconnectedCallback() {
205
+ this.tabGroup.removeEventListener("keydown", this.keydownHandler);
206
+ }
194
207
  tabClickHandler(event) {
195
208
  if (this.selectedTabIndex === undefined &&
196
209
  event.detail.contextId === this.contextId) {
@@ -236,25 +249,6 @@ const TabContext = /*@__PURE__*/ proxyCustomElement(class TabContext extends HTM
236
249
  this.tabs[this.selectedTab].setFocus();
237
250
  }
238
251
  }
239
- componentDidLoad() {
240
- this.setControlledMode();
241
- this.getChildren();
242
- this.linkTabs();
243
- this.attatchEventListeners();
244
- this.setInitialTab();
245
- this.configureTabs();
246
- }
247
- componentWillUpdate() {
248
- this.configureTabs();
249
- }
250
- disconnectedCallback() {
251
- if (this.activationType === "manual") {
252
- this.tabGroup.removeEventListener("keydown", (event) => this.handleKeyBoardNavManual(event));
253
- }
254
- else {
255
- this.tabGroup.removeEventListener("keydown", (event) => this.handleKeyBoardNavAutomatic(event));
256
- }
257
- }
258
252
  render() {
259
253
  return h("slot", null);
260
254
  }
@@ -263,10 +257,10 @@ const TabContext = /*@__PURE__*/ proxyCustomElement(class TabContext extends HTM
263
257
  "selectedTabIndex": ["updateSelectedTab"]
264
258
  }; }
265
259
  }, [4, "ic-tab-context", {
266
- "contextId": [513, "context-id"],
267
260
  "activationType": [1, "activation-type"],
268
- "selectedTabIndex": [2, "selected-tab-index"],
269
261
  "appearance": [1],
262
+ "contextId": [513, "context-id"],
263
+ "selectedTabIndex": [2, "selected-tab-index"],
270
264
  "selectedTab": [32],
271
265
  "tabRemovedHandler": [64]
272
266
  }, [[0, "tabClick", "tabClickHandler"], [0, "tabCreated", "tabCreatedHandler"], [0, "tabPanelCreated", "tabCreatedHandler"]]]);