@ukic/web-components 2.1.0-beta.0 → 2.1.0-beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (826) hide show
  1. package/README.md +8 -0
  2. package/dist/cjs/OpenInNew-f9958725.js +7 -0
  3. package/dist/cjs/OpenInNew-f9958725.js.map +1 -0
  4. package/dist/cjs/{check-icon-999d9877.js → check-icon-b2f60716.js} +2 -2
  5. package/dist/cjs/check-icon-b2f60716.js.map +1 -0
  6. package/dist/cjs/{chevron-icon-d175fe66.js → chevron-icon-2645d6b0.js} +2 -2
  7. package/dist/cjs/chevron-icon-2645d6b0.js.map +1 -0
  8. package/dist/cjs/core.cjs.js +3 -3
  9. package/dist/cjs/core.cjs.js.map +1 -1
  10. package/dist/cjs/{helpers-d0eeccf0.js → helpers-6eb26e7a.js} +158 -40
  11. package/dist/cjs/helpers-6eb26e7a.js.map +1 -0
  12. package/dist/cjs/ic-alert.cjs.entry.js +6 -25
  13. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-back-to-top.cjs.entry.js +24 -12
  15. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
  17. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-breadcrumb.cjs.entry.js +14 -5
  19. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-button_3.cjs.entry.js +86 -37
  21. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-card.cjs.entry.js +43 -6
  23. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-checkbox-group.cjs.entry.js +4 -4
  25. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ic-checkbox.cjs.entry.js +19 -6
  27. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-chip.cjs.entry.js +77 -0
  29. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -0
  30. package/dist/cjs/ic-classification-banner.cjs.entry.js +3 -3
  31. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-data-entity.cjs.entry.js +2 -2
  33. package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-data-row.cjs.entry.js +14 -12
  35. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-divider.cjs.entry.js +3 -3
  37. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-footer-link-group.cjs.entry.js +4 -3
  39. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-footer-link.cjs.entry.js +12 -5
  41. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-footer.cjs.entry.js +5 -5
  43. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-hero.cjs.entry.js +3 -3
  45. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +158 -0
  47. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -0
  48. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +71 -41
  49. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-input-label_2.cjs.entry.js +6 -8
  51. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-link.cjs.entry.js +14 -8
  53. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-navigation-button.cjs.entry.js +5 -4
  55. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-navigation-group.cjs.entry.js +6 -5
  57. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-navigation-item.cjs.entry.js +18 -11
  59. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-navigation-menu.cjs.entry.js +8 -8
  61. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-page-header.cjs.entry.js +5 -5
  63. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-radio-group.cjs.entry.js +13 -5
  65. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ic-radio-option.cjs.entry.js +24 -6
  67. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ic-search-bar.cjs.entry.js +53 -41
  69. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  71. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-select.cjs.entry.js +206 -59
  73. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-side-navigation.cjs.entry.js +24 -12
  75. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  77. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-status-tag.cjs.entry.js +6 -5
  79. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-step.cjs.entry.js +103 -23
  81. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-stepper.cjs.entry.js +166 -42
  83. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-switch.cjs.entry.js +12 -3
  85. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-tab-context.cjs.entry.js +7 -2
  87. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-tab-group.cjs.entry.js +9 -118
  89. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -6
  91. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-tab.cjs.entry.js +10 -6
  93. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-text-field.cjs.entry.js +5 -5
  95. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-theme.cjs.entry.js +21 -13
  97. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-toast-region.cjs.entry.js +48 -0
  99. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -0
  100. package/dist/cjs/ic-toast.cjs.entry.js +165 -0
  101. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -0
  102. package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -10
  103. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ic-typography.cjs.entry.js +1 -1
  105. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  106. package/dist/cjs/{index-3ef30d9d.js → index-f79a4e53.js} +21 -2
  107. package/dist/cjs/index-f79a4e53.js.map +1 -0
  108. package/dist/cjs/loader.cjs.js +3 -3
  109. package/dist/cjs/loader.cjs.js.map +1 -1
  110. package/dist/cjs/types-3eb02246.js.map +1 -1
  111. package/dist/collection/assets/back-icon.svg +1 -1
  112. package/dist/collection/assets/check-icon.svg +1 -1
  113. package/dist/collection/assets/chevron-icon.svg +1 -1
  114. package/dist/collection/assets/dismiss-icon.svg +3 -0
  115. package/dist/collection/assets/error-icon.svg +3 -3
  116. package/dist/collection/assets/info-icon.svg +3 -3
  117. package/dist/collection/assets/neutral-icon.svg +3 -3
  118. package/dist/collection/assets/success-icon.svg +3 -3
  119. package/dist/collection/assets/warning-icon-outline.svg +3 -0
  120. package/dist/collection/assets/warning-icon.svg +3 -3
  121. package/dist/collection/collection-manifest.json +6 -2
  122. package/dist/collection/components/ic-alert/ic-alert.css +23 -17
  123. package/dist/collection/components/ic-alert/ic-alert.js +32 -24
  124. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  125. package/dist/collection/components/ic-back-to-top/assets/ArrowUpward.svg +2 -2
  126. package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +23 -7
  127. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +18 -7
  128. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
  129. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +6 -0
  130. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +33 -4
  131. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
  132. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +2 -2
  133. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
  134. package/dist/collection/components/ic-button/ic-button.css +26 -14
  135. package/dist/collection/components/ic-button/ic-button.js +17 -32
  136. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  137. package/dist/collection/components/ic-card/ic-card.css +66 -17
  138. package/dist/collection/components/ic-card/ic-card.js +123 -15
  139. package/dist/collection/components/ic-card/ic-card.js.map +1 -1
  140. package/dist/collection/components/ic-checkbox/ic-checkbox.css +65 -30
  141. package/dist/collection/components/ic-checkbox/ic-checkbox.js +66 -13
  142. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  143. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +18 -2
  144. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +11 -11
  145. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  146. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js +1 -1
  147. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +1 -1
  148. package/dist/collection/components/ic-chip/ic-chip.css +596 -0
  149. package/dist/collection/components/ic-chip/ic-chip.js +247 -0
  150. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -0
  151. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js +11 -0
  152. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js.map +1 -0
  153. package/dist/collection/components/ic-chip/ic-chip.types.js +2 -0
  154. package/dist/collection/components/ic-chip/ic-chip.types.js.map +1 -0
  155. package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +11 -1
  156. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +6 -6
  157. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
  158. package/dist/collection/components/ic-data-entity/ic-data-entity.css +7 -1
  159. package/dist/collection/components/ic-data-entity/ic-data-entity.js +2 -2
  160. package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +1 -1
  161. package/dist/collection/components/ic-data-row/ic-data-row.css +26 -8
  162. package/dist/collection/components/ic-data-row/ic-data-row.js +14 -12
  163. package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
  164. package/dist/collection/components/ic-divider/ic-divider.css +1 -1
  165. package/dist/collection/components/ic-divider/ic-divider.js +1 -1
  166. package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
  167. package/dist/collection/components/ic-footer/ic-footer.css +10 -4
  168. package/dist/collection/components/ic-footer/ic-footer.js +19 -16
  169. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  170. package/dist/collection/components/ic-footer-link/ic-footer-link.css +35 -3
  171. package/dist/collection/components/ic-footer-link/ic-footer-link.js +101 -4
  172. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  173. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +1 -1
  174. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +4 -3
  175. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  176. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js +1 -1
  177. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +1 -1
  178. package/dist/collection/components/ic-hero/ic-hero.css +35 -30
  179. package/dist/collection/components/ic-hero/ic-hero.js +10 -10
  180. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  181. package/dist/collection/components/ic-horizontal-scroll/assets/left-arrow.svg +3 -0
  182. package/dist/collection/components/ic-horizontal-scroll/assets/right-arrow.svg +3 -0
  183. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +539 -0
  184. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +213 -0
  185. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -0
  186. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js +34 -0
  187. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js.map +1 -0
  188. package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +31 -18
  189. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +8 -8
  190. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
  191. package/dist/collection/components/ic-input-container/ic-input-container.css +0 -1
  192. package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
  193. package/dist/collection/components/ic-input-container/ic-input-container.js.map +1 -1
  194. package/dist/collection/components/ic-input-label/ic-input-label.js +8 -8
  195. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  196. package/dist/collection/components/ic-input-validation/ic-input-validation.css +4 -5
  197. package/dist/collection/components/ic-input-validation/ic-input-validation.js +5 -5
  198. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  199. package/dist/collection/components/ic-link/ic-link.css +0 -9
  200. package/dist/collection/components/ic-link/ic-link.js +38 -11
  201. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  202. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +96 -105
  203. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +96 -16
  204. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  205. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -1
  206. package/dist/collection/components/ic-menu/ic-menu.css +26 -14
  207. package/dist/collection/components/ic-menu/ic-menu.js +135 -68
  208. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  209. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +9 -8
  210. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  211. package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +14 -7
  212. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +7 -6
  213. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  214. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +68 -18
  215. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +113 -16
  216. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  217. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +15 -11
  218. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +8 -8
  219. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  220. package/dist/collection/components/ic-page-header/ic-page-header.css +15 -5
  221. package/dist/collection/components/ic-page-header/ic-page-header.js +10 -10
  222. package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
  223. package/dist/collection/components/ic-radio-group/ic-radio-group.css +32 -0
  224. package/dist/collection/components/ic-radio-group/ic-radio-group.js +44 -13
  225. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  226. package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js +1 -1
  227. package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +1 -1
  228. package/dist/collection/components/ic-radio-option/ic-radio-option.css +58 -49
  229. package/dist/collection/components/ic-radio-option/ic-radio-option.js +65 -19
  230. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  231. package/dist/collection/components/ic-search-bar/ic-search-bar.css +24 -18
  232. package/dist/collection/components/ic-search-bar/ic-search-bar.js +87 -82
  233. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  234. package/dist/collection/components/ic-section-container/ic-section-container.css +1 -0
  235. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  236. package/dist/collection/components/ic-section-container/ic-section-container.js.map +1 -1
  237. package/dist/collection/components/ic-select/assets/Expand.svg +1 -1
  238. package/dist/collection/components/ic-select/ic-select.css +35 -18
  239. package/dist/collection/components/ic-select/ic-select.js +320 -77
  240. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  241. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +57 -36
  242. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +39 -23
  243. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  244. package/dist/collection/components/ic-skeleton/ic-skeleton.css +8 -0
  245. package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
  246. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
  247. package/dist/collection/components/ic-status-tag/ic-status-tag.css +15 -7
  248. package/dist/collection/components/ic-status-tag/ic-status-tag.js +22 -3
  249. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
  250. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js +1 -1
  251. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +1 -1
  252. package/dist/collection/components/ic-step/ic-step.css +157 -25
  253. package/dist/collection/components/ic-step/ic-step.js +270 -36
  254. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  255. package/dist/collection/components/ic-step/ic-step.types.js.map +1 -1
  256. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js +74 -0
  257. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js.map +1 -0
  258. package/dist/collection/components/ic-stepper/ic-stepper.css +15 -1
  259. package/dist/collection/components/ic-stepper/ic-stepper.js +210 -40
  260. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  261. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js +13 -1
  262. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +1 -1
  263. package/dist/collection/components/ic-switch/ic-switch.css +48 -18
  264. package/dist/collection/components/ic-switch/ic-switch.js +36 -7
  265. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  266. package/dist/collection/components/ic-tab/ic-tab.css +12 -2
  267. package/dist/collection/components/ic-tab/ic-tab.js +39 -12
  268. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  269. package/dist/collection/components/ic-tab-context/ic-tab-context.js +31 -4
  270. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  271. package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js +1 -1
  272. package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +1 -1
  273. package/dist/collection/components/ic-tab-group/ic-tab-group.css +6 -120
  274. package/dist/collection/components/ic-tab-group/ic-tab-group.js +12 -156
  275. package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
  276. package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +4 -0
  277. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +4 -8
  278. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
  279. package/dist/collection/components/ic-text-field/ic-text-field.css +18 -7
  280. package/dist/collection/components/ic-text-field/ic-text-field.js +32 -32
  281. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  282. package/dist/collection/components/ic-theme/ic-theme.js +29 -16
  283. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
  284. package/dist/collection/components/ic-toast/ic-toast.css +597 -0
  285. package/dist/collection/components/ic-toast/ic-toast.js +382 -0
  286. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -0
  287. package/dist/collection/components/ic-toast/ic-toast.test.a11y.js +16 -0
  288. package/dist/collection/components/ic-toast/ic-toast.test.a11y.js.map +1 -0
  289. package/dist/collection/components/ic-toast/ic-toast.types.js +2 -0
  290. package/dist/collection/components/ic-toast/ic-toast.types.js.map +1 -0
  291. package/dist/collection/components/ic-toast-region/ic-toast-region.js +81 -0
  292. package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -0
  293. package/dist/collection/components/ic-tooltip/ic-tooltip.css +13 -9
  294. package/dist/collection/components/ic-tooltip/ic-tooltip.js +25 -2
  295. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  296. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +108 -113
  297. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +21 -15
  298. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  299. package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js +1 -1
  300. package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +1 -1
  301. package/dist/collection/components/ic-typography/ic-typography.js +1 -1
  302. package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
  303. package/dist/collection/normalize.css +440 -0
  304. package/dist/collection/testspec.setup.js +8 -0
  305. package/dist/collection/testspec.setup.js.map +1 -1
  306. package/dist/collection/utils/constants.js +37 -0
  307. package/dist/collection/utils/constants.js.map +1 -1
  308. package/dist/collection/utils/helpers.js +80 -38
  309. package/dist/collection/utils/helpers.js.map +1 -1
  310. package/dist/collection/utils/types.js.map +1 -1
  311. package/dist/components/OpenInNew.js +5 -0
  312. package/dist/components/OpenInNew.js.map +1 -0
  313. package/dist/components/check-icon.js +1 -1
  314. package/dist/components/chevron-icon.js +1 -1
  315. package/dist/components/helpers.js +147 -38
  316. package/dist/components/helpers.js.map +1 -1
  317. package/dist/components/ic-alert.js +6 -25
  318. package/dist/components/ic-alert.js.map +1 -1
  319. package/dist/components/ic-back-to-top.js +23 -11
  320. package/dist/components/ic-back-to-top.js.map +1 -1
  321. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  322. package/dist/components/ic-breadcrumb2.js +14 -4
  323. package/dist/components/ic-breadcrumb2.js.map +1 -1
  324. package/dist/components/ic-button2.js +9 -21
  325. package/dist/components/ic-button2.js.map +1 -1
  326. package/dist/components/ic-card.js +68 -7
  327. package/dist/components/ic-card.js.map +1 -1
  328. package/dist/components/ic-checkbox-group.js +4 -4
  329. package/dist/components/ic-checkbox-group.js.map +1 -1
  330. package/dist/components/ic-checkbox.js +21 -7
  331. package/dist/components/ic-checkbox.js.map +1 -1
  332. package/dist/components/ic-chip.d.ts +11 -0
  333. package/dist/components/ic-chip.js +111 -0
  334. package/dist/components/ic-chip.js.map +1 -0
  335. package/dist/components/ic-classification-banner.js +2 -2
  336. package/dist/components/ic-classification-banner.js.map +1 -1
  337. package/dist/components/ic-data-entity.js +1 -1
  338. package/dist/components/ic-data-entity.js.map +1 -1
  339. package/dist/components/ic-data-row.js +12 -10
  340. package/dist/components/ic-data-row.js.map +1 -1
  341. package/dist/components/ic-divider2.js +3 -3
  342. package/dist/components/ic-divider2.js.map +1 -1
  343. package/dist/components/ic-footer-link-group.js +5 -4
  344. package/dist/components/ic-footer-link-group.js.map +1 -1
  345. package/dist/components/ic-footer-link.js +18 -6
  346. package/dist/components/ic-footer-link.js.map +1 -1
  347. package/dist/components/ic-footer.js +5 -5
  348. package/dist/components/ic-footer.js.map +1 -1
  349. package/dist/components/ic-hero.js +3 -3
  350. package/dist/components/ic-hero.js.map +1 -1
  351. package/dist/components/ic-horizontal-scroll.d.ts +11 -0
  352. package/dist/components/ic-horizontal-scroll.js +8 -0
  353. package/dist/components/ic-horizontal-scroll.js.map +1 -0
  354. package/dist/components/ic-horizontal-scroll2.js +199 -0
  355. package/dist/components/ic-horizontal-scroll2.js.map +1 -0
  356. package/dist/components/ic-input-component-container2.js +2 -3
  357. package/dist/components/ic-input-component-container2.js.map +1 -1
  358. package/dist/components/ic-input-container2.js +1 -1
  359. package/dist/components/ic-input-container2.js.map +1 -1
  360. package/dist/components/ic-input-label2.js +1 -1
  361. package/dist/components/ic-input-label2.js.map +1 -1
  362. package/dist/components/ic-input-validation2.js +2 -4
  363. package/dist/components/ic-input-validation2.js.map +1 -1
  364. package/dist/components/ic-link2.js +16 -9
  365. package/dist/components/ic-link2.js.map +1 -1
  366. package/dist/components/ic-loading-indicator2.js +74 -15
  367. package/dist/components/ic-loading-indicator2.js.map +1 -1
  368. package/dist/components/ic-menu2.js +66 -35
  369. package/dist/components/ic-menu2.js.map +1 -1
  370. package/dist/components/ic-navigation-button.js +6 -5
  371. package/dist/components/ic-navigation-button.js.map +1 -1
  372. package/dist/components/ic-navigation-group.js +6 -5
  373. package/dist/components/ic-navigation-group.js.map +1 -1
  374. package/dist/components/ic-navigation-item.js +23 -11
  375. package/dist/components/ic-navigation-item.js.map +1 -1
  376. package/dist/components/ic-navigation-menu2.js +8 -8
  377. package/dist/components/ic-navigation-menu2.js.map +1 -1
  378. package/dist/components/ic-page-header.js +30 -6
  379. package/dist/components/ic-page-header.js.map +1 -1
  380. package/dist/components/ic-radio-group.js +14 -5
  381. package/dist/components/ic-radio-group.js.map +1 -1
  382. package/dist/components/ic-radio-option.js +26 -7
  383. package/dist/components/ic-radio-option.js.map +1 -1
  384. package/dist/components/ic-search-bar.js +56 -43
  385. package/dist/components/ic-search-bar.js.map +1 -1
  386. package/dist/components/ic-section-container2.js +1 -1
  387. package/dist/components/ic-section-container2.js.map +1 -1
  388. package/dist/components/ic-select.js +212 -59
  389. package/dist/components/ic-select.js.map +1 -1
  390. package/dist/components/ic-side-navigation.js +23 -11
  391. package/dist/components/ic-side-navigation.js.map +1 -1
  392. package/dist/components/ic-skeleton.js +1 -1
  393. package/dist/components/ic-skeleton.js.map +1 -1
  394. package/dist/components/ic-status-tag.js +6 -4
  395. package/dist/components/ic-status-tag.js.map +1 -1
  396. package/dist/components/ic-step.js +117 -23
  397. package/dist/components/ic-step.js.map +1 -1
  398. package/dist/components/ic-stepper.js +173 -42
  399. package/dist/components/ic-stepper.js.map +1 -1
  400. package/dist/components/ic-switch.js +14 -4
  401. package/dist/components/ic-switch.js.map +1 -1
  402. package/dist/components/ic-tab-context.js +6 -1
  403. package/dist/components/ic-tab-context.js.map +1 -1
  404. package/dist/components/ic-tab-group.js +30 -125
  405. package/dist/components/ic-tab-group.js.map +1 -1
  406. package/dist/components/ic-tab-panel.js +1 -5
  407. package/dist/components/ic-tab-panel.js.map +1 -1
  408. package/dist/components/ic-tab.js +11 -6
  409. package/dist/components/ic-tab.js.map +1 -1
  410. package/dist/components/ic-text-field2.js +6 -6
  411. package/dist/components/ic-text-field2.js.map +1 -1
  412. package/dist/components/ic-theme.js +20 -12
  413. package/dist/components/ic-theme.js.map +1 -1
  414. package/dist/components/ic-toast-region.d.ts +11 -0
  415. package/dist/components/ic-toast-region.js +63 -0
  416. package/dist/components/ic-toast-region.js.map +1 -0
  417. package/dist/components/ic-toast.d.ts +11 -0
  418. package/dist/components/ic-toast.js +214 -0
  419. package/dist/components/ic-toast.js.map +1 -0
  420. package/dist/components/ic-tooltip2.js +10 -4
  421. package/dist/components/ic-tooltip2.js.map +1 -1
  422. package/dist/components/ic-top-navigation.js +23 -12
  423. package/dist/components/ic-top-navigation.js.map +1 -1
  424. package/dist/components/ic-typography2.js.map +1 -1
  425. package/dist/components/index.d.ts +5 -1
  426. package/dist/components/index.js +4 -0
  427. package/dist/components/index.js.map +1 -1
  428. package/dist/components/types.js.map +1 -1
  429. package/dist/core/core.css +13 -13
  430. package/dist/core/core.esm.js +1 -1
  431. package/dist/core/core.esm.js.map +1 -1
  432. package/dist/core/normalize.css +440 -0
  433. package/dist/core/p-1724000c.js +2 -0
  434. package/dist/core/p-1724000c.js.map +1 -0
  435. package/dist/core/p-18ae4b6d.entry.js +2 -0
  436. package/dist/core/p-18ae4b6d.entry.js.map +1 -0
  437. package/dist/core/p-18bf3cb0.entry.js +2 -0
  438. package/dist/core/p-18bf3cb0.entry.js.map +1 -0
  439. package/dist/core/p-24240e11.js +2 -0
  440. package/dist/core/p-284970bc.entry.js +2 -0
  441. package/dist/core/p-284970bc.entry.js.map +1 -0
  442. package/dist/core/p-31a595c1.entry.js +2 -0
  443. package/dist/core/p-31a595c1.entry.js.map +1 -0
  444. package/dist/core/{p-972f4e69.entry.js → p-35a03442.entry.js} +2 -2
  445. package/dist/core/p-35a03442.entry.js.map +1 -0
  446. package/dist/core/p-360adc51.entry.js +2 -0
  447. package/dist/core/p-360adc51.entry.js.map +1 -0
  448. package/dist/core/p-3dda76db.entry.js +2 -0
  449. package/dist/core/p-3dda76db.entry.js.map +1 -0
  450. package/dist/core/p-41e239cb.entry.js +2 -0
  451. package/dist/core/p-41e239cb.entry.js.map +1 -0
  452. package/dist/core/p-44c9612c.entry.js +2 -0
  453. package/dist/core/p-44c9612c.entry.js.map +1 -0
  454. package/dist/core/p-4a73728b.entry.js +2 -0
  455. package/dist/core/p-4a73728b.entry.js.map +1 -0
  456. package/dist/core/p-521be4e2.entry.js +2 -0
  457. package/dist/core/p-521be4e2.entry.js.map +1 -0
  458. package/dist/core/{p-f9370be6.js → p-5450cebf.js} +3 -3
  459. package/dist/core/p-5450cebf.js.map +1 -0
  460. package/dist/core/p-5b083ce5.entry.js +2 -0
  461. package/dist/core/p-5b083ce5.entry.js.map +1 -0
  462. package/dist/core/p-62b3516e.entry.js +2 -0
  463. package/dist/core/p-62b3516e.entry.js.map +1 -0
  464. package/dist/core/{p-3c6defd7.entry.js → p-691ea0f2.entry.js} +2 -2
  465. package/dist/core/p-691ea0f2.entry.js.map +1 -0
  466. package/dist/core/p-6a397882.entry.js +2 -0
  467. package/dist/core/p-6a397882.entry.js.map +1 -0
  468. package/dist/core/p-6f57b13c.js.map +1 -1
  469. package/dist/core/p-7818d958.entry.js +2 -0
  470. package/dist/core/p-7818d958.entry.js.map +1 -0
  471. package/dist/core/p-7a0bf893.entry.js +2 -0
  472. package/dist/core/p-7a0bf893.entry.js.map +1 -0
  473. package/dist/core/p-7a9bc7f2.entry.js +2 -0
  474. package/dist/core/p-7a9bc7f2.entry.js.map +1 -0
  475. package/dist/core/{p-eb33ece2.entry.js → p-7fd50355.entry.js} +2 -2
  476. package/dist/core/p-7fd50355.entry.js.map +1 -0
  477. package/dist/core/p-897e967a.entry.js +2 -0
  478. package/dist/core/p-897e967a.entry.js.map +1 -0
  479. package/dist/core/p-8c7f4343.js +2 -0
  480. package/dist/core/p-8d4f7027.js +2 -0
  481. package/dist/core/p-8f1176c6.entry.js +2 -0
  482. package/dist/core/p-8f1176c6.entry.js.map +1 -0
  483. package/dist/core/{p-9c1f2861.entry.js → p-8ffa00c9.entry.js} +2 -2
  484. package/dist/core/p-8ffa00c9.entry.js.map +1 -0
  485. package/dist/core/p-91a8db51.entry.js +2 -0
  486. package/dist/core/p-91a8db51.entry.js.map +1 -0
  487. package/dist/core/p-a09d853e.entry.js +2 -0
  488. package/dist/core/p-a09d853e.entry.js.map +1 -0
  489. package/dist/core/p-a10da430.entry.js +2 -0
  490. package/dist/core/p-a10da430.entry.js.map +1 -0
  491. package/dist/core/p-a667e329.entry.js +2 -0
  492. package/dist/core/p-a667e329.entry.js.map +1 -0
  493. package/dist/core/{p-6be5e06b.entry.js → p-ad2477d8.entry.js} +2 -2
  494. package/dist/core/p-ad2477d8.entry.js.map +1 -0
  495. package/dist/core/p-b35ae170.entry.js +2 -0
  496. package/dist/core/p-b35ae170.entry.js.map +1 -0
  497. package/dist/core/p-b40bd77c.entry.js +2 -0
  498. package/dist/core/p-b40bd77c.entry.js.map +1 -0
  499. package/dist/core/p-b4234318.entry.js +2 -0
  500. package/dist/core/p-b4234318.entry.js.map +1 -0
  501. package/dist/core/{p-0d63bfe4.entry.js → p-ba8d6c23.entry.js} +2 -2
  502. package/dist/core/p-ba8d6c23.entry.js.map +1 -0
  503. package/dist/core/p-bd819f68.entry.js +2 -0
  504. package/dist/core/p-bd819f68.entry.js.map +1 -0
  505. package/dist/core/p-c4a7c734.entry.js +2 -0
  506. package/dist/core/p-c4a7c734.entry.js.map +1 -0
  507. package/dist/core/p-c72e4b75.entry.js +2 -0
  508. package/dist/core/p-c72e4b75.entry.js.map +1 -0
  509. package/dist/core/p-c7b86643.entry.js +2 -0
  510. package/dist/core/p-c7b86643.entry.js.map +1 -0
  511. package/dist/core/p-c7c5d2c5.entry.js +2 -0
  512. package/dist/core/p-c7c5d2c5.entry.js.map +1 -0
  513. package/dist/core/p-c8f07be6.entry.js +2 -0
  514. package/dist/core/p-c8f07be6.entry.js.map +1 -0
  515. package/dist/core/{p-6d0eaaeb.entry.js → p-c9068822.entry.js} +2 -2
  516. package/dist/core/{p-6d0eaaeb.entry.js.map → p-c9068822.entry.js.map} +1 -1
  517. package/dist/core/p-cccbf2bf.entry.js +2 -0
  518. package/dist/core/p-cccbf2bf.entry.js.map +1 -0
  519. package/dist/core/{p-0992a2ee.entry.js → p-d2508752.entry.js} +2 -2
  520. package/dist/core/p-d2508752.entry.js.map +1 -0
  521. package/dist/core/p-d37b9695.entry.js +2 -0
  522. package/dist/core/p-d37b9695.entry.js.map +1 -0
  523. package/dist/core/p-d86b0d0e.entry.js +2 -0
  524. package/dist/core/p-d86b0d0e.entry.js.map +1 -0
  525. package/dist/core/p-dea3d5f0.entry.js +2 -0
  526. package/dist/core/p-dea3d5f0.entry.js.map +1 -0
  527. package/dist/core/p-e0d88c31.entry.js +2 -0
  528. package/dist/core/p-e0d88c31.entry.js.map +1 -0
  529. package/dist/core/p-e9202767.entry.js +2 -0
  530. package/dist/core/p-e9202767.entry.js.map +1 -0
  531. package/dist/core/p-eba373bf.entry.js +2 -0
  532. package/dist/core/p-eba373bf.entry.js.map +1 -0
  533. package/dist/core/p-ed6cf9b9.entry.js +2 -0
  534. package/dist/core/p-ed6cf9b9.entry.js.map +1 -0
  535. package/dist/esm/OpenInNew-67a881e0.js +5 -0
  536. package/dist/esm/OpenInNew-67a881e0.js.map +1 -0
  537. package/dist/esm/{check-icon-53f1d9e5.js → check-icon-abb210ec.js} +2 -2
  538. package/dist/esm/check-icon-abb210ec.js.map +1 -0
  539. package/dist/esm/chevron-icon-98c98242.js +8 -0
  540. package/dist/esm/chevron-icon-98c98242.js.map +1 -0
  541. package/dist/esm/core.js +3 -3
  542. package/dist/esm/core.js.map +1 -1
  543. package/dist/esm/{helpers-e090fe7e.js → helpers-c332acf8.js} +148 -39
  544. package/dist/esm/helpers-c332acf8.js.map +1 -0
  545. package/dist/esm/ic-alert.entry.js +6 -25
  546. package/dist/esm/ic-alert.entry.js.map +1 -1
  547. package/dist/esm/ic-back-to-top.entry.js +24 -12
  548. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  549. package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
  550. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  551. package/dist/esm/ic-breadcrumb.entry.js +14 -5
  552. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  553. package/dist/esm/ic-button_3.entry.js +86 -37
  554. package/dist/esm/ic-button_3.entry.js.map +1 -1
  555. package/dist/esm/ic-card.entry.js +43 -6
  556. package/dist/esm/ic-card.entry.js.map +1 -1
  557. package/dist/esm/ic-checkbox-group.entry.js +4 -4
  558. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  559. package/dist/esm/ic-checkbox.entry.js +19 -6
  560. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  561. package/dist/esm/ic-chip.entry.js +73 -0
  562. package/dist/esm/ic-chip.entry.js.map +1 -0
  563. package/dist/esm/ic-classification-banner.entry.js +3 -3
  564. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  565. package/dist/esm/ic-data-entity.entry.js +2 -2
  566. package/dist/esm/ic-data-entity.entry.js.map +1 -1
  567. package/dist/esm/ic-data-row.entry.js +14 -12
  568. package/dist/esm/ic-data-row.entry.js.map +1 -1
  569. package/dist/esm/ic-divider.entry.js +3 -3
  570. package/dist/esm/ic-divider.entry.js.map +1 -1
  571. package/dist/esm/ic-footer-link-group.entry.js +4 -3
  572. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  573. package/dist/esm/ic-footer-link.entry.js +12 -5
  574. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  575. package/dist/esm/ic-footer.entry.js +5 -5
  576. package/dist/esm/ic-footer.entry.js.map +1 -1
  577. package/dist/esm/ic-hero.entry.js +3 -3
  578. package/dist/esm/ic-hero.entry.js.map +1 -1
  579. package/dist/esm/ic-horizontal-scroll.entry.js +154 -0
  580. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -0
  581. package/dist/esm/ic-input-component-container_3.entry.js +70 -40
  582. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  583. package/dist/esm/ic-input-label_2.entry.js +3 -5
  584. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  585. package/dist/esm/ic-link.entry.js +13 -7
  586. package/dist/esm/ic-link.entry.js.map +1 -1
  587. package/dist/esm/ic-navigation-button.entry.js +5 -4
  588. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  589. package/dist/esm/ic-navigation-group.entry.js +6 -5
  590. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  591. package/dist/esm/ic-navigation-item.entry.js +18 -11
  592. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  593. package/dist/esm/ic-navigation-menu.entry.js +8 -8
  594. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  595. package/dist/esm/ic-page-header.entry.js +5 -5
  596. package/dist/esm/ic-page-header.entry.js.map +1 -1
  597. package/dist/esm/ic-radio-group.entry.js +13 -5
  598. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  599. package/dist/esm/ic-radio-option.entry.js +24 -6
  600. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  601. package/dist/esm/ic-search-bar.entry.js +53 -41
  602. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  603. package/dist/esm/ic-section-container.entry.js +2 -2
  604. package/dist/esm/ic-section-container.entry.js.map +1 -1
  605. package/dist/esm/ic-select.entry.js +206 -59
  606. package/dist/esm/ic-select.entry.js.map +1 -1
  607. package/dist/esm/ic-side-navigation.entry.js +24 -12
  608. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  609. package/dist/esm/ic-skeleton.entry.js +2 -2
  610. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  611. package/dist/esm/ic-status-tag.entry.js +6 -5
  612. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  613. package/dist/esm/ic-step.entry.js +103 -23
  614. package/dist/esm/ic-step.entry.js.map +1 -1
  615. package/dist/esm/ic-stepper.entry.js +166 -42
  616. package/dist/esm/ic-stepper.entry.js.map +1 -1
  617. package/dist/esm/ic-switch.entry.js +12 -3
  618. package/dist/esm/ic-switch.entry.js.map +1 -1
  619. package/dist/esm/ic-tab-context.entry.js +7 -2
  620. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  621. package/dist/esm/ic-tab-group.entry.js +9 -118
  622. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  623. package/dist/esm/ic-tab-panel.entry.js +2 -6
  624. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  625. package/dist/esm/ic-tab.entry.js +10 -6
  626. package/dist/esm/ic-tab.entry.js.map +1 -1
  627. package/dist/esm/ic-text-field.entry.js +5 -5
  628. package/dist/esm/ic-text-field.entry.js.map +1 -1
  629. package/dist/esm/ic-theme.entry.js +21 -13
  630. package/dist/esm/ic-theme.entry.js.map +1 -1
  631. package/dist/esm/ic-toast-region.entry.js +44 -0
  632. package/dist/esm/ic-toast-region.entry.js.map +1 -0
  633. package/dist/esm/ic-toast.entry.js +161 -0
  634. package/dist/esm/ic-toast.entry.js.map +1 -0
  635. package/dist/esm/ic-top-navigation.entry.js +15 -10
  636. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  637. package/dist/esm/ic-typography.entry.js +1 -1
  638. package/dist/esm/ic-typography.entry.js.map +1 -1
  639. package/dist/esm/{index-1500de1f.js → index-90721b3c.js} +21 -2
  640. package/dist/esm/index-90721b3c.js.map +1 -0
  641. package/dist/esm/loader.js +3 -3
  642. package/dist/esm/loader.js.map +1 -1
  643. package/dist/esm/types-dd515332.js.map +1 -1
  644. package/dist/types/components/ic-alert/ic-alert.d.ts +14 -10
  645. package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +1 -0
  646. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +9 -5
  647. package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +2 -2
  648. package/dist/types/components/ic-button/ic-button.d.ts +11 -14
  649. package/dist/types/components/ic-card/ic-card.d.ts +35 -10
  650. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +18 -10
  651. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +9 -9
  652. package/dist/types/components/ic-chip/ic-chip.d.ts +48 -0
  653. package/dist/types/components/ic-chip/ic-chip.test.a11y.d.ts +1 -0
  654. package/dist/types/components/ic-chip/ic-chip.types.d.ts +2 -0
  655. package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +5 -5
  656. package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +2 -2
  657. package/dist/types/components/ic-data-row/ic-data-row.d.ts +3 -3
  658. package/dist/types/components/ic-footer/ic-footer.d.ts +12 -12
  659. package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +20 -0
  660. package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +1 -1
  661. package/dist/types/components/ic-hero/ic-hero.d.ts +9 -9
  662. package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +39 -0
  663. package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.d.ts +1 -0
  664. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +8 -8
  665. package/dist/types/components/ic-input-container/ic-input-container.d.ts +2 -2
  666. package/dist/types/components/ic-input-label/ic-input-label.d.ts +8 -8
  667. package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +5 -5
  668. package/dist/types/components/ic-link/ic-link.d.ts +10 -7
  669. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +15 -4
  670. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +5 -0
  671. package/dist/types/components/ic-menu/ic-menu.d.ts +36 -18
  672. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +6 -6
  673. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +3 -3
  674. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +28 -8
  675. package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +2 -2
  676. package/dist/types/components/ic-page-header/ic-page-header.d.ts +10 -8
  677. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +15 -11
  678. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +17 -11
  679. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +31 -30
  680. package/dist/types/components/ic-section-container/ic-section-container.d.ts +2 -2
  681. package/dist/types/components/ic-select/ic-select.d.ts +68 -23
  682. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +13 -12
  683. package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +2 -2
  684. package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +5 -1
  685. package/dist/types/components/ic-step/ic-step.d.ts +37 -9
  686. package/dist/types/components/ic-step/ic-step.types.d.ts +2 -0
  687. package/dist/types/components/ic-stepper/ic-stepper-test-examples.d.ts +4 -0
  688. package/dist/types/components/ic-stepper/ic-stepper.d.ts +23 -6
  689. package/dist/types/components/ic-switch/ic-switch.d.ts +11 -7
  690. package/dist/types/components/ic-tab/ic-tab.d.ts +10 -7
  691. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +8 -4
  692. package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +5 -33
  693. package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +3 -4
  694. package/dist/types/components/ic-text-field/ic-text-field.d.ts +31 -31
  695. package/dist/types/components/ic-theme/ic-theme.d.ts +5 -4
  696. package/dist/types/components/ic-toast/ic-toast.d.ts +66 -0
  697. package/dist/types/components/ic-toast/ic-toast.test.a11y.d.ts +1 -0
  698. package/dist/types/components/ic-toast/ic-toast.types.d.ts +1 -0
  699. package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +12 -0
  700. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +4 -0
  701. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +7 -6
  702. package/dist/types/components/ic-typography/ic-typography.d.ts +1 -1
  703. package/dist/types/components.d.ts +937 -562
  704. package/dist/types/interface.d.ts +0 -1
  705. package/dist/types/testspec.setup.d.ts +1 -0
  706. package/dist/types/utils/constants.d.ts +24 -0
  707. package/dist/types/utils/helpers.d.ts +17 -3
  708. package/dist/types/utils/types.d.ts +6 -0
  709. package/hydrate/index.d.ts +1 -1
  710. package/hydrate/index.js +1768 -667
  711. package/package.json +9 -6
  712. package/dist/cjs/check-icon-999d9877.js.map +0 -1
  713. package/dist/cjs/chevron-icon-d175fe66.js.map +0 -1
  714. package/dist/cjs/error-icon-99504103.js +0 -18
  715. package/dist/cjs/error-icon-99504103.js.map +0 -1
  716. package/dist/cjs/helpers-d0eeccf0.js.map +0 -1
  717. package/dist/cjs/index-3ef30d9d.js.map +0 -1
  718. package/dist/cjs/success-icon-887b2097.js +0 -11
  719. package/dist/cjs/success-icon-887b2097.js.map +0 -1
  720. package/dist/collection/components/ic-alert/ic-alert.types.js +0 -2
  721. package/dist/collection/components/ic-alert/ic-alert.types.js.map +0 -1
  722. package/dist/collection/components/ic-tab-group/assets/left-arrow.svg +0 -3
  723. package/dist/collection/components/ic-tab-group/assets/right-arrow.svg +0 -3
  724. package/dist/components/error-icon.js +0 -15
  725. package/dist/components/error-icon.js.map +0 -1
  726. package/dist/components/success-icon.js +0 -9
  727. package/dist/components/success-icon.js.map +0 -1
  728. package/dist/core/p-037273aa.entry.js +0 -2
  729. package/dist/core/p-037273aa.entry.js.map +0 -1
  730. package/dist/core/p-0992a2ee.entry.js.map +0 -1
  731. package/dist/core/p-0d63bfe4.entry.js.map +0 -1
  732. package/dist/core/p-12e113bf.entry.js +0 -2
  733. package/dist/core/p-12e113bf.entry.js.map +0 -1
  734. package/dist/core/p-155114db.entry.js +0 -2
  735. package/dist/core/p-155114db.entry.js.map +0 -1
  736. package/dist/core/p-17d0d631.entry.js +0 -2
  737. package/dist/core/p-17d0d631.entry.js.map +0 -1
  738. package/dist/core/p-1b619302.entry.js +0 -2
  739. package/dist/core/p-1b619302.entry.js.map +0 -1
  740. package/dist/core/p-1e7b4310.js +0 -2
  741. package/dist/core/p-2177dae2.entry.js +0 -2
  742. package/dist/core/p-2177dae2.entry.js.map +0 -1
  743. package/dist/core/p-378a7270.entry.js +0 -2
  744. package/dist/core/p-378a7270.entry.js.map +0 -1
  745. package/dist/core/p-3c6defd7.entry.js.map +0 -1
  746. package/dist/core/p-40d3fd89.entry.js +0 -2
  747. package/dist/core/p-40d3fd89.entry.js.map +0 -1
  748. package/dist/core/p-48029498.entry.js +0 -2
  749. package/dist/core/p-48029498.entry.js.map +0 -1
  750. package/dist/core/p-50a0f1a0.entry.js +0 -2
  751. package/dist/core/p-50a0f1a0.entry.js.map +0 -1
  752. package/dist/core/p-54b77947.entry.js +0 -2
  753. package/dist/core/p-54b77947.entry.js.map +0 -1
  754. package/dist/core/p-59041cfc.entry.js +0 -2
  755. package/dist/core/p-59041cfc.entry.js.map +0 -1
  756. package/dist/core/p-5977c1e0.entry.js +0 -2
  757. package/dist/core/p-5977c1e0.entry.js.map +0 -1
  758. package/dist/core/p-6009c5bc.entry.js +0 -2
  759. package/dist/core/p-6009c5bc.entry.js.map +0 -1
  760. package/dist/core/p-6be5e06b.entry.js.map +0 -1
  761. package/dist/core/p-7577c6a3.entry.js +0 -2
  762. package/dist/core/p-7577c6a3.entry.js.map +0 -1
  763. package/dist/core/p-8054c2c0.entry.js +0 -2
  764. package/dist/core/p-8054c2c0.entry.js.map +0 -1
  765. package/dist/core/p-89d46b9b.entry.js +0 -2
  766. package/dist/core/p-89d46b9b.entry.js.map +0 -1
  767. package/dist/core/p-972f4e69.entry.js.map +0 -1
  768. package/dist/core/p-9a3d6bca.entry.js +0 -2
  769. package/dist/core/p-9a3d6bca.entry.js.map +0 -1
  770. package/dist/core/p-9c1f2861.entry.js.map +0 -1
  771. package/dist/core/p-9db8edb7.entry.js +0 -2
  772. package/dist/core/p-9db8edb7.entry.js.map +0 -1
  773. package/dist/core/p-9e1f450f.entry.js +0 -2
  774. package/dist/core/p-9e1f450f.entry.js.map +0 -1
  775. package/dist/core/p-a183353c.entry.js +0 -2
  776. package/dist/core/p-a183353c.entry.js.map +0 -1
  777. package/dist/core/p-a6715f61.entry.js +0 -2
  778. package/dist/core/p-a6715f61.entry.js.map +0 -1
  779. package/dist/core/p-a9237c61.entry.js +0 -2
  780. package/dist/core/p-a9237c61.entry.js.map +0 -1
  781. package/dist/core/p-aad5da60.entry.js +0 -2
  782. package/dist/core/p-aad5da60.entry.js.map +0 -1
  783. package/dist/core/p-ae6aa67f.js +0 -2
  784. package/dist/core/p-af6a41bd.entry.js +0 -2
  785. package/dist/core/p-af6a41bd.entry.js.map +0 -1
  786. package/dist/core/p-bf4ddf33.entry.js +0 -2
  787. package/dist/core/p-bf4ddf33.entry.js.map +0 -1
  788. package/dist/core/p-bf5717ca.js +0 -2
  789. package/dist/core/p-bfa9392f.entry.js +0 -2
  790. package/dist/core/p-bfa9392f.entry.js.map +0 -1
  791. package/dist/core/p-c023c49c.entry.js +0 -2
  792. package/dist/core/p-c023c49c.entry.js.map +0 -1
  793. package/dist/core/p-c96adfd7.entry.js +0 -2
  794. package/dist/core/p-c96adfd7.entry.js.map +0 -1
  795. package/dist/core/p-d38168f0.entry.js +0 -2
  796. package/dist/core/p-d38168f0.entry.js.map +0 -1
  797. package/dist/core/p-d61c2983.entry.js +0 -2
  798. package/dist/core/p-d61c2983.entry.js.map +0 -1
  799. package/dist/core/p-db6566c0.entry.js +0 -2
  800. package/dist/core/p-db6566c0.entry.js.map +0 -1
  801. package/dist/core/p-e28af65b.js +0 -2
  802. package/dist/core/p-e28af65b.js.map +0 -1
  803. package/dist/core/p-eb33ece2.entry.js.map +0 -1
  804. package/dist/core/p-ee3a9fd0.entry.js +0 -2
  805. package/dist/core/p-ee3a9fd0.entry.js.map +0 -1
  806. package/dist/core/p-ef59f111.entry.js +0 -2
  807. package/dist/core/p-ef59f111.entry.js.map +0 -1
  808. package/dist/core/p-f228c232.js +0 -2
  809. package/dist/core/p-f228c232.js.map +0 -1
  810. package/dist/core/p-f9370be6.js.map +0 -1
  811. package/dist/core/p-fce4b26b.entry.js +0 -2
  812. package/dist/core/p-fce4b26b.entry.js.map +0 -1
  813. package/dist/esm/check-icon-53f1d9e5.js.map +0 -1
  814. package/dist/esm/chevron-icon-5b38c60a.js +0 -8
  815. package/dist/esm/chevron-icon-5b38c60a.js.map +0 -1
  816. package/dist/esm/error-icon-6046a380.js +0 -15
  817. package/dist/esm/error-icon-6046a380.js.map +0 -1
  818. package/dist/esm/helpers-e090fe7e.js.map +0 -1
  819. package/dist/esm/index-1500de1f.js.map +0 -1
  820. package/dist/esm/success-icon-2f71b115.js +0 -9
  821. package/dist/esm/success-icon-2f71b115.js.map +0 -1
  822. package/dist/types/components/ic-alert/ic-alert.types.d.ts +0 -1
  823. /package/dist/collection/{components/ic-link/assets → assets}/OpenInNew.svg +0 -0
  824. /package/dist/core/{p-1e7b4310.js.map → p-24240e11.js.map} +0 -0
  825. /package/dist/core/{p-ae6aa67f.js.map → p-8c7f4343.js.map} +0 -0
  826. /package/dist/core/{p-bf5717ca.js.map → p-8d4f7027.js.map} +0 -0
