@ukic/web-components 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (494) hide show
  1. package/dist/cjs/core.cjs.js +3 -3
  2. package/dist/cjs/core.cjs.js.map +1 -1
  3. package/dist/cjs/ic-accordion-group.cjs.entry.js +94 -0
  4. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -0
  5. package/dist/cjs/ic-accordion.cjs.entry.js +117 -0
  6. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -0
  7. package/dist/cjs/ic-alert.cjs.entry.js +1 -1
  8. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-badge.cjs.entry.js +156 -0
  11. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -0
  12. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  13. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  14. package/dist/cjs/ic-button_3.cjs.entry.js +28 -7
  15. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-card.cjs.entry.js +2 -2
  17. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-checkbox-group.cjs.entry.js +1 -1
  19. package/dist/cjs/ic-checkbox.cjs.entry.js +1 -1
  20. package/dist/cjs/ic-chip.cjs.entry.js +2 -2
  21. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
  23. package/dist/cjs/ic-data-entity.cjs.entry.js +1 -1
  24. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  25. package/dist/cjs/ic-dialog.cjs.entry.js +37 -15
  26. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  28. package/dist/cjs/ic-empty-state.cjs.entry.js +1 -1
  29. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  30. package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  32. package/dist/cjs/ic-hero.cjs.entry.js +1 -1
  33. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +2 -2
  34. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +1 -1
  36. package/dist/cjs/ic-input-label_2.cjs.entry.js +1 -1
  37. package/dist/cjs/ic-link.cjs.entry.js +1 -1
  38. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  39. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  40. package/dist/cjs/ic-navigation-button.cjs.entry.js +5 -1
  41. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-navigation-group.cjs.entry.js +53 -29
  43. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-navigation-item.cjs.entry.js +27 -6
  45. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
  47. package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
  48. package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
  49. package/dist/cjs/ic-pagination.cjs.entry.js +1 -1
  50. package/dist/cjs/ic-popover-menu.cjs.entry.js +1 -1
  51. package/dist/cjs/ic-radio-group.cjs.entry.js +51 -5
  52. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-radio-option.cjs.entry.js +1 -1
  54. package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
  55. package/dist/cjs/ic-section-container.cjs.entry.js +1 -1
  56. package/dist/cjs/ic-select.cjs.entry.js +1 -1
  57. package/dist/cjs/ic-side-navigation.cjs.entry.js +29 -7
  58. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-skeleton.cjs.entry.js +1 -1
  60. package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
  61. package/dist/cjs/ic-step.cjs.entry.js +1 -1
  62. package/dist/cjs/ic-stepper.cjs.entry.js +4 -1
  63. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-switch.cjs.entry.js +1 -1
  65. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  66. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  67. package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -1
  68. package/dist/cjs/ic-tab.cjs.entry.js +2 -2
  69. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-text-field.cjs.entry.js +1 -1
  71. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  72. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  73. package/dist/cjs/ic-toast.cjs.entry.js +1 -1
  74. package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
  75. package/dist/cjs/ic-typography.cjs.entry.js +2 -2
  76. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  77. package/dist/cjs/{index-54d2bed9.js → index-afe53465.js} +57 -15
  78. package/dist/cjs/index-afe53465.js.map +1 -0
  79. package/dist/cjs/loader.cjs.js +2 -2
  80. package/dist/cjs/types-7d67439f.js.map +1 -1
  81. package/dist/collection/collection-manifest.json +7 -4
  82. package/dist/collection/components/ic-accordion/ic-accordion.css +551 -0
  83. package/dist/collection/components/ic-accordion/ic-accordion.js +291 -0
  84. package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -0
  85. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.e2e.js +57 -0
  86. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.e2e.js.map +1 -0
  87. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js +346 -0
  88. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js.map +1 -0
  89. package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +465 -0
  90. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js +216 -0
  91. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js.map +1 -0
  92. package/dist/collection/components/ic-accordion-group/test/a11y/ic-accordion-group.test.a11y.js +31 -0
  93. package/dist/collection/components/ic-accordion-group/test/a11y/ic-accordion-group.test.a11y.js.map +1 -0
  94. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.e2e.js +114 -0
  95. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.e2e.js.map +1 -0
  96. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js +126 -0
  97. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js.map +1 -0
  98. package/dist/collection/components/ic-badge/ic-badge.css +179 -0
  99. package/dist/collection/components/ic-badge/ic-badge.js +374 -0
  100. package/dist/collection/components/ic-badge/ic-badge.js.map +1 -0
  101. package/dist/collection/components/ic-badge/ic-badge.types.js +2 -0
  102. package/dist/collection/components/ic-badge/ic-badge.types.js.map +1 -0
  103. package/dist/collection/components/ic-badge/test/a11y/ic-badge.test.a11y.js +16 -0
  104. package/dist/collection/components/ic-badge/test/a11y/ic-badge.test.a11y.js.map +1 -0
  105. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +167 -0
  106. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +1 -0
  107. package/dist/collection/components/ic-button/ic-button.css +9 -9
  108. package/dist/collection/components/ic-button/ic-button.js +27 -5
  109. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  110. package/dist/collection/components/ic-card/ic-card.css +22 -0
  111. package/dist/collection/components/ic-chip/ic-chip.js +2 -1
  112. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  113. package/dist/collection/components/ic-dialog/ic-dialog.js +36 -14
  114. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  115. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +1 -1
  116. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +4 -0
  117. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  118. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +52 -28
  119. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  120. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +18 -4
  121. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +25 -4
  122. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  123. package/dist/collection/components/ic-radio-group/ic-radio-group.css +3 -3
  124. package/dist/collection/components/ic-radio-group/ic-radio-group.js +57 -6
  125. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  126. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +33 -2
  127. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -1
  128. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js +4 -0
  129. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +1 -1
  130. package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js +3 -1
  131. package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js.map +1 -1
  132. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +46 -5
  133. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +27 -5
  134. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  135. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.js +171 -0
  136. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.js.map +1 -1
  137. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js +45 -1
  138. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js.map +1 -1
  139. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js +33 -0
  140. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +1 -1
  141. package/dist/collection/components/ic-stepper/ic-stepper.js +3 -0
  142. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  143. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js +3 -1
  144. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +1 -1
  145. package/dist/collection/components/ic-tab/ic-tab.js +3 -2
  146. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  147. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js +2 -0
  148. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js.map +1 -1
  149. package/dist/collection/components/ic-typography/ic-typography.css +10 -0
  150. package/dist/collection/components/ic-typography/ic-typography.js +1 -1
  151. package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js +1 -1
  152. package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js.map +1 -1
  153. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js +14 -0
  154. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +1 -1
  155. package/dist/collection/utils/types.js.map +1 -1
  156. package/dist/components/helpers.js +1 -1
  157. package/dist/components/ic-accordion-group.d.ts +11 -0
  158. package/dist/components/ic-accordion-group.js +140 -0
  159. package/dist/components/ic-accordion-group.js.map +1 -0
  160. package/dist/components/ic-accordion.d.ts +11 -0
  161. package/dist/components/ic-accordion.js +146 -0
  162. package/dist/components/ic-accordion.js.map +1 -0
  163. package/dist/components/ic-back-to-top.js +2 -0
  164. package/dist/components/ic-back-to-top.js.map +1 -1
  165. package/dist/components/ic-badge.d.ts +11 -0
  166. package/dist/components/ic-badge.js +188 -0
  167. package/dist/components/ic-badge.js.map +1 -0
  168. package/dist/components/ic-breadcrumb-group.js +1 -1
  169. package/dist/components/ic-button2.js +27 -6
  170. package/dist/components/ic-button2.js.map +1 -1
  171. package/dist/components/ic-card.js +1 -1
  172. package/dist/components/ic-card.js.map +1 -1
  173. package/dist/components/ic-checkbox-group.js +1 -1
  174. package/dist/components/ic-checkbox.js +1 -1
  175. package/dist/components/ic-chip.js +1 -1
  176. package/dist/components/ic-chip.js.map +1 -1
  177. package/dist/components/ic-data-row.js +1 -1
  178. package/dist/components/ic-dialog.js +39 -15
  179. package/dist/components/ic-dialog.js.map +1 -1
  180. package/dist/components/ic-divider2.js +1 -1
  181. package/dist/components/ic-footer-link-group.js +1 -1
  182. package/dist/components/ic-footer-link.js +1 -1
  183. package/dist/components/ic-footer.js +1 -1
  184. package/dist/components/ic-hero.js +1 -1
  185. package/dist/components/ic-hero.js.map +1 -1
  186. package/dist/components/ic-horizontal-scroll2.js +2 -2
  187. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  188. package/dist/components/ic-input-component-container2.js +1 -1
  189. package/dist/components/ic-input-component-container2.js.map +1 -1
  190. package/dist/components/ic-input-label2.js +1 -1
  191. package/dist/components/ic-input-validation2.js +1 -1
  192. package/dist/components/ic-loading-indicator2.js +3 -0
  193. package/dist/components/ic-loading-indicator2.js.map +1 -1
  194. package/dist/components/ic-menu-item2.js +1 -1
  195. package/dist/components/ic-menu2.js +3 -0
  196. package/dist/components/ic-menu2.js.map +1 -1
  197. package/dist/components/ic-navigation-button.js +5 -1
  198. package/dist/components/ic-navigation-button.js.map +1 -1
  199. package/dist/components/ic-navigation-group.js +53 -29
  200. package/dist/components/ic-navigation-group.js.map +1 -1
  201. package/dist/components/ic-navigation-item.js +27 -6
  202. package/dist/components/ic-navigation-item.js.map +1 -1
  203. package/dist/components/ic-navigation-menu2.js +1 -1
  204. package/dist/components/ic-page-header.js +1 -1
  205. package/dist/components/ic-pagination.js +4 -1
  206. package/dist/components/ic-pagination.js.map +1 -1
  207. package/dist/components/ic-popover-menu.js +4 -2
  208. package/dist/components/ic-popover-menu.js.map +1 -1
  209. package/dist/components/ic-radio-group.js +57 -7
  210. package/dist/components/ic-radio-group.js.map +1 -1
  211. package/dist/components/ic-radio-option.js +4 -2
  212. package/dist/components/ic-radio-option.js.map +1 -1
  213. package/dist/components/ic-search-bar.js +7 -2
  214. package/dist/components/ic-search-bar.js.map +1 -1
  215. package/dist/components/ic-select.js +6 -1
  216. package/dist/components/ic-select.js.map +1 -1
  217. package/dist/components/ic-side-navigation.js +29 -7
  218. package/dist/components/ic-side-navigation.js.map +1 -1
  219. package/dist/components/ic-step.js +2 -0
  220. package/dist/components/ic-step.js.map +1 -1
  221. package/dist/components/ic-stepper.js +4 -1
  222. package/dist/components/ic-stepper.js.map +1 -1
  223. package/dist/components/ic-switch.js +1 -1
  224. package/dist/components/ic-switch.js.map +1 -1
  225. package/dist/components/ic-tab-context.js +3 -1
  226. package/dist/components/ic-tab-context.js.map +1 -1
  227. package/dist/components/ic-tab.js +4 -2
  228. package/dist/components/ic-tab.js.map +1 -1
  229. package/dist/components/ic-text-field2.js +5 -2
  230. package/dist/components/ic-text-field2.js.map +1 -1
  231. package/dist/components/ic-theme.js +3 -1
  232. package/dist/components/ic-theme.js.map +1 -1
  233. package/dist/components/ic-toast.js +1 -1
  234. package/dist/components/ic-toast.js.map +1 -1
  235. package/dist/components/ic-tooltip2.js +2 -0
  236. package/dist/components/ic-tooltip2.js.map +1 -1
  237. package/dist/components/ic-top-navigation.js +4 -2
  238. package/dist/components/ic-top-navigation.js.map +1 -1
  239. package/dist/components/ic-typography2.js +3 -1
  240. package/dist/components/ic-typography2.js.map +1 -1
  241. package/dist/components/types.js.map +1 -1
  242. package/dist/core/core.css +15 -9
  243. package/dist/core/core.esm.js +1 -1
  244. package/dist/core/core.esm.js.map +1 -1
  245. package/dist/core/{p-937ecd5b.entry.js → p-0353a1d8.entry.js} +2 -2
  246. package/dist/core/p-038601a3.entry.js +2 -0
  247. package/dist/core/p-038601a3.entry.js.map +1 -0
  248. package/dist/core/{p-a421d3a1.entry.js → p-05249867.entry.js} +2 -2
  249. package/dist/core/p-08c6119a.entry.js +2 -0
  250. package/dist/core/p-08c6119a.entry.js.map +1 -0
  251. package/dist/core/{p-a0a02a13.entry.js → p-09004694.entry.js} +2 -2
  252. package/dist/core/{p-d16100e8.entry.js → p-0d71a937.entry.js} +2 -2
  253. package/dist/core/{p-1c54269e.entry.js → p-0e1a4f8d.entry.js} +2 -2
  254. package/dist/core/{p-607e7bf2.entry.js → p-0fdb1e52.entry.js} +2 -2
  255. package/dist/core/{p-d20917ae.entry.js → p-10bfc292.entry.js} +2 -2
  256. package/dist/core/{p-27bf4783.entry.js → p-1650c1c2.entry.js} +2 -2
  257. package/dist/core/{p-e2d0039d.entry.js → p-1db57a3f.entry.js} +2 -2
  258. package/dist/core/p-1ed0a71d.entry.js +2 -0
  259. package/dist/core/{p-0dcc76b1.entry.js.map → p-1ed0a71d.entry.js.map} +1 -1
  260. package/dist/core/{p-4c4261e7.entry.js → p-2184a72f.entry.js} +2 -2
  261. package/dist/core/p-293f4c5f.entry.js +2 -0
  262. package/dist/core/p-293f4c5f.entry.js.map +1 -0
  263. package/dist/core/{p-62499150.entry.js → p-2afa6d29.entry.js} +2 -2
  264. package/dist/core/{p-cb2c18de.entry.js → p-2c09f9e0.entry.js} +2 -2
  265. package/dist/core/{p-3297713b.entry.js → p-2d21de19.entry.js} +2 -2
  266. package/dist/core/{p-5b8be53f.entry.js → p-32510505.entry.js} +2 -2
  267. package/dist/core/{p-99741b0f.entry.js → p-482397ae.entry.js} +2 -2
  268. package/dist/core/p-482397ae.entry.js.map +1 -0
  269. package/dist/core/{p-831b0f3f.entry.js → p-4ef8342f.entry.js} +2 -2
  270. package/dist/core/{p-c390fbad.entry.js → p-4f070381.entry.js} +2 -2
  271. package/dist/core/{p-9650e00e.entry.js → p-4fbe1dc3.entry.js} +2 -2
  272. package/dist/core/{p-68fda79a.entry.js → p-5401863e.entry.js} +2 -2
  273. package/dist/core/{p-83e535de.entry.js → p-59b24198.entry.js} +2 -2
  274. package/dist/core/p-5cc070c4.entry.js +2 -0
  275. package/dist/core/p-5cc070c4.entry.js.map +1 -0
  276. package/dist/core/p-5f881644.entry.js +2 -0
  277. package/dist/core/p-5f881644.entry.js.map +1 -0
  278. package/dist/core/p-60fef702.entry.js +2 -0
  279. package/dist/core/p-60fef702.entry.js.map +1 -0
  280. package/dist/core/p-613aa265.js.map +1 -1
  281. package/dist/core/{p-94903a21.entry.js → p-64999983.entry.js} +2 -2
  282. package/dist/core/p-64999983.entry.js.map +1 -0
  283. package/dist/core/{p-521c8f40.entry.js → p-675fe4db.entry.js} +2 -2
  284. package/dist/core/p-675fe4db.entry.js.map +1 -0
  285. package/dist/core/{p-67c18f72.entry.js → p-6aec6bce.entry.js} +2 -2
  286. package/dist/core/{p-27897d29.entry.js → p-6ec3cd12.entry.js} +2 -2
  287. package/dist/core/p-76daa5b0.entry.js +2 -0
  288. package/dist/core/{p-8e6169e0.entry.js → p-777e5556.entry.js} +2 -2
  289. package/dist/core/p-7a61d94a.entry.js +2 -0
  290. package/dist/core/p-7a61d94a.entry.js.map +1 -0
  291. package/dist/core/{p-18068237.js → p-85903a81.js} +3 -3
  292. package/dist/core/p-85903a81.js.map +1 -0
  293. package/dist/core/{p-ebd60291.entry.js → p-913da6d0.entry.js} +2 -2
  294. package/dist/core/{p-77266738.entry.js → p-932fe2a0.entry.js} +2 -2
  295. package/dist/core/p-9bd160bb.entry.js +2 -0
  296. package/dist/core/p-9bd160bb.entry.js.map +1 -0
  297. package/dist/core/{p-5fcbcc3f.entry.js → p-9ee852d9.entry.js} +2 -2
  298. package/dist/core/{p-d65ace31.entry.js → p-a388750d.entry.js} +2 -2
  299. package/dist/core/{p-b0b1de0e.entry.js → p-a46c1690.entry.js} +2 -2
  300. package/dist/core/{p-3fc638fc.entry.js → p-abf60097.entry.js} +2 -2
  301. package/dist/core/{p-630ae754.entry.js → p-ac82781b.entry.js} +2 -2
  302. package/dist/core/{p-6781620e.entry.js → p-ad520f36.entry.js} +2 -2
  303. package/dist/core/p-b42b8ffa.entry.js +2 -0
  304. package/dist/core/p-b42b8ffa.entry.js.map +1 -0
  305. package/dist/core/p-b96bd8be.entry.js +2 -0
  306. package/dist/core/p-b96bd8be.entry.js.map +1 -0
  307. package/dist/core/{p-85dd5e5b.entry.js → p-c1e8d13e.entry.js} +2 -2
  308. package/dist/core/{p-ebe76390.js → p-c30d9b20.js} +2 -2
  309. package/dist/core/p-ca6e5474.entry.js +2 -0
  310. package/dist/core/p-ca6e5474.entry.js.map +1 -0
  311. package/dist/core/p-ceed0fee.entry.js +2 -0
  312. package/dist/core/p-ceed0fee.entry.js.map +1 -0
  313. package/dist/core/{p-c1859843.entry.js → p-cf95dd66.entry.js} +2 -2
  314. package/dist/core/{p-87149cbd.entry.js → p-d005a71a.entry.js} +2 -2
  315. package/dist/core/{p-65df7222.entry.js → p-d5282ede.entry.js} +2 -2
  316. package/dist/core/{p-4f7c20b3.entry.js → p-d9fc7243.entry.js} +2 -2
  317. package/dist/core/{p-16e8bb5a.entry.js → p-db4a15bd.entry.js} +2 -2
  318. package/dist/core/{p-c31e6dbb.entry.js → p-e59d2d50.entry.js} +2 -2
  319. package/dist/core/p-e75b04af.entry.js +2 -0
  320. package/dist/core/p-e75b04af.entry.js.map +1 -0
  321. package/dist/core/{p-e3923b67.entry.js → p-e904d985.entry.js} +2 -2
  322. package/dist/core/{p-7194c255.entry.js → p-ea55f25c.entry.js} +2 -2
  323. package/dist/core/p-ea55f25c.entry.js.map +1 -0
  324. package/dist/esm/core.js +4 -4
  325. package/dist/esm/core.js.map +1 -1
  326. package/dist/esm/{helpers-b0e80358.js → helpers-81a88a11.js} +2 -2
  327. package/dist/esm/{helpers-b0e80358.js.map → helpers-81a88a11.js.map} +1 -1
  328. package/dist/esm/ic-accordion-group.entry.js +90 -0
  329. package/dist/esm/ic-accordion-group.entry.js.map +1 -0
  330. package/dist/esm/ic-accordion.entry.js +113 -0
  331. package/dist/esm/ic-accordion.entry.js.map +1 -0
  332. package/dist/esm/ic-alert.entry.js +2 -2
  333. package/dist/esm/ic-back-to-top.entry.js +2 -2
  334. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  335. package/dist/esm/ic-badge.entry.js +152 -0
  336. package/dist/esm/ic-badge.entry.js.map +1 -0
  337. package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
  338. package/dist/esm/ic-breadcrumb.entry.js +2 -2
  339. package/dist/esm/ic-button_3.entry.js +29 -8
  340. package/dist/esm/ic-button_3.entry.js.map +1 -1
  341. package/dist/esm/ic-card.entry.js +3 -3
  342. package/dist/esm/ic-card.entry.js.map +1 -1
  343. package/dist/esm/ic-checkbox-group.entry.js +2 -2
  344. package/dist/esm/ic-checkbox.entry.js +2 -2
  345. package/dist/esm/ic-chip.entry.js +3 -3
  346. package/dist/esm/ic-chip.entry.js.map +1 -1
  347. package/dist/esm/ic-classification-banner.entry.js +1 -1
  348. package/dist/esm/ic-data-entity.entry.js +1 -1
  349. package/dist/esm/ic-data-row.entry.js +2 -2
  350. package/dist/esm/ic-dialog.entry.js +38 -16
  351. package/dist/esm/ic-dialog.entry.js.map +1 -1
  352. package/dist/esm/ic-divider.entry.js +2 -2
  353. package/dist/esm/ic-empty-state.entry.js +2 -2
  354. package/dist/esm/ic-footer-link-group.entry.js +2 -2
  355. package/dist/esm/ic-footer-link.entry.js +2 -2
  356. package/dist/esm/ic-footer.entry.js +2 -2
  357. package/dist/esm/ic-hero.entry.js +2 -2
  358. package/dist/esm/ic-horizontal-scroll.entry.js +3 -3
  359. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  360. package/dist/esm/ic-input-component-container_3.entry.js +2 -2
  361. package/dist/esm/ic-input-label_2.entry.js +2 -2
  362. package/dist/esm/ic-link.entry.js +2 -2
  363. package/dist/esm/ic-menu-group.entry.js +1 -1
  364. package/dist/esm/ic-menu-item.entry.js +2 -2
  365. package/dist/esm/ic-navigation-button.entry.js +6 -2
  366. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  367. package/dist/esm/ic-navigation-group.entry.js +54 -30
  368. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  369. package/dist/esm/ic-navigation-item.entry.js +28 -7
  370. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  371. package/dist/esm/ic-navigation-menu.entry.js +2 -2
  372. package/dist/esm/ic-page-header.entry.js +2 -2
  373. package/dist/esm/ic-pagination-item.entry.js +2 -2
  374. package/dist/esm/ic-pagination.entry.js +2 -2
  375. package/dist/esm/ic-popover-menu.entry.js +2 -2
  376. package/dist/esm/ic-radio-group.entry.js +52 -6
  377. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  378. package/dist/esm/ic-radio-option.entry.js +2 -2
  379. package/dist/esm/ic-search-bar.entry.js +2 -2
  380. package/dist/esm/ic-section-container.entry.js +1 -1
  381. package/dist/esm/ic-select.entry.js +2 -2
  382. package/dist/esm/ic-side-navigation.entry.js +30 -8
  383. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  384. package/dist/esm/ic-skeleton.entry.js +1 -1
  385. package/dist/esm/ic-status-tag.entry.js +2 -2
  386. package/dist/esm/ic-step.entry.js +1 -1
  387. package/dist/esm/ic-stepper.entry.js +5 -2
  388. package/dist/esm/ic-stepper.entry.js.map +1 -1
  389. package/dist/esm/ic-switch.entry.js +2 -2
  390. package/dist/esm/ic-tab-context.entry.js +1 -1
  391. package/dist/esm/ic-tab-group.entry.js +2 -2
  392. package/dist/esm/ic-tab-panel.entry.js +1 -1
  393. package/dist/esm/ic-tab.entry.js +3 -3
  394. package/dist/esm/ic-tab.entry.js.map +1 -1
  395. package/dist/esm/ic-text-field.entry.js +2 -2
  396. package/dist/esm/ic-theme.entry.js +2 -2
  397. package/dist/esm/ic-toast-region.entry.js +1 -1
  398. package/dist/esm/ic-toast.entry.js +2 -2
  399. package/dist/esm/ic-top-navigation.entry.js +2 -2
  400. package/dist/esm/ic-typography.entry.js +3 -3
  401. package/dist/esm/ic-typography.entry.js.map +1 -1
  402. package/dist/esm/{index-14c9f375.js → index-b006ae9d.js} +57 -15
  403. package/dist/esm/index-b006ae9d.js.map +1 -0
  404. package/dist/esm/loader.js +3 -3
  405. package/dist/esm/types-b2398b37.js.map +1 -1
  406. package/dist/types/components/ic-accordion/ic-accordion.d.ts +55 -0
  407. package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +33 -0
  408. package/dist/types/components/ic-accordion-group/test/a11y/ic-accordion-group.test.a11y.d.ts +1 -0
  409. package/dist/types/components/ic-badge/ic-badge.d.ts +57 -0
  410. package/dist/types/components/ic-badge/ic-badge.types.d.ts +9 -0
  411. package/dist/types/components/ic-badge/test/a11y/ic-badge.test.a11y.d.ts +1 -0
  412. package/dist/types/components/ic-button/ic-button.d.ts +6 -1
  413. package/dist/types/components/ic-chip/ic-chip.d.ts +1 -0
  414. package/dist/types/components/ic-dialog/ic-dialog.d.ts +4 -0
  415. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +1 -0
  416. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +4 -2
  417. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +2 -0
  418. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +8 -0
  419. package/dist/types/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.d.ts +2 -0
  420. package/dist/types/components/ic-stepper/ic-stepper.d.ts +1 -0
  421. package/dist/types/components/ic-tab/ic-tab.d.ts +1 -0
  422. package/dist/types/components.d.ts +202 -0
  423. package/dist/types/utils/types.d.ts +2 -2
  424. package/hydrate/index.js +667 -92
  425. package/package.json +12 -3
  426. package/dist/cjs/index-54d2bed9.js.map +0 -1
  427. package/dist/core/p-0dcc76b1.entry.js +0 -2
  428. package/dist/core/p-101bce17.entry.js +0 -2
  429. package/dist/core/p-101bce17.entry.js.map +0 -1
  430. package/dist/core/p-18068237.js.map +0 -1
  431. package/dist/core/p-414ff132.entry.js +0 -2
  432. package/dist/core/p-414ff132.entry.js.map +0 -1
  433. package/dist/core/p-433cfd47.entry.js +0 -2
  434. package/dist/core/p-433cfd47.entry.js.map +0 -1
  435. package/dist/core/p-455bfed1.entry.js +0 -2
  436. package/dist/core/p-455bfed1.entry.js.map +0 -1
  437. package/dist/core/p-521c8f40.entry.js.map +0 -1
  438. package/dist/core/p-7194c255.entry.js.map +0 -1
  439. package/dist/core/p-7be2b1fd.entry.js +0 -2
  440. package/dist/core/p-7be2b1fd.entry.js.map +0 -1
  441. package/dist/core/p-9248228e.entry.js +0 -2
  442. package/dist/core/p-9248228e.entry.js.map +0 -1
  443. package/dist/core/p-932a67ca.entry.js +0 -2
  444. package/dist/core/p-94903a21.entry.js.map +0 -1
  445. package/dist/core/p-96022913.entry.js +0 -2
  446. package/dist/core/p-96022913.entry.js.map +0 -1
  447. package/dist/core/p-99741b0f.entry.js.map +0 -1
  448. package/dist/core/p-b82776d0.entry.js +0 -2
  449. package/dist/core/p-b82776d0.entry.js.map +0 -1
  450. package/dist/core/p-d78c90fe.entry.js +0 -2
  451. package/dist/core/p-d78c90fe.entry.js.map +0 -1
  452. package/dist/core/p-fedcfea3.entry.js +0 -2
  453. package/dist/core/p-fedcfea3.entry.js.map +0 -1
  454. package/dist/esm/index-14c9f375.js.map +0 -1
  455. /package/dist/core/{p-937ecd5b.entry.js.map → p-0353a1d8.entry.js.map} +0 -0
  456. /package/dist/core/{p-a421d3a1.entry.js.map → p-05249867.entry.js.map} +0 -0
  457. /package/dist/core/{p-a0a02a13.entry.js.map → p-09004694.entry.js.map} +0 -0
  458. /package/dist/core/{p-d16100e8.entry.js.map → p-0d71a937.entry.js.map} +0 -0
  459. /package/dist/core/{p-1c54269e.entry.js.map → p-0e1a4f8d.entry.js.map} +0 -0
  460. /package/dist/core/{p-607e7bf2.entry.js.map → p-0fdb1e52.entry.js.map} +0 -0
  461. /package/dist/core/{p-d20917ae.entry.js.map → p-10bfc292.entry.js.map} +0 -0
  462. /package/dist/core/{p-27bf4783.entry.js.map → p-1650c1c2.entry.js.map} +0 -0
  463. /package/dist/core/{p-e2d0039d.entry.js.map → p-1db57a3f.entry.js.map} +0 -0
  464. /package/dist/core/{p-4c4261e7.entry.js.map → p-2184a72f.entry.js.map} +0 -0
  465. /package/dist/core/{p-62499150.entry.js.map → p-2afa6d29.entry.js.map} +0 -0
  466. /package/dist/core/{p-cb2c18de.entry.js.map → p-2c09f9e0.entry.js.map} +0 -0
  467. /package/dist/core/{p-3297713b.entry.js.map → p-2d21de19.entry.js.map} +0 -0
  468. /package/dist/core/{p-5b8be53f.entry.js.map → p-32510505.entry.js.map} +0 -0
  469. /package/dist/core/{p-831b0f3f.entry.js.map → p-4ef8342f.entry.js.map} +0 -0
  470. /package/dist/core/{p-c390fbad.entry.js.map → p-4f070381.entry.js.map} +0 -0
  471. /package/dist/core/{p-9650e00e.entry.js.map → p-4fbe1dc3.entry.js.map} +0 -0
  472. /package/dist/core/{p-68fda79a.entry.js.map → p-5401863e.entry.js.map} +0 -0
  473. /package/dist/core/{p-83e535de.entry.js.map → p-59b24198.entry.js.map} +0 -0
  474. /package/dist/core/{p-67c18f72.entry.js.map → p-6aec6bce.entry.js.map} +0 -0
  475. /package/dist/core/{p-27897d29.entry.js.map → p-6ec3cd12.entry.js.map} +0 -0
  476. /package/dist/core/{p-932a67ca.entry.js.map → p-76daa5b0.entry.js.map} +0 -0
  477. /package/dist/core/{p-8e6169e0.entry.js.map → p-777e5556.entry.js.map} +0 -0
  478. /package/dist/core/{p-ebd60291.entry.js.map → p-913da6d0.entry.js.map} +0 -0
  479. /package/dist/core/{p-77266738.entry.js.map → p-932fe2a0.entry.js.map} +0 -0
  480. /package/dist/core/{p-5fcbcc3f.entry.js.map → p-9ee852d9.entry.js.map} +0 -0
  481. /package/dist/core/{p-d65ace31.entry.js.map → p-a388750d.entry.js.map} +0 -0
  482. /package/dist/core/{p-b0b1de0e.entry.js.map → p-a46c1690.entry.js.map} +0 -0
  483. /package/dist/core/{p-3fc638fc.entry.js.map → p-abf60097.entry.js.map} +0 -0
  484. /package/dist/core/{p-630ae754.entry.js.map → p-ac82781b.entry.js.map} +0 -0
  485. /package/dist/core/{p-6781620e.entry.js.map → p-ad520f36.entry.js.map} +0 -0
  486. /package/dist/core/{p-85dd5e5b.entry.js.map → p-c1e8d13e.entry.js.map} +0 -0
  487. /package/dist/core/{p-ebe76390.js.map → p-c30d9b20.js.map} +0 -0
  488. /package/dist/core/{p-c1859843.entry.js.map → p-cf95dd66.entry.js.map} +0 -0
  489. /package/dist/core/{p-87149cbd.entry.js.map → p-d005a71a.entry.js.map} +0 -0
  490. /package/dist/core/{p-65df7222.entry.js.map → p-d5282ede.entry.js.map} +0 -0
  491. /package/dist/core/{p-4f7c20b3.entry.js.map → p-d9fc7243.entry.js.map} +0 -0
  492. /package/dist/core/{p-16e8bb5a.entry.js.map → p-db4a15bd.entry.js.map} +0 -0
  493. /package/dist/core/{p-c31e6dbb.entry.js.map → p-e59d2d50.entry.js.map} +0 -0
  494. /package/dist/core/{p-e3923b67.entry.js.map → p-e904d985.entry.js.map} +0 -0
