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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1033) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/helpers-eb53c416.js.map +1 -1
  3. package/dist/cjs/ic-alert.cjs.entry.js +8 -8
  4. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  5. package/dist/cjs/ic-back-to-top.cjs.entry.js +2 -2
  6. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +25 -19
  8. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-breadcrumb.cjs.entry.js +5 -5
  10. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-button_3.cjs.entry.js +105 -71
  12. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-card.cjs.entry.js +40 -40
  14. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-checkbox-group.cjs.entry.js +17 -17
  16. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-checkbox.cjs.entry.js +32 -29
  18. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-chip.cjs.entry.js +15 -15
  20. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-data-row.cjs.entry.js +20 -20
  22. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-dialog.cjs.entry.js +54 -55
  24. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-footer-link-group.cjs.entry.js +16 -16
  26. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-footer-link.cjs.entry.js +14 -14
  28. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-footer.cjs.entry.js +17 -17
  30. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-hero.cjs.entry.js +18 -18
  32. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +35 -22
  34. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +86 -88
  36. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-input-label_2.cjs.entry.js +7 -7
  38. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-link.cjs.entry.js +17 -17
  40. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-menu-item.cjs.entry.js +12 -12
  42. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-navigation-button.cjs.entry.js +15 -15
  44. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-navigation-group.cjs.entry.js +37 -37
  46. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-navigation-item.cjs.entry.js +42 -42
  48. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-navigation-menu.cjs.entry.js +26 -26
  50. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-page-header.cjs.entry.js +12 -12
  52. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-pagination-item.cjs.entry.js +5 -5
  54. package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-pagination.cjs.entry.js +30 -30
  56. package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-popover-menu.cjs.entry.js +61 -61
  58. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-radio-group.cjs.entry.js +35 -28
  60. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-radio-option.cjs.entry.js +36 -29
  62. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-search-bar.cjs.entry.js +122 -121
  64. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-select.cjs.entry.js +67 -66
  66. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-side-navigation.cjs.entry.js +43 -37
  68. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-skeleton.cjs.entry.js +3 -3
  70. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  72. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-step.cjs.entry.js +7 -7
  74. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-stepper.cjs.entry.js +13 -13
  76. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-switch.cjs.entry.js +16 -16
  78. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-tab-context.cjs.entry.js +26 -32
  80. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  82. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  84. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-tab.cjs.entry.js +16 -16
  86. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-text-field.cjs.entry.js +53 -53
  88. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-toast-region.cjs.entry.js +12 -12
  91. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-toast.cjs.entry.js +57 -57
  93. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-top-navigation.cjs.entry.js +41 -39
  95. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-typography.cjs.entry.js +11 -11
  97. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  98. package/dist/cjs/loader.cjs.js +1 -1
  99. package/dist/collection/collection-manifest.json +4 -4
  100. package/dist/collection/components/ic-alert/ic-alert.js +49 -49
  101. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  102. package/dist/collection/components/ic-alert/{ic-alert.test.a11y.js → test/a11y/ic-alert.test.a11y.js} +1 -1
  103. package/dist/collection/components/ic-alert/test/a11y/ic-alert.test.a11y.js.map +1 -0
  104. package/dist/collection/components/ic-alert/test/basic/ic-alert.e2e.js.map +1 -0
  105. package/dist/collection/components/ic-alert/{ic-alert.spec.js → test/basic/ic-alert.spec.js} +1 -1
  106. package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +1 -0
  107. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +4 -4
  108. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
  109. package/dist/collection/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.js.map +1 -0
  110. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.e2e.js.map +1 -0
  111. package/dist/collection/components/ic-back-to-top/{ic-back-to-top.spec.js → test/basic/ic-back-to-top.spec.js} +3 -3
  112. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +1 -0
  113. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +24 -24
  114. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
  115. package/dist/collection/components/ic-breadcrumb/{ic-breadcrumb.spec.js → test/basic/ic-breadcrumb.spec.js} +1 -1
  116. package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js.map +1 -0
  117. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +25 -19
  118. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
  119. package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group.test.a11y.js → test/a11y/ic-breadcrumb-group.test.a11y.js} +1 -1
  120. package/dist/collection/components/ic-breadcrumb-group/test/a11y/ic-breadcrumb-group.test.a11y.js.map +1 -0
  121. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group-test-examples.js.map +1 -0
  122. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.e2e.js.map +1 -0
  123. package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group.spec.js → test/basic/ic-breadcrumb-group.spec.js} +5 -5
  124. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js.map +1 -0
  125. package/dist/collection/components/ic-button/ic-button.css +4 -0
  126. package/dist/collection/components/ic-button/ic-button.js +230 -191
  127. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  128. package/dist/collection/components/ic-button/{ic-button.test.a11y.js → test/a11y/ic-button.test.a11y.js} +1 -1
  129. package/dist/collection/components/ic-button/test/a11y/ic-button.test.a11y.js.map +1 -0
  130. package/dist/collection/components/ic-button/{ic-button.e2e.js → test/basic/ic-button.e2e.js} +25 -0
  131. package/dist/collection/components/ic-button/test/basic/ic-button.e2e.js.map +1 -0
  132. package/dist/collection/components/ic-button/{ic-button.spec.js → test/basic/ic-button.spec.js} +28 -2
  133. package/dist/collection/components/ic-button/test/basic/ic-button.spec.js.map +1 -0
  134. package/dist/collection/components/ic-card/ic-card.js +120 -120
  135. package/dist/collection/components/ic-card/ic-card.js.map +1 -1
  136. package/dist/collection/components/ic-card/{ic-card.test.a11y.js → test/a11y/ic-card.test.a11y.js} +1 -1
  137. package/dist/collection/components/ic-card/test/a11y/ic-card.test.a11y.js.map +1 -0
  138. package/dist/collection/components/ic-card/test/basic/ic-card.e2e.js.map +1 -0
  139. package/dist/collection/components/ic-card/{ic-card.spec.js → test/basic/ic-card.spec.js} +1 -1
  140. package/dist/collection/components/ic-card/test/basic/ic-card.spec.js.map +1 -0
  141. package/dist/collection/components/ic-checkbox/ic-checkbox.js +94 -91
  142. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  143. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +58 -58
  144. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  145. package/dist/collection/components/ic-checkbox-group/{ic-checkbox-group.test.a11y.js → test/a11y/ic-checkbox-group.test.a11y.js} +1 -1
  146. package/dist/collection/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.js.map +1 -0
  147. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.e2e.js.map +1 -0
  148. package/dist/collection/components/ic-checkbox-group/{ic-checkbox-group.spec.js → test/basic/ic-checkbox-group.spec.js} +3 -3
  149. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +1 -0
  150. package/dist/collection/components/ic-chip/ic-chip.js +54 -54
  151. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  152. package/dist/collection/components/ic-chip/{ic-chip.test.a11y.js → test/a11y/ic-chip.test.a11y.js} +1 -1
  153. package/dist/collection/components/ic-chip/test/a11y/ic-chip.test.a11y.js.map +1 -0
  154. package/dist/collection/components/ic-chip/{ic-chip.spec.js → test/basic/ic-chip.spec.js} +1 -1
  155. package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js.map +1 -0
  156. package/dist/collection/components/ic-classification-banner/{ic-classification-banner.test.a11y.js → test/a11y/ic-classification-banner.test.a11y.js} +1 -1
  157. package/dist/collection/components/ic-classification-banner/test/a11y/ic-classification-banner.test.a11y.js.map +1 -0
  158. package/dist/collection/components/ic-classification-banner/{ic-classification-banner.spec.js → test/basic/ic-classification-banner.spec.js} +1 -1
  159. package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js.map +1 -0
  160. package/dist/collection/components/ic-data-entity/{ic-data-entity.test.a11y.js → test/a11y/ic-data-entity.test.a11y.js} +1 -1
  161. package/dist/collection/components/ic-data-entity/test/a11y/ic-data-entity.test.a11y.js.map +1 -0
  162. package/dist/collection/components/ic-data-entity/{ic-data-entity.spec.js → test/basic/ic-data-entity.spec.js} +1 -1
  163. package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js.map +1 -0
  164. package/dist/collection/components/ic-data-row/ic-data-row.js +35 -35
  165. package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
  166. package/dist/collection/components/ic-data-row/{ic-data-row.test.a11y.js → test/a11y/ic-data-row.test.a11y.js} +1 -1
  167. package/dist/collection/components/ic-data-row/test/a11y/ic-data-row.test.a11y.js.map +1 -0
  168. package/dist/collection/components/ic-data-row/{ic-data-row.spec.js → test/basic/ic-data-row.spec.js} +1 -1
  169. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js.map +1 -0
  170. package/dist/collection/components/ic-dialog/ic-dialog.css +1 -4
  171. package/dist/collection/components/ic-dialog/ic-dialog.js +122 -123
  172. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  173. package/dist/collection/components/ic-dialog/{ic-dialog.test.a11y.js → test/a11y/ic-dialog.test.a11y.js} +1 -1
  174. package/dist/collection/components/ic-dialog/test/a11y/ic-dialog.test.a11y.js.map +1 -0
  175. package/dist/collection/components/ic-dialog/{ic-dialog.e2e.js → test/basic/ic-dialog.e2e.js} +3 -0
  176. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.e2e.js.map +1 -0
  177. package/dist/collection/components/ic-dialog/{ic-dialog.spec.js → test/basic/ic-dialog.spec.js} +4 -4
  178. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +1 -0
  179. package/dist/collection/components/ic-divider/{ic-divider.spec.js → test/basic/ic-divider.spec.js} +1 -1
  180. package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js.map +1 -0
  181. package/dist/collection/components/ic-footer/ic-footer.js +47 -47
  182. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  183. package/dist/collection/components/ic-footer/{ic-footer.test.a11y.js → test/a11y/ic-footer.test.a11y.js} +1 -1
  184. package/dist/collection/components/ic-footer/test/a11y/ic-footer.test.a11y.js.map +1 -0
  185. package/dist/collection/components/ic-footer/test/basic/ic-footer.e2e.js.map +1 -0
  186. package/dist/collection/components/ic-footer/{ic-footer.spec.js → test/basic/ic-footer.spec.js} +3 -3
  187. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +1 -0
  188. package/dist/collection/components/ic-footer-link/ic-footer-link.js +33 -33
  189. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  190. package/dist/collection/components/ic-footer-link/{ic-footer-link.test.a11y.js → test/a11y/ic-footer-link.test.a11y.js} +1 -1
  191. package/dist/collection/components/ic-footer-link/test/a11y/ic-footer-link.test.a11y.js.map +1 -0
  192. package/dist/collection/components/ic-footer-link/{ic-footer-link.spec.js → test/basic/ic-footer-link.spec.js} +1 -1
  193. package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js.map +1 -0
  194. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +18 -18
  195. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  196. package/dist/collection/components/ic-footer-link-group/{ic-footer-link-group.test.a11y.js → test/a11y/ic-footer-link-group.test.a11y.js} +1 -1
  197. package/dist/collection/components/ic-footer-link-group/test/a11y/ic-footer-link-group.test.a11y.js.map +1 -0
  198. package/dist/collection/components/ic-footer-link-group/{ic-footer-link-group.spec.js → test/basic/ic-footer-link-group.spec.js} +3 -3
  199. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +1 -0
  200. package/dist/collection/components/ic-hero/ic-hero.js +95 -95
  201. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  202. package/dist/collection/components/ic-hero/{ic-hero.test.a11y.js → test/a11y/ic-hero.test.a11y.js} +1 -1
  203. package/dist/collection/components/ic-hero/test/a11y/ic-hero.test.a11y.js.map +1 -0
  204. package/dist/collection/components/ic-hero/{ic-hero.spec.js → test/basic/ic-hero.spec.js} +1 -1
  205. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +1 -0
  206. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +37 -24
  207. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -1
  208. package/dist/collection/components/ic-horizontal-scroll/{ic-horizontal-scroll.test.a11y.js → test/a11y/ic-horizontal-scroll.test.a11y.js} +1 -1
  209. package/dist/collection/components/ic-horizontal-scroll/test/a11y/ic-horizontal-scroll.test.a11y.js.map +1 -0
  210. package/dist/collection/components/ic-horizontal-scroll/{ic-horizontal-scroll.spec.js → test/basic/ic-horizontal-scroll.spec.js} +2 -2
  211. package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js.map +1 -0
  212. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +45 -45
  213. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
  214. package/dist/collection/components/ic-input-component-container/{ic-input-component-container.spec.js → test/basic/ic-input-component-container.spec.js} +1 -1
  215. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +1 -0
  216. package/dist/collection/components/ic-input-container/{ic-input-container.spec.js → test/basic/ic-input-container.spec.js} +1 -1
  217. package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js.map +1 -0
  218. package/dist/collection/components/ic-input-label/ic-input-label.js +51 -51
  219. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  220. package/dist/collection/components/ic-input-label/{ic-input-label.spec.js → test/basic/ic-input-label.spec.js} +1 -1
  221. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +1 -0
  222. package/dist/collection/components/ic-input-validation/ic-input-validation.js +41 -41
  223. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  224. package/dist/collection/components/ic-input-validation/{ic-input-validation.spec.js → test/basic/ic-input-validation.spec.js} +1 -1
  225. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js.map +1 -0
  226. package/dist/collection/components/ic-link/ic-link.js +48 -48
  227. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  228. package/dist/collection/components/ic-link/{ic-link.test.a11y.js → test/a11y/ic-link.test.a11y.js} +1 -1
  229. package/dist/collection/components/ic-link/test/a11y/ic-link.test.a11y.js.map +1 -0
  230. package/dist/collection/components/ic-link/{ic-link.spec.js → test/basic/ic-link.spec.js} +2 -2
  231. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +1 -0
  232. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +89 -89
  233. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  234. package/dist/collection/components/ic-loading-indicator/{ic-loading-indicator.test.a11y.js → test/a11y/ic-loading-indicator.test.a11y.js} +1 -1
  235. package/dist/collection/components/ic-loading-indicator/test/a11y/ic-loading-indicator.test.a11y.js.map +1 -0
  236. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.e2e.js.map +1 -0
  237. package/dist/collection/components/ic-loading-indicator/{ic-loading-indicator.spec.js → test/basic/ic-loading-indicator.spec.js} +3 -3
  238. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js.map +1 -0
  239. package/dist/collection/components/ic-menu/ic-menu.js +238 -240
  240. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  241. package/dist/collection/components/ic-menu/{ic-menu.spec.js → test/basic/ic-menu.spec.js} +4 -4
  242. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +1 -0
  243. package/dist/collection/components/ic-menu-group/{ic-menu-group.spec.js → test/basic/ic-menu-group.spec.js} +2 -2
  244. package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js.map +1 -0
  245. package/dist/collection/components/ic-menu-item/ic-menu-item.js +75 -75
  246. package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
  247. package/dist/collection/components/ic-menu-item/{ic-menu-item.spec.js → test/basic/ic-menu-item.spec.js} +2 -2
  248. package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js.map +1 -0
  249. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +56 -56
  250. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  251. package/dist/collection/components/ic-navigation-button/{ic-navigation-button.spec.js → test/basic/ic-navigation-button.spec.js} +2 -2
  252. package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js.map +1 -0
  253. package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +0 -8
  254. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +55 -55
  255. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  256. package/dist/collection/components/ic-navigation-group/{ic-navigation-group.test.a11y.js → test/a11y/ic-navigation-group.test.a11y.js} +1 -1
  257. package/dist/collection/components/ic-navigation-group/test/a11y/ic-navigation-group.test.a11y.js.map +1 -0
  258. package/dist/collection/components/ic-navigation-group/{ic-navigation-group.spec.js → test/basic/ic-navigation-group.spec.js} +8 -8
  259. package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js.map +1 -0
  260. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +6 -4
  261. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +135 -135
  262. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  263. package/dist/collection/components/ic-navigation-item/{ic-navigation-item.test.a11y.js → test/a11y/ic-navigation-item.test.a11y.js} +1 -1
  264. package/dist/collection/components/ic-navigation-item/test/a11y/ic-navigation-item.test.a11y.js.map +1 -0
  265. package/dist/collection/components/ic-navigation-item/{ic-navigation-item.spec.js → test/basic/ic-navigation-item.spec.js} +5 -5
  266. package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js.map +1 -0
  267. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +1 -4
  268. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +31 -31
  269. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  270. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.e2e.js.map +1 -0
  271. package/dist/collection/components/ic-navigation-menu/{ic-navigation-menu.spec.js → test/basic/ic-navigation-menu.spec.js} +6 -6
  272. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js.map +1 -0
  273. package/dist/collection/components/ic-page-header/ic-page-header.js +56 -56
  274. package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
  275. package/dist/collection/components/ic-page-header/{ic-page-header.test.a11y.js → test/a11y/ic-page-header.test.a11y.js} +1 -1
  276. package/dist/collection/components/ic-page-header/test/a11y/ic-page-header.test.a11y.js.map +1 -0
  277. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.e2e.js.map +1 -0
  278. package/dist/collection/components/ic-page-header/{ic-page-header.spec.js → test/basic/ic-page-header.spec.js} +7 -7
  279. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js.map +1 -0
  280. package/dist/collection/components/ic-pagination/ic-pagination.js +97 -97
  281. package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
  282. package/dist/collection/components/ic-pagination/{ic-pagination.test.a11y.js → test/a11y/ic-pagination.test.a11y.js} +1 -1
  283. package/dist/collection/components/ic-pagination/test/a11y/ic-pagination.test.a11y.js.map +1 -0
  284. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.e2e.js.map +1 -0
  285. package/dist/collection/components/ic-pagination/{ic-pagination.spec.js → test/basic/ic-pagination.spec.js} +3 -3
  286. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +1 -0
  287. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +65 -65
  288. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js.map +1 -1
  289. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +96 -96
  290. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  291. package/dist/collection/components/ic-popover-menu/{ic-popover-menu.test.a11y.js → test/a11y/ic-popover-menu.test.a11y.js} +1 -1
  292. package/dist/collection/components/ic-popover-menu/test/a11y/ic-popover-menu.test.a11y.js.map +1 -0
  293. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.e2e.js.map +1 -0
  294. package/dist/collection/components/ic-popover-menu/{ic-popover-menu.spec.js → test/basic/ic-popover-menu.spec.js} +4 -4
  295. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js.map +1 -0
  296. package/dist/collection/components/ic-radio-group/ic-radio-group.js +94 -81
  297. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  298. package/dist/collection/components/ic-radio-group/{ic-radio-group.test.a11y.js → test/a11y/ic-radio-group.test.a11y.js} +1 -1
  299. package/dist/collection/components/ic-radio-group/test/a11y/ic-radio-group.test.a11y.js.map +1 -0
  300. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js.map +1 -0
  301. package/dist/collection/components/ic-radio-group/{ic-radio-group.spec.js → test/basic/ic-radio-group.spec.js} +3 -3
  302. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -0
  303. package/dist/collection/components/ic-radio-option/ic-radio-option.js +112 -88
  304. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  305. package/dist/collection/components/ic-search-bar/ic-search-bar.js +385 -384
  306. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  307. package/dist/collection/components/ic-search-bar/{ic-search-bar.test.a11y.js → test/a11y/ic-search-bar.test.a11y.js} +1 -1
  308. package/dist/collection/components/ic-search-bar/test/a11y/ic-search-bar.test.a11y.js.map +1 -0
  309. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +1 -0
  310. package/dist/collection/components/ic-search-bar/{ic-search-bar.spec.js → test/basic/ic-search-bar.spec.js} +7 -7
  311. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +1 -0
  312. package/dist/collection/components/ic-section-container/{ic-section-container.spec.js → test/basic/ic-section-container.spec.js} +1 -1
  313. package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js.map +1 -0
  314. package/dist/collection/components/ic-select/ic-select.js +267 -266
  315. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  316. package/dist/collection/components/ic-select/{ic-select.test.a11y.js → test/a11y/ic-select.test.a11y.js} +1 -1
  317. package/dist/collection/components/ic-select/test/a11y/ic-select.test.a11y.js.map +1 -0
  318. package/dist/collection/components/ic-select/{ic-select.e2e.js → test/basic/ic-select.e2e.js} +3 -0
  319. package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js.map +1 -0
  320. package/dist/collection/components/ic-select/{ic-select.spec.js → test/basic/ic-select.spec.js} +26 -6
  321. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +1 -0
  322. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +6 -19
  323. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +87 -81
  324. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  325. package/dist/collection/components/ic-side-navigation/{ic-side-navigation.test.a11y.js → test/a11y/ic-side-navigation.test.a11y.js} +1 -1
  326. package/dist/collection/components/ic-side-navigation/test/a11y/ic-side-navigation.test.a11y.js.map +1 -0
  327. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.js.map +1 -0
  328. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js.map +1 -0
  329. package/dist/collection/components/ic-side-navigation/{ic-side-navigation.spec.js → test/basic/ic-side-navigation.spec.js} +5 -5
  330. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +1 -0
  331. package/dist/collection/components/ic-skeleton/ic-skeleton.js +22 -22
  332. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
  333. package/dist/collection/components/ic-skeleton/{ic-skeleton.test.a11y.js → test/a11y/ic-skeleton.test.a11y.js} +1 -1
  334. package/dist/collection/components/ic-skeleton/test/a11y/ic-skeleton.test.a11y.js.map +1 -0
  335. package/dist/collection/components/ic-skeleton/{ic-skeleton.spec.js → test/basic/ic-skeleton.spec.js} +1 -1
  336. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js.map +1 -0
  337. package/dist/collection/components/ic-status-tag/ic-status-tag.js +40 -40
  338. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
  339. package/dist/collection/components/ic-status-tag/{ic-status-tag.test.a11y.js → test/a11y/ic-status-tag.test.a11y.js} +1 -1
  340. package/dist/collection/components/ic-status-tag/test/a11y/ic-status-tag.test.a11y.js.map +1 -0
  341. package/dist/collection/components/ic-status-tag/{ic-status-tag.spec.js → test/basic/ic-status-tag.spec.js} +1 -1
  342. package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js.map +1 -0
  343. package/dist/collection/components/ic-step/ic-step.js +126 -126
  344. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  345. package/dist/collection/components/ic-step/{ic-step.spec.js → test/basic/ic-step.spec.js} +3 -3
  346. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js.map +1 -0
  347. package/dist/collection/components/ic-stepper/ic-stepper.js +41 -41
  348. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  349. package/dist/collection/components/ic-stepper/{ic-stepper.test.a11y.js → test/a11y/ic-stepper.test.a11y.js} +1 -1
  350. package/dist/collection/components/ic-stepper/test/a11y/ic-stepper.test.a11y.js.map +1 -0
  351. package/dist/collection/components/ic-stepper/test/basic/ic-stepper-test-examples.js.map +1 -0
  352. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js.map +1 -0
  353. package/dist/collection/components/ic-stepper/{ic-stepper.spec.js → test/basic/ic-stepper.spec.js} +3 -3
  354. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +1 -0
  355. package/dist/collection/components/ic-switch/ic-switch.js +72 -72
  356. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  357. package/dist/collection/components/ic-switch/{ic-switch.test.a11y.js → test/a11y/ic-switch.test.a11y.js} +1 -1
  358. package/dist/collection/components/ic-switch/test/a11y/ic-switch.test.a11y.js.map +1 -0
  359. package/dist/collection/components/ic-switch/{ic-switch.spec.js → test/basic/ic-switch.spec.js} +1 -1
  360. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +1 -0
  361. package/dist/collection/components/ic-tab/ic-tab.js +56 -56
  362. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  363. package/dist/collection/components/ic-tab/test/basic/ic-tab.e2e.js.map +1 -0
  364. package/dist/collection/components/ic-tab/{ic-tab.spec.js → test/basic/ic-tab.spec.js} +3 -3
  365. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +1 -0
  366. package/dist/collection/components/ic-tab-context/ic-tab-context.js +71 -77
  367. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  368. package/dist/collection/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.js.map +1 -0
  369. package/dist/collection/components/ic-tab-context/{ic-tab-context.e2e.js → test/basic/ic-tab-context.e2e.js} +1 -1
  370. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.e2e.js.map +1 -0
  371. package/dist/collection/components/ic-tab-context/{ic-tab-context.spec.js → test/basic/ic-tab-context.spec.js} +4 -4
  372. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js.map +1 -0
  373. package/dist/collection/components/ic-tab-group/ic-tab-group.js +27 -27
  374. package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
  375. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +33 -33
  376. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
  377. package/dist/collection/components/ic-tab-panel/{ic-tab-panel.spec.js → test/basic/ic-tab-panel.spec.js} +1 -1
  378. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js.map +1 -0
  379. package/dist/collection/components/ic-text-field/ic-text-field.js +371 -371
  380. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  381. package/dist/collection/components/ic-text-field/test/a11y/ic-text-field.test.a11y.js.map +1 -0
  382. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.e2e.js.map +1 -0
  383. package/dist/collection/components/ic-text-field/{ic-text-field.input.spec.js → test/basic/ic-text-field.input.spec.js} +2 -2
  384. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +1 -0
  385. package/dist/collection/components/ic-text-field/{ic-text-field.textarea.spec.js → test/basic/ic-text-field.textarea.spec.js} +1 -1
  386. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +1 -0
  387. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
  388. package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js.map +1 -0
  389. package/dist/collection/components/ic-theme/{ic-theme.spec.js → test/basic/ic-theme.spec.js} +3 -3
  390. package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js.map +1 -0
  391. package/dist/collection/components/ic-toast/ic-toast.js +111 -111
  392. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  393. package/dist/collection/components/ic-toast/{ic-toast.test.a11y.js → test/a11y/ic-toast.test.a11y.js} +1 -1
  394. package/dist/collection/components/ic-toast/test/a11y/ic-toast.test.a11y.js.map +1 -0
  395. package/dist/collection/components/ic-toast/test/basic/ic-toast.e2e.js.map +1 -0
  396. package/dist/collection/components/ic-toast/{ic-toast.spec.js → test/basic/ic-toast.spec.js} +4 -4
  397. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -0
  398. package/dist/collection/components/ic-toast-region/ic-toast-region.js +12 -12
  399. package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -1
  400. package/dist/collection/components/ic-toast-region/{ic-toast-region.spec.js → test/basic/ic-toast-region.spec.js} +3 -3
  401. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js.map +1 -0
  402. package/dist/collection/components/ic-tooltip/ic-tooltip.js +47 -47
  403. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  404. package/dist/collection/components/ic-tooltip/{ic-tooltip.test.a11y.js → test/a11y/ic-tooltip.test.a11y.js} +1 -1
  405. package/dist/collection/components/ic-tooltip/test/a11y/ic-tooltip.test.a11y.js.map +1 -0
  406. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js.map +1 -0
  407. package/dist/collection/components/ic-tooltip/{ic-tooltip.spec.js → test/basic/ic-tooltip.spec.js} +2 -2
  408. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js.map +1 -0
  409. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +100 -80
  410. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  411. package/dist/collection/components/ic-top-navigation/{ic-top-navigation.test.a11y.js → test/a11y/ic-top-navigation.test.a11y.js} +8 -1
  412. package/dist/collection/components/ic-top-navigation/test/a11y/ic-top-navigation.test.a11y.js.map +1 -0
  413. package/dist/collection/components/ic-top-navigation/{ic-top-navigation.e2e.js → test/basic/ic-top-navigation.e2e.js} +19 -0
  414. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.e2e.js.map +1 -0
  415. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js.map +1 -0
  416. package/dist/collection/components/ic-top-navigation/{ic-top-navigation.spec.js → test/basic/ic-top-navigation.spec.js} +21 -8
  417. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js.map +1 -0
  418. package/dist/collection/components/ic-typography/ic-typography.js +36 -36
  419. package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
  420. package/dist/collection/components/ic-typography/{ic-typography.test.a11y.js → test/a11y/ic-typography.test.a11y.js} +1 -1
  421. package/dist/collection/components/ic-typography/test/a11y/ic-typography.test.a11y.js.map +1 -0
  422. package/dist/collection/components/ic-typography/{ic-typography.e2e.js → test/basic/ic-typography.e2e.js} +3 -0
  423. package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js.map +1 -0
  424. package/dist/collection/components/ic-typography/{ic-typography.spec.js → test/basic/ic-typography.spec.js} +1 -1
  425. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +1 -0
  426. package/dist/collection/testspec.setup.js +10 -0
  427. package/dist/collection/testspec.setup.js.map +1 -1
  428. package/dist/collection/utils/helpers.js.map +1 -1
  429. package/dist/components/helpers.js +1 -1
  430. package/dist/components/helpers.js.map +1 -1
  431. package/dist/components/ic-alert2.js +13 -13
  432. package/dist/components/ic-alert2.js.map +1 -1
  433. package/dist/components/ic-back-to-top.js +4 -4
  434. package/dist/components/ic-back-to-top.js.map +1 -1
  435. package/dist/components/ic-breadcrumb-group.js +25 -19
  436. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  437. package/dist/components/ic-breadcrumb2.js +7 -7
  438. package/dist/components/ic-breadcrumb2.js.map +1 -1
  439. package/dist/components/ic-button2.js +82 -47
  440. package/dist/components/ic-button2.js.map +1 -1
  441. package/dist/components/ic-card.js +50 -50
  442. package/dist/components/ic-card.js.map +1 -1
  443. package/dist/components/ic-checkbox-group.js +20 -20
  444. package/dist/components/ic-checkbox-group.js.map +1 -1
  445. package/dist/components/ic-checkbox.js +37 -34
  446. package/dist/components/ic-checkbox.js.map +1 -1
  447. package/dist/components/ic-chip.js +19 -19
  448. package/dist/components/ic-chip.js.map +1 -1
  449. package/dist/components/ic-data-row.js +21 -21
  450. package/dist/components/ic-data-row.js.map +1 -1
  451. package/dist/components/ic-dialog.js +60 -61
  452. package/dist/components/ic-dialog.js.map +1 -1
  453. package/dist/components/ic-footer-link-group.js +19 -19
  454. package/dist/components/ic-footer-link-group.js.map +1 -1
  455. package/dist/components/ic-footer-link.js +16 -16
  456. package/dist/components/ic-footer-link.js.map +1 -1
  457. package/dist/components/ic-footer.js +19 -19
  458. package/dist/components/ic-footer.js.map +1 -1
  459. package/dist/components/ic-hero.js +25 -25
  460. package/dist/components/ic-hero.js.map +1 -1
  461. package/dist/components/ic-horizontal-scroll2.js +36 -23
  462. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  463. package/dist/components/ic-input-component-container2.js +8 -8
  464. package/dist/components/ic-input-component-container2.js.map +1 -1
  465. package/dist/components/ic-input-label2.js +8 -8
  466. package/dist/components/ic-input-label2.js.map +1 -1
  467. package/dist/components/ic-input-validation2.js +6 -6
  468. package/dist/components/ic-input-validation2.js.map +1 -1
  469. package/dist/components/ic-link2.js +20 -20
  470. package/dist/components/ic-link2.js.map +1 -1
  471. package/dist/components/ic-loading-indicator2.js +24 -24
  472. package/dist/components/ic-loading-indicator2.js.map +1 -1
  473. package/dist/components/ic-menu-item2.js +17 -17
  474. package/dist/components/ic-menu-item2.js.map +1 -1
  475. package/dist/components/ic-menu2.js +93 -95
  476. package/dist/components/ic-menu2.js.map +1 -1
  477. package/dist/components/ic-navigation-button.js +20 -20
  478. package/dist/components/ic-navigation-button.js.map +1 -1
  479. package/dist/components/ic-navigation-group.js +41 -41
  480. package/dist/components/ic-navigation-group.js.map +1 -1
  481. package/dist/components/ic-navigation-item.js +52 -52
  482. package/dist/components/ic-navigation-item.js.map +1 -1
  483. package/dist/components/ic-navigation-menu2.js +28 -28
  484. package/dist/components/ic-navigation-menu2.js.map +1 -1
  485. package/dist/components/ic-page-header.js +18 -18
  486. package/dist/components/ic-page-header.js.map +1 -1
  487. package/dist/components/ic-pagination-item2.js +11 -11
  488. package/dist/components/ic-pagination-item2.js.map +1 -1
  489. package/dist/components/ic-pagination.js +39 -39
  490. package/dist/components/ic-pagination.js.map +1 -1
  491. package/dist/components/ic-popover-menu.js +64 -64
  492. package/dist/components/ic-popover-menu.js.map +1 -1
  493. package/dist/components/ic-radio-group.js +40 -33
  494. package/dist/components/ic-radio-group.js.map +1 -1
  495. package/dist/components/ic-radio-option.js +42 -35
  496. package/dist/components/ic-radio-option.js.map +1 -1
  497. package/dist/components/ic-search-bar.js +146 -145
  498. package/dist/components/ic-search-bar.js.map +1 -1
  499. package/dist/components/ic-select.js +96 -95
  500. package/dist/components/ic-select.js.map +1 -1
  501. package/dist/components/ic-side-navigation.js +52 -46
  502. package/dist/components/ic-side-navigation.js.map +1 -1
  503. package/dist/components/ic-skeleton.js +5 -5
  504. package/dist/components/ic-skeleton.js.map +1 -1
  505. package/dist/components/ic-status-tag.js +6 -6
  506. package/dist/components/ic-status-tag.js.map +1 -1
  507. package/dist/components/ic-step.js +15 -15
  508. package/dist/components/ic-step.js.map +1 -1
  509. package/dist/components/ic-stepper.js +19 -19
  510. package/dist/components/ic-stepper.js.map +1 -1
  511. package/dist/components/ic-switch.js +21 -21
  512. package/dist/components/ic-switch.js.map +1 -1
  513. package/dist/components/ic-tab-context.js +28 -34
  514. package/dist/components/ic-tab-context.js.map +1 -1
  515. package/dist/components/ic-tab-group.js +3 -3
  516. package/dist/components/ic-tab-group.js.map +1 -1
  517. package/dist/components/ic-tab-panel.js +4 -4
  518. package/dist/components/ic-tab-panel.js.map +1 -1
  519. package/dist/components/ic-tab.js +17 -17
  520. package/dist/components/ic-tab.js.map +1 -1
  521. package/dist/components/ic-text-field2.js +83 -83
  522. package/dist/components/ic-text-field2.js.map +1 -1
  523. package/dist/components/ic-theme.js.map +1 -1
  524. package/dist/components/ic-toast-region.js +12 -12
  525. package/dist/components/ic-toast-region.js.map +1 -1
  526. package/dist/components/ic-toast.js +62 -62
  527. package/dist/components/ic-toast.js.map +1 -1
  528. package/dist/components/ic-tooltip2.js +26 -26
  529. package/dist/components/ic-tooltip2.js.map +1 -1
  530. package/dist/components/ic-top-navigation.js +52 -49
  531. package/dist/components/ic-top-navigation.js.map +1 -1
  532. package/dist/components/ic-typography2.js +14 -14
  533. package/dist/components/ic-typography2.js.map +1 -1
  534. package/dist/core/core.esm.js +1 -1
  535. package/dist/core/core.esm.js.map +1 -1
  536. package/dist/core/{p-f0714432.entry.js → p-060c7917.entry.js} +2 -2
  537. package/dist/core/p-060c7917.entry.js.map +1 -0
  538. package/dist/core/p-0738d6e3.entry.js +2 -0
  539. package/dist/core/p-0738d6e3.entry.js.map +1 -0
  540. package/dist/core/{p-31ccdd50.entry.js → p-08870e30.entry.js} +2 -2
  541. package/dist/core/p-08870e30.entry.js.map +1 -0
  542. package/dist/core/{p-8911656b.entry.js → p-0b05b2b9.entry.js} +2 -2
  543. package/dist/core/{p-8911656b.entry.js.map → p-0b05b2b9.entry.js.map} +1 -1
  544. package/dist/core/{p-da4c1409.entry.js → p-0b3e5ba2.entry.js} +2 -2
  545. package/dist/core/p-0b3e5ba2.entry.js.map +1 -0
  546. package/dist/core/{p-79914e0c.entry.js → p-0cc2442d.entry.js} +2 -2
  547. package/dist/core/{p-79914e0c.entry.js.map → p-0cc2442d.entry.js.map} +1 -1
  548. package/dist/core/{p-2e051e1e.entry.js → p-0d6ee2ae.entry.js} +2 -2
  549. package/dist/core/p-0d6ee2ae.entry.js.map +1 -0
  550. package/dist/core/{p-f381e93f.entry.js → p-0dcfcf8c.entry.js} +2 -2
  551. package/dist/core/p-0dcfcf8c.entry.js.map +1 -0
  552. package/dist/core/{p-97fd0cc1.entry.js → p-12287f17.entry.js} +2 -2
  553. package/dist/core/p-12287f17.entry.js.map +1 -0
  554. package/dist/core/{p-ef91c17e.entry.js → p-1a7d6eca.entry.js} +2 -2
  555. package/dist/core/p-1a7d6eca.entry.js.map +1 -0
  556. package/dist/core/{p-84c8c4c7.entry.js → p-21cd7e76.entry.js} +2 -2
  557. package/dist/core/{p-84c8c4c7.entry.js.map → p-21cd7e76.entry.js.map} +1 -1
  558. package/dist/core/p-22e151f8.entry.js +2 -0
  559. package/dist/core/p-22e151f8.entry.js.map +1 -0
  560. package/dist/core/{p-c0333310.entry.js → p-2a4a7e63.entry.js} +2 -2
  561. package/dist/core/p-2a4a7e63.entry.js.map +1 -0
  562. package/dist/core/{p-bad10f6c.entry.js → p-2a55f42e.entry.js} +2 -2
  563. package/dist/core/p-2a55f42e.entry.js.map +1 -0
  564. package/dist/core/p-36115f6a.entry.js +2 -0
  565. package/dist/core/p-36115f6a.entry.js.map +1 -0
  566. package/dist/core/{p-ca6820dc.entry.js → p-38ac1d7a.entry.js} +2 -2
  567. package/dist/core/p-38ac1d7a.entry.js.map +1 -0
  568. package/dist/core/p-50f253b2.entry.js +2 -0
  569. package/dist/core/p-50f253b2.entry.js.map +1 -0
  570. package/dist/core/{p-820e4c17.entry.js → p-51d4c05c.entry.js} +2 -2
  571. package/dist/core/{p-820e4c17.entry.js.map → p-51d4c05c.entry.js.map} +1 -1
  572. package/dist/core/{p-5fcd965f.entry.js → p-5367574a.entry.js} +2 -2
  573. package/dist/core/p-5367574a.entry.js.map +1 -0
  574. package/dist/core/p-55cb196e.entry.js +2 -0
  575. package/dist/core/p-55cb196e.entry.js.map +1 -0
  576. package/dist/core/{p-4a385752.js → p-5dd0b02e.js} +2 -2
  577. package/dist/core/{p-4a385752.js.map → p-5dd0b02e.js.map} +1 -1
  578. package/dist/core/{p-b35a9909.entry.js → p-6068e3f4.entry.js} +2 -2
  579. package/dist/core/p-6068e3f4.entry.js.map +1 -0
  580. package/dist/core/{p-68308ecd.entry.js → p-705aadd0.entry.js} +2 -2
  581. package/dist/core/p-705aadd0.entry.js.map +1 -0
  582. package/dist/core/{p-aeef3c9d.entry.js → p-70c4e8d4.entry.js} +2 -2
  583. package/dist/core/p-70c4e8d4.entry.js.map +1 -0
  584. package/dist/core/p-8915a04d.entry.js +2 -0
  585. package/dist/core/p-8915a04d.entry.js.map +1 -0
  586. package/dist/core/p-8c5ba72e.entry.js +2 -0
  587. package/dist/core/p-8c5ba72e.entry.js.map +1 -0
  588. package/dist/core/{p-97286148.entry.js → p-9775acc5.entry.js} +2 -2
  589. package/dist/core/p-9775acc5.entry.js.map +1 -0
  590. package/dist/core/{p-a9de9aba.entry.js → p-a600e5d8.entry.js} +2 -2
  591. package/dist/core/{p-a9de9aba.entry.js.map → p-a600e5d8.entry.js.map} +1 -1
  592. package/dist/core/{p-dbe06c3b.entry.js → p-a941124d.entry.js} +2 -2
  593. package/dist/core/p-a941124d.entry.js.map +1 -0
  594. package/dist/core/{p-e3e6308b.entry.js → p-add90b68.entry.js} +2 -2
  595. package/dist/core/{p-31e80ccb.entry.js → p-b1c3f213.entry.js} +2 -2
  596. package/dist/core/p-b1c3f213.entry.js.map +1 -0
  597. package/dist/core/p-b6a1d9b6.entry.js +2 -0
  598. package/dist/core/p-b6a1d9b6.entry.js.map +1 -0
  599. package/dist/core/{p-dfd31e28.entry.js → p-b6e97f47.entry.js} +2 -2
  600. package/dist/core/p-b6e97f47.entry.js.map +1 -0
  601. package/dist/core/{p-311c38b3.entry.js → p-ba437d36.entry.js} +2 -2
  602. package/dist/core/p-ba437d36.entry.js.map +1 -0
  603. package/dist/core/{p-b03bd9c6.entry.js → p-bc161e06.entry.js} +2 -2
  604. package/dist/core/p-bc161e06.entry.js.map +1 -0
  605. package/dist/core/p-bd2f15e6.entry.js +2 -0
  606. package/dist/core/p-bd2f15e6.entry.js.map +1 -0
  607. package/dist/core/{p-2ec49a7e.entry.js → p-bd660ff4.entry.js} +2 -2
  608. package/dist/core/{p-2ec49a7e.entry.js.map → p-bd660ff4.entry.js.map} +1 -1
  609. package/dist/core/{p-3ce0aa02.entry.js → p-c0717294.entry.js} +2 -2
  610. package/dist/core/p-c0717294.entry.js.map +1 -0
  611. package/dist/core/{p-617950f8.entry.js → p-c2b0c19b.entry.js} +2 -2
  612. package/dist/core/p-c2b0c19b.entry.js.map +1 -0
  613. package/dist/core/{p-ecdcae46.entry.js → p-c51cfe25.entry.js} +2 -2
  614. package/dist/core/p-c51cfe25.entry.js.map +1 -0
  615. package/dist/core/p-c5dd2bae.entry.js +2 -0
  616. package/dist/core/p-c5dd2bae.entry.js.map +1 -0
  617. package/dist/core/{p-bda4414e.entry.js → p-c7eff761.entry.js} +2 -2
  618. package/dist/core/p-c7eff761.entry.js.map +1 -0
  619. package/dist/core/{p-ad6c4c02.entry.js → p-d04640ac.entry.js} +2 -2
  620. package/dist/core/p-d04640ac.entry.js.map +1 -0
  621. package/dist/core/{p-a74b8476.entry.js → p-d6ee986d.entry.js} +2 -2
  622. package/dist/core/p-d6ee986d.entry.js.map +1 -0
  623. package/dist/core/{p-249af8ab.entry.js → p-d824684d.entry.js} +2 -2
  624. package/dist/core/{p-249af8ab.entry.js.map → p-d824684d.entry.js.map} +1 -1
  625. package/dist/core/{p-6c76c6ba.entry.js → p-dd083d96.entry.js} +2 -2
  626. package/dist/core/p-dd083d96.entry.js.map +1 -0
  627. package/dist/core/{p-323bce82.entry.js → p-e360b5a8.entry.js} +2 -2
  628. package/dist/core/p-e360b5a8.entry.js.map +1 -0
  629. package/dist/core/{p-0d325b4c.entry.js → p-e69f71c7.entry.js} +2 -2
  630. package/dist/core/p-e69f71c7.entry.js.map +1 -0
  631. package/dist/core/{p-551986d1.entry.js → p-f81ecfc2.entry.js} +2 -2
  632. package/dist/core/p-f81ecfc2.entry.js.map +1 -0
  633. package/dist/core/p-fdc1cfa2.entry.js +2 -0
  634. package/dist/core/p-fdc1cfa2.entry.js.map +1 -0
  635. package/dist/esm/core.js +1 -1
  636. package/dist/esm/{helpers-8e57082b.js → helpers-85903813.js} +2 -2
  637. package/dist/esm/{helpers-8e57082b.js.map → helpers-85903813.js.map} +1 -1
  638. package/dist/esm/ic-alert.entry.js +9 -9
  639. package/dist/esm/ic-alert.entry.js.map +1 -1
  640. package/dist/esm/ic-back-to-top.entry.js +3 -3
  641. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  642. package/dist/esm/ic-breadcrumb-group.entry.js +26 -20
  643. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  644. package/dist/esm/ic-breadcrumb.entry.js +6 -6
  645. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  646. package/dist/esm/ic-button_3.entry.js +106 -72
  647. package/dist/esm/ic-button_3.entry.js.map +1 -1
  648. package/dist/esm/ic-card.entry.js +41 -41
  649. package/dist/esm/ic-card.entry.js.map +1 -1
  650. package/dist/esm/ic-checkbox-group.entry.js +18 -18
  651. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  652. package/dist/esm/ic-checkbox.entry.js +33 -30
  653. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  654. package/dist/esm/ic-chip.entry.js +16 -16
  655. package/dist/esm/ic-chip.entry.js.map +1 -1
  656. package/dist/esm/ic-data-row.entry.js +21 -21
  657. package/dist/esm/ic-data-row.entry.js.map +1 -1
  658. package/dist/esm/ic-dialog.entry.js +55 -56
  659. package/dist/esm/ic-dialog.entry.js.map +1 -1
  660. package/dist/esm/ic-divider.entry.js +1 -1
  661. package/dist/esm/ic-footer-link-group.entry.js +17 -17
  662. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  663. package/dist/esm/ic-footer-link.entry.js +15 -15
  664. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  665. package/dist/esm/ic-footer.entry.js +18 -18
  666. package/dist/esm/ic-footer.entry.js.map +1 -1
  667. package/dist/esm/ic-hero.entry.js +19 -19
  668. package/dist/esm/ic-hero.entry.js.map +1 -1
  669. package/dist/esm/ic-horizontal-scroll.entry.js +36 -23
  670. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  671. package/dist/esm/ic-input-component-container_3.entry.js +87 -89
  672. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  673. package/dist/esm/ic-input-label_2.entry.js +8 -8
  674. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  675. package/dist/esm/ic-link.entry.js +18 -18
  676. package/dist/esm/ic-link.entry.js.map +1 -1
  677. package/dist/esm/ic-menu-item.entry.js +13 -13
  678. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  679. package/dist/esm/ic-navigation-button.entry.js +16 -16
  680. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  681. package/dist/esm/ic-navigation-group.entry.js +38 -38
  682. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  683. package/dist/esm/ic-navigation-item.entry.js +43 -43
  684. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  685. package/dist/esm/ic-navigation-menu.entry.js +27 -27
  686. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  687. package/dist/esm/ic-page-header.entry.js +13 -13
  688. package/dist/esm/ic-page-header.entry.js.map +1 -1
  689. package/dist/esm/ic-pagination-item.entry.js +6 -6
  690. package/dist/esm/ic-pagination-item.entry.js.map +1 -1
  691. package/dist/esm/ic-pagination.entry.js +31 -31
  692. package/dist/esm/ic-pagination.entry.js.map +1 -1
  693. package/dist/esm/ic-popover-menu.entry.js +62 -62
  694. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  695. package/dist/esm/ic-radio-group.entry.js +36 -29
  696. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  697. package/dist/esm/ic-radio-option.entry.js +37 -30
  698. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  699. package/dist/esm/ic-search-bar.entry.js +123 -122
  700. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  701. package/dist/esm/ic-select.entry.js +68 -67
  702. package/dist/esm/ic-select.entry.js.map +1 -1
  703. package/dist/esm/ic-side-navigation.entry.js +44 -38
  704. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  705. package/dist/esm/ic-skeleton.entry.js +3 -3
  706. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  707. package/dist/esm/ic-status-tag.entry.js +4 -4
  708. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  709. package/dist/esm/ic-step.entry.js +7 -7
  710. package/dist/esm/ic-step.entry.js.map +1 -1
  711. package/dist/esm/ic-stepper.entry.js +14 -14
  712. package/dist/esm/ic-stepper.entry.js.map +1 -1
  713. package/dist/esm/ic-switch.entry.js +17 -17
  714. package/dist/esm/ic-switch.entry.js.map +1 -1
  715. package/dist/esm/ic-tab-context.entry.js +26 -32
  716. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  717. package/dist/esm/ic-tab-group.entry.js +2 -2
  718. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  719. package/dist/esm/ic-tab-panel.entry.js +2 -2
  720. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  721. package/dist/esm/ic-tab.entry.js +17 -17
  722. package/dist/esm/ic-tab.entry.js.map +1 -1
  723. package/dist/esm/ic-text-field.entry.js +54 -54
  724. package/dist/esm/ic-text-field.entry.js.map +1 -1
  725. package/dist/esm/ic-theme.entry.js +1 -1
  726. package/dist/esm/ic-theme.entry.js.map +1 -1
  727. package/dist/esm/ic-toast-region.entry.js +12 -12
  728. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  729. package/dist/esm/ic-toast.entry.js +58 -58
  730. package/dist/esm/ic-toast.entry.js.map +1 -1
  731. package/dist/esm/ic-top-navigation.entry.js +42 -40
  732. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  733. package/dist/esm/ic-typography.entry.js +12 -12
  734. package/dist/esm/ic-typography.entry.js.map +1 -1
  735. package/dist/esm/loader.js +1 -1
  736. package/dist/types/components/ic-alert/ic-alert.d.ts +12 -12
  737. package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +8 -8
  738. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +6 -6
  739. package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +15 -11
  740. package/dist/types/components/ic-button/ic-button.d.ts +58 -52
  741. package/dist/types/components/ic-card/ic-card.d.ts +32 -32
  742. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +27 -26
  743. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +13 -13
  744. package/dist/types/components/ic-chip/ic-chip.d.ts +16 -16
  745. package/dist/types/components/ic-data-row/ic-data-row.d.ts +11 -11
  746. package/dist/types/components/ic-dialog/ic-dialog.d.ts +47 -47
  747. package/dist/types/components/ic-footer/ic-footer.d.ts +20 -20
  748. package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +9 -9
  749. package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +8 -8
  750. package/dist/types/components/ic-hero/ic-hero.d.ts +24 -24
  751. package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +15 -14
  752. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +15 -15
  753. package/dist/types/components/ic-input-label/ic-input-label.d.ts +14 -14
  754. package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +8 -8
  755. package/dist/types/components/ic-link/ic-link.d.ts +8 -8
  756. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +38 -38
  757. package/dist/types/components/ic-menu/ic-menu.d.ts +63 -63
  758. package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +23 -23
  759. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +21 -21
  760. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +20 -20
  761. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +39 -39
  762. package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +14 -14
  763. package/dist/types/components/ic-page-header/ic-page-header.d.ts +19 -19
  764. package/dist/types/components/ic-pagination/ic-pagination.d.ts +26 -26
  765. package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +15 -15
  766. package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +22 -22
  767. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +19 -21
  768. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +31 -26
  769. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +105 -105
  770. package/dist/types/components/ic-select/ic-select.d.ts +86 -86
  771. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +28 -24
  772. package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +8 -8
  773. package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +8 -8
  774. package/dist/types/components/ic-step/ic-step.d.ts +24 -24
  775. package/dist/types/components/ic-stepper/ic-stepper.d.ts +17 -17
  776. package/dist/types/components/ic-switch/ic-switch.d.ts +23 -23
  777. package/dist/types/components/ic-tab/ic-tab.d.ts +16 -16
  778. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +20 -19
  779. package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +4 -4
  780. package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +6 -6
  781. package/dist/types/components/ic-text-field/ic-text-field.d.ts +102 -102
  782. package/dist/types/components/ic-theme/ic-theme.d.ts +1 -1
  783. package/dist/types/components/ic-toast/ic-toast.d.ts +26 -27
  784. package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +3 -3
  785. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +17 -17
  786. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +36 -32
  787. package/dist/types/components/ic-typography/ic-typography.d.ts +16 -16
  788. package/dist/types/components.d.ts +13 -1
  789. package/dist/types/testspec.setup.d.ts +7 -5
  790. package/hydrate/index.js +1654 -1581
  791. package/package.json +3 -3
  792. package/dist/collection/components/ic-alert/ic-alert.e2e.js.map +0 -1
  793. package/dist/collection/components/ic-alert/ic-alert.spec.js.map +0 -1
  794. package/dist/collection/components/ic-alert/ic-alert.test.a11y.js.map +0 -1
  795. package/dist/collection/components/ic-back-to-top/ic-back-to-top.e2e.js.map +0 -1
  796. package/dist/collection/components/ic-back-to-top/ic-back-to-top.spec.js.map +0 -1
  797. package/dist/collection/components/ic-back-to-top/ic-back-to-top.test.a11y.js.map +0 -1
  798. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.spec.js.map +0 -1
  799. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group-test-examples.js.map +0 -1
  800. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.e2e.js.map +0 -1
  801. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.spec.js.map +0 -1
  802. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.test.a11y.js.map +0 -1
  803. package/dist/collection/components/ic-button/ic-button.e2e.js.map +0 -1
  804. package/dist/collection/components/ic-button/ic-button.spec.js.map +0 -1
  805. package/dist/collection/components/ic-button/ic-button.test.a11y.js.map +0 -1
  806. package/dist/collection/components/ic-card/ic-card.e2e.js.map +0 -1
  807. package/dist/collection/components/ic-card/ic-card.spec.js.map +0 -1
  808. package/dist/collection/components/ic-card/ic-card.test.a11y.js.map +0 -1
  809. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.e2e.js.map +0 -1
  810. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.spec.js.map +0 -1
  811. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +0 -1
  812. package/dist/collection/components/ic-chip/ic-chip.spec.js.map +0 -1
  813. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js.map +0 -1
  814. package/dist/collection/components/ic-classification-banner/ic-classification-banner.spec.js.map +0 -1
  815. package/dist/collection/components/ic-classification-banner/ic-classification-banner.test.a11y.js.map +0 -1
  816. package/dist/collection/components/ic-data-entity/ic-data-entity.spec.js.map +0 -1
  817. package/dist/collection/components/ic-data-entity/ic-data-entity.test.a11y.js.map +0 -1
  818. package/dist/collection/components/ic-data-row/ic-data-row.spec.js.map +0 -1
  819. package/dist/collection/components/ic-data-row/ic-data-row.test.a11y.js.map +0 -1
  820. package/dist/collection/components/ic-dialog/ic-dialog.e2e.js.map +0 -1
  821. package/dist/collection/components/ic-dialog/ic-dialog.spec.js.map +0 -1
  822. package/dist/collection/components/ic-dialog/ic-dialog.test.a11y.js.map +0 -1
  823. package/dist/collection/components/ic-divider/ic-divider.spec.js.map +0 -1
  824. package/dist/collection/components/ic-footer/ic-footer.e2e.js.map +0 -1
  825. package/dist/collection/components/ic-footer/ic-footer.spec.js.map +0 -1
  826. package/dist/collection/components/ic-footer/ic-footer.test.a11y.js.map +0 -1
  827. package/dist/collection/components/ic-footer-link/ic-footer-link.spec.js.map +0 -1
  828. package/dist/collection/components/ic-footer-link/ic-footer-link.test.a11y.js.map +0 -1
  829. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.spec.js.map +0 -1
  830. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +0 -1
  831. package/dist/collection/components/ic-hero/ic-hero.spec.js.map +0 -1
  832. package/dist/collection/components/ic-hero/ic-hero.test.a11y.js.map +0 -1
  833. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.spec.js.map +0 -1
  834. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js.map +0 -1
  835. package/dist/collection/components/ic-input-component-container/ic-input-component-container.spec.js.map +0 -1
  836. package/dist/collection/components/ic-input-container/ic-input-container.spec.js.map +0 -1
  837. package/dist/collection/components/ic-input-label/ic-input-label.spec.js.map +0 -1
  838. package/dist/collection/components/ic-input-validation/ic-input-validation.spec.js.map +0 -1
  839. package/dist/collection/components/ic-link/ic-link.spec.js.map +0 -1
  840. package/dist/collection/components/ic-link/ic-link.test.a11y.js.map +0 -1
  841. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.e2e.js.map +0 -1
  842. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.spec.js.map +0 -1
  843. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.test.a11y.js.map +0 -1
  844. package/dist/collection/components/ic-menu/ic-menu.spec.js.map +0 -1
  845. package/dist/collection/components/ic-menu-group/ic-menu-group.spec.js.map +0 -1
  846. package/dist/collection/components/ic-menu-item/ic-menu-item.spec.js.map +0 -1
  847. package/dist/collection/components/ic-navigation-button/ic-navigation-button.spec.js.map +0 -1
  848. package/dist/collection/components/ic-navigation-group/ic-navigation-group.spec.js.map +0 -1
  849. package/dist/collection/components/ic-navigation-group/ic-navigation-group.test.a11y.js.map +0 -1
  850. package/dist/collection/components/ic-navigation-item/ic-navigation-item.spec.js.map +0 -1
  851. package/dist/collection/components/ic-navigation-item/ic-navigation-item.test.a11y.js.map +0 -1
  852. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.e2e.js.map +0 -1
  853. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.spec.js.map +0 -1
  854. package/dist/collection/components/ic-page-header/ic-page-header.e2e.js.map +0 -1
  855. package/dist/collection/components/ic-page-header/ic-page-header.spec.js.map +0 -1
  856. package/dist/collection/components/ic-page-header/ic-page-header.test.a11y.js.map +0 -1
  857. package/dist/collection/components/ic-pagination/ic-pagination.e2e.js.map +0 -1
  858. package/dist/collection/components/ic-pagination/ic-pagination.spec.js.map +0 -1
  859. package/dist/collection/components/ic-pagination/ic-pagination.test.a11y.js.map +0 -1
  860. package/dist/collection/components/ic-popover-menu/ic-popover-menu.e2e.js.map +0 -1
  861. package/dist/collection/components/ic-popover-menu/ic-popover-menu.spec.js.map +0 -1
  862. package/dist/collection/components/ic-popover-menu/ic-popover-menu.test.a11y.js.map +0 -1
  863. package/dist/collection/components/ic-radio-group/ic-radio-group.e2e.js.map +0 -1
  864. package/dist/collection/components/ic-radio-group/ic-radio-group.spec.js.map +0 -1
  865. package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +0 -1
  866. package/dist/collection/components/ic-search-bar/ic-search-bar.e2e.js.map +0 -1
  867. package/dist/collection/components/ic-search-bar/ic-search-bar.spec.js.map +0 -1
  868. package/dist/collection/components/ic-search-bar/ic-search-bar.test.a11y.js.map +0 -1
  869. package/dist/collection/components/ic-section-container/ic-section-container.spec.js.map +0 -1
  870. package/dist/collection/components/ic-select/ic-select.e2e.js.map +0 -1
  871. package/dist/collection/components/ic-select/ic-select.spec.js.map +0 -1
  872. package/dist/collection/components/ic-select/ic-select.test.a11y.js.map +0 -1
  873. package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js.map +0 -1
  874. package/dist/collection/components/ic-side-navigation/ic-side-navigation.e2e.js.map +0 -1
  875. package/dist/collection/components/ic-side-navigation/ic-side-navigation.spec.js.map +0 -1
  876. package/dist/collection/components/ic-side-navigation/ic-side-navigation.test.a11y.js.map +0 -1
  877. package/dist/collection/components/ic-skeleton/ic-skeleton.spec.js.map +0 -1
  878. package/dist/collection/components/ic-skeleton/ic-skeleton.test.a11y.js.map +0 -1
  879. package/dist/collection/components/ic-status-tag/ic-status-tag.spec.js.map +0 -1
  880. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +0 -1
  881. package/dist/collection/components/ic-step/ic-step.spec.js.map +0 -1
  882. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js.map +0 -1
  883. package/dist/collection/components/ic-stepper/ic-stepper.e2e.js.map +0 -1
  884. package/dist/collection/components/ic-stepper/ic-stepper.spec.js.map +0 -1
  885. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +0 -1
  886. package/dist/collection/components/ic-switch/ic-switch.spec.js.map +0 -1
  887. package/dist/collection/components/ic-switch/ic-switch.test.a11y.js.map +0 -1
  888. package/dist/collection/components/ic-tab/ic-tab.e2e.js.map +0 -1
  889. package/dist/collection/components/ic-tab/ic-tab.spec.js.map +0 -1
  890. package/dist/collection/components/ic-tab-context/ic-tab-context.e2e.js.map +0 -1
  891. package/dist/collection/components/ic-tab-context/ic-tab-context.spec.js.map +0 -1
  892. package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +0 -1
  893. package/dist/collection/components/ic-tab-panel/ic-tab-panel.spec.js.map +0 -1
  894. package/dist/collection/components/ic-text-field/ic-text-field.e2e.js.map +0 -1
  895. package/dist/collection/components/ic-text-field/ic-text-field.input.spec.js.map +0 -1
  896. package/dist/collection/components/ic-text-field/ic-text-field.test.a11y.js.map +0 -1
  897. package/dist/collection/components/ic-text-field/ic-text-field.textarea.spec.js.map +0 -1
  898. package/dist/collection/components/ic-theme/ic-theme.e2e.js.map +0 -1
  899. package/dist/collection/components/ic-theme/ic-theme.spec.js.map +0 -1
  900. package/dist/collection/components/ic-toast/ic-toast.e2e.js.map +0 -1
  901. package/dist/collection/components/ic-toast/ic-toast.spec.js.map +0 -1
  902. package/dist/collection/components/ic-toast/ic-toast.test.a11y.js.map +0 -1
  903. package/dist/collection/components/ic-toast-region/ic-toast-region.spec.js.map +0 -1
  904. package/dist/collection/components/ic-tooltip/ic-tooltip.e2e.js.map +0 -1
  905. package/dist/collection/components/ic-tooltip/ic-tooltip.spec.js.map +0 -1
  906. package/dist/collection/components/ic-tooltip/ic-tooltip.test.a11y.js.map +0 -1
  907. package/dist/collection/components/ic-top-navigation/ic-top-navigation.e2e.js.map +0 -1
  908. package/dist/collection/components/ic-top-navigation/ic-top-navigation.mobile.e2e.js.map +0 -1
  909. package/dist/collection/components/ic-top-navigation/ic-top-navigation.spec.js.map +0 -1
  910. package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +0 -1
  911. package/dist/collection/components/ic-typography/ic-typography.e2e.js.map +0 -1
  912. package/dist/collection/components/ic-typography/ic-typography.spec.js.map +0 -1
  913. package/dist/collection/components/ic-typography/ic-typography.test.a11y.js.map +0 -1
  914. package/dist/core/p-0d325b4c.entry.js.map +0 -1
  915. package/dist/core/p-29d9fea1.entry.js +0 -2
  916. package/dist/core/p-29d9fea1.entry.js.map +0 -1
  917. package/dist/core/p-2e051e1e.entry.js.map +0 -1
  918. package/dist/core/p-3114a4b3.entry.js +0 -2
  919. package/dist/core/p-3114a4b3.entry.js.map +0 -1
  920. package/dist/core/p-311c38b3.entry.js.map +0 -1
  921. package/dist/core/p-31ccdd50.entry.js.map +0 -1
  922. package/dist/core/p-31e80ccb.entry.js.map +0 -1
  923. package/dist/core/p-323bce82.entry.js.map +0 -1
  924. package/dist/core/p-3918c27a.entry.js +0 -2
  925. package/dist/core/p-3918c27a.entry.js.map +0 -1
  926. package/dist/core/p-3ce0aa02.entry.js.map +0 -1
  927. package/dist/core/p-524557bc.entry.js +0 -2
  928. package/dist/core/p-524557bc.entry.js.map +0 -1
  929. package/dist/core/p-551986d1.entry.js.map +0 -1
  930. package/dist/core/p-57460fa3.entry.js +0 -2
  931. package/dist/core/p-57460fa3.entry.js.map +0 -1
  932. package/dist/core/p-5fcd965f.entry.js.map +0 -1
  933. package/dist/core/p-617950f8.entry.js.map +0 -1
  934. package/dist/core/p-68308ecd.entry.js.map +0 -1
  935. package/dist/core/p-6c76c6ba.entry.js.map +0 -1
  936. package/dist/core/p-97286148.entry.js.map +0 -1
  937. package/dist/core/p-97fd0cc1.entry.js.map +0 -1
  938. package/dist/core/p-a74b8476.entry.js.map +0 -1
  939. package/dist/core/p-ad6c4c02.entry.js.map +0 -1
  940. package/dist/core/p-aeef3c9d.entry.js.map +0 -1
  941. package/dist/core/p-b03bd9c6.entry.js.map +0 -1
  942. package/dist/core/p-b0685167.entry.js +0 -2
  943. package/dist/core/p-b0685167.entry.js.map +0 -1
  944. package/dist/core/p-b35a9909.entry.js.map +0 -1
  945. package/dist/core/p-bad10f6c.entry.js.map +0 -1
  946. package/dist/core/p-bda4414e.entry.js.map +0 -1
  947. package/dist/core/p-c0333310.entry.js.map +0 -1
  948. package/dist/core/p-c3f9fb1d.entry.js +0 -2
  949. package/dist/core/p-c3f9fb1d.entry.js.map +0 -1
  950. package/dist/core/p-ca6820dc.entry.js.map +0 -1
  951. package/dist/core/p-d6694b41.entry.js +0 -2
  952. package/dist/core/p-d6694b41.entry.js.map +0 -1
  953. package/dist/core/p-da4c1409.entry.js.map +0 -1
  954. package/dist/core/p-dbe06c3b.entry.js.map +0 -1
  955. package/dist/core/p-dfd31e28.entry.js.map +0 -1
  956. package/dist/core/p-ea233813.entry.js +0 -2
  957. package/dist/core/p-ea233813.entry.js.map +0 -1
  958. package/dist/core/p-ecdcae46.entry.js.map +0 -1
  959. package/dist/core/p-ef91c17e.entry.js.map +0 -1
  960. package/dist/core/p-f0714432.entry.js.map +0 -1
  961. package/dist/core/p-f381e93f.entry.js.map +0 -1
  962. package/dist/core/p-fd482bd7.entry.js +0 -2
  963. package/dist/core/p-fd482bd7.entry.js.map +0 -1
  964. package/dist/core/p-fe2c4009.entry.js +0 -2
  965. package/dist/core/p-fe2c4009.entry.js.map +0 -1
  966. /package/dist/collection/components/ic-alert/{ic-alert.e2e.js → test/basic/ic-alert.e2e.js} +0 -0
  967. /package/dist/collection/components/ic-back-to-top/{ic-back-to-top.test.a11y.js → test/a11y/ic-back-to-top.test.a11y.js} +0 -0
  968. /package/dist/collection/components/ic-back-to-top/{ic-back-to-top.e2e.js → test/basic/ic-back-to-top.e2e.js} +0 -0
  969. /package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group-test-examples.js → test/basic/ic-breadcrumb-group-test-examples.js} +0 -0
  970. /package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group.e2e.js → test/basic/ic-breadcrumb-group.e2e.js} +0 -0
  971. /package/dist/collection/components/ic-card/{ic-card.e2e.js → test/basic/ic-card.e2e.js} +0 -0
  972. /package/dist/collection/components/ic-checkbox-group/{ic-checkbox-group.e2e.js → test/basic/ic-checkbox-group.e2e.js} +0 -0
  973. /package/dist/collection/components/ic-footer/{ic-footer.e2e.js → test/basic/ic-footer.e2e.js} +0 -0
  974. /package/dist/collection/components/ic-loading-indicator/{ic-loading-indicator.e2e.js → test/basic/ic-loading-indicator.e2e.js} +0 -0
  975. /package/dist/collection/components/ic-navigation-menu/{ic-navigation-menu.e2e.js → test/basic/ic-navigation-menu.e2e.js} +0 -0
  976. /package/dist/collection/components/ic-page-header/{ic-page-header.e2e.js → test/basic/ic-page-header.e2e.js} +0 -0
  977. /package/dist/collection/components/ic-pagination/{ic-pagination.e2e.js → test/basic/ic-pagination.e2e.js} +0 -0
  978. /package/dist/collection/components/ic-popover-menu/{ic-popover-menu.e2e.js → test/basic/ic-popover-menu.e2e.js} +0 -0
  979. /package/dist/collection/components/ic-radio-group/{ic-radio-group.e2e.js → test/basic/ic-radio-group.e2e.js} +0 -0
  980. /package/dist/collection/components/ic-search-bar/{ic-search-bar.e2e.js → test/basic/ic-search-bar.e2e.js} +0 -0
  981. /package/dist/collection/components/ic-side-navigation/{ic-side-navigation-test-examples.js → test/basic/ic-side-navigation-test-examples.js} +0 -0
  982. /package/dist/collection/components/ic-side-navigation/{ic-side-navigation.e2e.js → test/basic/ic-side-navigation.e2e.js} +0 -0
  983. /package/dist/collection/components/ic-stepper/{ic-stepper-test-examples.js → test/basic/ic-stepper-test-examples.js} +0 -0
  984. /package/dist/collection/components/ic-stepper/{ic-stepper.e2e.js → test/basic/ic-stepper.e2e.js} +0 -0
  985. /package/dist/collection/components/ic-tab/{ic-tab.e2e.js → test/basic/ic-tab.e2e.js} +0 -0
  986. /package/dist/collection/components/ic-tab-context/{ic-tab-context.test.a11y.js → test/a11y/ic-tab-context.test.a11y.js} +0 -0
  987. /package/dist/collection/components/ic-text-field/{ic-text-field.test.a11y.js → test/a11y/ic-text-field.test.a11y.js} +0 -0
  988. /package/dist/collection/components/ic-text-field/{ic-text-field.e2e.js → test/basic/ic-text-field.e2e.js} +0 -0
  989. /package/dist/collection/components/ic-theme/{ic-theme.e2e.js → test/basic/ic-theme.e2e.js} +0 -0
  990. /package/dist/collection/components/ic-toast/{ic-toast.e2e.js → test/basic/ic-toast.e2e.js} +0 -0
  991. /package/dist/collection/components/ic-tooltip/{ic-tooltip.e2e.js → test/basic/ic-tooltip.e2e.js} +0 -0
  992. /package/dist/collection/components/ic-top-navigation/{ic-top-navigation.mobile.e2e.js → test/basic/ic-top-navigation.mobile.e2e.js} +0 -0
  993. /package/dist/core/{p-e3e6308b.entry.js.map → p-add90b68.entry.js.map} +0 -0
  994. /package/dist/types/components/ic-alert/{ic-alert.test.a11y.d.ts → test/a11y/ic-alert.test.a11y.d.ts} +0 -0
  995. /package/dist/types/components/ic-back-to-top/{ic-back-to-top.test.a11y.d.ts → test/a11y/ic-back-to-top.test.a11y.d.ts} +0 -0
  996. /package/dist/types/components/ic-breadcrumb-group/{ic-breadcrumb-group.test.a11y.d.ts → test/a11y/ic-breadcrumb-group.test.a11y.d.ts} +0 -0
  997. /package/dist/types/components/ic-breadcrumb-group/{ic-breadcrumb-group-test-examples.d.ts → test/basic/ic-breadcrumb-group-test-examples.d.ts} +0 -0
  998. /package/dist/types/components/ic-button/{ic-button.test.a11y.d.ts → test/a11y/ic-button.test.a11y.d.ts} +0 -0
  999. /package/dist/types/components/ic-card/{ic-card.test.a11y.d.ts → test/a11y/ic-card.test.a11y.d.ts} +0 -0
  1000. /package/dist/types/components/ic-checkbox-group/{ic-checkbox-group.test.a11y.d.ts → test/a11y/ic-checkbox-group.test.a11y.d.ts} +0 -0
  1001. /package/dist/types/components/ic-chip/{ic-chip.test.a11y.d.ts → test/a11y/ic-chip.test.a11y.d.ts} +0 -0
  1002. /package/dist/types/components/ic-classification-banner/{ic-classification-banner.test.a11y.d.ts → test/a11y/ic-classification-banner.test.a11y.d.ts} +0 -0
  1003. /package/dist/types/components/ic-data-entity/{ic-data-entity.test.a11y.d.ts → test/a11y/ic-data-entity.test.a11y.d.ts} +0 -0
  1004. /package/dist/types/components/ic-data-row/{ic-data-row.test.a11y.d.ts → test/a11y/ic-data-row.test.a11y.d.ts} +0 -0
  1005. /package/dist/types/components/ic-dialog/{ic-dialog.test.a11y.d.ts → test/a11y/ic-dialog.test.a11y.d.ts} +0 -0
  1006. /package/dist/types/components/ic-footer/{ic-footer.test.a11y.d.ts → test/a11y/ic-footer.test.a11y.d.ts} +0 -0
  1007. /package/dist/types/components/ic-footer-link/{ic-footer-link.test.a11y.d.ts → test/a11y/ic-footer-link.test.a11y.d.ts} +0 -0
  1008. /package/dist/types/components/ic-footer-link-group/{ic-footer-link-group.test.a11y.d.ts → test/a11y/ic-footer-link-group.test.a11y.d.ts} +0 -0
  1009. /package/dist/types/components/ic-hero/{ic-hero.test.a11y.d.ts → test/a11y/ic-hero.test.a11y.d.ts} +0 -0
  1010. /package/dist/types/components/ic-horizontal-scroll/{ic-horizontal-scroll.test.a11y.d.ts → test/a11y/ic-horizontal-scroll.test.a11y.d.ts} +0 -0
  1011. /package/dist/types/components/ic-link/{ic-link.test.a11y.d.ts → test/a11y/ic-link.test.a11y.d.ts} +0 -0
  1012. /package/dist/types/components/ic-loading-indicator/{ic-loading-indicator.test.a11y.d.ts → test/a11y/ic-loading-indicator.test.a11y.d.ts} +0 -0
  1013. /package/dist/types/components/ic-navigation-group/{ic-navigation-group.test.a11y.d.ts → test/a11y/ic-navigation-group.test.a11y.d.ts} +0 -0
  1014. /package/dist/types/components/ic-navigation-item/{ic-navigation-item.test.a11y.d.ts → test/a11y/ic-navigation-item.test.a11y.d.ts} +0 -0
  1015. /package/dist/types/components/ic-page-header/{ic-page-header.test.a11y.d.ts → test/a11y/ic-page-header.test.a11y.d.ts} +0 -0
  1016. /package/dist/types/components/ic-pagination/{ic-pagination.test.a11y.d.ts → test/a11y/ic-pagination.test.a11y.d.ts} +0 -0
  1017. /package/dist/types/components/ic-popover-menu/{ic-popover-menu.test.a11y.d.ts → test/a11y/ic-popover-menu.test.a11y.d.ts} +0 -0
  1018. /package/dist/types/components/ic-radio-group/{ic-radio-group.test.a11y.d.ts → test/a11y/ic-radio-group.test.a11y.d.ts} +0 -0
  1019. /package/dist/types/components/ic-search-bar/{ic-search-bar.test.a11y.d.ts → test/a11y/ic-search-bar.test.a11y.d.ts} +0 -0
  1020. /package/dist/types/components/ic-select/{ic-select.test.a11y.d.ts → test/a11y/ic-select.test.a11y.d.ts} +0 -0
  1021. /package/dist/types/components/ic-side-navigation/{ic-side-navigation.test.a11y.d.ts → test/a11y/ic-side-navigation.test.a11y.d.ts} +0 -0
  1022. /package/dist/types/components/ic-side-navigation/{ic-side-navigation-test-examples.d.ts → test/basic/ic-side-navigation-test-examples.d.ts} +0 -0
  1023. /package/dist/types/components/ic-skeleton/{ic-skeleton.test.a11y.d.ts → test/a11y/ic-skeleton.test.a11y.d.ts} +0 -0
  1024. /package/dist/types/components/ic-status-tag/{ic-status-tag.test.a11y.d.ts → test/a11y/ic-status-tag.test.a11y.d.ts} +0 -0
  1025. /package/dist/types/components/ic-stepper/{ic-stepper.test.a11y.d.ts → test/a11y/ic-stepper.test.a11y.d.ts} +0 -0
  1026. /package/dist/types/components/ic-stepper/{ic-stepper-test-examples.d.ts → test/basic/ic-stepper-test-examples.d.ts} +0 -0
  1027. /package/dist/types/components/ic-switch/{ic-switch.test.a11y.d.ts → test/a11y/ic-switch.test.a11y.d.ts} +0 -0
  1028. /package/dist/types/components/ic-tab-context/{ic-tab-context.test.a11y.d.ts → test/a11y/ic-tab-context.test.a11y.d.ts} +0 -0
  1029. /package/dist/types/components/ic-text-field/{ic-text-field.test.a11y.d.ts → test/a11y/ic-text-field.test.a11y.d.ts} +0 -0
  1030. /package/dist/types/components/ic-toast/{ic-toast.test.a11y.d.ts → test/a11y/ic-toast.test.a11y.d.ts} +0 -0
  1031. /package/dist/types/components/ic-tooltip/{ic-tooltip.test.a11y.d.ts → test/a11y/ic-tooltip.test.a11y.d.ts} +0 -0
  1032. /package/dist/types/components/ic-top-navigation/{ic-top-navigation.test.a11y.d.ts → test/a11y/ic-top-navigation.test.a11y.d.ts} +0 -0
  1033. /package/dist/types/components/ic-typography/{ic-typography.test.a11y.d.ts → test/a11y/ic-typography.test.a11y.d.ts} +0 -0