@@ -1,32 +1,40 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-1500de1f.js';
2
- import { A as hexToRgb, B as rgbStrToObj, j as getThemeForegroundColor } from './helpers-e090fe7e.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-90721b3c.js';
2
+ import { A as getThemeColorBrightness, B as BLACK_MIN_COLOR_BRIGHTNESS, W as WHITE_MAX_COLOR_BRIGHTNESS, C as hexToRgba, E as rgbaStrToObj, k as getThemeForegroundColor } from './helpers-c332acf8.js';
3
3
  import './types-dd515332.js';
4
4
 
5
5
  const Theme = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
- this.icThemeChange = createEvent(this, "icThemeChange", 7);
8
+ this.themeChange = createEvent(this, "themeChange", 7);
9
+ this.checkThemeColorContrast = () => {
10
+ if (getThemeColorBrightness() < BLACK_MIN_COLOR_BRIGHTNESS &&
11
+ getThemeColorBrightness() > WHITE_MAX_COLOR_BRIGHTNESS) {
12
+ console.warn(`The theme colour does not provide enough contrast with either of the ICDS black or white foreground colours. Consider choosing a colour with a different brightness to achieve sufficient colour contrast for good visibility. See https://www.w3.org/TR/AERT/#color-contrast for more information about colour contrast.`);
13
+ }
14
+ };
9
15
  this.setThemeColor = () => {
10
16
  if (this.color !== null) {
11
- let colorRGB = null;
17
+ let colorRGBA = null;
12
18
  const firstChar = this.color.slice(0, 1);
13
19
  if (firstChar === "#") {
14
- colorRGB = hexToRgb(this.color);
20
+ colorRGBA = hexToRgba(this.color);
15
21
  }
16
22
  else if (firstChar.toLowerCase() === "r") {
17
- colorRGB = rgbStrToObj(this.color);
23
+ colorRGBA = rgbaStrToObj(this.color);
18
24
  }
19
- this.setThemeRGB(colorRGB);
25
+ this.setThemeRGBA(colorRGBA);
20
26
  }
21
27
  };