@@ -0,0 +1,156 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-afe53465.js');
6
+ const types = require('./types-7d67439f.js');
7
+ const helpers = require('./helpers-d166f875.js');
8
+
9
+ const icBadgeCss = "@media (prefers-reduced-motion: no-preference){:host(.show){animation:expand var(--ic-transition-duration-slow)}:host(.hide){animation:shrink var(--ic-transition-duration-slow)}}:host{display:flex;height:var(--ic-space-md);min-width:var(--ic-space-md);width:-moz-fit-content;width:fit-content;border-radius:calc(2 * var(--ic-space-xxl));position:absolute}:host(.neutral){background-color:var(--ic-architectural-500)}:host(.light){background-color:var(--ic-architectural-40)}:host(.info){background-color:var(--ic-status-info)}:host(.warning){background-color:var(--ic-status-warning-mid)}:host(.error){background-color:var(--ic-status-error)}:host(.success){background-color:var(--ic-status-success)}:host(.small){height:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host(.large){height:calc(var(--ic-space-md) + var(--ic-space-xxs));min-width:calc(var(--ic-space-md) + var(--ic-space-xxs))}:host(.dot.default){height:var(--ic-space-xs);width:var(--ic-space-xs);min-width:var(--ic-space-xs)}:host(.dot.small){height:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));min-width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs))}:host(.dot.large){height:var(--ic-space-sm);width:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host(.foreground-dark) ::slotted(*){fill:var(--ic-color-primary-text)}:host(.foreground-light) ::slotted(*){fill:white}:host(.foreground-dark) ic-typography{color:var(--ic-color-primary-text)}:host(.foreground-light) ic-typography{color:white}:host(.text) ic-typography{align-self:center;padding:0 calc((var(--ic-space-xs) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px)}:host(.text.small) ic-typography{padding:0 0.2132rem}:host(.text.large) ic-typography{padding:0 calc((var(--ic-space-sm) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px)}:host(.icon) ::slotted(svg){width:var(--ic-space-sm);height:var(--ic-space-sm);padding:var(--ic-space-xxxs)}:host(.icon.small) ::slotted(svg){width:var(--ic-space-xs);height:var(--ic-space-xs)}:host(.icon.large) ::slotted(svg){width:calc(var(--ic-space-sm) + var(--ic-space-xxxs));height:calc(var(--ic-space-sm) + var(--ic-space-xxxs));padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))}:host(.far){top:calc(-1 * var(--ic-space-xs));right:calc(-1 * var(--ic-space-xs))}:host(.far.small),:host(.dot.far.large){top:calc(-1 * var(--ic-space-xxs));right:calc(-1 * var(--ic-space-xxs))}:host(.dot.far),:host(.dot.far.small){top:calc(-1 * var(--ic-space-xxxs));right:calc(-1 * var(--ic-space-xxxs))}:host(.near){top:calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)));right:calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)))}:host(.dot.near){top:calc(-1 * var(--ic-space-1px));right:calc(-1 * var(--ic-space-1px))}:host(.inline){position:static}:host(.hide){visibility:hidden !important;transition:visibility var(--ic-transition-duration-slow)}@keyframes expand{from{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes shrink{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}";
10
+
11
+ const Badge = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.setBadgeColour = () => {
15
+ let colorRGBA = null;
16
+ if (this.customColor !== null) {
17
+ const firstChar = this.customColor.slice(0, 1);
18
+ if (firstChar === "#") {
19
+ colorRGBA = helpers.hexToRgba(this.customColor);
20
+ }
21
+ else if (firstChar.toLowerCase() === "r") {
22
+ colorRGBA = helpers.rgbaStrToObj(this.customColor);
23
+ }
24
+ this.customColorRGBA = colorRGBA;
25
+ this.el.style.backgroundColor = `rgba(${colorRGBA.r.toString()}, ${colorRGBA.g.toString()}, ${colorRGBA.b.toString()}, ${colorRGBA.a.toString()})`;
26
+ }
27
+ };
28
+ this.getBadgeForeground = () => {
29
+ let red;
30
+ let green;
31
+ let blue;
32
+ switch (this.variant) {
33
+ case "custom":
34
+ red = this.customColorRGBA.r;
35
+ green = this.customColorRGBA.g;
36
+ blue = this.customColorRGBA.b;
37
+ break;
38
+ case "error":
39
+ red = parseInt(helpers.getCssProperty("--ic-status-error-r"));
40
+ green = parseInt(helpers.getCssProperty("--ic-status-error-g"));
41
+ blue = parseInt(helpers.getCssProperty("--ic-status-error-b"));
42
+ break;
43
+ case "success":
44
+ red = parseInt(helpers.getCssProperty("--ic-status-success-r"));
45
+ green = parseInt(helpers.getCssProperty("--ic-status-success-g"));
46
+ blue = parseInt(helpers.getCssProperty("--ic-status-success-b"));
47
+ break;
48
+ case "warning":
49
+ red = parseInt(helpers.getCssProperty("--ic-status-warning-r"));
50
+ green = parseInt(helpers.getCssProperty("--ic-status-warning-g"));
51
+ blue = parseInt(helpers.getCssProperty("--ic-status-warning-b"));
52
+ break;
53
+ case "info": {
54
+ const info = helpers.hexToRgba(helpers.getCssProperty("--ic-status-info"));
55
+ red = info.r;
56
+ green = info.g;
57
+ blue = info.b;
58
+ break;
59
+ }
60
+ case "neutral": {
61
+ const neutral = helpers.hexToRgba(helpers.getCssProperty("--ic-architectural-500"));
62
+ red = neutral.r;
63
+ green = neutral.g;
64
+ blue = neutral.b;
65
+ break;
66
+ }
67
+ case "light": {
68
+ const light = helpers.hexToRgba(helpers.getCssProperty("--ic-architectural-40"));
69
+ red = light.r;
70
+ green = light.g;
71
+ blue = light.b;
72
+ break;
73
+ }
74
+ }
75
+ const brightness = (red * 299 + green * 587 + blue * 114) / 1000;
76
+ this.foregroundColour =
77
+ brightness > 133.3505
78
+ ? types.IcThemeForegroundEnum.Dark
79
+ : types.IcThemeForegroundEnum.Light;
80
+ };
81
+ this.getTextLabel = () => {
82
+ let label;
83
+ if (this.textLabel !== null) {
84
+ if (this.maxNumber !== null) {
85
+ label =
86
+ Number(this.textLabel) > this.maxNumber
87
+ ? `${this.maxNumber}+`
88
+ : this.textLabel;
89
+ }
90
+ else {
91
+ label = this.textLabel;
92
+ }
93
+ }
94
+ return label;
95
+ };
96
+ this.setAccessibleLabel = () => {
97
+ if (helpers.getParentElement(this.el) !== null) {
98
+ if (helpers.getParentElementType(this.el) === "IC-TAB") {
99
+ helpers.getParentElement(this.el).setAttribute("aria-describedby", "badge");
100
+ }
101
+ else {
102
+ helpers.getParentElement(this.el).ariaLabel = `badge displaying ${this.accessibleLabel}`;
103
+ }
104
+ }
105
+ };
106
+ this.isAccessibleLabelDefined = () => {
107
+ return this.accessibleLabel !== undefined && this.accessibleLabel !== null;
108
+ };
109
+ this.visible = true;
110
+ this.accessibleLabel = undefined;
111
+ this.customColor = null;
112
+ this.maxNumber = undefined;
113
+ this.position = "far";
114
+ this.size = "default";
115
+ this.textLabel = undefined;
116
+ this.type = "text";
117
+ this.variant = "neutral";
118
+ }
119
+ componentWillLoad() {
120
+ this.variant === "custom" && this.setBadgeColour();
121
+ this.getBadgeForeground();
122
+ this.isAccessibleLabelDefined() && this.setAccessibleLabel();
123
+ }
124
+ /**
125
+ * Use to show the badge.
126
+ */
127
+ async showBadge() {
128
+ this.visible = true;
129
+ }
130
+ /**
131
+ * Use to hide the badge.
132
+ */
133
+ async hideBadge() {
134
+ this.visible = false;
135
+ }
136
+ render() {
137
+ const { position, size, type, variant, foregroundColour, visible } = this;
138
+ return (index.h(index.Host, { class: {
139
+ [`${position}`]: true,
140
+ [`${size}`]: true,
141
+ [`${variant}`]: true,
142
+ [`${type}`]: true,
143
+ [`foreground-${foregroundColour}`]: foregroundColour !== null,
144
+ ["show"]: visible,
145
+ ["hide"]: !visible,
146
+ }, id: "badge", "aria-label": this.isAccessibleLabelDefined() &&
147
+ `badge displaying ${this.accessibleLabel}` }, type === "icon" && index.h("slot", { name: "badge-icon" }), type === "text" && (index.h("ic-typography", { variant: size === "small" ? "badge-small" : "badge" }, this.getTextLabel()))));
148
+ }
149
+ static get delegatesFocus() { return true; }
150
+ get el() { return index.getElement(this); }
151
+ };
152
+ Badge.style = icBadgeCss;
153
+
154
+ exports.ic_badge = Badge;
155
+
156
+ //# sourceMappingURL=ic-badge.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"ic-badge.entry.cjs.js","mappings":"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","names":["hexToRgba","rgbaStrToObj","getCssProperty","IcThemeForegroundEnum","getParentElement","getParentElementType","h","Host"],"sources":["src/components/ic-badge/ic-badge.css?tag=ic-badge&encapsulation=shadow","src/components/ic-badge/ic-badge.tsx"],"sourcesContent":["@media (prefers-reduced-motion: no-preference) {\n :host(.show) {\n animation: expand var(--ic-transition-duration-slow);\n }\n\n :host(.hide) {\n animation: shrink var(--ic-transition-duration-slow);\n }\n}\n\n:host {\n display: flex;\n height: var(--ic-space-md);\n min-width: var(--ic-space-md);\n width: -moz-fit-content;\n width: fit-content;\n border-radius: calc(2 * var(--ic-space-xxl));\n position: absolute;\n}\n\n:host(.neutral) {\n background-color: var(--ic-architectural-500);\n}\n\n:host(.light) {\n background-color: var(--ic-architectural-40);\n}\n\n:host(.info) {\n background-color: var(--ic-status-info);\n}\n\n:host(.warning) {\n background-color: var(--ic-status-warning-mid);\n}\n\n:host(.error) {\n background-color: var(--ic-status-error);\n}\n\n:host(.success) {\n background-color: var(--ic-status-success);\n}\n\n:host(.small) {\n height: var(--ic-space-sm);\n min-width: var(--ic-space-sm);\n}\n\n:host(.large) {\n height: calc(var(--ic-space-md) + var(--ic-space-xxs));\n min-width: calc(var(--ic-space-md) + var(--ic-space-xxs));\n}\n\n:host(.dot.default) {\n height: var(--ic-space-xs);\n width: var(--ic-space-xs);\n min-width: var(--ic-space-xs);\n}\n\n:host(.dot.small) {\n height: calc(var(--ic-space-xxs) + var(--ic-space-xxxs));\n width: calc(var(--ic-space-xxs) + var(--ic-space-xxxs));\n min-width: calc(var(--ic-space-xxs) + var(--ic-space-xxxs));\n}\n\n:host(.dot.large) {\n height: var(--ic-space-sm);\n width: var(--ic-space-sm);\n min-width: var(--ic-space-sm);\n}\n\n:host(.foreground-dark) ::slotted(*) {\n fill: var(--ic-color-primary-text);\n}\n\n:host(.foreground-light) ::slotted(*) {\n fill: white;\n}\n\n:host(.foreground-dark) ic-typography {\n color: var(--ic-color-primary-text);\n}\n\n:host(.foreground-light) ic-typography {\n color: white;\n}\n\n:host(.text) ic-typography {\n align-self: center;\n padding: 0 calc((var(--ic-space-xs) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px);\n}\n\n:host(.text.small) ic-typography {\n padding: 0 0.2132rem;\n}\n\n:host(.text.large) ic-typography {\n padding: 0 calc((var(--ic-space-sm) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px);\n}\n\n:host(.icon) ::slotted(svg) {\n width: var(--ic-space-sm);\n height: var(--ic-space-sm);\n padding: var(--ic-space-xxxs);\n}\n\n:host(.icon.small) ::slotted(svg) {\n width: var(--ic-space-xs);\n height: var(--ic-space-xs);\n}\n\n:host(.icon.large) ::slotted(svg) {\n width: calc(var(--ic-space-sm) + var(--ic-space-xxxs));\n height: calc(var(--ic-space-sm) + var(--ic-space-xxxs));\n padding: calc(var(--ic-space-xxxs) + var(--ic-space-1px));\n}\n\n:host(.far) {\n top: calc(-1 * var(--ic-space-xs));\n right: calc(-1 * var(--ic-space-xs));\n}\n\n:host(.far.small),\n:host(.dot.far.large) {\n top: calc(-1 * var(--ic-space-xxs));\n right: calc(-1 * var(--ic-space-xxs));\n}\n\n:host(.dot.far),\n:host(.dot.far.small) {\n top: calc(-1 * var(--ic-space-xxxs));\n right: calc(-1 * var(--ic-space-xxxs));\n}\n\n:host(.near) {\n top: calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)));\n right: calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)));\n}\n\n:host(.dot.near) {\n top: calc(-1 * var(--ic-space-1px));\n right: calc(-1 * var(--ic-space-1px));\n}\n\n:host(.inline) {\n position: static;\n}\n\n:host(.hide) {\n visibility: hidden !important;\n transition: visibility var(--ic-transition-duration-slow);\n}\n\n@keyframes expand {\n from {\n opacity: 0;\n transform: scale(0);\n }\n\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes shrink {\n from {\n opacity: 1;\n transform: scale(1);\n }\n\n to {\n opacity: 0;\n transform: scale(0);\n }\n}\n","import {\n Component,\n Element,\n Host,\n Method,\n Prop,\n State,\n h,\n} from \"@stencil/core\";\nimport {\n IcBadgePositions,\n IcBadgeTypes,\n IcBadgeVariants,\n IcColor,\n} from \"./ic-badge.types\";\nimport {\n IcColorRGBA,\n IcSizes,\n IcThemeForeground,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\nimport {\n getCssProperty,\n getParentElement,\n getParentElementType,\n hexToRgba,\n rgbaStrToObj,\n} from \"../../utils/helpers\";\n\n@Component({\n tag: \"ic-badge\",\n styleUrl: \"ic-badge.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Badge {\n private customColorRGBA: IcColorRGBA;\n private foregroundColour: IcThemeForeground;\n\n @Element() el: HTMLIcBadgeElement;\n\n @State() visible: boolean = true;\n\n /**\n * The accessible label of the badge component to provide context for screen reader users.\n */\n @Prop() accessibleLabel?: string;\n\n /**\n * The custom badge colour. This will only style the badge component if variant=\"custom\".\n * Can be a hex value e.g. \"#ff0000\", RGB e.g. \"rgb(255, 0, 0)\", or RGBA e.g. \"rgba(255, 0, 0, 1)\".\n */\n @Prop() customColor?: IcColor = null;\n\n /**\n * The maximum number shown on the badge appended with a +.\n * This will only be displayed if type=\"text\" and textLabel is not empty.\n */\n @Prop() maxNumber?: number;\n\n /**\n * The positioning of the badge in reference to the parent element.\n */\n @Prop() position?: IcBadgePositions = \"far\";\n\n /**\n * The size of the badge to be displayed.\n */\n @Prop() size?: IcSizes = \"default\";\n\n /**\n * The text displayed in the badge. This will only be displayed if type=\"text\".\n */\n @Prop() textLabel?: string;\n\n /**\n * The type of badge to be displayed.\n */\n @Prop() type?: IcBadgeTypes = \"text\";\n\n /**\n * The variant of the badge to be displayed.\n */\n @Prop() variant?: IcBadgeVariants = \"neutral\";\n\n componentWillLoad(): void {\n this.variant === \"custom\" && this.setBadgeColour();\n\n this.getBadgeForeground();\n\n this.isAccessibleLabelDefined() && this.setAccessibleLabel();\n }\n\n /**\n * Use to show the badge.\n */\n @Method()\n async showBadge(): Promise<void> {\n this.visible = true;\n }\n\n /**\n * Use to hide the badge.\n */\n @Method()\n async hideBadge(): Promise<void> {\n this.visible = false;\n }\n\n private setBadgeColour = () => {\n let colorRGBA = null;\n if (this.customColor !== null) {\n const firstChar = this.customColor.slice(0, 1);\n if (firstChar === \"#\") {\n colorRGBA = hexToRgba(this.customColor);\n } else if (firstChar.toLowerCase() === \"r\") {\n colorRGBA = rgbaStrToObj(this.customColor);\n }\n this.customColorRGBA = colorRGBA;\n this.el.style.backgroundColor = `rgba(${colorRGBA.r.toString()}, ${colorRGBA.g.toString()}, ${colorRGBA.b.toString()}, ${colorRGBA.a.toString()})`;\n }\n };\n\n private getBadgeForeground = () => {\n let red: number;\n let green: number;\n let blue: number;\n\n switch (this.variant) {\n case \"custom\":\n red = this.customColorRGBA.r;\n green = this.customColorRGBA.g;\n blue = this.customColorRGBA.b;\n break;\n case \"error\":\n red = parseInt(getCssProperty(\"--ic-status-error-r\"));\n green = parseInt(getCssProperty(\"--ic-status-error-g\"));\n blue = parseInt(getCssProperty(\"--ic-status-error-b\"));\n break;\n case \"success\":\n red = parseInt(getCssProperty(\"--ic-status-success-r\"));\n green = parseInt(getCssProperty(\"--ic-status-success-g\"));\n blue = parseInt(getCssProperty(\"--ic-status-success-b\"));\n break;\n case \"warning\":\n red = parseInt(getCssProperty(\"--ic-status-warning-r\"));\n green = parseInt(getCssProperty(\"--ic-status-warning-g\"));\n blue = parseInt(getCssProperty(\"--ic-status-warning-b\"));\n break;\n case \"info\": {\n const info = hexToRgba(getCssProperty(\"--ic-status-info\"));\n red = info.r;\n green = info.g;\n blue = info.b;\n break;\n }\n case \"neutral\": {\n const neutral = hexToRgba(getCssProperty(\"--ic-architectural-500\"));\n red = neutral.r;\n green = neutral.g;\n blue = neutral.b;\n break;\n }\n case \"light\": {\n const light = hexToRgba(getCssProperty(\"--ic-architectural-40\"));\n red = light.r;\n green = light.g;\n blue = light.b;\n break;\n }\n }\n\n const brightness = (red * 299 + green * 587 + blue * 114) / 1000;\n this.foregroundColour =\n brightness > 133.3505\n ? IcThemeForegroundEnum.Dark\n : IcThemeForegroundEnum.Light;\n };\n\n private getTextLabel = () => {\n let label;\n if (this.textLabel !== null) {\n if (this.maxNumber !== null) {\n label =\n Number(this.textLabel) > this.maxNumber\n ? `${this.maxNumber}+`\n : this.textLabel;\n } else {\n label = this.textLabel;\n }\n }\n return label;\n };\n\n private setAccessibleLabel = () => {\n if (getParentElement(this.el) !== null) {\n if (getParentElementType(this.el) === \"IC-TAB\") {\n getParentElement(this.el).setAttribute(\"aria-describedby\", \"badge\");\n } else {\n getParentElement(\n this.el\n ).ariaLabel = `badge displaying ${this.accessibleLabel}`;\n }\n }\n };\n\n private isAccessibleLabelDefined = () => {\n return this.accessibleLabel !== undefined && this.accessibleLabel !== null;\n };\n\n render() {\n const { position, size, type, variant, foregroundColour, visible } = this;\n\n return (\n <Host\n class={{\n [`${position}`]: true,\n [`${size}`]: true,\n [`${variant}`]: true,\n [`${type}`]: true,\n [`foreground-${foregroundColour}`]: foregroundColour !== null,\n [\"show\"]: visible,\n [\"hide\"]: !visible,\n }}\n id=\"badge\"\n aria-label={\n this.isAccessibleLabelDefined() &&\n `badge displaying ${this.accessibleLabel}`\n }\n >\n {type === \"icon\" && <slot name=\"badge-icon\"></slot>}\n {type === \"text\" && (\n <ic-typography variant={size === \"small\" ? \"badge-small\" : \"badge\"}>\n {this.getTextLabel()}\n </ic-typography>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-54d2bed9.js');
5
+ const index = require('./index-afe53465.js');
6
6
  const helpers = require('./helpers-d166f875.js');
