@ukic/web-components 2.0.0-alpha.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (926) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/check-icon-999d9877.js +10 -0
  3. package/dist/cjs/check-icon-999d9877.js.map +1 -0
  4. package/dist/cjs/chevron-icon-d175fe66.js +10 -0
  5. package/dist/cjs/chevron-icon-d175fe66.js.map +1 -0
  6. package/dist/cjs/close-icon-8ccb0163.js +12 -0
  7. package/dist/cjs/close-icon-8ccb0163.js.map +1 -0
  8. package/dist/cjs/core.cjs.js +21 -0
  9. package/dist/cjs/core.cjs.js.map +1 -0
  10. package/dist/cjs/error-icon-99504103.js +18 -0
  11. package/dist/cjs/error-icon-99504103.js.map +1 -0
  12. package/dist/cjs/helpers-9d4961dc.js +430 -0
  13. package/dist/cjs/helpers-9d4961dc.js.map +1 -0
  14. package/dist/cjs/ic-alert.cjs.entry.js +91 -0
  15. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -0
  16. package/dist/cjs/ic-back-to-top.cjs.entry.js +132 -0
  17. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -0
  18. package/dist/cjs/ic-breadcrumb.cjs.entry.js +63 -0
  19. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -0
  20. package/dist/cjs/ic-breadcrumbs.cjs.entry.js +181 -0
  21. package/dist/cjs/ic-breadcrumbs.cjs.entry.js.map +1 -0
  22. package/dist/cjs/ic-button_3.cjs.entry.js +432 -0
  23. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -0
  24. package/dist/cjs/ic-card.cjs.entry.js +87 -0
  25. package/dist/cjs/ic-card.cjs.entry.js.map +1 -0
  26. package/dist/cjs/ic-checkbox-group.cjs.entry.js +66 -0
  27. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -0
  28. package/dist/cjs/ic-checkbox.cjs.entry.js +72 -0
  29. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -0
  30. package/dist/cjs/ic-classification-banner.cjs.entry.js +42 -0
  31. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -0
  32. package/dist/cjs/ic-data-entity.cjs.entry.js +31 -0
  33. package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -0
  34. package/dist/cjs/ic-data-row.cjs.entry.js +74 -0
  35. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -0
  36. package/dist/cjs/ic-divider.cjs.entry.js +29 -0
  37. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -0
  38. package/dist/cjs/ic-footer-link-group.cjs.entry.js +69 -0
  39. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -0
  40. package/dist/cjs/ic-footer-link.cjs.entry.js +59 -0
  41. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -0
  42. package/dist/cjs/ic-footer.cjs.entry.js +87 -0
  43. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -0
  44. package/dist/cjs/ic-hero.cjs.entry.js +72 -0
  45. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -0
  46. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +485 -0
  47. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -0
  48. package/dist/cjs/ic-input-label_2.cjs.entry.js +86 -0
  49. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -0
  50. package/dist/cjs/ic-link.cjs.entry.js +69 -0
  51. package/dist/cjs/ic-link.cjs.entry.js.map +1 -0
  52. package/dist/cjs/ic-navigation-button.cjs.entry.js +86 -0
  53. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -0
  54. package/dist/cjs/ic-navigation-group.cjs.entry.js +240 -0
  55. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -0
  56. package/dist/cjs/ic-navigation-item.cjs.entry.js +146 -0
  57. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -0
  58. package/dist/cjs/ic-navigation-menu.cjs.entry.js +129 -0
  59. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -0
  60. package/dist/cjs/ic-page-header.cjs.entry.js +107 -0
  61. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -0
  62. package/dist/cjs/ic-radio-group.cjs.entry.js +103 -0
  63. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -0
  64. package/dist/cjs/ic-radio-option.cjs.entry.js +108 -0
  65. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -0
  66. package/dist/cjs/ic-search-bar.cjs.entry.js +393 -0
  67. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -0
  68. package/dist/cjs/ic-section-container.cjs.entry.js +29 -0
  69. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -0
  70. package/dist/cjs/ic-select.cjs.entry.js +166 -0
  71. package/dist/cjs/ic-select.cjs.entry.js.map +1 -0
  72. package/dist/cjs/ic-side-navigation.cjs.entry.js +384 -0
  73. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -0
  74. package/dist/cjs/ic-skeleton.cjs.entry.js +59 -0
  75. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -0
  76. package/dist/cjs/ic-status-tag.cjs.entry.js +34 -0
  77. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -0
  78. package/dist/cjs/ic-step.cjs.entry.js +59 -0
  79. package/dist/cjs/ic-step.cjs.entry.js.map +1 -0
  80. package/dist/cjs/ic-stepper.cjs.entry.js +96 -0
  81. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -0
  82. package/dist/cjs/ic-switch.cjs.entry.js +65 -0
  83. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -0
  84. package/dist/cjs/ic-tab-context.cjs.entry.js +226 -0
  85. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -0
  86. package/dist/cjs/ic-tab-list.cjs.entry.js +145 -0
  87. package/dist/cjs/ic-tab-list.cjs.entry.js.map +1 -0
  88. package/dist/cjs/ic-tab-panel.cjs.entry.js +33 -0
  89. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -0
  90. package/dist/cjs/ic-tab.cjs.entry.js +73 -0
  91. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -0
  92. package/dist/cjs/ic-text-field.cjs.entry.js +203 -0
  93. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -0
  94. package/dist/cjs/ic-theme.cjs.entry.js +53 -0
  95. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -0
  96. package/dist/cjs/ic-top-navigation.cjs.entry.js +207 -0
  97. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -0
  98. package/dist/cjs/ic-typography.cjs.entry.js +28 -0
  99. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -0
  100. package/dist/cjs/index-3ef30d9d.js +2459 -0
  101. package/dist/cjs/index-3ef30d9d.js.map +1 -0
  102. package/dist/cjs/index.cjs.js +4 -0
  103. package/dist/cjs/index.cjs.js.map +1 -0
  104. package/dist/cjs/loader.cjs.js +23 -0
  105. package/dist/cjs/loader.cjs.js.map +1 -0
  106. package/dist/cjs/popper-11d5f714.js +1803 -0
  107. package/dist/cjs/popper-11d5f714.js.map +1 -0
  108. package/dist/cjs/success-icon-887b2097.js +11 -0
  109. package/dist/cjs/success-icon-887b2097.js.map +1 -0
  110. package/dist/collection/assets/back-icon.svg +3 -0
  111. package/dist/collection/assets/check-icon.svg +3 -0
  112. package/dist/collection/assets/chevron-icon.svg +3 -0
  113. package/dist/collection/assets/clear-icon.svg +3 -0
  114. package/dist/collection/assets/close-icon.svg +5 -0
  115. package/dist/collection/assets/error-icon.svg +5 -0
  116. package/dist/collection/assets/hamburger-menu-icon.svg +5 -0
  117. package/dist/collection/assets/info-icon.svg +5 -0
  118. package/dist/collection/assets/neutral-icon.svg +5 -0
  119. package/dist/collection/assets/search-icon.svg +3 -0
  120. package/dist/collection/assets/success-icon.svg +5 -0
  121. package/dist/collection/assets/warning-icon.svg +5 -0
  122. package/dist/collection/collection-manifest.json +59 -0
  123. package/dist/collection/components/ic-alert/ic-alert.css +615 -0
  124. package/dist/collection/components/ic-alert/ic-alert.js +235 -0
  125. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -0
  126. package/dist/collection/components/ic-alert/ic-alert.test.a11y.js +11 -0
  127. package/dist/collection/components/ic-alert/ic-alert.test.a11y.js.map +1 -0
  128. package/dist/collection/components/ic-alert/ic-alert.types.js +2 -0
  129. package/dist/collection/components/ic-alert/ic-alert.types.js.map +1 -0
  130. package/dist/collection/components/ic-back-to-top/assets/ArrowUpward.svg +3 -0
  131. package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +526 -0
  132. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +160 -0
  133. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -0
  134. package/dist/collection/components/ic-back-to-top/ic-back-to-top.test.a11y.js +28 -0
  135. package/dist/collection/components/ic-back-to-top/ic-back-to-top.test.a11y.js.map +1 -0
  136. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +80 -0
  137. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +136 -0
  138. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -0
  139. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js +2 -0
  140. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js.map +1 -0
  141. package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs-test-examples.js +35 -0
  142. package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs-test-examples.js.map +1 -0
  143. package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.css +35 -0
  144. package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.js +228 -0
  145. package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.js.map +1 -0
  146. package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.test.a11y.js +21 -0
  147. package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.test.a11y.js.map +1 -0
  148. package/dist/collection/components/ic-button/ic-button.css +840 -0
  149. package/dist/collection/components/ic-button/ic-button.js +613 -0
  150. package/dist/collection/components/ic-button/ic-button.js.map +1 -0
  151. package/dist/collection/components/ic-button/ic-button.test.a11y.js +11 -0
  152. package/dist/collection/components/ic-button/ic-button.test.a11y.js.map +1 -0
  153. package/dist/collection/components/ic-button/ic-button.types.js +2 -0
  154. package/dist/collection/components/ic-button/ic-button.types.js.map +1 -0
  155. package/dist/collection/components/ic-card/ic-card.css +546 -0
  156. package/dist/collection/components/ic-card/ic-card.js +291 -0
  157. package/dist/collection/components/ic-card/ic-card.js.map +1 -0
  158. package/dist/collection/components/ic-card/ic-card.test.a11y.js +21 -0
  159. package/dist/collection/components/ic-card/ic-card.test.a11y.js.map +1 -0
  160. package/dist/collection/components/ic-checkbox/ic-checkbox.css +597 -0
  161. package/dist/collection/components/ic-checkbox/ic-checkbox.js +256 -0
  162. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -0
  163. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +466 -0
  164. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +271 -0
  165. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -0
  166. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js +16 -0
  167. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +1 -0
  168. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.types.js +2 -0
  169. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.types.js.map +1 -0
  170. package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +494 -0
  171. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +141 -0
  172. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -0
  173. package/dist/collection/components/ic-classification-banner/ic-classification-banner.test.a11y.js +11 -0
  174. package/dist/collection/components/ic-classification-banner/ic-classification-banner.test.a11y.js.map +1 -0
  175. package/dist/collection/components/ic-classification-banner/ic-classification-banner.types.js +2 -0
  176. package/dist/collection/components/ic-classification-banner/ic-classification-banner.types.js.map +1 -0
  177. package/dist/collection/components/ic-data-entity/ic-data-entity.css +468 -0
  178. package/dist/collection/components/ic-data-entity/ic-data-entity.js +70 -0
  179. package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +1 -0
  180. package/dist/collection/components/ic-data-entity/ic-data-entity.test.a11y.js +11 -0
  181. package/dist/collection/components/ic-data-entity/ic-data-entity.test.a11y.js.map +1 -0
  182. package/dist/collection/components/ic-data-row/ic-data-row.css +499 -0
  183. package/dist/collection/components/ic-data-row/ic-data-row.js +141 -0
  184. package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -0
  185. package/dist/collection/components/ic-data-row/ic-data-row.test.a11y.js +18 -0
  186. package/dist/collection/components/ic-data-row/ic-data-row.test.a11y.js.map +1 -0
  187. package/dist/collection/components/ic-divider/ic-divider.css +11 -0
  188. package/dist/collection/components/ic-divider/ic-divider.js +44 -0
  189. package/dist/collection/components/ic-divider/ic-divider.js.map +1 -0
  190. package/dist/collection/components/ic-footer/ic-footer.css +537 -0
  191. package/dist/collection/components/ic-footer/ic-footer.js +247 -0
  192. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -0
  193. package/dist/collection/components/ic-footer/ic-footer.test.a11y.js +21 -0
  194. package/dist/collection/components/ic-footer/ic-footer.test.a11y.js.map +1 -0
  195. package/dist/collection/components/ic-footer/ic-footer.types.js +2 -0
  196. package/dist/collection/components/ic-footer/ic-footer.types.js.map +1 -0
  197. package/dist/collection/components/ic-footer-link/ic-footer-link.css +558 -0
  198. package/dist/collection/components/ic-footer-link/ic-footer-link.js +103 -0
  199. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -0
  200. package/dist/collection/components/ic-footer-link/ic-footer-link.test.a11y.js +21 -0
  201. package/dist/collection/components/ic-footer-link/ic-footer-link.test.a11y.js.map +1 -0
  202. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +522 -0
  203. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +113 -0
  204. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -0
  205. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js +21 -0
  206. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +1 -0
  207. package/dist/collection/components/ic-hero/ic-hero.css +703 -0
  208. package/dist/collection/components/ic-hero/ic-hero.js +273 -0
  209. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -0
  210. package/dist/collection/components/ic-hero/ic-hero.test.a11y.js +11 -0
  211. package/dist/collection/components/ic-hero/ic-hero.test.a11y.js.map +1 -0
  212. package/dist/collection/components/ic-hero/ic-hero.types.js +2 -0
  213. package/dist/collection/components/ic-hero/ic-hero.types.js.map +1 -0
  214. package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +118 -0
  215. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +208 -0
  216. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -0
  217. package/dist/collection/components/ic-input-container/ic-input-container.css +5 -0
  218. package/dist/collection/components/ic-input-container/ic-input-container.js +66 -0
  219. package/dist/collection/components/ic-input-container/ic-input-container.js.map +1 -0
  220. package/dist/collection/components/ic-input-label/ic-input-label.css +39 -0
  221. package/dist/collection/components/ic-input-label/ic-input-label.js +194 -0
  222. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -0
  223. package/dist/collection/components/ic-input-validation/ic-input-validation.css +43 -0
  224. package/dist/collection/components/ic-input-validation/ic-input-validation.js +152 -0
  225. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -0
  226. package/dist/collection/components/ic-input-validation/ic-input-validation.types.js +2 -0
  227. package/dist/collection/components/ic-input-validation/ic-input-validation.types.js.map +1 -0
  228. package/dist/collection/components/ic-link/assets/OpenInNew.svg +1 -0
  229. package/dist/collection/components/ic-link/ic-link.css +545 -0
  230. package/dist/collection/components/ic-link/ic-link.js +231 -0
  231. package/dist/collection/components/ic-link/ic-link.js.map +1 -0
  232. package/dist/collection/components/ic-link/ic-link.test.a11y.js +11 -0
  233. package/dist/collection/components/ic-link/ic-link.test.a11y.js.map +1 -0
  234. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +672 -0
  235. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +334 -0
  236. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -0
  237. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.test.a11y.js +11 -0
  238. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.test.a11y.js.map +1 -0
  239. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js +2 -0
  240. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -0
  241. package/dist/collection/components/ic-menu/ic-menu.css +579 -0
  242. package/dist/collection/components/ic-menu/ic-menu.js +806 -0
  243. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -0
  244. package/dist/collection/components/ic-menu/ic-menu.types.js +2 -0
  245. package/dist/collection/components/ic-menu/ic-menu.types.js.map +1 -0
  246. package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +452 -0
  247. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +266 -0
  248. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -0
  249. package/dist/collection/components/ic-navigation-button/ic-navigation-button.types.js +2 -0
  250. package/dist/collection/components/ic-navigation-button/ic-navigation-button.types.js.map +1 -0
  251. package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +639 -0
  252. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +331 -0
  253. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -0
  254. package/dist/collection/components/ic-navigation-group/ic-navigation-group.test.a11y.js +18 -0
  255. package/dist/collection/components/ic-navigation-group/ic-navigation-group.test.a11y.js.map +1 -0
  256. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +967 -0
  257. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +347 -0
  258. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -0
  259. package/dist/collection/components/ic-navigation-item/ic-navigation-item.test.a11y.js +18 -0
  260. package/dist/collection/components/ic-navigation-item/ic-navigation-item.test.a11y.js.map +1 -0
  261. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +87 -0
  262. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +208 -0
  263. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -0
  264. package/dist/collection/components/ic-page-header/ic-page-header.css +561 -0
  265. package/dist/collection/components/ic-page-header/ic-page-header.js +275 -0
  266. package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -0
  267. package/dist/collection/components/ic-page-header/ic-page-header.test.a11y.js +13 -0
  268. package/dist/collection/components/ic-page-header/ic-page-header.test.a11y.js.map +1 -0
  269. package/dist/collection/components/ic-radio-group/ic-radio-group.css +454 -0
  270. package/dist/collection/components/ic-radio-group/ic-radio-group.js +308 -0
  271. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -0
  272. package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js +16 -0
  273. package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +1 -0
  274. package/dist/collection/components/ic-radio-option/ic-radio-option.css +639 -0
  275. package/dist/collection/components/ic-radio-option/ic-radio-option.js +305 -0
  276. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -0
  277. package/dist/collection/components/ic-search-bar/ic-search-bar.css +552 -0
  278. package/dist/collection/components/ic-search-bar/ic-search-bar.js +1127 -0
  279. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -0
  280. package/dist/collection/components/ic-search-bar/ic-search-bar.test.a11y.js +11 -0
  281. package/dist/collection/components/ic-search-bar/ic-search-bar.test.a11y.js.map +1 -0
  282. package/dist/collection/components/ic-search-bar/ic-search-bar.types.js +2 -0
  283. package/dist/collection/components/ic-search-bar/ic-search-bar.types.js.map +1 -0
  284. package/dist/collection/components/ic-section-container/ic-section-container.css +513 -0
  285. package/dist/collection/components/ic-section-container/ic-section-container.js +74 -0
  286. package/dist/collection/components/ic-section-container/ic-section-container.js.map +1 -0
  287. package/dist/collection/components/ic-select/assets/Check.svg +3 -0
  288. package/dist/collection/components/ic-select/assets/Clear.svg +3 -0
  289. package/dist/collection/components/ic-select/assets/Expand.svg +3 -0
  290. package/dist/collection/components/ic-select/ic-select.css +592 -0
  291. package/dist/collection/components/ic-select/ic-select.js +516 -0
  292. package/dist/collection/components/ic-select/ic-select.js.map +1 -0
  293. package/dist/collection/components/ic-select/ic-select.test.a11y.js +28 -0
  294. package/dist/collection/components/ic-select/ic-select.test.a11y.js.map +1 -0
  295. package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js +321 -0
  296. package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js.map +1 -0
  297. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +607 -0
  298. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +566 -0
  299. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -0
  300. package/dist/collection/components/ic-side-navigation/ic-side-navigation.test.a11y.js +14 -0
  301. package/dist/collection/components/ic-side-navigation/ic-side-navigation.test.a11y.js.map +1 -0
  302. package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js +2 -0
  303. package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js.map +1 -0
  304. package/dist/collection/components/ic-skeleton/ic-skeleton.css +495 -0
  305. package/dist/collection/components/ic-skeleton/ic-skeleton.js +112 -0
  306. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -0
  307. package/dist/collection/components/ic-skeleton/ic-skeleton.test.a11y.js +11 -0
  308. package/dist/collection/components/ic-skeleton/ic-skeleton.test.a11y.js.map +1 -0
  309. package/dist/collection/components/ic-skeleton/ic-skeleton.types.js +2 -0
  310. package/dist/collection/components/ic-skeleton/ic-skeleton.types.js.map +1 -0
  311. package/dist/collection/components/ic-status-tag/ic-status-tag.css +499 -0
  312. package/dist/collection/components/ic-status-tag/ic-status-tag.js +119 -0
  313. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -0
  314. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js +11 -0
  315. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +1 -0
  316. package/dist/collection/components/ic-status-tag/ic-status-tag.types.js +2 -0
  317. package/dist/collection/components/ic-status-tag/ic-status-tag.types.js.map +1 -0
  318. package/dist/collection/components/ic-step/ic-step.css +146 -0
  319. package/dist/collection/components/ic-step/ic-step.js +160 -0
  320. package/dist/collection/components/ic-step/ic-step.js.map +1 -0
  321. package/dist/collection/components/ic-step/ic-step.types.js +2 -0
  322. package/dist/collection/components/ic-step/ic-step.types.js.map +1 -0
  323. package/dist/collection/components/ic-stepper/ic-stepper.css +14 -0
  324. package/dist/collection/components/ic-stepper/ic-stepper.js +147 -0
  325. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -0
  326. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js +24 -0
  327. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +1 -0
  328. package/dist/collection/components/ic-stepper/ic-stepper.types.js +2 -0
  329. package/dist/collection/components/ic-stepper/ic-stepper.types.js.map +1 -0
  330. package/dist/collection/components/ic-switch/ic-switch.css +626 -0
  331. package/dist/collection/components/ic-switch/ic-switch.js +288 -0
  332. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -0
  333. package/dist/collection/components/ic-switch/ic-switch.test.a11y.js +11 -0
  334. package/dist/collection/components/ic-switch/ic-switch.test.a11y.js.map +1 -0
  335. package/dist/collection/components/ic-switch/ic-switch.types.js +2 -0
  336. package/dist/collection/components/ic-switch/ic-switch.types.js.map +1 -0
  337. package/dist/collection/components/ic-tab/ic-tab.css +511 -0
  338. package/dist/collection/components/ic-tab/ic-tab.js +245 -0
  339. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -0
  340. package/dist/collection/components/ic-tab/ic-tab.types.js +2 -0
  341. package/dist/collection/components/ic-tab/ic-tab.types.js.map +1 -0
  342. package/dist/collection/components/ic-tab-context/ic-tab-context.js +337 -0
  343. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -0
  344. package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js +19 -0
  345. package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +1 -0
  346. package/dist/collection/components/ic-tab-list/assets/left-arrow.svg +3 -0
  347. package/dist/collection/components/ic-tab-list/assets/right-arrow.svg +3 -0
  348. package/dist/collection/components/ic-tab-list/ic-tab-list.css +139 -0
  349. package/dist/collection/components/ic-tab-list/ic-tab-list.js +258 -0
  350. package/dist/collection/components/ic-tab-list/ic-tab-list.js.map +1 -0
  351. package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +3 -0
  352. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +115 -0
  353. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -0
  354. package/dist/collection/components/ic-text-field/ic-text-field.css +556 -0
  355. package/dist/collection/components/ic-text-field/ic-text-field.js +1006 -0
  356. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -0
  357. package/dist/collection/components/ic-text-field/ic-text-field.test.a11y.js +33 -0
  358. package/dist/collection/components/ic-text-field/ic-text-field.test.a11y.js.map +1 -0
  359. package/dist/collection/components/ic-text-field/ic-text-field.types.js +2 -0
  360. package/dist/collection/components/ic-text-field/ic-text-field.types.js.map +1 -0
  361. package/dist/collection/components/ic-theme/ic-theme.js +93 -0
  362. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -0
  363. package/dist/collection/components/ic-tooltip/ic-tooltip.css +538 -0
  364. package/dist/collection/components/ic-tooltip/ic-tooltip.js +192 -0
  365. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -0
  366. package/dist/collection/components/ic-tooltip/ic-tooltip.test.a11y.js +15 -0
  367. package/dist/collection/components/ic-tooltip/ic-tooltip.test.a11y.js.map +1 -0
  368. package/dist/collection/components/ic-tooltip/ic-tooltip.types.js +2 -0
  369. package/dist/collection/components/ic-tooltip/ic-tooltip.types.js.map +1 -0
  370. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +736 -0
  371. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +411 -0
  372. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -0
  373. package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js +23 -0
  374. package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +1 -0
  375. package/dist/collection/components/ic-typography/ic-typography.css +543 -0
  376. package/dist/collection/components/ic-typography/ic-typography.js +73 -0
  377. package/dist/collection/components/ic-typography/ic-typography.js.map +1 -0
  378. package/dist/collection/components/ic-typography/ic-typography.test.a11y.js +11 -0
  379. package/dist/collection/components/ic-typography/ic-typography.test.a11y.js.map +1 -0
  380. package/dist/collection/index.js +2 -0
  381. package/dist/collection/index.js.map +1 -0
  382. package/dist/collection/testspec.setup.js +32 -0
  383. package/dist/collection/testspec.setup.js.map +1 -0
  384. package/dist/collection/utils/constants.js +44 -0
  385. package/dist/collection/utils/constants.js.map +1 -0
  386. package/dist/collection/utils/helpers.js +339 -0
  387. package/dist/collection/utils/helpers.js.map +1 -0
  388. package/dist/collection/utils/testa11y.helpers.js +8 -0
  389. package/dist/collection/utils/testa11y.helpers.js.map +1 -0
  390. package/dist/collection/utils/types.js +13 -0
  391. package/dist/collection/utils/types.js.map +1 -0
  392. package/dist/components/check-icon.js +8 -0
  393. package/dist/components/check-icon.js.map +1 -0
  394. package/dist/components/chevron-icon.js +8 -0
  395. package/dist/components/chevron-icon.js.map +1 -0
  396. package/dist/components/close-icon.js +10 -0
  397. package/dist/components/close-icon.js.map +1 -0
  398. package/dist/components/error-icon.js +15 -0
  399. package/dist/components/error-icon.js.map +1 -0
  400. package/dist/components/helpers.js +397 -0
  401. package/dist/components/helpers.js.map +1 -0
  402. package/dist/components/ic-alert.d.ts +11 -0
  403. package/dist/components/ic-alert.js +138 -0
  404. package/dist/components/ic-alert.js.map +1 -0
  405. package/dist/components/ic-back-to-top.d.ts +11 -0
  406. package/dist/components/ic-back-to-top.js +157 -0
  407. package/dist/components/ic-back-to-top.js.map +1 -0
  408. package/dist/components/ic-breadcrumb.d.ts +11 -0
  409. package/dist/components/ic-breadcrumb.js +8 -0
  410. package/dist/components/ic-breadcrumb.js.map +1 -0
  411. package/dist/components/ic-breadcrumb2.js +85 -0
  412. package/dist/components/ic-breadcrumb2.js.map +1 -0
  413. package/dist/components/ic-breadcrumbs.d.ts +11 -0
  414. package/dist/components/ic-breadcrumbs.js +212 -0
  415. package/dist/components/ic-breadcrumbs.js.map +1 -0
  416. package/dist/components/ic-button.d.ts +11 -0
  417. package/dist/components/ic-button.js +8 -0
  418. package/dist/components/ic-button.js.map +1 -0
  419. package/dist/components/ic-button2.js +243 -0
  420. package/dist/components/ic-button2.js.map +1 -0
  421. package/dist/components/ic-card.d.ts +11 -0
  422. package/dist/components/ic-card.js +121 -0
  423. package/dist/components/ic-card.js.map +1 -0
  424. package/dist/components/ic-checkbox-group.d.ts +11 -0
  425. package/dist/components/ic-checkbox-group.js +109 -0
  426. package/dist/components/ic-checkbox-group.js.map +1 -0
  427. package/dist/components/ic-checkbox.d.ts +11 -0
  428. package/dist/components/ic-checkbox.js +102 -0
  429. package/dist/components/ic-checkbox.js.map +1 -0
  430. package/dist/components/ic-classification-banner.d.ts +11 -0
  431. package/dist/components/ic-classification-banner.js +68 -0
  432. package/dist/components/ic-classification-banner.js.map +1 -0
  433. package/dist/components/ic-data-entity.d.ts +11 -0
  434. package/dist/components/ic-data-entity.js +54 -0
  435. package/dist/components/ic-data-entity.js.map +1 -0
  436. package/dist/components/ic-data-row.d.ts +11 -0
  437. package/dist/components/ic-data-row.js +100 -0
  438. package/dist/components/ic-data-row.js.map +1 -0
  439. package/dist/components/ic-divider.d.ts +11 -0
  440. package/dist/components/ic-divider.js +8 -0
  441. package/dist/components/ic-divider.js.map +1 -0
  442. package/dist/components/ic-divider2.js +41 -0
  443. package/dist/components/ic-divider2.js.map +1 -0
  444. package/dist/components/ic-footer-link-group.d.ts +11 -0
  445. package/dist/components/ic-footer-link-group.js +101 -0
  446. package/dist/components/ic-footer-link-group.js.map +1 -0
  447. package/dist/components/ic-footer-link.d.ts +11 -0
  448. package/dist/components/ic-footer-link.js +78 -0
  449. package/dist/components/ic-footer-link.js.map +1 -0
  450. package/dist/components/ic-footer.d.ts +11 -0
  451. package/dist/components/ic-footer.js +122 -0
  452. package/dist/components/ic-footer.js.map +1 -0
  453. package/dist/components/ic-hero.d.ts +11 -0
  454. package/dist/components/ic-hero.js +112 -0
  455. package/dist/components/ic-hero.js.map +1 -0
  456. package/dist/components/ic-input-component-container.d.ts +11 -0
  457. package/dist/components/ic-input-component-container.js +8 -0
  458. package/dist/components/ic-input-component-container.js.map +1 -0
  459. package/dist/components/ic-input-component-container2.js +71 -0
  460. package/dist/components/ic-input-component-container2.js.map +1 -0
  461. package/dist/components/ic-input-container.d.ts +11 -0
  462. package/dist/components/ic-input-container.js +8 -0
  463. package/dist/components/ic-input-container.js.map +1 -0
  464. package/dist/components/ic-input-container2.js +40 -0
  465. package/dist/components/ic-input-container2.js.map +1 -0
  466. package/dist/components/ic-input-label.d.ts +11 -0
  467. package/dist/components/ic-input-label.js +8 -0
  468. package/dist/components/ic-input-label.js.map +1 -0
  469. package/dist/components/ic-input-label2.js +74 -0
  470. package/dist/components/ic-input-label2.js.map +1 -0
  471. package/dist/components/ic-input-validation.d.ts +11 -0
  472. package/dist/components/ic-input-validation.js +8 -0
  473. package/dist/components/ic-input-validation.js.map +1 -0
  474. package/dist/components/ic-input-validation2.js +68 -0
  475. package/dist/components/ic-input-validation2.js.map +1 -0
  476. package/dist/components/ic-link.d.ts +11 -0
  477. package/dist/components/ic-link.js +8 -0
  478. package/dist/components/ic-link.js.map +1 -0
  479. package/dist/components/ic-link2.js +89 -0
  480. package/dist/components/ic-link2.js.map +1 -0
  481. package/dist/components/ic-loading-indicator.d.ts +11 -0
  482. package/dist/components/ic-loading-indicator.js +8 -0
  483. package/dist/components/ic-loading-indicator.js.map +1 -0
  484. package/dist/components/ic-loading-indicator2.js +158 -0
  485. package/dist/components/ic-loading-indicator2.js.map +1 -0
  486. package/dist/components/ic-menu.d.ts +11 -0
  487. package/dist/components/ic-menu.js +8 -0
  488. package/dist/components/ic-menu.js.map +1 -0
  489. package/dist/components/ic-menu2.js +461 -0
  490. package/dist/components/ic-menu2.js.map +1 -0
  491. package/dist/components/ic-navigation-button.d.ts +11 -0
  492. package/dist/components/ic-navigation-button.js +135 -0
  493. package/dist/components/ic-navigation-button.js.map +1 -0
  494. package/dist/components/ic-navigation-group.d.ts +11 -0
  495. package/dist/components/ic-navigation-group.js +271 -0
  496. package/dist/components/ic-navigation-group.js.map +1 -0
  497. package/dist/components/ic-navigation-item.d.ts +11 -0
  498. package/dist/components/ic-navigation-item.js +188 -0
  499. package/dist/components/ic-navigation-item.js.map +1 -0
  500. package/dist/components/ic-navigation-menu.d.ts +11 -0
  501. package/dist/components/ic-navigation-menu.js +8 -0
  502. package/dist/components/ic-navigation-menu.js.map +1 -0
  503. package/dist/components/ic-navigation-menu2.js +167 -0
  504. package/dist/components/ic-navigation-menu2.js.map +1 -0
  505. package/dist/components/ic-page-header.d.ts +11 -0
  506. package/dist/components/ic-page-header.js +145 -0
  507. package/dist/components/ic-page-header.js.map +1 -0
  508. package/dist/components/ic-radio-group.d.ts +11 -0
  509. package/dist/components/ic-radio-group.js +147 -0
  510. package/dist/components/ic-radio-group.js.map +1 -0
  511. package/dist/components/ic-radio-option.d.ts +11 -0
  512. package/dist/components/ic-radio-option.js +137 -0
  513. package/dist/components/ic-radio-option.js.map +1 -0
  514. package/dist/components/ic-search-bar.d.ts +11 -0
  515. package/dist/components/ic-search-bar.js +500 -0
  516. package/dist/components/ic-search-bar.js.map +1 -0
  517. package/dist/components/ic-section-container.d.ts +11 -0
  518. package/dist/components/ic-section-container.js +8 -0
  519. package/dist/components/ic-section-container.js.map +1 -0
  520. package/dist/components/ic-section-container2.js +43 -0
  521. package/dist/components/ic-section-container2.js.map +1 -0
  522. package/dist/components/ic-select.d.ts +11 -0
  523. package/dist/components/ic-select.js +253 -0
  524. package/dist/components/ic-select.js.map +1 -0
  525. package/dist/components/ic-side-navigation.d.ts +11 -0
  526. package/dist/components/ic-side-navigation.js +444 -0
  527. package/dist/components/ic-side-navigation.js.map +1 -0
  528. package/dist/components/ic-skeleton.d.ts +11 -0
  529. package/dist/components/ic-skeleton.js +80 -0
  530. package/dist/components/ic-skeleton.js.map +1 -0
  531. package/dist/components/ic-status-tag.d.ts +11 -0
  532. package/dist/components/ic-status-tag.js +59 -0
  533. package/dist/components/ic-status-tag.js.map +1 -0
  534. package/dist/components/ic-step.d.ts +11 -0
  535. package/dist/components/ic-step.js +85 -0
  536. package/dist/components/ic-step.js.map +1 -0
  537. package/dist/components/ic-stepper.d.ts +11 -0
  538. package/dist/components/ic-stepper.js +115 -0
  539. package/dist/components/ic-stepper.js.map +1 -0
  540. package/dist/components/ic-switch.d.ts +11 -0
  541. package/dist/components/ic-switch.js +102 -0
  542. package/dist/components/ic-switch.js.map +1 -0
  543. package/dist/components/ic-tab-context.d.ts +11 -0
  544. package/dist/components/ic-tab-context.js +245 -0
  545. package/dist/components/ic-tab-context.js.map +1 -0
  546. package/dist/components/ic-tab-list.d.ts +11 -0
  547. package/dist/components/ic-tab-list.js +180 -0
  548. package/dist/components/ic-tab-list.js.map +1 -0
  549. package/dist/components/ic-tab-panel.d.ts +11 -0
  550. package/dist/components/ic-tab-panel.js +52 -0
  551. package/dist/components/ic-tab-panel.js.map +1 -0
  552. package/dist/components/ic-tab.d.ts +11 -0
  553. package/dist/components/ic-tab.js +100 -0
  554. package/dist/components/ic-tab.js.map +1 -0
  555. package/dist/components/ic-text-field.d.ts +11 -0
  556. package/dist/components/ic-text-field.js +8 -0
  557. package/dist/components/ic-text-field.js.map +1 -0
  558. package/dist/components/ic-text-field2.js +282 -0
  559. package/dist/components/ic-text-field2.js.map +1 -0
  560. package/dist/components/ic-theme.d.ts +11 -0
  561. package/dist/components/ic-theme.js +69 -0
  562. package/dist/components/ic-theme.js.map +1 -0
  563. package/dist/components/ic-tooltip.d.ts +11 -0
  564. package/dist/components/ic-tooltip.js +8 -0
  565. package/dist/components/ic-tooltip.js.map +1 -0
  566. package/dist/components/ic-tooltip2.js +149 -0
  567. package/dist/components/ic-tooltip2.js.map +1 -0
  568. package/dist/components/ic-top-navigation.d.ts +11 -0
  569. package/dist/components/ic-top-navigation.js +273 -0
  570. package/dist/components/ic-top-navigation.js.map +1 -0
  571. package/dist/components/ic-typography.d.ts +11 -0
  572. package/dist/components/ic-typography.js +8 -0
  573. package/dist/components/ic-typography.js.map +1 -0
  574. package/dist/components/ic-typography2.js +42 -0
  575. package/dist/components/ic-typography2.js.map +1 -0
  576. package/dist/components/index.d.ts +69 -0
  577. package/dist/components/index.js +51 -0
  578. package/dist/components/index.js.map +1 -0
  579. package/dist/components/popper.js +1801 -0
  580. package/dist/components/popper.js.map +1 -0
  581. package/dist/components/success-icon.js +9 -0
  582. package/dist/components/success-icon.js.map +1 -0
  583. package/dist/core/core.css +57 -0
  584. package/dist/core/core.esm.js +2 -0
  585. package/dist/core/core.esm.js.map +1 -0
  586. package/dist/core/index.esm.js +2 -0
  587. package/dist/core/index.esm.js.map +1 -0
  588. package/dist/core/p-012dc33c.entry.js +2 -0
  589. package/dist/core/p-012dc33c.entry.js.map +1 -0
  590. package/dist/core/p-0d4ac3c9.entry.js +2 -0
  591. package/dist/core/p-0d4ac3c9.entry.js.map +1 -0
  592. package/dist/core/p-0ebbf9e7.entry.js +2 -0
  593. package/dist/core/p-0ebbf9e7.entry.js.map +1 -0
  594. package/dist/core/p-13854b65.entry.js +2 -0
  595. package/dist/core/p-13854b65.entry.js.map +1 -0
  596. package/dist/core/p-17420c90.entry.js +2 -0
  597. package/dist/core/p-17420c90.entry.js.map +1 -0
  598. package/dist/core/p-1e7b4310.js +2 -0
  599. package/dist/core/p-1e7b4310.js.map +1 -0
  600. package/dist/core/p-263018da.entry.js +2 -0
  601. package/dist/core/p-263018da.entry.js.map +1 -0
  602. package/dist/core/p-28ef3fe0.entry.js +2 -0
  603. package/dist/core/p-28ef3fe0.entry.js.map +1 -0
  604. package/dist/core/p-3b9d4007.entry.js +2 -0
  605. package/dist/core/p-3b9d4007.entry.js.map +1 -0
  606. package/dist/core/p-43e646c6.entry.js +2 -0
  607. package/dist/core/p-43e646c6.entry.js.map +1 -0
  608. package/dist/core/p-44355e34.entry.js +2 -0
  609. package/dist/core/p-44355e34.entry.js.map +1 -0
  610. package/dist/core/p-44512ebe.js +2 -0
  611. package/dist/core/p-44512ebe.js.map +1 -0
  612. package/dist/core/p-44af91df.entry.js +2 -0
  613. package/dist/core/p-44af91df.entry.js.map +1 -0
  614. package/dist/core/p-4b1b46f5.entry.js +2 -0
  615. package/dist/core/p-4b1b46f5.entry.js.map +1 -0
  616. package/dist/core/p-4b692529.entry.js +2 -0
  617. package/dist/core/p-4b692529.entry.js.map +1 -0
  618. package/dist/core/p-4cf60a22.entry.js +2 -0
  619. package/dist/core/p-4cf60a22.entry.js.map +1 -0
  620. package/dist/core/p-4fba6cae.entry.js +2 -0
  621. package/dist/core/p-4fba6cae.entry.js.map +1 -0
  622. package/dist/core/p-5316e421.entry.js +2 -0
  623. package/dist/core/p-5316e421.entry.js.map +1 -0
  624. package/dist/core/p-5d3dd182.entry.js +2 -0
  625. package/dist/core/p-5d3dd182.entry.js.map +1 -0
  626. package/dist/core/p-5e0b88fa.entry.js +2 -0
  627. package/dist/core/p-5e0b88fa.entry.js.map +1 -0
  628. package/dist/core/p-6be5e06b.entry.js +2 -0
  629. package/dist/core/p-6be5e06b.entry.js.map +1 -0
  630. package/dist/core/p-7152788d.entry.js +2 -0
  631. package/dist/core/p-7152788d.entry.js.map +1 -0
  632. package/dist/core/p-79905074.entry.js +2 -0
  633. package/dist/core/p-79905074.entry.js.map +1 -0
  634. package/dist/core/p-7ed79493.entry.js +2 -0
  635. package/dist/core/p-7ed79493.entry.js.map +1 -0
  636. package/dist/core/p-7f6ba60a.entry.js +2 -0
  637. package/dist/core/p-7f6ba60a.entry.js.map +1 -0
  638. package/dist/core/p-836c93b1.entry.js +2 -0
  639. package/dist/core/p-836c93b1.entry.js.map +1 -0
  640. package/dist/core/p-85436343.entry.js +2 -0
  641. package/dist/core/p-85436343.entry.js.map +1 -0
  642. package/dist/core/p-85dc9100.entry.js +2 -0
  643. package/dist/core/p-85dc9100.entry.js.map +1 -0
  644. package/dist/core/p-8a677ff1.entry.js +2 -0
  645. package/dist/core/p-8a677ff1.entry.js.map +1 -0
  646. package/dist/core/p-8af2a343.entry.js +2 -0
  647. package/dist/core/p-8af2a343.entry.js.map +1 -0
  648. package/dist/core/p-a3df537f.entry.js +2 -0
  649. package/dist/core/p-a3df537f.entry.js.map +1 -0
  650. package/dist/core/p-a968ff18.entry.js +2 -0
  651. package/dist/core/p-a968ff18.entry.js.map +1 -0
  652. package/dist/core/p-ae6aa67f.js +2 -0
  653. package/dist/core/p-ae6aa67f.js.map +1 -0
  654. package/dist/core/p-b1d83eb6.entry.js +2 -0
  655. package/dist/core/p-b1d83eb6.entry.js.map +1 -0
  656. package/dist/core/p-b858dc5a.entry.js +2 -0
  657. package/dist/core/p-b858dc5a.entry.js.map +1 -0
  658. package/dist/core/p-b9253509.entry.js +2 -0
  659. package/dist/core/p-b9253509.entry.js.map +1 -0
  660. package/dist/core/p-bbe0b521.entry.js +2 -0
  661. package/dist/core/p-bbe0b521.entry.js.map +1 -0
  662. package/dist/core/p-bdd2f166.entry.js +2 -0
  663. package/dist/core/p-bdd2f166.entry.js.map +1 -0
  664. package/dist/core/p-bddb885a.entry.js +2 -0
  665. package/dist/core/p-bddb885a.entry.js.map +1 -0
  666. package/dist/core/p-bf5717ca.js +2 -0
  667. package/dist/core/p-bf5717ca.js.map +1 -0
  668. package/dist/core/p-c09e9589.entry.js +2 -0
  669. package/dist/core/p-c09e9589.entry.js.map +1 -0
  670. package/dist/core/p-d10ce0a7.entry.js +2 -0
  671. package/dist/core/p-d10ce0a7.entry.js.map +1 -0
  672. package/dist/core/p-d198ae1f.entry.js +2 -0
  673. package/dist/core/p-d198ae1f.entry.js.map +1 -0
  674. package/dist/core/p-dc79694a.entry.js +2 -0
  675. package/dist/core/p-dc79694a.entry.js.map +1 -0
  676. package/dist/core/p-e28af65b.js +2 -0
  677. package/dist/core/p-e28af65b.js.map +1 -0
  678. package/dist/core/p-e5a09372.js +2 -0
  679. package/dist/core/p-e5a09372.js.map +1 -0
  680. package/dist/core/p-ec26fc38.js +2 -0
  681. package/dist/core/p-ec26fc38.js.map +1 -0
  682. package/dist/core/p-ed1d8712.entry.js +2 -0
  683. package/dist/core/p-ed1d8712.entry.js.map +1 -0
  684. package/dist/core/p-f7828fde.entry.js +2 -0
  685. package/dist/core/p-f7828fde.entry.js.map +1 -0
  686. package/dist/core/p-f9370be6.js +3 -0
  687. package/dist/core/p-f9370be6.js.map +1 -0
  688. package/dist/core/p-fba2f052.entry.js +2 -0
  689. package/dist/core/p-fba2f052.entry.js.map +1 -0
  690. package/dist/esm/check-icon-53f1d9e5.js +8 -0
  691. package/dist/esm/check-icon-53f1d9e5.js.map +1 -0
  692. package/dist/esm/chevron-icon-5b38c60a.js +8 -0
  693. package/dist/esm/chevron-icon-5b38c60a.js.map +1 -0
  694. package/dist/esm/close-icon-2f02b42a.js +10 -0
  695. package/dist/esm/close-icon-2f02b42a.js.map +1 -0
  696. package/dist/esm/core.js +19 -0
  697. package/dist/esm/core.js.map +1 -0
  698. package/dist/esm/error-icon-6046a380.js +15 -0
  699. package/dist/esm/error-icon-6046a380.js.map +1 -0
  700. package/dist/esm/helpers-db00eae1.js +397 -0
  701. package/dist/esm/helpers-db00eae1.js.map +1 -0
  702. package/dist/esm/ic-alert.entry.js +87 -0
  703. package/dist/esm/ic-alert.entry.js.map +1 -0
  704. package/dist/esm/ic-back-to-top.entry.js +128 -0
  705. package/dist/esm/ic-back-to-top.entry.js.map +1 -0
  706. package/dist/esm/ic-breadcrumb.entry.js +59 -0
  707. package/dist/esm/ic-breadcrumb.entry.js.map +1 -0
  708. package/dist/esm/ic-breadcrumbs.entry.js +177 -0
  709. package/dist/esm/ic-breadcrumbs.entry.js.map +1 -0
  710. package/dist/esm/ic-button_3.entry.js +426 -0
  711. package/dist/esm/ic-button_3.entry.js.map +1 -0
  712. package/dist/esm/ic-card.entry.js +83 -0
  713. package/dist/esm/ic-card.entry.js.map +1 -0
  714. package/dist/esm/ic-checkbox-group.entry.js +62 -0
  715. package/dist/esm/ic-checkbox-group.entry.js.map +1 -0
  716. package/dist/esm/ic-checkbox.entry.js +68 -0
  717. package/dist/esm/ic-checkbox.entry.js.map +1 -0
  718. package/dist/esm/ic-classification-banner.entry.js +38 -0
  719. package/dist/esm/ic-classification-banner.entry.js.map +1 -0
  720. package/dist/esm/ic-data-entity.entry.js +27 -0
  721. package/dist/esm/ic-data-entity.entry.js.map +1 -0
  722. package/dist/esm/ic-data-row.entry.js +70 -0
  723. package/dist/esm/ic-data-row.entry.js.map +1 -0
  724. package/dist/esm/ic-divider.entry.js +25 -0
  725. package/dist/esm/ic-divider.entry.js.map +1 -0
  726. package/dist/esm/ic-footer-link-group.entry.js +65 -0
  727. package/dist/esm/ic-footer-link-group.entry.js.map +1 -0
  728. package/dist/esm/ic-footer-link.entry.js +55 -0
  729. package/dist/esm/ic-footer-link.entry.js.map +1 -0
  730. package/dist/esm/ic-footer.entry.js +83 -0
  731. package/dist/esm/ic-footer.entry.js.map +1 -0
  732. package/dist/esm/ic-hero.entry.js +68 -0
  733. package/dist/esm/ic-hero.entry.js.map +1 -0
  734. package/dist/esm/ic-input-component-container_3.entry.js +479 -0
  735. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -0
  736. package/dist/esm/ic-input-label_2.entry.js +81 -0
  737. package/dist/esm/ic-input-label_2.entry.js.map +1 -0
  738. package/dist/esm/ic-link.entry.js +65 -0
  739. package/dist/esm/ic-link.entry.js.map +1 -0
  740. package/dist/esm/ic-navigation-button.entry.js +82 -0
  741. package/dist/esm/ic-navigation-button.entry.js.map +1 -0
  742. package/dist/esm/ic-navigation-group.entry.js +236 -0
  743. package/dist/esm/ic-navigation-group.entry.js.map +1 -0
  744. package/dist/esm/ic-navigation-item.entry.js +142 -0
  745. package/dist/esm/ic-navigation-item.entry.js.map +1 -0
  746. package/dist/esm/ic-navigation-menu.entry.js +125 -0
  747. package/dist/esm/ic-navigation-menu.entry.js.map +1 -0
  748. package/dist/esm/ic-page-header.entry.js +103 -0
  749. package/dist/esm/ic-page-header.entry.js.map +1 -0
  750. package/dist/esm/ic-radio-group.entry.js +99 -0
  751. package/dist/esm/ic-radio-group.entry.js.map +1 -0
  752. package/dist/esm/ic-radio-option.entry.js +104 -0
  753. package/dist/esm/ic-radio-option.entry.js.map +1 -0
  754. package/dist/esm/ic-search-bar.entry.js +389 -0
  755. package/dist/esm/ic-search-bar.entry.js.map +1 -0
  756. package/dist/esm/ic-section-container.entry.js +25 -0
  757. package/dist/esm/ic-section-container.entry.js.map +1 -0
  758. package/dist/esm/ic-select.entry.js +162 -0
  759. package/dist/esm/ic-select.entry.js.map +1 -0
  760. package/dist/esm/ic-side-navigation.entry.js +380 -0
  761. package/dist/esm/ic-side-navigation.entry.js.map +1 -0
  762. package/dist/esm/ic-skeleton.entry.js +55 -0
  763. package/dist/esm/ic-skeleton.entry.js.map +1 -0
  764. package/dist/esm/ic-status-tag.entry.js +30 -0
  765. package/dist/esm/ic-status-tag.entry.js.map +1 -0
  766. package/dist/esm/ic-step.entry.js +55 -0
  767. package/dist/esm/ic-step.entry.js.map +1 -0
  768. package/dist/esm/ic-stepper.entry.js +92 -0
  769. package/dist/esm/ic-stepper.entry.js.map +1 -0
  770. package/dist/esm/ic-switch.entry.js +61 -0
  771. package/dist/esm/ic-switch.entry.js.map +1 -0
  772. package/dist/esm/ic-tab-context.entry.js +222 -0
  773. package/dist/esm/ic-tab-context.entry.js.map +1 -0
  774. package/dist/esm/ic-tab-list.entry.js +141 -0
  775. package/dist/esm/ic-tab-list.entry.js.map +1 -0
  776. package/dist/esm/ic-tab-panel.entry.js +29 -0
  777. package/dist/esm/ic-tab-panel.entry.js.map +1 -0
  778. package/dist/esm/ic-tab.entry.js +69 -0
  779. package/dist/esm/ic-tab.entry.js.map +1 -0
  780. package/dist/esm/ic-text-field.entry.js +199 -0
  781. package/dist/esm/ic-text-field.entry.js.map +1 -0
  782. package/dist/esm/ic-theme.entry.js +49 -0
  783. package/dist/esm/ic-theme.entry.js.map +1 -0
  784. package/dist/esm/ic-top-navigation.entry.js +203 -0
  785. package/dist/esm/ic-top-navigation.entry.js.map +1 -0
  786. package/dist/esm/ic-typography.entry.js +24 -0
  787. package/dist/esm/ic-typography.entry.js.map +1 -0
  788. package/dist/esm/index-1500de1f.js +2431 -0
  789. package/dist/esm/index-1500de1f.js.map +1 -0
  790. package/dist/esm/index.js +3 -0
  791. package/dist/esm/index.js.map +1 -0
  792. package/dist/esm/loader.js +19 -0
  793. package/dist/esm/loader.js.map +1 -0
  794. package/dist/esm/polyfills/core-js.js +11 -0
  795. package/dist/esm/polyfills/css-shim.js +1 -0
  796. package/dist/esm/polyfills/dom.js +79 -0
  797. package/dist/esm/polyfills/es5-html-element.js +1 -0
  798. package/dist/esm/polyfills/index.js +34 -0
  799. package/dist/esm/polyfills/system.js +6 -0
  800. package/dist/esm/popper-f860750c.js +1801 -0
  801. package/dist/esm/popper-f860750c.js.map +1 -0
  802. package/dist/esm/success-icon-2f71b115.js +9 -0
  803. package/dist/esm/success-icon-2f71b115.js.map +1 -0
  804. package/dist/index.cjs.js +1 -0
  805. package/dist/index.js +1 -0
  806. package/dist/types/components/ic-alert/ic-alert.d.ts +44 -0
  807. package/dist/types/components/ic-alert/ic-alert.test.a11y.d.ts +1 -0
  808. package/dist/types/components/ic-alert/ic-alert.types.d.ts +1 -0
  809. package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +24 -0
  810. package/dist/types/components/ic-back-to-top/ic-back-to-top.test.a11y.d.ts +1 -0
  811. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +26 -0
  812. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +1 -0
  813. package/dist/types/components/ic-breadcrumbs/ic-breadcrumbs-test-examples.d.ts +2 -0
  814. package/dist/types/components/ic-breadcrumbs/ic-breadcrumbs.d.ts +33 -0
  815. package/dist/types/components/ic-breadcrumbs/ic-breadcrumbs.test.a11y.d.ts +1 -0
  816. package/dist/types/components/ic-button/ic-button.d.ts +111 -0
  817. package/dist/types/components/ic-button/ic-button.test.a11y.d.ts +1 -0
  818. package/dist/types/components/ic-button/ic-button.types.d.ts +5 -0
  819. package/dist/types/components/ic-card/ic-card.d.ts +58 -0
  820. package/dist/types/components/ic-card/ic-card.test.a11y.d.ts +1 -0
  821. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +50 -0
  822. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +51 -0
  823. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.test.a11y.d.ts +1 -0
  824. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.types.d.ts +3 -0
  825. package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +24 -0
  826. package/dist/types/components/ic-classification-banner/ic-classification-banner.test.a11y.d.ts +1 -0
  827. package/dist/types/components/ic-classification-banner/ic-classification-banner.types.d.ts +1 -0
  828. package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +12 -0
  829. package/dist/types/components/ic-data-entity/ic-data-entity.test.a11y.d.ts +1 -0
  830. package/dist/types/components/ic-data-row/ic-data-row.d.ts +31 -0
  831. package/dist/types/components/ic-data-row/ic-data-row.test.a11y.d.ts +1 -0
  832. package/dist/types/components/ic-divider/ic-divider.d.ts +6 -0
  833. package/dist/types/components/ic-footer/ic-footer.d.ts +52 -0
  834. package/dist/types/components/ic-footer/ic-footer.test.a11y.d.ts +1 -0
  835. package/dist/types/components/ic-footer/ic-footer.types.d.ts +1 -0
  836. package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +21 -0
  837. package/dist/types/components/ic-footer-link/ic-footer-link.test.a11y.d.ts +1 -0
  838. package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +19 -0
  839. package/dist/types/components/ic-footer-link-group/ic-footer-link-group.test.a11y.d.ts +1 -0
  840. package/dist/types/components/ic-hero/ic-hero.d.ts +57 -0
  841. package/dist/types/components/ic-hero/ic-hero.test.a11y.d.ts +1 -0
  842. package/dist/types/components/ic-hero/ic-hero.types.d.ts +1 -0
  843. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +40 -0
  844. package/dist/types/components/ic-input-container/ic-input-container.d.ts +11 -0
  845. package/dist/types/components/ic-input-label/ic-input-label.d.ts +36 -0
  846. package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +30 -0
  847. package/dist/types/components/ic-input-validation/ic-input-validation.types.d.ts +1 -0
  848. package/dist/types/components/ic-link/ic-link.d.ts +44 -0
  849. package/dist/types/components/ic-link/ic-link.test.a11y.d.ts +1 -0
  850. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +66 -0
  851. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.test.a11y.d.ts +1 -0
  852. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +3 -0
  853. package/dist/types/components/ic-menu/ic-menu.d.ts +116 -0
  854. package/dist/types/components/ic-menu/ic-menu.types.d.ts +11 -0
  855. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +53 -0
  856. package/dist/types/components/ic-navigation-button/ic-navigation-button.types.d.ts +1 -0
  857. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +56 -0
  858. package/dist/types/components/ic-navigation-group/ic-navigation-group.test.a11y.d.ts +1 -0
  859. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +65 -0
  860. package/dist/types/components/ic-navigation-item/ic-navigation-item.test.a11y.d.ts +1 -0
  861. package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +36 -0
  862. package/dist/types/components/ic-page-header/ic-page-header.d.ts +55 -0
  863. package/dist/types/components/ic-page-header/ic-page-header.test.a11y.d.ts +1 -0
  864. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +57 -0
  865. package/dist/types/components/ic-radio-group/ic-radio-group.test.a11y.d.ts +1 -0
  866. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +57 -0
  867. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +211 -0
  868. package/dist/types/components/ic-search-bar/ic-search-bar.test.a11y.d.ts +1 -0
  869. package/dist/types/components/ic-search-bar/ic-search-bar.types.d.ts +4 -0
  870. package/dist/types/components/ic-section-container/ic-section-container.d.ts +12 -0
  871. package/dist/types/components/ic-select/ic-select.d.ts +108 -0
  872. package/dist/types/components/ic-select/ic-select.test.a11y.d.ts +1 -0
  873. package/dist/types/components/ic-side-navigation/ic-side-navigation-test-examples.d.ts +5 -0
  874. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +89 -0
  875. package/dist/types/components/ic-side-navigation/ic-side-navigation.test.a11y.d.ts +1 -0
  876. package/dist/types/components/ic-side-navigation/ic-side-navigation.types.d.ts +9 -0
  877. package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +18 -0
  878. package/dist/types/components/ic-skeleton/ic-skeleton.test.a11y.d.ts +1 -0
  879. package/dist/types/components/ic-skeleton/ic-skeleton.types.d.ts +1 -0
  880. package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +21 -0
  881. package/dist/types/components/ic-status-tag/ic-status-tag.test.a11y.d.ts +1 -0
  882. package/dist/types/components/ic-status-tag/ic-status-tag.types.d.ts +2 -0
  883. package/dist/types/components/ic-step/ic-step.d.ts +26 -0
  884. package/dist/types/components/ic-step/ic-step.types.d.ts +1 -0
  885. package/dist/types/components/ic-stepper/ic-stepper.d.ts +26 -0
  886. package/dist/types/components/ic-stepper/ic-stepper.test.a11y.d.ts +1 -0
  887. package/dist/types/components/ic-stepper/ic-stepper.types.d.ts +1 -0
  888. package/dist/types/components/ic-switch/ic-switch.d.ts +67 -0
  889. package/dist/types/components/ic-switch/ic-switch.test.a11y.d.ts +1 -0
  890. package/dist/types/components/ic-switch/ic-switch.types.d.ts +4 -0
  891. package/dist/types/components/ic-tab/ic-tab.d.ts +38 -0
  892. package/dist/types/components/ic-tab/ic-tab.types.d.ts +8 -0
  893. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +51 -0
  894. package/dist/types/components/ic-tab-context/ic-tab-context.test.a11y.d.ts +1 -0
  895. package/dist/types/components/ic-tab-list/ic-tab-list.d.ts +49 -0
  896. package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +15 -0
  897. package/dist/types/components/ic-text-field/ic-text-field.d.ts +199 -0
  898. package/dist/types/components/ic-text-field/ic-text-field.test.a11y.d.ts +1 -0
  899. package/dist/types/components/ic-text-field/ic-text-field.types.d.ts +3 -0
  900. package/dist/types/components/ic-theme/ic-theme.d.ts +17 -0
  901. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +35 -0
  902. package/dist/types/components/ic-tooltip/ic-tooltip.test.a11y.d.ts +1 -0
  903. package/dist/types/components/ic-tooltip/ic-tooltip.types.d.ts +1 -0
  904. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +79 -0
  905. package/dist/types/components/ic-top-navigation/ic-top-navigation.test.a11y.d.ts +1 -0
  906. package/dist/types/components/ic-typography/ic-typography.d.ts +13 -0
  907. package/dist/types/components/ic-typography/ic-typography.test.a11y.d.ts +1 -0
  908. package/dist/types/components.d.ts +3276 -0
  909. package/dist/types/index.d.ts +1 -0
  910. package/dist/types/interface.d.ts +15 -0
  911. package/dist/types/stencil-public-runtime.d.ts +1581 -0
  912. package/dist/types/testspec.setup.d.ts +3 -0
  913. package/dist/types/utils/constants.d.ts +14 -0
  914. package/dist/types/utils/helpers.d.ts +95 -0
  915. package/dist/types/utils/testa11y.helpers.d.ts +2 -0
  916. package/dist/types/utils/types.d.ts +53 -0
  917. package/hydrate/index.d.ts +217 -0
  918. package/hydrate/index.js +14702 -0
  919. package/hydrate/package.json +6 -0
  920. package/loader/cdn.js +3 -0
  921. package/loader/index.cjs.js +3 -0
  922. package/loader/index.d.ts +12 -0
  923. package/loader/index.es2017.js +3 -0
  924. package/loader/index.js +4 -0
  925. package/loader/package.json +11 -0
  926. package/package.json +74 -0
