@ukic/web-components 2.8.0 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1085) hide show
  1. package/dist/cjs/core.cjs.js +3 -3
  2. package/dist/cjs/core.cjs.js.map +1 -1
  3. package/dist/cjs/{helpers-0d63359f.js → helpers-3f91f63a.js} +292 -292
  4. package/dist/cjs/helpers-3f91f63a.js.map +1 -0
  5. package/dist/cjs/ic-accordion-group.cjs.entry.js +71 -71
  6. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ic-accordion.cjs.entry.js +99 -99
  8. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-alert.cjs.entry.js +58 -58
  10. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-back-to-top.cjs.entry.js +120 -120
  12. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-badge.cjs.entry.js +146 -146
  14. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +172 -166
  16. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-breadcrumb.cjs.entry.js +55 -53
  18. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-button_3.cjs.entry.js +636 -606
  20. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-card.cjs.entry.js +105 -105
  22. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-checkbox-group.cjs.entry.js +60 -60
  24. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-checkbox.cjs.entry.js +95 -95
  26. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-chip.cjs.entry.js +67 -65
  28. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-classification-banner.cjs.entry.js +23 -23
  30. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-data-entity.cjs.entry.js +17 -17
  32. package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-data-row.cjs.entry.js +74 -74
  34. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-dialog.cjs.entry.js +339 -339
  36. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-divider.cjs.entry.js +16 -16
  38. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-empty-state.cjs.entry.js +24 -24
  40. package/dist/cjs/ic-empty-state.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-footer-link-group.cjs.entry.js +55 -55
  42. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-footer-link.cjs.entry.js +50 -50
  44. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-footer.cjs.entry.js +78 -78
  46. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-hero.cjs.entry.js +62 -62
  48. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +151 -151
  50. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +670 -678
  52. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-input-label_2.cjs.entry.js +63 -63
  54. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-link.cjs.entry.js +55 -55
  56. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-menu-group.cjs.entry.js +12 -12
  58. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-menu-item.cjs.entry.js +100 -100
  60. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-navigation-button.cjs.entry.js +79 -76
  62. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-navigation-group.cjs.entry.js +283 -283
  64. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-navigation-item.cjs.entry.js +152 -152
  66. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-navigation-menu.cjs.entry.js +105 -105
  68. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-page-header.cjs.entry.js +96 -93
  70. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-pagination-item.cjs.entry.js +42 -42
  72. package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-pagination.cjs.entry.js +196 -195
  74. package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-popover-menu.cjs.entry.js +233 -231
  76. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-radio-group.cjs.entry.js +156 -156
  78. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-radio-option.cjs.entry.js +128 -128
  80. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-search-bar.cjs.entry.js +474 -474
  82. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-section-container.cjs.entry.js +15 -15
  84. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-select.cjs.entry.js +640 -640
  86. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-side-navigation.cjs.entry.js +424 -426
  88. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-skeleton.cjs.entry.js +43 -43
  90. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  91. package/dist/cjs/ic-status-tag.cjs.entry.js +29 -29
  92. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ic-step.cjs.entry.js +121 -121
  94. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ic-stepper.cjs.entry.js +200 -200
  96. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  97. package/dist/cjs/ic-switch.cjs.entry.js +77 -77
  98. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  99. package/dist/cjs/ic-tab-context.cjs.entry.js +252 -252
  100. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  101. package/dist/cjs/ic-tab-group.cjs.entry.js +23 -23
  102. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  103. package/dist/cjs/ic-tab-panel.cjs.entry.js +31 -31
  104. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  105. package/dist/cjs/ic-tab.cjs.entry.js +86 -86
  106. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  107. package/dist/cjs/ic-text-field.cjs.entry.js +210 -210
  108. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  109. package/dist/cjs/ic-theme.cjs.entry.js +51 -51
  110. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  111. package/dist/cjs/ic-toast-region.cjs.entry.js +47 -46
  112. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  113. package/dist/cjs/ic-toast.cjs.entry.js +145 -145
  114. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  115. package/dist/cjs/ic-top-navigation.cjs.entry.js +198 -199
  116. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  117. package/dist/cjs/ic-typography.cjs.entry.js +118 -118
  118. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  119. package/dist/{esm/index-813020f1.js → cjs/index-152d1fe5.js} +634 -376
  120. package/dist/cjs/index-152d1fe5.js.map +1 -0
  121. package/dist/cjs/loader.cjs.js +2 -2
  122. package/dist/cjs/types-dc22e301.js +16 -0
  123. package/dist/cjs/{types-7d67439f.js.map → types-dc22e301.js.map} +1 -1
  124. package/dist/collection/assets/arrow-dropdown.svg +3 -0
  125. package/dist/collection/collection-manifest.json +2 -2
  126. package/dist/collection/components/ic-accordion/ic-accordion.js +276 -276
  127. package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -1
  128. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js +215 -215
  129. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js.map +1 -1
  130. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js +200 -200
  131. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js.map +1 -1
  132. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js +71 -71
  133. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js.map +1 -1
  134. package/dist/collection/components/ic-alert/ic-alert.js +231 -231
  135. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  136. package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js +44 -44
  137. package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +1 -1
  138. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +159 -159
  139. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
  140. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js +102 -102
  141. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +1 -1
  142. package/dist/collection/components/ic-badge/ic-badge.js +385 -385
  143. package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
  144. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +172 -172
  145. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +1 -1
  146. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +9 -1
  147. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +186 -157
  148. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
  149. package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js +43 -43
  150. package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js.map +1 -1
  151. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +250 -220
  152. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
  153. package/dist/collection/components/ic-breadcrumb-group/test/a11y/ic-breadcrumb-group.test.a11y.js +10 -10
  154. package/dist/collection/components/ic-breadcrumb-group/test/a11y/ic-breadcrumb-group.test.a11y.js.map +1 -1
  155. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.e2e.js +34 -34
  156. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.e2e.js.map +1 -1
  157. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js +156 -118
  158. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js.map +1 -1
  159. package/dist/collection/components/ic-button/ic-button.css +34 -1
  160. package/dist/collection/components/ic-button/ic-button.js +849 -773
  161. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  162. package/dist/collection/components/ic-button/test/a11y/ic-button.test.a11y.js +5 -5
  163. package/dist/collection/components/ic-button/test/a11y/ic-button.test.a11y.js.map +1 -1
  164. package/dist/collection/components/ic-button/test/basic/ic-button.e2e.js +114 -114
  165. package/dist/collection/components/ic-button/test/basic/ic-button.e2e.js.map +1 -1
  166. package/dist/collection/components/ic-button/test/basic/ic-button.spec.js +249 -236
  167. package/dist/collection/components/ic-button/test/basic/ic-button.spec.js.map +1 -1
  168. package/dist/collection/components/ic-card/ic-card.js +375 -375
  169. package/dist/collection/components/ic-card/ic-card.js.map +1 -1
  170. package/dist/collection/components/ic-card/test/a11y/ic-card.test.a11y.js +15 -15
  171. package/dist/collection/components/ic-card/test/a11y/ic-card.test.a11y.js.map +1 -1
  172. package/dist/collection/components/ic-card/test/basic/ic-card.e2e.js +19 -19
  173. package/dist/collection/components/ic-card/test/basic/ic-card.e2e.js.map +1 -1
  174. package/dist/collection/components/ic-card/test/basic/ic-card.spec.js +147 -147
  175. package/dist/collection/components/ic-card/test/basic/ic-card.spec.js.map +1 -1
  176. package/dist/collection/components/ic-checkbox/ic-checkbox.css +6 -6
  177. package/dist/collection/components/ic-checkbox/ic-checkbox.js +474 -474
  178. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  179. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +302 -302
  180. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  181. package/dist/collection/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.js +5 -5
  182. package/dist/collection/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.js.map +1 -1
  183. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.e2e.js +124 -124
  184. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.e2e.js.map +1 -1
  185. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js +148 -148
  186. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +1 -1
  187. package/dist/collection/components/ic-chip/ic-chip.css +8 -0
  188. package/dist/collection/components/ic-chip/ic-chip.js +291 -271
  189. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  190. package/dist/collection/components/ic-chip/test/a11y/ic-chip.test.a11y.js +5 -5
  191. package/dist/collection/components/ic-chip/test/a11y/ic-chip.test.a11y.js.map +1 -1
  192. package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js +81 -81
  193. package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js.map +1 -1
  194. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +132 -132
  195. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
  196. package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js +55 -55
  197. package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js.map +1 -1
  198. package/dist/collection/components/ic-data-entity/ic-data-entity.js +92 -92
  199. package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +1 -1
  200. package/dist/collection/components/ic-data-entity/test/a11y/ic-data-entity.test.a11y.js +5 -5
  201. package/dist/collection/components/ic-data-entity/test/a11y/ic-data-entity.test.a11y.js.map +1 -1
  202. package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js +28 -28
  203. package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js.map +1 -1
  204. package/dist/collection/components/ic-data-row/ic-data-row.js +170 -170
  205. package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
  206. package/dist/collection/components/ic-data-row/test/a11y/ic-data-row.test.a11y.js +14 -14
  207. package/dist/collection/components/ic-data-row/test/a11y/ic-data-row.test.a11y.js.map +1 -1
  208. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js +61 -61
  209. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js.map +1 -1
  210. package/dist/collection/components/ic-dialog/ic-dialog.js +765 -765
  211. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  212. package/dist/collection/components/ic-dialog/test/a11y/ic-dialog.test.a11y.js +5 -5
  213. package/dist/collection/components/ic-dialog/test/a11y/ic-dialog.test.a11y.js.map +1 -1
  214. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.e2e.js +155 -155
  215. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.e2e.js.map +1 -1
  216. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js +573 -573
  217. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +1 -1
  218. package/dist/collection/components/ic-divider/ic-divider.js +38 -38
  219. package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
  220. package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js +17 -17
  221. package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js.map +1 -1
  222. package/dist/collection/components/ic-empty-state/ic-empty-state.js +151 -151
  223. package/dist/collection/components/ic-empty-state/ic-empty-state.js.map +1 -1
  224. package/dist/collection/components/ic-empty-state/test/a11y/ic-empty-state.test.a11y.js +5 -5
  225. package/dist/collection/components/ic-empty-state/test/a11y/ic-empty-state.test.a11y.js.map +1 -1
  226. package/dist/collection/components/ic-empty-state/test/basic/ic-empty-state.spec.js +52 -52
  227. package/dist/collection/components/ic-empty-state/test/basic/ic-empty-state.spec.js.map +1 -1
  228. package/dist/collection/components/ic-footer/ic-footer.js +242 -242
  229. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  230. package/dist/collection/components/ic-footer/test/a11y/ic-footer.test.a11y.js +15 -15
  231. package/dist/collection/components/ic-footer/test/a11y/ic-footer.test.a11y.js.map +1 -1
  232. package/dist/collection/components/ic-footer/test/basic/ic-footer.e2e.js +25 -25
  233. package/dist/collection/components/ic-footer/test/basic/ic-footer.e2e.js.map +1 -1
  234. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js +108 -108
  235. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +1 -1
  236. package/dist/collection/components/ic-footer-link/ic-footer-link.js +190 -190
  237. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  238. package/dist/collection/components/ic-footer-link/test/a11y/ic-footer-link.test.a11y.js +13 -13
  239. package/dist/collection/components/ic-footer-link/test/a11y/ic-footer-link.test.a11y.js.map +1 -1
  240. package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js +36 -36
  241. package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js.map +1 -1
  242. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +107 -107
  243. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  244. package/dist/collection/components/ic-footer-link-group/test/a11y/ic-footer-link-group.test.a11y.js +13 -13
  245. package/dist/collection/components/ic-footer-link-group/test/a11y/ic-footer-link-group.test.a11y.js.map +1 -1
  246. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js +52 -52
  247. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +1 -1
  248. package/dist/collection/components/ic-hero/ic-hero.js +292 -292
  249. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  250. package/dist/collection/components/ic-hero/test/a11y/ic-hero.test.a11y.js +5 -5
  251. package/dist/collection/components/ic-hero/test/a11y/ic-hero.test.a11y.js.map +1 -1
  252. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js +62 -62
  253. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +1 -1
  254. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +241 -240
  255. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -1
  256. package/dist/collection/components/ic-horizontal-scroll/test/a11y/ic-horizontal-scroll.test.a11y.js +17 -17
  257. package/dist/collection/components/ic-horizontal-scroll/test/a11y/ic-horizontal-scroll.test.a11y.js.map +1 -1
  258. package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js +145 -145
  259. package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js.map +1 -1
  260. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +248 -248
  261. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
  262. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js +49 -49
  263. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +1 -1
  264. package/dist/collection/components/ic-input-container/ic-input-container.js +62 -62
  265. package/dist/collection/components/ic-input-container/ic-input-container.js.map +1 -1
  266. package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js +19 -19
  267. package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js.map +1 -1
  268. package/dist/collection/components/ic-input-label/ic-input-label.js +211 -211
  269. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  270. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js +37 -37
  271. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +1 -1
  272. package/dist/collection/components/ic-input-validation/ic-input-validation.js +139 -139
  273. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  274. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js +31 -31
  275. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js.map +1 -1
  276. package/dist/collection/components/ic-link/ic-link.js +248 -248
  277. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  278. package/dist/collection/components/ic-link/test/a11y/ic-link.test.a11y.js +5 -5
  279. package/dist/collection/components/ic-link/test/a11y/ic-link.test.a11y.js.map +1 -1
  280. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js +92 -92
  281. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +1 -1
  282. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +416 -415
  283. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  284. package/dist/collection/components/ic-loading-indicator/test/a11y/ic-loading-indicator.test.a11y.js +5 -5
  285. package/dist/collection/components/ic-loading-indicator/test/a11y/ic-loading-indicator.test.a11y.js.map +1 -1
  286. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.e2e.js +25 -25
  287. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.e2e.js.map +1 -1
  288. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js +114 -114
  289. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js.map +1 -1
  290. package/dist/collection/components/ic-menu/ic-menu.js +1258 -1267
  291. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  292. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js +742 -684
  293. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +1 -1
  294. package/dist/collection/components/ic-menu-group/ic-menu-group.js +41 -41
  295. package/dist/collection/components/ic-menu-group/ic-menu-group.js.map +1 -1
  296. package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js +16 -16
  297. package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js.map +1 -1
  298. package/dist/collection/components/ic-menu-item/ic-menu-item.js +378 -378
  299. package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
  300. package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js +67 -67
  301. package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js.map +1 -1
  302. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +262 -259
  303. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  304. package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js +41 -41
  305. package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js.map +1 -1
  306. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +380 -380
  307. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  308. package/dist/collection/components/ic-navigation-group/test/a11y/ic-navigation-group.test.a11y.js +14 -14
  309. package/dist/collection/components/ic-navigation-group/test/a11y/ic-navigation-group.test.a11y.js.map +1 -1
  310. package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js +242 -242
  311. package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js.map +1 -1
  312. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +446 -446
  313. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  314. package/dist/collection/components/ic-navigation-item/test/a11y/ic-navigation-item.test.a11y.js +14 -14
  315. package/dist/collection/components/ic-navigation-item/test/a11y/ic-navigation-item.test.a11y.js.map +1 -1
  316. package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js +78 -78
  317. package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js.map +1 -1
  318. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +187 -187
  319. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  320. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.e2e.js +25 -25
  321. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.e2e.js.map +1 -1
  322. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js +104 -104
  323. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js.map +1 -1
  324. package/dist/collection/components/ic-page-header/ic-page-header.js +289 -286
  325. package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
  326. package/dist/collection/components/ic-page-header/test/a11y/ic-page-header.test.a11y.js +5 -5
  327. package/dist/collection/components/ic-page-header/test/a11y/ic-page-header.test.a11y.js.map +1 -1
  328. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.e2e.js +66 -66
  329. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.e2e.js.map +1 -1
  330. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js +82 -82
  331. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js.map +1 -1
  332. package/dist/collection/components/ic-pagination/ic-pagination.js +487 -482
  333. package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
  334. package/dist/collection/components/ic-pagination/test/a11y/ic-pagination.test.a11y.js +5 -5
  335. package/dist/collection/components/ic-pagination/test/a11y/ic-pagination.test.a11y.js.map +1 -1
  336. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.e2e.js +103 -103
  337. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.e2e.js.map +1 -1
  338. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js +303 -303
  339. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +1 -1
  340. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +225 -225
  341. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js.map +1 -1
  342. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +456 -437
  343. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  344. package/dist/collection/components/ic-popover-menu/test/a11y/ic-popover-menu.test.a11y.js +5 -5
  345. package/dist/collection/components/ic-popover-menu/test/a11y/ic-popover-menu.test.a11y.js.map +1 -1
  346. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.e2e.js +27 -27
  347. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.e2e.js.map +1 -1
  348. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js +283 -283
  349. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js.map +1 -1
  350. package/dist/collection/components/ic-radio-group/ic-radio-group.js +429 -429
  351. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  352. package/dist/collection/components/ic-radio-group/test/a11y/ic-radio-group.test.a11y.js +5 -5
  353. package/dist/collection/components/ic-radio-group/test/a11y/ic-radio-group.test.a11y.js.map +1 -1
  354. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js +218 -218
  355. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js.map +1 -1
  356. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +238 -238
  357. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -1
  358. package/dist/collection/components/ic-radio-option/ic-radio-option.css +5 -5
  359. package/dist/collection/components/ic-radio-option/ic-radio-option.js +479 -479
  360. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  361. package/dist/collection/components/ic-search-bar/ic-search-bar.js +1381 -1381
  362. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  363. package/dist/collection/components/ic-search-bar/test/a11y/ic-search-bar.test.a11y.js +5 -5
  364. package/dist/collection/components/ic-search-bar/test/a11y/ic-search-bar.test.a11y.js.map +1 -1
  365. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js +992 -992
  366. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +1 -1
  367. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js +568 -568
  368. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +1 -1
  369. package/dist/collection/components/ic-section-container/ic-section-container.js +70 -70
  370. package/dist/collection/components/ic-section-container/ic-section-container.js.map +1 -1
  371. package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js +28 -28
  372. package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js.map +1 -1
  373. package/dist/collection/components/ic-select/ic-select.css +1 -0
  374. package/dist/collection/components/ic-select/ic-select.js +1466 -1466
  375. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  376. package/dist/collection/components/ic-select/test/a11y/ic-select.test.a11y.js +5 -5
  377. package/dist/collection/components/ic-select/test/a11y/ic-select.test.a11y.js.map +1 -1
  378. package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js +1563 -1563
  379. package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js.map +1 -1
  380. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js +1299 -1299
  381. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +1 -1
  382. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +675 -654
  383. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  384. package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js.map +1 -1
  385. package/dist/collection/components/ic-side-navigation/test/a11y/ic-side-navigation.test.a11y.js +5 -5
  386. package/dist/collection/components/ic-side-navigation/test/a11y/ic-side-navigation.test.a11y.js.map +1 -1
  387. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js +463 -463
  388. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js.map +1 -1
  389. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js +143 -143
  390. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +1 -1
  391. package/dist/collection/components/ic-skeleton/ic-skeleton.js +127 -127
  392. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
  393. package/dist/collection/components/ic-skeleton/test/a11y/ic-skeleton.test.a11y.js +5 -5
  394. package/dist/collection/components/ic-skeleton/test/a11y/ic-skeleton.test.a11y.js.map +1 -1
  395. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js +38 -38
  396. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js.map +1 -1
  397. package/dist/collection/components/ic-status-tag/ic-status-tag.js +194 -194
  398. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
  399. package/dist/collection/components/ic-status-tag/test/a11y/ic-status-tag.test.a11y.js +5 -5
  400. package/dist/collection/components/ic-status-tag/test/a11y/ic-status-tag.test.a11y.js.map +1 -1
  401. package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js +14 -14
  402. package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js.map +1 -1
  403. package/dist/collection/components/ic-step/ic-step.css +6 -0
  404. package/dist/collection/components/ic-step/ic-step.js +385 -385
  405. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  406. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js +87 -87
  407. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js.map +1 -1
  408. package/dist/collection/components/ic-stepper/ic-stepper.js +306 -306
  409. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  410. package/dist/collection/components/ic-stepper/test/a11y/ic-stepper.test.a11y.js +10 -10
  411. package/dist/collection/components/ic-stepper/test/a11y/ic-stepper.test.a11y.js.map +1 -1
  412. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js +36 -36
  413. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js.map +1 -1
  414. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js +350 -350
  415. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +1 -1
  416. package/dist/collection/components/ic-switch/ic-switch.js +355 -355
  417. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  418. package/dist/collection/components/ic-switch/test/a11y/ic-switch.test.a11y.js +5 -5
  419. package/dist/collection/components/ic-switch/test/a11y/ic-switch.test.a11y.js.map +1 -1
  420. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js +88 -88
  421. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +1 -1
  422. package/dist/collection/components/ic-tab/ic-tab.js +350 -350
  423. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  424. package/dist/collection/components/ic-tab/test/basic/ic-tab.e2e.js +26 -26
  425. package/dist/collection/components/ic-tab/test/basic/ic-tab.e2e.js.map +1 -1
  426. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js +93 -93
  427. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +1 -1
  428. package/dist/collection/components/ic-tab-context/ic-tab-context.js +442 -441
  429. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  430. package/dist/collection/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.js +5 -5
  431. package/dist/collection/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.js.map +1 -1
  432. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.e2e.js +213 -213
  433. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.e2e.js.map +1 -1
  434. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js +250 -250
  435. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js.map +1 -1
  436. package/dist/collection/components/ic-tab-group/ic-tab-group.js +117 -117
  437. package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
  438. package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +444 -1
  439. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +191 -191
  440. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
  441. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js +29 -29
  442. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js.map +1 -1
  443. package/dist/collection/components/ic-text-field/ic-text-field.js +1115 -1115
  444. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  445. package/dist/collection/components/ic-text-field/test/a11y/ic-text-field.test.a11y.js +5 -5
  446. package/dist/collection/components/ic-text-field/test/a11y/ic-text-field.test.a11y.js.map +1 -1
  447. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.e2e.js +94 -94
  448. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.e2e.js.map +1 -1
  449. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js +194 -194
  450. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +1 -1
  451. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js +92 -92
  452. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +1 -1
  453. package/dist/collection/components/ic-theme/ic-theme.js +99 -99
  454. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
  455. package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js +65 -65
  456. package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js.map +1 -1
  457. package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js +53 -53
  458. package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js.map +1 -1
  459. package/dist/collection/components/ic-toast/ic-toast.js +368 -368
  460. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  461. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +180 -180
  462. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
  463. package/dist/collection/components/ic-toast-region/ic-toast-region.js +115 -110
  464. package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -1
  465. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js +58 -58
  466. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js.map +1 -1
  467. package/dist/collection/components/ic-tooltip/ic-tooltip.js +371 -329
  468. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  469. package/dist/collection/components/ic-tooltip/test/a11y/ic-tooltip.test.a11y.js +5 -5
  470. package/dist/collection/components/ic-tooltip/test/a11y/ic-tooltip.test.a11y.js.map +1 -1
  471. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js +105 -105
  472. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js.map +1 -1
  473. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js +276 -276
  474. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js.map +1 -1
  475. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +0 -4
  476. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +431 -418
  477. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  478. package/dist/collection/components/ic-top-navigation/test/a11y/ic-top-navigation.test.a11y.js +20 -20
  479. package/dist/collection/components/ic-top-navigation/test/a11y/ic-top-navigation.test.a11y.js.map +1 -1
  480. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.e2e.js +43 -43
  481. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.e2e.js.map +1 -1
  482. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js +191 -191
  483. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js.map +1 -1
  484. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js +180 -180
  485. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js.map +1 -1
  486. package/dist/collection/components/ic-typography/ic-typography.js +270 -270
  487. package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
  488. package/dist/collection/components/ic-typography/test/a11y/ic-typography.test.a11y.js +5 -5
  489. package/dist/collection/components/ic-typography/test/a11y/ic-typography.test.a11y.js.map +1 -1
  490. package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js +25 -25
  491. package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js.map +1 -1
  492. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js +276 -276
  493. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +1 -1
  494. package/dist/collection/testspec.setup.js +32 -32
  495. package/dist/collection/testspec.setup.js.map +1 -1
  496. package/dist/collection/utils/constants.js +55 -55
  497. package/dist/collection/utils/constants.js.map +1 -1
  498. package/dist/collection/utils/helpers.js +235 -235
  499. package/dist/collection/utils/helpers.js.map +1 -1
  500. package/dist/collection/utils/testa11y.helpers.js +2 -2
  501. package/dist/collection/utils/testa11y.helpers.js.map +1 -1
  502. package/dist/collection/utils/types.js +6 -6
  503. package/dist/collection/utils/types.js.map +1 -1
  504. package/dist/components/helpers.js +290 -290
  505. package/dist/components/helpers.js.map +1 -1
  506. package/dist/components/ic-accordion-group.d.ts +2 -2
  507. package/dist/components/ic-accordion-group.js +112 -112
  508. package/dist/components/ic-accordion-group.js.map +1 -1
  509. package/dist/components/ic-accordion.d.ts +2 -2
  510. package/dist/components/ic-accordion.js +125 -125
  511. package/dist/components/ic-accordion.js.map +1 -1
  512. package/dist/components/ic-alert.d.ts +2 -2
  513. package/dist/components/ic-alert2.js +98 -98
  514. package/dist/components/ic-alert2.js.map +1 -1
  515. package/dist/components/ic-back-to-top.d.ts +2 -2
  516. package/dist/components/ic-back-to-top.js +143 -143
  517. package/dist/components/ic-back-to-top.js.map +1 -1
  518. package/dist/components/ic-badge.d.ts +2 -2
  519. package/dist/components/ic-badge.js +174 -174
  520. package/dist/components/ic-badge.js.map +1 -1
  521. package/dist/components/ic-breadcrumb-group.d.ts +2 -2
  522. package/dist/components/ic-breadcrumb-group.js +199 -192
  523. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  524. package/dist/components/ic-breadcrumb.d.ts +2 -2
  525. package/dist/components/ic-breadcrumb2.js +78 -75
  526. package/dist/components/ic-breadcrumb2.js.map +1 -1
  527. package/dist/components/ic-button.d.ts +2 -2
  528. package/dist/components/ic-button2.js +332 -304
  529. package/dist/components/ic-button2.js.map +1 -1
  530. package/dist/components/ic-card.d.ts +2 -2
  531. package/dist/components/ic-card.js +155 -155
  532. package/dist/components/ic-card.js.map +1 -1
  533. package/dist/components/ic-checkbox-group.d.ts +2 -2
  534. package/dist/components/ic-checkbox-group.js +97 -97
  535. package/dist/components/ic-checkbox-group.js.map +1 -1
  536. package/dist/components/ic-checkbox.d.ts +2 -2
  537. package/dist/components/ic-checkbox.js +131 -131
  538. package/dist/components/ic-checkbox.js.map +1 -1
  539. package/dist/components/ic-chip.d.ts +2 -2
  540. package/dist/components/ic-chip.js +99 -96
  541. package/dist/components/ic-chip.js.map +1 -1
  542. package/dist/components/ic-classification-banner.d.ts +2 -2
  543. package/dist/components/ic-classification-banner.js +47 -47
  544. package/dist/components/ic-classification-banner.js.map +1 -1
  545. package/dist/components/ic-data-entity.d.ts +2 -2
  546. package/dist/components/ic-data-entity.js +39 -39
  547. package/dist/components/ic-data-entity.js.map +1 -1
  548. package/dist/components/ic-data-row.d.ts +2 -2
  549. package/dist/components/ic-data-row.js +97 -97
  550. package/dist/components/ic-data-row.js.map +1 -1
  551. package/dist/components/ic-dialog.d.ts +2 -2
  552. package/dist/components/ic-dialog.js +399 -399
  553. package/dist/components/ic-dialog.js.map +1 -1
  554. package/dist/components/ic-divider.d.ts +2 -2
  555. package/dist/components/ic-divider2.js +28 -28
  556. package/dist/components/ic-divider2.js.map +1 -1
  557. package/dist/components/ic-empty-state.d.ts +2 -2
  558. package/dist/components/ic-empty-state.js +47 -47
  559. package/dist/components/ic-empty-state.js.map +1 -1
  560. package/dist/components/ic-footer-link-group.d.ts +2 -2
  561. package/dist/components/ic-footer-link-group.js +82 -82
  562. package/dist/components/ic-footer-link-group.js.map +1 -1
  563. package/dist/components/ic-footer-link.d.ts +2 -2
  564. package/dist/components/ic-footer-link.js +71 -71
  565. package/dist/components/ic-footer-link.js.map +1 -1
  566. package/dist/components/ic-footer.d.ts +2 -2
  567. package/dist/components/ic-footer.js +108 -108
  568. package/dist/components/ic-footer.js.map +1 -1
  569. package/dist/components/ic-hero.d.ts +2 -2
  570. package/dist/components/ic-hero.js +98 -98
  571. package/dist/components/ic-hero.js.map +1 -1
  572. package/dist/components/ic-horizontal-scroll.d.ts +2 -2
  573. package/dist/components/ic-horizontal-scroll2.js +189 -189
  574. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  575. package/dist/components/ic-input-component-container.d.ts +2 -2
  576. package/dist/components/ic-input-component-container2.js +61 -61
  577. package/dist/components/ic-input-component-container2.js.map +1 -1
  578. package/dist/components/ic-input-container.d.ts +2 -2
  579. package/dist/components/ic-input-container2.js +28 -28
  580. package/dist/components/ic-input-container2.js.map +1 -1
  581. package/dist/components/ic-input-label.d.ts +2 -2
  582. package/dist/components/ic-input-label2.js +62 -62
  583. package/dist/components/ic-input-label2.js.map +1 -1
  584. package/dist/components/ic-input-validation.d.ts +2 -2
  585. package/dist/components/ic-input-validation2.js +50 -50
  586. package/dist/components/ic-input-validation2.js.map +1 -1
  587. package/dist/components/ic-link.d.ts +2 -2
  588. package/dist/components/ic-link2.js +76 -76
  589. package/dist/components/ic-link2.js.map +1 -1
  590. package/dist/components/ic-loading-indicator.d.ts +2 -2
  591. package/dist/components/ic-loading-indicator2.js +211 -210
  592. package/dist/components/ic-loading-indicator2.js.map +1 -1
  593. package/dist/components/ic-menu-group.d.ts +2 -2
  594. package/dist/components/ic-menu-group.js +30 -30
  595. package/dist/components/ic-menu-group.js.map +1 -1
  596. package/dist/components/ic-menu-item.d.ts +2 -2
  597. package/dist/components/ic-menu-item2.js +144 -144
  598. package/dist/components/ic-menu-item2.js.map +1 -1
  599. package/dist/components/ic-menu.d.ts +2 -2
  600. package/dist/components/ic-menu2.js +683 -691
  601. package/dist/components/ic-menu2.js.map +1 -1
  602. package/dist/components/ic-navigation-button.d.ts +2 -2
  603. package/dist/components/ic-navigation-button.js +121 -118
  604. package/dist/components/ic-navigation-button.js.map +1 -1
  605. package/dist/components/ic-navigation-group.d.ts +2 -2
  606. package/dist/components/ic-navigation-group.js +310 -310
  607. package/dist/components/ic-navigation-group.js.map +1 -1
  608. package/dist/components/ic-navigation-item.d.ts +2 -2
  609. package/dist/components/ic-navigation-item.js +194 -194
  610. package/dist/components/ic-navigation-item.js.map +1 -1
  611. package/dist/components/ic-navigation-menu.d.ts +2 -2
  612. package/dist/components/ic-navigation-menu2.js +139 -139
  613. package/dist/components/ic-navigation-menu2.js.map +1 -1
  614. package/dist/components/ic-page-header.d.ts +2 -2
  615. package/dist/components/ic-page-header.js +150 -147
  616. package/dist/components/ic-page-header.js.map +1 -1
  617. package/dist/components/ic-pagination-item.d.ts +2 -2
  618. package/dist/components/ic-pagination-item2.js +67 -67
  619. package/dist/components/ic-pagination-item2.js.map +1 -1
  620. package/dist/components/ic-pagination.d.ts +2 -2
  621. package/dist/components/ic-pagination.js +253 -252
  622. package/dist/components/ic-pagination.js.map +1 -1
  623. package/dist/components/ic-popover-menu.d.ts +2 -2
  624. package/dist/components/ic-popover-menu.js +283 -281
  625. package/dist/components/ic-popover-menu.js.map +1 -1
  626. package/dist/components/ic-radio-group.d.ts +2 -2
  627. package/dist/components/ic-radio-group.js +200 -200
  628. package/dist/components/ic-radio-group.js.map +1 -1
  629. package/dist/components/ic-radio-option.d.ts +2 -2
  630. package/dist/components/ic-radio-option.js +163 -163
  631. package/dist/components/ic-radio-option.js.map +1 -1
  632. package/dist/components/ic-search-bar.d.ts +2 -2
  633. package/dist/components/ic-search-bar.js +580 -580
  634. package/dist/components/ic-search-bar.js.map +1 -1
  635. package/dist/components/ic-section-container.d.ts +2 -2
  636. package/dist/components/ic-section-container2.js +31 -31
  637. package/dist/components/ic-section-container2.js.map +1 -1
  638. package/dist/components/ic-select.d.ts +2 -2
  639. package/dist/components/ic-select.js +752 -752
  640. package/dist/components/ic-select.js.map +1 -1
  641. package/dist/components/ic-side-navigation.d.ts +2 -2
  642. package/dist/components/ic-side-navigation.js +479 -481
  643. package/dist/components/ic-side-navigation.js.map +1 -1
  644. package/dist/components/ic-skeleton.d.ts +2 -2
  645. package/dist/components/ic-skeleton.js +64 -64
  646. package/dist/components/ic-skeleton.js.map +1 -1
  647. package/dist/components/ic-status-tag.d.ts +2 -2
  648. package/dist/components/ic-status-tag.js +53 -53
  649. package/dist/components/ic-status-tag.js.map +1 -1
  650. package/dist/components/ic-step.d.ts +2 -2
  651. package/dist/components/ic-step.js +157 -157
  652. package/dist/components/ic-step.js.map +1 -1
  653. package/dist/components/ic-stepper.d.ts +2 -2
  654. package/dist/components/ic-stepper.js +223 -223
  655. package/dist/components/ic-stepper.js.map +1 -1
  656. package/dist/components/ic-switch.d.ts +2 -2
  657. package/dist/components/ic-switch.js +114 -114
  658. package/dist/components/ic-switch.js.map +1 -1
  659. package/dist/components/ic-tab-context.d.ts +2 -2
  660. package/dist/components/ic-tab-context.js +271 -271
  661. package/dist/components/ic-tab-context.js.map +1 -1
  662. package/dist/components/ic-tab-group.d.ts +2 -2
  663. package/dist/components/ic-tab-group.js +64 -64
  664. package/dist/components/ic-tab-group.js.map +1 -1
  665. package/dist/components/ic-tab-panel.d.ts +2 -2
  666. package/dist/components/ic-tab-panel.js +48 -48
  667. package/dist/components/ic-tab-panel.js.map +1 -1
  668. package/dist/components/ic-tab.d.ts +2 -2
  669. package/dist/components/ic-tab.js +112 -112
  670. package/dist/components/ic-tab.js.map +1 -1
  671. package/dist/components/ic-text-field.d.ts +2 -2
  672. package/dist/components/ic-text-field2.js +293 -293
  673. package/dist/components/ic-text-field2.js.map +1 -1
  674. package/dist/components/ic-theme.d.ts +2 -2
  675. package/dist/components/ic-theme.js +65 -65
  676. package/dist/components/ic-theme.js.map +1 -1
  677. package/dist/components/ic-toast-region.d.ts +2 -2
  678. package/dist/components/ic-toast-region.js +63 -62
  679. package/dist/components/ic-toast-region.js.map +1 -1
  680. package/dist/components/ic-toast.d.ts +2 -2
  681. package/dist/components/ic-toast.js +187 -187
  682. package/dist/components/ic-toast.js.map +1 -1
  683. package/dist/components/ic-tooltip.d.ts +2 -2
  684. package/dist/components/ic-tooltip2.js +217 -211
  685. package/dist/components/ic-tooltip2.js.map +1 -1
  686. package/dist/components/ic-top-navigation.d.ts +2 -2
  687. package/dist/components/ic-top-navigation.js +263 -264
  688. package/dist/components/ic-top-navigation.js.map +1 -1
  689. package/dist/components/ic-typography.d.ts +2 -2
  690. package/dist/components/ic-typography2.js +142 -142
  691. package/dist/components/ic-typography2.js.map +1 -1
  692. package/dist/components/types.js +6 -6
  693. package/dist/components/types.js.map +1 -1
  694. package/dist/core/core.css +2 -2
  695. package/dist/core/core.esm.js +1 -1
  696. package/dist/core/core.esm.js.map +1 -1
  697. package/dist/core/{p-7ce86152.entry.js → p-056f8a67.entry.js} +2 -2
  698. package/dist/core/{p-08b59078.entry.js → p-11736fbe.entry.js} +2 -2
  699. package/dist/core/{p-657513b5.entry.js → p-1338c9df.entry.js} +2 -2
  700. package/dist/core/p-1338c9df.entry.js.map +1 -0
  701. package/dist/core/{p-ba495175.entry.js → p-15466b42.entry.js} +2 -2
  702. package/dist/core/{p-ba495175.entry.js.map → p-15466b42.entry.js.map} +1 -1
  703. package/dist/core/{p-5ccbb042.entry.js → p-15624e08.entry.js} +2 -2
  704. package/dist/core/{p-5fcd202e.entry.js → p-15ef0674.entry.js} +2 -2
  705. package/dist/core/{p-88ea1e49.entry.js → p-180e36b1.entry.js} +2 -2
  706. package/dist/core/{p-43af3cf6.entry.js → p-22c024ee.entry.js} +2 -2
  707. package/dist/core/{p-613aa265.js → p-26b7b18f.js} +1 -1
  708. package/dist/core/{p-932fb4b7.entry.js → p-287ab47c.entry.js} +2 -2
  709. package/dist/core/{p-69948c3e.entry.js → p-2b24b4bf.entry.js} +2 -2
  710. package/dist/core/{p-9f6ffced.entry.js → p-31969be6.entry.js} +2 -2
  711. package/dist/core/{p-475b7bd2.entry.js → p-335fc5e4.entry.js} +2 -2
  712. package/dist/core/{p-c9ef9f5c.entry.js → p-366bcb17.entry.js} +2 -2
  713. package/dist/core/{p-ed256f1d.entry.js → p-3a0ef91e.entry.js} +2 -2
  714. package/dist/core/{p-ca6073be.entry.js → p-498eb7ad.entry.js} +2 -2
  715. package/dist/core/p-498eb7ad.entry.js.map +1 -0
  716. package/dist/core/{p-3a814fc4.entry.js → p-4d413a72.entry.js} +2 -2
  717. package/dist/core/p-4d413a72.entry.js.map +1 -0
  718. package/dist/core/{p-cb5f19ea.entry.js → p-51f9f329.entry.js} +2 -2
  719. package/dist/core/{p-f019219c.entry.js → p-529d8955.entry.js} +2 -2
  720. package/dist/core/p-52e063d3.js +3 -0
  721. package/dist/core/p-52e063d3.js.map +1 -0
  722. package/dist/core/{p-4bc35224.entry.js → p-592c783e.entry.js} +2 -2
  723. package/dist/core/p-592c783e.entry.js.map +1 -0
  724. package/dist/core/{p-b879fa3e.entry.js → p-5c7e339f.entry.js} +2 -2
  725. package/dist/core/p-5f9d69ef.entry.js +2 -0
  726. package/dist/core/p-5f9d69ef.entry.js.map +1 -0
  727. package/dist/core/{p-2c30b583.entry.js → p-60c4604f.entry.js} +2 -2
  728. package/dist/core/{p-ccac1730.entry.js → p-6d3f9501.entry.js} +2 -2
  729. package/dist/core/{p-536b3c97.entry.js → p-6eb0421d.entry.js} +2 -2
  730. package/dist/core/{p-48525498.entry.js → p-765bdd98.entry.js} +2 -2
  731. package/dist/core/p-776232f4.entry.js +2 -0
  732. package/dist/core/p-776232f4.entry.js.map +1 -0
  733. package/dist/core/p-85026377.entry.js +2 -0
  734. package/dist/core/p-85026377.entry.js.map +1 -0
  735. package/dist/core/{p-752f0f9a.entry.js → p-8a83f391.entry.js} +2 -2
  736. package/dist/core/p-8a83f391.entry.js.map +1 -0
  737. package/dist/core/{p-e3bffcae.entry.js → p-94e88827.entry.js} +2 -2
  738. package/dist/core/{p-8fb4f0c0.js → p-95a864bf.js} +2 -2
  739. package/dist/core/{p-c0c62df4.entry.js → p-9639e33f.entry.js} +2 -2
  740. package/dist/core/p-9639e33f.entry.js.map +1 -0
  741. package/dist/core/{p-eb4641a9.entry.js → p-96da1e85.entry.js} +2 -2
  742. package/dist/core/{p-0c82048e.entry.js → p-9c30720d.entry.js} +2 -2
  743. package/dist/core/p-a46130c8.entry.js +2 -0
  744. package/dist/core/p-a46130c8.entry.js.map +1 -0
  745. package/dist/core/p-a908e7a9.entry.js +2 -0
  746. package/dist/core/p-a908e7a9.entry.js.map +1 -0
  747. package/dist/core/{p-a76912b0.entry.js → p-aa0a9870.entry.js} +2 -2
  748. package/dist/core/{p-76563540.entry.js → p-ad36a704.entry.js} +2 -2
  749. package/dist/core/{p-d80f99e0.entry.js → p-b0088956.entry.js} +2 -2
  750. package/dist/core/p-b39ecae2.entry.js +2 -0
  751. package/dist/core/p-b39ecae2.entry.js.map +1 -0
  752. package/dist/core/{p-2265e418.entry.js → p-b6a575c3.entry.js} +2 -2
  753. package/dist/core/{p-fbc8a739.entry.js → p-b9736cf4.entry.js} +2 -2
  754. package/dist/core/{p-025f9d2a.entry.js → p-b99f9e89.entry.js} +2 -2
  755. package/dist/core/{p-b0ce60a0.entry.js → p-c2452388.entry.js} +2 -2
  756. package/dist/core/{p-345fe84a.entry.js → p-c770e7a2.entry.js} +2 -2
  757. package/dist/core/{p-748159fe.entry.js → p-ca48e97a.entry.js} +2 -2
  758. package/dist/core/{p-5a3ca50a.entry.js → p-cd8de4c5.entry.js} +2 -2
  759. package/dist/core/{p-a4397df4.entry.js → p-cfc930f6.entry.js} +2 -2
  760. package/dist/core/{p-3a15202f.entry.js → p-d18450f9.entry.js} +2 -2
  761. package/dist/core/p-d18450f9.entry.js.map +1 -0
  762. package/dist/core/p-daebb58a.entry.js +2 -0
  763. package/dist/core/p-daebb58a.entry.js.map +1 -0
  764. package/dist/core/p-dbb5b008.entry.js +2 -0
  765. package/dist/core/p-dbb5b008.entry.js.map +1 -0
  766. package/dist/core/{p-9ff57f09.entry.js → p-e5abfadd.entry.js} +2 -2
  767. package/dist/core/{p-41c6eaa1.entry.js → p-e9738c74.entry.js} +2 -2
  768. package/dist/core/p-ea17e371.entry.js +2 -0
  769. package/dist/core/p-ea17e371.entry.js.map +1 -0
  770. package/dist/core/{p-e2fd542e.entry.js → p-edd29edc.entry.js} +2 -2
  771. package/dist/core/p-edec0936.entry.js +2 -0
  772. package/dist/core/p-edec0936.entry.js.map +1 -0
  773. package/dist/core/{p-8b18346a.entry.js → p-f0809037.entry.js} +2 -2
  774. package/dist/core/{p-5bb6c79b.entry.js → p-f2e6b9ef.entry.js} +2 -2
  775. package/dist/core/{p-cf4bacee.entry.js → p-fdb4b48f.entry.js} +2 -2
  776. package/dist/esm/core.js +4 -4
  777. package/dist/esm/core.js.map +1 -1
  778. package/dist/esm/{helpers-24f6e762.js → helpers-c597f246.js} +292 -292
  779. package/dist/esm/helpers-c597f246.js.map +1 -0
  780. package/dist/esm/ic-accordion-group.entry.js +71 -71
  781. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  782. package/dist/esm/ic-accordion.entry.js +99 -99
  783. package/dist/esm/ic-accordion.entry.js.map +1 -1
  784. package/dist/esm/ic-alert.entry.js +58 -58
  785. package/dist/esm/ic-alert.entry.js.map +1 -1
  786. package/dist/esm/ic-back-to-top.entry.js +120 -120
  787. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  788. package/dist/esm/ic-badge.entry.js +146 -146
  789. package/dist/esm/ic-badge.entry.js.map +1 -1
  790. package/dist/esm/ic-breadcrumb-group.entry.js +172 -166
  791. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  792. package/dist/esm/ic-breadcrumb.entry.js +55 -53
  793. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  794. package/dist/esm/ic-button_3.entry.js +636 -606
  795. package/dist/esm/ic-button_3.entry.js.map +1 -1
  796. package/dist/esm/ic-card.entry.js +105 -105
  797. package/dist/esm/ic-card.entry.js.map +1 -1
  798. package/dist/esm/ic-checkbox-group.entry.js +60 -60
  799. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  800. package/dist/esm/ic-checkbox.entry.js +95 -95
  801. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  802. package/dist/esm/ic-chip.entry.js +67 -65
  803. package/dist/esm/ic-chip.entry.js.map +1 -1
  804. package/dist/esm/ic-classification-banner.entry.js +23 -23
  805. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  806. package/dist/esm/ic-data-entity.entry.js +17 -17
  807. package/dist/esm/ic-data-entity.entry.js.map +1 -1
  808. package/dist/esm/ic-data-row.entry.js +74 -74
  809. package/dist/esm/ic-data-row.entry.js.map +1 -1
  810. package/dist/esm/ic-dialog.entry.js +339 -339
  811. package/dist/esm/ic-dialog.entry.js.map +1 -1
  812. package/dist/esm/ic-divider.entry.js +16 -16
  813. package/dist/esm/ic-divider.entry.js.map +1 -1
  814. package/dist/esm/ic-empty-state.entry.js +24 -24
  815. package/dist/esm/ic-empty-state.entry.js.map +1 -1
  816. package/dist/esm/ic-footer-link-group.entry.js +55 -55
  817. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  818. package/dist/esm/ic-footer-link.entry.js +50 -50
  819. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  820. package/dist/esm/ic-footer.entry.js +78 -78
  821. package/dist/esm/ic-footer.entry.js.map +1 -1
  822. package/dist/esm/ic-hero.entry.js +62 -62
  823. package/dist/esm/ic-hero.entry.js.map +1 -1
  824. package/dist/esm/ic-horizontal-scroll.entry.js +151 -151
  825. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  826. package/dist/esm/ic-input-component-container_3.entry.js +670 -678
  827. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  828. package/dist/esm/ic-input-label_2.entry.js +63 -63
  829. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  830. package/dist/esm/ic-link.entry.js +55 -55
  831. package/dist/esm/ic-link.entry.js.map +1 -1
  832. package/dist/esm/ic-menu-group.entry.js +12 -12
  833. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  834. package/dist/esm/ic-menu-item.entry.js +100 -100
  835. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  836. package/dist/esm/ic-navigation-button.entry.js +79 -76
  837. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  838. package/dist/esm/ic-navigation-group.entry.js +283 -283
  839. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  840. package/dist/esm/ic-navigation-item.entry.js +152 -152
  841. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  842. package/dist/esm/ic-navigation-menu.entry.js +105 -105
  843. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  844. package/dist/esm/ic-page-header.entry.js +96 -93
  845. package/dist/esm/ic-page-header.entry.js.map +1 -1
  846. package/dist/esm/ic-pagination-item.entry.js +42 -42
  847. package/dist/esm/ic-pagination-item.entry.js.map +1 -1
  848. package/dist/esm/ic-pagination.entry.js +196 -195
  849. package/dist/esm/ic-pagination.entry.js.map +1 -1
  850. package/dist/esm/ic-popover-menu.entry.js +233 -231
  851. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  852. package/dist/esm/ic-radio-group.entry.js +156 -156
  853. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  854. package/dist/esm/ic-radio-option.entry.js +128 -128
  855. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  856. package/dist/esm/ic-search-bar.entry.js +474 -474
  857. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  858. package/dist/esm/ic-section-container.entry.js +15 -15
  859. package/dist/esm/ic-section-container.entry.js.map +1 -1
  860. package/dist/esm/ic-select.entry.js +640 -640
  861. package/dist/esm/ic-select.entry.js.map +1 -1
  862. package/dist/esm/ic-side-navigation.entry.js +424 -426
  863. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  864. package/dist/esm/ic-skeleton.entry.js +43 -43
  865. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  866. package/dist/esm/ic-status-tag.entry.js +29 -29
  867. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  868. package/dist/esm/ic-step.entry.js +121 -121
  869. package/dist/esm/ic-step.entry.js.map +1 -1
  870. package/dist/esm/ic-stepper.entry.js +200 -200
  871. package/dist/esm/ic-stepper.entry.js.map +1 -1
  872. package/dist/esm/ic-switch.entry.js +77 -77
  873. package/dist/esm/ic-switch.entry.js.map +1 -1
  874. package/dist/esm/ic-tab-context.entry.js +252 -252
  875. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  876. package/dist/esm/ic-tab-group.entry.js +23 -23
  877. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  878. package/dist/esm/ic-tab-panel.entry.js +31 -31
  879. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  880. package/dist/esm/ic-tab.entry.js +86 -86
  881. package/dist/esm/ic-tab.entry.js.map +1 -1
  882. package/dist/esm/ic-text-field.entry.js +210 -210
  883. package/dist/esm/ic-text-field.entry.js.map +1 -1
  884. package/dist/esm/ic-theme.entry.js +51 -51
  885. package/dist/esm/ic-theme.entry.js.map +1 -1
  886. package/dist/esm/ic-toast-region.entry.js +47 -46
  887. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  888. package/dist/esm/ic-toast.entry.js +145 -145
  889. package/dist/esm/ic-toast.entry.js.map +1 -1
  890. package/dist/esm/ic-top-navigation.entry.js +198 -199
  891. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  892. package/dist/esm/ic-typography.entry.js +118 -118
  893. package/dist/esm/ic-typography.entry.js.map +1 -1
  894. package/dist/{cjs/index-4f8c900f.js → esm/index-05003e1c.js} +603 -407
  895. package/dist/esm/index-05003e1c.js.map +1 -0
  896. package/dist/esm/loader.js +3 -3
  897. package/dist/esm/types-6f6b41a5.js +16 -0
  898. package/dist/esm/{types-b2398b37.js.map → types-6f6b41a5.js.map} +1 -1
  899. package/dist/node.d.ts +12 -0
  900. package/dist/types/components/ic-accordion/ic-accordion.d.ts +48 -48
  901. package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +30 -30
  902. package/dist/types/components/ic-alert/ic-alert.d.ts +40 -40
  903. package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +23 -23
  904. package/dist/types/components/ic-badge/ic-badge.d.ts +57 -57
  905. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +30 -25
  906. package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +43 -38
  907. package/dist/types/components/ic-button/ic-button.d.ts +150 -137
  908. package/dist/types/components/ic-card/ic-card.d.ts +68 -68
  909. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +91 -91
  910. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +50 -50
  911. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.types.d.ts +6 -6
  912. package/dist/types/components/ic-chip/ic-chip.d.ts +50 -46
  913. package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +21 -21
  914. package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +14 -14
  915. package/dist/types/components/ic-data-row/ic-data-row.d.ts +34 -34
  916. package/dist/types/components/ic-dialog/ic-dialog.d.ts +139 -139
  917. package/dist/types/components/ic-divider/ic-divider.d.ts +3 -3
  918. package/dist/types/components/ic-empty-state/ic-empty-state.d.ts +27 -27
  919. package/dist/types/components/ic-footer/ic-footer.d.ts +41 -41
  920. package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +35 -35
  921. package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +17 -17
  922. package/dist/types/components/ic-hero/ic-hero.d.ts +51 -51
  923. package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +41 -41
  924. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +42 -42
  925. package/dist/types/components/ic-input-container/ic-input-container.d.ts +9 -9
  926. package/dist/types/components/ic-input-label/ic-input-label.d.ts +38 -38
  927. package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +23 -23
  928. package/dist/types/components/ic-link/ic-link.d.ts +44 -44
  929. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +76 -76
  930. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +3 -3
  931. package/dist/types/components/ic-menu/ic-menu.d.ts +184 -183
  932. package/dist/types/components/ic-menu/ic-menu.types.d.ts +6 -6
  933. package/dist/types/components/ic-menu-group/ic-menu-group.d.ts +6 -6
  934. package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +66 -66
  935. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +47 -47
  936. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +62 -62
  937. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +80 -80
  938. package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +29 -29
  939. package/dist/types/components/ic-page-header/ic-page-header.d.ts +48 -48
  940. package/dist/types/components/ic-pagination/ic-pagination.d.ts +78 -77
  941. package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +1 -1
  942. package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +42 -42
  943. package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +65 -60
  944. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +67 -67
  945. package/dist/types/components/ic-radio-group/ic-radio-group.types.d.ts +5 -5
  946. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +89 -89
  947. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +248 -248
  948. package/dist/types/components/ic-search-bar/ic-search-bar.types.d.ts +1 -1
  949. package/dist/types/components/ic-section-container/ic-section-container.d.ts +9 -9
  950. package/dist/types/components/ic-select/ic-select.d.ts +269 -269
  951. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +103 -97
  952. package/dist/types/components/ic-side-navigation/ic-side-navigation.types.d.ts +10 -6
  953. package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +19 -19
  954. package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +31 -31
  955. package/dist/types/components/ic-step/ic-step.d.ts +51 -51
  956. package/dist/types/components/ic-stepper/ic-stepper.d.ts +40 -40
  957. package/dist/types/components/ic-switch/ic-switch.d.ts +73 -73
  958. package/dist/types/components/ic-switch/ic-switch.types.d.ts +2 -2
  959. package/dist/types/components/ic-tab/ic-tab.d.ts +51 -51
  960. package/dist/types/components/ic-tab/ic-tab.types.d.ts +4 -4
  961. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +59 -59
  962. package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +19 -19
  963. package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +33 -33
  964. package/dist/types/components/ic-text-field/ic-text-field.d.ts +214 -214
  965. package/dist/types/components/ic-theme/ic-theme.d.ts +14 -14
  966. package/dist/types/components/ic-toast/ic-toast.d.ts +58 -58
  967. package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +16 -15
  968. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +58 -50
  969. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +77 -72
  970. package/dist/types/components/ic-typography/ic-typography.d.ts +54 -54
  971. package/dist/types/components.d.ts +433 -3
  972. package/dist/types/interface.d.ts +3 -0
  973. package/dist/types/stencil-public-runtime.d.ts +29 -0
  974. package/dist/types/testspec.setup.d.ts +7 -7
  975. package/dist/types/utils/constants.d.ts +26 -26
  976. package/dist/types/utils/helpers.d.ts +7 -7
  977. package/dist/types/utils/types.d.ts +31 -31
  978. package/hydrate/index.d.ts +2 -2
  979. package/hydrate/index.js +15888 -14092
  980. package/package.json +8 -5
  981. package/vscode-data.json +3947 -0
  982. package/dist/cjs/helpers-0d63359f.js.map +0 -1
  983. package/dist/cjs/index-4f8c900f.js.map +0 -1
  984. package/dist/cjs/types-7d67439f.js +0 -16
  985. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.e2e.js +0 -57
  986. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.e2e.js.map +0 -1
  987. package/dist/collection/components/ic-accordion-group/test/a11y/ic-accordion-group.test.a11y.js +0 -31
  988. package/dist/collection/components/ic-accordion-group/test/a11y/ic-accordion-group.test.a11y.js.map +0 -1
  989. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.e2e.js +0 -117
  990. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.e2e.js.map +0 -1
  991. package/dist/collection/components/ic-alert/test/a11y/ic-alert.test.a11y.js +0 -11
  992. package/dist/collection/components/ic-alert/test/a11y/ic-alert.test.a11y.js.map +0 -1
  993. package/dist/collection/components/ic-alert/test/basic/ic-alert.e2e.js +0 -16
  994. package/dist/collection/components/ic-alert/test/basic/ic-alert.e2e.js.map +0 -1
  995. package/dist/collection/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.js +0 -28
  996. package/dist/collection/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.js.map +0 -1
  997. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.e2e.js +0 -68
  998. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.e2e.js.map +0 -1
  999. package/dist/collection/components/ic-badge/test/a11y/ic-badge.test.a11y.js +0 -16
  1000. package/dist/collection/components/ic-badge/test/a11y/ic-badge.test.a11y.js.map +0 -1
  1001. package/dist/collection/components/ic-classification-banner/test/a11y/ic-classification-banner.test.a11y.js +0 -11
  1002. package/dist/collection/components/ic-classification-banner/test/a11y/ic-classification-banner.test.a11y.js.map +0 -1
  1003. package/dist/collection/components/ic-toast/test/a11y/ic-toast.test.a11y.js +0 -16
  1004. package/dist/collection/components/ic-toast/test/a11y/ic-toast.test.a11y.js.map +0 -1
  1005. package/dist/collection/components/ic-toast/test/basic/ic-toast.e2e.js +0 -82
  1006. package/dist/collection/components/ic-toast/test/basic/ic-toast.e2e.js.map +0 -1
  1007. package/dist/core/p-03329fd0.entry.js +0 -2
  1008. package/dist/core/p-03329fd0.entry.js.map +0 -1
  1009. package/dist/core/p-24da56e7.entry.js +0 -2
  1010. package/dist/core/p-24da56e7.entry.js.map +0 -1
  1011. package/dist/core/p-39c8111d.entry.js +0 -2
  1012. package/dist/core/p-39c8111d.entry.js.map +0 -1
  1013. package/dist/core/p-3a15202f.entry.js.map +0 -1
  1014. package/dist/core/p-3a814fc4.entry.js.map +0 -1
  1015. package/dist/core/p-4bc35224.entry.js.map +0 -1
  1016. package/dist/core/p-59bdafff.entry.js +0 -2
  1017. package/dist/core/p-59bdafff.entry.js.map +0 -1
  1018. package/dist/core/p-657513b5.entry.js.map +0 -1
  1019. package/dist/core/p-69d15528.entry.js +0 -2
  1020. package/dist/core/p-69d15528.entry.js.map +0 -1
  1021. package/dist/core/p-6c376756.entry.js +0 -2
  1022. package/dist/core/p-6c376756.entry.js.map +0 -1
  1023. package/dist/core/p-717907de.entry.js +0 -2
  1024. package/dist/core/p-717907de.entry.js.map +0 -1
  1025. package/dist/core/p-752f0f9a.entry.js.map +0 -1
  1026. package/dist/core/p-99fad66b.entry.js +0 -2
  1027. package/dist/core/p-99fad66b.entry.js.map +0 -1
  1028. package/dist/core/p-9d124fc7.js +0 -3
  1029. package/dist/core/p-9d124fc7.js.map +0 -1
  1030. package/dist/core/p-c0719bf4.entry.js +0 -2
  1031. package/dist/core/p-c0719bf4.entry.js.map +0 -1
  1032. package/dist/core/p-c0c62df4.entry.js.map +0 -1
  1033. package/dist/core/p-ca6073be.entry.js.map +0 -1
  1034. package/dist/core/p-e9ddb8cd.entry.js +0 -2
  1035. package/dist/core/p-e9ddb8cd.entry.js.map +0 -1
  1036. package/dist/esm/helpers-24f6e762.js.map +0 -1
  1037. package/dist/esm/index-813020f1.js.map +0 -1
  1038. package/dist/esm/types-b2398b37.js +0 -16
  1039. package/dist/types/components/ic-accordion-group/test/a11y/ic-accordion-group.test.a11y.d.ts +0 -1
  1040. package/dist/types/components/ic-alert/test/a11y/ic-alert.test.a11y.d.ts +0 -1
  1041. package/dist/types/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.d.ts +0 -1
  1042. package/dist/types/components/ic-badge/test/a11y/ic-badge.test.a11y.d.ts +0 -1
  1043. package/dist/types/components/ic-classification-banner/test/a11y/ic-classification-banner.test.a11y.d.ts +0 -1
  1044. package/dist/types/components/ic-toast/test/a11y/ic-toast.test.a11y.d.ts +0 -1
  1045. /package/dist/core/{p-7ce86152.entry.js.map → p-056f8a67.entry.js.map} +0 -0
  1046. /package/dist/core/{p-08b59078.entry.js.map → p-11736fbe.entry.js.map} +0 -0
  1047. /package/dist/core/{p-5ccbb042.entry.js.map → p-15624e08.entry.js.map} +0 -0
  1048. /package/dist/core/{p-5fcd202e.entry.js.map → p-15ef0674.entry.js.map} +0 -0
  1049. /package/dist/core/{p-88ea1e49.entry.js.map → p-180e36b1.entry.js.map} +0 -0
  1050. /package/dist/core/{p-43af3cf6.entry.js.map → p-22c024ee.entry.js.map} +0 -0
  1051. /package/dist/core/{p-613aa265.js.map → p-26b7b18f.js.map} +0 -0
  1052. /package/dist/core/{p-932fb4b7.entry.js.map → p-287ab47c.entry.js.map} +0 -0
  1053. /package/dist/core/{p-69948c3e.entry.js.map → p-2b24b4bf.entry.js.map} +0 -0
  1054. /package/dist/core/{p-9f6ffced.entry.js.map → p-31969be6.entry.js.map} +0 -0
  1055. /package/dist/core/{p-475b7bd2.entry.js.map → p-335fc5e4.entry.js.map} +0 -0
  1056. /package/dist/core/{p-c9ef9f5c.entry.js.map → p-366bcb17.entry.js.map} +0 -0
  1057. /package/dist/core/{p-ed256f1d.entry.js.map → p-3a0ef91e.entry.js.map} +0 -0
  1058. /package/dist/core/{p-cb5f19ea.entry.js.map → p-51f9f329.entry.js.map} +0 -0
  1059. /package/dist/core/{p-f019219c.entry.js.map → p-529d8955.entry.js.map} +0 -0
  1060. /package/dist/core/{p-b879fa3e.entry.js.map → p-5c7e339f.entry.js.map} +0 -0
  1061. /package/dist/core/{p-2c30b583.entry.js.map → p-60c4604f.entry.js.map} +0 -0
  1062. /package/dist/core/{p-ccac1730.entry.js.map → p-6d3f9501.entry.js.map} +0 -0
  1063. /package/dist/core/{p-536b3c97.entry.js.map → p-6eb0421d.entry.js.map} +0 -0
  1064. /package/dist/core/{p-48525498.entry.js.map → p-765bdd98.entry.js.map} +0 -0
  1065. /package/dist/core/{p-e3bffcae.entry.js.map → p-94e88827.entry.js.map} +0 -0
  1066. /package/dist/core/{p-8fb4f0c0.js.map → p-95a864bf.js.map} +0 -0
  1067. /package/dist/core/{p-eb4641a9.entry.js.map → p-96da1e85.entry.js.map} +0 -0
  1068. /package/dist/core/{p-0c82048e.entry.js.map → p-9c30720d.entry.js.map} +0 -0
  1069. /package/dist/core/{p-a76912b0.entry.js.map → p-aa0a9870.entry.js.map} +0 -0
  1070. /package/dist/core/{p-76563540.entry.js.map → p-ad36a704.entry.js.map} +0 -0
  1071. /package/dist/core/{p-d80f99e0.entry.js.map → p-b0088956.entry.js.map} +0 -0
  1072. /package/dist/core/{p-2265e418.entry.js.map → p-b6a575c3.entry.js.map} +0 -0
  1073. /package/dist/core/{p-fbc8a739.entry.js.map → p-b9736cf4.entry.js.map} +0 -0
  1074. /package/dist/core/{p-025f9d2a.entry.js.map → p-b99f9e89.entry.js.map} +0 -0
  1075. /package/dist/core/{p-b0ce60a0.entry.js.map → p-c2452388.entry.js.map} +0 -0
  1076. /package/dist/core/{p-345fe84a.entry.js.map → p-c770e7a2.entry.js.map} +0 -0
  1077. /package/dist/core/{p-748159fe.entry.js.map → p-ca48e97a.entry.js.map} +0 -0
  1078. /package/dist/core/{p-5a3ca50a.entry.js.map → p-cd8de4c5.entry.js.map} +0 -0
  1079. /package/dist/core/{p-a4397df4.entry.js.map → p-cfc930f6.entry.js.map} +0 -0
  1080. /package/dist/core/{p-9ff57f09.entry.js.map → p-e5abfadd.entry.js.map} +0 -0
  1081. /package/dist/core/{p-41c6eaa1.entry.js.map → p-e9738c74.entry.js.map} +0 -0
  1082. /package/dist/core/{p-e2fd542e.entry.js.map → p-edd29edc.entry.js.map} +0 -0
  1083. /package/dist/core/{p-8b18346a.entry.js.map → p-f0809037.entry.js.map} +0 -0
  1084. /package/dist/core/{p-5bb6c79b.entry.js.map → p-f2e6b9ef.entry.js.map} +0 -0
  1085. /package/dist/core/{p-cf4bacee.entry.js.map → p-fdb4b48f.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ic-tab-context.js","sourceRoot":"","sources":["../../../src/components/ic-tab-context/ic-tab-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,EACD,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAU3B,MAAM,OAAO,UAAU;;IAIb,iBAAY,GAA4B,EAAE,CAAC;IAC3C,YAAO,GAAuB,EAAE,CAAC;IAwHzC,yDAAyD;IACjD,aAAQ,GAAG,GAAG,EAAE;MACtB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;QAC/B,MAAM,KAAK,GAAG,UAAU,KAAK,YAAY,IAAI,CAAC,SAAS,EAAE,CAAC;QAC1D,MAAM,UAAU,GAAG,gBAAgB,KAAK,YAAY,IAAI,CAAC,SAAS,EAAE,CAAC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ActivationTypes,\n IcThemeForegroundNoDefault,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\n\nimport {\n IcTabClickEventDetail,\n IcTabSelectEventDetail,\n} from \"../ic-tab/ic-tab.types\";\n\n@Component({\n tag: \"ic-tab-context\",\n})\nexport class TabContext {\n private controlledMode: boolean;\n private enabledTabs: HTMLIcTabElement[];\n private focusedTabIndex: number;\n private newTabPanels: HTMLIcTabPanelElement[] = [];\n private newTabs: HTMLIcTabElement[] = [];\n private tabs: HTMLIcTabElement[];\n private tabGroup: HTMLIcTabGroupElement;\n private tabPanels: HTMLIcTabPanelElement[];\n\n @Element() el: HTMLIcTabContextElement;\n\n @State() selectedTab: number | null;\n\n /**\n * Determines whether tabs have to be manually activated (by pressing 'Enter' or 'Space') when they receive focus using keyboard navigation.\n */\n @Prop() activationType?: IcActivationTypes = \"automatic\";\n\n /**\n * The appearance of the tab context, e.g dark, or light.\n */\n @Prop() appearance?: IcThemeForegroundNoDefault = \"dark\";\n\n /**\n * The unique context needed if using multiple tabs inside one another i.e. rendering another set of tabs inside a tab panel.\n */\n @Prop({ reflect: true }) contextId?: string = \"default\";\n\n /**\n * The selected tab to be controlled by the user. Must be used alongside the icTabSelect event to manage tab selection.\n */\n @Prop() selectedTabIndex?: number;\n\n @Watch(\"selectedTabIndex\")\n updateSelectedTab(newValue: number): void {\n this.selectedTab = newValue;\n }\n\n /**\n * Emitted when a user selects a tab.\n */\n @Event({ bubbles: false }) icTabSelect: EventEmitter<IcTabSelectEventDetail>;\n\n /**\n * @deprecated This event should not be used anymore. Use icTabSelect instead.\n */\n @Event({ bubbles: false }) tabSelect: EventEmitter<IcTabSelectEventDetail>;\n\n componentDidLoad(): void {\n this.setControlledMode();\n this.getChildren();\n this.linkTabs();\n this.attatchEventListeners();\n this.setInitialTab();\n this.configureTabs();\n }\n\n componentWillUpdate(): void {\n this.configureTabs();\n }\n\n disconnectedCallback(): void {\n this.tabGroup.removeEventListener(\"keydown\", this.keydownHandler);\n }\n\n @Listen(\"tabClick\")\n tabClickHandler(event: CustomEvent<IcTabClickEventDetail>): void {\n if (\n this.selectedTabIndex === undefined &&\n event.detail.contextId === this.contextId\n ) {\n this.selectedTab = event.detail.position;\n }\n this.icTabSelect.emit({\n tabIndex: event.detail.position,\n });\n this.tabSelect.emit({\n tabIndex: event.detail.position,\n });\n event.stopImmediatePropagation();\n }\n\n @Listen(\"tabCreated\")\n @Listen(\"tabPanelCreated\")\n tabCreatedHandler(ev: CustomEvent): void {\n if (this.tabs && this.tabPanels) {\n (ev.detail.setFocus ? this.newTabs : this.newTabPanels).push(ev.detail);\n if (this.newTabs.length === this.newTabPanels.length) {\n this.tabs.push(...this.newTabs);\n this.tabPanels.push(...this.newTabPanels);\n this.enabledTabs = this.getEnabledTabs();\n this.linkTabs();\n this.newTabs = [];\n this.newTabPanels = [];\n }\n }\n }\n\n @Listen(\"tabEnabled\")\n tabEnabledHandler(): void {\n this.enabledTabs = this.getEnabledTabs();\n }\n\n /**\n * @internal Used to set tab/tab panel IDs when a tab/tab panel has been removed\n */\n @Method()\n async tabRemovedHandler(hadFocus?: boolean): Promise<void> {\n this.getChildren();\n this.enabledTabs = this.getEnabledTabs();\n this.linkTabs();\n if (this.tabs[this.selectedTab] && this.tabPanels[this.selectedTab]) {\n this.tabs[this.selectedTab].selected = true;\n this.tabPanels[this.selectedTab].selectedTab =\n this.tabs[this.selectedTab].tabId;\n } else {\n this.setInitialTab();\n }\n\n if (hadFocus) {\n this.tabs[this.selectedTab].setFocus();\n }\n }\n\n // Sets attributes to link tab-group, tabs and tab-panels\n private linkTabs = () => {\n this.tabs.forEach((tab, index) => {\n const tabId = `ic-tab-${index}-context-${this.contextId}`;\n const tabPanelId = `ic-tab-panel-${index}-context-${this.contextId}`;\n const shared = `ic-tab--${index}-context-${this.contextId}`;\n const contextIdAttr = \"context-id\";\n tab.setAttribute(\"id\", tabId);\n tab.tabId = shared;\n tab.tabPosition = index;\n tab.setAttribute(\"aria-controls\", tabPanelId);\n tab.setAttribute(contextIdAttr, this.contextId);\n this.tabGroup.setAttribute(contextIdAttr, this.contextId);\n this.tabPanels[index].setAttribute(\"id\", tabPanelId);\n this.tabPanels[index].panelId = shared;\n this.tabPanels[index].tabPosition = index;\n this.tabPanels[index].setAttribute(\"aria-labelledby\", tabId);\n this.tabPanels[index].setAttribute(contextIdAttr, this.contextId);\n\n if (this.appearance === IcThemeForegroundEnum.Light) {\n tab.appearance = this.appearance;\n this.tabPanels[index].appearance = this.appearance;\n }\n });\n\n if (this.appearance === IcThemeForegroundEnum.Light) {\n this.tabGroup.appearance = this.appearance;\n }\n };\n\n // Gets tabs and tabpanels with the same context ID\n // Using querySelector to selector the children in relation to the host\n private getChildren = (): void => {\n this.tabGroup = this.el.querySelector(\"ic-tab-group\");\n this.tabs = Array.from(this.tabGroup.querySelectorAll(\"ic-tab\"));\n this.tabPanels = Array.from(this.el.children).filter(\n (child) => child.tagName === \"IC-TAB-PANEL\"\n ) as HTMLIcTabPanelElement[];\n this.enabledTabs = this.getEnabledTabs();\n };\n\n private keydownHandler = (event: KeyboardEvent) => {\n if (this.activationType === \"automatic\") {\n this.handleKeyBoardNavAutomatic(event);\n } else {\n this.handleKeyBoardNavManual(event);\n }\n };\n\n // Determines how keyboard navigation is to be handled based on the activation type\n private attatchEventListeners = (): void => {\n this.tabGroup.addEventListener(\"keydown\", this.keydownHandler);\n };\n\n // Determines whether the selected tab is being controlled within the component\n // or by the user (via selectedTabIndex and onIcTabSelect)\n private setControlledMode = (): void => {\n if (this.selectedTabIndex !== undefined) {\n this.controlledMode = true;\n this.selectedTab = this.selectedTabIndex;\n }\n };\n\n // Sets the tab that is selected on initial render\n private setInitialTab = (): void => {\n if (this.controlledMode) {\n this.selectedTab = this.selectedTabIndex;\n this.focusedTabIndex = this.selectedTabIndex;\n } else {\n const firstEnabledTabIndex = this.tabs.findIndex(\n (tab) => tab.tabId === this.enabledTabs[0].tabId\n );\n this.selectedTab = firstEnabledTabIndex;\n this.focusedTabIndex = firstEnabledTabIndex;\n }\n };\n\n // Passes the selected tab to the tab and tab panel components\n private configureTabs = () => {\n this.enabledTabs.forEach((tab) => {\n tab.selected = tab.tabPosition === this.selectedTab;\n });\n this.tabPanels.forEach((tabPanel) => {\n tabPanel.selectedTab = this.tabs[this.selectedTab].tabId;\n });\n };\n\n private getEnabledTabs = () => {\n return Array.from(this.tabs).filter((child) => !child.disabled);\n };\n\n private getIndexOfEnabledTab = (allTabsIndex: number) => {\n return this.enabledTabs.findIndex(\n (tab) => tab.tabId === this.tabs[allTabsIndex].tabId\n );\n };\n\n // Sets focus on tab and selects it\n private keyboardSelectTab = (enabledTabIndex: number) => {\n const newIndex = this.tabs.findIndex(\n (tab) => tab.tabId === this.enabledTabs[enabledTabIndex].tabId\n );\n this.enabledTabs[enabledTabIndex].focus();\n if (!this.controlledMode) {\n this.selectedTab = newIndex;\n } else {\n this.icTabSelect.emit({ tabIndex: newIndex });\n this.tabSelect.emit({ tabIndex: newIndex });\n }\n };\n\n // Sets focus on tab without selecting it (for manual activation)\n private keyboardFocusTab = (enabledTabIndex: number) => {\n const newIndex = this.tabs.findIndex(\n (tab) => tab.tabId === this.enabledTabs[enabledTabIndex].tabId\n );\n this.enabledTabs[enabledTabIndex].focus();\n this.focusedTabIndex = newIndex;\n };\n\n private handleKeyBoardNavAutomatic = (event: KeyboardEvent) => {\n const key = event.key;\n const enabledTabIndex = this.getIndexOfEnabledTab(this.selectedTab);\n let preventDefault = true;\n switch (key) {\n case \"Home\":\n this.keyboardSelectTab(0);\n break;\n case \"End\":\n this.keyboardSelectTab(this.enabledTabs.length - 1);\n break;\n case \"ArrowRight\":\n if (enabledTabIndex < this.enabledTabs.length - 1) {\n this.keyboardSelectTab(enabledTabIndex + 1);\n } else {\n this.keyboardSelectTab(0);\n }\n break;\n case \"ArrowLeft\":\n if (enabledTabIndex > 0) {\n this.keyboardSelectTab(enabledTabIndex - 1);\n } else {\n this.keyboardSelectTab(this.enabledTabs.length - 1);\n }\n break;\n default:\n preventDefault = false;\n }\n if (preventDefault) event.preventDefault();\n };\n\n private handleKeyBoardNavManual = (event: KeyboardEvent) => {\n const key = event.key;\n const enabledTabIndex = this.getIndexOfEnabledTab(this.focusedTabIndex);\n let preventDefault = true;\n switch (key) {\n case \"Home\":\n this.keyboardFocusTab(0);\n break;\n case \"End\":\n this.keyboardFocusTab(this.enabledTabs.length - 1);\n break;\n case \"ArrowRight\":\n if (enabledTabIndex < this.enabledTabs.length - 1) {\n this.keyboardFocusTab(enabledTabIndex + 1);\n } else {\n this.keyboardFocusTab(0);\n }\n break;\n case \"ArrowLeft\":\n if (enabledTabIndex > 0) {\n this.keyboardFocusTab(enabledTabIndex - 1);\n } else {\n this.keyboardFocusTab(this.enabledTabs.length - 1);\n }\n break;\n case \"Enter\":\n this.keyboardSelectTab(this.focusedTabIndex);\n break;\n case \" \":\n this.keyboardSelectTab(this.focusedTabIndex);\n break;\n default:\n preventDefault = false;\n }\n if (preventDefault) event.preventDefault();\n };\n\n render() {\n return <slot></slot>;\n }\n}\n"]}
