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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1078) hide show
  1. package/dist/cjs/core.cjs.js +10 -3
  2. package/dist/cjs/core.cjs.js.map +1 -1
  3. package/dist/cjs/{helpers-d6b5880e.js → helpers-eb53c416.js} +7 -1
  4. package/dist/cjs/helpers-eb53c416.js.map +1 -0
  5. package/dist/cjs/ic-alert.cjs.entry.js +10 -10
  6. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ic-back-to-top.cjs.entry.js +4 -4
  8. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +27 -21
  10. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-breadcrumb.cjs.entry.js +7 -7
  12. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-button_3.cjs.entry.js +98 -97
  14. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-card.cjs.entry.js +43 -42
  16. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-checkbox-group.cjs.entry.js +19 -16
  18. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-checkbox.cjs.entry.js +34 -30
  20. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-chip.cjs.entry.js +17 -14
  22. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
  24. package/dist/cjs/ic-data-entity.cjs.entry.js +1 -1
  25. package/dist/cjs/ic-data-row.cjs.entry.js +22 -22
  26. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-dialog.cjs.entry.js +295 -0
  28. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -0
  29. package/dist/cjs/ic-divider.cjs.entry.js +2 -2
  30. package/dist/cjs/ic-footer-link-group.cjs.entry.js +18 -18
  31. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-footer-link.cjs.entry.js +16 -16
  33. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-footer.cjs.entry.js +20 -20
  35. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-hero.cjs.entry.js +20 -20
  37. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +35 -22
  39. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +130 -91
  41. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-input-label_2.cjs.entry.js +10 -10
  43. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-link.cjs.entry.js +19 -19
  45. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  47. package/dist/cjs/ic-menu-item.cjs.entry.js +16 -15
  48. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-navigation-button.cjs.entry.js +17 -17
  50. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-navigation-group.cjs.entry.js +79 -53
  52. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-navigation-item.cjs.entry.js +44 -44
  54. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-navigation-menu.cjs.entry.js +28 -28
  56. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-page-header.cjs.entry.js +15 -15
  58. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-pagination-item.cjs.entry.js +11 -6
  60. package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-pagination.cjs.entry.js +33 -32
  62. package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-popover-menu.cjs.entry.js +64 -64
  64. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-radio-group.cjs.entry.js +41 -23
  66. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-radio-option.cjs.entry.js +38 -37
  68. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-search-bar.cjs.entry.js +123 -120
  70. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-section-container.cjs.entry.js +1 -1
  72. package/dist/cjs/ic-select.cjs.entry.js +99 -96
  73. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-side-navigation.cjs.entry.js +81 -76
  75. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-skeleton.cjs.entry.js +4 -4
  77. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-status-tag.cjs.entry.js +6 -6
  79. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-step.cjs.entry.js +8 -8
  81. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-stepper.cjs.entry.js +15 -15
  83. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-switch.cjs.entry.js +20 -19
  85. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-tab-context.cjs.entry.js +27 -33
  87. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-tab-group.cjs.entry.js +4 -4
  89. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-tab-panel.cjs.entry.js +3 -3
  91. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-tab.cjs.entry.js +19 -15
  93. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-text-field.cjs.entry.js +57 -58
  95. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  97. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-toast-region.cjs.entry.js +13 -13
  99. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ic-toast.cjs.entry.js +59 -59
  101. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ic-top-navigation.cjs.entry.js +40 -40
  103. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ic-typography.cjs.entry.js +13 -13
  105. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  106. package/dist/cjs/{index-a62312a7.js → index-014e3058.js} +222 -43
  107. package/dist/cjs/index-014e3058.js.map +1 -0
  108. package/dist/cjs/loader.cjs.js +4 -3
  109. package/dist/cjs/loader.cjs.js.map +1 -1
  110. package/dist/collection/collection-manifest.json +12 -11
  111. package/dist/collection/components/ic-alert/ic-alert.js +49 -49
  112. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  113. package/dist/collection/components/ic-alert/{ic-alert.test.a11y.js → test/a11y/ic-alert.test.a11y.js} +1 -1
  114. package/dist/collection/components/ic-alert/test/a11y/ic-alert.test.a11y.js.map +1 -0
  115. package/dist/collection/components/ic-alert/test/basic/ic-alert.e2e.js +16 -0
  116. package/dist/collection/components/ic-alert/test/basic/ic-alert.e2e.js.map +1 -0
  117. package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js +182 -0
  118. package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +1 -0
  119. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +4 -4
  120. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
  121. package/dist/collection/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.js.map +1 -0
  122. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.e2e.js +68 -0
  123. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.e2e.js.map +1 -0
  124. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js +123 -0
  125. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +1 -0
  126. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +24 -24
  127. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
  128. package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js +118 -0
  129. package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js.map +1 -0
  130. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +25 -19
  131. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
  132. package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group.test.a11y.js → test/a11y/ic-breadcrumb-group.test.a11y.js} +1 -1
  133. package/dist/collection/components/ic-breadcrumb-group/test/a11y/ic-breadcrumb-group.test.a11y.js.map +1 -0
  134. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group-test-examples.js.map +1 -0
  135. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.e2e.js +41 -0
  136. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.e2e.js.map +1 -0
  137. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js +181 -0
  138. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js.map +1 -0
  139. package/dist/collection/components/ic-button/ic-button.css +4 -0
  140. package/dist/collection/components/ic-button/ic-button.js +192 -190
  141. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  142. package/dist/collection/components/ic-button/{ic-button.test.a11y.js → test/a11y/ic-button.test.a11y.js} +1 -1
  143. package/dist/collection/components/ic-button/test/a11y/ic-button.test.a11y.js.map +1 -0
  144. package/dist/collection/components/ic-button/test/basic/ic-button.e2e.js +173 -0
  145. package/dist/collection/components/ic-button/test/basic/ic-button.e2e.js.map +1 -0
  146. package/dist/collection/components/ic-button/test/basic/ic-button.spec.js +230 -0
  147. package/dist/collection/components/ic-button/test/basic/ic-button.spec.js.map +1 -0
  148. package/dist/collection/components/ic-card/ic-card.css +3 -2
  149. package/dist/collection/components/ic-card/ic-card.js +121 -120
  150. package/dist/collection/components/ic-card/ic-card.js.map +1 -1
  151. package/dist/collection/components/ic-card/{ic-card.test.a11y.js → test/a11y/ic-card.test.a11y.js} +1 -1
  152. package/dist/collection/components/ic-card/test/a11y/ic-card.test.a11y.js.map +1 -0
  153. package/dist/collection/components/ic-card/test/basic/ic-card.e2e.js +23 -0
  154. package/dist/collection/components/ic-card/test/basic/ic-card.e2e.js.map +1 -0
  155. package/dist/collection/components/ic-card/test/basic/ic-card.spec.js +152 -0
  156. package/dist/collection/components/ic-card/test/basic/ic-card.spec.js.map +1 -0
  157. package/dist/collection/components/ic-checkbox/ic-checkbox.js +95 -91
  158. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  159. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +59 -56
  160. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  161. package/dist/collection/components/ic-checkbox-group/{ic-checkbox-group.test.a11y.js → test/a11y/ic-checkbox-group.test.a11y.js} +1 -1
  162. package/dist/collection/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.js.map +1 -0
  163. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.e2e.js +201 -0
  164. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.e2e.js.map +1 -0
  165. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js +175 -0
  166. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +1 -0
  167. package/dist/collection/components/ic-chip/ic-chip.js +55 -52
  168. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  169. package/dist/collection/components/ic-chip/{ic-chip.test.a11y.js → test/a11y/ic-chip.test.a11y.js} +1 -1
  170. package/dist/collection/components/ic-chip/test/a11y/ic-chip.test.a11y.js.map +1 -0
  171. package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js +110 -0
  172. package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js.map +1 -0
  173. package/dist/collection/components/ic-classification-banner/{ic-classification-banner.test.a11y.js → test/a11y/ic-classification-banner.test.a11y.js} +1 -1
  174. package/dist/collection/components/ic-classification-banner/test/a11y/ic-classification-banner.test.a11y.js.map +1 -0
  175. package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js +140 -0
  176. package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js.map +1 -0
  177. package/dist/collection/components/ic-data-entity/{ic-data-entity.test.a11y.js → test/a11y/ic-data-entity.test.a11y.js} +1 -1
  178. package/dist/collection/components/ic-data-entity/test/a11y/ic-data-entity.test.a11y.js.map +1 -0
  179. package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js +161 -0
  180. package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js.map +1 -0
  181. package/dist/collection/components/ic-data-row/ic-data-row.js +35 -35
  182. package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
  183. package/dist/collection/components/ic-data-row/{ic-data-row.test.a11y.js → test/a11y/ic-data-row.test.a11y.js} +1 -1
  184. package/dist/collection/components/ic-data-row/test/a11y/ic-data-row.test.a11y.js.map +1 -0
  185. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js +185 -0
  186. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js.map +1 -0
  187. package/dist/collection/components/ic-dialog/ic-dialog.css +592 -0
  188. package/dist/collection/components/ic-dialog/ic-dialog.js +640 -0
  189. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -0
  190. package/dist/collection/components/ic-dialog/test/a11y/ic-dialog.test.a11y.js +28 -0
  191. package/dist/collection/components/ic-dialog/test/a11y/ic-dialog.test.a11y.js.map +1 -0
  192. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.e2e.js +204 -0
  193. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.e2e.js.map +1 -0
  194. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js +520 -0
  195. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +1 -0
  196. package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js +24 -0
  197. package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js.map +1 -0
  198. package/dist/collection/components/ic-footer/ic-footer.js +48 -48
  199. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  200. package/dist/collection/components/ic-footer/{ic-footer.test.a11y.js → test/a11y/ic-footer.test.a11y.js} +1 -1
  201. package/dist/collection/components/ic-footer/test/a11y/ic-footer.test.a11y.js.map +1 -0
  202. package/dist/collection/components/ic-footer/test/basic/ic-footer.e2e.js +50 -0
  203. package/dist/collection/components/ic-footer/test/basic/ic-footer.e2e.js.map +1 -0
  204. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js +140 -0
  205. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +1 -0
  206. package/dist/collection/components/ic-footer-link/ic-footer-link.js +33 -33
  207. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  208. package/dist/collection/components/ic-footer-link/{ic-footer-link.test.a11y.js → test/a11y/ic-footer-link.test.a11y.js} +1 -1
  209. package/dist/collection/components/ic-footer-link/test/a11y/ic-footer-link.test.a11y.js.map +1 -0
  210. package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js +62 -0
  211. package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js.map +1 -0
  212. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +18 -18
  213. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  214. 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
  215. package/dist/collection/components/ic-footer-link-group/test/a11y/ic-footer-link-group.test.a11y.js.map +1 -0
  216. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js +98 -0
  217. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +1 -0
  218. package/dist/collection/components/ic-hero/ic-hero.js +95 -95
  219. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  220. package/dist/collection/components/ic-hero/{ic-hero.test.a11y.js → test/a11y/ic-hero.test.a11y.js} +1 -1
  221. package/dist/collection/components/ic-hero/test/a11y/ic-hero.test.a11y.js.map +1 -0
  222. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js +76 -0
  223. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +1 -0
  224. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +35 -22
  225. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -1
  226. package/dist/collection/components/ic-horizontal-scroll/{ic-horizontal-scroll.test.a11y.js → test/a11y/ic-horizontal-scroll.test.a11y.js} +1 -1
  227. package/dist/collection/components/ic-horizontal-scroll/test/a11y/ic-horizontal-scroll.test.a11y.js.map +1 -0
  228. package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js +180 -0
  229. package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js.map +1 -0
  230. package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +32 -4
  231. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +45 -45
  232. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
  233. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js +117 -0
  234. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +1 -0
  235. package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js +38 -0
  236. package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js.map +1 -0
  237. package/dist/collection/components/ic-input-label/ic-input-label.js +51 -51
  238. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  239. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js +98 -0
  240. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +1 -0
  241. package/dist/collection/components/ic-input-validation/ic-input-validation.css +0 -8
  242. package/dist/collection/components/ic-input-validation/ic-input-validation.js +41 -41
  243. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  244. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js +89 -0
  245. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js.map +1 -0
  246. package/dist/collection/components/ic-link/ic-link.js +48 -48
  247. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  248. package/dist/collection/components/ic-link/{ic-link.test.a11y.js → test/a11y/ic-link.test.a11y.js} +1 -1
  249. package/dist/collection/components/ic-link/test/a11y/ic-link.test.a11y.js.map +1 -0
  250. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js +203 -0
  251. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +1 -0
  252. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +89 -89
  253. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  254. package/dist/collection/components/ic-loading-indicator/{ic-loading-indicator.test.a11y.js → test/a11y/ic-loading-indicator.test.a11y.js} +1 -1
  255. package/dist/collection/components/ic-loading-indicator/test/a11y/ic-loading-indicator.test.a11y.js.map +1 -0
  256. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.e2e.js +34 -0
  257. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.e2e.js.map +1 -0
  258. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js +141 -0
  259. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js.map +1 -0
  260. package/dist/collection/components/ic-menu/ic-menu.css +9 -1
  261. package/dist/collection/components/ic-menu/ic-menu.js +285 -222
  262. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  263. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js +650 -0
  264. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +1 -0
  265. package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js +94 -0
  266. package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js.map +1 -0
  267. package/dist/collection/components/ic-menu-item/ic-menu-item.css +2 -2
  268. package/dist/collection/components/ic-menu-item/ic-menu-item.js +77 -76
  269. package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
  270. package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js +105 -0
  271. package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js.map +1 -0
  272. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +56 -56
  273. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  274. package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js +84 -0
  275. package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js.map +1 -0
  276. package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +1 -1
  277. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +95 -69
  278. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  279. package/dist/collection/components/ic-navigation-group/{ic-navigation-group.test.a11y.js → test/a11y/ic-navigation-group.test.a11y.js} +1 -1
  280. package/dist/collection/components/ic-navigation-group/test/a11y/ic-navigation-group.test.a11y.js.map +1 -0
  281. package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js +309 -0
  282. package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js.map +1 -0
  283. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +5 -4
  284. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +135 -135
  285. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  286. package/dist/collection/components/ic-navigation-item/{ic-navigation-item.test.a11y.js → test/a11y/ic-navigation-item.test.a11y.js} +1 -1
  287. package/dist/collection/components/ic-navigation-item/test/a11y/ic-navigation-item.test.a11y.js.map +1 -0
  288. package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js +118 -0
  289. package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js.map +1 -0
  290. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +1 -4
  291. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +31 -31
  292. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  293. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.e2e.js +29 -0
  294. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.e2e.js.map +1 -0
  295. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js +176 -0
  296. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js.map +1 -0
  297. package/dist/collection/components/ic-page-header/ic-page-header.css +1 -1
  298. package/dist/collection/components/ic-page-header/ic-page-header.js +56 -56
  299. package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
  300. package/dist/collection/components/ic-page-header/{ic-page-header.test.a11y.js → test/a11y/ic-page-header.test.a11y.js} +1 -1
  301. package/dist/collection/components/ic-page-header/test/a11y/ic-page-header.test.a11y.js.map +1 -0
  302. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.e2e.js +177 -0
  303. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.e2e.js.map +1 -0
  304. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js +284 -0
  305. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js.map +1 -0
  306. package/dist/collection/components/ic-pagination/ic-pagination.js +99 -98
  307. package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
  308. package/dist/collection/components/ic-pagination/{ic-pagination.test.a11y.js → test/a11y/ic-pagination.test.a11y.js} +1 -1
  309. package/dist/collection/components/ic-pagination/test/a11y/ic-pagination.test.a11y.js.map +1 -0
  310. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.e2e.js +128 -0
  311. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.e2e.js.map +1 -0
  312. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js +325 -0
  313. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +1 -0
  314. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +69 -65
  315. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js.map +1 -1
  316. package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +1 -1
  317. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +96 -96
  318. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  319. package/dist/collection/components/ic-popover-menu/{ic-popover-menu.test.a11y.js → test/a11y/ic-popover-menu.test.a11y.js} +1 -1
  320. package/dist/collection/components/ic-popover-menu/test/a11y/ic-popover-menu.test.a11y.js.map +1 -0
  321. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.e2e.js +30 -0
  322. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.e2e.js.map +1 -0
  323. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js +381 -0
  324. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js.map +1 -0
  325. package/dist/collection/components/ic-radio-group/ic-radio-group.js +103 -79
  326. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  327. package/dist/collection/components/ic-radio-group/ic-radio-group.types.js +2 -0
  328. package/dist/collection/components/ic-radio-group/ic-radio-group.types.js.map +1 -0
  329. package/dist/collection/components/ic-radio-group/{ic-radio-group.test.a11y.js → test/a11y/ic-radio-group.test.a11y.js} +1 -1
  330. package/dist/collection/components/ic-radio-group/test/a11y/ic-radio-group.test.a11y.js.map +1 -0
  331. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js +343 -0
  332. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js.map +1 -0
  333. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +303 -0
  334. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -0
  335. package/dist/collection/components/ic-radio-option/ic-radio-option.css +1 -1
  336. package/dist/collection/components/ic-radio-option/ic-radio-option.js +110 -95
  337. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  338. package/dist/collection/components/ic-search-bar/ic-search-bar.js +386 -383
  339. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  340. package/dist/collection/components/ic-search-bar/ic-search-bar.types.js.map +1 -1
  341. package/dist/collection/components/ic-search-bar/{ic-search-bar.test.a11y.js → test/a11y/ic-search-bar.test.a11y.js} +1 -1
  342. package/dist/collection/components/ic-search-bar/test/a11y/ic-search-bar.test.a11y.js.map +1 -0
  343. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js +1054 -0
  344. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +1 -0
  345. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js +570 -0
  346. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +1 -0
  347. package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js +69 -0
  348. package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js.map +1 -0
  349. package/dist/collection/components/ic-select/ic-select.js +299 -296
  350. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  351. package/dist/collection/components/ic-select/{ic-select.test.a11y.js → test/a11y/ic-select.test.a11y.js} +1 -1
  352. package/dist/collection/components/ic-select/test/a11y/ic-select.test.a11y.js.map +1 -0
  353. package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js +1765 -0
  354. package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js.map +1 -0
  355. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js +1276 -0
  356. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +1 -0
  357. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +1 -11
  358. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +123 -118
  359. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  360. package/dist/collection/components/ic-side-navigation/{ic-side-navigation.test.a11y.js → test/a11y/ic-side-navigation.test.a11y.js} +1 -1
  361. package/dist/collection/components/ic-side-navigation/test/a11y/ic-side-navigation.test.a11y.js.map +1 -0
  362. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.js.map +1 -0
  363. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js +412 -0
  364. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js.map +1 -0
  365. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js +470 -0
  366. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +1 -0
  367. package/dist/collection/components/ic-skeleton/ic-skeleton.js +22 -22
  368. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
  369. package/dist/collection/components/ic-skeleton/{ic-skeleton.test.a11y.js → test/a11y/ic-skeleton.test.a11y.js} +1 -1
  370. package/dist/collection/components/ic-skeleton/test/a11y/ic-skeleton.test.a11y.js.map +1 -0
  371. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js +89 -0
  372. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js.map +1 -0
  373. package/dist/collection/components/ic-status-tag/ic-status-tag.css +2 -6
  374. package/dist/collection/components/ic-status-tag/ic-status-tag.js +40 -40
  375. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
  376. package/dist/collection/components/ic-status-tag/{ic-status-tag.test.a11y.js → test/a11y/ic-status-tag.test.a11y.js} +1 -1
  377. package/dist/collection/components/ic-status-tag/test/a11y/ic-status-tag.test.a11y.js.map +1 -0
  378. package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js +43 -0
  379. package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js.map +1 -0
  380. package/dist/collection/components/ic-step/ic-step.js +126 -126
  381. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  382. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js +176 -0
  383. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js.map +1 -0
  384. package/dist/collection/components/ic-stepper/ic-stepper.js +41 -41
  385. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  386. package/dist/collection/components/ic-stepper/{ic-stepper.test.a11y.js → test/a11y/ic-stepper.test.a11y.js} +1 -1
  387. package/dist/collection/components/ic-stepper/test/a11y/ic-stepper.test.a11y.js.map +1 -0
  388. package/dist/collection/components/ic-stepper/test/basic/ic-stepper-test-examples.js.map +1 -0
  389. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js +49 -0
  390. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js.map +1 -0
  391. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js +706 -0
  392. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +1 -0
  393. package/dist/collection/components/ic-switch/ic-switch.css +1 -1
  394. package/dist/collection/components/ic-switch/ic-switch.js +74 -73
  395. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  396. package/dist/collection/components/ic-switch/{ic-switch.test.a11y.js → test/a11y/ic-switch.test.a11y.js} +1 -1
  397. package/dist/collection/components/ic-switch/test/a11y/ic-switch.test.a11y.js.map +1 -0
  398. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js +104 -0
  399. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +1 -0
  400. package/dist/collection/components/ic-tab/ic-tab.js +58 -54
  401. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  402. package/dist/collection/components/ic-tab/test/basic/ic-tab.e2e.js +32 -0
  403. package/dist/collection/components/ic-tab/test/basic/ic-tab.e2e.js.map +1 -0
  404. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js +159 -0
  405. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +1 -0
  406. package/dist/collection/components/ic-tab-context/ic-tab-context.js +71 -77
  407. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  408. package/dist/collection/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.js.map +1 -0
  409. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.e2e.js +317 -0
  410. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.e2e.js.map +1 -0
  411. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js +369 -0
  412. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js.map +1 -0
  413. package/dist/collection/components/ic-tab-group/ic-tab-group.css +2 -2
  414. package/dist/collection/components/ic-tab-group/ic-tab-group.js +27 -27
  415. package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
  416. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +33 -33
  417. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
  418. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js +65 -0
  419. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js.map +1 -0
  420. package/dist/collection/components/ic-text-field/ic-text-field.css +0 -4
  421. package/dist/collection/components/ic-text-field/ic-text-field.js +377 -378
  422. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  423. package/dist/collection/components/ic-text-field/test/a11y/ic-text-field.test.a11y.js.map +1 -0
  424. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.e2e.js +98 -0
  425. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.e2e.js.map +1 -0
  426. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js +236 -0
  427. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +1 -0
  428. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js +310 -0
  429. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +1 -0
  430. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
  431. package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js +72 -0
  432. package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js.map +1 -0
  433. package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js +77 -0
  434. package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js.map +1 -0
  435. package/dist/collection/components/ic-toast/ic-toast.js +111 -111
  436. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  437. package/dist/collection/components/ic-toast/{ic-toast.test.a11y.js → test/a11y/ic-toast.test.a11y.js} +1 -1
  438. package/dist/collection/components/ic-toast/test/a11y/ic-toast.test.a11y.js.map +1 -0
  439. package/dist/collection/components/ic-toast/test/basic/ic-toast.e2e.js +82 -0
  440. package/dist/collection/components/ic-toast/test/basic/ic-toast.e2e.js.map +1 -0
  441. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +278 -0
  442. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -0
  443. package/dist/collection/components/ic-toast-region/ic-toast-region.js +12 -12
  444. package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -1
  445. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js +62 -0
  446. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js.map +1 -0
  447. package/dist/collection/components/ic-tooltip/ic-tooltip.css +22 -8
  448. package/dist/collection/components/ic-tooltip/ic-tooltip.js +71 -72
  449. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  450. package/dist/collection/components/ic-tooltip/{ic-tooltip.test.a11y.js → test/a11y/ic-tooltip.test.a11y.js} +1 -1
  451. package/dist/collection/components/ic-tooltip/test/a11y/ic-tooltip.test.a11y.js.map +1 -0
  452. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js +115 -0
  453. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js.map +1 -0
  454. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js +128 -0
  455. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js.map +1 -0
  456. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +82 -82
  457. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  458. package/dist/collection/components/ic-top-navigation/{ic-top-navigation.test.a11y.js → test/a11y/ic-top-navigation.test.a11y.js} +1 -1
  459. package/dist/collection/components/ic-top-navigation/test/a11y/ic-top-navigation.test.a11y.js.map +1 -0
  460. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.e2e.js +42 -0
  461. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.e2e.js.map +1 -0
  462. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js +242 -0
  463. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js.map +1 -0
  464. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js +286 -0
  465. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js.map +1 -0
  466. package/dist/collection/components/ic-typography/ic-typography.js +36 -36
  467. package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
  468. package/dist/collection/components/ic-typography/{ic-typography.test.a11y.js → test/a11y/ic-typography.test.a11y.js} +1 -1
  469. package/dist/collection/components/ic-typography/test/a11y/ic-typography.test.a11y.js.map +1 -0
  470. package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js +36 -0
  471. package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js.map +1 -0
  472. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js +296 -0
  473. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +1 -0
  474. package/dist/collection/testspec.setup.js +11 -0
  475. package/dist/collection/testspec.setup.js.map +1 -1
  476. package/dist/collection/utils/helpers.js +5 -0
  477. package/dist/collection/utils/helpers.js.map +1 -1
  478. package/dist/components/helpers.js +6 -1
  479. package/dist/components/helpers.js.map +1 -1
  480. package/dist/components/ic-alert.js +1 -113
  481. package/dist/components/ic-alert.js.map +1 -1
  482. package/dist/components/ic-alert2.js +117 -0
  483. package/dist/components/ic-alert2.js.map +1 -0
  484. package/dist/components/ic-back-to-top.js +6 -6
  485. package/dist/components/ic-back-to-top.js.map +1 -1
  486. package/dist/components/ic-breadcrumb-group.js +27 -21
  487. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  488. package/dist/components/ic-breadcrumb2.js +8 -8
  489. package/dist/components/ic-breadcrumb2.js.map +1 -1
  490. package/dist/components/ic-button2.js +48 -46
  491. package/dist/components/ic-button2.js.map +1 -1
  492. package/dist/components/ic-card.js +52 -51
  493. package/dist/components/ic-card.js.map +1 -1
  494. package/dist/components/ic-checkbox-group.js +22 -19
  495. package/dist/components/ic-checkbox-group.js.map +1 -1
  496. package/dist/components/ic-checkbox.js +39 -35
  497. package/dist/components/ic-checkbox.js.map +1 -1
  498. package/dist/components/ic-chip.js +21 -18
  499. package/dist/components/ic-chip.js.map +1 -1
  500. package/dist/components/ic-classification-banner.js +1 -1
  501. package/dist/components/ic-data-entity.js +1 -1
  502. package/dist/components/ic-data-row.js +23 -23
  503. package/dist/components/ic-data-row.js.map +1 -1
  504. package/dist/components/ic-dialog.d.ts +11 -0
  505. package/dist/components/ic-dialog.js +356 -0
  506. package/dist/components/ic-dialog.js.map +1 -0
  507. package/dist/components/ic-divider2.js +2 -2
  508. package/dist/components/ic-footer-link-group.js +20 -20
  509. package/dist/components/ic-footer-link-group.js.map +1 -1
  510. package/dist/components/ic-footer-link.js +18 -18
  511. package/dist/components/ic-footer-link.js.map +1 -1
  512. package/dist/components/ic-footer.js +22 -22
  513. package/dist/components/ic-footer.js.map +1 -1
  514. package/dist/components/ic-hero.js +27 -27
  515. package/dist/components/ic-hero.js.map +1 -1
  516. package/dist/components/ic-horizontal-scroll2.js +36 -23
  517. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  518. package/dist/components/ic-input-component-container2.js +11 -11
  519. package/dist/components/ic-input-component-container2.js.map +1 -1
  520. package/dist/components/ic-input-container2.js +1 -1
  521. package/dist/components/ic-input-label2.js +10 -10
  522. package/dist/components/ic-input-label2.js.map +1 -1
  523. package/dist/components/ic-input-validation2.js +9 -9
  524. package/dist/components/ic-input-validation2.js.map +1 -1
  525. package/dist/components/ic-link2.js +21 -21
  526. package/dist/components/ic-link2.js.map +1 -1
  527. package/dist/components/ic-loading-indicator2.js +25 -25
  528. package/dist/components/ic-loading-indicator2.js.map +1 -1
  529. package/dist/components/ic-menu-group.js +1 -1
  530. package/dist/components/ic-menu-item2.js +21 -20
  531. package/dist/components/ic-menu-item2.js.map +1 -1
  532. package/dist/components/ic-menu2.js +136 -97
  533. package/dist/components/ic-menu2.js.map +1 -1
  534. package/dist/components/ic-navigation-button.js +22 -22
  535. package/dist/components/ic-navigation-button.js.map +1 -1
  536. package/dist/components/ic-navigation-group.js +83 -57
  537. package/dist/components/ic-navigation-group.js.map +1 -1
  538. package/dist/components/ic-navigation-item.js +54 -54
  539. package/dist/components/ic-navigation-item.js.map +1 -1
  540. package/dist/components/ic-navigation-menu2.js +30 -30
  541. package/dist/components/ic-navigation-menu2.js.map +1 -1
  542. package/dist/components/ic-page-header.js +21 -21
  543. package/dist/components/ic-page-header.js.map +1 -1
  544. package/dist/components/ic-pagination-item2.js +16 -12
  545. package/dist/components/ic-pagination-item2.js.map +1 -1
  546. package/dist/components/ic-pagination.js +41 -40
  547. package/dist/components/ic-pagination.js.map +1 -1
  548. package/dist/components/ic-popover-menu.js +67 -67
  549. package/dist/components/ic-popover-menu.js.map +1 -1
  550. package/dist/components/ic-radio-group.js +46 -28
  551. package/dist/components/ic-radio-group.js.map +1 -1
  552. package/dist/components/ic-radio-option.js +43 -42
  553. package/dist/components/ic-radio-option.js.map +1 -1
  554. package/dist/components/ic-search-bar.js +146 -143
  555. package/dist/components/ic-search-bar.js.map +1 -1
  556. package/dist/components/ic-section-container2.js +1 -1
  557. package/dist/components/ic-select.js +127 -124
  558. package/dist/components/ic-select.js.map +1 -1
  559. package/dist/components/ic-side-navigation.js +90 -85
  560. package/dist/components/ic-side-navigation.js.map +1 -1
  561. package/dist/components/ic-skeleton.js +6 -6
  562. package/dist/components/ic-skeleton.js.map +1 -1
  563. package/dist/components/ic-status-tag.js +9 -9
  564. package/dist/components/ic-status-tag.js.map +1 -1
  565. package/dist/components/ic-step.js +16 -16
  566. package/dist/components/ic-step.js.map +1 -1
  567. package/dist/components/ic-stepper.js +21 -21
  568. package/dist/components/ic-stepper.js.map +1 -1
  569. package/dist/components/ic-switch.js +24 -23
  570. package/dist/components/ic-switch.js.map +1 -1
  571. package/dist/components/ic-tab-context.js +29 -35
  572. package/dist/components/ic-tab-context.js.map +1 -1
  573. package/dist/components/ic-tab-group.js +6 -6
  574. package/dist/components/ic-tab-group.js.map +1 -1
  575. package/dist/components/ic-tab-panel.js +5 -5
  576. package/dist/components/ic-tab-panel.js.map +1 -1
  577. package/dist/components/ic-tab.js +20 -16
  578. package/dist/components/ic-tab.js.map +1 -1
  579. package/dist/components/ic-text-field2.js +86 -87
  580. package/dist/components/ic-text-field2.js.map +1 -1
  581. package/dist/components/ic-theme.js +2 -2
  582. package/dist/components/ic-theme.js.map +1 -1
  583. package/dist/components/ic-toast-region.js +13 -13
  584. package/dist/components/ic-toast-region.js.map +1 -1
  585. package/dist/components/ic-toast.js +64 -64
  586. package/dist/components/ic-toast.js.map +1 -1
  587. package/dist/components/ic-tooltip2.js +53 -54
  588. package/dist/components/ic-tooltip2.js.map +1 -1
  589. package/dist/components/ic-top-navigation.js +49 -49
  590. package/dist/components/ic-top-navigation.js.map +1 -1
  591. package/dist/components/ic-typography2.js +15 -15
  592. package/dist/components/ic-typography2.js.map +1 -1
  593. package/dist/components/index.d.ts +9 -60
  594. package/dist/components/index.js +1 -58
  595. package/dist/components/index.js.map +1 -1
  596. package/dist/core/core.css +41 -2
  597. package/dist/core/core.esm.js +1 -1
  598. package/dist/core/core.esm.js.map +1 -1
  599. package/dist/core/index.esm.js.map +1 -1
  600. package/dist/core/p-00b0c1b5.entry.js +2 -0
  601. package/dist/core/p-00b0c1b5.entry.js.map +1 -0
  602. package/dist/core/{p-fb5861c6.entry.js → p-0471f0a2.entry.js} +2 -2
  603. package/dist/core/p-0471f0a2.entry.js.map +1 -0
  604. package/dist/core/{p-de45134c.entry.js → p-04d626ee.entry.js} +2 -2
  605. package/dist/core/p-04d626ee.entry.js.map +1 -0
  606. package/dist/core/p-053b387f.entry.js +2 -0
  607. package/dist/core/p-053b387f.entry.js.map +1 -0
  608. package/dist/core/p-06321d19.js.map +1 -1
  609. package/dist/core/p-071bd3f5.entry.js +2 -0
  610. package/dist/core/p-071bd3f5.entry.js.map +1 -0
  611. package/dist/core/p-0738d6e3.entry.js +2 -0
  612. package/dist/core/p-0738d6e3.entry.js.map +1 -0
  613. package/dist/core/p-0ccdb432.entry.js +2 -0
  614. package/dist/core/p-0ccdb432.entry.js.map +1 -0
  615. package/dist/core/{p-ca20c9c3.entry.js → p-0d4507ef.entry.js} +2 -2
  616. package/dist/core/p-0d4507ef.entry.js.map +1 -0
  617. package/dist/core/p-11e0f917.entry.js +2 -0
  618. package/dist/core/p-11e0f917.entry.js.map +1 -0
  619. package/dist/core/{p-454b1ecd.entry.js → p-12287f17.entry.js} +2 -2
  620. package/dist/core/p-12287f17.entry.js.map +1 -0
  621. package/dist/core/{p-4dd0eb6a.entry.js → p-18f86ab2.entry.js} +2 -2
  622. package/dist/core/p-18f86ab2.entry.js.map +1 -0
  623. package/dist/core/{p-443052a7.entry.js → p-1a7d6eca.entry.js} +2 -2
  624. package/dist/core/p-1a7d6eca.entry.js.map +1 -0
  625. package/dist/core/p-1c30ece9.entry.js +2 -0
  626. package/dist/core/p-1c30ece9.entry.js.map +1 -0
  627. package/dist/core/p-206a402a.entry.js +2 -0
  628. package/dist/core/p-206a402a.entry.js.map +1 -0
  629. package/dist/core/p-221c905b.entry.js +2 -0
  630. package/dist/core/p-221c905b.entry.js.map +1 -0
  631. package/dist/core/p-2b80ce4c.entry.js +2 -0
  632. package/dist/core/p-2b80ce4c.entry.js.map +1 -0
  633. package/dist/core/p-3294961a.entry.js +2 -0
  634. package/dist/core/p-3294961a.entry.js.map +1 -0
  635. package/dist/core/p-36115f6a.entry.js +2 -0
  636. package/dist/core/p-36115f6a.entry.js.map +1 -0
  637. package/dist/core/{p-50421f27.entry.js → p-38450979.entry.js} +2 -2
  638. package/dist/core/p-38450979.entry.js.map +1 -0
  639. package/dist/core/p-39ec4fc2.entry.js +2 -0
  640. package/dist/core/p-39ec4fc2.entry.js.map +1 -0
  641. package/dist/core/p-44512ebe.js.map +1 -1
  642. package/dist/core/p-4a47cc51.entry.js +2 -0
  643. package/dist/core/p-4a47cc51.entry.js.map +1 -0
  644. package/dist/core/{p-d2d5132d.entry.js → p-4a814585.entry.js} +2 -2
  645. package/dist/core/p-4a814585.entry.js.map +1 -0
  646. package/dist/core/{p-312c10b0.entry.js → p-4c4fa082.entry.js} +2 -2
  647. package/dist/core/p-4c4fa082.entry.js.map +1 -0
  648. package/dist/core/{p-fc7dce3d.entry.js → p-4f7b34ed.entry.js} +2 -2
  649. package/dist/core/p-4f7b34ed.entry.js.map +1 -0
  650. package/dist/core/p-51d4c05c.entry.js +2 -0
  651. package/dist/core/p-51d4c05c.entry.js.map +1 -0
  652. package/dist/core/p-54a5e971.entry.js +2 -0
  653. package/dist/core/p-54a5e971.entry.js.map +1 -0
  654. package/dist/core/{p-050dbce8.entry.js → p-57ba3442.entry.js} +2 -2
  655. package/dist/core/p-57ba3442.entry.js.map +1 -0
  656. package/dist/core/{p-af815dfb.entry.js → p-594e88fe.entry.js} +2 -2
  657. package/dist/core/p-594e88fe.entry.js.map +1 -0
  658. package/dist/core/p-5d245683.entry.js +2 -0
  659. package/dist/core/p-5d245683.entry.js.map +1 -0
  660. package/dist/core/{p-36e0671f.entry.js → p-64584eb6.entry.js} +2 -2
  661. package/dist/core/p-64584eb6.entry.js.map +1 -0
  662. package/dist/core/p-67e99ad8.entry.js +2 -0
  663. package/dist/core/p-67e99ad8.entry.js.map +1 -0
  664. package/dist/core/{p-cee45622.entry.js → p-6921177c.entry.js} +2 -2
  665. package/dist/core/p-6921177c.entry.js.map +1 -0
  666. package/dist/core/{p-1585e5c1.entry.js → p-6ac8df90.entry.js} +2 -2
  667. package/dist/core/p-6ac8df90.entry.js.map +1 -0
  668. package/dist/core/p-6aee5f18.entry.js +2 -0
  669. package/dist/core/p-6aee5f18.entry.js.map +1 -0
  670. package/dist/core/p-6f57b13c.js.map +1 -1
  671. package/dist/core/{p-70124e59.entry.js → p-7350d63d.entry.js} +2 -2
  672. package/dist/core/p-7350d63d.entry.js.map +1 -0
  673. package/dist/core/p-75e23d08.entry.js +2 -0
  674. package/dist/core/p-75e23d08.entry.js.map +1 -0
  675. package/dist/core/p-7ae1d7bc.entry.js +2 -0
  676. package/dist/core/p-7ae1d7bc.entry.js.map +1 -0
  677. package/dist/core/p-7fafc87a.entry.js +2 -0
  678. package/dist/core/p-7fafc87a.entry.js.map +1 -0
  679. package/dist/core/p-8c7f4343.js.map +1 -1
  680. package/dist/core/p-8d4f7027.js.map +1 -1
  681. package/dist/core/{p-bffa2e1a.entry.js → p-9779c179.entry.js} +2 -2
  682. package/dist/core/p-9779c179.entry.js.map +1 -0
  683. package/dist/core/{p-68547339.entry.js → p-9e7b1167.entry.js} +2 -2
  684. package/dist/core/p-9e7b1167.entry.js.map +1 -0
  685. package/dist/core/{p-a18c0672.entry.js → p-ac10763e.entry.js} +2 -2
  686. package/dist/core/p-ac10763e.entry.js.map +1 -0
  687. package/dist/core/p-acdc2931.entry.js +2 -0
  688. package/dist/core/p-acdc2931.entry.js.map +1 -0
  689. package/dist/core/{p-a8dc8196.entry.js → p-bc02816a.entry.js} +2 -2
  690. package/dist/core/p-bc02816a.entry.js.map +1 -0
  691. package/dist/core/p-bde0fcab.entry.js +2 -0
  692. package/dist/core/p-bde0fcab.entry.js.map +1 -0
  693. package/dist/core/{p-29ea6f88.entry.js → p-be6ee8a9.entry.js} +2 -2
  694. package/dist/core/p-be6ee8a9.entry.js.map +1 -0
  695. package/dist/core/{p-471820e6.js → p-bf5669a2.js} +2 -2
  696. package/dist/core/p-bf5669a2.js.map +1 -0
  697. package/dist/core/p-c4dcc6b9.entry.js +2 -0
  698. package/dist/core/p-c4dcc6b9.entry.js.map +1 -0
  699. package/dist/core/{p-df1b0f17.entry.js → p-ca0e8569.entry.js} +2 -2
  700. package/dist/core/p-ca0e8569.entry.js.map +1 -0
  701. package/dist/core/p-ddb60a4b.entry.js +2 -0
  702. package/dist/core/p-ddb60a4b.entry.js.map +1 -0
  703. package/dist/core/{p-28bc3bf0.entry.js → p-df67b151.entry.js} +2 -2
  704. package/dist/core/p-df67b151.entry.js.map +1 -0
  705. package/dist/core/{p-5e896163.entry.js → p-e0bbf81e.entry.js} +2 -2
  706. package/dist/core/p-e0bbf81e.entry.js.map +1 -0
  707. package/dist/core/p-e6d3b5f8.entry.js +2 -0
  708. package/dist/core/p-e6d3b5f8.entry.js.map +1 -0
  709. package/dist/core/p-e8be020c.entry.js +2 -0
  710. package/dist/core/p-e8be020c.entry.js.map +1 -0
  711. package/dist/core/p-ec26fc38.js.map +1 -1
  712. package/dist/core/p-f3053872.js +3 -0
  713. package/dist/core/p-f3053872.js.map +1 -0
  714. package/dist/core/{p-46371c05.entry.js → p-fa40a71b.entry.js} +2 -2
  715. package/dist/core/p-fa40a71b.entry.js.map +1 -0
  716. package/dist/esm/core.js +7 -3
  717. package/dist/esm/core.js.map +1 -1
  718. package/dist/esm/{helpers-73666f14.js → helpers-c4e378c4.js} +7 -2
  719. package/dist/esm/helpers-c4e378c4.js.map +1 -0
  720. package/dist/esm/ic-alert.entry.js +10 -10
  721. package/dist/esm/ic-alert.entry.js.map +1 -1
  722. package/dist/esm/ic-back-to-top.entry.js +4 -4
  723. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  724. package/dist/esm/ic-breadcrumb-group.entry.js +27 -21
  725. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  726. package/dist/esm/ic-breadcrumb.entry.js +7 -7
  727. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  728. package/dist/esm/ic-button_3.entry.js +98 -97
  729. package/dist/esm/ic-button_3.entry.js.map +1 -1
  730. package/dist/esm/ic-card.entry.js +43 -42
  731. package/dist/esm/ic-card.entry.js.map +1 -1
  732. package/dist/esm/ic-checkbox-group.entry.js +19 -16
  733. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  734. package/dist/esm/ic-checkbox.entry.js +34 -30
  735. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  736. package/dist/esm/ic-chip.entry.js +17 -14
  737. package/dist/esm/ic-chip.entry.js.map +1 -1
  738. package/dist/esm/ic-classification-banner.entry.js +1 -1
  739. package/dist/esm/ic-data-entity.entry.js +1 -1
  740. package/dist/esm/ic-data-row.entry.js +22 -22
  741. package/dist/esm/ic-data-row.entry.js.map +1 -1
  742. package/dist/esm/ic-dialog.entry.js +291 -0
  743. package/dist/esm/ic-dialog.entry.js.map +1 -0
  744. package/dist/esm/ic-divider.entry.js +2 -2
  745. package/dist/esm/ic-footer-link-group.entry.js +18 -18
  746. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  747. package/dist/esm/ic-footer-link.entry.js +16 -16
  748. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  749. package/dist/esm/ic-footer.entry.js +20 -20
  750. package/dist/esm/ic-footer.entry.js.map +1 -1
  751. package/dist/esm/ic-hero.entry.js +20 -20
  752. package/dist/esm/ic-hero.entry.js.map +1 -1
  753. package/dist/esm/ic-horizontal-scroll.entry.js +35 -22
  754. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  755. package/dist/esm/ic-input-component-container_3.entry.js +130 -91
  756. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  757. package/dist/esm/ic-input-label_2.entry.js +10 -10
  758. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  759. package/dist/esm/ic-link.entry.js +19 -19
  760. package/dist/esm/ic-link.entry.js.map +1 -1
  761. package/dist/esm/ic-menu-group.entry.js +1 -1
  762. package/dist/esm/ic-menu-item.entry.js +16 -15
  763. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  764. package/dist/esm/ic-navigation-button.entry.js +17 -17
  765. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  766. package/dist/esm/ic-navigation-group.entry.js +79 -53
  767. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  768. package/dist/esm/ic-navigation-item.entry.js +44 -44
  769. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  770. package/dist/esm/ic-navigation-menu.entry.js +28 -28
  771. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  772. package/dist/esm/ic-page-header.entry.js +15 -15
  773. package/dist/esm/ic-page-header.entry.js.map +1 -1
  774. package/dist/esm/ic-pagination-item.entry.js +11 -6
  775. package/dist/esm/ic-pagination-item.entry.js.map +1 -1
  776. package/dist/esm/ic-pagination.entry.js +33 -32
  777. package/dist/esm/ic-pagination.entry.js.map +1 -1
  778. package/dist/esm/ic-popover-menu.entry.js +64 -64
  779. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  780. package/dist/esm/ic-radio-group.entry.js +41 -23
  781. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  782. package/dist/esm/ic-radio-option.entry.js +38 -37
  783. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  784. package/dist/esm/ic-search-bar.entry.js +123 -120
  785. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  786. package/dist/esm/ic-section-container.entry.js +1 -1
  787. package/dist/esm/ic-select.entry.js +99 -96
  788. package/dist/esm/ic-select.entry.js.map +1 -1
  789. package/dist/esm/ic-side-navigation.entry.js +81 -76
  790. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  791. package/dist/esm/ic-skeleton.entry.js +4 -4
  792. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  793. package/dist/esm/ic-status-tag.entry.js +6 -6
  794. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  795. package/dist/esm/ic-step.entry.js +8 -8
  796. package/dist/esm/ic-step.entry.js.map +1 -1
  797. package/dist/esm/ic-stepper.entry.js +15 -15
  798. package/dist/esm/ic-stepper.entry.js.map +1 -1
  799. package/dist/esm/ic-switch.entry.js +20 -19
  800. package/dist/esm/ic-switch.entry.js.map +1 -1
  801. package/dist/esm/ic-tab-context.entry.js +27 -33
  802. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  803. package/dist/esm/ic-tab-group.entry.js +4 -4
  804. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  805. package/dist/esm/ic-tab-panel.entry.js +3 -3
  806. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  807. package/dist/esm/ic-tab.entry.js +19 -15
  808. package/dist/esm/ic-tab.entry.js.map +1 -1
  809. package/dist/esm/ic-text-field.entry.js +57 -58
  810. package/dist/esm/ic-text-field.entry.js.map +1 -1
  811. package/dist/esm/ic-theme.entry.js +2 -2
  812. package/dist/esm/ic-theme.entry.js.map +1 -1
  813. package/dist/esm/ic-toast-region.entry.js +13 -13
  814. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  815. package/dist/esm/ic-toast.entry.js +59 -59
  816. package/dist/esm/ic-toast.entry.js.map +1 -1
  817. package/dist/esm/ic-top-navigation.entry.js +40 -40
  818. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  819. package/dist/esm/ic-typography.entry.js +13 -13
  820. package/dist/esm/ic-typography.entry.js.map +1 -1
  821. package/dist/esm/{index-3b144b17.js → index-a77644e1.js} +222 -44
  822. package/dist/esm/index-a77644e1.js.map +1 -0
  823. package/dist/esm/loader.js +4 -3
  824. package/dist/esm/loader.js.map +1 -1
  825. package/dist/esm/polyfills/css-shim.js +1 -1
  826. package/dist/types/components/ic-alert/ic-alert.d.ts +12 -12
  827. package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +8 -8
  828. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +6 -6
  829. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +1 -1
  830. package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +15 -11
  831. package/dist/types/components/ic-button/ic-button.d.ts +52 -52
  832. package/dist/types/components/ic-button/ic-button.types.d.ts +4 -4
  833. package/dist/types/components/ic-card/ic-card.d.ts +32 -32
  834. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +27 -26
  835. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +14 -13
  836. package/dist/types/components/ic-chip/ic-chip.d.ts +16 -15
  837. package/dist/types/components/ic-chip/ic-chip.types.d.ts +2 -2
  838. package/dist/types/components/ic-classification-banner/ic-classification-banner.types.d.ts +1 -1
  839. package/dist/types/components/ic-data-row/ic-data-row.d.ts +11 -11
  840. package/dist/types/components/ic-dialog/ic-dialog.d.ts +123 -0
  841. package/dist/types/components/ic-footer/ic-footer.d.ts +20 -20
  842. package/dist/types/components/ic-footer/ic-footer.types.d.ts +1 -1
  843. package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +10 -10
  844. package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +8 -8
  845. package/dist/types/components/ic-hero/ic-hero.d.ts +24 -24
  846. package/dist/types/components/ic-hero/ic-hero.types.d.ts +1 -1
  847. package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +15 -14
  848. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +15 -15
  849. package/dist/types/components/ic-input-label/ic-input-label.d.ts +14 -14
  850. package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +8 -8
  851. package/dist/types/components/ic-input-validation/ic-input-validation.types.d.ts +1 -1
  852. package/dist/types/components/ic-link/ic-link.d.ts +8 -8
  853. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +38 -38
  854. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +2 -2
  855. package/dist/types/components/ic-menu/ic-menu.d.ts +65 -59
  856. package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +23 -23
  857. package/dist/types/components/ic-menu-item/ic-menu-item.types.d.ts +1 -1
  858. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +21 -21
  859. package/dist/types/components/ic-navigation-button/ic-navigation-button.types.d.ts +1 -1
  860. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +21 -19
  861. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +39 -39
  862. package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +14 -14
  863. package/dist/types/components/ic-page-header/ic-page-header.d.ts +19 -19
  864. package/dist/types/components/ic-pagination/ic-pagination.d.ts +27 -27
  865. package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +1 -1
  866. package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +16 -15
  867. package/dist/types/components/ic-pagination-item/ic-pagination-item.types.d.ts +1 -1
  868. package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +22 -22
  869. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +22 -23
  870. package/dist/types/components/ic-radio-group/ic-radio-group.types.d.ts +7 -0
  871. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +32 -29
  872. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +106 -106
  873. package/dist/types/components/ic-search-bar/ic-search-bar.types.d.ts +1 -1
  874. package/dist/types/components/ic-select/ic-select.d.ts +89 -89
  875. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +27 -24
  876. package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +8 -8
  877. package/dist/types/components/ic-skeleton/ic-skeleton.types.d.ts +1 -1
  878. package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +8 -8
  879. package/dist/types/components/ic-status-tag/ic-status-tag.types.d.ts +2 -2
  880. package/dist/types/components/ic-step/ic-step.d.ts +24 -24
  881. package/dist/types/components/ic-step/ic-step.types.d.ts +3 -3
  882. package/dist/types/components/ic-stepper/ic-stepper.d.ts +17 -17
  883. package/dist/types/components/ic-stepper/ic-stepper.types.d.ts +1 -1
  884. package/dist/types/components/ic-switch/ic-switch.d.ts +23 -23
  885. package/dist/types/components/ic-tab/ic-tab.d.ts +16 -15
  886. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +20 -19
  887. package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +4 -4
  888. package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +6 -6
  889. package/dist/types/components/ic-text-field/ic-text-field.d.ts +103 -103
  890. package/dist/types/components/ic-text-field/ic-text-field.types.d.ts +3 -3
  891. package/dist/types/components/ic-theme/ic-theme.d.ts +1 -1
  892. package/dist/types/components/ic-toast/ic-toast.d.ts +26 -27
  893. package/dist/types/components/ic-toast/ic-toast.types.d.ts +1 -1
  894. package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +3 -3
  895. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +17 -17
  896. package/dist/types/components/ic-tooltip/ic-tooltip.types.d.ts +1 -1
  897. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +32 -32
  898. package/dist/types/components/ic-typography/ic-typography.d.ts +16 -16
  899. package/dist/types/components/ic-typography/test/a11y/ic-typography.test.a11y.d.ts +1 -0
  900. package/dist/types/components.d.ts +192 -28
  901. package/dist/types/stencil-public-runtime.d.ts +72 -15
  902. package/dist/types/testspec.setup.d.ts +11 -0
  903. package/dist/types/utils/helpers.d.ts +1 -0
  904. package/dist/types/utils/types.d.ts +22 -22
  905. package/hydrate/index.d.ts +17 -16
  906. package/hydrate/index.js +2251 -1787
  907. package/loader/index.d.ts +9 -0
  908. package/package.json +5 -5
  909. package/dist/cjs/helpers-d6b5880e.js.map +0 -1
  910. package/dist/cjs/index-a62312a7.js.map +0 -1
  911. package/dist/collection/components/ic-alert/ic-alert.test.a11y.js.map +0 -1
  912. package/dist/collection/components/ic-back-to-top/ic-back-to-top.test.a11y.js.map +0 -1
  913. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group-test-examples.js.map +0 -1
  914. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.test.a11y.js.map +0 -1
  915. package/dist/collection/components/ic-button/ic-button.test.a11y.js.map +0 -1
  916. package/dist/collection/components/ic-card/ic-card.test.a11y.js.map +0 -1
  917. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +0 -1
  918. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js.map +0 -1
  919. package/dist/collection/components/ic-classification-banner/ic-classification-banner.test.a11y.js.map +0 -1
  920. package/dist/collection/components/ic-data-entity/ic-data-entity.test.a11y.js.map +0 -1
  921. package/dist/collection/components/ic-data-row/ic-data-row.test.a11y.js.map +0 -1
  922. package/dist/collection/components/ic-footer/ic-footer.test.a11y.js.map +0 -1
  923. package/dist/collection/components/ic-footer-link/ic-footer-link.test.a11y.js.map +0 -1
  924. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +0 -1
  925. package/dist/collection/components/ic-hero/ic-hero.test.a11y.js.map +0 -1
  926. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js.map +0 -1
  927. package/dist/collection/components/ic-link/ic-link.test.a11y.js.map +0 -1
  928. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.test.a11y.js.map +0 -1
  929. package/dist/collection/components/ic-navigation-group/ic-navigation-group.test.a11y.js.map +0 -1
  930. package/dist/collection/components/ic-navigation-item/ic-navigation-item.test.a11y.js.map +0 -1
  931. package/dist/collection/components/ic-page-header/ic-page-header.test.a11y.js.map +0 -1
  932. package/dist/collection/components/ic-pagination/ic-pagination.test.a11y.js.map +0 -1
  933. package/dist/collection/components/ic-popover-menu/ic-popover-menu.test.a11y.js.map +0 -1
  934. package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +0 -1
  935. package/dist/collection/components/ic-search-bar/ic-search-bar.test.a11y.js.map +0 -1
  936. package/dist/collection/components/ic-select/ic-select.test.a11y.js.map +0 -1
  937. package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js.map +0 -1
  938. package/dist/collection/components/ic-side-navigation/ic-side-navigation.test.a11y.js.map +0 -1
  939. package/dist/collection/components/ic-skeleton/ic-skeleton.test.a11y.js.map +0 -1
  940. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +0 -1
  941. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js.map +0 -1
  942. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +0 -1
  943. package/dist/collection/components/ic-switch/ic-switch.test.a11y.js.map +0 -1
  944. package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +0 -1
  945. package/dist/collection/components/ic-text-field/ic-text-field.test.a11y.js.map +0 -1
  946. package/dist/collection/components/ic-toast/ic-toast.test.a11y.js.map +0 -1
  947. package/dist/collection/components/ic-tooltip/ic-tooltip.test.a11y.js.map +0 -1
  948. package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +0 -1
  949. package/dist/collection/components/ic-typography/ic-typography.test.a11y.js.map +0 -1
  950. package/dist/core/p-050dbce8.entry.js.map +0 -1
  951. package/dist/core/p-06962e10.entry.js +0 -2
  952. package/dist/core/p-06962e10.entry.js.map +0 -1
  953. package/dist/core/p-0969a95a.entry.js +0 -2
  954. package/dist/core/p-0969a95a.entry.js.map +0 -1
  955. package/dist/core/p-0a11ec35.entry.js +0 -2
  956. package/dist/core/p-0a11ec35.entry.js.map +0 -1
  957. package/dist/core/p-0f153569.entry.js +0 -2
  958. package/dist/core/p-0f153569.entry.js.map +0 -1
  959. package/dist/core/p-1585e5c1.entry.js.map +0 -1
  960. package/dist/core/p-223a214f.entry.js +0 -2
  961. package/dist/core/p-223a214f.entry.js.map +0 -1
  962. package/dist/core/p-28bc3bf0.entry.js.map +0 -1
  963. package/dist/core/p-29ea6f88.entry.js.map +0 -1
  964. package/dist/core/p-2e63f202.entry.js +0 -2
  965. package/dist/core/p-2e63f202.entry.js.map +0 -1
  966. package/dist/core/p-2e6ea6d3.entry.js +0 -2
  967. package/dist/core/p-2e6ea6d3.entry.js.map +0 -1
  968. package/dist/core/p-2fb97a1b.entry.js +0 -2
  969. package/dist/core/p-2fb97a1b.entry.js.map +0 -1
  970. package/dist/core/p-312c10b0.entry.js.map +0 -1
  971. package/dist/core/p-31b4b684.entry.js +0 -2
  972. package/dist/core/p-31b4b684.entry.js.map +0 -1
  973. package/dist/core/p-32cc8827.entry.js +0 -2
  974. package/dist/core/p-32cc8827.entry.js.map +0 -1
  975. package/dist/core/p-3498db0b.entry.js +0 -2
  976. package/dist/core/p-3498db0b.entry.js.map +0 -1
  977. package/dist/core/p-36e0671f.entry.js.map +0 -1
  978. package/dist/core/p-443052a7.entry.js.map +0 -1
  979. package/dist/core/p-454b1ecd.entry.js.map +0 -1
  980. package/dist/core/p-46371c05.entry.js.map +0 -1
  981. package/dist/core/p-471820e6.js.map +0 -1
  982. package/dist/core/p-4dd0eb6a.entry.js.map +0 -1
  983. package/dist/core/p-50421f27.entry.js.map +0 -1
  984. package/dist/core/p-559b3d17.entry.js +0 -2
  985. package/dist/core/p-559b3d17.entry.js.map +0 -1
  986. package/dist/core/p-589f6dd3.js +0 -3
  987. package/dist/core/p-589f6dd3.js.map +0 -1
  988. package/dist/core/p-5a3f3f37.entry.js +0 -2
  989. package/dist/core/p-5a3f3f37.entry.js.map +0 -1
  990. package/dist/core/p-5e896163.entry.js.map +0 -1
  991. package/dist/core/p-68547339.entry.js.map +0 -1
  992. package/dist/core/p-6f2be5bd.entry.js +0 -2
  993. package/dist/core/p-6f2be5bd.entry.js.map +0 -1
  994. package/dist/core/p-70124e59.entry.js.map +0 -1
  995. package/dist/core/p-80164baa.entry.js +0 -2
  996. package/dist/core/p-80164baa.entry.js.map +0 -1
  997. package/dist/core/p-80eff050.entry.js +0 -2
  998. package/dist/core/p-80eff050.entry.js.map +0 -1
  999. package/dist/core/p-8edd3a9b.entry.js +0 -2
  1000. package/dist/core/p-8edd3a9b.entry.js.map +0 -1
  1001. package/dist/core/p-9715ec62.entry.js +0 -2
  1002. package/dist/core/p-9715ec62.entry.js.map +0 -1
  1003. package/dist/core/p-983cb33c.entry.js +0 -2
  1004. package/dist/core/p-983cb33c.entry.js.map +0 -1
  1005. package/dist/core/p-a18c0672.entry.js.map +0 -1
  1006. package/dist/core/p-a8dc8196.entry.js.map +0 -1
  1007. package/dist/core/p-a9184841.entry.js +0 -2
  1008. package/dist/core/p-a9184841.entry.js.map +0 -1
  1009. package/dist/core/p-af815dfb.entry.js.map +0 -1
  1010. package/dist/core/p-b69226d2.entry.js +0 -2
  1011. package/dist/core/p-b69226d2.entry.js.map +0 -1
  1012. package/dist/core/p-b7cf6411.entry.js +0 -2
  1013. package/dist/core/p-b7cf6411.entry.js.map +0 -1
  1014. package/dist/core/p-bffa2e1a.entry.js.map +0 -1
  1015. package/dist/core/p-c85476c0.entry.js +0 -2
  1016. package/dist/core/p-c85476c0.entry.js.map +0 -1
  1017. package/dist/core/p-ca20c9c3.entry.js.map +0 -1
  1018. package/dist/core/p-cee45622.entry.js.map +0 -1
  1019. package/dist/core/p-d2d5132d.entry.js.map +0 -1
  1020. package/dist/core/p-de45134c.entry.js.map +0 -1
  1021. package/dist/core/p-df1b0f17.entry.js.map +0 -1
  1022. package/dist/core/p-e16e817e.entry.js +0 -2
  1023. package/dist/core/p-e16e817e.entry.js.map +0 -1
  1024. package/dist/core/p-e6217f40.entry.js +0 -2
  1025. package/dist/core/p-e6217f40.entry.js.map +0 -1
  1026. package/dist/core/p-faeedfd1.entry.js +0 -2
  1027. package/dist/core/p-faeedfd1.entry.js.map +0 -1
  1028. package/dist/core/p-fb5861c6.entry.js.map +0 -1
  1029. package/dist/core/p-fc7dce3d.entry.js.map +0 -1
  1030. package/dist/core/p-fd18d7a3.entry.js +0 -2
  1031. package/dist/core/p-fd18d7a3.entry.js.map +0 -1
  1032. package/dist/esm/helpers-73666f14.js.map +0 -1
  1033. package/dist/esm/index-3b144b17.js.map +0 -1
  1034. /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
  1035. /package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group-test-examples.js → test/basic/ic-breadcrumb-group-test-examples.js} +0 -0
  1036. /package/dist/collection/components/ic-side-navigation/{ic-side-navigation-test-examples.js → test/basic/ic-side-navigation-test-examples.js} +0 -0
  1037. /package/dist/collection/components/ic-stepper/{ic-stepper-test-examples.js → test/basic/ic-stepper-test-examples.js} +0 -0
  1038. /package/dist/collection/components/ic-tab-context/{ic-tab-context.test.a11y.js → test/a11y/ic-tab-context.test.a11y.js} +0 -0
  1039. /package/dist/collection/components/ic-text-field/{ic-text-field.test.a11y.js → test/a11y/ic-text-field.test.a11y.js} +0 -0
  1040. /package/dist/types/components/ic-alert/{ic-alert.test.a11y.d.ts → test/a11y/ic-alert.test.a11y.d.ts} +0 -0
  1041. /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
  1042. /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
  1043. /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
  1044. /package/dist/types/components/ic-button/{ic-button.test.a11y.d.ts → test/a11y/ic-button.test.a11y.d.ts} +0 -0
  1045. /package/dist/types/components/ic-card/{ic-card.test.a11y.d.ts → test/a11y/ic-card.test.a11y.d.ts} +0 -0
  1046. /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
  1047. /package/dist/types/components/ic-chip/{ic-chip.test.a11y.d.ts → test/a11y/ic-chip.test.a11y.d.ts} +0 -0
  1048. /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
  1049. /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
  1050. /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
  1051. /package/dist/types/components/{ic-footer-link-group/ic-footer-link-group.test.a11y.d.ts → ic-dialog/test/a11y/ic-dialog.test.a11y.d.ts} +0 -0
  1052. /package/dist/types/components/{ic-hero/ic-hero.test.a11y.d.ts → ic-footer/test/a11y/ic-footer.test.a11y.d.ts} +0 -0
  1053. /package/dist/types/components/{ic-footer/ic-footer.test.a11y.d.ts → ic-footer-link/test/a11y/ic-footer-link.test.a11y.d.ts} +0 -0
  1054. /package/dist/types/components/{ic-footer-link/ic-footer-link.test.a11y.d.ts → ic-footer-link-group/test/a11y/ic-footer-link-group.test.a11y.d.ts} +0 -0
  1055. /package/dist/types/components/{ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.d.ts → ic-hero/test/a11y/ic-hero.test.a11y.d.ts} +0 -0
  1056. /package/dist/types/components/{ic-link/ic-link.test.a11y.d.ts → ic-horizontal-scroll/test/a11y/ic-horizontal-scroll.test.a11y.d.ts} +0 -0
  1057. /package/dist/types/components/{ic-loading-indicator/ic-loading-indicator.test.a11y.d.ts → ic-link/test/a11y/ic-link.test.a11y.d.ts} +0 -0
  1058. /package/dist/types/components/{ic-navigation-group/ic-navigation-group.test.a11y.d.ts → ic-loading-indicator/test/a11y/ic-loading-indicator.test.a11y.d.ts} +0 -0
  1059. /package/dist/types/components/{ic-navigation-item/ic-navigation-item.test.a11y.d.ts → ic-navigation-group/test/a11y/ic-navigation-group.test.a11y.d.ts} +0 -0
  1060. /package/dist/types/components/{ic-page-header/ic-page-header.test.a11y.d.ts → ic-navigation-item/test/a11y/ic-navigation-item.test.a11y.d.ts} +0 -0
  1061. /package/dist/types/components/{ic-pagination/ic-pagination.test.a11y.d.ts → ic-page-header/test/a11y/ic-page-header.test.a11y.d.ts} +0 -0
  1062. /package/dist/types/components/{ic-popover-menu/ic-popover-menu.test.a11y.d.ts → ic-pagination/test/a11y/ic-pagination.test.a11y.d.ts} +0 -0
  1063. /package/dist/types/components/{ic-radio-group/ic-radio-group.test.a11y.d.ts → ic-popover-menu/test/a11y/ic-popover-menu.test.a11y.d.ts} +0 -0
  1064. /package/dist/types/components/{ic-search-bar/ic-search-bar.test.a11y.d.ts → ic-radio-group/test/a11y/ic-radio-group.test.a11y.d.ts} +0 -0
  1065. /package/dist/types/components/{ic-select/ic-select.test.a11y.d.ts → ic-search-bar/test/a11y/ic-search-bar.test.a11y.d.ts} +0 -0
  1066. /package/dist/types/components/{ic-side-navigation/ic-side-navigation.test.a11y.d.ts → ic-select/test/a11y/ic-select.test.a11y.d.ts} +0 -0
  1067. /package/dist/types/components/{ic-skeleton/ic-skeleton.test.a11y.d.ts → ic-side-navigation/test/a11y/ic-side-navigation.test.a11y.d.ts} +0 -0
  1068. /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
  1069. /package/dist/types/components/{ic-status-tag/ic-status-tag.test.a11y.d.ts → ic-skeleton/test/a11y/ic-skeleton.test.a11y.d.ts} +0 -0
  1070. /package/dist/types/components/{ic-stepper/ic-stepper.test.a11y.d.ts → ic-status-tag/test/a11y/ic-status-tag.test.a11y.d.ts} +0 -0
  1071. /package/dist/types/components/{ic-switch/ic-switch.test.a11y.d.ts → ic-stepper/test/a11y/ic-stepper.test.a11y.d.ts} +0 -0
  1072. /package/dist/types/components/ic-stepper/{ic-stepper-test-examples.d.ts → test/basic/ic-stepper-test-examples.d.ts} +0 -0
  1073. /package/dist/types/components/{ic-tab-context/ic-tab-context.test.a11y.d.ts → ic-switch/test/a11y/ic-switch.test.a11y.d.ts} +0 -0
  1074. /package/dist/types/components/{ic-text-field/ic-text-field.test.a11y.d.ts → ic-tab-context/test/a11y/ic-tab-context.test.a11y.d.ts} +0 -0
  1075. /package/dist/types/components/{ic-toast/ic-toast.test.a11y.d.ts → ic-text-field/test/a11y/ic-text-field.test.a11y.d.ts} +0 -0
  1076. /package/dist/types/components/{ic-tooltip/ic-tooltip.test.a11y.d.ts → ic-toast/test/a11y/ic-toast.test.a11y.d.ts} +0 -0
  1077. /package/dist/types/components/{ic-top-navigation/ic-top-navigation.test.a11y.d.ts → ic-tooltip/test/a11y/ic-tooltip.test.a11y.d.ts} +0 -0
  1078. /package/dist/types/components/{ic-typography/ic-typography.test.a11y.d.ts → ic-top-navigation/test/a11y/ic-top-navigation.test.a11y.d.ts} +0 -0
