@ukic/web-components 2.4.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (486) 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 +3 -3
  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 +1 -1
  41. package/dist/cjs/ic-navigation-group.cjs.entry.js +53 -29
  42. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-navigation-item.cjs.entry.js +27 -6
  44. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
  46. package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
  47. package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
  48. package/dist/cjs/ic-pagination.cjs.entry.js +1 -1
  49. package/dist/cjs/ic-popover-menu.cjs.entry.js +1 -1
  50. package/dist/cjs/ic-radio-group.cjs.entry.js +51 -5
  51. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-radio-option.cjs.entry.js +1 -1
  53. package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
  54. package/dist/cjs/ic-section-container.cjs.entry.js +1 -1
  55. package/dist/cjs/ic-select.cjs.entry.js +1 -1
  56. package/dist/cjs/ic-side-navigation.cjs.entry.js +29 -7
  57. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-skeleton.cjs.entry.js +1 -1
  59. package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
  60. package/dist/cjs/ic-step.cjs.entry.js +1 -1
  61. package/dist/cjs/ic-stepper.cjs.entry.js +4 -1
  62. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-switch.cjs.entry.js +1 -1
  64. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  65. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  66. package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -1
  67. package/dist/cjs/ic-tab.cjs.entry.js +2 -2
  68. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-text-field.cjs.entry.js +1 -1
  70. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  71. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  72. package/dist/cjs/ic-toast.cjs.entry.js +1 -1
  73. package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
  74. package/dist/cjs/ic-typography.cjs.entry.js +2 -2
  75. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  76. package/dist/cjs/{index-54d2bed9.js → index-afe53465.js} +57 -15
  77. package/dist/cjs/index-afe53465.js.map +1 -0
  78. package/dist/cjs/loader.cjs.js +2 -2
  79. package/dist/cjs/types-7d67439f.js.map +1 -1
  80. package/dist/collection/collection-manifest.json +7 -4
  81. package/dist/collection/components/ic-accordion/ic-accordion.css +551 -0
  82. package/dist/collection/components/ic-accordion/ic-accordion.js +291 -0
  83. package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -0
  84. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.e2e.js +57 -0
  85. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.e2e.js.map +1 -0
  86. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js +346 -0
  87. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js.map +1 -0
  88. package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +465 -0
  89. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js +216 -0
  90. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js.map +1 -0
  91. package/dist/collection/components/ic-accordion-group/test/a11y/ic-accordion-group.test.a11y.js +31 -0
  92. package/dist/collection/components/ic-accordion-group/test/a11y/ic-accordion-group.test.a11y.js.map +1 -0
  93. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.e2e.js +114 -0
  94. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.e2e.js.map +1 -0
  95. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js +126 -0
  96. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js.map +1 -0
  97. package/dist/collection/components/ic-badge/ic-badge.css +179 -0
  98. package/dist/collection/components/ic-badge/ic-badge.js +374 -0
  99. package/dist/collection/components/ic-badge/ic-badge.js.map +1 -0
  100. package/dist/collection/components/ic-badge/ic-badge.types.js +2 -0
  101. package/dist/collection/components/ic-badge/ic-badge.types.js.map +1 -0
  102. package/dist/collection/components/ic-badge/test/a11y/ic-badge.test.a11y.js +16 -0
  103. package/dist/collection/components/ic-badge/test/a11y/ic-badge.test.a11y.js.map +1 -0
  104. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +167 -0
  105. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +1 -0
  106. package/dist/collection/components/ic-button/ic-button.css +9 -5
  107. package/dist/collection/components/ic-button/ic-button.js +2 -1
  108. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  109. package/dist/collection/components/ic-card/ic-card.css +22 -0
  110. package/dist/collection/components/ic-chip/ic-chip.js +2 -1
  111. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  112. package/dist/collection/components/ic-dialog/ic-dialog.js +36 -14
  113. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  114. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +1 -1
  115. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +52 -28
  116. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  117. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +18 -4
  118. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +25 -4
  119. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  120. package/dist/collection/components/ic-radio-group/ic-radio-group.css +3 -3
  121. package/dist/collection/components/ic-radio-group/ic-radio-group.js +57 -6
  122. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  123. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +33 -2
  124. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -1
  125. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js +4 -0
  126. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +1 -1
  127. package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js +3 -1
  128. package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js.map +1 -1
  129. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +46 -5
  130. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +27 -5
  131. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  132. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.js +171 -0
  133. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.js.map +1 -1
  134. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js +45 -1
  135. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js.map +1 -1
  136. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js +33 -0
  137. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +1 -1
  138. package/dist/collection/components/ic-stepper/ic-stepper.js +3 -0
  139. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  140. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js +3 -1
  141. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +1 -1
  142. package/dist/collection/components/ic-tab/ic-tab.js +3 -2
  143. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  144. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js +2 -0
  145. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js.map +1 -1
  146. package/dist/collection/components/ic-typography/ic-typography.css +10 -0
  147. package/dist/collection/components/ic-typography/ic-typography.js +1 -1
  148. package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js +1 -1
  149. package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js.map +1 -1
  150. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js +14 -0
  151. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +1 -1
  152. package/dist/collection/utils/types.js.map +1 -1
  153. package/dist/components/helpers.js +1 -1
  154. package/dist/components/ic-accordion-group.d.ts +11 -0
  155. package/dist/components/ic-accordion-group.js +140 -0
  156. package/dist/components/ic-accordion-group.js.map +1 -0
  157. package/dist/components/ic-accordion.d.ts +11 -0
  158. package/dist/components/ic-accordion.js +146 -0
  159. package/dist/components/ic-accordion.js.map +1 -0
  160. package/dist/components/ic-back-to-top.js +2 -0
  161. package/dist/components/ic-back-to-top.js.map +1 -1
  162. package/dist/components/ic-badge.d.ts +11 -0
  163. package/dist/components/ic-badge.js +188 -0
  164. package/dist/components/ic-badge.js.map +1 -0
  165. package/dist/components/ic-breadcrumb-group.js +1 -1
  166. package/dist/components/ic-button2.js +2 -2
  167. package/dist/components/ic-button2.js.map +1 -1
  168. package/dist/components/ic-card.js +1 -1
  169. package/dist/components/ic-card.js.map +1 -1
  170. package/dist/components/ic-checkbox-group.js +1 -1
  171. package/dist/components/ic-checkbox.js +1 -1
  172. package/dist/components/ic-chip.js +1 -1
  173. package/dist/components/ic-chip.js.map +1 -1
  174. package/dist/components/ic-data-row.js +1 -1
  175. package/dist/components/ic-dialog.js +39 -15
  176. package/dist/components/ic-dialog.js.map +1 -1
  177. package/dist/components/ic-divider2.js +1 -1
  178. package/dist/components/ic-footer-link-group.js +1 -1
  179. package/dist/components/ic-footer-link.js +1 -1
  180. package/dist/components/ic-footer.js +1 -1
  181. package/dist/components/ic-hero.js +1 -1
  182. package/dist/components/ic-hero.js.map +1 -1
  183. package/dist/components/ic-horizontal-scroll2.js +2 -2
  184. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  185. package/dist/components/ic-input-component-container2.js +1 -1
  186. package/dist/components/ic-input-component-container2.js.map +1 -1
  187. package/dist/components/ic-input-label2.js +1 -1
  188. package/dist/components/ic-input-validation2.js +1 -1
  189. package/dist/components/ic-loading-indicator2.js +3 -0
  190. package/dist/components/ic-loading-indicator2.js.map +1 -1
  191. package/dist/components/ic-menu-item2.js +1 -1
  192. package/dist/components/ic-menu2.js +3 -0
  193. package/dist/components/ic-menu2.js.map +1 -1
  194. package/dist/components/ic-navigation-button.js +1 -1
  195. package/dist/components/ic-navigation-group.js +53 -29
  196. package/dist/components/ic-navigation-group.js.map +1 -1
  197. package/dist/components/ic-navigation-item.js +27 -6
  198. package/dist/components/ic-navigation-item.js.map +1 -1
  199. package/dist/components/ic-navigation-menu2.js +1 -1
  200. package/dist/components/ic-page-header.js +1 -1
  201. package/dist/components/ic-pagination.js +4 -1
  202. package/dist/components/ic-pagination.js.map +1 -1
  203. package/dist/components/ic-popover-menu.js +4 -2
  204. package/dist/components/ic-popover-menu.js.map +1 -1
  205. package/dist/components/ic-radio-group.js +57 -7
  206. package/dist/components/ic-radio-group.js.map +1 -1
  207. package/dist/components/ic-radio-option.js +4 -2
  208. package/dist/components/ic-radio-option.js.map +1 -1
  209. package/dist/components/ic-search-bar.js +7 -2
  210. package/dist/components/ic-search-bar.js.map +1 -1
  211. package/dist/components/ic-select.js +6 -1
  212. package/dist/components/ic-select.js.map +1 -1
  213. package/dist/components/ic-side-navigation.js +29 -7
  214. package/dist/components/ic-side-navigation.js.map +1 -1
  215. package/dist/components/ic-step.js +2 -0
  216. package/dist/components/ic-step.js.map +1 -1
  217. package/dist/components/ic-stepper.js +4 -1
  218. package/dist/components/ic-stepper.js.map +1 -1
  219. package/dist/components/ic-switch.js +1 -1
  220. package/dist/components/ic-switch.js.map +1 -1
  221. package/dist/components/ic-tab-context.js +3 -1
  222. package/dist/components/ic-tab-context.js.map +1 -1
  223. package/dist/components/ic-tab.js +4 -2
  224. package/dist/components/ic-tab.js.map +1 -1
  225. package/dist/components/ic-text-field2.js +5 -2
  226. package/dist/components/ic-text-field2.js.map +1 -1
  227. package/dist/components/ic-theme.js +3 -1
  228. package/dist/components/ic-theme.js.map +1 -1
  229. package/dist/components/ic-toast.js +1 -1
  230. package/dist/components/ic-toast.js.map +1 -1
  231. package/dist/components/ic-tooltip2.js +2 -0
  232. package/dist/components/ic-tooltip2.js.map +1 -1
  233. package/dist/components/ic-top-navigation.js +4 -2
  234. package/dist/components/ic-top-navigation.js.map +1 -1
  235. package/dist/components/ic-typography2.js +3 -1
  236. package/dist/components/ic-typography2.js.map +1 -1
  237. package/dist/components/types.js.map +1 -1
  238. package/dist/core/core.css +6 -3
  239. package/dist/core/core.esm.js +1 -1
  240. package/dist/core/core.esm.js.map +1 -1
  241. package/dist/core/{p-937ecd5b.entry.js → p-0353a1d8.entry.js} +2 -2
  242. package/dist/core/p-038601a3.entry.js +2 -0
  243. package/dist/core/p-038601a3.entry.js.map +1 -0
  244. package/dist/core/{p-a421d3a1.entry.js → p-05249867.entry.js} +2 -2
  245. package/dist/core/p-08c6119a.entry.js +2 -0
  246. package/dist/core/p-08c6119a.entry.js.map +1 -0
  247. package/dist/core/{p-a0a02a13.entry.js → p-09004694.entry.js} +2 -2
  248. package/dist/core/{p-d16100e8.entry.js → p-0d71a937.entry.js} +2 -2
  249. package/dist/core/{p-1c54269e.entry.js → p-0e1a4f8d.entry.js} +2 -2
  250. package/dist/core/{p-607e7bf2.entry.js → p-0fdb1e52.entry.js} +2 -2
  251. package/dist/core/{p-d20917ae.entry.js → p-10bfc292.entry.js} +2 -2
  252. package/dist/core/{p-27bf4783.entry.js → p-1650c1c2.entry.js} +2 -2
  253. package/dist/core/{p-e2d0039d.entry.js → p-1db57a3f.entry.js} +2 -2
  254. package/dist/core/p-1ed0a71d.entry.js +2 -0
  255. package/dist/core/{p-0dcc76b1.entry.js.map → p-1ed0a71d.entry.js.map} +1 -1
  256. package/dist/core/{p-4c4261e7.entry.js → p-2184a72f.entry.js} +2 -2
  257. package/dist/core/p-293f4c5f.entry.js +2 -0
  258. package/dist/core/p-293f4c5f.entry.js.map +1 -0
  259. package/dist/core/{p-62499150.entry.js → p-2afa6d29.entry.js} +2 -2
  260. package/dist/core/{p-cb2c18de.entry.js → p-2c09f9e0.entry.js} +2 -2
  261. package/dist/core/{p-3297713b.entry.js → p-2d21de19.entry.js} +2 -2
  262. package/dist/core/{p-5b8be53f.entry.js → p-32510505.entry.js} +2 -2
  263. package/dist/core/{p-99741b0f.entry.js → p-482397ae.entry.js} +2 -2
  264. package/dist/core/p-482397ae.entry.js.map +1 -0
  265. package/dist/core/{p-831b0f3f.entry.js → p-4ef8342f.entry.js} +2 -2
  266. package/dist/core/{p-c390fbad.entry.js → p-4f070381.entry.js} +2 -2
  267. package/dist/core/{p-9650e00e.entry.js → p-4fbe1dc3.entry.js} +2 -2
  268. package/dist/core/{p-68fda79a.entry.js → p-5401863e.entry.js} +2 -2
  269. package/dist/core/{p-83e535de.entry.js → p-59b24198.entry.js} +2 -2
  270. package/dist/core/p-5cc070c4.entry.js +2 -0
  271. package/dist/core/p-5cc070c4.entry.js.map +1 -0
  272. package/dist/core/p-5f881644.entry.js +2 -0
  273. package/dist/core/p-5f881644.entry.js.map +1 -0
  274. package/dist/core/p-60fef702.entry.js +2 -0
  275. package/dist/core/p-60fef702.entry.js.map +1 -0
  276. package/dist/core/p-613aa265.js.map +1 -1
  277. package/dist/core/{p-94903a21.entry.js → p-64999983.entry.js} +2 -2
  278. package/dist/core/p-64999983.entry.js.map +1 -0
  279. package/dist/core/{p-521c8f40.entry.js → p-675fe4db.entry.js} +2 -2
  280. package/dist/core/p-675fe4db.entry.js.map +1 -0
  281. package/dist/core/{p-67c18f72.entry.js → p-6aec6bce.entry.js} +2 -2
  282. package/dist/core/{p-27897d29.entry.js → p-6ec3cd12.entry.js} +2 -2
  283. package/dist/core/p-76daa5b0.entry.js +2 -0
  284. package/dist/core/{p-8e6169e0.entry.js → p-777e5556.entry.js} +2 -2
  285. package/dist/core/p-7a61d94a.entry.js +2 -0
  286. package/dist/core/p-7a61d94a.entry.js.map +1 -0
  287. package/dist/core/{p-18068237.js → p-85903a81.js} +3 -3
  288. package/dist/core/p-85903a81.js.map +1 -0
  289. package/dist/core/{p-ebd60291.entry.js → p-913da6d0.entry.js} +2 -2
  290. package/dist/core/{p-77266738.entry.js → p-932fe2a0.entry.js} +2 -2
  291. package/dist/core/p-9bd160bb.entry.js +2 -0
  292. package/dist/core/p-9bd160bb.entry.js.map +1 -0
  293. package/dist/core/{p-5fcbcc3f.entry.js → p-9ee852d9.entry.js} +2 -2
  294. package/dist/core/{p-d65ace31.entry.js → p-a388750d.entry.js} +2 -2
  295. package/dist/core/{p-b0b1de0e.entry.js → p-a46c1690.entry.js} +2 -2
  296. package/dist/core/{p-3fc638fc.entry.js → p-abf60097.entry.js} +2 -2
  297. package/dist/core/{p-630ae754.entry.js → p-ac82781b.entry.js} +2 -2
  298. package/dist/core/{p-6781620e.entry.js → p-ad520f36.entry.js} +2 -2
  299. package/dist/core/p-b42b8ffa.entry.js +2 -0
  300. package/dist/core/p-b42b8ffa.entry.js.map +1 -0
  301. package/dist/core/p-b96bd8be.entry.js +2 -0
  302. package/dist/core/p-b96bd8be.entry.js.map +1 -0
  303. package/dist/core/{p-85dd5e5b.entry.js → p-c1e8d13e.entry.js} +2 -2
  304. package/dist/core/{p-ebe76390.js → p-c30d9b20.js} +2 -2
  305. package/dist/core/p-ca6e5474.entry.js +2 -0
  306. package/dist/core/p-ca6e5474.entry.js.map +1 -0
  307. package/dist/core/{p-0a30f1e5.entry.js → p-ceed0fee.entry.js} +2 -2
  308. package/dist/core/{p-c1859843.entry.js → p-cf95dd66.entry.js} +2 -2
  309. package/dist/core/{p-87149cbd.entry.js → p-d005a71a.entry.js} +2 -2
  310. package/dist/core/{p-65df7222.entry.js → p-d5282ede.entry.js} +2 -2
  311. package/dist/core/{p-4f7c20b3.entry.js → p-d9fc7243.entry.js} +2 -2
  312. package/dist/core/{p-16e8bb5a.entry.js → p-db4a15bd.entry.js} +2 -2
  313. package/dist/core/{p-c31e6dbb.entry.js → p-e59d2d50.entry.js} +2 -2
  314. package/dist/core/p-e75b04af.entry.js +2 -0
  315. package/dist/core/p-e75b04af.entry.js.map +1 -0
  316. package/dist/core/{p-e3923b67.entry.js → p-e904d985.entry.js} +2 -2
  317. package/dist/core/{p-7194c255.entry.js → p-ea55f25c.entry.js} +2 -2
  318. package/dist/core/p-ea55f25c.entry.js.map +1 -0
  319. package/dist/esm/core.js +4 -4
  320. package/dist/esm/core.js.map +1 -1
  321. package/dist/esm/{helpers-b0e80358.js → helpers-81a88a11.js} +2 -2
  322. package/dist/esm/{helpers-b0e80358.js.map → helpers-81a88a11.js.map} +1 -1
  323. package/dist/esm/ic-accordion-group.entry.js +90 -0
  324. package/dist/esm/ic-accordion-group.entry.js.map +1 -0
  325. package/dist/esm/ic-accordion.entry.js +113 -0
  326. package/dist/esm/ic-accordion.entry.js.map +1 -0
  327. package/dist/esm/ic-alert.entry.js +2 -2
  328. package/dist/esm/ic-back-to-top.entry.js +2 -2
  329. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  330. package/dist/esm/ic-badge.entry.js +152 -0
  331. package/dist/esm/ic-badge.entry.js.map +1 -0
  332. package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
  333. package/dist/esm/ic-breadcrumb.entry.js +2 -2
  334. package/dist/esm/ic-button_3.entry.js +4 -4
  335. package/dist/esm/ic-button_3.entry.js.map +1 -1
  336. package/dist/esm/ic-card.entry.js +3 -3
  337. package/dist/esm/ic-card.entry.js.map +1 -1
  338. package/dist/esm/ic-checkbox-group.entry.js +2 -2
  339. package/dist/esm/ic-checkbox.entry.js +2 -2
  340. package/dist/esm/ic-chip.entry.js +3 -3
  341. package/dist/esm/ic-chip.entry.js.map +1 -1
  342. package/dist/esm/ic-classification-banner.entry.js +1 -1
  343. package/dist/esm/ic-data-entity.entry.js +1 -1
  344. package/dist/esm/ic-data-row.entry.js +2 -2
  345. package/dist/esm/ic-dialog.entry.js +38 -16
  346. package/dist/esm/ic-dialog.entry.js.map +1 -1
  347. package/dist/esm/ic-divider.entry.js +2 -2
  348. package/dist/esm/ic-empty-state.entry.js +2 -2
  349. package/dist/esm/ic-footer-link-group.entry.js +2 -2
  350. package/dist/esm/ic-footer-link.entry.js +2 -2
  351. package/dist/esm/ic-footer.entry.js +2 -2
  352. package/dist/esm/ic-hero.entry.js +2 -2
  353. package/dist/esm/ic-horizontal-scroll.entry.js +3 -3
  354. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  355. package/dist/esm/ic-input-component-container_3.entry.js +2 -2
  356. package/dist/esm/ic-input-label_2.entry.js +2 -2
  357. package/dist/esm/ic-link.entry.js +2 -2
  358. package/dist/esm/ic-menu-group.entry.js +1 -1
  359. package/dist/esm/ic-menu-item.entry.js +2 -2
  360. package/dist/esm/ic-navigation-button.entry.js +2 -2
  361. package/dist/esm/ic-navigation-group.entry.js +54 -30
  362. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  363. package/dist/esm/ic-navigation-item.entry.js +28 -7
  364. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  365. package/dist/esm/ic-navigation-menu.entry.js +2 -2
  366. package/dist/esm/ic-page-header.entry.js +2 -2
  367. package/dist/esm/ic-pagination-item.entry.js +2 -2
  368. package/dist/esm/ic-pagination.entry.js +2 -2
  369. package/dist/esm/ic-popover-menu.entry.js +2 -2
  370. package/dist/esm/ic-radio-group.entry.js +52 -6
  371. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  372. package/dist/esm/ic-radio-option.entry.js +2 -2
  373. package/dist/esm/ic-search-bar.entry.js +2 -2
  374. package/dist/esm/ic-section-container.entry.js +1 -1
  375. package/dist/esm/ic-select.entry.js +2 -2
  376. package/dist/esm/ic-side-navigation.entry.js +30 -8
  377. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  378. package/dist/esm/ic-skeleton.entry.js +1 -1
  379. package/dist/esm/ic-status-tag.entry.js +2 -2
  380. package/dist/esm/ic-step.entry.js +1 -1
  381. package/dist/esm/ic-stepper.entry.js +5 -2
  382. package/dist/esm/ic-stepper.entry.js.map +1 -1
  383. package/dist/esm/ic-switch.entry.js +2 -2
  384. package/dist/esm/ic-tab-context.entry.js +1 -1
  385. package/dist/esm/ic-tab-group.entry.js +2 -2
  386. package/dist/esm/ic-tab-panel.entry.js +1 -1
  387. package/dist/esm/ic-tab.entry.js +3 -3
  388. package/dist/esm/ic-tab.entry.js.map +1 -1
  389. package/dist/esm/ic-text-field.entry.js +2 -2
  390. package/dist/esm/ic-theme.entry.js +2 -2
  391. package/dist/esm/ic-toast-region.entry.js +1 -1
  392. package/dist/esm/ic-toast.entry.js +2 -2
  393. package/dist/esm/ic-top-navigation.entry.js +2 -2
  394. package/dist/esm/ic-typography.entry.js +3 -3
  395. package/dist/esm/ic-typography.entry.js.map +1 -1
  396. package/dist/esm/{index-14c9f375.js → index-b006ae9d.js} +57 -15
  397. package/dist/esm/index-b006ae9d.js.map +1 -0
  398. package/dist/esm/loader.js +3 -3
  399. package/dist/esm/types-b2398b37.js.map +1 -1
  400. package/dist/types/components/ic-accordion/ic-accordion.d.ts +55 -0
  401. package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +33 -0
  402. package/dist/types/components/ic-accordion-group/test/a11y/ic-accordion-group.test.a11y.d.ts +1 -0
  403. package/dist/types/components/ic-badge/ic-badge.d.ts +57 -0
  404. package/dist/types/components/ic-badge/ic-badge.types.d.ts +9 -0
  405. package/dist/types/components/ic-badge/test/a11y/ic-badge.test.a11y.d.ts +1 -0
  406. package/dist/types/components/ic-button/ic-button.d.ts +2 -1
  407. package/dist/types/components/ic-chip/ic-chip.d.ts +1 -0
  408. package/dist/types/components/ic-dialog/ic-dialog.d.ts +4 -0
  409. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +4 -2
  410. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +2 -0
  411. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +8 -0
  412. package/dist/types/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.d.ts +2 -0
  413. package/dist/types/components/ic-stepper/ic-stepper.d.ts +1 -0
  414. package/dist/types/components/ic-tab/ic-tab.d.ts +1 -0
  415. package/dist/types/components.d.ts +202 -0
  416. package/dist/types/utils/types.d.ts +2 -2
  417. package/hydrate/index.js +638 -88
  418. package/package.json +12 -3
  419. package/dist/cjs/index-54d2bed9.js.map +0 -1
  420. package/dist/core/p-0dcc76b1.entry.js +0 -2
  421. package/dist/core/p-101bce17.entry.js +0 -2
  422. package/dist/core/p-101bce17.entry.js.map +0 -1
  423. package/dist/core/p-18068237.js.map +0 -1
  424. package/dist/core/p-433cfd47.entry.js +0 -2
  425. package/dist/core/p-433cfd47.entry.js.map +0 -1
  426. package/dist/core/p-455bfed1.entry.js +0 -2
  427. package/dist/core/p-455bfed1.entry.js.map +0 -1
  428. package/dist/core/p-521c8f40.entry.js.map +0 -1
  429. package/dist/core/p-7194c255.entry.js.map +0 -1
  430. package/dist/core/p-7be2b1fd.entry.js +0 -2
  431. package/dist/core/p-7be2b1fd.entry.js.map +0 -1
  432. package/dist/core/p-9248228e.entry.js +0 -2
  433. package/dist/core/p-9248228e.entry.js.map +0 -1
  434. package/dist/core/p-932a67ca.entry.js +0 -2
  435. package/dist/core/p-94903a21.entry.js.map +0 -1
  436. package/dist/core/p-96022913.entry.js +0 -2
  437. package/dist/core/p-96022913.entry.js.map +0 -1
  438. package/dist/core/p-99741b0f.entry.js.map +0 -1
  439. package/dist/core/p-a6f48272.entry.js +0 -2
  440. package/dist/core/p-a6f48272.entry.js.map +0 -1
  441. package/dist/core/p-d78c90fe.entry.js +0 -2
  442. package/dist/core/p-d78c90fe.entry.js.map +0 -1
  443. package/dist/core/p-fedcfea3.entry.js +0 -2
  444. package/dist/core/p-fedcfea3.entry.js.map +0 -1
  445. package/dist/esm/index-14c9f375.js.map +0 -1
  446. /package/dist/core/{p-937ecd5b.entry.js.map → p-0353a1d8.entry.js.map} +0 -0
  447. /package/dist/core/{p-a421d3a1.entry.js.map → p-05249867.entry.js.map} +0 -0
  448. /package/dist/core/{p-a0a02a13.entry.js.map → p-09004694.entry.js.map} +0 -0
  449. /package/dist/core/{p-d16100e8.entry.js.map → p-0d71a937.entry.js.map} +0 -0
  450. /package/dist/core/{p-1c54269e.entry.js.map → p-0e1a4f8d.entry.js.map} +0 -0
  451. /package/dist/core/{p-607e7bf2.entry.js.map → p-0fdb1e52.entry.js.map} +0 -0
  452. /package/dist/core/{p-d20917ae.entry.js.map → p-10bfc292.entry.js.map} +0 -0
  453. /package/dist/core/{p-27bf4783.entry.js.map → p-1650c1c2.entry.js.map} +0 -0
  454. /package/dist/core/{p-e2d0039d.entry.js.map → p-1db57a3f.entry.js.map} +0 -0
  455. /package/dist/core/{p-4c4261e7.entry.js.map → p-2184a72f.entry.js.map} +0 -0
  456. /package/dist/core/{p-62499150.entry.js.map → p-2afa6d29.entry.js.map} +0 -0
  457. /package/dist/core/{p-cb2c18de.entry.js.map → p-2c09f9e0.entry.js.map} +0 -0
  458. /package/dist/core/{p-3297713b.entry.js.map → p-2d21de19.entry.js.map} +0 -0
  459. /package/dist/core/{p-5b8be53f.entry.js.map → p-32510505.entry.js.map} +0 -0
  460. /package/dist/core/{p-831b0f3f.entry.js.map → p-4ef8342f.entry.js.map} +0 -0
  461. /package/dist/core/{p-c390fbad.entry.js.map → p-4f070381.entry.js.map} +0 -0
  462. /package/dist/core/{p-9650e00e.entry.js.map → p-4fbe1dc3.entry.js.map} +0 -0
  463. /package/dist/core/{p-68fda79a.entry.js.map → p-5401863e.entry.js.map} +0 -0
  464. /package/dist/core/{p-83e535de.entry.js.map → p-59b24198.entry.js.map} +0 -0
  465. /package/dist/core/{p-67c18f72.entry.js.map → p-6aec6bce.entry.js.map} +0 -0
  466. /package/dist/core/{p-27897d29.entry.js.map → p-6ec3cd12.entry.js.map} +0 -0
  467. /package/dist/core/{p-932a67ca.entry.js.map → p-76daa5b0.entry.js.map} +0 -0
  468. /package/dist/core/{p-8e6169e0.entry.js.map → p-777e5556.entry.js.map} +0 -0
  469. /package/dist/core/{p-ebd60291.entry.js.map → p-913da6d0.entry.js.map} +0 -0
  470. /package/dist/core/{p-77266738.entry.js.map → p-932fe2a0.entry.js.map} +0 -0
  471. /package/dist/core/{p-5fcbcc3f.entry.js.map → p-9ee852d9.entry.js.map} +0 -0
  472. /package/dist/core/{p-d65ace31.entry.js.map → p-a388750d.entry.js.map} +0 -0
  473. /package/dist/core/{p-b0b1de0e.entry.js.map → p-a46c1690.entry.js.map} +0 -0
  474. /package/dist/core/{p-3fc638fc.entry.js.map → p-abf60097.entry.js.map} +0 -0
  475. /package/dist/core/{p-630ae754.entry.js.map → p-ac82781b.entry.js.map} +0 -0
  476. /package/dist/core/{p-6781620e.entry.js.map → p-ad520f36.entry.js.map} +0 -0
  477. /package/dist/core/{p-85dd5e5b.entry.js.map → p-c1e8d13e.entry.js.map} +0 -0
  478. /package/dist/core/{p-ebe76390.js.map → p-c30d9b20.js.map} +0 -0
  479. /package/dist/core/{p-0a30f1e5.entry.js.map → p-ceed0fee.entry.js.map} +0 -0
  480. /package/dist/core/{p-c1859843.entry.js.map → p-cf95dd66.entry.js.map} +0 -0
  481. /package/dist/core/{p-87149cbd.entry.js.map → p-d005a71a.entry.js.map} +0 -0
  482. /package/dist/core/{p-65df7222.entry.js.map → p-d5282ede.entry.js.map} +0 -0
  483. /package/dist/core/{p-4f7c20b3.entry.js.map → p-d9fc7243.entry.js.map} +0 -0
  484. /package/dist/core/{p-16e8bb5a.entry.js.map → p-db4a15bd.entry.js.map} +0 -0
  485. /package/dist/core/{p-c31e6dbb.entry.js.map → p-e59d2d50.entry.js.map} +0 -0
  486. /package/dist/core/{p-e3923b67.entry.js.map → p-e904d985.entry.js.map} +0 -0