@@ -0,0 +1,397 @@
1
+ var IcInformationStatus;
2
+ (function (IcInformationStatus) {
3
+ IcInformationStatus["Warning"] = "warning";
4
+ IcInformationStatus["Error"] = "error";
5
+ IcInformationStatus["Success"] = "success";
6
+ })(IcInformationStatus || (IcInformationStatus = {}));
7
+ var IcThemeForegroundEnum;
8
+ (function (IcThemeForegroundEnum) {
9
+ IcThemeForegroundEnum["Default"] = "default";
10
+ IcThemeForegroundEnum["Dark"] = "dark";
11
+ IcThemeForegroundEnum["Light"] = "light";
12
+ })(IcThemeForegroundEnum || (IcThemeForegroundEnum = {}));
13
+
14
+ // Global ARIA attributes
15
+ const IC_INHERITED_ARIA = [
16
+ "aria-atomic",
17
+ "aria-busy",
18
+ "aria-controls",
19
+ "aria-current",
20
+ "aria-describedby",
21
+ "aria-description",
22
+ "aria-details",
23
+ "aria-disabled",
24
+ "aria-dropeffect",
25
+ "aria-errormessage",
26
+ "aria-flowto",
27
+ "aria-grabbed",
28
+ "aria-haspopup",
29
+ "aria-hidden",
30
+ "aria-invalid",
31
+ "aria-keyshortcuts",
32
+ "aria-label",
33
+ "aria-labelledby",
34
+ "aria-live",
35
+ "aria-owns",
36
+ "aria-relevant",
37
+ "aria-roledescription",
38
+ ];
39
+ const IC_DEVICE_SIZES = {
40
+ XS: 576,
41
+ S: 768,
42
+ M: 992,
43
+ L: 1200,
44
+ XL: 99999,
45
+ };
46
+ const IC_BLOCK_COLOR_COMPONENTS = [
47
+ "ic-hero",
48
+ "ic-top-navigation",
49
+ "ic-footer",
50
+ "ic-side-navigation",
51
+ "ic-alert",
52
+ ];
53
+ const IC_FIXED_COLOR_COMPONENTS = ["ic-alert"];
54
+ const IC_BLOCK_COLOR_EXCEPTIONS = {
55
+ "ic-alert": ["ic-link"],
56
+ };
57
+
58
+ const DARK_MODE_THRESHOLD = 128;
59
+ /**
60
+ * Used to inherit global attributes set on the host. Called in componentWillLoad and assigned
61
+ * to a variable that is later used in the render function.
62
+ *
63
+ * This does not need to be reactive as changing attributes on the host element
64
+ * does not trigger a re-render.
65
+ */
66
+ const inheritAttributes = (element, attributes = []) => {
67
+ const attributeObject = {};
68
+ attributes.forEach((attr) => {
69
+ if (element.hasAttribute(attr)) {
70
+ const value = element.getAttribute(attr);
71
+ if (value !== null) {
72
+ attributeObject[attr] = element.getAttribute(attr);
73
+ }
74
+ element.removeAttribute(attr);
75
+ }
76
+ });
77
+ return attributeObject;
78
+ };
79
+ const debounceEvent = (event, wait) => {
80
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
81
+ const original = event._original || event;
82
+ return {
83
+ _original: event,
84
+ emit: debounce(original.emit.bind(original), wait),
85
+ };
86
+ };
87
+ const debounce = (func, wait = 0) => {
88
+ let timer;
89
+ return (...args) => {
90
+ clearTimeout(timer);
91
+ timer = setTimeout(func, wait, ...args);
92
+ };
93
+ };
94
+ /**
95
+ * This method is used to add a hidden input to a host element that contains
96
+ * a Shadow DOM. It does not add the input inside of the Shadow root which
97
+ * allows it to be picked up inside of forms. It should contain the same
98
+ * values as the host element.
99
+ *
100
+ * @param always Add a hidden input even if the container does not use Shadow
101
+ * @param container The element where the input will be added
102
+ * @param name The name of the input
103
+ * @param value The value of the input
104
+ * @param disabled If true, the input is disabled
105
+ */
106
+ const renderHiddenInput = (always, container, name, value, disabled) => {
107
+ if (always || hasShadowDom(container)) {
108
+ let input = container.querySelector("input.ic-input");
109
+ if (input === null) {
110
+ input = container.ownerDocument.createElement("input");
111
+ input.type = "hidden";
112
+ input.classList.add("ic-input");
113
+ container.appendChild(input);
114
+ }
115
+ input.disabled = disabled;
116
+ input.name = name;
117
+ input.value = value || "";
118
+ }
119
+ };
120
+ const removeHiddenInput = (container) => {
121
+ const input = container.querySelector("input.ic-input");
122
+ input === null || input === void 0 ? void 0 : input.remove();
123
+ };
124
+ const hasShadowDom = (el) => {
125
+ return !!el.shadowRoot && !!el.attachShadow;
126
+ };
127
+ const getInputHelperTextID = (id) => {
128
+ return id + "-helper-text";
129
+ };
130
+ const getInputValidationTextID = (id) => {
131
+ return id + "-validation-text";
132
+ };
133
+ const getInputDescribedByText = (inputId, helperText, validationText) => {
134
+ return `${helperText ? getInputHelperTextID(inputId) : ""} ${validationText ? getInputValidationTextID(inputId) : ""}`.trim();
135
+ };
136
+ /**
137
+ * This method helps to understand the context in which a component exists,
138
+ * to assist with choosing appropriate foreground colours to use. For example,
139
+ * this method will help you use the 'white' version of a button if it's within
140
+ * a block colour element using white foreground text.
141
+ *
142
+ * This only works for components/elements passed via <slot> and not if they
143
+ * are part of an IC component.
144
+ *
145
+ * ""
146
+ * @returns IcThemeForeground depending on the context
147
+ */
148
+ const getThemeFromContext = (el, themeFromEvent = null) => {
149
+ var _a;
150
+ const blockColorParent = el.parentElement.closest(IC_BLOCK_COLOR_COMPONENTS.join(","));
151
+ // If within a block color component
152
+ if (blockColorParent !== null) {
153
+ const parentTag = blockColorParent.tagName.toLowerCase();
154
+ const currentTag = el.tagName.toLowerCase();
155
+ if ((_a = IC_BLOCK_COLOR_EXCEPTIONS[parentTag]) === null || _a === void 0 ? void 0 : _a.includes(currentTag)) {
156
+ return IcThemeForegroundEnum.Default;
157
+ }
158
+ else if (themeFromEvent !== null &&
159
+ !IC_FIXED_COLOR_COMPONENTS.includes(parentTag)) {
160
+ return themeFromEvent;
161
+ }
162
+ else if (blockColorParent.classList.contains(IcThemeForegroundEnum.Dark)) {
163
+ return IcThemeForegroundEnum.Dark;
164
+ }
165
+ return IcThemeForegroundEnum.Light;
166
+ }
167
+ return IcThemeForegroundEnum.Default;
168
+ };
169
+ const isMobileOrTablet = () => {
170
+ let isMobileOrTablet = false;
171
+ if ("maxTouchPoints" in navigator) {
172
+ isMobileOrTablet = navigator.maxTouchPoints > 0;
173
+ }
174
+ return isMobileOrTablet;
175
+ };
176
+ /**
177
+ * Will create a button within the lightDOM which interacts with the parent form.
178
+ * This is required as buttons within the shadowDOM will not invoke a submit or reset
179
+ *
180
+ * @param form - parent form element which contains shadowDom button
181
+ * @param button - shadowDOM button
182
+ */
183
+ const handleHiddenFormButtonClick = (form, button) => {
184
+ const hiddenFormButton = document.createElement("button");
185
+ hiddenFormButton.setAttribute("type", button.type);
186
+ hiddenFormButton.style.display = "none";
187
+ form.appendChild(hiddenFormButton);
188
+ hiddenFormButton.click();
189
+ hiddenFormButton.remove();
190
+ };
191
+ const isEmptyString = (value) => value.trim().length === 0;
192
+ /**
193
+ * Extracts the label using the value from an object. Requires the object to have a label and value property.
194
+ * @param value - value from object
195
+ * @param options - list of menu items
196
+ * @returns - label correspoonding to value
197
+ */
198
+ const getLabelFromValue = (value, options) => {
199
+ var _a;
200
+ const ungroupedOptions = [];
201
+ if (options.length > 0) {
202
+ options.map((option) => {
203
+ if (option.children) {
204
+ option.children.map((option) => ungroupedOptions.push(option));
205
+ }
206
+ else {
207
+ ungroupedOptions.push(option);
208
+ }
209
+ });
210
+ return (_a = ungroupedOptions.find((option) => option.value === value)) === null || _a === void 0 ? void 0 : _a.label;
211
+ }
212
+ return undefined;
213
+ };
214
+ const deviceSizeMatches = (size) => window.matchMedia(`(max-width: ${size}px)`).matches;
215
+ const getCurrentDeviceSize = () => {
216
+ if (deviceSizeMatches(DEVICE_SIZES.S)) {
217
+ return DEVICE_SIZES.S;
218
+ }
219
+ if (deviceSizeMatches(DEVICE_SIZES.M)) {
220
+ return DEVICE_SIZES.M;
221
+ }
222
+ if (deviceSizeMatches(DEVICE_SIZES.L)) {
223
+ return DEVICE_SIZES.L;
224
+ }
225
+ if (deviceSizeMatches(DEVICE_SIZES.XL)) {
226
+ return DEVICE_SIZES.XL;
227
+ }
228
+ //fallback needed as all of above get initialised to 0 in jest tests
229
+ return DEVICE_SIZES.UNDEFINED;
230
+ };
231
+ const getCssProperty = (cssVar) => {
232
+ return getComputedStyle(document.documentElement).getPropertyValue(cssVar);
233
+ };
234
+ const getThemeForegroundColor = () => {
235
+ /*
236
+ Returns if dark or light font colors should be used for color contrast reasons, calculated by using the theme RGB CSS values by:
237
+ - Multiplying each RGB value by a set number: https://www.w3.org/TR/AERT/#color-contrast
238
+ - Adding them together and dividing by 1000
239
+ - If the result is greater than 128 return "dark" color, else return "light" color
240
+ This is a similar calculation to it's CSS counterpart: "--ic-theme-text"
241
+ */
242
+ const themeRed = getCssProperty("--ic-theme-primary-r");
243
+ const themeGreen = getCssProperty("--ic-theme-primary-g");
244
+ const themeBlue = getCssProperty("--ic-theme-primary-b");
245
+ const fontColor = Math.round((parseInt(themeRed) * 299 +
246
+ parseInt(themeGreen) * 587 +
247
+ parseInt(themeBlue) * 114) /
248
+ 1000);
249
+ return fontColor > DARK_MODE_THRESHOLD
250
+ ? IcThemeForegroundEnum.Dark
251
+ : IcThemeForegroundEnum.Light;
252
+ };
253
+ const getSlot = (element, name) => {
254
+ if (element && element.querySelector) {
255
+ return element.querySelector(`[slot="${name}"]`);
256
+ }
257
+ return null;
258
+ };
259
+ const slotHasContent = (element, name) => getSlot(element, name) !== null;
260
+ const getSlotContent = (element, name) => {
261
+ const slot = getSlot(element, name);
262
+ if (slot) {
263
+ return getSlotElements(slot);
264
+ }
265
+ return null;
266
+ };
267
+ const getSlotElements = (slot) => {
268
+ const slotContent = slot.firstElementChild;
269
+ if (slotContent !== null) {
270
+ const elements = slotContent.assignedElements
271
+ ? slotContent.assignedElements()
272
+ : slotContent.childNodes;
273
+ return elements.length ? elements : null;
274
+ }
275
+ else {
276
+ //check for single element
277
+ return slot === null ? null : [slot];
278
+ }
279
+ };
280
+ const getNavItemParentDetails = (el) => {
281
+ let navType = { navType: "", parent: null };
282
+ switch (getParentElementType(el)) {
283
+ case "IC-NAVIGATION-GROUP":
284
+ navType = getNavItemParentDetails(el.parentElement);
285
+ break;
286
+ case "IC-TOP-NAVIGATION":
287
+ navType = { navType: "top", parent: getParentElement(el) };
288
+ break;
289
+ case "IC-SIDE-NAVIGATION":
290
+ navType = { navType: "side", parent: getParentElement(el) };
291
+ break;
292
+ case "IC-PAGE-HEADER":
293
+ navType = { navType: "page-header", parent: null };
294
+ break;
295
+ }
296
+ return navType;
297
+ };
298
+ const DEVICE_SIZES = {
299
+ XS: Number(getCssProperty("--ic-breakpoint-xs").replace("px", "")),
300
+ S: Number(getCssProperty("--ic-breakpoint-sm").replace("px", "")),
301
+ M: Number(getCssProperty("--ic-breakpoint-md").replace("px", "")),
302
+ L: Number(getCssProperty("--ic-breakpoint-lg").replace("px", "")),
303
+ XL: Number(getCssProperty("--ic-breakpoint-xl").replace("px", "")),
304
+ UNDEFINED: 1200,
305
+ };
306
+ const hasValidationStatus = (status, disabled) => {
307
+ return status !== "" && !disabled;
308
+ };
309
+ const isSlotUsed = (element, slotName) => {
310
+ return !!element.querySelector(`[slot="${slotName}"]`);
311
+ };
312
+ // added as a common method to allow detection of gatsby hydration issue, where (camelCase) props are initially undefined & then update
313
+ // with a value. Allows a callback function to be executed when this is the case
314
+ const onComponentPropUndefinedChange = (oldValue, newValue, callback) => {
315
+ if (oldValue === undefined && newValue !== oldValue) {
316
+ callback();
317
+ }
318
+ };
319
+ const onComponentRequiredPropUndefined = (props, component) => {
320
+ for (let i = 0; i < props.length; i++) {
321
+ const { prop, propName } = props[i];
322
+ if (prop === null || prop === undefined) {
323
+ console.error(`No ${propName} specified for ${component} component - prop '${propName}' (web components) / '${kebabToCamelCase(propName)}' (react) required`);
324
+ }
325
+ }
326
+ };
327
+ const kebabToCamelCase = (kebabCase) => {
328
+ kebabCase = kebabCase.toLowerCase();
329
+ const individualWords = kebabCase.split("-");
330
+ let camelCase = individualWords[0];
331
+ for (let i = 1; i < individualWords.length; i++) {
332
+ camelCase +=
333
+ individualWords[i].substring(0, 1).toUpperCase() +
334
+ individualWords[i].substring(1);
335
+ }
336
+ return camelCase;
337
+ };
338
+ const checkResizeObserver = (callbackFn) => {
339
+ if (typeof window !== "undefined" &&
340
+ typeof window.ResizeObserver !== "undefined") {
341
+ callbackFn();
342
+ }
343
+ };
344
+ const hex2dec = function (v) {
345
+ return parseInt(v, 16);
346
+ };
347
+ const hexToRgb = (hex) => {
348
+ let c;
349
+ if (hex.length === 4) {
350
+ c = hex.replace("#", "").split("");
351
+ return {
352
+ r: hex2dec(c[0] + c[0]),
353
+ g: hex2dec(c[1] + c[1]),
354
+ b: hex2dec(c[2] + c[2]),
355
+ };
356
+ }
357
+ else {
358
+ return {
359
+ r: hex2dec(hex.slice(1, 3)),
360
+ g: hex2dec(hex.slice(3, 5)),
361
+ b: hex2dec(hex.slice(5)),
362
+ };
363
+ }
364
+ };
365
+ const rgbStrToObj = (rgbStr) => {
366
+ const colorRGB = { r: null, g: null, b: null };
367
+ const rgb = rgbStr
368
+ .substring(4, rgbStr.length - 1)
369
+ .replace(/ /g, "")
370
+ .split(",");
371
+ colorRGB.r = Number(rgb[0]);
372
+ colorRGB.g = Number(rgb[1]);
373
+ colorRGB.b = Number(rgb[2]);
374
+ return colorRGB;
375
+ };
376
+ const elementOverflowsX = (element) => {
377
+ return element.scrollWidth > element.clientWidth;
378
+ };
379
+ /**
380
+ *
381
+ * @param child - The child element
382
+ * @returns string
383
+ */
384
+ const getParentElementType = (child) => child.parentElement.tagName;
385
+ const getParentElement = (child) => child.parentElement;
386
+ const hasClassificationBanner = () => {
387
+ if (document.querySelector("ic-classification-banner:not([inline='true'])")) {
388
+ return true;
389
+ }
390
+ else {
391
+ return false;
392
+ }
393
+ };
394
+
395
+ export { rgbStrToObj as A, getSlot as B, getThemeFromContext as C, DEVICE_SIZES as D, getInputHelperTextID as E, getInputValidationTextID as F, isEmptyString as G, IcThemeForegroundEnum as I, onComponentRequiredPropUndefined as a, removeHiddenInput as b, checkResizeObserver as c, getInputDescribedByText as d, IC_DEVICE_SIZES as e, getThemeForegroundColor as f, getCurrentDeviceSize as g, hasValidationStatus as h, isSlotUsed as i, hasClassificationBanner as j, inheritAttributes as k, IC_INHERITED_ARIA as l, getNavItemParentDetails as m, getParentElementType as n, onComponentPropUndefinedChange as o, getSlotContent as p, handleHiddenFormButtonClick as q, renderHiddenInput as r, slotHasContent as s, debounceEvent as t, getLabelFromValue as u, isMobileOrTablet as v, IcInformationStatus as w, getCssProperty as x, elementOverflowsX as y, hexToRgb as z };
396
+
397
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"file":"helpers.js","mappings":"IAAY;AAAZ,WAAY,mBAAmB;EAC7B,0CAAmB,CAAA;EACnB,sCAAe,CAAA;EACf,0CAAmB,CAAA;AACrB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;IAkEW;AAAZ,WAAY,qBAAqB;EAC/B,4CAAmB,CAAA;EACnB,sCAAa,CAAA;EACb,wCAAe,CAAA;AACjB,CAAC,EAJW,qBAAqB,KAArB,qBAAqB;;ACtEjC;MACa,iBAAiB,GAAG;EAC/B,aAAa;EACb,WAAW;EACX,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,mBAAmB;EACnB,aAAa;EACb,cAAc;EACd,eAAe;EACf,aAAa;EACb,cAAc;EACd,mBAAmB;EACnB,YAAY;EACZ,iBAAiB;EACjB,WAAW;EACX,WAAW;EACX,eAAe;EACf,sBAAsB;EACtB;MAEW,eAAe,GAAG;EAC7B,EAAE,EAAE,GAAG;EACP,CAAC,EAAE,GAAG;EACN,CAAC,EAAE,GAAG;EACN,CAAC,EAAE,IAAI;EACP,EAAE,EAAE,KAAK;EACT;A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M,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;EAE5B,OAAO,QAAQ,CAAC;AAClB,EAAE;MAEW,iBAAiB,GAAG,CAAC,OAAoB;EACpD,OAAO,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;AACnD,EAAE;AACF;;;;;MAKa,oBAAoB,GAAG,CAAC,KAAkB,KACrD,KAAK,CAAC,aAAa,CAAC,QAAQ;AAEvB,MAAM,gBAAgB,GAAG,CAAC,KAAkB,KACjD,KAAK,CAAC,aAAa,CAAC;MAET,uBAAuB,GAAG;EACrC,IAAI,QAAQ,CAAC,aAAa,CAAC,+CAA+C,CAAC,EAAE;IAC3E,OAAO,IAAI,CAAC;GACb;OAAM;IACL,OAAO,KAAK,CAAC;GACd;AACH;;;;","names":[],"sources":["./src/utils/types.ts","./src/utils/constants.ts","./src/utils/helpers.ts"],"sourcesContent":["export enum IcInformationStatus {\n Warning = \"warning\",\n Error = \"error\",\n Success = \"success\",\n}\n\nexport type IcInformationStatusOrEmpty = \"warning\" | \"error\" | \"success\" | \"\";\n\nexport type IcNavType = \"side\" | \"top\" | \"page-header\";\n\n// From: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete\nexport type IcAutocompleteTypes =\n | \"on\"\n | \"off\"\n | \"name\"\n | \"honorific-prefix\"\n | \"given-name\"\n | \"additional-name\"\n | \"family-name\"\n | \"honorific-suffix\"\n | \"nickname\"\n | \"email\"\n | \"username\"\n | \"new-password\"\n | \"current-password\"\n | \"one-time-code\"\n | \"organization-title\"\n | \"organization\"\n | \"street-address\"\n | \"address-line1\"\n | \"address-line2\"\n | \"address-line3\"\n | \"address-level4\"\n | \"address-level3\"\n | \"address-level2\"\n | \"address-level1\"\n | \"country\"\n | \"country-name\"\n | \"postal-code\"\n | \"cc-name\"\n | \"cc-given-name\"\n | \"cc-additional-name\"\n | \"cc-family-name\"\n | \"cc-family-name\"\n | \"cc-number\"\n | \"cc-exp\"\n | \"cc-exp-month\"\n | \"cc-exp-year\"\n | \"cc-csc\"\n | \"cc-type\"\n | \"transaction-currency\"\n | \"transaction-amount\"\n | \"language\"\n | \"bday\"\n | \"bday-day\"\n | \"bday-month\"\n | \"bday-year\"\n | \"sex\"\n | \"tel\"\n | \"tel-country-code\"\n | \"tel-national\"\n | \"tel-area-code\"\n | \"tel-local\"\n | \"tel-extension\"\n | \"impp\"\n | \"url\"\n | \"photo\";\n\nexport type IcAlignment = \"left\" | \"center\" | \"full-width\";\n\nexport enum IcThemeForegroundEnum {\n Default = \"default\",\n Dark = \"dark\",\n Light = \"light\",\n}\n\nexport type IcThemeForeground = \"default\" | \"dark\" | \"light\";\n\nexport type IcTheme = {\n mode: IcThemeForeground;\n color: IcColorRGB;\n};\n\nexport type IcAdditionalFieldTypes = \"static\" | \"dynamic\";\n\nexport type IcColorRGB = {\n r: number;\n g: number;\n b: number;\n};\n\nexport type IcActivationTypes = \"automatic\" | \"manual\";\n\nexport type IcAutocorrectStates = \"on\" | \"off\";\n\nexport type IcNavParentDetails = {\n navType: IcNavType | \"\";\n parent: HTMLElement;\n};\n\nexport type IcTypographyVariants =\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"subtitle-large\"\n | \"subtitle-small\"\n | \"body\"\n | \"label\"\n | \"label-uppercase\"\n | \"caption\"\n | \"caption-uppercase\";\n\nexport interface IcMenuOption {\n value?: string;\n label: string;\n description?: string;\n disabled?: boolean;\n recommended?: boolean;\n children?: IcMenuOption[];\n}\n\nexport type IcCallbackFunctionNoReturn = (...args: unknown[]) => void;\n\nexport type IcRequiredPropsTypes =\n | string\n | boolean\n | number\n | HTMLElement\n | IcMenuOption[];\n\nexport type IcPropObject = { prop: IcRequiredPropsTypes; propName: string };\n\nexport type IcRelatedTarget = EventTarget | undefined;\n\nexport interface IcValueEventDetail {\n value: string;\n}\nexport interface IcBlurEventDetail {\n relatedTarget: IcRelatedTarget;\n}\n","// Global ARIA attributes\nexport const IC_INHERITED_ARIA = [\n \"aria-atomic\",\n \"aria-busy\",\n \"aria-controls\",\n \"aria-current\",\n \"aria-describedby\",\n \"aria-description\",\n \"aria-details\",\n \"aria-disabled\",\n \"aria-dropeffect\",\n \"aria-errormessage\",\n \"aria-flowto\",\n \"aria-grabbed\",\n \"aria-haspopup\",\n \"aria-hidden\",\n \"aria-invalid\",\n \"aria-keyshortcuts\",\n \"aria-label\",\n \"aria-labelledby\",\n \"aria-live\",\n \"aria-owns\",\n \"aria-relevant\",\n \"aria-roledescription\",\n];\n\nexport const IC_DEVICE_SIZES = {\n XS: 576,\n S: 768,\n M: 992,\n L: 1200,\n XL: 99999,\n};\n\nexport const IC_BLOCK_COLOR_COMPONENTS = [\n \"ic-hero\",\n \"ic-top-navigation\",\n \"ic-footer\",\n \"ic-side-navigation\",\n \"ic-alert\",\n];\n\nexport const IC_FIXED_COLOR_COMPONENTS = [\"ic-alert\"];\n\nexport interface IcColorExceptions {\n [details: string]: string[];\n}\n\nexport const IC_BLOCK_COLOR_EXCEPTIONS: IcColorExceptions = {\n \"ic-alert\": [\"ic-link\"],\n};\n","import { EventEmitter } from \"@stencil/core\";\nimport {\n IcCallbackFunctionNoReturn,\n IcInformationStatusOrEmpty,\n IcNavParentDetails,\n IcPropObject,\n IcColorRGB,\n} from \"./types\";\n\nimport {\n IcMenuOption,\n IcThemeForeground,\n IcThemeForegroundEnum,\n} from \"../utils/types\";\nimport {\n IC_BLOCK_COLOR_COMPONENTS,\n IC_BLOCK_COLOR_EXCEPTIONS,\n IC_FIXED_COLOR_COMPONENTS,\n} from \"./constants\";\n\nconst DARK_MODE_THRESHOLD = 128;\n\n/**\n * Used to inherit global attributes set on the host. Called in componentWillLoad and assigned\n * to a variable that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\nexport const inheritAttributes = (\n element: HTMLElement,\n attributes: string[] = []\n): { [key: string]: unknown } => {\n const attributeObject: { [key: string]: unknown } = {};\n\n attributes.forEach((attr) => {\n if (element.hasAttribute(attr)) {\n const value = element.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = element.getAttribute(attr);\n }\n element.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n};\n\nexport const debounceEvent = (\n event: EventEmitter,\n wait: number\n): EventEmitter => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const original = (event as any)._original || event;\n return {\n _original: event,\n emit: debounce(original.emit.bind(original), wait),\n } as EventEmitter;\n};\n\nexport const debounce = (\n func: (...args: unknown[]) => void,\n wait = 0\n): unknown => {\n let timer: ReturnType<typeof setTimeout>;\n return (...args: unknown[]) => {\n clearTimeout(timer);\n timer = setTimeout(func, wait, ...args);\n };\n};\n\n/**\n * This method is used to add a hidden input to a host element that contains\n * a Shadow DOM. It does not add the input inside of the Shadow root which\n * allows it to be picked up inside of forms. It should contain the same\n * values as the host element.\n *\n * @param always Add a hidden input even if the container does not use Shadow\n * @param container The element where the input will be added\n * @param name The name of the input\n * @param value The value of the input\n * @param disabled If true, the input is disabled\n */\nexport const renderHiddenInput = (\n always: boolean,\n container: HTMLElement,\n name: string,\n value: string | undefined | null,\n disabled: boolean\n): void => {\n if (always || hasShadowDom(container)) {\n let input = container.querySelector(\n \"input.ic-input\"\n ) as HTMLInputElement | null;\n if (input === null) {\n input = container.ownerDocument.createElement(\"input\");\n input.type = \"hidden\";\n input.classList.add(\"ic-input\");\n container.appendChild(input);\n }\n input.disabled = disabled;\n input.name = name;\n input.value = value || \"\";\n }\n};\n\nexport const removeHiddenInput = (container: HTMLElement): void => {\n const input = container.querySelector(\n \"input.ic-input\"\n ) as HTMLInputElement | null;\n input?.remove();\n};\n\nexport const hasShadowDom = (el: HTMLElement): boolean => {\n return !!el.shadowRoot && !!el.attachShadow;\n};\n\nexport const getInputHelperTextID = (id: string): string => {\n return id + \"-helper-text\";\n};\n\nexport const getInputValidationTextID = (id: string): string => {\n return id + \"-validation-text\";\n};\n\nexport const getInputDescribedByText = (\n inputId: string,\n helperText: boolean,\n validationText: boolean\n): string => {\n return `${helperText ? getInputHelperTextID(inputId) : \"\"} ${\n validationText ? getInputValidationTextID(inputId) : \"\"\n }`.trim();\n};\n\n/**\n * This method helps to understand the context in which a component exists,\n * to assist with choosing appropriate foreground colours to use. For example,\n * this method will help you use the 'white' version of a button if it's within\n * a block colour element using white foreground text.\n *\n * This only works for components/elements passed via <slot> and not if they\n * are part of an IC component.\n *\n * \"\"\n * @returns IcThemeForeground depending on the context\n */\nexport const getThemeFromContext = (\n el: Element,\n themeFromEvent: IcThemeForeground = null\n): IcThemeForeground => {\n const blockColorParent = el.parentElement.closest(\n IC_BLOCK_COLOR_COMPONENTS.join(\",\")\n );\n\n // If within a block color component\n if (blockColorParent !== null) {\n const parentTag = blockColorParent.tagName.toLowerCase();\n const currentTag = el.tagName.toLowerCase();\n\n if (IC_BLOCK_COLOR_EXCEPTIONS[parentTag]?.includes(currentTag)) {\n return IcThemeForegroundEnum.Default;\n } else if (\n themeFromEvent !== null &&\n !IC_FIXED_COLOR_COMPONENTS.includes(parentTag)\n ) {\n return themeFromEvent;\n } else if (\n blockColorParent.classList.contains(IcThemeForegroundEnum.Dark)\n ) {\n return IcThemeForegroundEnum.Dark;\n }\n\n return IcThemeForegroundEnum.Light;\n }\n\n return IcThemeForegroundEnum.Default;\n};\n\nexport const isMobileOrTablet = (): boolean => {\n let isMobileOrTablet = false;\n if (\"maxTouchPoints\" in navigator) {\n isMobileOrTablet = navigator.maxTouchPoints > 0;\n }\n return isMobileOrTablet;\n};\n\n/**\n * Will create a button within the lightDOM which interacts with the parent form.\n * This is required as buttons within the shadowDOM will not invoke a submit or reset\n *\n * @param form - parent form element which contains shadowDom button\n * @param button - shadowDOM button\n */\nexport const handleHiddenFormButtonClick = (\n form: HTMLFormElement,\n button: HTMLIcButtonElement | HTMLButtonElement\n): void => {\n const hiddenFormButton = document.createElement(\"button\");\n\n hiddenFormButton.setAttribute(\"type\", button.type);\n hiddenFormButton.style.display = \"none\";\n\n form.appendChild(hiddenFormButton);\n\n hiddenFormButton.click();\n hiddenFormButton.remove();\n};\n\nexport const isEmptyString = (value: string): boolean =>\n value.trim().length === 0;\n\n/**\n * Extracts the label using the value from an object. Requires the object to have a label and value property.\n * @param value - value from object\n * @param options - list of menu items\n * @returns - label correspoonding to value\n */\nexport const getLabelFromValue = (\n value: string,\n options: IcMenuOption[]\n): string | undefined => {\n const ungroupedOptions: IcMenuOption[] = [];\n if (options.length > 0) {\n options.map((option) => {\n if (option.children) {\n option.children.map((option: IcMenuOption) =>\n ungroupedOptions.push(option)\n );\n } else {\n ungroupedOptions.push(option);\n }\n });\n return ungroupedOptions.find((option) => option.value === value)?.label;\n }\n\n return undefined;\n};\n\nconst deviceSizeMatches = (size: number): boolean =>\n window.matchMedia(`(max-width: ${size}px)`).matches;\n\nexport const getCurrentDeviceSize = (): number => {\n if (deviceSizeMatches(DEVICE_SIZES.S)) {\n return DEVICE_SIZES.S;\n }\n if (deviceSizeMatches(DEVICE_SIZES.M)) {\n return DEVICE_SIZES.M;\n }\n if (deviceSizeMatches(DEVICE_SIZES.L)) {\n return DEVICE_SIZES.L;\n }\n if (deviceSizeMatches(DEVICE_SIZES.XL)) {\n return DEVICE_SIZES.XL;\n }\n //fallback needed as all of above get initialised to 0 in jest tests\n return DEVICE_SIZES.UNDEFINED;\n};\n\nexport const getCssProperty = (cssVar: string): string => {\n return getComputedStyle(document.documentElement).getPropertyValue(cssVar);\n};\n\nexport const getThemeForegroundColor = (): IcThemeForeground => {\n /*\n Returns if dark or light font colors should be used for color contrast reasons, calculated by using the theme RGB CSS values by:\n - Multiplying each RGB value by a set number: https://www.w3.org/TR/AERT/#color-contrast\n - Adding them together and dividing by 1000\n - If the result is greater than 128 return \"dark\" color, else return \"light\" color\n This is a similar calculation to it's CSS counterpart: \"--ic-theme-text\"\n */\n const themeRed = getCssProperty(\"--ic-theme-primary-r\");\n const themeGreen = getCssProperty(\"--ic-theme-primary-g\");\n const themeBlue = getCssProperty(\"--ic-theme-primary-b\");\n const fontColor = Math.round(\n (parseInt(themeRed) * 299 +\n parseInt(themeGreen) * 587 +\n parseInt(themeBlue) * 114) /\n 1000\n );\n\n return fontColor > DARK_MODE_THRESHOLD\n ? IcThemeForegroundEnum.Dark\n : IcThemeForegroundEnum.Light;\n};\n\nexport const getSlot = (element: HTMLElement, name: string): Element | null => {\n if (element && element.querySelector) {\n return element.querySelector(`[slot=\"${name}\"]`);\n }\n return null;\n};\n\nexport const slotHasContent = (element: HTMLElement, name: string): boolean =>\n getSlot(element, name) !== null;\n\nexport const getSlotContent = (\n element: HTMLElement,\n name: string\n): Element[] | NodeListOf<ChildNode> | null => {\n const slot = getSlot(element, name);\n if (slot) {\n return getSlotElements(slot);\n }\n\n return null;\n};\n\nconst getSlotElements = (slot: Element) => {\n const slotContent = slot.firstElementChild as HTMLSlotElement;\n\n if (slotContent !== null) {\n const elements = slotContent.assignedElements\n ? slotContent.assignedElements()\n : slotContent.childNodes;\n return elements.length ? elements : null;\n } else {\n //check for single element\n return slot === null ? null : [slot];\n }\n};\n\nexport const getNavItemParentDetails = (\n el: HTMLElement\n): IcNavParentDetails => {\n let navType: IcNavParentDetails = { navType: \"\", parent: null };\n switch (getParentElementType(el)) {\n case \"IC-NAVIGATION-GROUP\":\n navType = getNavItemParentDetails(el.parentElement);\n break;\n case \"IC-TOP-NAVIGATION\":\n navType = { navType: \"top\", parent: getParentElement(el) };\n break;\n case \"IC-SIDE-NAVIGATION\":\n navType = { navType: \"side\", parent: getParentElement(el) };\n break;\n case \"IC-PAGE-HEADER\":\n navType = { navType: \"page-header\", parent: null };\n break;\n }\n return navType;\n};\n\nexport const DEVICE_SIZES = {\n XS: Number(getCssProperty(\"--ic-breakpoint-xs\").replace(\"px\", \"\")), // 0\n S: Number(getCssProperty(\"--ic-breakpoint-sm\").replace(\"px\", \"\")), // 576\n M: Number(getCssProperty(\"--ic-breakpoint-md\").replace(\"px\", \"\")), // 768\n L: Number(getCssProperty(\"--ic-breakpoint-lg\").replace(\"px\", \"\")), // 992\n XL: Number(getCssProperty(\"--ic-breakpoint-xl\").replace(\"px\", \"\")), // 1200\n UNDEFINED: 1200,\n};\n\nexport const hasValidationStatus = (\n status: IcInformationStatusOrEmpty,\n disabled: boolean\n): boolean => {\n return status !== \"\" && !disabled;\n};\n\nexport const isSlotUsed = (element: HTMLElement, slotName: string): boolean => {\n return !!element.querySelector(`[slot=\"${slotName}\"]`);\n};\n\n// added as a common method to allow detection of gatsby hydration issue, where (camelCase) props are initially undefined & then update\n// with a value. Allows a callback function to be executed when this is the case\nexport const onComponentPropUndefinedChange = (\n oldValue: string | undefined,\n newValue: string | undefined,\n callback: IcCallbackFunctionNoReturn\n): void => {\n if (oldValue === undefined && newValue !== oldValue) {\n callback();\n }\n};\n\nexport const onComponentRequiredPropUndefined = (\n props: IcPropObject[],\n component: string\n): void => {\n for (let i = 0; i < props.length; i++) {\n const { prop, propName } = props[i];\n if (prop === null || prop === undefined) {\n console.error(\n `No ${propName} specified for ${component} component - prop '${propName}' (web components) / '${kebabToCamelCase(\n propName\n )}' (react) required`\n );\n }\n }\n};\n\nexport const kebabToCamelCase = (kebabCase: string): string => {\n kebabCase = kebabCase.toLowerCase();\n const individualWords: string[] = kebabCase.split(\"-\");\n let camelCase = individualWords[0];\n for (let i = 1; i < individualWords.length; i++) {\n camelCase +=\n individualWords[i].substring(0, 1).toUpperCase() +\n individualWords[i].substring(1);\n }\n return camelCase;\n};\n\nexport const checkResizeObserver = (\n callbackFn: IcCallbackFunctionNoReturn\n): void => {\n if (\n typeof window !== \"undefined\" &&\n typeof window.ResizeObserver !== \"undefined\"\n ) {\n callbackFn();\n }\n};\n\nconst hex2dec = function (v: string) {\n return parseInt(v, 16);\n};\n\nexport const hexToRgb = (hex: string): IcColorRGB => {\n let c;\n if (hex.length === 4) {\n c = hex.replace(\"#\", \"\").split(\"\");\n return {\n r: hex2dec(c[0] + c[0]),\n g: hex2dec(c[1] + c[1]),\n b: hex2dec(c[2] + c[2]),\n };\n } else {\n return {\n r: hex2dec(hex.slice(1, 3)),\n g: hex2dec(hex.slice(3, 5)),\n b: hex2dec(hex.slice(5)),\n };\n }\n};\n\nexport const rgbStrToObj = (rgbStr: string): IcColorRGB => {\n const colorRGB: IcColorRGB = { r: null, g: null, b: null };\n const rgb = rgbStr\n .substring(4, rgbStr.length - 1)\n .replace(/ /g, \"\")\n .split(\",\");\n colorRGB.r = Number(rgb[0]);\n colorRGB.g = Number(rgb[1]);\n colorRGB.b = Number(rgb[2]);\n\n return colorRGB;\n};\n\nexport const elementOverflowsX = (element: HTMLElement): boolean => {\n return element.scrollWidth > element.clientWidth;\n};\n/**\n *\n * @param child - The child element\n * @returns string\n */\nexport const getParentElementType = (child: HTMLElement): string =>\n child.parentElement.tagName;\n\nexport const getParentElement = (child: HTMLElement): HTMLElement =>\n child.parentElement;\n\nexport const hasClassificationBanner = (): boolean => {\n if (document.querySelector(\"ic-classification-banner:not([inline='true'])\")) {\n return true;\n } else {\n return false;\n }\n};\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface IcAlert extends Components.IcAlert, HTMLElement {}
4
+ export const IcAlert: {
5
+ prototype: IcAlert;
6
+ new (): IcAlert;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,138 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { w as warningIcon, e as errorIcon } from './error-icon.js';
3
+ import { s as successIcon } from './success-icon.js';
4
+ import { c as closeIcon } from './close-icon.js';
5
+ import { I as IcThemeForegroundEnum, i as isSlotUsed } from './helpers.js';
6
+ import { d as defineCustomElement$5 } from './ic-button2.js';
7
+ import { d as defineCustomElement$4 } from './ic-loading-indicator2.js';
8
+ import { d as defineCustomElement$3 } from './ic-tooltip2.js';
9
+ import { d as defineCustomElement$2 } from './ic-typography2.js';
10
+
11
+ const neutralIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000">
12
+ <path d="M0 0h24v24H0z" fill="none"/>
13
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/>
14
+ <title>neutral icon</title>
15
+ </svg>`;
16
+
17
+ const infoIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000">
18
+ <path d="M0 0h24v24H0z" fill="none"/>
19
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
20
+ <title>info icon</title>
21
+ </svg>`;
22
+
23
+ const icAlertCss = "/*! 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}.container{min-height:56px;border-radius:var(--ic-border-radius);position:relative;display:flex;align-items:center}.container-neutral{background-color:var(--ic-architectural-100)}.container-info{background-color:var(--ic-status-info-background)}.container-warning{background-color:var(--ic-status-warning-background)}.container-error{background-color:var(--ic-status-error-background)}.container-success{background-color:var(--ic-status-success-background)}.alert-icon-container{height:100%;display:flex;align-items:center}.divider{height:100%;width:var(--ic-space-xs);border-radius:var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);position:absolute}.divider-neutral{background-color:var(--ic-architectural-500)}.divider-info{background-color:var(--ic-status-info)}.divider-warning{background-color:var(--ic-status-warning-mid)}.divider-error{background-color:var(--ic-status-error)}.divider-success{background-color:var(--ic-status-success)}.alert-icon{height:var(--ic-space-lg);width:22px;margin-left:18px}.icon-neutral>svg{fill:var(--ic-architectural-500)}.icon-info>svg{fill:var(--ic-status-info)}.icon-warning>svg{fill:var(--ic-status-warning-mid)}.icon-error>svg{fill:var(--ic-status-error)}.icon-success>svg{fill:var(--ic-status-success)}.alert-content{display:flex;align-items:center;margin-left:10px;width:100%}.alert-message{display:flex;align-items:center;padding:var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;flex:1}.alert-message-title-above{display:inline;font-size:0}.alert-title{margin-right:var(--ic-space-xs)}.alert-title-above{white-space:normal}.alert-action-container{margin-right:var(--ic-space-xs);display:flex;align-items:center}.dismiss-icon{margin-right:var(--ic-space-xxxs);margin-left:-6px;padding:6px;border:none;border-radius:50%;background-color:inherit;display:flex;align-items:center;justify-content:center}.dismiss-icon svg{width:18px;height:18px}.dismiss-icon:hover{background-color:var(--ic-architectural-200);cursor:pointer}.dismiss-icon:active{background-color:var(--ic-architectural-300)}@media (max-width: 628px){.alert-content{display:flex;flex-direction:column;align-items:flex-start}.alert-message{display:flex;flex-direction:column;align-items:flex-start;font-size:1px}.alert-title{white-space:normal}.alert-action-container{margin-bottom:14px}}";
24
+
25
+ const icon = {
26
+ neutral: neutralIcon,
27
+ info: infoIcon,
28
+ warning: warningIcon,
29
+ error: errorIcon,
30
+ success: successIcon,
31
+ };
32
+ const Alert = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
33
+ constructor() {
34
+ super();
35
+ this.__registerHost();
36
+ this.__attachShadow();
37
+ this.dismiss = createEvent(this, "dismiss", 7);
38
+ this.dismissAction = () => {
39
+ this.dismiss.emit();
40
+ };
41
+ this.variant = "neutral";
42
+ this.heading = "";
43
+ this.message = undefined;
44
+ this.titleAbove = false;
45
+ this.dismissible = false;
46
+ this.announced = true;
47
+ this.visible = true;
48
+ this.alertTitleWrap = false;
49
+ }
50
+ handleClick() {
51
+ this.visible = !this.visible;
52
+ }
53
+ alertTitleShouldWrap() {
54
+ var _a;
55
+ const titleHeight = (_a = this.el.shadowRoot.querySelector(".alert-title")) === null || _a === void 0 ? void 0 : _a.clientHeight;
56
+ if (titleHeight > 24)
57
+ this.alertTitleWrap = true;
58
+ }
59
+ componentDidLoad() {
60
+ this.alertTitleShouldWrap();
61
+ }
62
+ render() {
63
+ const { variant, heading, message, titleAbove, dismissible, announced, visible, } = this;
64
+ return (visible && (h(Host, { role: announced && "alert", class: {
65
+ [IcThemeForegroundEnum.Dark]: true,
66
+ } }, h("div", { class: {
67
+ ["container"]: true,
68
+ [`container-${variant}`]: true,
69
+ } }, h("div", { class: "alert-icon-container" }, h("div", { class: {
70
+ ["divider"]: true,
71
+ [`divider-${variant}`]: true,
72
+ } }), h("span", { class: {
73
+ ["alert-icon"]: true,
74
+ ["svg-container"]: true,
75
+ [`icon-${variant}`]: true,
76
+ }, innerHTML: icon[variant] })), h("div", { class: "alert-content" }, h("div", { class: {
77
+ ["alert-message"]: true,
78
+ ["alert-message-title-above"]: titleAbove || this.alertTitleWrap,
79
+ } }, heading && (h("ic-typography", { class: {
80
+ ["alert-title"]: true,
81
+ ["alert-title-above"]: titleAbove || this.alertTitleWrap,
82
+ }, variant: "subtitle-large" }, h("p", null, heading))), h("slot", { name: "message" }, h("ic-typography", { variant: "body" }, message))), isSlotUsed(this.el, "action") && (h("div", { class: "alert-action-container" }, h("slot", { name: "action" })))), h("div", { class: "dismiss-icon-container" }, dismissible && (h("ic-button", { class: {
83
+ ["svg-container"]: true,
84
+ ["dismiss-icon"]: true,
85
+ }, innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon", buttonStyle: IcThemeForegroundEnum.Dark, title: "dismiss" })))))));
86
+ }
87
+ get el() { return this; }
88
+ static get style() { return icAlertCss; }
89
+ }, [1, "ic-alert", {
90
+ "variant": [1],
91
+ "heading": [1],
92
+ "message": [1],
93
+ "titleAbove": [4, "title-above"],
94
+ "dismissible": [4],
95
+ "announced": [4],
96
+ "visible": [32],
97
+ "alertTitleWrap": [32]
98
+ }, [[2, "dismiss", "handleClick"]]]);
99
+ function defineCustomElement$1() {
100
+ if (typeof customElements === "undefined") {
101
+ return;
102
+ }
103
+ const components = ["ic-alert", "ic-button", "ic-loading-indicator", "ic-tooltip", "ic-typography"];
104
+ components.forEach(tagName => { switch (tagName) {
105
+ case "ic-alert":
106
+ if (!customElements.get(tagName)) {
107
+ customElements.define(tagName, Alert);
108
+ }
109
+ break;
110
+ case "ic-button":
111
+ if (!customElements.get(tagName)) {
112
+ defineCustomElement$5();
113
+ }
114
+ break;
115
+ case "ic-loading-indicator":
116
+ if (!customElements.get(tagName)) {
117
+ defineCustomElement$4();
118
+ }
119
+ break;
120
+ case "ic-tooltip":
121
+ if (!customElements.get(tagName)) {
122
+ defineCustomElement$3();
123
+ }
124
+ break;
125
+ case "ic-typography":
126
+ if (!customElements.get(tagName)) {
127
+ defineCustomElement$2();
128
+ }
129
+ break;
130
+ } });
131
+ }
132
+
133
+ const IcAlert = Alert;
134
+ const defineCustomElement = defineCustomElement$1;
135
+
136
+ export { IcAlert, defineCustomElement };
137
+
138
+ //# sourceMappingURL=ic-alert.js.map
@@ -0,0 +1 @@
1
+ {"file":"ic-alert.js","mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,UAAU,GAAG,gpJAAgpJ;;ACqBnqJ,MAAM,IAAI,GAAG;EACX,OAAO,EAAE,WAAW;EACpB,IAAI,EAAE,QAAQ;EACd,OAAO,EAAE,WAAW;EACpB,KAAK,EAAE,SAAS;EAChB,OAAO,EAAE,WAAW;CACrB,CAAC;MAWW,KAAK;;;;;;IAyCR,kBAAa,GAAG;MACtB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACrB,CAAC;mBArCkC,SAAS;mBAIlB,EAAE;;sBAQE,KAAK;uBAIJ,KAAK;qBAIP,IAAI;mBAEN,IAAI;0BAEG,KAAK;;EAGxC,WAAW;IAC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B,GAAG,UAAU,IAAI,IAAI,CAAC,cAAc;OACzD,EACD,OAAO,EAAC,gBAAgB,IAExB,aAAI,OAAO,CAAK,CACF,CACjB,EACD,YAAM,IAAI,EAAC,SAAS,IAClB,qBAAe,OAAO,EAAC,MAAM,IAAE,OAAO,CAAiB,CAClD,CACH,EACL,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC,KAC5B,WAAK,KAAK,EAAC,wBAAwB,IACjC,YAAM,IAAI,EAAC,QAAQ,GAAG,CAClB,CACP,CACG,EACN,WAAK,KAAK,EAAC,wBAAwB,IAChC,WAAW,KACV,iBACE,KAAK,EAAE;QACL,CAAC,eAAe,GAAG,IAAI;QACvB,CAAC,cAAc,GAAG,IAAI;OACvB,EACD,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,IAAI,CAAC,aAAa,EAC3B,OAAO,EAAC,MAAM,EACd,WAAW,EAAE,qBAAqB,CAAC,IAAI,EACvC,KAAK,EAAC,SAAS,GACJ,CACd,CACG,CACF,CACD,CACR,EACD;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/ic-alert/ic-alert.css?tag=ic-alert&encapsulation=shadow","./src/components/ic-alert/ic-alert.tsx"],"sourcesContent":["@import \"../../global/normalise.css\";\n\n:host {\n display: block;\n}\n\n.container {\n min-height: 56px;\n border-radius: var(--ic-border-radius);\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.container-neutral {\n background-color: var(--ic-architectural-100);\n}\n\n.container-info {\n background-color: var(--ic-status-info-background);\n}\n\n.container-warning {\n background-color: var(--ic-status-warning-background);\n}\n\n.container-error {\n background-color: var(--ic-status-error-background);\n}\n\n.container-success {\n background-color: var(--ic-status-success-background);\n}\n\n.alert-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 border-radius: var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);\n position: absolute;\n}\n\n.divider-neutral {\n background-color: var(--ic-architectural-500);\n}\n\n.divider-info {\n background-color: var(--ic-status-info);\n}\n\n.divider-warning {\n background-color: var(--ic-status-warning-mid);\n}\n\n.divider-error {\n background-color: var(--ic-status-error);\n}\n\n.divider-success {\n background-color: var(--ic-status-success);\n}\n\n.alert-icon {\n height: var(--ic-space-lg);\n width: 22px;\n margin-left: 18px;\n}\n\n.icon-neutral > svg {\n fill: var(--ic-architectural-500);\n}\n\n.icon-info > svg {\n fill: var(--ic-status-info);\n}\n\n.icon-warning > svg {\n fill: var(--ic-status-warning-mid);\n}\n\n.icon-error > svg {\n fill: var(--ic-status-error);\n}\n\n.icon-success > svg {\n fill: var(--ic-status-success);\n}\n\n.alert-content {\n display: flex;\n align-items: center;\n margin-left: 10px;\n width: 100%;\n}\n\n.alert-message {\n display: flex;\n align-items: center;\n padding: var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;\n flex: 1;\n}\n\n.alert-message-title-above {\n display: inline;\n font-size: 0;\n}\n\n.alert-title {\n margin-right: var(--ic-space-xs);\n}\n\n.alert-title-above {\n white-space: normal;\n}\n\n.alert-action-container {\n margin-right: var(--ic-space-xs);\n display: flex;\n align-items: center;\n}\n\n.dismiss-icon {\n margin-right: var(--ic-space-xxxs);\n margin-left: -6px;\n padding: 6px;\n border: none;\n border-radius: 50%;\n background-color: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.dismiss-icon svg {\n width: 18px;\n height: 18px;\n}\n\n.dismiss-icon:hover {\n background-color: var(--ic-architectural-200);\n cursor: pointer;\n}\n\n.dismiss-icon:active {\n background-color: var(--ic-architectural-300);\n}\n\n@media (max-width: 628px) {\n .alert-content {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n\n .alert-message {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n font-size: 1px;\n }\n\n .alert-title {\n white-space: normal;\n }\n\n .alert-action-container {\n margin-bottom: 14px;\n }\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n State,\n Listen,\n Prop,\n h,\n} from \"@stencil/core\";\nimport neutralIcon from \"../../assets/neutral-icon.svg\";\nimport infoIcon from \"../../assets/info-icon.svg\";\nimport warningIcon from \"../../assets/warning-icon.svg\";\nimport errorIcon from \"../../assets/error-icon.svg\";\nimport successIcon from \"../../assets/success-icon.svg\";\nimport closeIcon from \"../../assets/close-icon.svg\";\nimport { IcAlertVariants } from \"./ic-alert.types\";\nimport { isSlotUsed } from \"../../utils/helpers\";\nimport { IcThemeForegroundEnum } from \"../../utils/types\";\n\nconst icon = {\n neutral: neutralIcon,\n info: infoIcon,\n warning: warningIcon,\n error: errorIcon,\n success: successIcon,\n};\n\n/**\n * @slot message - Content is placed to the right of the title.\n * @slot action - Content is placed to the left of the message.\n */\n@Component({\n tag: \"ic-alert\",\n styleUrl: \"ic-alert.css\",\n shadow: true,\n})\nexport class Alert {\n @Element() el: HTMLIcAlertElement;\n\n /**\n * Set which variant of the alert will be rendered\n */\n @Prop() variant?: IcAlertVariants = \"neutral\";\n /**\n * Optional title to display at the start of the alert\n */\n @Prop() heading?: string = \"\";\n /**\n * Main body message of the alert\n */\n @Prop() message?: string;\n /**\n * Set whether the title and message appear inline or above and below\n */\n @Prop() titleAbove?: boolean = false;\n /**\n * Set whether the alert has a close icon at the end to dismiss it\n */\n @Prop() dismissible?: boolean = false;\n /**\n * Set whether the alert has the 'alert' aria role and will be announced to screen readers\n */\n @Prop() announced?: boolean = true;\n\n @State() visible: boolean = true;\n\n @State() alertTitleWrap: boolean = false;\n\n @Listen(\"dismiss\", { capture: true })\n handleClick(): void {\n this.visible = !this.visible;\n }\n /**\n * Is emitted when the user dismisses the alert.\n */\n @Event() dismiss: EventEmitter<void>;\n\n private dismissAction = (): void => {\n this.dismiss.emit();\n };\n\n private alertTitleShouldWrap() {\n const titleHeight =\n this.el.shadowRoot.querySelector(\".alert-title\")?.clientHeight;\n if (titleHeight > 24) this.alertTitleWrap = true;\n }\n\n componentDidLoad(): void {\n this.alertTitleShouldWrap();\n }\n\n render() {\n const {\n variant,\n heading,\n message,\n titleAbove,\n dismissible,\n announced,\n visible,\n } = this;\n\n return (\n visible && (\n <Host\n role={announced && \"alert\"}\n class={{\n [IcThemeForegroundEnum.Dark]: true,\n }}\n >\n <div\n class={{\n [\"container\"]: true,\n [`container-${variant}`]: true,\n }}\n >\n <div class=\"alert-icon-container\">\n <div\n class={{\n [\"divider\"]: true,\n [`divider-${variant}`]: true,\n }}\n ></div>\n <span\n class={{\n [\"alert-icon\"]: true,\n [\"svg-container\"]: true,\n [`icon-${variant}`]: true,\n }}\n innerHTML={icon[variant]}\n ></span>\n </div>\n <div class=\"alert-content\">\n <div\n class={{\n [\"alert-message\"]: true,\n [\"alert-message-title-above\"]:\n titleAbove || this.alertTitleWrap,\n }}\n >\n {heading && (\n <ic-typography\n class={{\n [\"alert-title\"]: true,\n [\"alert-title-above\"]: titleAbove || this.alertTitleWrap,\n }}\n variant=\"subtitle-large\"\n >\n <p>{heading}</p>\n </ic-typography>\n )}\n <slot name=\"message\">\n <ic-typography variant=\"body\">{message}</ic-typography>\n </slot>\n </div>\n {isSlotUsed(this.el, \"action\") && (\n <div class=\"alert-action-container\">\n <slot name=\"action\" />\n </div>\n )}\n </div>\n <div class=\"dismiss-icon-container\">\n {dismissible && (\n <ic-button\n class={{\n [\"svg-container\"]: true,\n [\"dismiss-icon\"]: true,\n }}\n innerHTML={closeIcon}\n onClick={this.dismissAction}\n variant=\"icon\"\n buttonStyle={IcThemeForegroundEnum.Dark}\n title=\"dismiss\"\n ></ic-button>\n )}\n </div>\n </div>\n </Host>\n )\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface IcBackToTop extends Components.IcBackToTop, HTMLElement {}
4
+ export const IcBackToTop: {
5
+ prototype: IcBackToTop;
6
+ new (): IcBackToTop;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;