7
7
  require('./types-7d67439f.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-54d2bed9.js');
5
+ const index = require('./index-afe53465.js');
6
6
  const chevronIcon = require('./chevron-icon-3bf07531.js');
7
7
  const helpers = require('./helpers-d166f875.js');
8
8
  require('./types-7d67439f.js');
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-54d2bed9.js');
5
+ const index = require('./index-afe53465.js');
6
6
  const helpers = require('./helpers-d166f875.js');
7
7
  const types = require('./types-7d67439f.js');
8
8
  const popper = require('./popper-31badbf8.js');
9
9
 
10
- const icButtonCss = "/*! 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:inline-block;--button-default:var(--ic-action-default);--button-default-hover:var(--ic-action-default-hover);--button-default-active:var(--ic-action-default-active);--button-default-background-hover:var(--ic-action-default-bg-hover);--button-default-background-active:var(--ic-action-default-bg-active);--icon-width:100%;--icon-height:100%}.button{font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;gap:var(--ic-space-xxs);flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover{cursor:pointer}.button:focus,:host .button:focus{box-shadow:var(--ic-border-focus)}:host(.light) .button:focus{box-shadow:var(--ic-border-focus)}.button:focus-visible{outline:var(--ic-hc-focus-outline)}:host(.dark) .button{--button-default:var(--ic-action-dark);--button-default-hover:var(--ic-action-dark);--button-default-active:var(--ic-action-dark);--button-default-background-hover:var(--ic-action-dark-bg-hover);--button-default-background-active:var(--ic-action-dark-bg-active)}:host(.light) .button{--button-default:var(--ic-action-light);--button-default-hover:var(--ic-action-light);--button-default-active:var(--ic-action-light);--button-default-background-hover:var(--ic-action-light-bg-hover);--button-default-background-active:var(--ic-action-light-bg-active)}:host(.button-variant-primary.light) .button{color:var(--ic-color-primary-text);--button-default-hover:var(--ic-action-light-hover);--button-default-active:var(--ic-action-light-active)}:host(.button-variant-primary.dark) .button{--button-default-hover:var(--ic-action-dark-hover);--button-default-active:var(--ic-action-dark-active)}:host(.disabled),:host(.disabled) .button,:host(.loading),:host(.loading) .button{pointer-events:none}:host(.loading-with-icon) .button{min-width:var(--min-width, 8.25rem)}:host(.button-variant-primary) .button{color:var(--ic-architectural-white);background-color:var(--button-default)}:host(.button-variant-primary) .button:hover:not(:focus){background-color:var(--button-default-hover)}:host(.button-variant-primary) .button:active:not(:focus),:host(.button-variant-primary.loading) .button{background-color:var(--button-default-active)}:host(.button-variant-primary.disabled) .button{background:var(--ic-architectural-200);color:var(--ic-architectural-300)}:host(.button-variant-primary.light.disabled) .button{background:var(--ic-architectural-600);color:var(--ic-architectural-500)}:host(.button-variant-secondary) .button{border:var(--ic-space-1px) solid var(--button-default);color:var(--button-default)}:host(.button-variant-secondary) .button:hover:not(:focus){background-color:var(--button-default-background-hover);border-color:var(--button-default-hover);color:var(--button-default-hover)}:host(.button-variant-secondary) .button:active:not(:focus){border-color:var(--button-default-active);background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-secondary.loading) .button{border-color:var(--button-default-active);background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-secondary.disabled) .button,:host(.button-variant-secondary.disabled) .button:hover,:host(.button-variant-secondary.disabled) .button:active{border-color:var(--ic-architectural-300);color:var(--ic-architectural-300);background:none}:host(.button-variant-secondary.light.disabled) .button,:host(.button-variant-secondary.light.disabled) .button:hover,:host(.button-variant-secondary.light.disabled) .button:active{border-color:var(--ic-architectural-500);color:var(--ic-architectural-500);background:none}:host(.button-variant-tertiary) .button{color:var(--button-default)}:host(.button-variant-tertiary) .button:hover:not(:focus){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-tertiary) .button:active:not(:focus),:host(.button-variant-tertiary.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-tertiary.disabled) .button,:host(.button-variant-tertiary.disabled) .button:hover,:host(.button-variant-tertiary.disabled) .button:active{border-color:var(--ic-architectural-300);color:var(--ic-architectural-300);background:none}:host(.button-variant-tertiary.light.disabled) .button,:host(.button-variant-tertiary.light.disabled) .button:hover,:host(.button-variant-tertiary.light.disabled) .button:active{border-color:var(--ic-architectural-500);color:var(--ic-architectural-500);background:none}:host(.button-variant-icon) .button{color:var(--button-default);min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover:not(:focus){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) .button:hover,:host(.button-variant-icon.disabled) .button:active{color:var(--ic-architectural-300);background:none}:host(.button-variant-destructive) .button{color:var(--ic-architectural-white);background-color:var(--ic-action-destructive);text-transform:uppercase}:host(.button-variant-destructive) .button:hover:not(:focus){background-color:var(--ic-action-destructive-hover)}:host(.button-variant-destructive) .button:active:not(:focus),:host(.button-variant-destructive.loading) .button{background-color:var(--ic-action-destructive-active)}:host(.button-variant-destructive.disabled) .button{background:var(--ic-architectural-200);color:var(--ic-architectural-300)}:host(.button-size-default) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.button-size-large) .button{height:var(--height, var(--ic-space-xxl));gap:var(--ic-space-xs);padding:var(--ic-space-sm) var(--ic-space-md)}:host(.button-size-default.button-variant-icon) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.button-size-small.button-variant-icon) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.button-size-large.button-variant-icon) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.full-width),:host(.full-width) .button{width:100%}div.loading-container{position:relative;align-items:center;width:100%}ic-loading-indicator{--outer-color:transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-md);height:var(--ic-space-md);display:flex;justify-content:center;align-items:center}:host(.button-size-large) div.icon-container{width:calc(var(--ic-space-md) + var(--ic-space-xxs));height:calc(var(--ic-space-md) + var(--ic-space-xxs))}::slotted(*){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem}:host(.clear-button){margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem}:host(.popout-menu-button) .button{justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}@media (forced-colors: active){.button{border:0.125rem solid transparent}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
10
+ const icButtonCss = "/*! 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:inline-block;position:relative;--button-default:var(--ic-action-default);--button-default-hover:var(--ic-action-default-hover);--button-default-active:var(--ic-action-default-active);--button-default-background-hover:var(--ic-action-default-bg-hover);--button-default-background-active:var(--ic-action-default-bg-active);--icon-width:100%;--icon-height:100%}.button{font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;gap:var(--ic-space-xxs);flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover{cursor:pointer}.button:focus,:host .button:focus,:host(.light) .button:focus{box-shadow:var(--ic-border-focus)}.button:focus-visible{outline:var(--ic-hc-focus-outline)}:host(.dark) .button{--button-default:var(--ic-action-dark);--button-default-hover:var(--ic-action-dark);--button-default-active:var(--ic-action-dark);--button-default-background-hover:var(--ic-action-dark-bg-hover);--button-default-background-active:var(--ic-action-dark-bg-active)}:host(.light) .button{--button-default:var(--ic-action-light);--button-default-hover:var(--ic-action-light);--button-default-active:var(--ic-action-light);--button-default-background-hover:var(--ic-action-light-bg-hover);--button-default-background-active:var(--ic-action-light-bg-active)}:host(.button-variant-primary.light) .button{color:var(--ic-color-primary-text);--button-default-hover:var(--ic-action-light-hover);--button-default-active:var(--ic-action-light-active)}:host(.button-variant-primary.dark) .button{--button-default-hover:var(--ic-action-dark-hover);--button-default-active:var(--ic-action-dark-active)}:host(.disabled),:host(.disabled) .button,:host(.loading),:host(.loading) .button{pointer-events:none}:host(.button-variant-primary) .button{color:var(--ic-architectural-white);background-color:var(--button-default)}:host(.button-variant-primary) .button:hover:not(:focus){background-color:var(--button-default-hover)}:host(.button-variant-primary) .button:active:not(:focus),:host(.button-variant-primary.loading) .button{background-color:var(--button-default-active)}:host(.button-variant-primary.disabled) .button{background:var(--ic-architectural-200);color:var(--ic-architectural-300)}:host(.button-variant-primary.light.disabled) .button{background:var(--ic-architectural-600);color:var(--ic-architectural-500)}:host(.button-variant-secondary) .button{border:var(--ic-space-1px) solid var(--button-default);color:var(--button-default)}:host(.button-variant-secondary) .button:hover:not(:focus){background-color:var(--button-default-background-hover);border-color:var(--button-default-hover);color:var(--button-default-hover)}:host(.button-variant-secondary) .button:active:not(:focus){border-color:var(--button-default-active);background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-secondary.loading) .button{border-color:var(--button-default-active);background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-secondary.disabled) .button,:host(.button-variant-secondary.disabled) .button:hover,:host(.button-variant-secondary.disabled) .button:active{border-color:var(--ic-architectural-300);color:var(--ic-architectural-300);background:none}:host(.button-variant-secondary.light.disabled) .button,:host(.button-variant-secondary.light.disabled) .button:hover,:host(.button-variant-secondary.light.disabled) .button:active{border-color:var(--ic-architectural-500);color:var(--ic-architectural-500);background:none}:host(.button-variant-tertiary) .button{color:var(--button-default)}:host(.button-variant-tertiary) .button:hover:not(:focus){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-tertiary) .button:active:not(:focus),:host(.button-variant-tertiary.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-tertiary.disabled) .button,:host(.button-variant-tertiary.disabled) .button:hover,:host(.button-variant-tertiary.disabled) .button:active{border-color:var(--ic-architectural-300);color:var(--ic-architectural-300);background:none}:host(.button-variant-tertiary.light.disabled) .button,:host(.button-variant-tertiary.light.disabled) .button:hover,:host(.button-variant-tertiary.light.disabled) .button:active{border-color:var(--ic-architectural-500);color:var(--ic-architectural-500);background:none}:host(.button-variant-icon) .button{color:var(--button-default);min-width:0;gap:var(--ic-space-xs);margin:var(--ic-space-1px) 0}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover:not(:focus){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) .button:hover,:host(.button-variant-icon.disabled) .button:active{color:var(--ic-architectural-300);background:none}:host(.button-variant-destructive) .button{color:var(--ic-architectural-white);background-color:var(--ic-action-destructive);text-transform:uppercase}:host(.button-variant-destructive) .button:hover:not(:focus){background-color:var(--ic-action-destructive-hover)}:host(.button-variant-destructive) .button:active:not(:focus),:host(.button-variant-destructive.loading) .button{background-color:var(--ic-action-destructive-active)}:host(.button-variant-destructive.disabled) .button{background:var(--ic-architectural-200);color:var(--ic-architectural-300)}:host(.button-size-default) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.button-size-large) .button{height:var(--height, var(--ic-space-xxl));gap:var(--ic-space-xs);padding:var(--ic-space-sm) var(--ic-space-md)}:host(.button-size-default.button-variant-icon) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.button-size-small.button-variant-icon) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.button-size-large.button-variant-icon) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.full-width),:host(.full-width) .button{width:100%}div.loading-container{position:relative;align-items:center;width:100%}ic-loading-indicator{--outer-color:transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-md);height:var(--ic-space-md);display:flex;justify-content:center;align-items:center}:host(.button-size-large) div.icon-container{width:calc(var(--ic-space-md) + var(--ic-space-xxs));height:calc(var(--ic-space-md) + var(--ic-space-xxs))}:host(.button-size-large) div.icon-container{width:calc(var(--ic-space-md) + var(--ic-space-xxs));height:calc(var(--ic-space-md) + var(--ic-space-xxs))}::slotted(:not(ic-badge)){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem}:host(.clear-button){margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem}:host(.popout-menu-button) .button{justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}@media (forced-colors: active){.button{border:0.125rem solid transparent}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
11
11
 