22
- this.setThemeRGB = (colorRGB) => {
23
- if (colorRGB !== null) {
28
+ this.setThemeRGBA = (colorRGBA) => {
29
+ if (colorRGBA !== null) {
24
30
  const root = document.documentElement;
25
- root.style.setProperty("--ic-theme-primary-r", colorRGB.r.toString());
26
- root.style.setProperty("--ic-theme-primary-g", colorRGB.g.toString());
27
- root.style.setProperty("--ic-theme-primary-b", colorRGB.b.toString());
31
+ root.style.setProperty("--ic-theme-primary-r", colorRGBA.r.toString());
32
+ root.style.setProperty("--ic-theme-primary-g", colorRGBA.g.toString());
33
+ root.style.setProperty("--ic-theme-primary-b", colorRGBA.b.toString());
34
+ root.style.setProperty("--ic-theme-primary-a", colorRGBA.a.toString());
35
+ this.checkThemeColorContrast();
28
36
  const foregroundColor = getThemeForegroundColor();
29
- this.icThemeChange.emit({ mode: foregroundColor, color: colorRGB });
37
+ this.themeChange.emit({ mode: foregroundColor, color: colorRGBA });
30
38
  }
31
39
  };
32
40
  this.color = null;
@@ -1 +1 @@
1
- {"file":"ic-theme.entry.js","mappings":";;;;MAqBa,KAAK;;;;IAgBR,kBAAa,GAAG;MACtB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE;QACvB,IAAI,QAAQ,GAAG,IAAI,CAAC;QACpB,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACzC,IAAI,SAAS,KAAK,GAAG,EAAE;UACrB,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACjC;aAAM,IAAI,SAAS,CAAC,WAAW,EAAE,KAAK,GAAG,EAAE;UAC1C,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACpC;QACD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;OAC5B;KACF,CAAC;IAEM,gBAAW,GAAG,CAAC,QAAoB;MACzC,IAAI,QAAQ,KAAK,IAAI,EAAE;QACrB,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtE,MAAM,eAAe,GAAG,uBAAuB,EAAE,CAAC;QAClD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;OACrE;KACF,CAAC;iBAlCuB,IAAI;;EAG7B,qBAAqB;IACnB,IAAI,CAAC,aAAa,EAAE,CAAC;GACtB;EA+BD,iBAAiB;IACf,IAAI,CAAC,aAAa,EAAE,CAAC;GACtB;EAED,MAAM;IACJ,OAAO,EAAC,IAAI,OAAQ,CAAC;GACtB;;;;;;;;","names":[],"sources":["./src/components/ic-theme/ic-theme.tsx"],"sourcesContent":["import {\n Component,\n Host,\n Event,\n EventEmitter,\n h,\n Watch,\n Prop,\n} from \"@stencil/core\";\n\nimport { IcColorRGB, IcTheme } from \"../../utils/types\";\nimport {\n getThemeForegroundColor,\n hexToRgb,\n rgbStrToObj,\n} from \"../../utils/helpers\";\n\n@Component({\n tag: \"ic-theme\",\n shadow: true,\n})\nexport class Theme {\n /**\n * The theme colour. Can be a hex value eg \"#ff0000\" or RGB eg \"rgb(255, 0, 0)\"\n */\n @Prop() color?: string = null;\n\n @Watch(\"color\")\n watchColorPropHandler(): void {\n this.setThemeColor();\n }\n\n /**\n * Emitted when the theme is changed.\n */\n @Event() icThemeChange: EventEmitter<IcTheme>;\n\n private setThemeColor = () => {\n if (this.color !== null) {\n let colorRGB = null;\n const firstChar = this.color.slice(0, 1);\n if (firstChar === \"#\") {\n colorRGB = hexToRgb(this.color);\n } else if (firstChar.toLowerCase() === \"r\") {\n colorRGB = rgbStrToObj(this.color);\n }\n this.setThemeRGB(colorRGB);\n }\n };\n\n private setThemeRGB = (colorRGB: IcColorRGB) => {\n if (colorRGB !== null) {\n const root = document.documentElement;\n root.style.setProperty(\"--ic-theme-primary-r\", colorRGB.r.toString());\n root.style.setProperty(\"--ic-theme-primary-g\", colorRGB.g.toString());\n root.style.setProperty(\"--ic-theme-primary-b\", colorRGB.b.toString());\n const foregroundColor = getThemeForegroundColor();\n this.icThemeChange.emit({ mode: foregroundColor, color: colorRGB });\n }\n };\n\n componentWillLoad(): void {\n this.setThemeColor();\n }\n\n render() {\n return <Host></Host>;\n }\n}\n"],"version":3}
1
+ {"file":"ic-theme.entry.js","mappings":";;;;MA0Ba,KAAK;;;;IAgBR,4BAAuB,GAAG;MAChC,IACE,uBAAuB,EAAE,GAAG,0BAA0B;QACtD,uBAAuB,EAAE,GAAG,0BAA0B,EACtD;QACA,OAAO,CAAC,IAAI,CACV,2TAA2T,CAC5T,CAAC;OACH;KACF,CAAC;IAEM,kBAAa,GAAG;MACtB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE;QACvB,IAAI,SAAS,GAAG,IAAI,CAAC;QACrB,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACzC,IAAI,SAAS,KAAK,GAAG,EAAE;UACrB,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACnC;aAAM,IAAI,SAAS,CAAC,WAAW,EAAE,KAAK,GAAG,EAAE;UAC1C,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACtC;QACD,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;OAC9B;KACF,CAAC;IAEM,iBAAY,GAAG,CAAC,SAAsB;MAC5C,IAAI,SAAS,KAAK,IAAI,EAAE;QACtB,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEvE,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAE/B,MAAM,eAAe,GAAG,uBAAuB,EAAE,CAAC;QAClD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;OACpE;KACF,CAAC;iBAjDuB,IAAI;;EAG7B,qBAAqB;IACnB,IAAI,CAAC,aAAa,EAAE,CAAC;GACtB;EA8CD,iBAAiB;IACf,IAAI,CAAC,aAAa,EAAE,CAAC;GACtB;EAED,MAAM;IACJ,OAAO,EAAC,IAAI,OAAQ,CAAC;GACtB;;;;;;;;","names":[],"sources":["./src/components/ic-theme/ic-theme.tsx"],"sourcesContent":["import {\n Component,\n Host,\n Event,\n EventEmitter,\n h,\n Watch,\n Prop,\n} from \"@stencil/core\";\n\nimport { IcColorRGBA, IcTheme } from \"../../utils/types\";\nimport {\n getThemeForegroundColor,\n hexToRgba,\n rgbaStrToObj,\n} from \"../../utils/helpers\";\nimport { getThemeColorBrightness } from \"../../utils/helpers\";\nimport {\n BLACK_MIN_COLOR_BRIGHTNESS,\n WHITE_MAX_COLOR_BRIGHTNESS,\n} from \"../../utils/constants\";\n\n@Component({\n tag: \"ic-theme\",\n shadow: true,\n})\nexport class Theme {\n /**\n * The theme colour. Can be a hex value e.g. \"#ff0000\", RGB e.g. \"rgb(255, 0, 0)\", or RGBA e.g. \"rgba(255, 0, 0, 1)\".\n */\n @Prop() color?: string = null;\n\n @Watch(\"color\")\n watchColorPropHandler(): void {\n this.setThemeColor();\n }\n\n /**\n * @internal Emitted when the theme is changed.\n */\n @Event() themeChange: EventEmitter<IcTheme>;\n\n private checkThemeColorContrast = (): void => {\n if (\n getThemeColorBrightness() < BLACK_MIN_COLOR_BRIGHTNESS &&\n getThemeColorBrightness() > WHITE_MAX_COLOR_BRIGHTNESS\n ) {\n console.warn(\n `The theme colour does not provide enough contrast with either of the ICDS black or white foreground colours. Consider choosing a colour with a different brightness to achieve sufficient colour contrast for good visibility. See https://www.w3.org/TR/AERT/#color-contrast for more information about colour contrast.`\n );\n }\n };\n\n private setThemeColor = () => {\n if (this.color !== null) {\n let colorRGBA = null;\n const firstChar = this.color.slice(0, 1);\n if (firstChar === \"#\") {\n colorRGBA = hexToRgba(this.color);\n } else if (firstChar.toLowerCase() === \"r\") {\n colorRGBA = rgbaStrToObj(this.color);\n }\n this.setThemeRGBA(colorRGBA);\n }\n };\n\n private setThemeRGBA = (colorRGBA: IcColorRGBA) => {\n if (colorRGBA !== null) {\n const root = document.documentElement;\n root.style.setProperty(\"--ic-theme-primary-r\", colorRGBA.r.toString());\n root.style.setProperty(\"--ic-theme-primary-g\", colorRGBA.g.toString());\n root.style.setProperty(\"--ic-theme-primary-b\", colorRGBA.b.toString());\n root.style.setProperty(\"--ic-theme-primary-a\", colorRGBA.a.toString());\n\n this.checkThemeColorContrast();\n\n const foregroundColor = getThemeForegroundColor();\n this.themeChange.emit({ mode: foregroundColor, color: colorRGBA });\n }\n };\n\n componentWillLoad(): void {\n this.setThemeColor();\n }\n\n render() {\n return <Host></Host>;\n }\n}\n"],"version":3}
@@ -0,0 +1,44 @@
1
+ import { r as registerInstance, h, g as getElement } from './index-90721b3c.js';
2
+
3
+ const ToastRegion = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.pendingVisibility = [];
7
+ }
8
+ /**
9
+ * Handles setting the visibility of various toasts based on what is already visible
10
+ * @param toast The toast element being requested to display
11
+ */
12
+ async setVisible(toast) {
13
+ const visibleToasts = Array.from(document.querySelectorAll("ic-toast")).filter((el) => window.getComputedStyle(el).display !== "none");
14
+ if (visibleToasts.indexOf(toast) === -1 && visibleToasts.length <= 0) {
15
+ toast.setVisible().then((res) => (this.previouslyFocused = res));
16
+ }
17
+ if (visibleToasts.length > 0)
18
+ this.pendingVisibility.push(toast);
19
+ }
20
+ handleDismissedToast() {
21
+ var _a;
22
+ if (this.pendingVisibility.length > 0) {
23
+ this.pendingVisibility[0]
24
+ .setVisible()
25
+ .then((res) => (this.previouslyFocused = res));
26
+ this.pendingVisibility.shift();
27
+ }
28
+ else {
29
+ if (this.previouslyFocused && "setFocus" in this.previouslyFocused) {
30
+ this.previouslyFocused.setFocus();
31
+ }
32
+ else
33
+ (_a = this.previouslyFocused) === null || _a === void 0 ? void 0 : _a.focus();
34
+ }
35
+ }
36
+ render() {
37
+ return h("slot", null);
38
+ }
39
+ get el() { return getElement(this); }
40
+ };
41
+
42
+ export { ToastRegion as ic_toast_region };
43
+
44
+ //# sourceMappingURL=ic-toast-region.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"ic-toast-region.entry.js","mappings":";;MAIa,WAAW;EADxB;;IAKE,sBAAiB,GAAyB,EAAE,CAAC;GAkC9C;;;;;EA3BC,MAAM,UAAU,CAAC,KAAyB;IACxC,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAC9B,QAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,CACtC,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC;IACjE,IAAI,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,aAAa,CAAC,MAAM,IAAI,CAAC,EAAE;MACpE,KAAK,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC,CAAC,CAAC;KAClE;IACD,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC;MAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;GAClE;EAGD,oBAAoB;;IAClB,IAAI,IAAI,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;MACrC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;SACtB,UAAU,EAAE;SACZ,IAAI,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC,CAAC,CAAC;MACjD,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;KAChC;SAAM;MACL,IAAI,IAAI,CAAC,iBAAiB,IAAI,UAAU,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACjE,IAAI,CAAC,iBAA2C,CAAC,QAAQ,EAAE,CAAC;OAC9D;;QAAM,MAAA,IAAI,CAAC,iBAAiB,0CAAE,KAAK,EAAE,CAAC;KACxC;GACF;EAED,MAAM;IACJ,OAAO,eAAa,CAAC;GACtB;;;;;;","names":[],"sources":["./src/components/ic-toast-region/ic-toast-region.tsx"],"sourcesContent":["import { Component, Element, h, Listen, Method } from \"@stencil/core\";\nimport { IcFocusableComponents } from \"../../utils/types\";\n\n@Component({ tag: \"ic-toast-region\" })\nexport class ToastRegion {\n @Element() el: HTMLIcToastRegionElement;\n\n previouslyFocused: HTMLElement;\n pendingVisibility: HTMLIcToastElement[] = [];\n\n /**\n * Handles setting the visibility of various toasts based on what is already visible\n * @param toast The toast element being requested to display\n */\n @Method()\n async setVisible(toast: HTMLIcToastElement) {\n const visibleToasts = Array.from(\n document.querySelectorAll(\"ic-toast\")\n ).filter((el) => window.getComputedStyle(el).display !== \"none\");\n if (visibleToasts.indexOf(toast) === -1 && visibleToasts.length <= 0) {\n toast.setVisible().then((res) => (this.previouslyFocused = res));\n }\n if (visibleToasts.length > 0) this.pendingVisibility.push(toast);\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleDismissedToast() {\n if (this.pendingVisibility.length > 0) {\n this.pendingVisibility[0]\n .setVisible()\n .then((res) => (this.previouslyFocused = res));\n this.pendingVisibility.shift();\n } else {\n if (this.previouslyFocused && \"setFocus\" in this.previouslyFocused) {\n (this.previouslyFocused as IcFocusableComponents).setFocus();\n } else this.previouslyFocused?.focus();\n }\n }\n\n render() {\n return <slot></slot>;\n }\n}\n"],"version":3}
@@ -0,0 +1,161 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-90721b3c.js';
2
+ import { c as closeIcon } from './close-icon-2f02b42a.js';
3
+ import { i as isSlotUsed, V as VARIANT_ICONS, a as onComponentRequiredPropUndefined, F as getSlot } from './helpers-c332acf8.js';
4
+ import { I as IcThemeForegroundEnum } from './types-dd515332.js';
5
+
6
+ const icToastCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--bottom-position:var(--ic-space-xl);position:fixed;bottom:var(--bottom-position);left:50%;transform:translate(-50%);animation:fadein var(--ic-transition-duration-slow) ease-in-out}:host(.hidden){display:none;animation:fadeout var(--ic-transition-duration-slow) ease-in-out}.container{max-width:32.5rem;min-width:18rem;box-shadow:var(--ic-elevation-overlay);min-height:3.5rem;background-color:var(--ic-architectural-800);color:var(--ic-color-white-text);display:flex;align-items:center;position:relative;border-radius:var(--ic-border-radius)}.toast-icon-container{height:100%;display:flex;align-items:center}.divider{height:100%;width:var(--ic-space-xs);position:absolute;border-radius:var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs)}.divider-neutral{background-color:var(--ic-architectural-500)}.divider-info{background-color:var(--ic-status-info-contrast)}.divider-warning{background-color:var(--ic-status-warning-contrast)}.divider-error{background-color:var(--ic-status-error-contrast)}.divider-success{background-color:var(--ic-status-success-contrast)}.toast-icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}:host([variant=\"neutral\"]) .toast-icon svg,::slotted(svg){fill:var(--ic-architectural-500)}:host([variant=\"info\"]) .toast-icon svg{fill:var(--ic-status-info-contrast)}:host([variant=\"warning\"]) .toast-icon svg{fill:var(--ic-status-warning-contrast)}:host([variant=\"error\"]) .toast-icon svg{fill:var(--ic-status-error-contrast)}:host([variant=\"success\"]) .toast-icon svg{fill:var(--ic-status-success-contrast)}.toast-content{margin-left:var(--ic-space-xs);width:100%}.no-icon{margin-left:var(--ic-space-md)}.toast-message{padding:var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0}.toast-action-container{padding-bottom:var(--ic-space-md)}ic-button,.toast-dismiss-timer{padding:var(--ic-space-xs)}@media (max-width: 576px){:host{--bottom-position:var(--ic-space-lg);width:calc(100% - 2 * var(--ic-space-md))}}@media (min-width: 993px){:host{--bottom-position:calc(var(--ic-space-xl) + var(--ic-space-xs))}}@media (forced-colors: active){.container{border:var(--ic-hc-border)}}@keyframes fadein{from{bottom:0;opacity:0}to{bottom:var(--bottom-position);opacity:1}}@keyframes fadeout{from{bottom:var(--bottom-position);opacity:1}to{bottom:0;opacity:0}}";
7
+
8
+ const AUTO_DISMISS_TIMER_REFRESH_RATE_MS = 1000;
9
+ const TOAST_HEADING_CHAR_LIMIT = 70;
10
+ const TOAST_MESSAGE_CHAR_LIMIT = 140;
11
+ const Toast = class {
12
+ constructor(hostRef) {
13
+ registerInstance(this, hostRef);
14
+ this.icDismiss = createEvent(this, "icDismiss", 7);
15
+ this.interactiveElements = [];
16
+ this.dismissAction = () => {
17
+ this.icDismiss.emit();
18
+ };
19
+ this.handleProgressChange = () => {
20
+ this.timerProgress -=
21
+ (AUTO_DISMISS_TIMER_REFRESH_RATE_MS / this.autoDismissTimeout) * 100;
22
+ };
23
+ this.heading = undefined;
24
+ this.variant = undefined;
25
+ this.message = undefined;
26
+ this.dismissMode = "manual";
27
+ this.autoDismissTimeout = 5000;
28
+ this.neutralIconAriaLabel = undefined;
29
+ this.dismissButtonAriaLabel = "dismiss";
30
+ this.visible = false;
31
+ this.timerProgress = 100;
32
+ }
33
+ /**
34
+ * Used to display the individual toast
35
+ * @returns The element that previously had focus before the toast appeared
36
+ */
37
+ async setVisible() {
38
+ if (!this.visible)
39
+ this.visible = true;
40
+ if (!this.isManual) {
41
+ this.dismissTimeout = window.setTimeout(this.dismissAction, this.autoDismissTimeout);
42
+ this.timerRefreshInterval = window.setInterval(this.handleProgressChange, AUTO_DISMISS_TIMER_REFRESH_RATE_MS);
43
+ return null;
44
+ }
45
+ else {
46
+ window.setTimeout(() => this.interactiveElements[0].setFocus(), 200);
47
+ return document.activeElement;
48
+ }
49
+ }
50
+ handleDismiss() {
51
+ this.visible = false;
52
+ clearInterval(this.timerRefreshInterval);
53
+ this.timerProgress = 100;
54
+ }
55
+ handleKeyboard(ev) {
56
+ if (this.isManual && this.visible) {
57
+ switch (ev.key) {
58
+ case "Tab":
59
+ ev.preventDefault();
60
+ this.findNextInteractiveElement(ev.shiftKey).setFocus();
61
+ break;
62
+ case "Escape":
63
+ !ev.repeat && this.dismissAction();
64
+ ev.stopImmediatePropagation();
65
+ break;
66
+ }
67
+ }
68
+ }
69
+ handleTimer(ev) {
70
+ if (!this.isManual) {
71
+ switch (ev.type) {
72
+ case "mouseenter":
73
+ window.clearTimeout(this.dismissTimeout);
74
+ window.clearInterval(this.timerRefreshInterval);
75
+ this.timerProgress = 100;
76
+ break;
77
+ case "mouseleave":
78
+ this.dismissTimeout = window.setTimeout(this.dismissAction, this.autoDismissTimeout);
79
+ this.timerRefreshInterval = window.setInterval(this.handleProgressChange, AUTO_DISMISS_TIMER_REFRESH_RATE_MS);
80
+ break;
81
+ }
82
+ }
83
+ }
84
+ handleLongText(headingTooLong, messageTooLong) {
85
+ if (messageTooLong || headingTooLong) {
86
+ console.error(`Too many characters in toast ${headingTooLong ? "heading" : ""}${headingTooLong && messageTooLong ? " and " : ""}${messageTooLong ? "message" : ""}. Refer to character limits specified in the prop description`);
87
+ }
88
+ }
89
+ findNextInteractiveElement(isBackwards) {
90
+ const first = this.interactiveElements[0];
91
+ const last = this.interactiveElements[this.interactiveElements.length - 1];
92
+ const source = isBackwards ? first : last;
93
+ const target = isBackwards ? last : first;
94
+ if (this.isActive(source))
95
+ return target;
96
+ let currentIndex;
97
+ const found = this.interactiveElements.some((el, index) => {
98
+ if (!this.isActive(el))
99
+ return false;
100
+ currentIndex = index;
101
+ return true;
102
+ });
103
+ if (!found)
104
+ return first;
105
+ return this.interactiveElements[currentIndex + (isBackwards ? -1 : 1)];
106
+ }
107
+ isActive(targetEl) {
108
+ if (targetEl === this.el)
109
+ return !!this.el.shadowRoot.activeElement;
110
+ return document.activeElement === targetEl;
111
+ }
112
+ componentWillLoad() {
113
+ var _a, _b;
114
+ this.handleLongText(this.heading.length > TOAST_HEADING_CHAR_LIMIT, ((_a = this.message) === null || _a === void 0 ? void 0 : _a.length) > TOAST_MESSAGE_CHAR_LIMIT);
115
+ if (this.autoDismissTimeout < 5000)
116
+ this.autoDismissTimeout = 5000;
117
+ if (isSlotUsed(this.el, "action"))
118
+ this.dismissMode = "manual";
119
+ this.isManual = this.dismissMode === "manual";
120
+ if (isSlotUsed(this.el, "neutral-icon"))
121
+ this.variant = "neutral";
122
+ if (this.variant === "neutral") {
123
+ this.neutralVariantLabel =
124
+ (_b = this.neutralIconAriaLabel) !== null && _b !== void 0 ? _b : VARIANT_ICONS[this.variant].ariaLabel;
125
+ }
126
+ if (this.isManual) {
127
+ this.el.setAttribute("aria-label", this.variant
128
+ ? this.neutralVariantLabel || VARIANT_ICONS[this.variant].ariaLabel
129
+ : this.heading);
130
+ (this.variant || this.message) &&
131
+ this.el.setAttribute("aria-description", this.variant
132
+ ? `${this.heading}${this.message !== undefined ? `. ${this.message}` : ""}`
133
+ : this.message);
134
+ }
135
+ }
136
+ componentDidLoad() {
137
+ onComponentRequiredPropUndefined([{ prop: this.heading, propName: "heading" }], "Toast");
138
+ const actionContent = getSlot(this.el, "action");
139
+ const dismissButton = this.el.shadowRoot.querySelector("ic-button");
140
+ if (actionContent)
141
+ this.interactiveElements.push(actionContent);
142
+ if (dismissButton)
143
+ this.interactiveElements.push(dismissButton);
144
+ }
145
+ render() {
146
+ const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
147
+ return (h(Host, { class: { ["hidden"]: !visible }, role: isManual ? "dialog" : "status" }, h("div", { class: "container" }, variant && visible && (h("div", { class: "toast-icon-container" }, h("div", { class: {
148
+ ["divider"]: true,
149
+ [`divider-${variant}`]: true,
150
+ } }), variant === "neutral" ? (h("slot", { name: "neutral-icon" })) : (h("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), h("div", { class: {
151
+ ["toast-content"]: true,
152
+ ["no-icon"]: variant === "neutral" && !isSlotUsed(this.el, "neutral-icon"),
153
+ } }, h("div", { class: "toast-message" }, h("ic-typography", { variant: "subtitle-large" }, visible && h("h5", null, heading)), message && (h("ic-typography", { variant: "body" }, visible && h("p", null, message)))), isSlotUsed(this.el, "action") && (h("div", { class: "toast-action-container" }, h("slot", { name: "action" })))), !isManual ? (h("ic-loading-indicator", { class: "toast-dismiss-timer", appearance: "light", size: "icon", progress: this.timerProgress })) : (h("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon", appearance: IcThemeForegroundEnum.Light, "aria-label": dismissButtonAriaLabel })))));
154
+ }
155
+ get el() { return getElement(this); }
156
+ };
157
+ Toast.style = icToastCss;
158
+
159
+ export { Toast as ic_toast };
160
+
161
+ //# sourceMappingURL=ic-toast.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"ic-toast.entry.js","mappings":"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","names":[],"sources":["./src/components/ic-toast/ic-toast.css?tag=ic-toast&encapsulation=shadow","./src/components/ic-toast/ic-toast.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n:host {\n --bottom-position: var(--ic-space-xl);\n\n position: fixed;\n bottom: var(--bottom-position);\n left: 50%;\n transform: translate(-50%);\n animation: fadein var(--ic-transition-duration-slow) ease-in-out;\n}\n\n:host(.hidden) {\n display: none;\n animation: fadeout var(--ic-transition-duration-slow) ease-in-out;\n}\n\n.container {\n max-width: 32.5rem;\n min-width: 18rem;\n box-shadow: var(--ic-elevation-overlay);\n min-height: 3.5rem;\n background-color: var(--ic-architectural-800);\n color: var(--ic-color-white-text);\n display: flex;\n align-items: center;\n position: relative;\n border-radius: var(--ic-border-radius);\n}\n\n.toast-icon-container {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.divider {\n height: 100%;\n width: var(--ic-space-xs);\n position: absolute;\n border-radius: var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);\n}\n\n.divider-neutral {\n background-color: var(--ic-architectural-500);\n}\n\n.divider-info {\n background-color: var(--ic-status-info-contrast);\n}\n\n.divider-warning {\n background-color: var(--ic-status-warning-contrast);\n}\n\n.divider-error {\n background-color: var(--ic-status-error-contrast);\n}\n\n.divider-success {\n background-color: var(--ic-status-success-contrast);\n}\n\n.toast-icon,\n::slotted(svg) {\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n margin-left: var(--ic-space-md);\n}\n\n:host([variant=\"neutral\"]) .toast-icon svg,\n::slotted(svg) {\n fill: var(--ic-architectural-500);\n}\n\n:host([variant=\"info\"]) .toast-icon svg {\n fill: var(--ic-status-info-contrast);\n}\n\n:host([variant=\"warning\"]) .toast-icon svg {\n fill: var(--ic-status-warning-contrast);\n}\n\n:host([variant=\"error\"]) .toast-icon svg {\n fill: var(--ic-status-error-contrast);\n}\n\n:host([variant=\"success\"]) .toast-icon svg {\n fill: var(--ic-status-success-contrast);\n}\n\n.toast-content {\n margin-left: var(--ic-space-xs);\n width: 100%;\n}\n\n.no-icon {\n margin-left: var(--ic-space-md);\n}\n\n.toast-message {\n padding: var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;\n}\n\n.toast-action-container {\n padding-bottom: var(--ic-space-md);\n}\n\nic-button,\n.toast-dismiss-timer {\n padding: var(--ic-space-xs);\n}\n\n@media (max-width: 576px) {\n :host {\n --bottom-position: var(--ic-space-lg);\n\n width: calc(100% - 2 * var(--ic-space-md));\n }\n}\n\n@media (min-width: 993px) {\n :host {\n --bottom-position: calc(var(--ic-space-xl) + var(--ic-space-xs));\n }\n}\n\n@media (forced-colors: active) {\n .container {\n border: var(--ic-hc-border);\n }\n}\n\n@keyframes fadein {\n from {\n bottom: 0;\n opacity: 0;\n }\n\n to {\n bottom: var(--bottom-position);\n opacity: 1;\n }\n}\n\n@keyframes fadeout {\n from {\n bottom: var(--bottom-position);\n opacity: 1;\n }\n\n to {\n bottom: 0;\n opacity: 0;\n }\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n State,\n} from \"@stencil/core\";\nimport closeIcon from \"../../assets/close-icon.svg\";\nimport { VARIANT_ICONS } from \"../../utils/constants\";\nimport {\n getSlot,\n isSlotUsed,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\nimport {\n IcActivationTypes,\n IcStatusVariants,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\nimport { ActionAreaElementTypes } from \"./ic-toast.types\";\n\nconst AUTO_DISMISS_TIMER_REFRESH_RATE_MS = 1000;\nconst TOAST_HEADING_CHAR_LIMIT = 70;\nconst TOAST_MESSAGE_CHAR_LIMIT = 140;\n\n/**\n * @slot action - IcButton or IcLink is placed below header and message. If used will default toast to manual `dismiss` type.\n * @slot neutral-icon - A custom neutral icon is placed on the left side of the component. If used will default toast to `neutral` variant.\n */\n@Component({\n tag: \"ic-toast\",\n styleUrl: \"ic-toast.css\",\n shadow: true,\n})\nexport class Toast {\n @Element() el: HTMLIcToastElement;\n /**\n * The title to display at the start of the toast. (NOTE: Should be no more than `70` characters)\n */\n @Prop() heading!: string;\n /**\n * The variant of the toast being rendered\n */\n @Prop() variant?: IcStatusVariants;\n /**\n * The main body message of the toast. (NOTE: Should be no more than `140` characters)\n */\n @Prop() message?: string;\n /**\n * How the toast will be dismissed. If manual will display a dismiss button.\n */\n @Prop() dismissMode?: IcActivationTypes = \"manual\";\n /**\n * If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS)\n * (NOTE: Has a minimum value of `5000ms`)\n */\n @Prop() autoDismissTimeout? = 5000;\n /**\n * Provides a custom alt-text to be announced to screen readers, if slotting a custom neutral icon\n */\n @Prop() neutralIconAriaLabel?: string;\n /**\n * If toast can be manually dismissed, this prop sets a custom aria-label for the ic-button component\n */\n @Prop() dismissButtonAriaLabel? = \"dismiss\";\n /**\n * Is emitted when the user dismisses the toast\n */\n @Event() icDismiss: EventEmitter<void>;\n\n @State() visible = false;\n @State() timerProgress = 100;\n\n dismissTimeout: number;\n timerRefreshInterval: number;\n isManual: boolean;\n interactiveElements: ActionAreaElementTypes[] = [];\n neutralVariantLabel: string;\n\n /**\n * Used to display the individual toast\n * @returns The element that previously had focus before the toast appeared\n */\n @Method()\n async setVisible() {\n if (!this.visible) this.visible = true;\n if (!this.isManual) {\n this.dismissTimeout = window.setTimeout(\n this.dismissAction,\n this.autoDismissTimeout\n );\n this.timerRefreshInterval = window.setInterval(\n this.handleProgressChange,\n AUTO_DISMISS_TIMER_REFRESH_RATE_MS\n );\n return null;\n } else {\n window.setTimeout(() => this.interactiveElements[0].setFocus(), 200);\n return document.activeElement as HTMLElement;\n }\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleDismiss(): void {\n this.visible = false;\n clearInterval(this.timerRefreshInterval);\n this.timerProgress = 100;\n }\n\n @Listen(\"keydown\", { target: \"document\" })\n handleKeyboard(ev: KeyboardEvent): void {\n if (this.isManual && this.visible) {\n switch (ev.key) {\n case \"Tab\":\n ev.preventDefault();\n this.findNextInteractiveElement(ev.shiftKey).setFocus();\n break;\n case \"Escape\":\n !ev.repeat && this.dismissAction();\n ev.stopImmediatePropagation();\n break;\n }\n }\n }\n\n @Listen(\"mouseenter\")\n @Listen(\"mouseleave\")\n handleTimer(ev: MouseEvent): void {\n if (!this.isManual) {\n switch (ev.type) {\n case \"mouseenter\":\n window.clearTimeout(this.dismissTimeout);\n window.clearInterval(this.timerRefreshInterval);\n this.timerProgress = 100;\n break;\n case \"mouseleave\":\n this.dismissTimeout = window.setTimeout(\n this.dismissAction,\n this.autoDismissTimeout\n );\n this.timerRefreshInterval = window.setInterval(\n this.handleProgressChange,\n AUTO_DISMISS_TIMER_REFRESH_RATE_MS\n );\n break;\n }\n }\n }\n\n private dismissAction = (): void => {\n this.icDismiss.emit();\n };\n\n private handleProgressChange = () => {\n this.timerProgress -=\n (AUTO_DISMISS_TIMER_REFRESH_RATE_MS / this.autoDismissTimeout) * 100;\n };\n\n private handleLongText(\n headingTooLong: boolean,\n messageTooLong?: boolean\n ): void {\n if (messageTooLong || headingTooLong) {\n console.error(\n `Too many characters in toast ${headingTooLong ? \"heading\" : \"\"}${\n headingTooLong && messageTooLong ? \" and \" : \"\"\n }${\n messageTooLong ? \"message\" : \"\"\n }. Refer to character limits specified in the prop description`\n );\n }\n }\n\n private findNextInteractiveElement(\n isBackwards: boolean\n ): ActionAreaElementTypes {\n const first = this.interactiveElements[0];\n const last = this.interactiveElements[this.interactiveElements.length - 1];\n\n const source = isBackwards ? first : last;\n const target = isBackwards ? last : first;\n if (this.isActive(source)) return target;\n\n let currentIndex: number;\n const found = this.interactiveElements.some((el, index) => {\n if (!this.isActive(el)) return false;\n currentIndex = index;\n return true;\n });\n\n if (!found) return first;\n return this.interactiveElements[currentIndex + (isBackwards ? -1 : 1)];\n }\n\n private isActive(targetEl: HTMLElement): boolean {\n if (targetEl === this.el) return !!this.el.shadowRoot.activeElement;\n return document.activeElement === targetEl;\n }\n\n componentWillLoad() {\n this.handleLongText(\n this.heading.length > TOAST_HEADING_CHAR_LIMIT,\n this.message?.length > TOAST_MESSAGE_CHAR_LIMIT\n );\n\n if (this.autoDismissTimeout < 5000) this.autoDismissTimeout = 5000;\n\n if (isSlotUsed(this.el, \"action\")) this.dismissMode = \"manual\";\n this.isManual = this.dismissMode === \"manual\";\n\n if (isSlotUsed(this.el, \"neutral-icon\")) this.variant = \"neutral\";\n if (this.variant === \"neutral\") {\n this.neutralVariantLabel =\n this.neutralIconAriaLabel ?? VARIANT_ICONS[this.variant].ariaLabel;\n }\n\n if (this.isManual) {\n this.el.setAttribute(\n \"aria-label\",\n this.variant\n ? this.neutralVariantLabel || VARIANT_ICONS[this.variant].ariaLabel\n : this.heading\n );\n (this.variant || this.message) &&\n this.el.setAttribute(\n \"aria-description\",\n this.variant\n ? `${this.heading}${\n this.message !== undefined ? `. ${this.message}` : \"\"\n }`\n : this.message\n );\n }\n }\n\n componentDidLoad() {\n onComponentRequiredPropUndefined(\n [{ prop: this.heading, propName: \"heading\" }],\n \"Toast\"\n );\n const actionContent = getSlot(this.el, \"action\") as ActionAreaElementTypes;\n const dismissButton = this.el.shadowRoot.querySelector(\"ic-button\");\n if (actionContent) this.interactiveElements.push(actionContent);\n if (dismissButton) this.interactiveElements.push(dismissButton);\n }\n\n render() {\n const {\n variant,\n heading,\n message,\n visible,\n isManual,\n dismissButtonAriaLabel,\n } = this;\n return (\n <Host\n class={{ [\"hidden\"]: !visible }}\n role={isManual ? \"dialog\" : \"status\"}\n >\n <div class=\"container\">\n {variant && visible && (\n <div class=\"toast-icon-container\">\n <div\n class={{\n [\"divider\"]: true,\n [`divider-${variant}`]: true,\n }}\n ></div>\n {variant === \"neutral\" ? (\n <slot name=\"neutral-icon\" />\n ) : (\n <span\n class=\"toast-icon\"\n innerHTML={VARIANT_ICONS[variant].icon}\n ></span>\n )}\n </div>\n )}\n <div\n class={{\n [\"toast-content\"]: true,\n [\"no-icon\"]:\n variant === \"neutral\" && !isSlotUsed(this.el, \"neutral-icon\"),\n }}\n >\n <div class=\"toast-message\">\n <ic-typography variant=\"subtitle-large\">\n {visible && <h5>{heading}</h5>}\n </ic-typography>\n {message && (\n <ic-typography variant=\"body\">\n {visible && <p>{message}</p>}\n </ic-typography>\n )}\n </div>\n {isSlotUsed(this.el, \"action\") && (\n <div class=\"toast-action-container\">\n <slot name=\"action\" />\n </div>\n )}\n </div>\n {!isManual ? (\n <ic-loading-indicator\n class=\"toast-dismiss-timer\"\n appearance=\"light\"\n size=\"icon\"\n progress={this.timerProgress}\n ></ic-loading-indicator>\n ) : (\n <ic-button\n id=\"dismiss-button\"\n innerHTML={closeIcon}\n onClick={this.dismissAction}\n variant=\"icon\"\n appearance={IcThemeForegroundEnum.Light}\n aria-label={dismissButtonAriaLabel}\n ></ic-button>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1500de1f.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-90721b3c.js';
2
2
  import { I as IcThemeForegroundEnum } from './types-dd515332.js';
3
- import { C as getSlot, D as DEVICE_SIZES, g as getCurrentDeviceSize, j as getThemeForegroundColor, o as onComponentPropUndefinedChange, i as isSlotUsed, c as checkResizeObserver, a as onComponentRequiredPropUndefined } from './helpers-e090fe7e.js';
3
+ import { F as getSlot, D as DEVICE_SIZES, g as getCurrentDeviceSize, k as getThemeForegroundColor, o as onComponentPropUndefinedChange, i as isSlotUsed, c as checkResizeObserver, a as onComponentRequiredPropUndefined } from './helpers-c332acf8.js';
4
4
 
5
- const icTopNavigationCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;color:var(--ic-theme-text);width:100%;position:relative}:host .top-navigation{background-color:var(--ic-theme-primary);height:-moz-max-content;height:max-content}:host(.fullwidth-searchbar) slot[name=\"search\"]::slotted(form){width:100%}:host .title-link{display:inline-flex;align-items:center;text-decoration:none;padding:var(--ic-space-xxs);margin-left:calc(-1 * var(--ic-space-xxs));transition:var(--ic-easing-transition-fast)}:host .title-link,:host .title-link:visited,:host .title-link:active{color:var(--ic-theme-text)}:host .title-link:hover:not(:focus){background-color:var(--ic-theme-hover)}:host .title-link:active:not(:focus){background-color:var(--ic-theme-active)}:host .title-link:hover{border-radius:var(--ic-border-radius)}:host .title-link:focus{border-radius:var(--ic-border-radius);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}:host .title-link ic-typography{font-weight:600}:host .nav-panel-container{border-top:var(--ic-keyline-lighten);padding-left:var(--ic-space-lg);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin));display:flex}:host(.dark) .nav-panel-container{border-top:var(--ic-keyline-darken)}.top-panel-container{display:flex;padding-top:8px;padding-bottom:8px}.navigation-tabs{margin-top:-1px}.app-details-container{display:flex;align-items:center;flex:1 1 auto;margin-right:var(--ic-space-md)}.app-icon-container{display:flex;padding-right:var(--ic-space-xs)}.icon-buttons-container{display:flex;margin-left:var(--ic-space-md)}.icon-buttons-container ::slotted(nav){display:flex}.app-title{padding-right:var(--ic-space-lg)}:host .app-status{border-radius:80px;background-color:var(--ic-architectural-white);color:var(--ic-color-primary-text);padding:var(--ic-space-xxs) var(--ic-space-lg);margin-left:var(--ic-space-md)}:host(.dark) .app-status{background-color:var(--ic-theme-text);color:var(--ic-color-white-text)}:host .app-version{border-radius:16px;background-color:var(--ic-theme-active);padding:var(--ic-space-xxs) var(--ic-space-sm);margin-left:var(--ic-space-xs)}.app-status-text,.app-version-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:96px}slot[name=\"app-icon\"]::slotted(svg){fill:var(--ic-theme-text);width:2em;height:2em}slot[name=\"toggle-icon\"] svg{fill:var(--ic-theme-text)}.search-menu-container{justify-content:right;display:flex;align-items:center;flex:1 auto}.menu-button-container{margin-left:var(--ic-space-md)}.search-actions-container{display:flex}.menu-buttons-slot{display:flex;flex-direction:column}.navigation-landmark-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden}.navigation-item-list{display:flex;list-style:none;height:44px}:host([content-aligned=\"left\"]) .app-details-container{flex-basis:1}:host([content-aligned=\"left\"]) .app-details-container,:host([content-aligned=\"left\"]) .nav-panel-container,:host([content-aligned=\"center\"]) .nav-panel-container,:host([content-aligned=\"left\"]) .search-menu-container,:host([content-aligned=\"center\"]) .search-menu-container{justify-content:flex-start}:host([content-aligned=\"center\"]) .app-details-container{justify-content:flex-end}@media screen and (min-width: 993px){.app-details-container{margin-right:var(--ic-space-lg)}:host([content-aligned=\"center\"]) .top-navigation{display:flex;justify-content:center}:host([content-aligned=\"left\"]) .top-navigation{display:flex}}@media screen and (max-width: 1200px){:host .nav-panel-container{padding-left:var(--ic-space-md)}@media screen and (max-width: 992px){:host .nav-panel-container,:host .app-status,:host .app-version{display:none}:host .title-link{margin-right:var(--ic-space-xs)}.search-menu-container{max-width:160px}.search-bar-container{display:flex;justify-content:center;align-items:center;border-top:var(--ic-keyline-darken);height:64px;padding-left:var(--ic-space-md);padding-right:var(--ic-space-md);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin))}:host([content-aligned=\"left\"]) .app-details-container,:host([content-aligned=\"left\"]) .search-menu-container,:host([content-aligned=\"center\"]) .search-menu-container,:host([content-aligned=\"center\"]) .app-details-container{justify-content:flex-start}}@media screen and (max-width: 576px){:host .title-link{margin-right:var(--ic-space-xxxs);word-break:break-word;-webkit-hyphens:auto;hyphens:auto}.top-panel-container{min-height:40px}.searchbox-inline{display:none}.search-bar-container{margin-top:0;height:56px;padding-left:var(--ic-space-xs);padding-right:var(--ic-space-xs)}.menu-button-container{margin-left:var(--ic-space-sm)}slot[name=\"app-icon\"]::slotted(svg){width:1.5em;height:1.5em}slot[name=\"toggle-icon\"] svg{width:1.5em;height:1.5em}:host([content-aligned=\"left\"]) .app-details-container,:host([content-aligned=\"left\"]) .search-menu-container,:host([content-aligned=\"center\"]) .app-details-container,:host([content-aligned=\"center\"]) .search-menu-container{justify-content:flex-start}}}";
5
+ const icTopNavigationCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;color:var(--ic-theme-text);width:100%;position:relative}:host .top-navigation{background-color:var(--ic-theme-primary);height:-moz-max-content;height:max-content}:host(.fullwidth-searchbar) slot[name=\"search\"]::slotted(form){width:100%}:host .title-link{display:inline-flex;align-items:center;text-decoration:none;padding:var(--ic-space-xxs);margin-left:calc(-1 * var(--ic-space-xxs));transition:var(--ic-easing-transition-fast)}:host .title-link,:host .title-link:visited,:host .title-link:active,:host .title-link ::slotted(a),:host .title-link:visited ::slotted(a),:host .title-link:active ::slotted(a){color:var(--ic-theme-text);text-decoration:none;outline:none}:host .title-link:hover:not(:focus){background-color:var(--ic-theme-hover)}:host .title-link:active:not(:focus){background-color:var(--ic-theme-active)}:host .title-link:hover{border-radius:var(--ic-border-radius)}:host .title-link:focus,:host .title-link:focus-within{border-radius:var(--ic-border-radius);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}:host .title-link ic-typography{font-weight:600}:host .nav-panel-container{border-top:var(--ic-keyline-lighten);padding:0 var(--ic-space-lg);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin));display:flex}:host(.dark) .nav-panel-container{border-top:var(--ic-keyline-darken)}.top-panel-container{display:flex;padding-top:0.5rem;padding-bottom:0.5rem}.navigation-tabs{margin-top:-0.063rem}.app-details-container{display:flex;align-items:center;flex:1 1 auto;margin-right:var(--ic-space-md)}.app-icon-container{display:flex;padding-right:var(--ic-space-xs)}.icon-buttons-container{display:flex;margin-left:var(--ic-space-md)}.icon-buttons-container ::slotted(nav){display:flex}.title-wrap{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}:host .app-status{border-radius:5rem;background-color:var(--ic-architectural-white);color:var(--ic-color-primary-text);padding:var(--ic-space-xxs) var(--ic-space-lg);margin-left:var(--ic-space-md)}:host(.dark) .app-status{background-color:var(--ic-theme-text);color:var(--ic-color-white-text)}:host .app-version{border-radius:1rem;background-color:var(--ic-theme-active);padding:var(--ic-space-xxs) var(--ic-space-sm);margin-left:var(--ic-space-xs)}.app-status-text,.app-version-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:6rem}slot[name=\"app-icon\"]::slotted(svg){fill:var(--ic-theme-text);width:2em;height:2em}slot[name=\"toggle-icon\"] svg{fill:var(--ic-theme-text)}.search-menu-container{justify-content:right;display:flex;align-items:center}.menu-button-container{margin-left:var(--ic-space-md)}.search-actions-container{display:flex}.menu-buttons-slot{display:flex;flex-direction:column}.navigation-landmark-text{position:absolute;width:0.063rem;height:0.063rem;padding:0;margin:-0.063rem;overflow:hidden}.navigation-item-list{display:flex;list-style:none;height:2.75rem}.navigation-item-list::-webkit-scrollbar{display:none}:host ic-section-container{padding-bottom:0 !important;padding-top:0 !important}@media screen and (min-width: 993px){.app-details-container{margin-right:var(--ic-space-lg)}}@media screen and (max-width: 1200px){:host .nav-panel-container{padding:0 var(--ic-space-md)}}@media screen and (max-width: 992px){:host .nav-panel-container,:host .app-status,:host .app-version{display:none}:host .title-link{margin-right:var(--ic-space-xs)}.search-menu-container{max-width:10rem}.search-bar-container{display:flex;justify-content:center;align-items:center;border-top:var(--ic-keyline-darken);height:4rem;padding-left:var(--ic-space-md);padding-right:var(--ic-space-md);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin))}}@media screen and (max-width: 576px){:host .title-link{margin-right:var(--ic-space-xxxs);word-break:break-word;-webkit-hyphens:none;hyphens:none}.top-panel-container{min-height:2.5rem}.searchbox-inline{display:none}.search-bar-container{margin-top:0;height:3.5rem;padding-left:var(--ic-space-xs);padding-right:var(--ic-space-xs)}.menu-button-container{margin-left:var(--ic-space-sm)}slot[name=\"app-icon\"]::slotted(svg){width:1.5em;height:1.5em}slot[name=\"toggle-icon\"] svg{width:1.5em;height:1.5em}}@media (forced-colors: active){:host .top-navigation{border-bottom:var(--ic-hc-border)}.app-status,.app-version{border:var(--ic-hc-border)}slot[name=\"app-icon\"]::slotted(svg){fill:currentcolor}}";
6
6
 
7
7
  const TopNavigation = class {
8
8
  constructor(hostRef) {
@@ -60,7 +60,7 @@ const TopNavigation = class {
60
60
  //remove attribute again as this trigger a redraw & applies css
61
61
  this.searchBar.removeAttribute("hidden");
62
62
  setTimeout(() => {
63
- this.searchBar.setFocus();
63
+ this.searchBar.focus();
64
64
  }, 100);
65
65
  }
66
66
  }
@@ -96,7 +96,7 @@ const TopNavigation = class {
96
96
  navBarMenuCloseHandler() {
97
97
  this.showNavMenu(false);
98
98
  const menuBtn = this.el.shadowRoot.querySelector("#menu-button");
99
- menuBtn.setFocus();
99
+ menuBtn.focus();
100
100
  }
101
101
  searchInputBlurHandler(ev) {
102
102
  if (ev.detail !== null) {
@@ -122,7 +122,7 @@ const TopNavigation = class {
122
122
  this.hasFullWidthSearchBar = true;
123
123
  this.searchBar.fullWidth = true;
124
124
  setTimeout(() => {
125
- this.searchBar.setFocus();
125
+ this.searchBar.focus();
126
126
  }, 100);
127
127
  }
128
128
  else {
@@ -157,7 +157,8 @@ const TopNavigation = class {
157
157
  }
158
158
  componentDidLoad() {
159
159
  checkResizeObserver(this.runResizeObserver);
160
- onComponentRequiredPropUndefined([{ prop: this.appTitle, propName: "app-title" }], "Top Navigation");
160
+ !isSlotUsed(this.el, "app-title") &&
161
+ onComponentRequiredPropUndefined([{ prop: this.appTitle, propName: "app-title" }], "Top Navigation");
161
162
  }
162
163
  disconnectedCallback() {
163
164
  if (this.resizeObserver !== null) {
@@ -182,13 +183,17 @@ const TopNavigation = class {
182
183
  ? "Hide search"
183
184
  : "Show search";
184
185
  const menuSize = this.deviceSize <= DEVICE_SIZES.S ? "small" : "default";
186
+ const Component = isSlotUsed(this.el, "app-title") ? "div" : "a";
187
+ const attrs = Component == "a" && {
188
+ href: this.href,
189
+ };
185
190
  return (h(Host, { class: {
186
191
  ["fullwidth-searchbar"]: this.hasFullWidthSearchBar,
187
192
  [IcThemeForegroundEnum.Dark]: this.foregroundColor === IcThemeForegroundEnum.Dark,
188
- } }, h("div", { class: "top-navigation" }, h("ic-section-container", { aligned: "full-width", "full-height": true }, h("header", { role: "banner" }, h("div", { class: "top-panel-container" }, h("div", { class: "app-details-container" }, hasTitle && (h("a", { class: "title-link", href: this.href }, this.hasAppIcon && (h("div", { class: "app-icon-container", "aria-hidden": "true" }, h("slot", { name: "app-icon" }))), h("ic-typography", { variant: appTitleVariant }, h("h1", null, this.appTitle)))), this.status !== "" && (h("div", { class: "app-status" }, h("ic-typography", { "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, this.status))), this.version !== "" && (h("div", { class: "app-version" }, h("ic-typography", { variant: "label", class: "app-version-text", "aria-label": "app version" }, this.version)))), (this.hasSearchSlotContent || hasMenuContent) && (h("div", { class: "search-menu-container" }, h("div", { class: "search-actions-container" }, this.deviceSize > DEVICE_SIZES.L && (h("slot", { name: "search" })), this.hasSearchSlotContent &&
189
- this.deviceSize <= DEVICE_SIZES.L && (h("ic-button", { id: "search-toggle-button", ref: (el) => (this.mobileSearchButtonEl = el), onMouseDown: this.searchButtonMouseDownHandler, variant: "icon", size: searchButtonSize, "aria-label": mobileSearchButtonTitle, appearance: this.foregroundColor, onClick: this.searchButtonClickHandler }, h("slot", { name: "toggle-icon", slot: "icon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#ffffff" }, h("path", { d: "M0 0h24v24H0V0z", fill: "none" }), h("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }))))), this.hasIconButtons && this.deviceSize > DEVICE_SIZES.L && (h("div", { class: "icon-buttons-container" }, h("slot", { name: "buttons" }))), hasMenuContent && this.deviceSize <= DEVICE_SIZES.L && (h("div", { class: "menu-button-container" }, h("nav", { "aria-labelledby": "navigation-landmark-text", "aria-hidden": !this.hasNavigation || this.navMenuVisible
193
+ } }, h("div", { class: "top-navigation" }, h("ic-section-container", { aligned: this.contentAligned, "full-height": true }, h("header", { role: "banner" }, h("div", { class: "top-panel-container" }, h("div", { class: "app-details-container" }, (hasTitle || isSlotUsed(this.el, "app-title")) && (h(Component, Object.assign({ class: "title-link" }, attrs), this.hasAppIcon && (h("div", { class: "app-icon-container", "aria-hidden": "true" }, h("slot", { name: "app-icon" }))), h("ic-typography", { variant: appTitleVariant }, h("h1", { class: "title-wrap" }, isSlotUsed(this.el, "app-title") ? (h("slot", { name: "app-title" })) : (this.appTitle))))), this.status !== "" && (h("div", { class: "app-status" }, h("ic-typography", { "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, this.status))), this.version !== "" && (h("div", { class: "app-version" }, h("ic-typography", { variant: "label", class: "app-version-text", "aria-label": "app version" }, this.version)))), (this.hasSearchSlotContent || hasMenuContent) && (h("div", { class: "search-menu-container" }, h("div", { class: "search-actions-container" }, this.deviceSize > DEVICE_SIZES.L && (h("slot", { name: "search" })), this.hasSearchSlotContent &&
194
+ this.deviceSize <= DEVICE_SIZES.L && (h("ic-button", { id: "search-toggle-button", ref: (el) => (this.mobileSearchButtonEl = el), onMouseDown: this.searchButtonMouseDownHandler, variant: "icon", size: searchButtonSize, "aria-label": mobileSearchButtonTitle, appearance: this.foregroundColor, onClick: this.searchButtonClickHandler }, h("slot", { name: "toggle-icon", slot: "icon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#ffffff" }, h("path", { d: "M0 0h24v24H0V0z", fill: "none" }), h("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }))))), this.hasIconButtons && this.deviceSize > DEVICE_SIZES.L && (h("div", { class: "icon-buttons-container" }, h("slot", { name: "buttons" }))), hasMenuContent && this.deviceSize <= DEVICE_SIZES.L && (h("div", { class: "menu-button-container" }, h("nav", { "aria-labelledby": "navigation-landmark-text", "aria-hidden": !this.hasNavigation || this.navMenuVisible
190
195
  ? "true"
191
- : "false" }, h("ic-button", { id: "menu-button", appearance: this.foregroundColor, variant: "secondary", "aria-expanded": this.menuOpen ? "true" : "false", "aria-haspopup": "true", "aria-label": `Open ${this.hasNavigation ? "navigation" : "app"} menu`, size: menuSize, onClick: this.menuButtonClick }, "Menu", h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#ffffff", slot: "icon" }, h("path", { d: "M0 0h24v24H0V0z", fill: "none" }), h("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })))))))))), this.mobileSearchBarVisible && (h("div", { class: "search-bar-container" }, h("slot", { name: "search" }))), this.hasNavigation && this.deviceSize > DEVICE_SIZES.L && (h("div", { class: "navigation-tabs" }, h("span", { id: "navigation-landmark-text", class: "navigation-landmark-text", "aria-hidden": "true" }, "Main navigation"), h("nav", { "aria-labelledby": "navigation-landmark-text", class: "nav-panel-container" }, h("ul", { class: "navigation-item-list" }, h("slot", { name: "navigation" })))))))), this.navMenuVisible && (h("ic-navigation-menu", { version: this.version, status: this.status, class: {
196
+ : "false" }, h("ic-button", { id: "menu-button", appearance: this.foregroundColor, variant: "secondary", "aria-expanded": this.menuOpen ? "true" : "false", "aria-haspopup": "true", "aria-label": `Open ${this.hasNavigation ? "navigation" : "app"} menu`, size: menuSize, onClick: this.menuButtonClick }, "Menu", h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#ffffff", slot: "icon" }, h("path", { d: "M0 0h24v24H0V0z", fill: "none" }), h("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })))))))))), this.mobileSearchBarVisible && (h("div", { class: "search-bar-container" }, h("slot", { name: "search" }))), this.hasNavigation && this.deviceSize > DEVICE_SIZES.L && (h("div", { class: "navigation-tabs" }, h("span", { id: "navigation-landmark-text", class: "navigation-landmark-text", "aria-hidden": "true" }, "Main navigation"), h("nav", { "aria-labelledby": "navigation-landmark-text", class: "nav-panel-container" }, h("ic-horizontal-scroll", { appearance: this.foregroundColor }, h("ul", { class: "navigation-item-list", tabindex: "-1" }, h("slot", { name: "navigation" }))))))))), this.navMenuVisible && (h("ic-navigation-menu", { version: this.version, status: this.status, class: {
192
197
  ["inline"]: this.inline,
193
198
  } }, h("div", { class: "menu-buttons-slot", slot: "buttons" }, h("slot", { name: "buttons" })), h("ul", { slot: "navigation" }, h("slot", { name: "navigation" }))))));
194
199
  }