1
+ {"version":3,"file":"ic-tab-context.js","sourceRoot":"","sources":["../../../src/components/ic-tab-context/ic-tab-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,EACD,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAU3B,MAAM,OAAO,UAAU;;QAIb,iBAAY,GAA4B,EAAE,CAAC;QAC3C,YAAO,GAAuB,EAAE,CAAC;QAwHzC,yDAAyD;QACjD,aAAQ,GAAG,GAAG,EAAE;YACtB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;gBAC/B,MAAM,KAAK,GAAG,UAAU,KAAK,YAAY,IAAI,CAAC,SAAS,EAAE,CAAC;gBAC1D,MAAM,UAAU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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n Event,\n EventEmitter,\n Listen,\n Prop,\n State,\n h,\n Watch,\n Method,\n} from \"@stencil/core\";\nimport {\n IcActivationTypes,\n IcThemeForegroundNoDefault,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\n\nimport {\n IcTabClickEventDetail,\n IcTabSelectEventDetail,\n} from \"../ic-tab/ic-tab.types\";\n\n@Component({\n tag: \"ic-tab-context\",\n})\nexport class TabContext {\n private controlledMode: boolean;\n private enabledTabs: HTMLIcTabElement[];\n private focusedTabIndex: number;\n private newTabPanels: HTMLIcTabPanelElement[] = [];\n private newTabs: HTMLIcTabElement[] = [];\n private tabs: HTMLIcTabElement[];\n private tabGroup: HTMLIcTabGroupElement;\n private tabPanels: HTMLIcTabPanelElement[];\n\n @Element() el: HTMLIcTabContextElement;\n\n @State() selectedTab: number | null;\n\n /**\n * Determines whether tabs have to be manually activated (by pressing 'Enter' or 'Space') when they receive focus using keyboard navigation.\n */\n @Prop() activationType?: IcActivationTypes = \"automatic\";\n\n /**\n * The appearance of the tab context, e.g dark, or light.\n */\n @Prop() appearance?: IcThemeForegroundNoDefault = \"dark\";\n\n /**\n * The unique context needed if using multiple tabs inside one another i.e. rendering another set of tabs inside a tab panel.\n */\n @Prop({ reflect: true }) contextId?: string = \"default\";\n\n /**\n * The selected tab to be controlled by the user. Must be used alongside the icTabSelect event to manage tab selection.\n */\n @Prop() selectedTabIndex?: number;\n\n @Watch(\"selectedTabIndex\")\n updateSelectedTab(newValue: number): void {\n this.selectedTab = newValue;\n }\n\n /**\n * Emitted when a user selects a tab.\n */\n @Event({ bubbles: false }) icTabSelect: EventEmitter<IcTabSelectEventDetail>;\n\n /**\n * @deprecated This event should not be used anymore. Use icTabSelect instead.\n */\n @Event({ bubbles: false }) tabSelect: EventEmitter<IcTabSelectEventDetail>;\n\n componentDidLoad(): void {\n this.setControlledMode();\n this.getChildren();\n this.linkTabs();\n this.attatchEventListeners();\n this.setInitialTab();\n this.configureTabs();\n }\n\n componentWillUpdate(): void {\n this.configureTabs();\n }\n\n disconnectedCallback(): void {\n this.tabGroup.removeEventListener(\"keydown\", this.keydownHandler);\n }\n\n @Listen(\"tabClick\")\n tabClickHandler(event: CustomEvent<IcTabClickEventDetail>): void {\n if (\n this.selectedTabIndex === undefined &&\n event.detail.contextId === this.contextId\n ) {\n this.selectedTab = event.detail.position;\n }\n this.icTabSelect.emit({\n tabIndex: event.detail.position,\n });\n this.tabSelect.emit({\n tabIndex: event.detail.position,\n });\n event.stopImmediatePropagation();\n }\n\n @Listen(\"tabCreated\")\n @Listen(\"tabPanelCreated\")\n tabCreatedHandler(ev: CustomEvent): void {\n if (this.tabs && this.tabPanels) {\n (ev.detail.setFocus ? this.newTabs : this.newTabPanels).push(ev.detail);\n if (this.newTabs.length === this.newTabPanels.length) {\n this.tabs.push(...this.newTabs);\n this.tabPanels.push(...this.newTabPanels);\n this.enabledTabs = this.getEnabledTabs();\n this.linkTabs();\n this.newTabs = [];\n this.newTabPanels = [];\n }\n }\n }\n\n @Listen(\"tabEnabled\")\n tabEnabledHandler(): void {\n this.enabledTabs = this.getEnabledTabs();\n }\n\n /**\n * @internal Used to set tab/tab panel IDs when a tab/tab panel has been removed\n */\n @Method()\n async tabRemovedHandler(hadFocus?: boolean): Promise<void> {\n this.getChildren();\n this.enabledTabs = this.getEnabledTabs();\n this.linkTabs();\n if (this.tabs[this.selectedTab] && this.tabPanels[this.selectedTab]) {\n this.tabs[this.selectedTab].selected = true;\n this.tabPanels[this.selectedTab].selectedTab =\n this.tabs[this.selectedTab].tabId;\n } else {\n this.setInitialTab();\n }\n\n if (hadFocus) {\n this.tabs[this.selectedTab].setFocus();\n }\n }\n\n // Sets attributes to link tab-group, tabs and tab-panels\n private linkTabs = () => {\n this.tabs.forEach((tab, index) => {\n const tabId = `ic-tab-${index}-context-${this.contextId}`;\n const tabPanelId = `ic-tab-panel-${index}-context-${this.contextId}`;\n const shared = `ic-tab--${index}-context-${this.contextId}`;\n const contextIdAttr = \"context-id\";\n tab.setAttribute(\"id\", tabId);\n tab.tabId = shared;\n tab.tabPosition = index;\n tab.setAttribute(\"aria-controls\", tabPanelId);\n tab.setAttribute(contextIdAttr, this.contextId);\n this.tabGroup.setAttribute(contextIdAttr, this.contextId);\n this.tabPanels[index].setAttribute(\"id\", tabPanelId);\n this.tabPanels[index].panelId = shared;\n this.tabPanels[index].tabPosition = index;\n this.tabPanels[index].setAttribute(\"aria-labelledby\", tabId);\n this.tabPanels[index].setAttribute(contextIdAttr, this.contextId);\n\n if (this.appearance === IcThemeForegroundEnum.Light) {\n tab.appearance = this.appearance;\n this.tabPanels[index].appearance = this.appearance;\n }\n });\n\n if (this.appearance === IcThemeForegroundEnum.Light) {\n this.tabGroup.appearance = this.appearance;\n }\n };\n\n // Gets tabs and tabpanels with the same context ID\n // Using querySelector to selector the children in relation to the host\n private getChildren = (): void => {\n this.tabGroup = this.el.querySelector(\"ic-tab-group\");\n this.tabs = Array.from(this.tabGroup.querySelectorAll(\"ic-tab\"));\n this.tabPanels = Array.from(this.el.children).filter(\n (child) => child.tagName === \"IC-TAB-PANEL\"\n ) as HTMLIcTabPanelElement[];\n this.enabledTabs = this.getEnabledTabs();\n };\n\n private keydownHandler = (event: KeyboardEvent) => {\n if (this.activationType === \"automatic\") {\n this.handleKeyBoardNavAutomatic(event);\n } else {\n this.handleKeyBoardNavManual(event);\n }\n };\n\n // Determines how keyboard navigation is to be handled based on the activation type\n private attatchEventListeners = (): void => {\n this.tabGroup.addEventListener(\"keydown\", this.keydownHandler);\n };\n\n // Determines whether the selected tab is being controlled within the component\n // or by the user (via selectedTabIndex and onIcTabSelect)\n private setControlledMode = (): void => {\n if (this.selectedTabIndex !== undefined) {\n this.controlledMode = true;\n this.selectedTab = this.selectedTabIndex;\n }\n };\n\n // Sets the tab that is selected on initial render\n private setInitialTab = (): void => {\n if (this.controlledMode) {\n this.selectedTab = this.selectedTabIndex;\n this.focusedTabIndex = this.selectedTabIndex;\n } else {\n const firstEnabledTabIndex = this.tabs.findIndex(\n (tab) => tab.tabId === this.enabledTabs[0].tabId\n );\n this.selectedTab = firstEnabledTabIndex;\n this.focusedTabIndex = firstEnabledTabIndex;\n }\n };\n\n // Passes the selected tab to the tab and tab panel components\n private configureTabs = () => {\n this.enabledTabs.forEach((tab) => {\n tab.selected = tab.tabPosition === this.selectedTab;\n });\n this.tabPanels.forEach((tabPanel) => {\n tabPanel.selectedTab = this.tabs[this.selectedTab].tabId;\n });\n };\n\n private getEnabledTabs = () => {\n return Array.from(this.tabs).filter((child) => !child.disabled);\n };\n\n private getIndexOfEnabledTab = (allTabsIndex: number) => {\n return this.enabledTabs.findIndex(\n (tab) => tab.tabId === this.tabs[allTabsIndex].tabId\n );\n };\n\n // Sets focus on tab and selects it\n private keyboardSelectTab = (enabledTabIndex: number) => {\n const newIndex = this.tabs.findIndex(\n (tab) => tab.tabId === this.enabledTabs[enabledTabIndex].tabId\n );\n this.enabledTabs[enabledTabIndex].focus();\n if (!this.controlledMode) {\n this.selectedTab = newIndex;\n } else {\n this.icTabSelect.emit({ tabIndex: newIndex });\n this.tabSelect.emit({ tabIndex: newIndex });\n }\n };\n\n // Sets focus on tab without selecting it (for manual activation)\n private keyboardFocusTab = (enabledTabIndex: number) => {\n const newIndex = this.tabs.findIndex(\n (tab) => tab.tabId === this.enabledTabs[enabledTabIndex].tabId\n );\n this.enabledTabs[enabledTabIndex].focus();\n this.focusedTabIndex = newIndex;\n };\n\n private handleKeyBoardNavAutomatic = (event: KeyboardEvent) => {\n const key = event.key;\n const enabledTabIndex = this.getIndexOfEnabledTab(this.selectedTab);\n let preventDefault = true;\n switch (key) {\n case \"Home\":\n this.keyboardSelectTab(0);\n break;\n case \"End\":\n this.keyboardSelectTab(this.enabledTabs.length - 1);\n break;\n case \"ArrowRight\":\n if (enabledTabIndex < this.enabledTabs.length - 1) {\n this.keyboardSelectTab(enabledTabIndex + 1);\n } else {\n this.keyboardSelectTab(0);\n }\n break;\n case \"ArrowLeft\":\n if (enabledTabIndex > 0) {\n this.keyboardSelectTab(enabledTabIndex - 1);\n } else {\n this.keyboardSelectTab(this.enabledTabs.length - 1);\n }\n break;\n default:\n preventDefault = false;\n }\n if (preventDefault) event.preventDefault();\n };\n\n private handleKeyBoardNavManual = (event: KeyboardEvent) => {\n const key = event.key;\n const enabledTabIndex = this.getIndexOfEnabledTab(this.focusedTabIndex);\n let preventDefault = true;\n switch (key) {\n case \"Home\":\n this.keyboardFocusTab(0);\n break;\n case \"End\":\n this.keyboardFocusTab(this.enabledTabs.length - 1);\n break;\n case \"ArrowRight\":\n if (enabledTabIndex < this.enabledTabs.length - 1) {\n this.keyboardFocusTab(enabledTabIndex + 1);\n } else {\n this.keyboardFocusTab(0);\n }\n break;\n case \"ArrowLeft\":\n if (enabledTabIndex > 0) {\n this.keyboardFocusTab(enabledTabIndex - 1);\n } else {\n this.keyboardFocusTab(this.enabledTabs.length - 1);\n }\n break;\n case \"Enter\":\n this.keyboardSelectTab(this.focusedTabIndex);\n break;\n case \" \":\n this.keyboardSelectTab(this.focusedTabIndex);\n break;\n default:\n preventDefault = false;\n }\n if (preventDefault) event.preventDefault();\n };\n\n render() {\n return <slot></slot>;\n }\n}\n"]}
@@ -1,8 +1,8 @@
1
1
  import { fixture } from "@open-wc/testing-helpers";