12
12
  var __rest = (undefined && undefined.__rest) || function (s, e) {
13
13
  var t = {};
@@ -33,6 +33,19 @@ const Button = class {
33
33
  this.describedByEl = null;
34
34
  this.describedById = null;
35
35
  this.mutationObserver = null;
36
+ this.setViewBox = () => {
37
+ let iconEl;
38
+ if (this.hasLeftIconSlot()) {
39
+ iconEl = this.el.querySelector(`[slot="left-icon"]`);
40
+ }
41
+ else if (this.hasRightIconSlot()) {
42
+ iconEl = this.el.querySelector(`[slot="right-icon"]`);
43
+ }
44
+ else {
45
+ iconEl = null;
46
+ }
47
+ return iconEl;
48
+ };
36
49
  this.handleClick = () => {
37
50
  if ((this.el.type === "submit" || this.el.type === "reset") &&
38
51
  !!this.el.closest("FORM")) {
@@ -45,6 +58,11 @@ const Button = class {
45
58
  this.onBlur = () => {
46
59
  this.icBlur.emit();
47
60
  };
61
+ this.loadingWidth = () => {
62
+ if (this.loading) {
63
+ this.el.style.setProperty("--min-width", `${this.el.getBoundingClientRect().width}px`);
64
+ }
65
+ };
48
66
  // triggered when text content of sibling element in light DOM changes
49
67
  this.mutationCallback = () => {
50
68
  this.describedByContent = this.describedByEl.innerText;
@@ -77,6 +95,9 @@ const Button = class {
77
95
  this.mutationObserver.disconnect();
78
96
  }
79
97
  }
98
+ componentWillUpdate() {
99
+ this.loadingWidth();
100
+ }
80
101
  componentWillLoad() {
81
102
  this.inheritedAttributes = helpers.inheritAttributes(this.el, [
82
103
  ...helpers.IC_INHERITED_ARIA,
@@ -109,6 +130,10 @@ const Button = class {
109
130
  });
110
131
  }
111
132
  }
133
+ componentWillRender() {
134
+ var _a;
135
+ (_a = this.setViewBox()) === null || _a === void 0 ? void 0 : _a.setAttribute("viewBox", "0 0 24 24");
136
+ }
112
137
  handleHostClick(event) {
113
138
  if (this.disabled || this.loading) {
114
139
  event.stopImmediatePropagation();
@@ -222,15 +247,11 @@ const Button = class {
222
247
  [`button-variant-${this.variant}`]: true,
223
248
  [`button-size-${this.size}`]: true,
224
249
  ["loading"]: this.loading,
225
- ["loading-with-icon"]: this.loading &&
226
- (this.hasIconSlot() ||
227
- this.hasLeftIconSlot() ||
228
- this.hasRightIconSlot()),
229
250
  ["dark"]: this.appearance === types.IcThemeForegroundEnum.Dark,
230
251
  ["light"]: this.appearance === types.IcThemeForegroundEnum.Light,
231
252
  ["full-width"]: this.fullWidth,
232
253
  ["with-badge"]: helpers.isSlotUsed(this.el, "badge"),
233
- }, onClick: this.handleClick }, this.hasTooltip && (index.h("ic-tooltip", { class: { ["tooltip-disabled"]: this.disableTooltip }, ref: (el) => (this.tooltipEl = el), label: tooltipText, target: buttonId, placement: this.tooltipPlacement }, index.h(ButtonContent, null))), !this.hasTooltip && index.h(ButtonContent, null), this.describedByContent && (index.h("span", { id: describedBy, class: "ic-button-describedby" }, this.describedByContent))));
254
+ }, onClick: this.handleClick }, this.hasTooltip && (index.h("ic-tooltip", { class: { ["tooltip-disabled"]: this.disableTooltip }, ref: (el) => (this.tooltipEl = el), label: tooltipText, target: buttonId, placement: this.tooltipPlacement }, index.h(ButtonContent, null))), helpers.isSlotUsed(this.el, "badge") && index.h("slot", { name: "badge" }), !this.hasTooltip && index.h(ButtonContent, null), this.describedByContent && (index.h("span", { id: describedBy, class: "ic-button-describedby" }, this.describedByContent))));
234
255
  }
235
256
  static get delegatesFocus() { return true; }
236
257
  get el() { return index.getElement(this); }