@@ -0,0 +1,182 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { Alert } from "../../ic-alert";
3
+ describe("ic-alert component", () => {
4
+ it("should render with a heading when supplied", async () => {
5
+ const page = await newSpecPage({
6
+ components: [Alert],
7
+ html: `<ic-alert heading="Test heading"></ic-alert>`,
8
+ });
9
+ expect(page.root).toEqualHtml(`
10
+ <ic-alert class="dark" heading="Test heading" role="alert">
11
+ <mock:shadow-root>
12
+ <div class="container container-neutral">
13
+ <div class="alert-icon-container">
14
+ <div class="divider divider-neutral"></div>
15
+ <span class="alert-icon icon-neutral svg-container">
16
+ svg
17
+ </span>
18
+ </div>
19
+ <div class="alert-content">
20
+ <div class="alert-message">
21
+ <ic-typography class="alert-title" variant="subtitle-large">
22
+ <p>
23
+ Test heading
24
+ </p>
25
+ </ic-typography>
26
+ <slot name="message">
27
+ <ic-typography variant="body"></ic-typography>
28
+ </slot>
29
+ </div>
30
+ </div>
31
+ <div class="dismiss-icon-container">
32
+ </div>
33
+ </div>
34
+ </mock:shadow-root>
35
+ </ic-alert>`);
36
+ });
37
+ it("should render with a message when supplied", async () => {
38
+ const page = await newSpecPage({
39
+ components: [Alert],
40
+ html: `<ic-alert message="Test message"></ic-alert>`,
41
+ });
42
+ expect(page.root).toEqualHtml(`
43
+ <ic-alert class="dark" message="Test message" role="alert">
44
+ <mock:shadow-root>
45
+ <div class="container container-neutral">
46
+ <div class="alert-icon-container">
47
+ <div class="divider divider-neutral"></div>
48
+ <span class="alert-icon icon-neutral svg-container">
49
+ svg
50
+ </span>
51
+ </div>
52
+ <div class="alert-content">
53
+ <div class="alert-message">
54
+ <slot name="message">
55
+ <ic-typography variant="body">
56
+ Test message
57
+ </ic-typography>
58
+ </slot>
59
+ </div>
60
+ </div>
61
+ <div class="dismiss-icon-container">
62
+ </div>
63
+ </div>
64
+ </mock:shadow-root>
65
+ </ic-alert>`);
66
+ });
67
+ it("should render an action in the correct position when supplied", async () => {
68
+ const page = await newSpecPage({
69
+ components: [Alert],
70
+ html: `<ic-alert message="This has an action"><button slot="action"></button></ic-alert>`,
71
+ });
72
+ expect(page.root).toEqualHtml(`
73
+ <ic-alert class="dark" message="This has an action" role="alert">
74
+ <mock:shadow-root>
75
+ <div class="container container-neutral">
76
+ <div class="alert-icon-container">
77
+ <div class="divider divider-neutral"></div>
78
+ <span class="alert-icon icon-neutral svg-container">
79
+ svg
80
+ </span>
81
+ </div>
82
+ <div class="alert-content">
83
+ <div class="alert-message">
84
+ <slot name="message">
85
+ <ic-typography variant="body">
86
+ This has an action
87
+ </ic-typography>
88
+ </slot>
89
+ </div>
90
+ <div class="alert-action-container">
91
+ <slot name="action"></slot>
92
+ </div>
93
+ </div>
94
+ <div class="dismiss-icon-container">
95
+ </div>
96
+ </div>
97
+ </mock:shadow-root>
98
+ <button slot="action"></button>
99
+ </ic-alert>`);
100
+ });
101
+ it("should render with a dismiss icon when the prop is applied", async () => {
102
+ const page = await newSpecPage({
103
+ components: [Alert],
104
+ html: `<ic-alert message="This is dismissible" dismissible=true></ic-alert>`,
105
+ });
106
+ expect(page.root).toEqualHtml(`
107
+ <ic-alert class="dark" message="This is dismissible" dismissible=true role="alert">
108
+ <mock:shadow-root>
109
+ <div class="container container-neutral">
110
+ <div class="alert-icon-container">
111
+ <div class="divider divider-neutral"></div>
112
+ <span class="alert-icon icon-neutral svg-container">
113
+ svg
114
+ </span>
115
+ </div>
116
+ <div class="alert-content">
117
+ <div class="alert-message">
118
+ <slot name="message">
119
+ <ic-typography variant="body">
120
+ This is dismissible
121
+ </ic-typography>
122
+ </slot>
123
+ </div>
124
+ </div>
125
+ <div class="dismiss-icon-container">
126
+ <ic-button appearance="dark" class="dismiss-icon svg-container" title="dismiss" variant="icon">
127
+ svg
128
+ </ic-button>
129
+ </div>
130
+ </div>
131
+ </mock:shadow-root>
132
+ </ic-alert>`);
133
+ });
134
+ it("should render an element in the message slot", async () => {
135
+ const page = await newSpecPage({
136
+ components: [Alert],
137
+ html: `<ic-alert heading="Using custom message"><ic-typography variant="h1" slot="message">Custom h1 message</ic-typography></ic-alert>`,
138
+ });
139
+ expect(page.root).toEqualHtml(`
140
+ <ic-alert class="dark" heading="Using custom message" role="alert">
141
+ <mock:shadow-root>
142
+ <div class="container container-neutral">
143
+ <div class="alert-icon-container">
144
+ <div class="divider divider-neutral"></div>
145
+ <span class="alert-icon icon-neutral svg-container">
146
+ svg
147
+ </span>
148
+ </div>
149
+ <div class="alert-content">
150
+ <div class="alert-message">
151
+ <ic-typography class="alert-title" variant="subtitle-large">
152
+ <p>
153
+ Using custom message
154
+ </p>
155
+ </ic-typography>
156
+ <slot name="message">
157
+ <ic-typography variant="body"></ic-typography>
158
+ </slot>
159
+ </div>
160
+ </div>
161
+ <div class="dismiss-icon-container"></div>
162
+ </div>
163
+ </mock:shadow-root>
164
+ <ic-typography variant="h1" slot="message">Custom h1 message</ic-typography>
165
+ </ic-alert>`);
166
+ });
167
+ it("should close on dismiss icon click", async () => {
168
+ const page = await newSpecPage({
169
+ components: [Alert],
170
+ html: `<ic-alert message="This is dismissible" dismissible=true></ic-alert>`,
171
+ });
172
+ let alert = await page.root.shadowRoot.querySelector("div.container-neutral");
173
+ const dismissButton = await page.root.shadowRoot.querySelector("ic-button");
174
+ expect(alert).not.toBeNull();
175
+ expect(dismissButton).not.toBeNull();
176
+ await dismissButton.click();
177
+ await page.waitForChanges();
178
+ alert = await page.root.shadowRoot.querySelector("div.container-neutral");
179
+ expect(alert).toBeNull();
180
+ });
181
+ });
182
+ //# sourceMappingURL=ic-alert.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-alert.spec.js","sourceRoot":"","sources":["../../../../../src/components/ic-alert/test/basic/ic-alert.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;EAClC,EAAE,CAAC,4CAA4C,EAAE,KAAK,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EAAE,KAAK,IAAI,EAAE;IAC5D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,KAAK,CAAC;MACnB,IAAI,EAAE,kIAAkI;KACzI,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;oBA0Bd,CAAC,CAAC;EACpB,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;IAClD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,KAAK,CAAC;MACnB,IAAI,EAAE,sEAAsE;KAC7E,CAAC,CAAC;IAEH,IAAI,KAAK,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAClD,uBAAuB,CACxB,CAAC;IACF,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAE5E,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC7B,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IAErC,MAAM,aAAa,CAAC,KAAK,EAAE,CAAC;IAE5B,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC5B,KAAK,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;IAE1E,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;EAC3B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from \"@stencil/core/testing\";\nimport { Alert } from \"../../ic-alert\";\n\ndescribe(\"ic-alert component\", () => {\n it(\"should render with a heading when supplied\", async () => {\n const page = await newSpecPage({\n components: [Alert],\n html: `<ic-alert heading=\"Test heading\"></ic-alert>`,\n });\n\n expect(page.root).toEqualHtml(`\n <ic-alert class=\"dark\" heading=\"Test heading\" role=\"alert\">\n <mock:shadow-root>\n <div class=\"container container-neutral\">\n <div class=\"alert-icon-container\">\n <div class=\"divider divider-neutral\"></div>\n <span class=\"alert-icon icon-neutral svg-container\">\n svg\n </span>\n </div>\n <div class=\"alert-content\">\n <div class=\"alert-message\">\n <ic-typography class=\"alert-title\" variant=\"subtitle-large\">\n <p>\n Test heading\n </p>\n </ic-typography>\n <slot name=\"message\">\n <ic-typography variant=\"body\"></ic-typography>\n </slot>\n </div>\n </div>\n <div class=\"dismiss-icon-container\">\n </div>\n </div>\n </mock:shadow-root>\n </ic-alert>`);\n });\n\n it(\"should render with a message when supplied\", async () => {\n const page = await newSpecPage({\n components: [Alert],\n html: `<ic-alert message=\"Test message\"></ic-alert>`,\n });\n\n expect(page.root).toEqualHtml(`\n <ic-alert class=\"dark\" message=\"Test message\" role=\"alert\">\n <mock:shadow-root>\n <div class=\"container container-neutral\">\n <div class=\"alert-icon-container\">\n <div class=\"divider divider-neutral\"></div>\n <span class=\"alert-icon icon-neutral svg-container\">\n svg\n </span>\n </div>\n <div class=\"alert-content\">\n <div class=\"alert-message\">\n <slot name=\"message\">\n <ic-typography variant=\"body\">\n Test message\n </ic-typography>\n </slot>\n </div>\n </div>\n <div class=\"dismiss-icon-container\">\n </div>\n </div>\n </mock:shadow-root>\n </ic-alert>`);\n });\n\n it(\"should render an action in the correct position when supplied\", async () => {\n const page = await newSpecPage({\n components: [Alert],\n html: `<ic-alert message=\"This has an action\"><button slot=\"action\"></button></ic-alert>`,\n });\n\n expect(page.root).toEqualHtml(`\n <ic-alert class=\"dark\" message=\"This has an action\" role=\"alert\">\n <mock:shadow-root>\n <div class=\"container container-neutral\">\n <div class=\"alert-icon-container\">\n <div class=\"divider divider-neutral\"></div>\n <span class=\"alert-icon icon-neutral svg-container\">\n svg\n </span>\n </div>\n <div class=\"alert-content\">\n <div class=\"alert-message\">\n <slot name=\"message\">\n <ic-typography variant=\"body\">\n This has an action\n </ic-typography>\n </slot>\n </div>\n <div class=\"alert-action-container\">\n <slot name=\"action\"></slot>\n </div>\n </div>\n <div class=\"dismiss-icon-container\">\n </div>\n </div>\n </mock:shadow-root>\n <button slot=\"action\"></button>\n </ic-alert>`);\n });\n\n it(\"should render with a dismiss icon when the prop is applied\", async () => {\n const page = await newSpecPage({\n components: [Alert],\n html: `<ic-alert message=\"This is dismissible\" dismissible=true></ic-alert>`,\n });\n\n expect(page.root).toEqualHtml(`\n <ic-alert class=\"dark\" message=\"This is dismissible\" dismissible=true role=\"alert\">\n <mock:shadow-root>\n <div class=\"container container-neutral\">\n <div class=\"alert-icon-container\">\n <div class=\"divider divider-neutral\"></div>\n <span class=\"alert-icon icon-neutral svg-container\">\n svg\n </span>\n </div>\n <div class=\"alert-content\">\n <div class=\"alert-message\">\n <slot name=\"message\">\n <ic-typography variant=\"body\">\n This is dismissible\n </ic-typography>\n </slot>\n </div>\n </div>\n <div class=\"dismiss-icon-container\">\n <ic-button appearance=\"dark\" class=\"dismiss-icon svg-container\" title=\"dismiss\" variant=\"icon\">\n svg\n </ic-button>\n </div>\n </div>\n </mock:shadow-root>\n </ic-alert>`);\n });\n\n it(\"should render an element in the message slot\", async () => {\n const page = await newSpecPage({\n components: [Alert],\n html: `<ic-alert heading=\"Using custom message\"><ic-typography variant=\"h1\" slot=\"message\">Custom h1 message</ic-typography></ic-alert>`,\n });\n\n expect(page.root).toEqualHtml(`\n <ic-alert class=\"dark\" heading=\"Using custom message\" role=\"alert\">\n <mock:shadow-root>\n <div class=\"container container-neutral\">\n <div class=\"alert-icon-container\">\n <div class=\"divider divider-neutral\"></div>\n <span class=\"alert-icon icon-neutral svg-container\">\n svg\n </span>\n </div>\n <div class=\"alert-content\">\n <div class=\"alert-message\">\n <ic-typography class=\"alert-title\" variant=\"subtitle-large\">\n <p>\n Using custom message\n </p>\n </ic-typography>\n <slot name=\"message\">\n <ic-typography variant=\"body\"></ic-typography>\n </slot>\n </div>\n </div>\n <div class=\"dismiss-icon-container\"></div>\n </div>\n </mock:shadow-root>\n <ic-typography variant=\"h1\" slot=\"message\">Custom h1 message</ic-typography>\n </ic-alert>`);\n });\n\n it(\"should close on dismiss icon click\", async () => {\n const page = await newSpecPage({\n components: [Alert],\n html: `<ic-alert message=\"This is dismissible\" dismissible=true></ic-alert>`,\n });\n\n let alert = await page.root.shadowRoot.querySelector(\n \"div.container-neutral\"\n );\n const dismissButton = await page.root.shadowRoot.querySelector(\"ic-button\");\n\n expect(alert).not.toBeNull();\n expect(dismissButton).not.toBeNull();\n\n await dismissButton.click();\n\n await page.waitForChanges();\n alert = await page.root.shadowRoot.querySelector(\"div.container-neutral\");\n\n expect(alert).toBeNull();\n });\n});\n"]}
@@ -81,10 +81,10 @@ export class BackToTop {
81
81
  const banners = document.querySelectorAll("ic-classification-banner:not([inline='true'])");
82
82
  this.bannerOffset = banners.length > 0;
83
83
  };