2
2
  import { axe } from "jest-axe";
3
3
  describe("ic-tab-context", () => {
4
- it("passes accessibility", async () => {
5
- const el = await fixture(`<ic-tab-context>
4
+ it("passes accessibility", async () => {
5
+ const el = await fixture(`<ic-tab-context>
6
6
  <ic-tab-group label="A11y Tabs">
7
7
  <ic-tab>One</ic-tab>
8
8
  <ic-tab>Two</ic-tab>
@@ -12,8 +12,8 @@ describe("ic-tab-context", () => {
12
12
  <ic-tab-panel> Tab Two </ic-tab-panel>
13
13
  <ic-tab-panel> Tab Three </ic-tab-panel>
14
14
  </ic-tab-context>`);
15
- expect(el.getAttribute("context-id")).toBe("default");
16
- expect(await axe(el)).toHaveNoViolations();
17
- });
15
+ expect(el.getAttribute("context-id")).toBe("default");
16
+ expect(await axe(el)).toHaveNoViolations();
17
+ });
18
18
  });
19
19
  //# sourceMappingURL=ic-tab-context.test.a11y.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ic-tab-context.test.a11y.js","sourceRoot":"","sources":["../../../../../src/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;EAC9B,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;IACpC,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC;;;;;;;;;oBAST,CAAC,CAAC;IAElB,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtD,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;EAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture } from \"@open-wc/testing-helpers\";\nimport { axe } from \"jest-axe\";\n\ndescribe(\"ic-tab-context\", () => {\n it(\"passes accessibility\", async () => {\n const el = await fixture(`<ic-tab-context>\n <ic-tab-group label=\"A11y Tabs\">\n <ic-tab>One</ic-tab>\n <ic-tab>Two</ic-tab>\n <ic-tab>Three</ic-tab>\n </ic-tab-group>\n <ic-tab-panel> Tab One </ic-tab-panel>\n <ic-tab-panel> Tab Two </ic-tab-panel>\n <ic-tab-panel> Tab Three </ic-tab-panel>\n </ic-tab-context>`);\n\n expect(el.getAttribute(\"context-id\")).toBe(\"default\");\n expect(await axe(el)).toHaveNoViolations();\n });\n});\n"]}
1
+ {"version":3,"file":"ic-tab-context.test.a11y.js","sourceRoot":"","sources":["../../../../../src/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC;;;;;;;;;oBAST,CAAC,CAAC;QAElB,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtD,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture } from \"@open-wc/testing-helpers\";\nimport { axe } from \"jest-axe\";\n\ndescribe(\"ic-tab-context\", () => {\n it(\"passes accessibility\", async () => {\n const el = await fixture(`<ic-tab-context>\n <ic-tab-group label=\"A11y Tabs\">\n <ic-tab>One</ic-tab>\n <ic-tab>Two</ic-tab>\n <ic-tab>Three</ic-tab>\n </ic-tab-group>\n <ic-tab-panel> Tab One </ic-tab-panel>\n <ic-tab-panel> Tab Two </ic-tab-panel>\n <ic-tab-panel> Tab Three </ic-tab-panel>\n </ic-tab-context>`);\n\n expect(el.getAttribute(\"context-id\")).toBe(\"default\");\n expect(await axe(el)).toHaveNoViolations();\n });\n});\n"]}
@@ -1,7 +1,7 @@
1
1
  import { newE2EPage } from "@stencil/core/testing";
2
2
  import { waitForTimeout } from "../../../../testspec.setup";
3
3
  beforeAll(() => {
4
- jest.spyOn(console, "warn").mockImplementation(jest.fn());
4
+ jest.spyOn(console, "warn").mockImplementation(jest.fn());
5
5
  });
6
6
  const testTabs = `
7
7
  <ic-tab-context>
@@ -43,87 +43,87 @@ const testTabsResponsive = `
43
43
  </div>
44
44
  `;
45
45
  describe("ic-tab-context component", () => {
46
- it("should display a tab panel when its corresponding tab is clicked", async () => {
47
- const page = await newE2EPage({ html: testTabs });
48
- const tab1 = await page.find('ic-tab[tab-id="ic-tab--1-context-default"]');
49
- await tab1.click();
50
- await page.waitForChanges();
51
- const tabPanel1 = await page.find('ic-tab-panel[panel-id="ic-tab--1-context-default"]');
52
- expect(tabPanel1).not.toHaveAttribute("hidden");
53
- });
54
- it("should hide the other tab panels when a tab is clicked", async () => {
55
- const page = await newE2EPage({ html: testTabs });
56
- const tab1 = await page.find('ic-tab[tab-id="ic-tab--1-context-default"]');
57
- await tab1.click();
58
- await page.waitForChanges();
59
- const tabPanel0 = await page.find('ic-tab-panel[panel-id="ic-tab--0-context-default"]');
60
- const tabPanel2 = await page.find('ic-tab-panel[panel-id="ic-tab--2-context-default"]');
61
- expect(tabPanel0).toHaveAttribute("hidden");
62
- expect(tabPanel2).toHaveAttribute("hidden");
63
- });
64
- it("should move focus to the next tab when the right arrow key is pressed", async () => {
65
- const page = await newE2EPage({ html: testTabs });
66
- const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
67
- await tab0.click();
68
- await page.waitForChanges();
69
- await page.keyboard.press("ArrowRight");
70
- await page.waitForChanges();
71
- const activeElement = await page.evaluate(() => document.activeElement.id);
72
- expect(activeElement).toEqual("ic-tab-1-context-default");
73
- });
74
- it("should move focus to the previous tab when the left arrow key is pressed", async () => {
75
- const page = await newE2EPage({ html: testTabs });
76
- const tab1 = await page.find('ic-tab[tab-id="ic-tab--1-context-default"]');
77
- await tab1.click();
78
- await page.waitForChanges();
79
- await page.keyboard.press("ArrowLeft");
80
- await page.waitForChanges();
81
- const activeElement = await page.evaluate(() => document.activeElement.id);
82
- expect(activeElement).toEqual("ic-tab-0-context-default");
83
- });
84
- it("should move focus to the first tab when the right arrow key is pressed if currently on the last tab", async () => {
85
- const page = await newE2EPage({ html: testTabs });
86
- const tab2 = await page.find('ic-tab[tab-id="ic-tab--2-context-default"]');
87
- await tab2.click();
88
- await page.waitForChanges();
89
- await page.keyboard.press("ArrowRight");
90
- await page.waitForChanges();
91
- const activeElement = await page.evaluate(() => document.activeElement.id);
92
- expect(activeElement).toEqual("ic-tab-0-context-default");
93
- });
94
- it("should move focus to the last tab when the left arrow key is pressed if currently on the first tab", async () => {
95
- const page = await newE2EPage({ html: testTabs });
96
- const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
97
- await tab0.click();
98
- await page.waitForChanges();
99
- await page.keyboard.press("ArrowLeft");
100
- await page.waitForChanges();
101
- const activeElement = await page.evaluate(() => document.activeElement.id);
102
- expect(activeElement).toEqual("ic-tab-2-context-default");
103
- });
104
- it("should move focus to the first tab when the Home key is pressed", async () => {
105
- const page = await newE2EPage({ html: testTabs });
106
- const tab2 = await page.find('ic-tab[tab-id="ic-tab--2-context-default"]');
107
- await tab2.click();
108
- await page.waitForChanges();
109
- await page.keyboard.press("Home");
110
- await page.waitForChanges();
111
- const activeElement = await page.evaluate(() => document.activeElement.id);
112
- expect(activeElement).toEqual("ic-tab-0-context-default");
113
- });
114
- it("should move focus to the last tab when the End key is pressed", async () => {
115
- const page = await newE2EPage({ html: testTabs });
116
- const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
117
- await tab0.click();
118
- await page.waitForChanges();
119
- await page.keyboard.press("End");
120
- await page.waitForChanges();
121
- const activeElement = await page.evaluate(() => document.activeElement.id);
122
- expect(activeElement).toEqual("ic-tab-2-context-default");
123
- });
124
- it("should not allow a disabled tab to be selected", async () => {
125
- const page = await newE2EPage({
126
- html: `
46
+ it("should display a tab panel when its corresponding tab is clicked", async () => {
47
+ const page = await newE2EPage({ html: testTabs });
48
+ const tab1 = await page.find('ic-tab[tab-id="ic-tab--1-context-default"]');
49
+ await tab1.click();
50
+ await page.waitForChanges();
51
+ const tabPanel1 = await page.find('ic-tab-panel[panel-id="ic-tab--1-context-default"]');
52
+ expect(tabPanel1).not.toHaveAttribute("hidden");
53
+ });
54
+ it("should hide the other tab panels when a tab is clicked", async () => {
55
+ const page = await newE2EPage({ html: testTabs });
56
+ const tab1 = await page.find('ic-tab[tab-id="ic-tab--1-context-default"]');
57
+ await tab1.click();
58
+ await page.waitForChanges();
59
+ const tabPanel0 = await page.find('ic-tab-panel[panel-id="ic-tab--0-context-default"]');
60
+ const tabPanel2 = await page.find('ic-tab-panel[panel-id="ic-tab--2-context-default"]');
61
+ expect(tabPanel0).toHaveAttribute("hidden");
62
+ expect(tabPanel2).toHaveAttribute("hidden");
63
+ });
64
+ it("should move focus to the next tab when the right arrow key is pressed", async () => {
65
+ const page = await newE2EPage({ html: testTabs });
66
+ const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
67
+ await tab0.click();
68
+ await page.waitForChanges();
69
+ await page.keyboard.press("ArrowRight");
70
+ await page.waitForChanges();
71
+ const activeElement = await page.evaluate(() => document.activeElement.id);
72
+ expect(activeElement).toEqual("ic-tab-1-context-default");
73
+ });
74
+ it("should move focus to the previous tab when the left arrow key is pressed", async () => {
75
+ const page = await newE2EPage({ html: testTabs });
76
+ const tab1 = await page.find('ic-tab[tab-id="ic-tab--1-context-default"]');
77
+ await tab1.click();
78
+ await page.waitForChanges();
79
+ await page.keyboard.press("ArrowLeft");
80
+ await page.waitForChanges();
81
+ const activeElement = await page.evaluate(() => document.activeElement.id);
82
+ expect(activeElement).toEqual("ic-tab-0-context-default");
83
+ });
84
+ it("should move focus to the first tab when the right arrow key is pressed if currently on the last tab", async () => {
85
+ const page = await newE2EPage({ html: testTabs });
86
+ const tab2 = await page.find('ic-tab[tab-id="ic-tab--2-context-default"]');
87
+ await tab2.click();
88
+ await page.waitForChanges();
89
+ await page.keyboard.press("ArrowRight");
90
+ await page.waitForChanges();
91
+ const activeElement = await page.evaluate(() => document.activeElement.id);
92
+ expect(activeElement).toEqual("ic-tab-0-context-default");
93
+ });
94
+ it("should move focus to the last tab when the left arrow key is pressed if currently on the first tab", async () => {
95
+ const page = await newE2EPage({ html: testTabs });
96
+ const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
97
+ await tab0.click();
98
+ await page.waitForChanges();
99
+ await page.keyboard.press("ArrowLeft");
100
+ await page.waitForChanges();
101
+ const activeElement = await page.evaluate(() => document.activeElement.id);
102
+ expect(activeElement).toEqual("ic-tab-2-context-default");
103
+ });
104
+ it("should move focus to the first tab when the Home key is pressed", async () => {
105
+ const page = await newE2EPage({ html: testTabs });
106
+ const tab2 = await page.find('ic-tab[tab-id="ic-tab--2-context-default"]');
107
+ await tab2.click();
108
+ await page.waitForChanges();
109
+ await page.keyboard.press("Home");
110
+ await page.waitForChanges();
111
+ const activeElement = await page.evaluate(() => document.activeElement.id);
112
+ expect(activeElement).toEqual("ic-tab-0-context-default");
113
+ });
114
+ it("should move focus to the last tab when the End key is pressed", async () => {
115
+ const page = await newE2EPage({ html: testTabs });
116
+ const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
117
+ await tab0.click();
118
+ await page.waitForChanges();
119
+ await page.keyboard.press("End");
120
+ await page.waitForChanges();
121
+ const activeElement = await page.evaluate(() => document.activeElement.id);
122
+ expect(activeElement).toEqual("ic-tab-2-context-default");
123
+ });
124
+ it("should not allow a disabled tab to be selected", async () => {
125
+ const page = await newE2EPage({
126
+ html: `
127
127
  <ic-tab-context>
128
128
  <ic-tab-group label="Tabs e2e label">
129
129
  <ic-tab>Tab 1</ic-tab>
@@ -135,32 +135,32 @@ describe("ic-tab-context component", () => {
135
135
  <ic-tab-panel>Tab panel 3</ic-tab-panel>
136
136
  </ic-tab-context>
137
137
  `,
138
+ });
139
+ const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
140
+ await tab0.click();
141
+ await page.waitForChanges();
142
+ await page.keyboard.press("ArrowRight");
143
+ await page.waitForChanges();
144
+ const activeElement = await page.evaluate(() => document.activeElement.id);
145
+ expect(activeElement).toEqual("ic-tab-2-context-default");
146
+ });
147
+ it("should display the tab panels automatically using the arrow keys when using automatic activation", async () => {
148
+ const page = await newE2EPage({ html: testTabs });
149
+ const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
150
+ await tab0.click();
151
+ await page.waitForChanges();
152
+ await page.keyboard.press("ArrowRight");
153
+ await page.waitForChanges();
154
+ const tabPanel0 = await page.find('ic-tab-panel[panel-id="ic-tab--0-context-default"]');
155
+ const tabPanel1 = await page.find('ic-tab-panel[panel-id="ic-tab--1-context-default"]');
156
+ const tabPanel2 = await page.find('ic-tab-panel[panel-id="ic-tab--2-context-default"]');
157
+ expect(tabPanel0).toHaveAttribute("hidden");
158
+ expect(tabPanel1).not.toHaveAttribute("hidden");
159
+ expect(tabPanel2).toHaveAttribute("hidden");
138
160
  });
139
- const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
140
- await tab0.click();
141
- await page.waitForChanges();
142
- await page.keyboard.press("ArrowRight");
143
- await page.waitForChanges();
144
- const activeElement = await page.evaluate(() => document.activeElement.id);
145
- expect(activeElement).toEqual("ic-tab-2-context-default");
146
- });
147
- it("should display the tab panels automatically using the arrow keys when using automatic activation", async () => {
148
- const page = await newE2EPage({ html: testTabs });
149
- const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
150
- await tab0.click();
151
- await page.waitForChanges();
152
- await page.keyboard.press("ArrowRight");
153
- await page.waitForChanges();
154
- const tabPanel0 = await page.find('ic-tab-panel[panel-id="ic-tab--0-context-default"]');
155
- const tabPanel1 = await page.find('ic-tab-panel[panel-id="ic-tab--1-context-default"]');
156
- const tabPanel2 = await page.find('ic-tab-panel[panel-id="ic-tab--2-context-default"]');
157
- expect(tabPanel0).toHaveAttribute("hidden");
158
- expect(tabPanel1).not.toHaveAttribute("hidden");
159
- expect(tabPanel2).toHaveAttribute("hidden");
160
- });
161
- it("should not display the tab panels automatically using the arrow keys when using manual activation", async () => {
162
- const page = await newE2EPage({
163
- html: `
161
+ it("should not display the tab panels automatically using the arrow keys when using manual activation", async () => {
162
+ const page = await newE2EPage({
163
+ html: `
164
164
  <ic-tab-context activation-type="manual">
165
165
  <ic-tab-group label="Tabs e2e label">
166
166
  <ic-tab>Tab 1</ic-tab>
@@ -172,22 +172,22 @@ describe("ic-tab-context component", () => {
172
172
  <ic-tab-panel>Tab panel 3</ic-tab-panel>
173
173
  </ic-tab-context>
174
174
  `,
175
+ });
176
+ const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
177
+ await tab0.click();
178
+ await page.waitForChanges();
179
+ await page.keyboard.press("ArrowLeft");
180
+ await page.waitForChanges();
181
+ const tabPanel0 = await page.find('ic-tab-panel[panel-id="ic-tab--0-context-default"]');
182
+ const tabPanel1 = await page.find('ic-tab-panel[panel-id="ic-tab--1-context-default"]');
183
+ const tabPanel2 = await page.find('ic-tab-panel[panel-id="ic-tab--2-context-default"]');
184
+ expect(tabPanel0).not.toHaveAttribute("hidden");
185
+ expect(tabPanel1).toHaveAttribute("hidden");
186
+ expect(tabPanel2).toHaveAttribute("hidden");
175
187
  });
176
- const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
177
- await tab0.click();
178
- await page.waitForChanges();
179
- await page.keyboard.press("ArrowLeft");
180
- await page.waitForChanges();
181
- const tabPanel0 = await page.find('ic-tab-panel[panel-id="ic-tab--0-context-default"]');
182
- const tabPanel1 = await page.find('ic-tab-panel[panel-id="ic-tab--1-context-default"]');
183
- const tabPanel2 = await page.find('ic-tab-panel[panel-id="ic-tab--2-context-default"]');
184
- expect(tabPanel0).not.toHaveAttribute("hidden");
185
- expect(tabPanel1).toHaveAttribute("hidden");
186
- expect(tabPanel2).toHaveAttribute("hidden");
187
- });
188
- it("should set the selected tab in controlled mode to be the value that is passed in", async () => {
189
- const page = await newE2EPage({
190
- html: `
188
+ it("should set the selected tab in controlled mode to be the value that is passed in", async () => {
189
+ const page = await newE2EPage({
190
+ html: `
191
191
  <ic-tab-context selected-tab-index="1">
192
192
  <ic-tab-group label="Tabs e2e label">
193
193
  <ic-tab>Tab 1</ic-tab>
@@ -199,13 +199,13 @@ describe("ic-tab-context component", () => {
199
199
  <ic-tab-panel>Tab panel 3</ic-tab-panel>
200
200
  </ic-tab-context>
201
201
  `,
202
+ });
203
+ const tabPanel1 = await page.find('ic-tab-panel[panel-id="ic-tab--1-context-default"]');
204
+ expect(tabPanel1).not.toHaveAttribute("hidden");
202
205
  });
203
- const tabPanel1 = await page.find('ic-tab-panel[panel-id="ic-tab--1-context-default"]');
204
- expect(tabPanel1).not.toHaveAttribute("hidden");
205
- });
206
- it("should call icTabSelect event in controlled mode when clicked", async () => {
207
- const page = await newE2EPage({
208
- html: `
206
+ it("should call icTabSelect event in controlled mode when clicked", async () => {
207
+ const page = await newE2EPage({
208
+ html: `
209
209
  <ic-tab-context selected-tab-index="1">
210
210
  <ic-tab-group label="Tabs e2e label">
211
211
  <ic-tab>Tab 1</ic-tab>
@@ -217,19 +217,19 @@ describe("ic-tab-context component", () => {
217
217
  <ic-tab-panel>Tab panel 3</ic-tab-panel>
218
218
  </ic-tab-context>
219
219
  `,
220
+ });
221
+ const tabs = await page.find("ic-tab-context");
222
+ const tab1 = await page.find('ic-tab[tab-id="ic-tab--1-context-default"]');
223
+ const tabSelect = await tabs.spyOnEvent("icTabSelect");
224
+ await tab1.click();
225
+ await page.waitForChanges();
226
+ expect(tabSelect).toHaveReceivedEventDetail({
227
+ tabIndex: 1,
228
+ });
220
229
  });
221
- const tabs = await page.find("ic-tab-context");
222
- const tab1 = await page.find('ic-tab[tab-id="ic-tab--1-context-default"]');
223
- const tabSelect = await tabs.spyOnEvent("icTabSelect");
224
- await tab1.click();
225
- await page.waitForChanges();
226
- expect(tabSelect).toHaveReceivedEventDetail({
227
- tabIndex: 1,
228
- });
229
- });
230
- it("should move focus to next tab if focused tab is removed", async () => {
231
- const page = await newE2EPage({
232
- html: `<ic-tab-context>
230
+ it("should move focus to next tab if focused tab is removed", async () => {
231
+ const page = await newE2EPage({
232
+ html: `<ic-tab-context>
233
233
  <ic-tab-group label="Example tab group">
234
234
  <ic-tab>One</ic-tab>
235
235
  <ic-tab>Two</ic-tab>
@@ -240,33 +240,33 @@ describe("ic-tab-context component", () => {
240
240
  <ic-tab-panel>Tab Three</ic-tab-panel>
241
241
  </ic-tab-context>
242
242
  `,
243
+ });
244
+ const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
245
+ await tab0.click();
246
+ await page.waitForChanges();
247
+ await page.keyboard.press("ArrowRight");
248
+ await page.waitForChanges();
249
+ let focusedTabId = await page.evaluate(() => document.activeElement.id);
250
+ expect(focusedTabId).toBe("ic-tab-1-context-default");
251
+ await page.evaluate(() => {
252
+ const tabGroup = document.querySelector("ic-tab-group");
253
+ const allTabs = tabGroup.querySelectorAll("ic-tab");
254
+ const tabContext = document.querySelector("ic-tab-context");
255
+ const allTabPanels = tabContext.querySelectorAll("ic-tab-panel");
256
+ allTabs[allTabs.length - 2].remove();
257
+ allTabPanels[allTabPanels.length - 2].remove();
258
+ });
259
+ await waitForTimeout(250);
260
+ focusedTabId = await page.evaluate(() => document.activeElement.id);
261
+ expect(focusedTabId).toBe("ic-tab-1-context-default");
262
+ const focusedTab = await page.find('ic-tab[id="ic-tab-1-context-default"]');
263
+ const tabPanel = await page.find('ic-tab-panel[id*="ic-tab-panel-1-context-default"]');
264
+ expect(focusedTab.textContent).toBe("Three");
265
+ expect(tabPanel).not.toHaveAttribute("hidden");
243
266
  });
244
- const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
245
- await tab0.click();
246
- await page.waitForChanges();
247
- await page.keyboard.press("ArrowRight");
248
- await page.waitForChanges();
249
- let focusedTabId = await page.evaluate(() => document.activeElement.id);
250
- expect(focusedTabId).toBe("ic-tab-1-context-default");
251
- await page.evaluate(() => {
252
- const tabGroup = document.querySelector("ic-tab-group");
253
- const allTabs = tabGroup.querySelectorAll("ic-tab");
254
- const tabContext = document.querySelector("ic-tab-context");
255
- const allTabPanels = tabContext.querySelectorAll("ic-tab-panel");
256
- allTabs[allTabs.length - 2].remove();
257
- allTabPanels[allTabPanels.length - 2].remove();
258
- });
259
- await waitForTimeout(250);
260
- focusedTabId = await page.evaluate(() => document.activeElement.id);
261
- expect(focusedTabId).toBe("ic-tab-1-context-default");
262
- const focusedTab = await page.find('ic-tab[id="ic-tab-1-context-default"]');
263
- const tabPanel = await page.find('ic-tab-panel[id*="ic-tab-panel-1-context-default"]');
264
- expect(focusedTab.textContent).toBe("Three");
265
- expect(tabPanel).not.toHaveAttribute("hidden");
266
- });
267
- it("should move focus to first tab if last tab is focused and removed", async () => {
268
- const page = await newE2EPage({
269
- html: `<ic-tab-context>
267
+ it("should move focus to first tab if last tab is focused and removed", async () => {
268
+ const page = await newE2EPage({
269
+ html: `<ic-tab-context>
270
270
  <ic-tab-group label="Example tab group">
271
271
  <ic-tab>One</ic-tab>
272
272
  <ic-tab>Two</ic-tab>
@@ -277,35 +277,35 @@ describe("ic-tab-context component", () => {
277
277
  <ic-tab-panel>Tab Three</ic-tab-panel>
278
278
  </ic-tab-context>
279
279
  `,
280
+ });
281
+ const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
282
+ await tab0.click();
283
+ await page.waitForChanges();
284
+ await page.keyboard.press("ArrowRight");
285
+ await page.waitForChanges();
286
+ await page.keyboard.press("ArrowRight");
287
+ await page.waitForChanges();
288
+ let focusedTabId = await page.evaluate(() => document.activeElement.id);
289
+ expect(focusedTabId).toBe("ic-tab-2-context-default");
290
+ await page.evaluate(() => {
291
+ const tabGroup = document.querySelector("ic-tab-group");
292
+ const allTabs = tabGroup.querySelectorAll("ic-tab");
293
+ const tabContext = document.querySelector("ic-tab-context");
294
+ const allTabPanels = tabContext.querySelectorAll("ic-tab-panel");
295
+ allTabs[allTabs.length - 1].remove();
296
+ allTabPanels[allTabPanels.length - 1].remove();
297
+ });
298
+ await waitForTimeout(250);
299
+ focusedTabId = await page.evaluate(() => document.activeElement.id);
300
+ expect(focusedTabId).toBe("ic-tab-0-context-default");
301
+ const focusedTab = await page.find('ic-tab[id="ic-tab-0-context-default"]');
302
+ const tabPanel = await page.find('ic-tab-panel[id*="ic-tab-panel-0-context-default"]');
303
+ expect(focusedTab.textContent).toBe("One");
304
+ expect(tabPanel).not.toHaveAttribute("hidden");
280
305
  });
281
- const tab0 = await page.find('ic-tab[tab-id="ic-tab--0-context-default"]');
282
- await tab0.click();
283
- await page.waitForChanges();
284
- await page.keyboard.press("ArrowRight");
285
- await page.waitForChanges();
286
- await page.keyboard.press("ArrowRight");
287
- await page.waitForChanges();
288
- let focusedTabId = await page.evaluate(() => document.activeElement.id);
289
- expect(focusedTabId).toBe("ic-tab-2-context-default");
290
- await page.evaluate(() => {
291
- const tabGroup = document.querySelector("ic-tab-group");
292
- const allTabs = tabGroup.querySelectorAll("ic-tab");
293
- const tabContext = document.querySelector("ic-tab-context");
294
- const allTabPanels = tabContext.querySelectorAll("ic-tab-panel");
295
- allTabs[allTabs.length - 1].remove();
296
- allTabPanels[allTabPanels.length - 1].remove();
297
- });
298
- await waitForTimeout(250);
299
- focusedTabId = await page.evaluate(() => document.activeElement.id);
300
- expect(focusedTabId).toBe("ic-tab-0-context-default");
301
- const focusedTab = await page.find('ic-tab[id="ic-tab-0-context-default"]');
302
- const tabPanel = await page.find('ic-tab-panel[id*="ic-tab-panel-0-context-default"]');
303
- expect(focusedTab.textContent).toBe("One");
304
- expect(tabPanel).not.toHaveAttribute("hidden");
305
- });
306
- it("should not trigger icTabSelect event in parent tab", async () => {
307
- const page = await newE2EPage({
308
- html: `<ic-tab-context id='parent'>
306
+ it("should not trigger icTabSelect event in parent tab", async () => {
307
+ const page = await newE2EPage({
308
+ html: `<ic-tab-context id='parent'>
309
309
  <ic-tab-group label="Example tab group">
310
310
  <ic-tab>One</ic-tab>
311
311
  <ic-tab>Two</ic-tab>
@@ -327,26 +327,26 @@ describe("ic-tab-context component", () => {
327
327
  <ic-tab-panel>Tab Three</ic-tab-panel>
328
328
  </ic-tab-context>
329
329
  `,
330
+ });
331
+ const mainTabs = await page.find('ic-tab-context[context-id="default"]');
332
+ const nestedTabs = await page.find('ic-tab-context[context-id="child"]');
333
+ const parentTabSelect = await mainTabs.spyOnEvent("icTabSelect");
334
+ const nestedTabSelect = await nestedTabs.spyOnEvent("icTabSelect");
335
+ const nestedTab1 = await page.find('ic-tab-panel[panel-id="ic-tab--0-context-default"] ic-tab[tab-id="ic-tab--1-context-child"]');
336
+ await nestedTab1.click();
337
+ await page.waitForChanges();
338
+ expect(parentTabSelect).not.toHaveReceivedEvent();
339
+ expect(nestedTabSelect).toHaveReceivedEventDetail({
340
+ tabIndex: 1,
341
+ });
330
342
  });
331
- const mainTabs = await page.find('ic-tab-context[context-id="default"]');
332
- const nestedTabs = await page.find('ic-tab-context[context-id="child"]');
333
- const parentTabSelect = await mainTabs.spyOnEvent("icTabSelect");
334
- const nestedTabSelect = await nestedTabs.spyOnEvent("icTabSelect");
335
- const nestedTab1 = await page.find('ic-tab-panel[panel-id="ic-tab--0-context-default"] ic-tab[tab-id="ic-tab--1-context-child"]');
336
- await nestedTab1.click();
337
- await page.waitForChanges();
338
- expect(parentTabSelect).not.toHaveReceivedEvent();
339
- expect(nestedTabSelect).toHaveReceivedEventDetail({
340
- tabIndex: 1,
343
+ it("should select tab and load content when clicked - responsive tabs", async () => {
344
+ const page = await newE2EPage({ html: testTabsResponsive });
345
+ await page.waitForChanges();
346
+ const tab3 = await page.find('ic-tab[tab-id="ic-tab--2-context-default"]');
347
+ await tab3.click();
348
+ await page.waitForChanges();
349
+ expect(tab3).toHaveClass("selected");
341
350
  });
342
- });
343
- it("should select tab and load content when clicked - responsive tabs", async () => {
344
- const page = await newE2EPage({ html: testTabsResponsive });
345
- await page.waitForChanges();
346
- const tab3 = await page.find('ic-tab[tab-id="ic-tab--2-context-default"]');
347
- await tab3.click();
348
- await page.waitForChanges();
349
- expect(tab3).toHaveClass("selected");
350
- });
351
351
  });
352
352
  //# sourceMappingURL=ic-tab-context.e2e.js.map