@@ -106,6 +106,20 @@ describe("ic-typography component", () => {
106
106
  });
107
107
  expect(page.root).toMatchSnapshot();
108
108
  });
109
+ it("should render badge with badge variant", async () => {
110
+ const page = await newSpecPage({
111
+ components: [Typography],
112
+ html: `<ic-typography variant="badge">IC Typography Test</ic-typography>`,
113
+ });
114
+ expect(page.root).toMatchSnapshot();
115
+ });
116
+ it("should render badge small with badge-small variant", async () => {
117
+ const page = await newSpecPage({
118
+ components: [Typography],
119
+ html: `<ic-typography variant="badge-small">IC Typography Test</ic-typography>`,
120
+ });
121
+ expect(page.root).toMatchSnapshot();
122
+ });
109
123
  it("should render with italic style", async () => {
110
124
  const page = await newSpecPage({
111
125
  components: [Typography],
@@ -1 +1 @@
1
- {"version":3,"file":"ic-typography.spec.js","sourceRoot":"","sources":["../../../../../src/components/ic-typography/test/basic/ic-typography.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;EACvC,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;IACtD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;MACxB,IAAI,EAAE,mDAAmD;KAC1D,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;EACtC,CAAC,CAAC,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port { Typography } from \"../../ic-typography\";\n\ndescribe(\"ic-typography component\", () => {\n it(\"should render with default body styles\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography>IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h1 with h1 variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"h1\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h2 with h2 variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"h2\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h3 with h3 variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"h3\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h4 with h4 variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"h4\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h5 with subtitle-large variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"subtitle-large\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h6 with subtitle-small variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"subtitle-small\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with body variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"body\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render caption variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"caption\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render caption uppercase variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"caption-uppercase\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render label with label variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"label\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render label uppercase with label-uppercase variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"label-uppercase\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render code large with code-large variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"code-large\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render code small with code-small variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"code-small\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render code extra small with code-extra-small variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"code-extra-small\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with italic style\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"body\" italic=\"true\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with bold style\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"body\" bold=\"true\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with strikethrough\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"body\" strikethrough=\"true\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with underline\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"body\" underline=\"true\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should allow semantic component to be passed in and variant styling applied\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"h1\"><h3>IC Typography Test</h3></ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should apply vertical margins class if vertical margins prop true\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography apply-vertical-margins>IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should apply className provided to root element to typography element\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography class=\"test-class\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render the typography with truncation\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n\n page.rootInstance.truncated = true;\n\n await page.waitForChanges();\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should test toggle of see more/less\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.checkMaxLines(96);\n await page.waitForChanges();\n\n expect(page.rootInstance.truncated).toBe(true);\n expect(page.rootInstance.expanded).toBe(false);\n\n const button = page.root.shadowRoot.querySelector(\"button\");\n\n button.click();\n await page.waitForChanges();\n expect(page.rootInstance.expanded).toBe(true);\n\n button.click();\n await page.waitForChanges();\n expect(page.rootInstance.expanded).toBe(false);\n });\n\n it(\"should test truncation applied when number of lines exceeds max\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.checkMaxLines(96);\n await page.waitForChanges();\n\n expect(page.rootInstance.truncated).toBe(true);\n });\n\n it(\"should test checkMarkerPosition\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.truncatedHeight = 300;\n page.rootInstance.checkMarkerPosition(100, 200);\n\n expect(page.rootInstance.truncated).toBe(false);\n expect(page.rootInstance.expanded).toBe(false);\n\n page.rootInstance.checkMarkerPosition(100, 500);\n expect(page.rootInstance.truncated).toBe(true);\n });\n\n it(\"should test truncation button focus\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.truncated = true;\n await page.waitForChanges();\n\n const button = page.root.shadowRoot.querySelector(\"button\");\n button.focus();\n await page.waitForChanges();\n expect(button).toHaveClass(\"focus\");\n\n button.blur();\n await page.waitForChanges();\n expect(button).not.toHaveClass(\"focus\");\n });\n\n it(\"should test truncation button mousedown handler\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.truncated = true;\n await page.waitForChanges();\n\n const button = page.root.shadowRoot.querySelector(\"button\");\n\n const event = new Event(\"mousedown\", {\n bubbles: true,\n cancelable: true,\n });\n\n button.dispatchEvent(event);\n await page.waitForChanges();\n expect(page.rootInstance.focusBtnFromKeyboard).toBe(false);\n\n button.focus();\n await page.waitForChanges();\n expect(button).not.toHaveClass(\"focus\");\n });\n\n it(\"should test resizeObserver\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.el.clientHeight = 96;\n page.rootInstance.el.clientWidth = 200;\n page.rootInstance.resizeObserverCallback();\n expect(page.rootInstance.lastWidth).toBe(undefined);\n expect(page.rootInstance.truncated).toBe(true);\n\n //lastMarkerTop will get overwritten with 0\n page.rootInstance.lastMarkerTop = 120;\n page.rootInstance.resizeObserverCallback();\n expect(page.rootInstance.lastWidth).toBe(200);\n expect(page.rootInstance.lastMarkerTop).toBe(0);\n\n //test lastMarkerTop not overwritten with 0 as widths should match\n page.rootInstance.lastMarkerTop = 120;\n page.rootInstance.resizeObserverCallback();\n expect(page.rootInstance.lastMarkerTop).toBe(120);\n\n //test lastWidth not overwritten as merkerTop should match lastMarkerTop\n page.rootInstance.el.clientWidth = 300;\n page.rootInstance.lastMarkerTop = 0;\n page.rootInstance.resizeObserverCallback();\n expect(page.rootInstance.lastWidth).toBe(200);\n\n //test disconnected callback\n page.setContent(\"\");\n });\n});\n"]}
1
+ {"version":3,"file":"ic-typography.spec.js","sourceRoot":"","sources":["../../../../../src/components/ic-typography/test/basic/ic-typography.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;EACvC,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;IACtD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;MACxB,IAAI,EAAE,mDAAmD;KAC1D,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;EACtC,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,kCAAkC,EAAE,KAAK,IAAI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AC,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAElD,wEAAwE;IACxE,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,WAAW,GAAG,GAAG,CAAC;IACvC,IAAI,CAAC,YAAY,CAAC,aAAa,GAAG,CAAC,CAAC;IACpC,IAAI,CAAC,YAAY,CAAC,sBAAsB,EAAE,CAAC;IAC3C,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE9C,4BAA4B;IAC5B,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;EACtB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from \"@stencil/core/testing\";\nimport { Typography } from \"../../ic-typography\";\n\ndescribe(\"ic-typography component\", () => {\n it(\"should render with default body styles\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography>IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h1 with h1 variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"h1\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h2 with h2 variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"h2\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h3 with h3 variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"h3\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h4 with h4 variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"h4\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h5 with subtitle-large variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"subtitle-large\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render h6 with subtitle-small variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"subtitle-small\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with body variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"body\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render caption variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"caption\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render caption uppercase variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"caption-uppercase\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render label with label variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"label\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render label uppercase with label-uppercase variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"label-uppercase\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render code large with code-large variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"code-large\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render code small with code-small variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"code-small\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render code extra small with code-extra-small variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"code-extra-small\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render badge with badge variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"badge\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render badge small with badge-small variant\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"badge-small\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with italic style\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"body\" italic=\"true\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with bold style\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"body\" bold=\"true\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with strikethrough\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"body\" strikethrough=\"true\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with underline\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"body\" underline=\"true\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should allow semantic component to be passed in and variant styling applied\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography variant=\"h1\"><h3>IC Typography Test</h3></ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should apply vertical margins class if vertical margins prop true\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography apply-vertical-margins>IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should apply className provided to root element to typography element\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography class=\"test-class\">IC Typography Test</ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render the typography with truncation\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n expect(page.root).toMatchSnapshot();\n\n page.rootInstance.truncated = true;\n\n await page.waitForChanges();\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should test toggle of see more/less\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.checkMaxLines(96);\n await page.waitForChanges();\n\n expect(page.rootInstance.truncated).toBe(true);\n expect(page.rootInstance.expanded).toBe(false);\n\n const button = page.root.shadowRoot.querySelector(\"button\");\n\n button.click();\n await page.waitForChanges();\n expect(page.rootInstance.expanded).toBe(true);\n\n button.click();\n await page.waitForChanges();\n expect(page.rootInstance.expanded).toBe(false);\n });\n\n it(\"should test truncation applied when number of lines exceeds max\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.checkMaxLines(96);\n await page.waitForChanges();\n\n expect(page.rootInstance.truncated).toBe(true);\n });\n\n it(\"should test checkMarkerPosition\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.truncatedHeight = 300;\n page.rootInstance.checkMarkerPosition(100, 200);\n\n expect(page.rootInstance.truncated).toBe(false);\n expect(page.rootInstance.expanded).toBe(false);\n\n page.rootInstance.checkMarkerPosition(100, 500);\n expect(page.rootInstance.truncated).toBe(true);\n });\n\n it(\"should test truncation button focus\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.truncated = true;\n await page.waitForChanges();\n\n const button = page.root.shadowRoot.querySelector(\"button\");\n button.focus();\n await page.waitForChanges();\n expect(button).toHaveClass(\"focus\");\n\n button.blur();\n await page.waitForChanges();\n expect(button).not.toHaveClass(\"focus\");\n });\n\n it(\"should test truncation button mousedown handler\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.truncated = true;\n await page.waitForChanges();\n\n const button = page.root.shadowRoot.querySelector(\"button\");\n\n const event = new Event(\"mousedown\", {\n bubbles: true,\n cancelable: true,\n });\n\n button.dispatchEvent(event);\n await page.waitForChanges();\n expect(page.rootInstance.focusBtnFromKeyboard).toBe(false);\n\n button.focus();\n await page.waitForChanges();\n expect(button).not.toHaveClass(\"focus\");\n });\n\n it(\"should test resizeObserver\", async () => {\n const page = await newSpecPage({\n components: [Typography],\n html: `<ic-typography max-lines=\"3\">\n Body of text that is truncated to three lines. Click the 'See more' link to\n expand the text, then click 'See less' to truncate the text once more!\n Dripper caramelization java saucer grounds galão, mocha, and robusta\n kopi-luwak, percolator, instant, qui saucer latte in brewed café au\n lait. Con panna, cup, cream, body americano affogato cup espresso, rich\n milk seasonal saucer grinder spoon that cultivar strong redeye\n frappuccino barista extraction redeye mazagran.\n </ic-typography>`,\n });\n\n page.rootInstance.el.clientHeight = 96;\n page.rootInstance.el.clientWidth = 200;\n page.rootInstance.resizeObserverCallback();\n expect(page.rootInstance.lastWidth).toBe(undefined);\n expect(page.rootInstance.truncated).toBe(true);\n\n //lastMarkerTop will get overwritten with 0\n page.rootInstance.lastMarkerTop = 120;\n page.rootInstance.resizeObserverCallback();\n expect(page.rootInstance.lastWidth).toBe(200);\n expect(page.rootInstance.lastMarkerTop).toBe(0);\n\n //test lastMarkerTop not overwritten with 0 as widths should match\n page.rootInstance.lastMarkerTop = 120;\n page.rootInstance.resizeObserverCallback();\n expect(page.rootInstance.lastMarkerTop).toBe(120);\n\n //test lastWidth not overwritten as merkerTop should match lastMarkerTop\n page.rootInstance.el.clientWidth = 300;\n page.rootInstance.lastMarkerTop = 0;\n page.rootInstance.resizeObserverCallback();\n expect(page.rootInstance.lastWidth).toBe(200);\n\n //test disconnected callback\n page.setContent(\"\");\n });\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAwBA,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;EAC7B,0CAAmB,CAAA;EACnB,sCAAe,CAAA;EACf,0CAAmB,CAAA;AACrB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AAkED,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;EAC/B,4CAAmB,CAAA;EACnB,sCAAa,CAAA;EACb,wCAAe,CAAA;AACjB,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC","sourcesContent":["export type IcFocusableComponents =\n | HTMLIcBreadcrumbElement\n | HTMLIcButtonElement\n | HTMLIcCardElement\n | HTMLIcCheckboxElement\n | HTMLIcChipElement\n | HTMLIcLinkElement\n | HTMLIcNavigationButtonElement\n | HTMLIcNavigationGroupElement\n | HTMLIcNavigationItemElement\n | HTMLIcRadioOptionElement\n | HTMLIcSearchBarElement\n | HTMLIcSelectElement\n | HTMLIcSwitchElement\n | HTMLIcTabElement\n | HTMLIcTextFieldElement;\n\nexport type IcStatusVariants =\n | \"neutral\"\n | \"info\"\n | \"warning\"\n | \"error\"\n | \"success\";\n\nexport 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 IcThemeForegroundNoDefault = \"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 IcColorRGBA = IcColorRGB & {\n a: 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 | \"code-large\"\n | \"code-small\"\n | \"code-extra-small\";\n\n/**\n * @interface IcMenuOption\n * @field {string} A label field to options. Defaults to \"label\", but can have any custom name.\n * @field {string} A value field to options. Defaults to \"value\", but can have any custom name.\n */\nexport interface IcMenuOption {\n description?: string;\n disabled?: boolean;\n recommended?: boolean;\n children?: IcMenuOption[];\n loading?: boolean;\n timedOut?: boolean;\n [key: string]: any;\n element?: {\n component: any;\n ariaLabel: string;\n };\n icon?: any;\n}\n\nexport type IcSearchMatchPositions = \"start\" | \"anywhere\";\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 type IcOrientation = \"horizontal\" | \"vertical\";\n\nexport type IcSizes = \"default\" | \"large\" | \"small\";\n\nexport interface IcValueEventDetail {\n value: string;\n keyPressed?: string;\n}\nexport interface IcBlurEventDetail {\n relatedTarget: IcRelatedTarget;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAwBA,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;EAC7B,0CAAmB,CAAA;EACnB,sCAAe,CAAA;EACf,0CAAmB,CAAA;AACrB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AAoED,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;EAC/B,4CAAmB,CAAA;EACnB,sCAAa,CAAA;EACb,wCAAe,CAAA;AACjB,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC","sourcesContent":["export type IcFocusableComponents =\n | HTMLIcBreadcrumbElement\n | HTMLIcButtonElement\n | HTMLIcCardElement\n | HTMLIcCheckboxElement\n | HTMLIcChipElement\n | HTMLIcLinkElement\n | HTMLIcNavigationButtonElement\n | HTMLIcNavigationGroupElement\n | HTMLIcNavigationItemElement\n | HTMLIcRadioOptionElement\n | HTMLIcSearchBarElement\n | HTMLIcSelectElement\n | HTMLIcSwitchElement\n | HTMLIcTabElement\n | HTMLIcTextFieldElement;\n\nexport type IcStatusVariants =\n | \"neutral\"\n | \"info\"\n | \"warning\"\n | \"error\"\n | \"success\";\n\nexport enum IcInformationStatus {\n Warning = \"warning\",\n Error = \"error\",\n Success = \"success\",\n}\n\nexport type IcSizes = \"default\" | \"large\" | \"small\";\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 IcThemeForegroundNoDefault = \"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 IcColorRGBA = IcColorRGB & {\n a: 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 | \"code-large\"\n | \"code-small\"\n | \"code-extra-small\"\n | \"badge\"\n | \"badge-small\";\n\n/**\n * @interface IcMenuOption\n * @field {string} A label field to options. Defaults to \"label\", but can have any custom name.\n * @field {string} A value field to options. Defaults to \"value\", but can have any custom name.\n */\nexport interface IcMenuOption {\n description?: string;\n disabled?: boolean;\n recommended?: boolean;\n children?: IcMenuOption[];\n loading?: boolean;\n timedOut?: boolean;\n [key: string]: any;\n element?: {\n component: any;\n ariaLabel: string;\n };\n icon?: any;\n}\n\nexport type IcSearchMatchPositions = \"start\" | \"anywhere\";\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 type IcOrientation = \"horizontal\" | \"vertical\";\n\nexport interface IcValueEventDetail {\n value: string;\n keyPressed?: string;\n}\nexport interface IcBlurEventDetail {\n relatedTarget: IcRelatedTarget;\n}\n"]}
@@ -564,6 +564,6 @@ const removeDisabledFalse = (disabled, element) => {
564
564
  }
565
565
  };
566
566
 
567
- export { getNavItemParentDetails as A, getParentElementType as B, getSlotContent as C, DEVICE_SIZES as D, getSlot as E, getFilteredMenuOptions as F, handleHiddenFormButtonClick as G, getLabelFromValue as H, IC_INHERITED_ARIA as I, debounceEvent as J, isEmptyString as K, isMobileOrTablet as L, getCssProperty as M, pxToRem as N, getThemeColorBrightness as O, BLACK_MIN_COLOR_BRIGHTNESS as P, hexToRgba as Q, rgbaStrToObj as R, VARIANT_ICONS as V, WHITE_MAX_COLOR_BRIGHTNESS as W, inheritAttributes as a, onComponentPropUndefinedChange as b, checkResizeObserver as c, getCurrentDeviceSize as d, addFormResetListener as e, removeFormResetListener as f, getThemeFromContext as g, renderHiddenInput as h, isSlotUsed as i, removeHiddenInput as j, getInputDescribedByText as k, hasValidationStatus as l, getInputHelperTextID as m, getInputValidationTextID as n, onComponentRequiredPropUndefined as o, errorIcon as p, slotHasContent as q, removeDisabledFalse as r, successIcon as s, getThemeForegroundColor as t, IC_DEVICE_SIZES as u, hasClassificationBanner as v, warningIcon as w, elementOverflowsX as x, getSlotElements as y, getParentElement as z };
567
+ export { IC_DEVICE_SIZES as A, hasClassificationBanner as B, elementOverflowsX as C, DEVICE_SIZES as D, getSlotElements as E, getNavItemParentDetails as F, getSlotContent as G, getSlot as H, IC_INHERITED_ARIA as I, getFilteredMenuOptions as J, handleHiddenFormButtonClick as K, getLabelFromValue as L, debounceEvent as M, isEmptyString as N, isMobileOrTablet as O, pxToRem as P, getThemeColorBrightness as Q, BLACK_MIN_COLOR_BRIGHTNESS as R, VARIANT_ICONS as V, WHITE_MAX_COLOR_BRIGHTNESS as W, inheritAttributes as a, onComponentPropUndefinedChange as b, checkResizeObserver as c, rgbaStrToObj as d, getCssProperty as e, getParentElement as f, getThemeFromContext as g, hexToRgba as h, isSlotUsed as i, getParentElementType as j, getCurrentDeviceSize as k, addFormResetListener as l, removeFormResetListener as m, renderHiddenInput as n, onComponentRequiredPropUndefined as o, removeHiddenInput as p, getInputDescribedByText as q, removeDisabledFalse as r, hasValidationStatus as s, getInputHelperTextID as t, getInputValidationTextID as u, errorIcon as v, warningIcon as w, successIcon as x, slotHasContent as y, getThemeForegroundColor as z };
568
568
 
569
569
  //# sourceMappingURL=helpers.js.map
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface IcAccordionGroup extends Components.IcAccordionGroup, HTMLElement {}
4
+ export const IcAccordionGroup: {
5
+ prototype: IcAccordionGroup;
6
+ new (): IcAccordionGroup;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,140 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$5 } from './ic-button2.js';
3
+ import { d as defineCustomElement$4 } from './ic-loading-indicator2.js';
4
+ import { d as defineCustomElement$3 } from './ic-tooltip2.js';
5
+ import { d as defineCustomElement$2 } from './ic-typography2.js';
6
+
7
+ const icAccordionGroupCss = "/*! 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}.group-title-container{padding:var(--ic-space-xs);display:flex;justify-content:space-between;align-items:center}:host(.small) .group-title-container{padding:var(--ic-space-xxs) var(--ic-space-xs)}:host(.large) .group-title-container{padding:var(--ic-space-sm) var(--ic-space-xs)}:host(.light){color:var(--ic-architectural-white)}:host(.accordion-group.dark) ::slotted(ic-accordion){color:var(--ic-architectural-white)}";
8
+
9
+ let accordionGroupIds = 0;
10
+ const AccordionGroup = /*@__PURE__*/ proxyCustomElement(class AccordionGroup extends HTMLElement {
11
+ constructor() {
12
+ super();
13
+ this.__registerHost();
14
+ this.__attachShadow();
15
+ this.accordionGroupId = `ic-accordion-group-${accordionGroupIds++}`;
16
+ this.handleExpanded = () => {
17
+ if (this.areAllAccordionsOpen) {
18
+ this.expanded = false;
19
+ this.accordions.forEach((acc) => {
20
+ acc.expanded = this.expanded;
21
+ });
22
+ }
23
+ else {
24
+ this.expanded = true;
25
+ this.accordions.forEach((acc) => {
26
+ acc.expanded = this.expanded;
27
+ });
28
+ }
29
+ this.setExpandedToAreAllAccordionsOpen();
30
+ };
31
+ this.linkAccordions = () => {
32
+ this.accordions.forEach((accordion) => {
33
+ accordion.setAttribute("context-id", this.accordionGroupId);
34
+ });
35
+ };
36
+ this.setExpandedToAreAllAccordionsOpen = () => {
37
+ this.areAllAccordionsOpen = this.accordions.every((accordion) => !!accordion.expanded);
38
+ };
39
+ this.accordions = undefined;
40
+ this.areAllAccordionsOpen = undefined;
41
+ this.appearance = "default";
42
+ this.expanded = false;
43
+ this.groupTitle = "";
44
+ this.singleExpansion = false;
45
+ this.size = "default";
46
+ }
47
+ componentDidLoad() {
48
+ const accordionDirectChildren = this.el.children;
49
+ this.accordions = Array.from(accordionDirectChildren).filter((child) => child.tagName === "IC-ACCORDION");
50
+ this.linkAccordions();
51
+ this.accordions.forEach((acc) => {
52
+ acc.appearance = this.appearance;
53
+ });
54
+ this.accordions.forEach((acc) => {
55
+ acc.size = this.size;
56
+ });
57
+ if (this.expanded) {
58
+ this.accordions.forEach((acc) => {
59
+ acc.expanded = true;
60
+ });
61
+ this.setExpandedToAreAllAccordionsOpen();
62
+ }
63
+ else {
64
+ this.setExpandedToAreAllAccordionsOpen();
65
+ this.expanded = this.areAllAccordionsOpen;
66
+ }
67
+ }
68
+ handleAccordionClicked(event) {
69
+ if (!this.singleExpansion) {
70
+ // 'See all' should be visible until all accordions are open, then 'Hide all' should be visible
71
+ this.setExpandedToAreAllAccordionsOpen();
72
+ }
73
+ else {
74
+ this.accordions.forEach((acc) => {
75
+ if (acc.expanded && event.detail.id !== acc.id) {
76
+ acc.expanded = false;
77
+ }
78
+ });
79
+ }
80
+ }
81
+ render() {
82
+ const { appearance, size, groupTitle, singleExpansion } = this;
83
+ return (h(Host, { "context-id": this.accordionGroupId, class: {
84
+ [`${appearance}`]: true,
85
+ [`${size}`]: true,
86
+ ["accordion-group"]: true,
87
+ } }, h("div", { class: "group-title-container" }, h("ic-typography", { variant: "h4" }, h("h3", null, groupTitle)), !singleExpansion && (h("ic-button", { appearance: appearance === "light" ? "light" : "default", onClick: this.handleExpanded, variant: "tertiary" }, !this.areAllAccordionsOpen ? "See all" : "Hide all"))), h("slot", null)));
88
+ }
89
+ static get delegatesFocus() { return true; }
90
+ get el() { return this; }
91
+ static get style() { return icAccordionGroupCss; }
92
+ }, [17, "ic-accordion-group", {
93
+ "appearance": [1],
94
+ "expanded": [1028],
95
+ "groupTitle": [1, "group-title"],
96
+ "singleExpansion": [4, "single-expansion"],
97
+ "size": [1],
98
+ "accordions": [32],
99
+ "areAllAccordionsOpen": [32]
100
+ }, [[0, "accordionClicked", "handleAccordionClicked"]]]);
101
+ function defineCustomElement$1() {
102
+ if (typeof customElements === "undefined") {
103
+ return;
104
+ }
105
+ const components = ["ic-accordion-group", "ic-button", "ic-loading-indicator", "ic-tooltip", "ic-typography"];
106
+ components.forEach(tagName => { switch (tagName) {
107
+ case "ic-accordion-group":
108
+ if (!customElements.get(tagName)) {
109
+ customElements.define(tagName, AccordionGroup);
110
+ }
111
+ break;
112
+ case "ic-button":
113
+ if (!customElements.get(tagName)) {
114
+ defineCustomElement$5();
115
+ }
116
+ break;
117
+ case "ic-loading-indicator":
118
+ if (!customElements.get(tagName)) {
119
+ defineCustomElement$4();
120
+ }
121
+ break;
122
+ case "ic-tooltip":
123
+ if (!customElements.get(tagName)) {
124
+ defineCustomElement$3();
125
+ }
126
+ break;
127
+ case "ic-typography":
128
+ if (!customElements.get(tagName)) {
129
+ defineCustomElement$2();
130
+ }
131
+ break;
132
+ } });
133
+ }
134
+
135
+ const IcAccordionGroup = AccordionGroup;
136
+ const defineCustomElement = defineCustomElement$1;
137
+
138
+ export { IcAccordionGroup, defineCustomElement };
139
+
140
+ //# sourceMappingURL=ic-accordion-group.js.map
@@ -0,0 +1 @@
1
+ {"file":"ic-accordion-group.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,myFAAmyF;;ACW/zF,IAAI,iBAAiB,GAAG,CAAC,CAAC;MAQb,cAAc;;;;;IACjB,qBAAgB,GAAG,sBAAsB,iBAAiB,EAAE,EAAE,CAAC;IAqE/D,mBAAc,GAAG;MACvB,IAAI,IAAI,CAAC,oBAAoB,EAAE;QAC7B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG;UAC1B,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC9B,CAAC,CAAC;OACJ;WAAM;QACL,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG;UAC1B,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC9B,CAAC,CAAC;OACJ;MACD,IAAI,CAAC,iCAAiC,EAAE,CAAC;KAC1C,CAAC;IAEM,mBAAc,GAAG;MACvB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS;QAChC,SAAS,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;OAC7D,CAAC,CAAC;KACJ,CAAC;IAEM,sCAAiC,GAAG;MAC1C,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAC/C,CAAC,SAAS,KA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E;UAC9C,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;SACtB;OACF,CAAC,CAAC;KACJ;GACF;EA6BD,MAAM;IACJ,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAC/D,QACE,EAAC,IAAI,kBACS,IAAI,CAAC,gBAAgB,EACjC,KAAK,EAAE;QACL,CAAC,GAAG,UAAU,EAAE,GAAG,IAAI;QACvB,CAAC,GAAG,IAAI,EAAE,GAAG,IAAI;QACjB,CAAC,iBAAiB,GAAG,IAAI;OAC1B,IAED,WAAK,KAAK,EAAC,uBAAuB,IAChC,qBAAe,OAAO,EAAC,IAAI,IACzB,cAAK,UAAU,CAAM,CACP,EACf,CAAC,eAAe,KACf,iBACE,UAAU,EAAE,UAAU,KAAK,OAAO,GAAG,OAAO,GAAG,SAAS,EACxD,OAAO,EAAE,IAAI,CAAC,cAAc,EAC5B,OAAO,EAAC,UAAU,IAEjB,CAAC,IAAI,CAAC,oBAAoB,GAAG,SAAS,GAAG,UAAU,CAC1C,CACb,CACG,EACN,eAAa,CACR,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/ic-accordion-group/ic-accordion-group.css?tag=ic-accordion-group&encapsulation=shadow","src/components/ic-accordion-group/ic-accordion-group.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n.group-title-container {\n padding: var(--ic-space-xs);\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n:host(.small) .group-title-container {\n padding: var(--ic-space-xxs) var(--ic-space-xs);\n}\n\n:host(.large) .group-title-container {\n padding: var(--ic-space-sm) var(--ic-space-xs);\n}\n\n:host(.light) {\n color: var(--ic-architectural-white);\n}\n\n:host(.accordion-group.dark) ::slotted(ic-accordion) {\n color: var(--ic-architectural-white);\n}\n","import {\n Component,\n Element,\n h,\n Host,\n Listen,\n Prop,\n State,\n} from \"@stencil/core\";\nimport { IcThemeForeground, IcSizes } from \"../../utils/types\";\n\nlet accordionGroupIds = 0;\n@Component({\n tag: \"ic-accordion-group\",\n styleUrl: \"ic-accordion-group.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class AccordionGroup {\n private accordionGroupId = `ic-accordion-group-${accordionGroupIds++}`;\n\n @Element() el: HTMLIcAccordionGroupElement;\n\n @State() accordions: HTMLIcAccordionElement[];\n\n @State() areAllAccordionsOpen: boolean;\n /**\n * The appearance of the accordion group, e.g dark, or light.\n */\n @Prop() appearance: IcThemeForeground = \"default\";\n\n /**\n * If `true`, the accordion will load in an expanded state.\n */\n @Prop({ mutable: true }) expanded: boolean = false;\n\n /**\n * The header for the accordion group.\n */\n @Prop() groupTitle: string = \"\";\n\n /**\n * If `true`, only one accordion will open at a time.\n */\n @Prop() singleExpansion: boolean = false;\n\n /**\n * The size of the accordion.\n */\n @Prop() size?: IcSizes = \"default\";\n\n componentDidLoad(): void {\n const accordionDirectChildren = (this.el as HTMLElement).children;\n this.accordions = Array.from(accordionDirectChildren).filter(\n (child) => child.tagName === \"IC-ACCORDION\"\n ) as HTMLIcAccordionElement[];\n this.linkAccordions();\n this.accordions.forEach((acc) => {\n acc.appearance = this.appearance;\n });\n this.accordions.forEach((acc) => {\n acc.size = this.size;\n });\n if (this.expanded) {\n this.accordions.forEach((acc) => {\n acc.expanded = true;\n });\n this.setExpandedToAreAllAccordionsOpen();\n } else {\n this.setExpandedToAreAllAccordionsOpen();\n this.expanded = this.areAllAccordionsOpen;\n }\n }\n\n @Listen(\"accordionClicked\")\n handleAccordionClicked(event: CustomEvent): void {\n if (!this.singleExpansion) {\n // 'See all' should be visible until all accordions are open, then 'Hide all' should be visible\n this.setExpandedToAreAllAccordionsOpen();\n } else {\n this.accordions.forEach((acc) => {\n if (acc.expanded && event.detail.id !== acc.id) {\n acc.expanded = false;\n }\n });\n }\n }\n\n private handleExpanded = () => {\n if (this.areAllAccordionsOpen) {\n this.expanded = false;\n this.accordions.forEach((acc) => {\n acc.expanded = this.expanded;\n });\n } else {\n this.expanded = true;\n this.accordions.forEach((acc) => {\n acc.expanded = this.expanded;\n });\n }\n this.setExpandedToAreAllAccordionsOpen();\n };\n\n private linkAccordions = () => {\n this.accordions.forEach((accordion) => {\n accordion.setAttribute(\"context-id\", this.accordionGroupId);\n });\n };\n\n private setExpandedToAreAllAccordionsOpen = () => {\n this.areAllAccordionsOpen = this.accordions.every(\n (accordion) => !!accordion.expanded\n );\n };\n\n render() {\n const { appearance, size, groupTitle, singleExpansion } = this;\n return (\n <Host\n context-id={this.accordionGroupId}\n class={{\n [`${appearance}`]: true,\n [`${size}`]: true,\n [\"accordion-group\"]: true,\n }}\n >\n <div class=\"group-title-container\">\n <ic-typography variant=\"h4\">\n <h3>{groupTitle}</h3>\n </ic-typography>\n {!singleExpansion && (\n <ic-button\n appearance={appearance === \"light\" ? \"light\" : \"default\"}\n onClick={this.handleExpanded}\n variant=\"tertiary\"\n >\n {!this.areAllAccordionsOpen ? \"See all\" : \"Hide all\"}\n </ic-button>\n )}\n </div>\n <slot></slot>\n </Host>\n );\n }\n}\n// add single expansion without title\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface IcAccordion extends Components.IcAccordion, HTMLElement {}
4
+ export const IcAccordion: {
5
+ prototype: IcAccordion;
6
+ new (): IcAccordion;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,146 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { i as isSlotUsed } from './helpers.js';
3
+ import { c as chevronIcon } from './chevron-icon.js';
4
+ import { d as defineCustomElement$2 } from './ic-typography2.js';
5
+
6
+ const icAccordionCss = "/*! 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;border-bottom:var(--ic-border-default)}:host(.light) ic-typography,:host(.light) .expanded-content,:host(.light) .icon-container,:host(.light) .expand-chevron{color:var(--ic-architectural-white)}:host(.disabled) ic-typography,:host(.disabled) .icon-container,:host(.disabled) .expand-chevron{color:var(--ic-architectural-500)}.section-button.small{padding:var(--ic-space-xxs) var(--ic-space-xs)}.section-button.large{padding:var(--ic-space-sm) var(--ic-space-xs)}:host(:first-of-type){border-top:var(--ic-border-default)}:focus{outline:none}.section-button{background-color:transparent;display:flex;align-items:center;width:100%;padding:var(--ic-space-xs);font-weight:var(--ic-font-weight-bold);border:none}.section-header{text-align:left;flex:1 0}button:hover:enabled{background-color:var(--ic-action-dark-bg-hover);cursor:pointer}button:active{background-color:var(--ic-action-dark-bg-active)}button:focus{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast)}button:disabled{pointer-events:none}.icon-container{margin:0 var(--ic-space-xs) 0 0;display:flex;align-items:center;width:var(--ic-space-lg);height:var(--ic-space-lg)}::slotted(svg){width:var(--ic-space-md);height:var(--ic-space-md)}.expand-chevron{width:var(--ic-space-lg);height:var(--ic-space-lg);margin-left:calc(var(--ic-space-xl) + var(--ic-space-xs));transform:rotate(90deg);justify-self:end}.content-expanded-chevron{transform:rotate(-90deg)}.expanded-content{height:0;overflow:hidden;display:flex;flex-direction:column;visibility:var(--ic-expanded-content-visiblity, hidden)}.expanded-content-inner{padding:var(--ic-space-xs)}.expanded-content-opened{overflow:visible}";
7
+
8
+ let accordionIds = 0;
9
+ const Accordion = /*@__PURE__*/ proxyCustomElement(class Accordion extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ this.__registerHost();
13
+ this.__attachShadow();
14
+ this.accordionClicked = createEvent(this, "accordionClicked", 7);
15
+ this.accordionId = `ic-accordion-${accordionIds++}`;
16
+ this.toggleExpanded = () => {
17
+ this.expanded = !this.expanded;
18
+ this.accordionClicked.emit({ id: this.accordionId });
19
+ };
20
+ // Set accordion animation
21
+ this.setAccordionAnimation = (el, duration, property, delay) => {
22
+ el.style.transitionDuration = `${duration}ms`;
23
+ el.style.transitionProperty = property;
24
+ el.style.transitionDelay = delay;
25
+ };
26
+ this.setExpandedContentStyle = (ev, expandedContent) => {
27
+ if (ev.propertyName === "height" && expandedContent.clientHeight > 0) {
28
+ expandedContent.classList.add("expanded-content-opened");
29
+ expandedContent.style.height = "auto";
30
+ }
31
+ };
32
+ this.hideExpandedContent = (ev, expandedContent) => {
33
+ if (ev.propertyName === "height" && expandedContent.clientHeight === 0) {
34
+ expandedContent.style.setProperty("--ic-expanded-content-visiblity", "hidden");
35
+ }
36
+ };
37
+ this.animateExpandedContent = () => {
38
+ const elementHeight = this.expandedContentEl.scrollHeight;
39
+ if (elementHeight > 0 && this.expanded) {
40
+ this.expandedContentEl.style.setProperty("--ic-expanded-content-visiblity", "visible");
41
+ this.expandedContentEl.style.height = `${elementHeight}px`;
42
+ this.setAccordionAnimation(this.expandedContentEl, "300", "height", "ease-out");
43
+ this.expandedContentEl.addEventListener("transitionend", (e) => {
44
+ this.setExpandedContentStyle(e, this.expandedContentEl);
45
+ });
46
+ }
47
+ else if (!this.expanded) {
48
+ this.expandedContentEl.style.height = `${this.expandedContentEl.scrollHeight}px`;
49
+ if (this.expandedContentEl.scrollHeight > 0 && !this.expanded) {
50
+ this.expandedContentEl.style.height = "0";
51
+ this.setAccordionAnimation(this.expandedContentEl, "300", "height", "ease-in");
52
+ this.expandedContentEl.classList.remove("expanded-content-opened");
53
+ }
54
+ this.expandedContentEl.addEventListener("transitionend", (e) => {
55
+ this.hideExpandedContent(e, this.expandedContentEl);
56
+ });
57
+ }
58
+ };
59
+ this.appearance = "default";
60
+ this.disabled = false;
61
+ this.expanded = false;
62
+ this.heading = "";
63
+ this.message = "";
64
+ this.size = "default";
65
+ }
66
+ // Every time expanded is set via toggleExpanded or accordionGroup, animate to open or close
67
+ handleExpandedWatch() {
68
+ this.animateExpandedContent();
69
+ }
70
+ /**
71
+ * Sets focus on accordion heading.
72
+ */
73
+ async setFocus() {
74
+ if (this.accordionBtnHeading) {
75
+ this.accordionBtnHeading.focus();
76
+ }
77
+ }
78
+ disconnectedCallback() {
79
+ if (this.expandedContentEl) {
80
+ this.expandedContentEl.removeEventListener("transitionend", (e) => this.setExpandedContentStyle(e, this.expandedContentEl), true);
81
+ this.expandedContentEl.removeEventListener("transitionend", (e) => this.hideExpandedContent(e, this.expandedContentEl), true);
82
+ }
83
+ }
84
+ componentDidLoad() {
85
+ // So accordion opens by default if expanded set to true
86
+ if (this.expanded) {
87
+ this.expandedContentEl.style.height = "auto";
88
+ }
89
+ }
90
+ render() {
91
+ const { appearance, size, disabled, expanded } = this;
92
+ return (h(Host, { id: this.accordionId, class: {
93
+ [`${appearance}`]: true,
94
+ ["disabled"]: disabled,
95
+ }, "aria-disabled": disabled ? "true" : "false" }, h("button", { ref: (el) => (this.accordionBtnHeading = el), id: `${this.accordionId}-button`, disabled: disabled, tabindex: disabled ? -1 : 0, class: {
96
+ [`${size}`]: true,
97
+ ["section-button"]: true,
98
+ ["section-button-open"]: expanded && !disabled,
99
+ }, "aria-expanded": `${expanded}`, "aria-controls": "expanded-content-area", onClick: this.toggleExpanded }, isSlotUsed(this.el, "icon") && (h("div", { class: "icon-container" }, h("slot", { name: "icon" }))), h("ic-typography", { variant: "subtitle-large", class: "section-header" }, isSlotUsed(this.el, "heading") ? (h("slot", { name: "heading" })) : (this.heading)), h("span", { class: {
100
+ ["expand-chevron"]: true,
101
+ ["content-expanded-chevron"]: expanded && !disabled,
102
+ }, "aria-hidden": "true", innerHTML: chevronIcon })), h("div", { class: {
103
+ ["expanded-content"]: true,
104
+ }, "aria-labelledby": `${this.accordionId}-button`, role: "region", "aria-hidden": `${!expanded}`, id: "expanded-content-area", ref: (el) => (this.expandedContentEl = el) }, h("div", { class: "expanded-content-inner" }, h("slot", null)))));
105
+ }
106
+ get el() { return this; }
107
+ static get watchers() { return {
108
+ "expanded": ["handleExpandedWatch"]
109
+ }; }
110
+ static get style() { return icAccordionCss; }
111
+ }, [1, "ic-accordion", {
112
+ "appearance": [1],
113
+ "disabled": [4],
114
+ "expanded": [1028],
115
+ "heading": [1],
116
+ "message": [1],
117
+ "size": [1],
118
+ "setFocus": [64]
119
+ }, undefined, {
120
+ "expanded": ["handleExpandedWatch"]
121
+ }]);
122
+ function defineCustomElement$1() {
123
+ if (typeof customElements === "undefined") {
124
+ return;
125
+ }
126
+ const components = ["ic-accordion", "ic-typography"];
127
+ components.forEach(tagName => { switch (tagName) {
128
+ case "ic-accordion":
129
+ if (!customElements.get(tagName)) {
130
+ customElements.define(tagName, Accordion);
131
+ }
132
+ break;
133
+ case "ic-typography":
134
+ if (!customElements.get(tagName)) {
135
+ defineCustomElement$2();
136
+ }
137
+ break;
138
+ } });
139
+ }
140
+
141
+ const IcAccordion = Accordion;
142
+ const defineCustomElement = defineCustomElement$1;
143
+
144
+ export { IcAccordion, defineCustomElement };
145
+
146
+ //# sourceMappingURL=ic-accordion.js.map
@@ -0,0 +1 @@
1
+ {"file":"ic-accordion.js","mappings":";;;;;AAAA,MAAM,cAAc,GAAG,4jIAA4jI;;ACenlI,IAAI,YAAY,GAAG,CAAC,CAAC;MAYR,SAAS;;;;;;IACZ,gBAAW,GAAG,gBAAgB,YAAY,EAAE,EAAE,CAAC;IA8E/C,mBAAc,GAAG;MACvB,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;MAC/B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;KACtD,CAAC;;IAGM,0BAAqB,GAAG,CAC9B,EAAe,EACf,QAAgB,EAChB,QAAgB,EAChB,KAAa;MAEb,EAAE,CAAC,KAAK,CAAC,kBAAkB,GAAG,GAAG,QAAQ,IAAI,CAAC;M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EvB,IAAI,CAAC,OAAO,CACb,CACa,EAChB,YACE,KAAK,EAAE;QACL,CAAC,gBAAgB,GAAG,IAAI;QACxB,CAAC,0BAA0B,GAAG,QAAQ,IAAI,CAAC,QAAQ;OACpD,iBACW,MAAM,EAClB,SAAS,EAAE,WAAW,GACtB,CACK,EACT,WACE,KAAK,EAAE;QACL,CAAC,kBAAkB,GAAG,IAAI;OAC3B,qBACgB,GAAG,IAAI,CAAC,WAAW,SAAS,EAC7C,IAAI,EAAC,QAAQ,iBACA,GAAG,CAAC,QAAQ,EAAE,EAC3B,EAAE,EAAC,uBAAuB,EAC1B,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC,IAE1C,WAAK,KAAK,EAAC,wBAAwB,IACjC,eAAQ,CACJ,CACF,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/ic-accordion/ic-accordion.css?tag=ic-accordion&encapsulation=shadow","src/components/ic-accordion/ic-accordion.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n:host {\n display: block;\n border-bottom: var(--ic-border-default);\n}\n\n:host(.light) ic-typography,\n:host(.light) .expanded-content,\n:host(.light) .icon-container,\n:host(.light) .expand-chevron {\n color: var(--ic-architectural-white);\n}\n\n:host(.disabled) ic-typography,\n:host(.disabled) .icon-container,\n:host(.disabled) .expand-chevron {\n color: var(--ic-architectural-500);\n}\n\n.section-button.small {\n padding: var(--ic-space-xxs) var(--ic-space-xs);\n}\n\n.section-button.large {\n padding: var(--ic-space-sm) var(--ic-space-xs);\n}\n\n:host(:first-of-type) {\n border-top: var(--ic-border-default);\n}\n\n:focus {\n outline: none;\n}\n\n.section-button {\n background-color: transparent;\n display: flex;\n align-items: center;\n width: 100%;\n padding: var(--ic-space-xs);\n font-weight: var(--ic-font-weight-bold);\n border: none;\n}\n\n.section-header {\n text-align: left;\n flex: 1 0;\n}\n\nbutton:hover:enabled {\n background-color: var(--ic-action-dark-bg-hover);\n cursor: pointer;\n}\n\nbutton:active {\n background-color: var(--ic-action-dark-bg-active);\n}\n\nbutton:focus {\n box-shadow: var(--ic-border-focus);\n border-radius: var(--ic-border-radius);\n transition: var(--ic-transition-duration-fast);\n}\n\nbutton:disabled {\n pointer-events: none;\n}\n\n.icon-container {\n margin: 0 var(--ic-space-xs) 0 0;\n display: flex;\n align-items: center;\n width: var(--ic-space-lg);\n height: var(--ic-space-lg);\n}\n\n::slotted(svg) {\n width: var(--ic-space-md);\n height: var(--ic-space-md);\n}\n\n.expand-chevron {\n width: var(--ic-space-lg);\n height: var(--ic-space-lg);\n margin-left: calc(var(--ic-space-xl) + var(--ic-space-xs));\n transform: rotate(90deg);\n justify-self: end;\n}\n\n.content-expanded-chevron {\n transform: rotate(-90deg);\n}\n\n.expanded-content {\n height: 0;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n visibility: var(--ic-expanded-content-visiblity, hidden);\n}\n\n.expanded-content-inner {\n padding: var(--ic-space-xs);\n}\n\n.expanded-content-opened {\n overflow: visible;\n}\n","import {\n Component,\n h,\n Prop,\n Element,\n Event,\n EventEmitter,\n Host,\n Watch,\n Method,\n} from \"@stencil/core\";\nimport { isSlotUsed } from \"../../utils/helpers\";\nimport chevronIcon from \"../../assets/chevron-icon.svg\";\nimport { IcThemeForeground, IcSizes } from \"../../utils/types\";\n\nlet accordionIds = 0;\n\n/**\n * @slot heading - Content is placed as the accordion heading.\n * @slot icon - Content is placed to the left of the heading.\n */\n\n@Component({\n tag: \"ic-accordion\",\n styleUrl: \"ic-accordion.css\",\n shadow: true,\n})\nexport class Accordion {\n private accordionId = `ic-accordion-${accordionIds++}`;\n private expandedContentEl: HTMLDivElement;\n private accordionBtnHeading: HTMLButtonElement;\n\n @Element() el: HTMLIcAccordionElement;\n /**\n * @internal Determines whether the light or dark variant of the accordion should be displayed.\n */\n @Prop() appearance?: IcThemeForeground = \"default\";\n\n /**\n * If `true`, the accordion will be disabled.\n */\n @Prop() disabled?: boolean = false;\n\n /**\n * If `true`, the accordion appears expanded.\n */\n @Prop({ mutable: true }) expanded: boolean = false;\n\n /**\n * The section header outlining section content.\n */\n @Prop() heading?: string = \"\";\n\n /**\n * The main body message of the accordion.\n */\n @Prop() message?: string = \"\";\n\n /**\n * The size of the accordion.\n */\n @Prop() size?: IcSizes = \"default\";\n\n /**\n * @internal Emitted when accordion is clicked.\n */\n @Event() accordionClicked: EventEmitter<{ id: string }>;\n\n // Every time expanded is set via toggleExpanded or accordionGroup, animate to open or close\n @Watch(\"expanded\")\n handleExpandedWatch(): void {\n this.animateExpandedContent();\n }\n\n /**\n * Sets focus on accordion heading.\n */\n @Method()\n async setFocus(): Promise<void> {\n if (this.accordionBtnHeading) {\n this.accordionBtnHeading.focus();\n }\n }\n\n disconnectedCallback(): void {\n if (this.expandedContentEl) {\n this.expandedContentEl.removeEventListener(\n \"transitionend\",\n (e) => this.setExpandedContentStyle(e, this.expandedContentEl),\n true\n );\n this.expandedContentEl.removeEventListener(\n \"transitionend\",\n (e) => this.hideExpandedContent(e, this.expandedContentEl),\n true\n );\n }\n }\n\n componentDidLoad(): void {\n // So accordion opens by default if expanded set to true\n if (this.expanded) {\n this.expandedContentEl.style.height = \"auto\";\n }\n }\n\n private toggleExpanded = (): void => {\n this.expanded = !this.expanded;\n this.accordionClicked.emit({ id: this.accordionId });\n };\n\n // Set accordion animation\n private setAccordionAnimation = (\n el: HTMLElement,\n duration: string,\n property: string,\n delay: string\n ) => {\n el.style.transitionDuration = `${duration}ms`;\n el.style.transitionProperty = property;\n el.style.transitionDelay = delay;\n };\n\n private setExpandedContentStyle = (\n ev: TransitionEvent,\n expandedContent: HTMLDivElement\n ) => {\n if (ev.propertyName === \"height\" && expandedContent.clientHeight > 0) {\n expandedContent.classList.add(\"expanded-content-opened\");\n expandedContent.style.height = \"auto\";\n }\n };\n\n private hideExpandedContent = (\n ev: TransitionEvent,\n expandedContent: HTMLDivElement\n ) => {\n if (ev.propertyName === \"height\" && expandedContent.clientHeight === 0) {\n expandedContent.style.setProperty(\n \"--ic-expanded-content-visiblity\",\n \"hidden\"\n );\n }\n };\n\n private animateExpandedContent = () => {\n const elementHeight = this.expandedContentEl.scrollHeight;\n if (elementHeight > 0 && this.expanded) {\n this.expandedContentEl.style.setProperty(\n \"--ic-expanded-content-visiblity\",\n \"visible\"\n );\n this.expandedContentEl.style.height = `${elementHeight}px`;\n this.setAccordionAnimation(\n this.expandedContentEl,\n \"300\",\n \"height\",\n \"ease-out\"\n );\n\n this.expandedContentEl.addEventListener(\n \"transitionend\",\n (e: TransitionEvent) => {\n this.setExpandedContentStyle(e, this.expandedContentEl);\n }\n );\n } else if (!this.expanded) {\n this.expandedContentEl.style.height = `${this.expandedContentEl.scrollHeight}px`;\n if (this.expandedContentEl.scrollHeight > 0 && !this.expanded) {\n this.expandedContentEl.style.height = \"0\";\n this.setAccordionAnimation(\n this.expandedContentEl,\n \"300\",\n \"height\",\n \"ease-in\"\n );\n this.expandedContentEl.classList.remove(\"expanded-content-opened\");\n }\n this.expandedContentEl.addEventListener(\"transitionend\", (e) => {\n this.hideExpandedContent(e, this.expandedContentEl);\n });\n }\n };\n\n render() {\n const { appearance, size, disabled, expanded } = this;\n return (\n <Host\n id={this.accordionId}\n class={{\n [`${appearance}`]: true,\n [\"disabled\"]: disabled,\n }}\n aria-disabled={disabled ? \"true\" : \"false\"}\n >\n <button\n ref={(el) => (this.accordionBtnHeading = el)}\n id={`${this.accordionId}-button`}\n disabled={disabled}\n tabindex={disabled ? -1 : 0}\n class={{\n [`${size}`]: true,\n [\"section-button\"]: true,\n [\"section-button-open\"]: expanded && !disabled,\n }}\n aria-expanded={`${expanded}`}\n aria-controls=\"expanded-content-area\"\n onClick={this.toggleExpanded}\n >\n {isSlotUsed(this.el, \"icon\") && (\n <div class=\"icon-container\">\n <slot name=\"icon\" />\n </div>\n )}\n <ic-typography variant=\"subtitle-large\" class=\"section-header\">\n {isSlotUsed(this.el, \"heading\") ? (\n <slot name=\"heading\" />\n ) : (\n this.heading\n )}\n </ic-typography>\n <span\n class={{\n [\"expand-chevron\"]: true,\n [\"content-expanded-chevron\"]: expanded && !disabled,\n }}\n aria-hidden=\"true\"\n innerHTML={chevronIcon}\n />\n </button>\n <div\n class={{\n [\"expanded-content\"]: true,\n }}\n aria-labelledby={`${this.accordionId}-button`}\n role=\"region\"\n aria-hidden={`${!expanded}`}\n id=\"expanded-content-area\"\n ref={(el) => (this.expandedContentEl = el)}\n >\n <div class=\"expanded-content-inner\">\n <slot />\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -141,6 +141,8 @@ const BackToTop = /*@__PURE__*/ proxyCustomElement(class BackToTop extends HTMLE
141
141
  "bannerOffset": [32],
142
142
  "footerVisible": [32],
143
143
  "targetElVisible": [32]
144
+ }, undefined, {
145
+ "target": ["watchPropHandler"]
144
146
  }]);
145
147
  function defineCustomElement$1() {
146
148
  if (typeof customElements === "undefined") {