84
- this.target = undefined;
85
84
  this.bannerOffset = false;
86
- this.targetElVisible = true;
87
85
  this.footerVisible = false;
86
+ this.targetElVisible = true;
87
+ this.target = undefined;
88
88
  }
89
89
  watchPropHandler(newValue, oldValue) {
90
90
  //added for gatsby rehydration issue where prop is initially undefined but then changes to actual value
@@ -156,8 +156,8 @@ export class BackToTop {
156
156
  static get states() {
157
157
  return {
158
158
  "bannerOffset": {},
159
- "targetElVisible": {},
160
- "footerVisible": {}
159
+ "footerVisible": {},
160
+ "targetElVisible": {}
161
161
  };
162
162
  }
163
163
  static get elementRef() { return "el"; }
@@ -1 +1 @@
1
- {"version":3,"file":"ic-back-to-top.js","sourceRoot":"","sources":["../../../src/components/ic-back-to-top/ic-back-to-top.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACn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AAQ,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;MAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;MAC/C,MAAM,cAAc,GAAG,IAAI,oBAAoB,CAC7C,IAAI,CAAC,sBAAsB,EAC3B,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,CAC3B,CAAC;MACF,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;KAClC;EACH,CAAC;EAED,gBAAgB;IACd,gCAAgC,CAC9B,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAC3C,aAAa,CACd,CAAC;EACJ,CAAC;EAED,MAAM;IACJ,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IAC9D,OAAO,CACL,cACE,KAAK,EAAE;QACL,CAAC,qBAAqB,CAAC,EAAE,IAAI;QAC7B,CAAC,eAAe,CAAC,EAAE,YAAY;QAC/B,CAAC,MAAM,CAAC,EAAE,CAAC,eAAe;QAC1B,CAAC,WAAW,CAAC,EAAE,aAAa;OAC7B,gBACW,cAAc,EAC1B,OAAO,EAAE,IAAI,CAAC,WAAW;MAEzB,YAAM,KAAK,EAAC,qBAAqB,EAAC,SAAS,EAAE,WAAW,GAAI;MAE5D,qBAAe,OAAO,EAAC,gBAAgB;QACrC,gBAAO,cAAc,CAAQ,CACf,CACT,CACV,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Element, Prop, State, Watch } from \"@stencil/core\";\nimport ArrowUpward from \"./assets/ArrowUpward.svg\";\nimport {\n onComponentPropUndefinedChange,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\n\nconst backToTopLabel = \"Back to top\";\n\n@Component({\n tag: \"ic-back-to-top\",\n styleUrl: \"ic-back-to-top.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class BackToTop {\n @Element() el: HTMLIcBackToTopElement;\n\n /**\n * The ID of the element to jump back to when the link is clicked.\n */\n @Prop() target!: string;\n\n @State() bannerOffset: boolean = false;\n\n @State() targetElVisible: boolean = true;\n\n @State() footerVisible: boolean = false;\n\n @Watch(\"target\")\n watchPropHandler(newValue: string, oldValue: string): void {\n //added for gatsby rehydration issue where prop is initially undefined but then changes to actual value\n onComponentPropUndefinedChange(oldValue, newValue, () => {\n this.createTopObserver(newValue);\n });\n }\n private topObserver: IntersectionObserver = null;\n private targetEl: Element;\n private isTargetElNull: boolean;\n\n private setTargetElVisible = (visible: boolean) => {\n this.targetElVisible = visible;\n };\n\n private setFooterVisible = (visible: boolean) => {\n this.checkForClassificationBanner();\n if (typeof window !== \"undefined\" && window.scrollY === 0) {\n this.footerVisible = false;\n } else {\n this.footerVisible = visible;\n }\n };\n\n private targetElObserverCallback = (entries: IntersectionObserverEntry[]) => {\n this.setTargetElVisible(entries[0].isIntersecting);\n };\n\n private footerObserverCallback = (entries: IntersectionObserverEntry[]) => {\n this.setFooterVisible(entries[0].isIntersecting);\n };\n\n private findTargetEl = (target: string): Element => {\n let targetElement: Element = null;\n if (target === null || target === undefined) {\n console.log(\n \"Error: No target ID specified for back to top component - defaulting to top of page\"\n );\n } else {\n targetElement = document.querySelector(\n target.indexOf(\"#\") === 0 ? target : \"#\" + target\n );\n if (targetElement === null) {\n console.log(\n `Error: Back to top target element '${target}' not found - defaulting to top of page`\n );\n }\n }\n return targetElement;\n };\n\n private createTopObserver = (target: string) => {\n this.targetEl = this.findTargetEl(target);\n let objParent: HTMLElement;\n\n //remove old element & observer\n if (this.topObserver !== null) {\n const observedEl = document.querySelector(\"#ic-back-to-top-target\");\n if (observedEl !== null) {\n this.topObserver.unobserve(observedEl);\n observedEl.remove();\n }\n }\n\n if (this.targetEl === null) {\n objParent = document.body;\n this.targetEl = objParent.firstElementChild;\n this.isTargetElNull = true;\n } else {\n objParent = this.targetEl.parentNode as HTMLElement;\n this.isTargetElNull = false;\n }\n\n //insert a new 0px height element before specified target that can be used to determine when page is scrolled\n const objBackToTopTargetEl = document.createElement(\"div\");\n objBackToTopTargetEl.setAttribute(\"id\", \"ic-back-to-top-target\");\n objParent.insertBefore(objBackToTopTargetEl, this.targetEl);\n\n // resize observer needs to factor in any top margin on the target el\n const marginTop = getComputedStyle(this.targetEl).marginTop;\n this.topObserver = new IntersectionObserver(this.targetElObserverCallback, {\n threshold: [0],\n rootMargin: `${marginTop} 0px 0px 0px`,\n });\n this.topObserver.observe(objBackToTopTargetEl);\n };\n\n private handleClick = () => {\n if (this.isTargetElNull) {\n window.scrollTo(0, 0);\n } else {\n this.targetEl.scrollIntoView();\n }\n };\n\n private checkForClassificationBanner = () => {\n //adjust position for classification banner at bottom\n const banners = document.querySelectorAll(\n \"ic-classification-banner:not([inline='true'])\"\n );\n this.bannerOffset = banners.length > 0;\n };\n\n componentWillLoad(): void {\n this.createTopObserver(this.target);\n this.checkForClassificationBanner();\n\n //observer for when footer scrolls into view\n let footers = document.querySelectorAll(\n \"ic-footer\"\n ) as NodeListOf<HTMLElement>;\n if (footers.length === 0) {\n footers = document.querySelectorAll(\"footer\");\n }\n\n if (footers.length) {\n const footerEl = footers[footers.length - 1];\n const threshold = this.bannerOffset ? 0.15 : 0;\n const footerObserver = new IntersectionObserver(\n this.footerObserverCallback,\n { threshold: [threshold] }\n );\n footerObserver.observe(footerEl);\n }\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.target, propName: \"target\" }],\n \"Back to Top\"\n );\n }\n\n render() {\n const { bannerOffset, targetElVisible, footerVisible } = this;\n return (\n <button\n class={{\n [\"ic-back-to-top-link\"]: true,\n [\"offset-banner\"]: bannerOffset,\n [\"show\"]: !targetElVisible,\n [\"by-footer\"]: footerVisible,\n }}\n aria-label={backToTopLabel}\n onClick={this.handleClick}\n >\n <span class=\"ic-back-to-top-icon\" innerHTML={ArrowUpward} />\n\n <ic-typography variant=\"subtitle-small\">\n <span>{backToTopLabel}</span>\n </ic-typography>\n </button>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"ic-back-to-top.js","sourceRoot":"","sources":["../../../src/components/ic-back-to-top/ic-back-to-top.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAE7B,MAAM,cAAc,GAAG,aAAa,CAAC;AASrC,MAAM,OAAO,SAAS;;IAGZ,gBAAW,GAAyB,IAAI,CAAC;IAmDzC,uBAAkB,GAAG,CAAC,OAAgB,EAAE,EAAE;MAChD,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC;IACjC,CAAC,CAAC;IAEM,qBAAgB,GAAG,CAAC,OAAgB,EAAE,EAAE;MAC9C,IAAI,CAAC,4BAA4B,EAAE,CAAC;MACpC,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,OAAO,KAAK,CAAC,EAAE;QACzD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;OAC5B;WAAM;QACL,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC;OAC9B;IACH,CAAC,CAAC;IAEM,6BAAwB,GAAG,CAAC,OAAoC,EAAE,EAAE;MAC1E,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC,CAAC;IAEM,2BAAsB,GAAG,CAAC,OAAoC,EAAE,EAAE;MACxE,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;IACnD,CAAC,CAAC;IAEM,iBAAY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K,EAAC,qBAAqB,EAAC,SAAS,EAAE,WAAW,GAAI;MAE5D,qBAAe,OAAO,EAAC,gBAAgB;QACrC,gBAAO,cAAc,CAAQ,CACf,CACT,CACV,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Element, Prop, State, Watch } from \"@stencil/core\";\nimport ArrowUpward from \"./assets/ArrowUpward.svg\";\nimport {\n onComponentPropUndefinedChange,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\n\nconst backToTopLabel = \"Back to top\";\n\n@Component({\n tag: \"ic-back-to-top\",\n styleUrl: \"ic-back-to-top.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class BackToTop {\n private isTargetElNull: boolean;\n private targetEl: Element;\n private topObserver: IntersectionObserver = null;\n\n @Element() el: HTMLIcBackToTopElement;\n\n @State() bannerOffset: boolean = false;\n @State() footerVisible: boolean = false;\n @State() targetElVisible: boolean = true;\n\n /**\n * The ID of the element to jump back to when the link is clicked.\n */\n @Prop() target!: string;\n\n @Watch(\"target\")\n watchPropHandler(newValue: string, oldValue: string): void {\n //added for gatsby rehydration issue where prop is initially undefined but then changes to actual value\n onComponentPropUndefinedChange(oldValue, newValue, () => {\n this.createTopObserver(newValue);\n });\n }\n\n componentWillLoad(): void {\n this.createTopObserver(this.target);\n this.checkForClassificationBanner();\n\n //observer for when footer scrolls into view\n let footers = document.querySelectorAll(\n \"ic-footer\"\n ) as NodeListOf<HTMLElement>;\n if (footers.length === 0) {\n footers = document.querySelectorAll(\"footer\");\n }\n\n if (footers.length) {\n const footerEl = footers[footers.length - 1];\n const threshold = this.bannerOffset ? 0.15 : 0;\n const footerObserver = new IntersectionObserver(\n this.footerObserverCallback,\n { threshold: [threshold] }\n );\n footerObserver.observe(footerEl);\n }\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.target, propName: \"target\" }],\n \"Back to Top\"\n );\n }\n\n private setTargetElVisible = (visible: boolean) => {\n this.targetElVisible = visible;\n };\n\n private setFooterVisible = (visible: boolean) => {\n this.checkForClassificationBanner();\n if (typeof window !== \"undefined\" && window.scrollY === 0) {\n this.footerVisible = false;\n } else {\n this.footerVisible = visible;\n }\n };\n\n private targetElObserverCallback = (entries: IntersectionObserverEntry[]) => {\n this.setTargetElVisible(entries[0].isIntersecting);\n };\n\n private footerObserverCallback = (entries: IntersectionObserverEntry[]) => {\n this.setFooterVisible(entries[0].isIntersecting);\n };\n\n private findTargetEl = (target: string): Element => {\n let targetElement: Element = null;\n if (target === null || target === undefined) {\n console.log(\n \"Error: No target ID specified for back to top component - defaulting to top of page\"\n );\n } else {\n targetElement = document.querySelector(\n target.indexOf(\"#\") === 0 ? target : \"#\" + target\n );\n if (targetElement === null) {\n console.log(\n `Error: Back to top target element '${target}' not found - defaulting to top of page`\n );\n }\n }\n return targetElement;\n };\n\n private createTopObserver = (target: string) => {\n this.targetEl = this.findTargetEl(target);\n let objParent: HTMLElement;\n\n //remove old element & observer\n if (this.topObserver !== null) {\n const observedEl = document.querySelector(\"#ic-back-to-top-target\");\n if (observedEl !== null) {\n this.topObserver.unobserve(observedEl);\n observedEl.remove();\n }\n }\n\n if (this.targetEl === null) {\n objParent = document.body;\n this.targetEl = objParent.firstElementChild;\n this.isTargetElNull = true;\n } else {\n objParent = this.targetEl.parentNode as HTMLElement;\n this.isTargetElNull = false;\n }\n\n //insert a new 0px height element before specified target that can be used to determine when page is scrolled\n const objBackToTopTargetEl = document.createElement(\"div\");\n objBackToTopTargetEl.setAttribute(\"id\", \"ic-back-to-top-target\");\n objParent.insertBefore(objBackToTopTargetEl, this.targetEl);\n\n // resize observer needs to factor in any top margin on the target el\n const marginTop = getComputedStyle(this.targetEl).marginTop;\n this.topObserver = new IntersectionObserver(this.targetElObserverCallback, {\n threshold: [0],\n rootMargin: `${marginTop} 0px 0px 0px`,\n });\n this.topObserver.observe(objBackToTopTargetEl);\n };\n\n private handleClick = () => {\n if (this.isTargetElNull) {\n window.scrollTo(0, 0);\n } else {\n this.targetEl.scrollIntoView();\n }\n };\n\n private checkForClassificationBanner = () => {\n //adjust position for classification banner at bottom\n const banners = document.querySelectorAll(\n \"ic-classification-banner:not([inline='true'])\"\n );\n this.bannerOffset = banners.length > 0;\n };\n\n render() {\n const { bannerOffset, targetElVisible, footerVisible } = this;\n return (\n <button\n class={{\n [\"ic-back-to-top-link\"]: true,\n [\"offset-banner\"]: bannerOffset,\n [\"show\"]: !targetElVisible,\n [\"by-footer\"]: footerVisible,\n }}\n aria-label={backToTopLabel}\n onClick={this.handleClick}\n >\n <span class=\"ic-back-to-top-icon\" innerHTML={ArrowUpward} />\n\n <ic-typography variant=\"subtitle-small\">\n <span>{backToTopLabel}</span>\n </ic-typography>\n </button>\n );\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-back-to-top.test.a11y.js","sourceRoot":"","sources":["../../../../../src/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,UAAU,CAAC,GAAG,EAAE;EACd,2DAA2D;EAC3D,MAAM,wBAAwB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;EAC3C,wBAAwB,CAAC,eAAe,CAAC;IACvC,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;IACxC,SAAS,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;IAC1C,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;GAC5C,CAAC,CAAC;EACH,MAAM,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;AACzD,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;EAC9B,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;IACpC,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC;;;;;;;aAOhB,CAAC,CAAC;IACX,MAAM,SAAS,GAAG,EAAE,CAAC,gBAA2B,CAAC;IACjD,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,MAAM,CAAC,MAAM,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;EACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture } from \"@open-wc/testing-helpers\";\nimport { axe } from \"jest-axe\";\n\nbeforeEach(() => {\n // IntersectionObserver isn't available in test environment\n const mockIntersectionObserver = jest.fn();\n mockIntersectionObserver.mockReturnValue({\n observe: jest.fn().mockReturnValue(null),\n unobserve: jest.fn().mockReturnValue(null),\n disconnect: jest.fn().mockReturnValue(null),\n });\n window.IntersectionObserver = mockIntersectionObserver;\n});\n\ndescribe(\"ic-back-to-top\", () => {\n it(\"passes accessibility\", async () => {\n const el = await fixture(`\n <div>\n <div id=\"topEl\" style=\"margin-top:-20px;\">\n <ic-typography variant=\"h2\">Top of the page</ic-typography>\n </div>\n <div style=\"height:1000px;\"></div>\n <ic-back-to-top target=\"topEl\"></ic-back-to-top>\n </div>`);\n const backToTop = el.lastElementChild as Element;\n expect(backToTop.shadowRoot.innerHTML).not.toBe(\"\");\n expect(await axe(backToTop)).toHaveNoViolations();\n });\n});\n"]}
@@ -0,0 +1,68 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe("ic-back-to-top", () => {
3
+ it("should be hidden", async () => {
4
+ const page = await newE2EPage();
5
+ await page.setContent(`<div id="topEl" style="height:1200px"></div>
6
+ <ic-back-to-top target="topEl"></ic-back-to-top>
7
+ `);
8
+ await page.waitForChanges();
9
+ const backToTop = await page.find("ic-back-to-top >>> .ic-back-to-top-link");
10
+ expect(await backToTop.isVisible()).toBe(false);
11
+ });
12
+ it("should have correct text", async () => {
13
+ const page = await newE2EPage();
14
+ await page.setContent(`<div id="topEl"></div>
15
+ <ic-back-to-top target="topEl"></ic-back-to-top>
16
+ `);
17
+ await page.waitForChanges();
18
+ const backToTop = await page.find("ic-back-to-top >>> ic-typography");
19
+ const text = await backToTop.innerText;
20
+ expect(text).toBe("Back to top");
21
+ });
22
+ it("should appear when top is off screen", async () => {
23
+ const page = await newE2EPage();
24
+ await page.setContent(`<div id="topEl" style="margin-top:-20px;">
25
+ <ic-typography variant="h2">Top of the page</ic-typography>
26
+ </div>
27
+ <div style="height:1200px;"></div>
28
+ <ic-back-to-top target="topEl"></ic-back-to-top>
29
+ `);
30
+ await page.waitForChanges();
31
+ const backToTop = await page.find("ic-back-to-top >>> .ic-back-to-top-link");
32
+ expect(await backToTop.isVisible()).toBe(true);
33
+ });
34
+ it("should appear when page scrolled", async () => {
35
+ const page = await newE2EPage();
36
+ await page.setContent(`<div id="topEl">
37
+ <ic-typography variant="h2">Top of the page</ic-typography>
38
+ </div>
39
+ <div style="height:1200px;"></div>
40
+ <button style="bottom:0px; left:0px">Test Button</button>
41
+ <ic-back-to-top target="topEl"></ic-back-to-top>
42
+ `);
43
+ await page.waitForChanges();
44
+ const backToTop = await page.find("ic-back-to-top >>> .ic-back-to-top-link");
45
+ const button = await page.find("button");
46
+ expect(await backToTop.isVisible()).toBe(false);
47
+ await button.focus();
48
+ expect(await backToTop.isVisible()).toBe(true);
49
+ });
50
+ it("should hide and scroll page to top when clicked", async () => {
51
+ const page = await newE2EPage();
52
+ await page.setContent(`<div id="topEl">
53
+ <ic-typography variant="h2">Top of the page</ic-typography>
54
+ </div>
55
+ <div style="height:1200px;"></div>
56
+ <button style="bottom:0px; left:0px">Test Button</button>
57
+ <ic-back-to-top target="topEl"></ic-back-to-top>
58
+ `);
59
+ await page.waitForChanges();
60
+ const backToTop = await page.find("ic-back-to-top >>> .ic-back-to-top-link");
61
+ const button = await page.find("button");
62
+ await button.focus();
63
+ await backToTop.click();
64
+ await page.waitForTimeout(300);
65
+ expect(await backToTop.isVisible()).toBe(false);
66
+ });
67
+ });
68
+ //# sourceMappingURL=ic-back-to-top.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-back-to-top.e2e.js","sourceRoot":"","sources":["../../../../../src/components/ic-back-to-top/test/basic/ic-back-to-top.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;EAC9B,EAAE,CAAC,kBAAkB,EAAE,KAAK,IAAI,EAAE;IAChC,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CACnB;;OAEC,CACF,CAAC;IACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC5B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAC/B,yCAAyC,CAC1C,CAAC;IAEF,MAAM,CAAC,MAAM,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EAClD,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,0BAA0B,EAAE,KAAK,IAAI,EAAE;IACxC,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CACnB;;OAEC,CACF,CAAC;IACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC5B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;IACtE,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,SAAS,CAAC;IAEvC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;EACnC,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,sCAAsC,EAAE,KAAK,IAAI,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MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEzC,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;IACxB,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAE/B,MAAM,CAAC,MAAM,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EAClD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from \"@stencil/core/testing\";\n\ndescribe(\"ic-back-to-top\", () => {\n it(\"should be hidden\", async () => {\n const page = await newE2EPage();\n await page.setContent(\n `<div id=\"topEl\" style=\"height:1200px\"></div>\n <ic-back-to-top target=\"topEl\"></ic-back-to-top>\n `\n );\n await page.waitForChanges();\n const backToTop = await page.find(\n \"ic-back-to-top >>> .ic-back-to-top-link\"\n );\n\n expect(await backToTop.isVisible()).toBe(false);\n });\n\n it(\"should have correct text\", async () => {\n const page = await newE2EPage();\n await page.setContent(\n `<div id=\"topEl\"></div>\n <ic-back-to-top target=\"topEl\"></ic-back-to-top>\n `\n );\n await page.waitForChanges();\n const backToTop = await page.find(\"ic-back-to-top >>> ic-typography\");\n const text = await backToTop.innerText;\n\n expect(text).toBe(\"Back to top\");\n });\n\n it(\"should appear when top is off screen\", async () => {\n const page = await newE2EPage();\n await page.setContent(\n `<div id=\"topEl\" style=\"margin-top:-20px;\">\n <ic-typography variant=\"h2\">Top of the page</ic-typography>\n </div>\n <div style=\"height:1200px;\"></div>\n <ic-back-to-top target=\"topEl\"></ic-back-to-top>\n `\n );\n await page.waitForChanges();\n const backToTop = await page.find(\n \"ic-back-to-top >>> .ic-back-to-top-link\"\n );\n\n expect(await backToTop.isVisible()).toBe(true);\n });\n\n it(\"should appear when page scrolled\", async () => {\n const page = await newE2EPage();\n await page.setContent(\n `<div id=\"topEl\">\n <ic-typography variant=\"h2\">Top of the page</ic-typography>\n </div>\n <div style=\"height:1200px;\"></div>\n <button style=\"bottom:0px; left:0px\">Test Button</button>\n <ic-back-to-top target=\"topEl\"></ic-back-to-top>\n `\n );\n await page.waitForChanges();\n\n const backToTop = await page.find(\n \"ic-back-to-top >>> .ic-back-to-top-link\"\n );\n const button = await page.find(\"button\");\n\n expect(await backToTop.isVisible()).toBe(false);\n\n await button.focus();\n\n expect(await backToTop.isVisible()).toBe(true);\n });\n\n it(\"should hide and scroll page to top when clicked\", async () => {\n const page = await newE2EPage();\n await page.setContent(\n `<div id=\"topEl\">\n <ic-typography variant=\"h2\">Top of the page</ic-typography>\n </div>\n <div style=\"height:1200px;\"></div>\n <button style=\"bottom:0px; left:0px\">Test Button</button>\n <ic-back-to-top target=\"topEl\"></ic-back-to-top>\n `\n );\n await page.waitForChanges();\n\n const backToTop = await page.find(\n \"ic-back-to-top >>> .ic-back-to-top-link\"\n );\n const button = await page.find(\"button\");\n\n await button.focus();\n await backToTop.click();\n await page.waitForTimeout(300);\n\n expect(await backToTop.isVisible()).toBe(false);\n });\n});\n"]}
@@ -0,0 +1,123 @@
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { ClassificationBanner } from "../../../ic-classification-banner/ic-classification-banner";
3
+ import { Footer } from "../../../ic-footer/ic-footer";
4
+ import { BackToTop } from "../../ic-back-to-top";
5
+ beforeAll(() => {
6
+ // IntersectionObserver isn't available in test environment
7
+ const mockIntersectionObserver = jest.fn();
8
+ mockIntersectionObserver.mockReturnValue({
9
+ observe: jest.fn().mockReturnValue(null),
10
+ unobserve: jest.fn().mockReturnValue(null),
11
+ disconnect: jest.fn().mockReturnValue(null),
12
+ });
13
+ Object.defineProperty(global, "IntersectionObserver", {
14
+ value: mockIntersectionObserver,
15
+ });
16
+ });
17
+ describe("ic-back-to-top", () => {
18
+ it("should render", async () => {
19
+ const page = await newSpecPage({
20
+ components: [BackToTop],
21
+ html: `<div id="topEl"><ic-back-to-top target="topEl"></ic-back-to-top></div>`,
22
+ });
23
+ expect(page.root).toMatchSnapshot("should render");
24
+ });
25
+ it("should render with footer", async () => {
26
+ const page = await newSpecPage({
27
+ components: [BackToTop, Footer],
28
+ html: `<div id="topEl"><ic-back-to-top target="topEl"></ic-back-to-top></div><ic-footer></ic-footer>`,
29
+ });
30
+ expect(page.root).toMatchSnapshot("should render with footer");
31
+ });
32
+ it("should render with no targetId set", async () => {
33
+ jest.spyOn(console, "error").mockImplementation(jest.fn());
34
+ const page = await newSpecPage({
35
+ components: [BackToTop],
36
+ html: `<ic-back-to-top></ic-back-to-top>`,
37
+ });
38
+ expect(page.root).toMatchSnapshot("should render with no targetId set");
39
+ });
40
+ it("should render when target starts with #", async () => {
41
+ const page = await newSpecPage({
42
+ components: [BackToTop],
43
+ html: `<div id="topEl"><ic-back-to-top target="#topEl"></ic-back-to-top></div>`,
44
+ });
45
+ expect(page.root).toMatchSnapshot("should render when target starts with #");
46
+ });
47
+ it("should offset due to classification banner", async () => {
48
+ const page = await newSpecPage({
49
+ components: [BackToTop, ClassificationBanner],
50
+ html: `<div id="topEl"><ic-back-to-top target="topEl"></ic-back-to-top><ic-classification-banner></ic-classification-banner></div>`,
51
+ });
52
+ expect(page.rootInstance.bannerOffset).toBe(true);
53
+ });
54
+ it("should scroll to 0,0 if target is null", async () => {
55
+ jest.spyOn(console, "error").mockImplementation(jest.fn());
56
+ const page = await newSpecPage({
57
+ components: [BackToTop],
58
+ html: `<div id="topEl"><ic-back-to-top></ic-back-to-top></div>`,
59
+ });
60
+ expect(page.rootInstance.isTargetElNull).toBe(true);
61
+ page.root.shadowRoot.querySelector("button").click();
62
+ expect(page.win.screenX).toBe(0);
63
+ expect(page.win.screenY).toBe(0);
64
+ });
65
+ it("should scroll targetEl into view", async () => {
66
+ const page = await newSpecPage({
67
+ components: [BackToTop],
68
+ html: `<div id="topEl"><ic-back-to-top target="topEl"></ic-back-to-top></div>`,
69
+ });
70
+ page.root.shadowRoot.querySelector("button").click();
71
+ expect(page.rootInstance.targetElVisible).toBe(true);
72
+ });
73
+ it("should return null targetElement when there's no target matching that given in back to top", async () => {
74
+ jest.spyOn(console, "error").mockImplementation(jest.fn());
75
+ const page = await newSpecPage({
76
+ components: [BackToTop],
77
+ html: `<div><ic-back-to-top target="topEl"></ic-back-to-top></div>`,
78
+ });
79
+ const findTarget = page.rootInstance.findTargetEl("topEl");
80
+ expect(findTarget).toBeNull();
81
+ });
82
+ it("should stop observing observedEl when topObserver exists", async () => {
83
+ const page = await newSpecPage({
84
+ components: [BackToTop],
85
+ html: `<div id="topEl"><ic-back-to-top target="topEl"></ic-back-to-top></div>`,
86
+ });
87
+ page.rootInstance.watchPropHandler(undefined, "topEl");
88
+ page.rootInstance.createTopObserver("topEl");
89
+ expect(page.rootInstance.topObserver).not.toBeNull();
90
+ });
91
+ it("should set footerVisible", async () => {
92
+ const page = await newSpecPage({
93
+ components: [BackToTop],
94
+ html: `<div id="topEl"><ic-back-to-top target="topEl"></ic-back-to-top></div>`,
95
+ });
96
+ page.rootInstance.footerObserverCallback([{ isIntersecting: true }]);
97
+ //value is false as scrollY is always 0
98
+ expect(page.rootInstance.footerVisible).toBe(false);
99
+ page.rootInstance.footerObserverCallback([{ isIntersecting: false }]);
100
+ expect(page.rootInstance.footerVisible).toBe(false);
101
+ });
102
+ it("should set targetElVisible", async () => {
103
+ const page = await newSpecPage({
104
+ components: [BackToTop],
105
+ html: `<div id="topEl"><ic-back-to-top target="topEl"></ic-back-to-top></div>`,
106
+ });
107
+ page.rootInstance.targetElObserverCallback([{ isIntersecting: true }]);
108
+ expect(page.rootInstance.targetElVisible).toBe(true);
109
+ page.rootInstance.targetElObserverCallback([{ isIntersecting: false }]);
110
+ expect(page.rootInstance.targetElVisible).toBe(false);
111
+ });
112
+ it("should test update of target from undefined to value", async () => {
113
+ jest.spyOn(console, "error").mockImplementation(jest.fn());
114
+ const page = await newSpecPage({
115
+ components: [BackToTop],
116
+ html: `<div id="topEl"><ic-back-to-top></ic-back-to-top></div>`,
117
+ });
118
+ page.root.target = "topEl";
119
+ await page.waitForChanges();
120
+ expect(page.rootInstance.target).toBe("topEl");
121
+ });
122
+ });
123
+ //# sourceMappingURL=ic-back-to-top.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-back-to-top.spec.js","sourceRoot":"","sources":["../../../../../src/components/ic-back-to-top/test/basic/ic-back-to-top.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AAClG,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,SAAS,CAAC,GAAG,EAAE;EACb,2DAA2D;EAC3D,MAAM,wBAAwB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;EAC3C,wBAAwB,CAAC,eAAe,CAAC;IACvC,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;IACxC,SAAS,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;IAC1C,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;GAC5C,CAAC,CAAC;EAEH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,sBAAsB,EAAE;IACpD,KAAK,EAAE,wBAAwB;GAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;EAC9B,EAAE,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;IAC7B,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,SAAS,CAAC;MACvB,IAAI,EAAE,wEAAwE;KAC/E,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,C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AAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from \"@stencil/core/testing\";\nimport { ClassificationBanner } from \"../../../ic-classification-banner/ic-classification-banner\";\nimport { Footer } from \"../../../ic-footer/ic-footer\";\nimport { BackToTop } from \"../../ic-back-to-top\";\n\nbeforeAll(() => {\n // IntersectionObserver isn't available in test environment\n const mockIntersectionObserver = jest.fn();\n mockIntersectionObserver.mockReturnValue({\n observe: jest.fn().mockReturnValue(null),\n unobserve: jest.fn().mockReturnValue(null),\n disconnect: jest.fn().mockReturnValue(null),\n });\n\n Object.defineProperty(global, \"IntersectionObserver\", {\n value: mockIntersectionObserver,\n });\n});\n\ndescribe(\"ic-back-to-top\", () => {\n it(\"should render\", async () => {\n const page = await newSpecPage({\n components: [BackToTop],\n html: `<div id=\"topEl\"><ic-back-to-top target=\"topEl\"></ic-back-to-top></div>`,\n });\n\n expect(page.root).toMatchSnapshot(\"should render\");\n });\n\n it(\"should render with footer\", async () => {\n const page = await newSpecPage({\n components: [BackToTop, Footer],\n html: `<div id=\"topEl\"><ic-back-to-top target=\"topEl\"></ic-back-to-top></div><ic-footer></ic-footer>`,\n });\n\n expect(page.root).toMatchSnapshot(\"should render with footer\");\n });\n\n it(\"should render with no targetId set\", async () => {\n jest.spyOn(console, \"error\").mockImplementation(jest.fn());\n const page = await newSpecPage({\n components: [BackToTop],\n html: `<ic-back-to-top></ic-back-to-top>`,\n });\n\n expect(page.root).toMatchSnapshot(\"should render with no targetId set\");\n });\n\n it(\"should render when target starts with #\", async () => {\n const page = await newSpecPage({\n components: [BackToTop],\n html: `<div id=\"topEl\"><ic-back-to-top target=\"#topEl\"></ic-back-to-top></div>`,\n });\n\n expect(page.root).toMatchSnapshot(\n \"should render when target starts with #\"\n );\n });\n\n it(\"should offset due to classification banner\", async () => {\n const page = await newSpecPage({\n components: [BackToTop, ClassificationBanner],\n html: `<div id=\"topEl\"><ic-back-to-top target=\"topEl\"></ic-back-to-top><ic-classification-banner></ic-classification-banner></div>`,\n });\n\n expect(page.rootInstance.bannerOffset).toBe(true);\n });\n\n it(\"should scroll to 0,0 if target is null\", async () => {\n jest.spyOn(console, \"error\").mockImplementation(jest.fn());\n const page = await newSpecPage({\n components: [BackToTop],\n html: `<div id=\"topEl\"><ic-back-to-top></ic-back-to-top></div>`,\n });\n\n expect(page.rootInstance.isTargetElNull).toBe(true);\n\n page.root.shadowRoot.querySelector(\"button\").click();\n expect(page.win.screenX).toBe(0);\n expect(page.win.screenY).toBe(0);\n });\n\n it(\"should scroll targetEl into view\", async () => {\n const page = await newSpecPage({\n components: [BackToTop],\n html: `<div id=\"topEl\"><ic-back-to-top target=\"topEl\"></ic-back-to-top></div>`,\n });\n\n page.root.shadowRoot.querySelector(\"button\").click();\n expect(page.rootInstance.targetElVisible).toBe(true);\n });\n\n it(\"should return null targetElement when there's no target matching that given in back to top\", async () => {\n jest.spyOn(console, \"error\").mockImplementation(jest.fn());\n const page = await newSpecPage({\n components: [BackToTop],\n html: `<div><ic-back-to-top target=\"topEl\"></ic-back-to-top></div>`,\n });\n\n const findTarget = page.rootInstance.findTargetEl(\"topEl\");\n\n expect(findTarget).toBeNull();\n });\n\n it(\"should stop observing observedEl when topObserver exists\", async () => {\n const page = await newSpecPage({\n components: [BackToTop],\n html: `<div id=\"topEl\"><ic-back-to-top target=\"topEl\"></ic-back-to-top></div>`,\n });\n\n page.rootInstance.watchPropHandler(undefined, \"topEl\");\n page.rootInstance.createTopObserver(\"topEl\");\n expect(page.rootInstance.topObserver).not.toBeNull();\n });\n\n it(\"should set footerVisible\", async () => {\n const page = await newSpecPage({\n components: [BackToTop],\n html: `<div id=\"topEl\"><ic-back-to-top target=\"topEl\"></ic-back-to-top></div>`,\n });\n\n page.rootInstance.footerObserverCallback([{ isIntersecting: true }]);\n //value is false as scrollY is always 0\n expect(page.rootInstance.footerVisible).toBe(false);\n\n page.rootInstance.footerObserverCallback([{ isIntersecting: false }]);\n expect(page.rootInstance.footerVisible).toBe(false);\n });\n\n it(\"should set targetElVisible\", async () => {\n const page = await newSpecPage({\n components: [BackToTop],\n html: `<div id=\"topEl\"><ic-back-to-top target=\"topEl\"></ic-back-to-top></div>`,\n });\n\n page.rootInstance.targetElObserverCallback([{ isIntersecting: true }]);\n expect(page.rootInstance.targetElVisible).toBe(true);\n\n page.rootInstance.targetElObserverCallback([{ isIntersecting: false }]);\n expect(page.rootInstance.targetElVisible).toBe(false);\n });\n\n it(\"should test update of target from undefined to value\", async () => {\n jest.spyOn(console, \"error\").mockImplementation(jest.fn());\n const page = await newSpecPage({\n components: [BackToTop],\n html: `<div id=\"topEl\"><ic-back-to-top></ic-back-to-top></div>`,\n });\n\n page.root.target = \"topEl\";\n await page.waitForChanges();\n\n expect(page.rootInstance.target).toBe(\"topEl\");\n });\n});\n"]}
@@ -26,11 +26,14 @@ export class Breadcrumb {
26
26
  }
27
27
  }
28
28
  };