@@ -20,33 +20,53 @@ export class Toast {
20
20
  this.timerProgress -=
21
21
  (AUTO_DISMISS_TIMER_REFRESH_RATE_MS / this.autoDismissTimeout) * 100;
22
22
  };
23
+ this.timerProgress = 100;
24
+ this.visible = false;
25
+ this.autoDismissTimeout = 5000;
26
+ this.dismissButtonAriaLabel = "dismiss";
27
+ this.dismissMode = "manual";
23
28
  this.heading = undefined;
24
- this.variant = undefined;
25
29
  this.message = undefined;
26
- this.dismissMode = "manual";
27
- this.autoDismissTimeout = 5000;
28
30
  this.neutralIconAriaLabel = undefined;
29
- this.dismissButtonAriaLabel = "dismiss";
30
- this.visible = false;
31
- this.timerProgress = 100;
31
+ this.variant = undefined;
32
32
  }
33
- /**
34
- * Used to display the individual toast
35
- * @returns The element that previously had focus before the toast appeared
36
- */
37
- async setVisible() {
38
- if (!this.visible)
39
- this.visible = true;
40
- if (!this.isManual) {
41
- this.dismissTimeout = window.setTimeout(this.dismissAction, this.autoDismissTimeout);
42
- this.timerRefreshInterval = window.setInterval(this.handleProgressChange, AUTO_DISMISS_TIMER_REFRESH_RATE_MS);
43
- return null;
33
+ disconnectedCallback() {
34
+ window.clearTimeout(this.dismissTimeout);
35
+ window.clearInterval(this.timerRefreshInterval);
36
+ }
37
+ componentWillLoad() {
38
+ var _a, _b;
39
+ this.handleLongText(this.heading.length > TOAST_HEADING_CHAR_LIMIT, ((_a = this.message) === null || _a === void 0 ? void 0 : _a.length) > TOAST_MESSAGE_CHAR_LIMIT);
40
+ if (this.autoDismissTimeout < 5000)
41
+ this.autoDismissTimeout = 5000;
42
+ if (isSlotUsed(this.el, "action"))
43
+ this.dismissMode = "manual";
44
+ this.isManual = this.dismissMode === "manual";
45
+ if (isSlotUsed(this.el, "neutral-icon"))
46
+ this.variant = "neutral";
47
+ if (this.variant === "neutral") {
48
+ this.neutralVariantLabel =
49
+ (_b = this.neutralIconAriaLabel) !== null && _b !== void 0 ? _b : VARIANT_ICONS[this.variant].ariaLabel;
44
50
  }
45
- else {
46
- window.setTimeout(() => this.interactiveElements[0].setFocus(), 200);
47
- return document.activeElement;
51
+ if (this.isManual) {
52
+ this.el.setAttribute("aria-label", this.variant
53
+ ? this.neutralVariantLabel || VARIANT_ICONS[this.variant].ariaLabel
54
+ : this.heading);
55
+ (this.variant || this.message) &&
56
+ this.el.setAttribute("aria-description", this.variant
57
+ ? `${this.heading}${this.message !== undefined ? `. ${this.message}` : ""}`
58
+ : this.message);
48
59
  }
49
60
  }
61
+ componentDidLoad() {
62
+ onComponentRequiredPropUndefined([{ prop: this.heading, propName: "heading" }], "Toast");
63
+ const actionContent = getSlot(this.el, "action");
64
+ const dismissButton = this.el.shadowRoot.querySelector("ic-button");
65
+ if (actionContent)
66
+ this.interactiveElements.push(actionContent);
67
+ if (dismissButton)
68
+ this.interactiveElements.push(dismissButton);
69
+ }
50
70
  handleDismiss() {
51
71
  this.visible = false;
52
72
  clearInterval(this.timerRefreshInterval);
@@ -81,6 +101,23 @@ export class Toast {
81
101
  }
82
102
  }
83
103
  }
104
+ /**
105
+ * Used to display the individual toast
106
+ * @returns The element that previously had focus before the toast appeared
107
+ */
108
+ async setVisible() {
109
+ if (!this.visible)
110
+ this.visible = true;
111
+ if (!this.isManual) {
112
+ this.dismissTimeout = window.setTimeout(this.dismissAction, this.autoDismissTimeout);
113
+ this.timerRefreshInterval = window.setInterval(this.handleProgressChange, AUTO_DISMISS_TIMER_REFRESH_RATE_MS);
114
+ return null;
115
+ }
116
+ else {
117
+ window.setTimeout(() => this.interactiveElements[0].setFocus(), 200);
118
+ return document.activeElement;
119
+ }
120
+ }
84
121
  handleLongText(headingTooLong, messageTooLong) {
85
122
  if (messageTooLong || headingTooLong) {
86
123
  console.error(`Too many characters in toast ${headingTooLong ? "heading" : ""}${headingTooLong && messageTooLong ? " and " : ""}${messageTooLong ? "message" : ""}. Refer to character limits specified in the prop description`);
@@ -109,43 +146,6 @@ export class Toast {
109
146
  return !!this.el.shadowRoot.activeElement;
110
147
  return document.activeElement === targetEl;
111
148
  }
112
- componentWillLoad() {
113
- var _a, _b;
114
- this.handleLongText(this.heading.length > TOAST_HEADING_CHAR_LIMIT, ((_a = this.message) === null || _a === void 0 ? void 0 : _a.length) > TOAST_MESSAGE_CHAR_LIMIT);
115
- if (this.autoDismissTimeout < 5000)
116
- this.autoDismissTimeout = 5000;
117
- if (isSlotUsed(this.el, "action"))
118
- this.dismissMode = "manual";
119
- this.isManual = this.dismissMode === "manual";
120
- if (isSlotUsed(this.el, "neutral-icon"))
121
- this.variant = "neutral";
122
- if (this.variant === "neutral") {
123
- this.neutralVariantLabel =
124
- (_b = this.neutralIconAriaLabel) !== null && _b !== void 0 ? _b : VARIANT_ICONS[this.variant].ariaLabel;
125
- }
126
- if (this.isManual) {
127
- this.el.setAttribute("aria-label", this.variant
128
- ? this.neutralVariantLabel || VARIANT_ICONS[this.variant].ariaLabel
129
- : this.heading);
130
- (this.variant || this.message) &&
131
- this.el.setAttribute("aria-description", this.variant
132
- ? `${this.heading}${this.message !== undefined ? `. ${this.message}` : ""}`
133
- : this.message);
134
- }
135
- }
136
- componentDidLoad() {
137
- onComponentRequiredPropUndefined([{ prop: this.heading, propName: "heading" }], "Toast");
138
- const actionContent = getSlot(this.el, "action");
139
- const dismissButton = this.el.shadowRoot.querySelector("ic-button");
140
- if (actionContent)
141
- this.interactiveElements.push(actionContent);
142
- if (dismissButton)
143
- this.interactiveElements.push(dismissButton);
144
- }
145
- disconnectedCallback() {
146
- window.clearTimeout(this.dismissTimeout);
147
- window.clearInterval(this.timerRefreshInterval);
148
- }
149
149
  render() {
150
150
  const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
151
151
  return (h(Host, { class: { ["hidden"]: !visible }, role: isManual ? "dialog" : "status" }, h("div", { class: "container" }, variant && visible && (h("div", { class: "toast-icon-container" }, h("div", { class: {
@@ -170,46 +170,25 @@ export class Toast {
170
170
  }
171
171
  static get properties() {
172
172
  return {
173
- "heading": {
174
- "type": "string",
175
- "mutable": false,
176
- "complexType": {
177
- "original": "string",
178
- "resolved": "string",
179
- "references": {}
180
- },
181
- "required": true,
182
- "optional": false,
183
- "docs": {
184
- "tags": [],
185
- "text": "The title to display at the start of the toast. (NOTE: Should be no more than `70` characters)"
186
- },
187
- "attribute": "heading",
188
- "reflect": false
189
- },
190
- "variant": {
191
- "type": "string",
173
+ "autoDismissTimeout": {
174
+ "type": "number",
192
175
  "mutable": true,
193
176
  "complexType": {
194
- "original": "IcStatusVariants",
195
- "resolved": "\"error\" | \"info\" | \"neutral\" | \"success\" | \"warning\"",
196
- "references": {
197
- "IcStatusVariants": {
198
- "location": "import",
199
- "path": "../../utils/types"
200
- }
201
- }
177
+ "original": "number",
178
+ "resolved": "number",
179
+ "references": {}
202
180
  },
203
181
  "required": false,
204
182
  "optional": true,
205
183
  "docs": {
206
184
  "tags": [],
207
- "text": "The variant of the toast being rendered"
185
+ "text": "If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS)\n(NOTE: Has a minimum value of `5000ms`)"
208
186
  },
209
- "attribute": "variant",
210
- "reflect": false
187
+ "attribute": "auto-dismiss-timeout",
188
+ "reflect": false,
189
+ "defaultValue": "5000"
211
190
  },
212
- "message": {
191
+ "dismissButtonAriaLabel": {
213
192
  "type": "string",
214
193
  "mutable": false,
215
194
  "complexType": {
@@ -221,10 +200,11 @@ export class Toast {
221
200
  "optional": true,
222
201
  "docs": {
223
202
  "tags": [],
224
- "text": "The main body message of the toast. (NOTE: Should be no more than `140` characters)"
203
+ "text": "If toast can be manually dismissed, this prop sets a custom aria-label for the ic-button component"
225
204
  },
226
- "attribute": "message",
227
- "reflect": false
205
+ "attribute": "dismiss-button-aria-label",
206
+ "reflect": false,
207
+ "defaultValue": "\"dismiss\""
228
208
  },
229
209
  "dismissMode": {
230
210
  "type": "string",
@@ -249,23 +229,39 @@ export class Toast {
249
229
  "reflect": false,
250
230
  "defaultValue": "\"manual\""
251
231
  },
252
- "autoDismissTimeout": {
253
- "type": "number",
254
- "mutable": true,
232
+ "heading": {
233
+ "type": "string",
234
+ "mutable": false,
255
235
  "complexType": {
256
- "original": "number",
257
- "resolved": "number",
236
+ "original": "string",
237
+ "resolved": "string",
238
+ "references": {}
239
+ },
240
+ "required": true,
241
+ "optional": false,
242
+ "docs": {
243
+ "tags": [],
244
+ "text": "The title to display at the start of the toast. (NOTE: Should be no more than `70` characters)"
245
+ },
246
+ "attribute": "heading",
247
+ "reflect": false
248
+ },
249
+ "message": {
250
+ "type": "string",
251
+ "mutable": false,
252
+ "complexType": {
253
+ "original": "string",
254
+ "resolved": "string",
258
255
  "references": {}
259
256
  },
260
257
  "required": false,
261
258
  "optional": true,
262
259
  "docs": {
263
260
  "tags": [],
264
- "text": "If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS)\n(NOTE: Has a minimum value of `5000ms`)"
261
+ "text": "The main body message of the toast. (NOTE: Should be no more than `140` characters)"
265
262
  },
266
- "attribute": "auto-dismiss-timeout",
267
- "reflect": false,
268
- "defaultValue": "5000"
263
+ "attribute": "message",
264
+ "reflect": false
269
265
  },
270
266
  "neutralIconAriaLabel": {
271
267
  "type": "string",
@@ -284,30 +280,34 @@ export class Toast {
284
280
  "attribute": "neutral-icon-aria-label",
285
281
  "reflect": false
286
282
  },
287
- "dismissButtonAriaLabel": {
283
+ "variant": {
288
284
  "type": "string",
289
- "mutable": false,
285
+ "mutable": true,
290
286
  "complexType": {
291
- "original": "string",
292
- "resolved": "string",
293
- "references": {}
287
+ "original": "IcStatusVariants",
288
+ "resolved": "\"error\" | \"info\" | \"neutral\" | \"success\" | \"warning\"",
289
+ "references": {
290
+ "IcStatusVariants": {
291
+ "location": "import",
292
+ "path": "../../utils/types"
293
+ }
294
+ }
294
295
  },
295
296
  "required": false,
296
297
  "optional": true,
297
298
  "docs": {
298
299
  "tags": [],
299
- "text": "If toast can be manually dismissed, this prop sets a custom aria-label for the ic-button component"
300
+ "text": "The variant of the toast being rendered"
300
301
  },
301
- "attribute": "dismiss-button-aria-label",
302
- "reflect": false,
303
- "defaultValue": "\"dismiss\""
302
+ "attribute": "variant",
303
+ "reflect": false
304
304
  }
305
305
  };
306
306
  }
307
307
  static get states() {
308
308
  return {
309
- "visible": {},
310
- "timerProgress": {}
309
+ "timerProgress": {},
310
+ "visible": {}
311
311
  };
312
312
  }
313
313
  static get events() {
@@ -1 +1 @@
1
- {"version":3,"file":"ic-toast.js","sourceRoot":"","sources":["../../../src/components/ic-toast/ic-toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EACL,OAAO,EACP,UAAU,EACV,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,kCAAkC,GAAG,IAAI,CAAC;AAChD,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAErC;;;GAGG;AAMH,MAAM,OAAO,KAAK;;IA0ChB,wBAAmB,GAA6B,EAAE,CAAC;IAyE3C,kBAAa,GAAG,GAAS,EAAE;MACjC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC;IAEM,yBAAoB,GAAG,GAAG,EAAE;MAClC,IAAI,CAAC,aAAa;QAChB,CAAC,kCAAkC,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACzE,CAAC,CAAC;;;;uBAzGyD,QAAQ;8BAKpB,IAAI;;kCAQjB,SAAS;mBAMxB,KAAK;yBACC,GAAG;;EAQ5B;;;KAGG;EAEH,KAAK,CAAC,UAAU;IACd,IAAI,CAAC,IAAI,CAAC,OAAO;MAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACvC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,UAAU,CACrC,IAAI,CAAC,aAAa,EAClB,IAAI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C,CACX,4BACE,KAAK,EAAC,qBAAqB,EAC3B,UAAU,EAAC,OAAO,EAClB,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,IAAI,CAAC,aAAa,GACN,CACzB,CAAC,CAAC,CAAC,CACF,iBACE,EAAE,EAAC,gBAAgB,EACnB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,IAAI,CAAC,aAAa,EAC3B,OAAO,EAAC,MAAM,EACd,UAAU,EAAE,qBAAqB,CAAC,KAAK,gBAC3B,sBAAsB,GACvB,CACd,CACG,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n State,\n} from \"@stencil/core\";\nimport closeIcon from \"../../assets/close-icon.svg\";\nimport { VARIANT_ICONS } from \"../../utils/constants\";\nimport {\n getSlot,\n isSlotUsed,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\nimport {\n IcActivationTypes,\n IcStatusVariants,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\nimport { ActionAreaElementTypes } from \"./ic-toast.types\";\n\nconst AUTO_DISMISS_TIMER_REFRESH_RATE_MS = 1000;\nconst TOAST_HEADING_CHAR_LIMIT = 70;\nconst TOAST_MESSAGE_CHAR_LIMIT = 140;\n\n/**\n * @slot action - IcButton or IcLink is placed below header and message. If used will default toast to manual `dismiss` type.\n * @slot neutral-icon - A custom neutral icon is placed on the left side of the component. If used will default toast to `neutral` variant.\n */\n@Component({\n tag: \"ic-toast\",\n styleUrl: \"ic-toast.css\",\n shadow: true,\n})\nexport class Toast {\n @Element() el: HTMLIcToastElement;\n /**\n * The title to display at the start of the toast. (NOTE: Should be no more than `70` characters)\n */\n @Prop() heading!: string;\n /**\n * The variant of the toast being rendered\n */\n @Prop({ mutable: true }) variant?: IcStatusVariants;\n /**\n * The main body message of the toast. (NOTE: Should be no more than `140` characters)\n */\n @Prop() message?: string;\n /**\n * How the toast will be dismissed. If manual will display a dismiss button.\n */\n @Prop({ mutable: true }) dismissMode?: IcActivationTypes = \"manual\";\n /**\n * If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS)\n * (NOTE: Has a minimum value of `5000ms`)\n */\n @Prop({ mutable: true }) autoDismissTimeout? = 5000;\n /**\n * Provides a custom alt-text to be announced to screen readers, if slotting a custom neutral icon\n */\n @Prop() neutralIconAriaLabel?: string;\n /**\n * If toast can be manually dismissed, this prop sets a custom aria-label for the ic-button component\n */\n @Prop() dismissButtonAriaLabel? = \"dismiss\";\n /**\n * Is emitted when the user dismisses the toast\n */\n @Event() icDismiss: EventEmitter<void>;\n\n @State() visible = false;\n @State() timerProgress = 100;\n\n dismissTimeout: number;\n timerRefreshInterval: number;\n isManual: boolean;\n interactiveElements: ActionAreaElementTypes[] = [];\n neutralVariantLabel: string;\n\n /**\n * Used to display the individual toast\n * @returns The element that previously had focus before the toast appeared\n */\n @Method()\n async setVisible() {\n if (!this.visible) this.visible = true;\n if (!this.isManual) {\n this.dismissTimeout = window.setTimeout(\n this.dismissAction,\n this.autoDismissTimeout\n );\n this.timerRefreshInterval = window.setInterval(\n this.handleProgressChange,\n AUTO_DISMISS_TIMER_REFRESH_RATE_MS\n );\n return null;\n } else {\n window.setTimeout(() => this.interactiveElements[0].setFocus(), 200);\n return document.activeElement as HTMLElement;\n }\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleDismiss(): void {\n this.visible = false;\n clearInterval(this.timerRefreshInterval);\n this.timerProgress = 100;\n }\n\n @Listen(\"keydown\", { target: \"document\" })\n handleKeyboard(ev: KeyboardEvent): void {\n if (this.isManual && this.visible) {\n switch (ev.key) {\n case \"Tab\":\n ev.preventDefault();\n this.findNextInteractiveElement(ev.shiftKey).setFocus();\n break;\n case \"Escape\":\n !ev.repeat && this.dismissAction();\n ev.stopImmediatePropagation();\n break;\n }\n }\n }\n\n @Listen(\"mouseenter\")\n @Listen(\"mouseleave\")\n handleTimer(ev: MouseEvent): void {\n if (!this.isManual) {\n switch (ev.type) {\n case \"mouseenter\":\n window.clearTimeout(this.dismissTimeout);\n window.clearInterval(this.timerRefreshInterval);\n this.timerProgress = 100;\n break;\n case \"mouseleave\":\n this.dismissTimeout = window.setTimeout(\n this.dismissAction,\n this.autoDismissTimeout\n );\n this.timerRefreshInterval = window.setInterval(\n this.handleProgressChange,\n AUTO_DISMISS_TIMER_REFRESH_RATE_MS\n );\n break;\n }\n }\n }\n\n private dismissAction = (): void => {\n this.icDismiss.emit();\n };\n\n private handleProgressChange = () => {\n this.timerProgress -=\n (AUTO_DISMISS_TIMER_REFRESH_RATE_MS / this.autoDismissTimeout) * 100;\n };\n\n private handleLongText(\n headingTooLong: boolean,\n messageTooLong?: boolean\n ): void {\n if (messageTooLong || headingTooLong) {\n console.error(\n `Too many characters in toast ${headingTooLong ? \"heading\" : \"\"}${\n headingTooLong && messageTooLong ? \" and \" : \"\"\n }${\n messageTooLong ? \"message\" : \"\"\n }. Refer to character limits specified in the prop description`\n );\n }\n }\n\n private findNextInteractiveElement(\n isBackwards: boolean\n ): ActionAreaElementTypes {\n const first = this.interactiveElements[0];\n const last = this.interactiveElements[this.interactiveElements.length - 1];\n\n const source = isBackwards ? first : last;\n const target = isBackwards ? last : first;\n if (this.isActive(source)) return target;\n\n let currentIndex: number;\n const found = this.interactiveElements.some((el, index) => {\n if (!this.isActive(el)) return false;\n currentIndex = index;\n return true;\n });\n\n if (!found) return first;\n return this.interactiveElements[currentIndex + (isBackwards ? -1 : 1)];\n }\n\n private isActive(targetEl: HTMLElement): boolean {\n if (targetEl === this.el) return !!this.el.shadowRoot.activeElement;\n return document.activeElement === targetEl;\n }\n\n componentWillLoad() {\n this.handleLongText(\n this.heading.length > TOAST_HEADING_CHAR_LIMIT,\n this.message?.length > TOAST_MESSAGE_CHAR_LIMIT\n );\n\n if (this.autoDismissTimeout < 5000) this.autoDismissTimeout = 5000;\n\n if (isSlotUsed(this.el, \"action\")) this.dismissMode = \"manual\";\n this.isManual = this.dismissMode === \"manual\";\n\n if (isSlotUsed(this.el, \"neutral-icon\")) this.variant = \"neutral\";\n if (this.variant === \"neutral\") {\n this.neutralVariantLabel =\n this.neutralIconAriaLabel ?? VARIANT_ICONS[this.variant].ariaLabel;\n }\n\n if (this.isManual) {\n this.el.setAttribute(\n \"aria-label\",\n this.variant\n ? this.neutralVariantLabel || VARIANT_ICONS[this.variant].ariaLabel\n : this.heading\n );\n (this.variant || this.message) &&\n this.el.setAttribute(\n \"aria-description\",\n this.variant\n ? `${this.heading}${\n this.message !== undefined ? `. ${this.message}` : \"\"\n }`\n : this.message\n );\n }\n }\n\n componentDidLoad() {\n onComponentRequiredPropUndefined(\n [{ prop: this.heading, propName: \"heading\" }],\n \"Toast\"\n );\n const actionContent = getSlot(this.el, \"action\") as ActionAreaElementTypes;\n const dismissButton = this.el.shadowRoot.querySelector(\"ic-button\");\n if (actionContent) this.interactiveElements.push(actionContent);\n if (dismissButton) this.interactiveElements.push(dismissButton);\n }\n\n disconnectedCallback() {\n window.clearTimeout(this.dismissTimeout);\n window.clearInterval(this.timerRefreshInterval);\n }\n\n render() {\n const {\n variant,\n heading,\n message,\n visible,\n isManual,\n dismissButtonAriaLabel,\n } = this;\n return (\n <Host\n class={{ [\"hidden\"]: !visible }}\n role={isManual ? \"dialog\" : \"status\"}\n >\n <div class=\"container\">\n {variant && visible && (\n <div class=\"toast-icon-container\">\n <div\n class={{\n [\"divider\"]: true,\n [`divider-${variant}`]: true,\n }}\n ></div>\n {variant === \"neutral\" ? (\n <slot name=\"neutral-icon\" />\n ) : (\n <span\n class=\"toast-icon\"\n innerHTML={VARIANT_ICONS[variant].icon}\n ></span>\n )}\n </div>\n )}\n <div\n class={{\n [\"toast-content\"]: true,\n [\"no-icon\"]:\n variant === \"neutral\" && !isSlotUsed(this.el, \"neutral-icon\"),\n }}\n >\n <div class=\"toast-message\">\n <ic-typography variant=\"subtitle-large\">\n {visible && <h5>{heading}</h5>}\n </ic-typography>\n {message && (\n <ic-typography variant=\"body\">\n {visible && <p>{message}</p>}\n </ic-typography>\n )}\n </div>\n {isSlotUsed(this.el, \"action\") && (\n <div class=\"toast-action-container\">\n <slot name=\"action\" />\n </div>\n )}\n </div>\n {!isManual ? (\n <ic-loading-indicator\n class=\"toast-dismiss-timer\"\n appearance=\"light\"\n size=\"icon\"\n progress={this.timerProgress}\n ></ic-loading-indicator>\n ) : (\n <ic-button\n id=\"dismiss-button\"\n innerHTML={closeIcon}\n onClick={this.dismissAction}\n variant=\"icon\"\n appearance={IcThemeForegroundEnum.Light}\n aria-label={dismissButtonAriaLabel}\n ></ic-button>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"ic-toast.js","sourceRoot":"","sources":["../../../src/components/ic-toast/ic-toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EACL,OAAO,EACP,UAAU,EACV,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,kCAAkC,GAAG,IAAI,CAAC;AAChD,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAErC;;;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;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n State,\n} from \"@stencil/core\";\nimport closeIcon from \"../../assets/close-icon.svg\";\nimport { VARIANT_ICONS } from \"../../utils/constants\";\nimport {\n getSlot,\n isSlotUsed,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\nimport {\n IcActivationTypes,\n IcStatusVariants,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\nimport { ActionAreaElementTypes } from \"./ic-toast.types\";\n\nconst AUTO_DISMISS_TIMER_REFRESH_RATE_MS = 1000;\nconst TOAST_HEADING_CHAR_LIMIT = 70;\nconst TOAST_MESSAGE_CHAR_LIMIT = 140;\n\n/**\n * @slot action - IcButton or IcLink is placed below header and message. If used will default toast to manual `dismiss` type.\n * @slot neutral-icon - A custom neutral icon is placed on the left side of the component. If used will default toast to `neutral` variant.\n */\n@Component({\n tag: \"ic-toast\",\n styleUrl: \"ic-toast.css\",\n shadow: true,\n})\nexport class Toast {\n private dismissTimeout: number;\n private interactiveElements: ActionAreaElementTypes[] = [];\n private isManual: boolean;\n private neutralVariantLabel: string;\n private timerRefreshInterval: number;\n\n @Element() el: HTMLIcToastElement;\n\n @State() timerProgress = 100;\n @State() visible = false;\n\n /**\n * If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS)\n * (NOTE: Has a minimum value of `5000ms`)\n */\n @Prop({ mutable: true }) autoDismissTimeout? = 5000;\n\n /**\n * If toast can be manually dismissed, this prop sets a custom aria-label for the ic-button component\n */\n @Prop() dismissButtonAriaLabel? = \"dismiss\";\n\n /**\n * How the toast will be dismissed. If manual will display a dismiss button.\n */\n @Prop({ mutable: true }) dismissMode?: IcActivationTypes = \"manual\";\n\n /**\n * The title to display at the start of the toast. (NOTE: Should be no more than `70` characters)\n */\n @Prop() heading!: string;\n\n /**\n * The main body message of the toast. (NOTE: Should be no more than `140` characters)\n */\n @Prop() message?: string;\n\n /**\n * Provides a custom alt-text to be announced to screen readers, if slotting a custom neutral icon\n */\n @Prop() neutralIconAriaLabel?: string;\n\n /**\n * The variant of the toast being rendered\n */\n @Prop({ mutable: true }) variant?: IcStatusVariants;\n\n /**\n * Is emitted when the user dismisses the toast\n */\n @Event() icDismiss: EventEmitter<void>;\n\n disconnectedCallback(): void {\n window.clearTimeout(this.dismissTimeout);\n window.clearInterval(this.timerRefreshInterval);\n }\n\n componentWillLoad(): void {\n this.handleLongText(\n this.heading.length > TOAST_HEADING_CHAR_LIMIT,\n this.message?.length > TOAST_MESSAGE_CHAR_LIMIT\n );\n\n if (this.autoDismissTimeout < 5000) this.autoDismissTimeout = 5000;\n\n if (isSlotUsed(this.el, \"action\")) this.dismissMode = \"manual\";\n this.isManual = this.dismissMode === \"manual\";\n\n if (isSlotUsed(this.el, \"neutral-icon\")) this.variant = \"neutral\";\n if (this.variant === \"neutral\") {\n this.neutralVariantLabel =\n this.neutralIconAriaLabel ?? VARIANT_ICONS[this.variant].ariaLabel;\n }\n\n if (this.isManual) {\n this.el.setAttribute(\n \"aria-label\",\n this.variant\n ? this.neutralVariantLabel || VARIANT_ICONS[this.variant].ariaLabel\n : this.heading\n );\n (this.variant || this.message) &&\n this.el.setAttribute(\n \"aria-description\",\n this.variant\n ? `${this.heading}${\n this.message !== undefined ? `. ${this.message}` : \"\"\n }`\n : this.message\n );\n }\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.heading, propName: \"heading\" }],\n \"Toast\"\n );\n const actionContent = getSlot(this.el, \"action\") as ActionAreaElementTypes;\n const dismissButton = this.el.shadowRoot.querySelector(\"ic-button\");\n if (actionContent) this.interactiveElements.push(actionContent);\n if (dismissButton) this.interactiveElements.push(dismissButton);\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleDismiss(): void {\n this.visible = false;\n clearInterval(this.timerRefreshInterval);\n this.timerProgress = 100;\n }\n\n @Listen(\"keydown\", { target: \"document\" })\n handleKeyboard(ev: KeyboardEvent): void {\n if (this.isManual && this.visible) {\n switch (ev.key) {\n case \"Tab\":\n ev.preventDefault();\n this.findNextInteractiveElement(ev.shiftKey).setFocus();\n break;\n case \"Escape\":\n !ev.repeat && this.dismissAction();\n ev.stopImmediatePropagation();\n break;\n }\n }\n }\n\n @Listen(\"mouseenter\")\n @Listen(\"mouseleave\")\n handleTimer(ev: MouseEvent): void {\n if (!this.isManual) {\n switch (ev.type) {\n case \"mouseenter\":\n window.clearTimeout(this.dismissTimeout);\n window.clearInterval(this.timerRefreshInterval);\n this.timerProgress = 100;\n break;\n case \"mouseleave\":\n this.dismissTimeout = window.setTimeout(\n this.dismissAction,\n this.autoDismissTimeout\n );\n this.timerRefreshInterval = window.setInterval(\n this.handleProgressChange,\n AUTO_DISMISS_TIMER_REFRESH_RATE_MS\n );\n break;\n }\n }\n }\n\n /**\n * Used to display the individual toast\n * @returns The element that previously had focus before the toast appeared\n */\n @Method()\n async setVisible(): Promise<HTMLElement> {\n if (!this.visible) this.visible = true;\n if (!this.isManual) {\n this.dismissTimeout = window.setTimeout(\n this.dismissAction,\n this.autoDismissTimeout\n );\n this.timerRefreshInterval = window.setInterval(\n this.handleProgressChange,\n AUTO_DISMISS_TIMER_REFRESH_RATE_MS\n );\n return null;\n } else {\n window.setTimeout(() => this.interactiveElements[0].setFocus(), 200);\n return document.activeElement as HTMLElement;\n }\n }\n\n private dismissAction = (): void => {\n this.icDismiss.emit();\n };\n\n private handleProgressChange = () => {\n this.timerProgress -=\n (AUTO_DISMISS_TIMER_REFRESH_RATE_MS / this.autoDismissTimeout) * 100;\n };\n\n private handleLongText(\n headingTooLong: boolean,\n messageTooLong?: boolean\n ): void {\n if (messageTooLong || headingTooLong) {\n console.error(\n `Too many characters in toast ${headingTooLong ? \"heading\" : \"\"}${\n headingTooLong && messageTooLong ? \" and \" : \"\"\n }${\n messageTooLong ? \"message\" : \"\"\n }. Refer to character limits specified in the prop description`\n );\n }\n }\n\n private findNextInteractiveElement(\n isBackwards: boolean\n ): ActionAreaElementTypes {\n const first = this.interactiveElements[0];\n const last = this.interactiveElements[this.interactiveElements.length - 1];\n\n const source = isBackwards ? first : last;\n const target = isBackwards ? last : first;\n if (this.isActive(source)) return target;\n\n let currentIndex: number;\n const found = this.interactiveElements.some((el, index) => {\n if (!this.isActive(el)) return false;\n currentIndex = index;\n return true;\n });\n\n if (!found) return first;\n return this.interactiveElements[currentIndex + (isBackwards ? -1 : 1)];\n }\n\n private isActive(targetEl: HTMLElement): boolean {\n if (targetEl === this.el) return !!this.el.shadowRoot.activeElement;\n return document.activeElement === targetEl;\n }\n\n render() {\n const {\n variant,\n heading,\n message,\n visible,\n isManual,\n dismissButtonAriaLabel,\n } = this;\n return (\n <Host\n class={{ [\"hidden\"]: !visible }}\n role={isManual ? \"dialog\" : \"status\"}\n >\n <div class=\"container\">\n {variant && visible && (\n <div class=\"toast-icon-container\">\n <div\n class={{\n [\"divider\"]: true,\n [`divider-${variant}`]: true,\n }}\n ></div>\n {variant === \"neutral\" ? (\n <slot name=\"neutral-icon\" />\n ) : (\n <span\n class=\"toast-icon\"\n innerHTML={VARIANT_ICONS[variant].icon}\n ></span>\n )}\n </div>\n )}\n <div\n class={{\n [\"toast-content\"]: true,\n [\"no-icon\"]:\n variant === \"neutral\" && !isSlotUsed(this.el, \"neutral-icon\"),\n }}\n >\n <div class=\"toast-message\">\n <ic-typography variant=\"subtitle-large\">\n {visible && <h5>{heading}</h5>}\n </ic-typography>\n {message && (\n <ic-typography variant=\"body\">\n {visible && <p>{message}</p>}\n </ic-typography>\n )}\n </div>\n {isSlotUsed(this.el, \"action\") && (\n <div class=\"toast-action-container\">\n <slot name=\"action\" />\n </div>\n )}\n </div>\n {!isManual ? (\n <ic-loading-indicator\n class=\"toast-dismiss-timer\"\n appearance=\"light\"\n size=\"icon\"\n progress={this.timerProgress}\n ></ic-loading-indicator>\n ) : (\n <ic-button\n id=\"dismiss-button\"\n innerHTML={closeIcon}\n onClick={this.dismissAction}\n variant=\"icon\"\n appearance={IcThemeForegroundEnum.Light}\n aria-label={dismissButtonAriaLabel}\n ></ic-button>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { fixture } from "@open-wc/testing-helpers";
2
2
  import { axe } from "jest-axe";
3
- import { checkShadowElementRendersCorrectly } from "../../utils/testa11y.helpers";
3
+ import { checkShadowElementRendersCorrectly } from "../../../../utils/testa11y.helpers";
4
4
  describe("ic-toast", () => {
5
5
  it("passes accessibility check for manual dismiss", async () => {
6
6
  const el = await fixture(`<ic-toast heading="Heading"></ic-toast>`);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-toast.test.a11y.js","sourceRoot":"","sources":["../../../../../src/components/ic-toast/test/a11y/ic-toast.test.a11y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,kCAAkC,EAAE,MAAM,oCAAoC,CAAC;AAExF,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;EACxB,EAAE,CAAC,+CAA+C,EAAE,KAAK,IAAI,EAAE;IAC7D,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,yCAAyC,CAAC,CAAC;IACpE,kCAAkC,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;EAC7C,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,6CAA6C,EAAE,KAAK,IAAI,EAAE;IAC3D,MAAM,EAAE,GAAG,MAAM,OAAO,CACtB,kEAAkE,CACnE,CAAC;IACF,kCAAkC,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;EAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture } from \"@open-wc/testing-helpers\";\nimport { axe } from \"jest-axe\";\nimport { checkShadowElementRendersCorrectly } from \"../../../../utils/testa11y.helpers\";\n\ndescribe(\"ic-toast\", () => {\n it(\"passes accessibility check for manual dismiss\", async () => {\n const el = await fixture(`<ic-toast heading=\"Heading\"></ic-toast>`);\n checkShadowElementRendersCorrectly(el);\n expect(await axe(el)).toHaveNoViolations();\n });\n\n it(\"passes accessibility check for auto dismiss\", async () => {\n const el = await fixture(\n `<ic-toast heading=\"Heading\" dismiss-mode=\"automatic\"></ic-toast>`\n );\n checkShadowElementRendersCorrectly(el);\n expect(await axe(el)).toHaveNoViolations();\n });\n});\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-toast.e2e.js","sourceRoot":"","sources":["../../../../../src/components/ic-toast/test/basic/ic-toast.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;EAClC,EAAE,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;IAClD,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CAAC,yCAAyC,CAAC,CAAC;IACjE,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,IAAI,KAAK,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxC,MAAM,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAErC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC5B,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAExC,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAChE,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,QAAQ,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AAC;EAClC,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,2EAA2E,EAAE,KAAK,IAAI,EAAE;IACzF,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CACnB,oEAAoE,CACrE,CAAC;IACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAC9B,UAAU,EACV,CAAC,EAAE,EAAE,EAAE,CAAE,EAAyB,CAAC,kBAAkB,CACtD,CAAC;IACF,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;EAC7B,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,2FAA2F,EAAE,KAAK,IAAI,EAAE;IACzG,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CACnB,2DAA2D,CAC5D,CAAC;IACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAClD,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;EAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from \"@stencil/core/testing\";\n\ndescribe(\"ic-toast component\", () => {\n it(\"should close on dismiss icon click\", async () => {\n const page = await newE2EPage();\n await page.setContent(`<ic-toast heading=\"Heading\"></ic-toast>`);\n await page.waitForChanges();\n\n let toast = await page.find(\"ic-toast\");\n await toast.callMethod(\"setVisible\");\n\n await page.waitForChanges();\n expect(toast).not.toHaveClass(\"hidden\");\n\n const dismissButton = await page.find(\"ic-toast >>> ic-button\");\n expect(dismissButton).not.toBeNull();\n\n await dismissButton.click();\n\n toast = await page.find(\"ic-toast\");\n expect(toast).toHaveClass(\"hidden\");\n });\n\n it(\"should focus slotted action element when opened if an action is provided\", async () => {\n const page = await newE2EPage();\n await page.setContent(\n `<ic-toast heading=\"Heading\"><ic-button id=\"button1\" slot=\"action\">Button</ic-button></ic-toast>`\n );\n await page.waitForChanges();\n\n const toast = await page.find(\"ic-toast\");\n await toast.callMethod(\"setVisible\");\n\n await page.waitForChanges();\n await page.waitForTimeout(300);\n\n const slottedButton = await page.find(\"ic-button\");\n expect(slottedButton).not.toBeNull;\n\n const activeElement = await page.evaluate(() => document.activeElement.id);\n expect(activeElement).toBe(\"button1\");\n });\n\n it(\"should focus the dismiss button when opened if no action is provided\", async () => {\n const page = await newE2EPage();\n await page.setContent(`<ic-toast heading=\"Heading\"></ic-toast>`);\n await page.waitForChanges();\n\n const toast = await page.find(\"ic-toast\");\n await toast.callMethod(\"setVisible\");\n\n await page.waitForChanges();\n await page.waitForTimeout(300);\n\n const activeElement = await page.$eval(\n \"ic-toast\",\n (el) => el.shadowRoot.activeElement.id\n );\n expect(activeElement).toBe(\"dismiss-button\");\n });\n\n it(\"should set the dimissMode to manual if the action slot is used on an autoDismiss toast\", async () => {\n const page = await newE2EPage();\n await page.setContent(\n `<ic-toast heading=\"Heading\" dismiss-mode=\"automatic\"><ic-button slot=\"action\">Button</ic-button></ic-toast>`\n );\n await page.waitForChanges();\n\n const dismissMode = await page.$eval(\n \"ic-toast\",\n (el) => (el as HTMLIcToastElement).dismissMode\n );\n expect(dismissMode).toBe(\"manual\");\n });\n\n it(\"should set the variant to neutral if the neutral-icon slot is used when the variant isn't set\", async () => {\n const page = await newE2EPage();\n await page.setContent(`<ic-toast heading=\"Heading\">\n <svg\n slot=\"neutral-icon\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8.79502 15.875L4.62502 11.705L3.20502 13.115L8.79502 18.705L20.795 6.70501L19.385 5.29501L8.79502 15.875Z\"\n />\n </svg></ic-toast>`);\n await page.waitForChanges();\n\n const variant = await page.$eval(\n \"ic-toast\",\n (el) => (el as HTMLIcToastElement).variant\n );\n expect(variant).toBe(\"neutral\");\n });\n\n it(\"should set the autoDismissTimeout to 5000ms if the prop provided is below\", async () => {\n const page = await newE2EPage();\n await page.setContent(\n `<ic-toast heading=\"Heading\" auto-dismiss-timeout=\"100\"></ic-toast>`\n );\n await page.waitForChanges();\n\n const variant = await page.$eval(\n \"ic-toast\",\n (el) => (el as HTMLIcToastElement).autoDismissTimeout\n );\n expect(variant).toBe(5000);\n });\n\n it(\"should not render an icon if the variant is neutral and the neutral-icon slot is not used\", async () => {\n const page = await newE2EPage();\n await page.setContent(\n `<ic-toast heading=\"Heading\" variant=\"neutral\"></ic-toast>`\n );\n await page.waitForChanges();\n\n const icon = await page.find(\"ic-toast >>> span\");\n expect(icon).toBeNull();\n });\n});\n"]}
@@ -1,8 +1,8 @@
1
1
  import { newSpecPage } from "@stencil/core/testing";
2
- import { waitForTimeout } from "../../testspec.setup";
3
- import { Button } from "../ic-button/ic-button";
4
- import { Link } from "../ic-link/ic-link";
5
- import { Toast } from "./ic-toast";
2
+ import { waitForTimeout } from "../../../../testspec.setup";
3
+ import { Button } from "../../../ic-button/ic-button";
4
+ import { Link } from "../../../ic-link/ic-link";
5
+ import { Toast } from "../../ic-toast";
6
6
  describe("ic-toast component", () => {
7
7
  it("should render when heading is supplied", async () => {
8
8
  const page = await newSpecPage({
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-toast.spec.js","sourceRoot":"","sources":["../../../../../src/components/ic-toast/test/basic/ic-toast.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC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,CAAC,cAAc,CAAC;MAC/B,GAAG,EAAE,KAAK;MACV,QAAQ,EAAE,IAAI;MACd,cAAc,EAAE,GAAS,EAAE,CAAC,IAAI;KACjC,CAAC,CAAC;IACH,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC5B,MAAM,CAAC,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;EACjD,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,wEAAwE,EAAE,KAAK,IAAI,EAAE;IACtF,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;MACzB,IAAI,EAAE,uFAAuF;KAC9F,CAAC,CAAC;IACH,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAE7D,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;IAC/B,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC5B,MAAM,cAAc,CAAC,GAAG,CAAC,CAAC;IAC1B,MAAM,CAAC,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;EACjD,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,oFAAoF,EAAE,KAAK,IAAI,EAAE;IAClG,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,KAAK,CAAC;MACnB,IAAI,EAAE,iGAAiG;KACxG,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;EACnE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from \"@stencil/core/testing\";\nimport { waitForTimeout } from \"../../../../testspec.setup\";\nimport { Button } from \"../../../ic-button/ic-button\";\nimport { Link } from \"../../../ic-link/ic-link\";\nimport { Toast } from \"../../ic-toast\";\n\ndescribe(\"ic-toast component\", () => {\n it(\"should render when heading is supplied\", async () => {\n const page = await newSpecPage({\n components: [Toast],\n html: `<ic-toast heading=\"Heading\"></ic-toast>`,\n });\n\n page.rootInstance.setVisible();\n await page.waitForChanges();\n\n expect(page.root)\n .toEqualHtml(`<ic-toast aria-label=\"Heading\" heading=\"Heading\" role=\"dialog\">\n <mock:shadow-root>\n <div class=\"container\">\n <div class=\"toast-content\">\n <div class=\"toast-message\">\n <ic-typography variant=\"subtitle-large\">\n <h5>\n Heading\n </h5>\n </ic-typography>\n </div>\n </div>\n <ic-button appearance=\"light\" id=\"dismiss-button\" aria-label=\"dismiss\" variant=\"icon\">\n svg\n </ic-button>\n </div>\n </mock:shadow-root>\n </ic-toast>`);\n });\n\n it(\"should render when a heading and message is supplied\", async () => {\n const page = await newSpecPage({\n components: [Toast],\n html: `<ic-toast heading=\"Heading\" message=\"toast message\"></ic-toast>`,\n });\n\n page.rootInstance.setVisible();\n await page.waitForChanges();\n\n expect(page.root)\n .toEqualHtml(`<ic-toast aria-label=\"Heading\" aria-description=\"toast message\" message=\"toast message\" heading=\"Heading\" role=\"dialog\">\n <mock:shadow-root>\n <div class=\"container\">\n <div class=\"toast-content\">\n <div class=\"toast-message\">\n <ic-typography variant=\"subtitle-large\">\n <h5>\n Heading\n </h5>\n </ic-typography>\n <ic-typography variant=\"body\">\n <p>\n toast message\n </p>\n </ic-typography>\n </div>\n </div>\n <ic-button appearance=\"light\" id=\"dismiss-button\" aria-label=\"dismiss\" variant=\"icon\">\n svg\n </ic-button>\n </div>\n </mock:shadow-root>\n </ic-toast>`);\n });\n\n it(\"should render a variant icon and banner when a variant is supplied\", async () => {\n const page = await newSpecPage({\n components: [Toast],\n html: `<ic-toast heading=\"Heading\" variant=\"success\"></ic-toast>`,\n });\n\n page.rootInstance.setVisible();\n await page.waitForChanges();\n\n expect(page.root)\n .toEqualHtml(`<ic-toast aria-label=\"Success\" aria-description=\"Heading\" heading=\"Heading\" role=\"dialog\" variant=\"success\">\n <mock:shadow-root>\n <div class=\"container\">\n <div class=\"toast-icon-container\">\n <div class=\"divider divider-success\"></div>\n <span class=\"toast-icon\">\n svg\n </span>\n </div>\n <div class=\"toast-content\">\n <div class=\"toast-message\">\n <ic-typography variant=\"subtitle-large\">\n <h5>\n Heading\n </h5>\n </ic-typography>\n </div>\n </div>\n <ic-button appearance=\"light\" id=\"dismiss-button\" aria-label=\"dismiss\" variant=\"icon\">\n svg\n </ic-button>\n </div>\n </mock:shadow-root>\n </ic-toast>`);\n });\n\n it(\"should render a loading indicator instead of a dismiss button when dismissMode is automatic\", async () => {\n const page = await newSpecPage({\n components: [Toast],\n html: `<ic-toast heading=\"Heading\" dismiss-mode=\"automatic\"></ic-toast>`,\n });\n\n page.rootInstance.setVisible();\n await page.waitForChanges();\n\n expect(page.root)\n .toEqualHtml(`<ic-toast heading=\"Heading\" role=\"status\" dismiss-mode=\"automatic\">\n <mock:shadow-root>\n <div class=\"container\">\n <div class=\"toast-content\">\n <div class=\"toast-message\">\n <ic-typography variant=\"subtitle-large\">\n <h5>\n Heading\n </h5>\n </ic-typography>\n </div>\n </div>\n <ic-loading-indicator appearance=\"light\" class=\"toast-dismiss-timer\" progress=\"100\" size=\"icon\"></ic-loading-indicator>\n </div>\n </mock:shadow-root>\n </ic-toast>`);\n });\n\n it(\"should display the toast when setVisible is ran\", async () => {\n const page = await newSpecPage({\n components: [Toast, Button],\n html: `<ic-toast heading=\"Heading\"></ic-toast>`,\n });\n\n expect(page.root.classList.contains(\"hidden\")).toBeTruthy();\n\n page.rootInstance.setVisible();\n await page.waitForChanges();\n expect(page.root.classList.contains(\"hidden\")).toBeFalsy();\n });\n\n it(\"should emit the icDismiss event when dismissed with by clicking the button\", async () => {\n const page = await newSpecPage({\n components: [Toast, Button],\n html: `<ic-toast heading=\"Heading\"></ic-toast>`,\n });\n\n const callbackFn = jest.fn();\n page.doc.addEventListener(\"icDismiss\", callbackFn);\n page.rootInstance.setVisible();\n await page.waitForChanges();\n\n const dismissButton = page.root.shadowRoot.querySelector(\"ic-button\");\n dismissButton.click();\n await page.waitForChanges();\n\n expect(callbackFn).toHaveBeenCalled();\n });\n\n it(\"should emit the icDismiss event when dismissed with by pressing Escape\", async () => {\n const page = await newSpecPage({\n components: [Toast, Button],\n html: `<ic-toast heading=\"Heading\"></ic-toast>`,\n });\n\n const callbackFn = jest.fn();\n page.doc.addEventListener(\"icDismiss\", callbackFn);\n page.rootInstance.setVisible();\n await page.waitForChanges();\n\n const event = new KeyboardEvent(\"keydown\", { key: \"Escape\" });\n page.rootInstance.handleKeyboard(event);\n await page.waitForChanges();\n\n expect(callbackFn).toHaveBeenCalled();\n });\n\n it(\"should emit icDismiss after the timer expires when an auto dismiss toast is made visible\", async () => {\n const page = await newSpecPage({\n components: [Toast],\n html: `<ic-toast heading=\"Heading\" dismiss-mode=\"automatic\"></ic-toast>`,\n });\n\n const callbackFn = jest.fn();\n page.doc.addEventListener(\"icDismiss\", callbackFn);\n page.rootInstance.setVisible();\n await page.waitForChanges();\n expect(callbackFn).not.toHaveBeenCalled();\n\n await waitForTimeout(6000);\n expect(callbackFn).toHaveBeenCalled();\n });\n\n it(\"should pause timer when mouse is hovered over, and resume when mouse leaves\", async () => {\n const page = await newSpecPage({\n components: [Toast],\n html: `<ic-toast heading=\"Heading\" dismiss-mode=\"automatic\" auto-dismiss-timeout=\"10000\"></ic-toast>`,\n });\n\n const intervalCb = jest.spyOn(window, \"setInterval\");\n const clearCb = jest.spyOn(window, \"clearInterval\");\n\n page.rootInstance.setVisible();\n await page.waitForChanges();\n\n await waitForTimeout(3000);\n expect(intervalCb).toHaveBeenCalledTimes(1);\n\n page.rootInstance.handleTimer({ type: \"mouseenter\" });\n await page.waitForChanges();\n expect(clearCb).toHaveBeenCalled();\n\n page.rootInstance.handleTimer({ type: \"mouseleave\" });\n await page.waitForChanges();\n await waitForTimeout(1000);\n expect(intervalCb).toHaveBeenCalledTimes(2);\n page.setContent(\"\");\n });\n\n it(\"should post a console error message if the message or header is too long\", async () => {\n const longText =\n \"lorem donec massa sapien faucibus et molestie ac feugiat sed lectus vestibulum mattis ullamcorper velit sed ullamcorper morbi tincidunt ornare massa eget egestas purus viverra accumsan in nisl nisi scelerisque eu ultrices vitae auctor eu augue ut lectus arcu bibendum at varius vel pharetra vel turpis nunc eget lorem dolor\";\n const consoleCb = jest\n .spyOn(console, \"error\")\n .mockImplementation(jest.fn());\n await newSpecPage({\n components: [Toast],\n html: `<ic-toast heading=\"${longText}\" message=\"${longText}\"></ic-toast>`,\n });\n expect(consoleCb).toHaveBeenCalledTimes(1);\n });\n\n it(\"should only focus the two interactive elements in the manual toast when using tab\", async () => {\n const page = await newSpecPage({\n components: [Toast, Button],\n html: `<ic-toast heading=\"Heading\"><ic-button id=\"slottedButton\" slot=\"action\">Click me</ic-button></ic-toast>`,\n });\n const focusCallback = jest.spyOn(Button.prototype, \"setFocus\");\n\n page.rootInstance.setVisible();\n await page.waitForChanges();\n await waitForTimeout(300);\n expect(focusCallback).toHaveBeenCalledTimes(1);\n\n page.rootInstance.handleKeyboard({\n key: \"Tab\",\n shiftKey: false,\n preventDefault: (): void => null,\n });\n await page.waitForChanges();\n expect(focusCallback).toHaveBeenCalledTimes(2);\n\n page.rootInstance.handleKeyboard({\n key: \"Tab\",\n shiftKey: false,\n preventDefault: (): void => null,\n });\n await page.waitForChanges();\n expect(focusCallback).toHaveBeenCalledTimes(3);\n\n page.rootInstance.handleKeyboard({\n key: \"Tab\",\n shiftKey: false,\n preventDefault: (): void => null,\n });\n await page.waitForChanges();\n expect(focusCallback).toHaveBeenCalledTimes(4);\n\n page.rootInstance.handleKeyboard({\n key: \"Tab\",\n shiftKey: true,\n preventDefault: (): void => null,\n });\n await page.waitForChanges();\n expect(focusCallback).toHaveBeenCalledTimes(5);\n\n page.rootInstance.handleKeyboard({\n key: \"Tab\",\n shiftKey: true,\n preventDefault: (): void => null,\n });\n await page.waitForChanges();\n expect(focusCallback).toHaveBeenCalledTimes(6);\n\n page.rootInstance.handleKeyboard({\n key: \"Tab\",\n shiftKey: true,\n preventDefault: (): void => null,\n });\n await page.waitForChanges();\n expect(focusCallback).toHaveBeenCalledTimes(7);\n });\n\n it(\"should focus a link element that has been slotted into the action slot\", async () => {\n const page = await newSpecPage({\n components: [Toast, Link],\n html: `<ic-toast heading=\"Heading\"><ic-link href=\"/\" slot=\"action\">Text</ic-link></ic-toast>`,\n });\n const focusCallback = jest.spyOn(Link.prototype, \"setFocus\");\n\n page.rootInstance.setVisible();\n await page.waitForChanges();\n await waitForTimeout(300);\n expect(focusCallback).toHaveBeenCalledTimes(1);\n });\n\n it(\"should update the dialog's label if the prop neutralIconAriaLabel prop is provided\", async () => {\n const page = await newSpecPage({\n components: [Toast],\n html: `<ic-toast variant=\"neutral\" neutral-icon-aria-label=\"Hello World\" heading=\"Heading\"></ic-toast>`,\n });\n\n expect(page.root.getAttribute(\"aria-label\")).toBe(\"Hello World\");\n });\n});\n"]}
@@ -3,18 +3,6 @@ export class ToastRegion {
3
3
  constructor() {
4
4
  this.pendingVisibility = [];
5
5
  }
6
- /**
7
- * Handles setting the visibility of various toasts based on what is already visible
8
- * @param toast The toast element being requested to display
9
- */
10
- async setVisible(toast) {
11
- const visibleToasts = Array.from(document.querySelectorAll("ic-toast")).filter((el) => window.getComputedStyle(el).display !== "none");
12
- if (visibleToasts.indexOf(toast) === -1 && visibleToasts.length <= 0) {
13
- toast.setVisible().then((res) => (this.previouslyFocused = res));
14
- }
15
- if (visibleToasts.length > 0)
16
- this.pendingVisibility.push(toast);
17
- }
18
6
  handleDismissedToast() {
19
7
  var _a;
20
8
  if (this.pendingVisibility.length > 0) {
@@ -31,6 +19,18 @@ export class ToastRegion {
31
19
  (_a = this.previouslyFocused) === null || _a === void 0 ? void 0 : _a.focus();
32
20
  }
33
21
  }
22
+ /**
23
+ * Handles setting the visibility of various toasts based on what is already visible
24
+ * @param toast The toast element being requested to display
25
+ */
26
+ async setVisible(toast) {
27
+ const visibleToasts = Array.from(document.querySelectorAll("ic-toast")).filter((el) => window.getComputedStyle(el).display !== "none");
28
+ if (visibleToasts.indexOf(toast) === -1 && visibleToasts.length <= 0) {
29
+ toast.setVisible().then((res) => (this.previouslyFocused = res));
30
+ }
31
+ if (visibleToasts.length > 0)
32
+ this.pendingVisibility.push(toast);
33
+ }
34
34
  render() {
35
35
  return h("slot", null);
36
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ic-toast-region.js","sourceRoot":"","sources":["../../../src/components/ic-toast-region/ic-toast-region.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAItE,MAAM,OAAO,WAAW;EADxB;IAKE,sBAAiB,GAAyB,EAAE,CAAC;GAkC9C;EAhCC;;;KAGG;EAEH,KAAK,CAAC,UAAU,CAAC,KAAyB;IACxC,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAC9B,QAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,CACtC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC;IACjE,IAAI,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,aAAa,CAAC,MAAM,IAAI,CAAC,EAAE;MACpE,KAAK,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC,CAAC,CAAC;KAClE;IACD,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC;MAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EACnE,CAAC;EAGD,oBAAoB;;IAClB,IAAI,IAAI,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;MACrC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;SACtB,UAAU,EAAE;SACZ,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC,CAAC,CAAC;MACjD,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;KAChC;SAAM;MACL,IAAI,IAAI,CAAC,iBAAiB,IAAI,UAAU,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACjE,IAAI,CAAC,iBAA2C,CAAC,QAAQ,EAAE,CAAC;OAC9D;;QAAM,MAAA,IAAI,CAAC,iBAAiB,0CAAE,KAAK,EAAE,CAAC;KACxC;EACH,CAAC;EAED,MAAM;IACJ,OAAO,eAAa,CAAC;EACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Listen, Method } from \"@stencil/core\";\nimport { IcFocusableComponents } from \"../../utils/types\";\n\n@Component({ tag: \"ic-toast-region\" })\nexport class ToastRegion {\n @Element() el: HTMLIcToastRegionElement;\n\n previouslyFocused: HTMLElement;\n pendingVisibility: HTMLIcToastElement[] = [];\n\n /**\n * Handles setting the visibility of various toasts based on what is already visible\n * @param toast The toast element being requested to display\n */\n @Method()\n async setVisible(toast: HTMLIcToastElement) {\n const visibleToasts = Array.from(\n document.querySelectorAll(\"ic-toast\")\n ).filter((el) => window.getComputedStyle(el).display !== \"none\");\n if (visibleToasts.indexOf(toast) === -1 && visibleToasts.length <= 0) {\n toast.setVisible().then((res) => (this.previouslyFocused = res));\n }\n if (visibleToasts.length > 0) this.pendingVisibility.push(toast);\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleDismissedToast() {\n if (this.pendingVisibility.length > 0) {\n this.pendingVisibility[0]\n .setVisible()\n .then((res) => (this.previouslyFocused = res));\n this.pendingVisibility.shift();\n } else {\n if (this.previouslyFocused && \"setFocus\" in this.previouslyFocused) {\n (this.previouslyFocused as IcFocusableComponents).setFocus();\n } else this.previouslyFocused?.focus();\n }\n }\n\n render() {\n return <slot></slot>;\n }\n}\n"]}
1
+ {"version":3,"file":"ic-toast-region.js","sourceRoot":"","sources":["../../../src/components/ic-toast-region/ic-toast-region.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAItE,MAAM,OAAO,WAAW;EADxB;IAEU,sBAAiB,GAAyB,EAAE,CAAC;GAqCtD;EA/BC,oBAAoB;;IAClB,IAAI,IAAI,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;MACrC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;SACtB,UAAU,EAAE;SACZ,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC,CAAC,CAAC;MACjD,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;KAChC;SAAM;MACL,IAAI,IAAI,CAAC,iBAAiB,IAAI,UAAU,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACjE,IAAI,CAAC,iBAA2C,CAAC,QAAQ,EAAE,CAAC;OAC9D;;QAAM,MAAA,IAAI,CAAC,iBAAiB,0CAAE,KAAK,EAAE,CAAC;KACxC;EACH,CAAC;EAED;;;KAGG;EAEH,KAAK,CAAC,UAAU,CAAC,KAAyB;IACxC,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAC9B,QAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,CACtC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC;IACjE,IAAI,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,aAAa,CAAC,MAAM,IAAI,CAAC,EAAE;MACpE,KAAK,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC,CAAC,CAAC;KAClE;IACD,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC;MAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EACnE,CAAC;EAED,MAAM;IACJ,OAAO,eAAa,CAAC;EACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Listen, Method } from \"@stencil/core\";\nimport { IcFocusableComponents } from \"../../utils/types\";\n\n@Component({ tag: \"ic-toast-region\" })\nexport class ToastRegion {\n private pendingVisibility: HTMLIcToastElement[] = [];\n private previouslyFocused: HTMLElement;\n\n @Element() el: HTMLIcToastRegionElement;\n\n @Listen(\"icDismiss\", { capture: true })\n handleDismissedToast(): void {\n if (this.pendingVisibility.length > 0) {\n this.pendingVisibility[0]\n .setVisible()\n .then((res) => (this.previouslyFocused = res));\n this.pendingVisibility.shift();\n } else {\n if (this.previouslyFocused && \"setFocus\" in this.previouslyFocused) {\n (this.previouslyFocused as IcFocusableComponents).setFocus();\n } else this.previouslyFocused?.focus();\n }\n }\n\n /**\n * Handles setting the visibility of various toasts based on what is already visible\n * @param toast The toast element being requested to display\n */\n @Method()\n async setVisible(toast: HTMLIcToastElement): Promise<void> {\n const visibleToasts = Array.from(\n document.querySelectorAll(\"ic-toast\")\n ).filter((el) => window.getComputedStyle(el).display !== \"none\");\n if (visibleToasts.indexOf(toast) === -1 && visibleToasts.length <= 0) {\n toast.setVisible().then((res) => (this.previouslyFocused = res));\n }\n if (visibleToasts.length > 0) this.pendingVisibility.push(toast);\n }\n\n render() {\n return <slot></slot>;\n }\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import { newSpecPage } from "@stencil/core/testing";
2
- import { Button } from "../ic-button/ic-button";
3
- import { Toast } from "../ic-toast/ic-toast";
4
- import { ToastRegion } from "./ic-toast-region";
2
+ import { Button } from "../../../ic-button/ic-button";
3
+ import { Toast } from "../../../ic-toast/ic-toast";
4
+ import { ToastRegion } from "../../ic-toast-region";
5
5
  describe("ic-toast-region component", () => {
6
6
  it("should render", async () => {
7
7
  const page = await newSpecPage({
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-toast-region.spec.js","sourceRoot":"","sources":["../../../../../src/components/ic-toast-region/test/basic/ic-toast-region.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;EACzC,EAAE,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;IAC7B,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC;MAChC,IAAI,EAAE;;yBAEa;KACpB,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;EACtC,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,uCAAuC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC;MAChC,IAAI,EAAE;;;yBAGa;KACpB,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAEtD,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAE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C,YAAY,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;EAC7D,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,mDAAmD,EAAE,KAAK,IAAI,EAAE;IACjE,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC;MAChC,IAAI,EAAE;;;yBAGa;KACpB,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACjD,IAAI,CAAC,YAAY,CAAC,iBAAiB,GAAG,MAAM,CAAC;IAE7C,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,CAAC;IAC/C,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;EAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from \"@stencil/core/testing\";\nimport { Button } from \"../../../ic-button/ic-button\";\nimport { Toast } from \"../../../ic-toast/ic-toast\";\nimport { ToastRegion } from \"../../ic-toast-region\";\n\ndescribe(\"ic-toast-region component\", () => {\n it(\"should render\", async () => {\n const page = await newSpecPage({\n components: [ToastRegion, Toast],\n html: `<ic-toast-region>\n <ic-toast heading=\"Heading\"></ic-toast>\n </ic-toast-region>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should test showing and hiding toasts\", async () => {\n const page = await newSpecPage({\n components: [ToastRegion, Toast],\n html: `<ic-toast-region>\n <ic-toast heading=\"Heading\"></ic-toast>\n <ic-toast heading=\"Heading\"></ic-toast>\n </ic-toast-region>`,\n });\n\n const toasts = page.root.querySelectorAll(\"ic-toast\");\n\n await page.root.setVisible(toasts[0]);\n\n expect(page.rootInstance.pendingVisibility.length).toBe(1);\n\n await page.root.setVisible(toasts[1]);\n\n expect(page.rootInstance.pendingVisibility.length).toBe(2);\n\n await page.rootInstance.handleDismissedToast();\n expect(page.rootInstance.pendingVisibility.length).toBe(1);\n\n await page.rootInstance.handleDismissedToast();\n expect(page.rootInstance.pendingVisibility.length).toBe(0);\n\n await page.rootInstance.handleDismissedToast();\n expect(page.rootInstance.pendingVisibility.length).toBe(0);\n });\n\n it(\"should test previouslyFocused\", async () => {\n const page = await newSpecPage({\n components: [ToastRegion, Toast, Button],\n html: `<ic-toast-region>\n <ic-button>Click Me</ic-button>\n <ic-toast heading=\"Heading\"></ic-toast>\n </ic-toast-region>`,\n });\n\n const button = page.root.querySelector(\"ic-button\");\n page.rootInstance.previouslyFocused = button;\n\n await page.rootInstance.handleDismissedToast();\n expect(page.rootInstance.pendingVisibility.length).toBe(0);\n });\n\n it(\"should test previously focused - standard element\", async () => {\n const page = await newSpecPage({\n components: [ToastRegion, Toast],\n html: `<ic-toast-region>\n <button>Click Me</button>\n <ic-toast heading=\"Heading\"></ic-toast>\n </ic-toast-region>`,\n });\n\n const button = page.root.querySelector(\"button\");\n page.rootInstance.previouslyFocused = button;\n\n await page.rootInstance.handleDismissedToast();\n expect(page.rootInstance.pendingVisibility.length).toBe(0);\n });\n});\n"]}