29
- this.pageTitle = undefined;
30
- this.href = undefined;
31
29
  this.current = false;
30
+ this.href = undefined;
31
+ this.pageTitle = undefined;
32
32
  this.showBackIcon = false;
33
33
  }
34
+ componentWillRender() {
35
+ this.setSlottedCurrentPageClass();
36
+ }
34
37
  /**
35
38
  * Sets focus on the breadcrumb.
36
39
  */
@@ -39,9 +42,6 @@ export class Breadcrumb {
39
42
  this.el.shadowRoot.querySelector("ic-link").focus();
40
43
  }
41
44
  }
42
- componentWillRender() {
43
- this.setSlottedCurrentPageClass();
44
- }
45
45
  render() {
46
46
  const { current, href, pageTitle } = this;
47
47
  const describedById = `${pageTitle && pageTitle.toLowerCase().replace(" ", "-")}-describedby`;
@@ -66,22 +66,23 @@ export class Breadcrumb {
66
66
  }
67
67
  static get properties() {
68
68
  return {
69
- "pageTitle": {
70
- "type": "string",
69
+ "current": {
70
+ "type": "boolean",
71
71
  "mutable": false,
72
72
  "complexType": {
73
- "original": "string",
74
- "resolved": "string",
73
+ "original": "boolean",
74
+ "resolved": "boolean",
75
75
  "references": {}
76
76
  },
77
- "required": true,
78
- "optional": false,
77
+ "required": false,
78
+ "optional": true,
79
79
  "docs": {
80
80
  "tags": [],
81
- "text": "The title of the breadcrumb."
81
+ "text": "If `true`, aria-current will be set on the breadcrumb."
82
82
  },
83
- "attribute": "page-title",
84
- "reflect": false
83
+ "attribute": "current",
84
+ "reflect": false,
85
+ "defaultValue": "false"
85
86
  },
86
87
  "href": {
87
88
  "type": "string",
@@ -100,23 +101,22 @@ export class Breadcrumb {
100
101
  "attribute": "href",
101
102
  "reflect": false
102
103
  },
103
- "current": {
104
- "type": "boolean",
104
+ "pageTitle": {
105
+ "type": "string",
105
106
  "mutable": false,
106
107
  "complexType": {
107
- "original": "boolean",
108
- "resolved": "boolean",
108
+ "original": "string",
109
+ "resolved": "string",
109
110
  "references": {}
110
111
  },
111
- "required": false,
112
- "optional": true,
112
+ "required": true,
113
+ "optional": false,
113
114
  "docs": {
114
115
  "tags": [],
115
- "text": "If `true`, aria-current will be set on the breadcrumb."
116
+ "text": "The title of the breadcrumb."
116
117
  },
117
- "attribute": "current",
118
- "reflect": false,
119
- "defaultValue": "false"
118
+ "attribute": "page-title",
119
+ "reflect": false
120
120
  },
121
121
  "showBackIcon": {
122
122
  "type": "boolean",