@ukic/canary-web-components 3.0.0-canary.16 → 3.0.0-canary.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (617) hide show
  1. package/README.md +19 -0
  2. package/dist/cjs/core.cjs.js +1 -1
  3. package/dist/cjs/{helpers-d01564f7.js → helpers-6f33d131.js} +31 -33
  4. package/dist/cjs/helpers-6f33d131.js.map +1 -0
  5. package/dist/cjs/{helpers-199b92d5.js → helpers-f4e7322b.js} +36 -73
  6. package/dist/cjs/helpers-f4e7322b.js.map +1 -0
  7. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  8. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  10. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-alert.cjs.entry.js +63 -36
  12. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-back-to-top.cjs.entry.js +4 -4
  14. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-badge.cjs.entry.js +41 -17
  16. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +56 -76
  18. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-breadcrumb.cjs.entry.js +32 -51
  20. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-button_3.cjs.entry.js +135 -131
  22. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
  24. package/dist/cjs/ic-card-vertical.cjs.entry.js +6 -6
  25. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ic-checkbox-group.cjs.entry.js +9 -10
  27. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-checkbox_3.cjs.entry.js +38 -37
  29. package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-chip.cjs.entry.js +26 -38
  31. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
  33. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  35. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
  37. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
  39. package/dist/cjs/ic-data-table.cjs.entry.js +15 -19
  40. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-date-input.cjs.entry.js +1 -1
  42. package/dist/cjs/ic-date-picker.cjs.entry.js +1 -1
  43. package/dist/cjs/ic-dialog.cjs.entry.js +3 -3
  44. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-divider.cjs.entry.js +2 -2
  46. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
  48. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
  50. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-footer.cjs.entry.js +4 -4
  52. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-hero.cjs.entry.js +5 -5
  54. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
  56. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
  58. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
  60. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-link.cjs.entry.js +21 -3
  62. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  64. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-menu-item.cjs.entry.js +5 -5
  66. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
  68. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-navigation-group.cjs.entry.js +3 -3
  70. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-navigation-item.cjs.entry.js +12 -7
  72. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
  74. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
  76. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-pagination_4.cjs.entry.js +83 -83
  78. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-popover-menu.cjs.entry.js +8 -7
  80. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
  82. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-radio-option.cjs.entry.js +6 -6
  84. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-search-bar.cjs.entry.js +112 -135
  86. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  88. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-side-navigation.cjs.entry.js +6 -6
  90. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  91. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  92. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ic-skip-link.cjs.entry.js +10 -3
  94. package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  96. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  97. package/dist/cjs/ic-step.cjs.entry.js +15 -15
  98. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  99. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  100. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  101. package/dist/cjs/ic-switch.cjs.entry.js +6 -6
  102. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  103. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  104. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  105. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  106. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  107. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  108. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  109. package/dist/cjs/ic-tab.cjs.entry.js +3 -3
  110. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  111. package/dist/cjs/ic-theme.cjs.entry.js +4 -2
  112. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  113. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  114. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  115. package/dist/cjs/ic-toast.cjs.entry.js +4 -4
  116. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  117. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
  118. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  119. package/dist/cjs/ic-toggle-button.cjs.entry.js +4 -4
  120. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  121. package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -5
  122. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  123. package/dist/cjs/ic-tree-item.cjs.entry.js +8 -3
  124. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
  125. package/dist/cjs/ic-tree-view.cjs.entry.js +7 -6
  126. package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
  127. package/dist/cjs/ic-typography.cjs.entry.js +4 -4
  128. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  129. package/dist/cjs/loader.cjs.js +1 -1
  130. package/dist/collection/components/ic-data-table/ic-data-table.js +14 -18
  131. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  132. package/dist/collection/components/ic-data-table/story-data.js +8 -7
  133. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  134. package/dist/collection/components/ic-tree-item/ic-tree-item.js +23 -2
  135. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
  136. package/dist/collection/components/ic-tree-view/ic-tree-view.js +6 -5
  137. package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
  138. package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js +13 -1
  139. package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
  140. package/dist/collection/utils/constants.js +40 -1
  141. package/dist/collection/utils/constants.js.map +1 -1
  142. package/dist/collection/utils/helpers.js +177 -135
  143. package/dist/collection/utils/helpers.js.map +1 -1
  144. package/dist/collection/utils/types.js.map +1 -1
  145. package/dist/components/helpers.js +36 -73
  146. package/dist/components/helpers.js.map +1 -1
  147. package/dist/components/helpers2.js +30 -32
  148. package/dist/components/helpers2.js.map +1 -1
  149. package/dist/components/ic-accordion-group.js.map +1 -1
  150. package/dist/components/ic-accordion.js.map +1 -1
  151. package/dist/components/ic-alert.js +66 -37
  152. package/dist/components/ic-alert.js.map +1 -1
  153. package/dist/components/ic-back-to-top.js +3 -3
  154. package/dist/components/ic-back-to-top.js.map +1 -1
  155. package/dist/components/ic-badge.js +40 -16
  156. package/dist/components/ic-badge.js.map +1 -1
  157. package/dist/components/ic-breadcrumb-group.js +57 -78
  158. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  159. package/dist/components/ic-breadcrumb2.js +32 -51
  160. package/dist/components/ic-breadcrumb2.js.map +1 -1
  161. package/dist/components/ic-button2.js +105 -126
  162. package/dist/components/ic-button2.js.map +1 -1
  163. package/dist/components/ic-card-vertical.js +5 -5
  164. package/dist/components/ic-card-vertical.js.map +1 -1
  165. package/dist/components/ic-checkbox-group.js +9 -10
  166. package/dist/components/ic-checkbox-group.js.map +1 -1
  167. package/dist/components/ic-checkbox2.js +37 -36
  168. package/dist/components/ic-checkbox2.js.map +1 -1
  169. package/dist/components/ic-chip.js +28 -40
  170. package/dist/components/ic-chip.js.map +1 -1
  171. package/dist/components/ic-classification-banner.js +2 -2
  172. package/dist/components/ic-classification-banner.js.map +1 -1
  173. package/dist/components/ic-data-list.js +2 -2
  174. package/dist/components/ic-data-list.js.map +1 -1
  175. package/dist/components/ic-data-row.js +3 -3
  176. package/dist/components/ic-data-row.js.map +1 -1
  177. package/dist/components/ic-data-table.js +14 -18
  178. package/dist/components/ic-data-table.js.map +1 -1
  179. package/dist/components/ic-dialog.js +2 -2
  180. package/dist/components/ic-dialog.js.map +1 -1
  181. package/dist/components/ic-divider2.js +2 -2
  182. package/dist/components/ic-divider2.js.map +1 -1
  183. package/dist/components/ic-empty-state2.js +2 -2
  184. package/dist/components/ic-empty-state2.js.map +1 -1
  185. package/dist/components/ic-footer-link-group.js +1 -1
  186. package/dist/components/ic-footer-link-group.js.map +1 -1
  187. package/dist/components/ic-footer-link.js +2 -2
  188. package/dist/components/ic-footer-link.js.map +1 -1
  189. package/dist/components/ic-footer.js +4 -4
  190. package/dist/components/ic-footer.js.map +1 -1
  191. package/dist/components/ic-hero.js +5 -5
  192. package/dist/components/ic-hero.js.map +1 -1
  193. package/dist/components/ic-horizontal-scroll2.js +6 -6
  194. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  195. package/dist/components/ic-input-component-container2.js +4 -4
  196. package/dist/components/ic-input-component-container2.js.map +1 -1
  197. package/dist/components/ic-input-container2.js +2 -2
  198. package/dist/components/ic-input-container2.js.map +1 -1
  199. package/dist/components/ic-input-label2.js +5 -5
  200. package/dist/components/ic-input-label2.js.map +1 -1
  201. package/dist/components/ic-input-validation2.js +4 -4
  202. package/dist/components/ic-input-validation2.js.map +1 -1
  203. package/dist/components/ic-link2.js +23 -3
  204. package/dist/components/ic-link2.js.map +1 -1
  205. package/dist/components/ic-loading-indicator2.js +3 -3
  206. package/dist/components/ic-loading-indicator2.js.map +1 -1
  207. package/dist/components/ic-menu-group.js +1 -1
  208. package/dist/components/ic-menu-group.js.map +1 -1
  209. package/dist/components/ic-menu-item2.js +4 -4
  210. package/dist/components/ic-menu-item2.js.map +1 -1
  211. package/dist/components/ic-menu2.js +4 -4
  212. package/dist/components/ic-menu2.js.map +1 -1
  213. package/dist/components/ic-navigation-button.js +2 -2
  214. package/dist/components/ic-navigation-button.js.map +1 -1
  215. package/dist/components/ic-navigation-group.js +3 -3
  216. package/dist/components/ic-navigation-group.js.map +1 -1
  217. package/dist/components/ic-navigation-item.js +12 -7
  218. package/dist/components/ic-navigation-item.js.map +1 -1
  219. package/dist/components/ic-navigation-menu2.js +5 -5
  220. package/dist/components/ic-navigation-menu2.js.map +1 -1
  221. package/dist/components/ic-page-header.js +6 -6
  222. package/dist/components/ic-page-header.js.map +1 -1
  223. package/dist/components/ic-pagination-item2.js +2 -2
  224. package/dist/components/ic-pagination-item2.js.map +1 -1
  225. package/dist/components/ic-pagination2.js +4 -4
  226. package/dist/components/ic-pagination2.js.map +1 -1
  227. package/dist/components/ic-popover-menu.js +7 -6
  228. package/dist/components/ic-popover-menu.js.map +1 -1
  229. package/dist/components/ic-radio-group.js +5 -5
  230. package/dist/components/ic-radio-group.js.map +1 -1
  231. package/dist/components/ic-radio-option.js +6 -6
  232. package/dist/components/ic-radio-option.js.map +1 -1
  233. package/dist/components/ic-search-bar.js +112 -135
  234. package/dist/components/ic-search-bar.js.map +1 -1
  235. package/dist/components/ic-section-container2.js +2 -2
  236. package/dist/components/ic-section-container2.js.map +1 -1
  237. package/dist/components/ic-select2.js +47 -50
  238. package/dist/components/ic-select2.js.map +1 -1
  239. package/dist/components/ic-side-navigation.js +6 -6
  240. package/dist/components/ic-side-navigation.js.map +1 -1
  241. package/dist/components/ic-skeleton.js +2 -2
  242. package/dist/components/ic-skeleton.js.map +1 -1
  243. package/dist/components/ic-skip-link.js +12 -4
  244. package/dist/components/ic-skip-link.js.map +1 -1
  245. package/dist/components/ic-status-tag.js +2 -2
  246. package/dist/components/ic-status-tag.js.map +1 -1
  247. package/dist/components/ic-step.js +14 -14
  248. package/dist/components/ic-step.js.map +1 -1
  249. package/dist/components/ic-stepper.js +3 -3
  250. package/dist/components/ic-stepper.js.map +1 -1
  251. package/dist/components/ic-switch.js +6 -6
  252. package/dist/components/ic-switch.js.map +1 -1
  253. package/dist/components/ic-tab-context.js +1 -1
  254. package/dist/components/ic-tab-context.js.map +1 -1
  255. package/dist/components/ic-tab-group.js +2 -2
  256. package/dist/components/ic-tab-group.js.map +1 -1
  257. package/dist/components/ic-tab-panel.js +2 -2
  258. package/dist/components/ic-tab-panel.js.map +1 -1
  259. package/dist/components/ic-tab.js +2 -2
  260. package/dist/components/ic-tab.js.map +1 -1
  261. package/dist/components/ic-text-field2.js +32 -29
  262. package/dist/components/ic-text-field2.js.map +1 -1
  263. package/dist/components/ic-theme.js +3 -1
  264. package/dist/components/ic-theme.js.map +1 -1
  265. package/dist/components/ic-toast-region.js +1 -1
  266. package/dist/components/ic-toast-region.js.map +1 -1
  267. package/dist/components/ic-toast.js +4 -4
  268. package/dist/components/ic-toast.js.map +1 -1
  269. package/dist/components/ic-toggle-button-group.js +2 -2
  270. package/dist/components/ic-toggle-button-group.js.map +1 -1
  271. package/dist/components/ic-toggle-button.js +3 -3
  272. package/dist/components/ic-toggle-button.js.map +1 -1
  273. package/dist/components/ic-tooltip2.js +30 -2
  274. package/dist/components/ic-tooltip2.js.map +1 -1
  275. package/dist/components/ic-top-navigation.js +5 -5
  276. package/dist/components/ic-top-navigation.js.map +1 -1
  277. package/dist/components/ic-tree-item.js +8 -2
  278. package/dist/components/ic-tree-item.js.map +1 -1
  279. package/dist/components/ic-tree-view.js +6 -5
  280. package/dist/components/ic-tree-view.js.map +1 -1
  281. package/dist/components/ic-typography2.js +3 -3
  282. package/dist/components/ic-typography2.js.map +1 -1
  283. package/dist/core/core.css +160 -110
  284. package/dist/core/core.esm.js +1 -1
  285. package/dist/core/core.esm.js.map +1 -1
  286. package/dist/core/p-09f54ca3.entry.js +2 -0
  287. package/dist/core/p-09f54ca3.entry.js.map +1 -0
  288. package/dist/core/{p-f5e9c8c8.entry.js → p-0a0b25c5.entry.js} +2 -2
  289. package/dist/core/{p-a2fcea60.entry.js → p-0e3a62cc.entry.js} +2 -2
  290. package/dist/core/p-10703715.entry.js +2 -0
  291. package/dist/core/p-10703715.entry.js.map +1 -0
  292. package/dist/core/{p-643a94c2.entry.js → p-1aed572a.entry.js} +2 -2
  293. package/dist/core/{p-643a94c2.entry.js.map → p-1aed572a.entry.js.map} +1 -1
  294. package/dist/core/{p-37df68fe.entry.js → p-1be17f22.entry.js} +2 -2
  295. package/dist/core/{p-37df68fe.entry.js.map → p-1be17f22.entry.js.map} +1 -1
  296. package/dist/core/p-1fd22368.entry.js +2 -0
  297. package/dist/core/{p-ca5d3a21.entry.js.map → p-1fd22368.entry.js.map} +1 -1
  298. package/dist/core/{p-214a48c6.entry.js → p-266686d0.entry.js} +2 -2
  299. package/dist/core/p-266686d0.entry.js.map +1 -0
  300. package/dist/core/{p-2d9c36a6.entry.js → p-33f4abc9.entry.js} +2 -2
  301. package/dist/core/p-33f4abc9.entry.js.map +1 -0
  302. package/dist/core/p-3800cda8.entry.js +2 -0
  303. package/dist/core/p-3800cda8.entry.js.map +1 -0
  304. package/dist/core/{p-336be00c.entry.js → p-45f32fea.entry.js} +2 -2
  305. package/dist/core/p-45f32fea.entry.js.map +1 -0
  306. package/dist/core/{p-fa02a267.entry.js → p-4b6818d9.entry.js} +2 -2
  307. package/dist/core/{p-fa02a267.entry.js.map → p-4b6818d9.entry.js.map} +1 -1
  308. package/dist/core/{p-3ee70c45.entry.js → p-5744b8b3.entry.js} +2 -2
  309. package/dist/core/{p-3ee70c45.entry.js.map → p-5744b8b3.entry.js.map} +1 -1
  310. package/dist/core/{p-f2beca5c.entry.js → p-59bc9fe7.entry.js} +2 -2
  311. package/dist/core/{p-f2beca5c.entry.js.map → p-59bc9fe7.entry.js.map} +1 -1
  312. package/dist/core/{p-858dd362.entry.js → p-5c363e21.entry.js} +2 -2
  313. package/dist/core/p-671acf27.entry.js +2 -0
  314. package/dist/core/p-671acf27.entry.js.map +1 -0
  315. package/dist/core/p-6724039c.entry.js +2 -0
  316. package/dist/core/p-6724039c.entry.js.map +1 -0
  317. package/dist/core/{p-65ddc948.entry.js → p-6e0f4278.entry.js} +2 -2
  318. package/dist/core/p-6e0f4278.entry.js.map +1 -0
  319. package/dist/core/{p-8856dff4.entry.js → p-72c117b6.entry.js} +2 -2
  320. package/dist/core/{p-8856dff4.entry.js.map → p-72c117b6.entry.js.map} +1 -1
  321. package/dist/core/{p-91b8ee39.entry.js → p-7c096c5e.entry.js} +2 -2
  322. package/dist/core/{p-91b8ee39.entry.js.map → p-7c096c5e.entry.js.map} +1 -1
  323. package/dist/core/p-824cbf95.entry.js +2 -0
  324. package/dist/core/p-824cbf95.entry.js.map +1 -0
  325. package/dist/core/p-84daed4d.entry.js +2 -0
  326. package/dist/core/p-84daed4d.entry.js.map +1 -0
  327. package/dist/core/p-8ae0fd6f.entry.js +2 -0
  328. package/dist/core/p-8ae0fd6f.entry.js.map +1 -0
  329. package/dist/core/p-8b5022bc.entry.js +2 -0
  330. package/dist/core/p-8b5022bc.entry.js.map +1 -0
  331. package/dist/core/p-92a969b3.entry.js +2 -0
  332. package/dist/core/p-92a969b3.entry.js.map +1 -0
  333. package/dist/core/{p-a12dd148.entry.js → p-93e154e0.entry.js} +2 -2
  334. package/dist/core/{p-a12dd148.entry.js.map → p-93e154e0.entry.js.map} +1 -1
  335. package/dist/core/p-954959d4.entry.js +2 -0
  336. package/dist/core/p-954959d4.entry.js.map +1 -0
  337. package/dist/core/{p-7b13ccd0.entry.js → p-95868542.entry.js} +2 -2
  338. package/dist/core/{p-7b13ccd0.entry.js.map → p-95868542.entry.js.map} +1 -1
  339. package/dist/core/p-9882c572.entry.js +2 -0
  340. package/dist/core/p-9882c572.entry.js.map +1 -0
  341. package/dist/core/p-9918c411.entry.js +2 -0
  342. package/dist/core/p-9918c411.entry.js.map +1 -0
  343. package/dist/core/{p-110486f0.entry.js → p-9ca147f3.entry.js} +2 -2
  344. package/dist/core/{p-110486f0.entry.js.map → p-9ca147f3.entry.js.map} +1 -1
  345. package/dist/core/{p-5ec11974.entry.js → p-a054bb1b.entry.js} +2 -2
  346. package/dist/core/{p-5ec11974.entry.js.map → p-a054bb1b.entry.js.map} +1 -1
  347. package/dist/core/p-aa83f828.entry.js +2 -0
  348. package/dist/core/p-aa83f828.entry.js.map +1 -0
  349. package/dist/core/{p-9bf0ce9e.entry.js → p-ad390076.entry.js} +2 -2
  350. package/dist/core/{p-9bf0ce9e.entry.js.map → p-ad390076.entry.js.map} +1 -1
  351. package/dist/core/p-ad45f8f8.entry.js +2 -0
  352. package/dist/core/p-ad45f8f8.entry.js.map +1 -0
  353. package/dist/core/{p-bb9142fe.entry.js → p-af1d6e41.entry.js} +2 -2
  354. package/dist/core/{p-cd0dbcea.entry.js → p-b7d117e8.entry.js} +2 -2
  355. package/dist/core/{p-cd0dbcea.entry.js.map → p-b7d117e8.entry.js.map} +1 -1
  356. package/dist/core/{p-1b31a720.entry.js → p-b92e5fb3.entry.js} +2 -2
  357. package/dist/core/{p-1b31a720.entry.js.map → p-b92e5fb3.entry.js.map} +1 -1
  358. package/dist/core/{p-701696aa.entry.js → p-b9459ba2.entry.js} +2 -2
  359. package/dist/core/{p-701696aa.entry.js.map → p-b9459ba2.entry.js.map} +1 -1
  360. package/dist/core/p-b947e4ff.entry.js +2 -0
  361. package/dist/core/p-b947e4ff.entry.js.map +1 -0
  362. package/dist/core/{p-50f4d151.entry.js → p-bc2ca778.entry.js} +2 -2
  363. package/dist/core/{p-50f4d151.entry.js.map → p-bc2ca778.entry.js.map} +1 -1
  364. package/dist/core/{p-19c4cc6c.entry.js → p-bff6fef6.entry.js} +2 -2
  365. package/dist/core/{p-19c4cc6c.entry.js.map → p-bff6fef6.entry.js.map} +1 -1
  366. package/dist/core/p-c472cb32.entry.js +2 -0
  367. package/dist/core/p-c472cb32.entry.js.map +1 -0
  368. package/dist/core/p-cd770df5.entry.js +2 -0
  369. package/dist/core/{p-48465394.entry.js.map → p-cd770df5.entry.js.map} +1 -1
  370. package/dist/core/p-d328f6fc.entry.js +2 -0
  371. package/dist/core/p-d328f6fc.entry.js.map +1 -0
  372. package/dist/core/p-d3d48548.entry.js +2 -0
  373. package/dist/core/p-d3d48548.entry.js.map +1 -0
  374. package/dist/core/{p-071f4748.entry.js → p-df88ff5b.entry.js} +2 -2
  375. package/dist/core/{p-071f4748.entry.js.map → p-df88ff5b.entry.js.map} +1 -1
  376. package/dist/core/p-e38b20bf.entry.js +2 -0
  377. package/dist/core/p-e38b20bf.entry.js.map +1 -0
  378. package/dist/core/{p-ed416362.entry.js → p-e64e27be.entry.js} +2 -2
  379. package/dist/core/{p-ed416362.entry.js.map → p-e64e27be.entry.js.map} +1 -1
  380. package/dist/core/{p-8402fcf7.entry.js → p-e7c00131.entry.js} +2 -2
  381. package/dist/core/p-e7c00131.entry.js.map +1 -0
  382. package/dist/core/{p-5bd43e19.entry.js → p-e9683f52.entry.js} +2 -2
  383. package/dist/core/{p-5bd43e19.entry.js.map → p-e9683f52.entry.js.map} +1 -1
  384. package/dist/core/{p-b88ae211.entry.js → p-ead9900a.entry.js} +2 -2
  385. package/dist/core/{p-b88ae211.entry.js.map → p-ead9900a.entry.js.map} +1 -1
  386. package/dist/core/p-eb74cab5.entry.js +2 -0
  387. package/dist/core/p-eb74cab5.entry.js.map +1 -0
  388. package/dist/core/{p-944ea274.entry.js → p-eb88b348.entry.js} +2 -2
  389. package/dist/core/{p-944ea274.entry.js.map → p-eb88b348.entry.js.map} +1 -1
  390. package/dist/core/p-eca2fea1.js +2 -0
  391. package/dist/core/p-eca2fea1.js.map +1 -0
  392. package/dist/core/p-ed542433.js +2 -0
  393. package/dist/core/p-ed542433.js.map +1 -0
  394. package/dist/core/p-edeb3823.entry.js +2 -0
  395. package/dist/core/p-edeb3823.entry.js.map +1 -0
  396. package/dist/core/{p-91d5efc0.entry.js → p-ef07630d.entry.js} +2 -2
  397. package/dist/core/{p-91d5efc0.entry.js.map → p-ef07630d.entry.js.map} +1 -1
  398. package/dist/core/p-f6141c29.entry.js +2 -0
  399. package/dist/core/p-f6141c29.entry.js.map +1 -0
  400. package/dist/core/{p-b006976c.entry.js → p-f6eaec92.entry.js} +2 -2
  401. package/dist/core/p-f6eaec92.entry.js.map +1 -0
  402. package/dist/core/{p-c3f26b24.entry.js → p-f9a16fa8.entry.js} +2 -2
  403. package/dist/core/{p-c3f26b24.entry.js.map → p-f9a16fa8.entry.js.map} +1 -1
  404. package/dist/core/{p-2c7e9e71.entry.js → p-fb1fce87.entry.js} +2 -2
  405. package/dist/core/{p-2c7e9e71.entry.js.map → p-fb1fce87.entry.js.map} +1 -1
  406. package/dist/core/{p-520dce89.entry.js → p-fb8214a9.entry.js} +2 -2
  407. package/dist/core/p-fb8214a9.entry.js.map +1 -0
  408. package/dist/core/{p-6cfd6b56.entry.js → p-fb8d27fa.entry.js} +2 -2
  409. package/dist/core/{p-6cfd6b56.entry.js.map → p-fb8d27fa.entry.js.map} +1 -1
  410. package/dist/core/{p-123bd8ce.entry.js → p-fbcc2a11.entry.js} +2 -2
  411. package/dist/core/p-fbcc2a11.entry.js.map +1 -0
  412. package/dist/esm/core.js +1 -1
  413. package/dist/esm/{helpers-ddc2008a.js → helpers-0bb68835.js} +31 -33
  414. package/dist/esm/helpers-0bb68835.js.map +1 -0
  415. package/dist/esm/{helpers-9fe45194.js → helpers-fc03923c.js} +37 -74
  416. package/dist/esm/helpers-fc03923c.js.map +1 -0
  417. package/dist/esm/ic-accordion-group.entry.js +1 -1
  418. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  419. package/dist/esm/ic-accordion.entry.js +1 -1
  420. package/dist/esm/ic-accordion.entry.js.map +1 -1
  421. package/dist/esm/ic-alert.entry.js +63 -36
  422. package/dist/esm/ic-alert.entry.js.map +1 -1
  423. package/dist/esm/ic-back-to-top.entry.js +4 -4
  424. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  425. package/dist/esm/ic-badge.entry.js +41 -17
  426. package/dist/esm/ic-badge.entry.js.map +1 -1
  427. package/dist/esm/ic-breadcrumb-group.entry.js +56 -76
  428. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  429. package/dist/esm/ic-breadcrumb.entry.js +32 -51
  430. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  431. package/dist/esm/ic-button_3.entry.js +136 -132
  432. package/dist/esm/ic-button_3.entry.js.map +1 -1
  433. package/dist/esm/ic-card-horizontal.entry.js +1 -1
  434. package/dist/esm/ic-card-vertical.entry.js +6 -6
  435. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  436. package/dist/esm/ic-checkbox-group.entry.js +9 -10
  437. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  438. package/dist/esm/ic-checkbox_3.entry.js +38 -37
  439. package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
  440. package/dist/esm/ic-chip.entry.js +26 -38
  441. package/dist/esm/ic-chip.entry.js.map +1 -1
  442. package/dist/esm/ic-classification-banner.entry.js +2 -2
  443. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  444. package/dist/esm/ic-data-list.entry.js +2 -2
  445. package/dist/esm/ic-data-list.entry.js.map +1 -1
  446. package/dist/esm/ic-data-row.entry.js +3 -3
  447. package/dist/esm/ic-data-row.entry.js.map +1 -1
  448. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  449. package/dist/esm/ic-data-table.entry.js +15 -19
  450. package/dist/esm/ic-data-table.entry.js.map +1 -1
  451. package/dist/esm/ic-date-input.entry.js +1 -1
  452. package/dist/esm/ic-date-picker.entry.js +1 -1
  453. package/dist/esm/ic-dialog.entry.js +3 -3
  454. package/dist/esm/ic-dialog.entry.js.map +1 -1
  455. package/dist/esm/ic-divider.entry.js +2 -2
  456. package/dist/esm/ic-divider.entry.js.map +1 -1
  457. package/dist/esm/ic-footer-link-group.entry.js +2 -2
  458. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  459. package/dist/esm/ic-footer-link.entry.js +3 -3
  460. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  461. package/dist/esm/ic-footer.entry.js +4 -4
  462. package/dist/esm/ic-footer.entry.js.map +1 -1
  463. package/dist/esm/ic-hero.entry.js +5 -5
  464. package/dist/esm/ic-hero.entry.js.map +1 -1
  465. package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
  466. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  467. package/dist/esm/ic-input-component-container_3.entry.js +9 -9
  468. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  469. package/dist/esm/ic-input-label_2.entry.js +8 -8
  470. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  471. package/dist/esm/ic-link.entry.js +21 -3
  472. package/dist/esm/ic-link.entry.js.map +1 -1
  473. package/dist/esm/ic-menu-group.entry.js +2 -2
  474. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  475. package/dist/esm/ic-menu-item.entry.js +5 -5
  476. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  477. package/dist/esm/ic-navigation-button.entry.js +3 -3
  478. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  479. package/dist/esm/ic-navigation-group.entry.js +3 -3
  480. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  481. package/dist/esm/ic-navigation-item.entry.js +12 -7
  482. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  483. package/dist/esm/ic-navigation-menu.entry.js +5 -5
  484. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  485. package/dist/esm/ic-page-header.entry.js +7 -7
  486. package/dist/esm/ic-page-header.entry.js.map +1 -1
  487. package/dist/esm/ic-pagination_4.entry.js +83 -83
  488. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  489. package/dist/esm/ic-popover-menu.entry.js +8 -7
  490. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  491. package/dist/esm/ic-radio-group.entry.js +5 -5
  492. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  493. package/dist/esm/ic-radio-option.entry.js +6 -6
  494. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  495. package/dist/esm/ic-search-bar.entry.js +112 -135
  496. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  497. package/dist/esm/ic-section-container.entry.js +2 -2
  498. package/dist/esm/ic-section-container.entry.js.map +1 -1
  499. package/dist/esm/ic-side-navigation.entry.js +6 -6
  500. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  501. package/dist/esm/ic-skeleton.entry.js +2 -2
  502. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  503. package/dist/esm/ic-skip-link.entry.js +10 -3
  504. package/dist/esm/ic-skip-link.entry.js.map +1 -1
  505. package/dist/esm/ic-status-tag.entry.js +3 -3
  506. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  507. package/dist/esm/ic-step.entry.js +15 -15
  508. package/dist/esm/ic-step.entry.js.map +1 -1
  509. package/dist/esm/ic-stepper.entry.js +3 -3
  510. package/dist/esm/ic-stepper.entry.js.map +1 -1
  511. package/dist/esm/ic-switch.entry.js +6 -6
  512. package/dist/esm/ic-switch.entry.js.map +1 -1
  513. package/dist/esm/ic-tab-context.entry.js +1 -1
  514. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  515. package/dist/esm/ic-tab-group.entry.js +3 -3
  516. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  517. package/dist/esm/ic-tab-panel.entry.js +2 -2
  518. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  519. package/dist/esm/ic-tab.entry.js +3 -3
  520. package/dist/esm/ic-tab.entry.js.map +1 -1
  521. package/dist/esm/ic-theme.entry.js +4 -2
  522. package/dist/esm/ic-theme.entry.js.map +1 -1
  523. package/dist/esm/ic-toast-region.entry.js +1 -1
  524. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  525. package/dist/esm/ic-toast.entry.js +4 -4
  526. package/dist/esm/ic-toast.entry.js.map +1 -1
  527. package/dist/esm/ic-toggle-button-group.entry.js +3 -3
  528. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  529. package/dist/esm/ic-toggle-button.entry.js +4 -4
  530. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  531. package/dist/esm/ic-top-navigation.entry.js +5 -5
  532. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  533. package/dist/esm/ic-tree-item.entry.js +8 -3
  534. package/dist/esm/ic-tree-item.entry.js.map +1 -1
  535. package/dist/esm/ic-tree-view.entry.js +7 -6
  536. package/dist/esm/ic-tree-view.entry.js.map +1 -1
  537. package/dist/esm/ic-typography.entry.js +4 -4
  538. package/dist/esm/ic-typography.entry.js.map +1 -1
  539. package/dist/esm/loader.js +1 -1
  540. package/dist/types/components/ic-data-table/ic-data-table.d.ts +0 -1
  541. package/dist/types/components/ic-data-table/story-data.d.ts +4 -4
  542. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +7 -0
  543. package/dist/types/components.d.ts +5 -0
  544. package/dist/types/utils/constants.d.ts +1 -0
  545. package/dist/types/utils/helpers.d.ts +72 -46
  546. package/dist/types/utils/types.d.ts +32 -7
  547. package/hydrate/index.js +872 -895
  548. package/hydrate/index.mjs +872 -895
  549. package/package.json +4 -4
  550. package/dist/cjs/helpers-199b92d5.js.map +0 -1
  551. package/dist/cjs/helpers-d01564f7.js.map +0 -1
  552. package/dist/core/p-09e8b002.entry.js +0 -2
  553. package/dist/core/p-09e8b002.entry.js.map +0 -1
  554. package/dist/core/p-123bd8ce.entry.js.map +0 -1
  555. package/dist/core/p-12d4803e.entry.js +0 -2
  556. package/dist/core/p-12d4803e.entry.js.map +0 -1
  557. package/dist/core/p-19ecd2a6.entry.js +0 -2
  558. package/dist/core/p-19ecd2a6.entry.js.map +0 -1
  559. package/dist/core/p-1bfead5b.entry.js +0 -2
  560. package/dist/core/p-1bfead5b.entry.js.map +0 -1
  561. package/dist/core/p-214a48c6.entry.js.map +0 -1
  562. package/dist/core/p-236dc1a6.entry.js +0 -2
  563. package/dist/core/p-236dc1a6.entry.js.map +0 -1
  564. package/dist/core/p-2d9c36a6.entry.js.map +0 -1
  565. package/dist/core/p-336be00c.entry.js.map +0 -1
  566. package/dist/core/p-38f612b0.entry.js +0 -2
  567. package/dist/core/p-38f612b0.entry.js.map +0 -1
  568. package/dist/core/p-3cf6ca89.entry.js +0 -2
  569. package/dist/core/p-3cf6ca89.entry.js.map +0 -1
  570. package/dist/core/p-46f64dc5.entry.js +0 -2
  571. package/dist/core/p-46f64dc5.entry.js.map +0 -1
  572. package/dist/core/p-48465394.entry.js +0 -2
  573. package/dist/core/p-520dce89.entry.js.map +0 -1
  574. package/dist/core/p-65ddc948.entry.js.map +0 -1
  575. package/dist/core/p-69f6db9f.entry.js +0 -2
  576. package/dist/core/p-69f6db9f.entry.js.map +0 -1
  577. package/dist/core/p-7d054704.js +0 -2
  578. package/dist/core/p-7d054704.js.map +0 -1
  579. package/dist/core/p-8402fcf7.entry.js.map +0 -1
  580. package/dist/core/p-87c92ab1.entry.js +0 -2
  581. package/dist/core/p-87c92ab1.entry.js.map +0 -1
  582. package/dist/core/p-951669ca.entry.js +0 -2
  583. package/dist/core/p-951669ca.entry.js.map +0 -1
  584. package/dist/core/p-9e5e6070.entry.js +0 -2
  585. package/dist/core/p-9e5e6070.entry.js.map +0 -1
  586. package/dist/core/p-a6031c41.entry.js +0 -2
  587. package/dist/core/p-a6031c41.entry.js.map +0 -1
  588. package/dist/core/p-b006976c.entry.js.map +0 -1
  589. package/dist/core/p-b17f6b1d.entry.js +0 -2
  590. package/dist/core/p-b17f6b1d.entry.js.map +0 -1
  591. package/dist/core/p-b334a20d.entry.js +0 -2
  592. package/dist/core/p-b334a20d.entry.js.map +0 -1
  593. package/dist/core/p-b603b9ef.entry.js +0 -2
  594. package/dist/core/p-b603b9ef.entry.js.map +0 -1
  595. package/dist/core/p-b953b22f.entry.js +0 -2
  596. package/dist/core/p-b953b22f.entry.js.map +0 -1
  597. package/dist/core/p-b9e73154.js +0 -2
  598. package/dist/core/p-b9e73154.js.map +0 -1
  599. package/dist/core/p-c1dbb35b.entry.js +0 -2
  600. package/dist/core/p-c1dbb35b.entry.js.map +0 -1
  601. package/dist/core/p-c1f653d4.entry.js +0 -2
  602. package/dist/core/p-c1f653d4.entry.js.map +0 -1
  603. package/dist/core/p-ca5d3a21.entry.js +0 -2
  604. package/dist/core/p-cda2a461.entry.js +0 -2
  605. package/dist/core/p-cda2a461.entry.js.map +0 -1
  606. package/dist/core/p-f3bb5006.entry.js +0 -2
  607. package/dist/core/p-f3bb5006.entry.js.map +0 -1
  608. package/dist/core/p-fa18f9c6.entry.js +0 -2
  609. package/dist/core/p-fa18f9c6.entry.js.map +0 -1
  610. package/dist/core/p-fb01a001.entry.js +0 -2
  611. package/dist/core/p-fb01a001.entry.js.map +0 -1
  612. package/dist/esm/helpers-9fe45194.js.map +0 -1
  613. package/dist/esm/helpers-ddc2008a.js.map +0 -1
  614. /package/dist/core/{p-f5e9c8c8.entry.js.map → p-0a0b25c5.entry.js.map} +0 -0
  615. /package/dist/core/{p-a2fcea60.entry.js.map → p-0e3a62cc.entry.js.map} +0 -0
  616. /package/dist/core/{p-858dd362.entry.js.map → p-5c363e21.entry.js.map} +0 -0
  617. /package/dist/core/{p-bb9142fe.entry.js.map → p-af1d6e41.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"ic-accordion-group.js","mappings":";;;;;;;AAAA,MAAM,mBAAmB,GAAG,kxFAAkxF,CAAC;AAC/yF,+BAAe,mBAAmB;;ACClC,IAAI,iBAAiB,GAAG,CAAC,CAAC;MAIb,cAAc;IACvB;;;;QACI,IAAI,CAAC,gBAAgB,GAAG,sBAAsB,iBAAiB,EAAE,EAAE,CAAC;;;;QAIpE,IAAI,CAAC,qBAAqB,GAAG,YAAY,CAAC;;;;QAI1C,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;;;;QAIvB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;QAItB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;;;;QAIhB,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;;;;QAI7B,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;QACrB,IAAI,CAAC,cAAc,GAAG;YAClB,IAAI,IAAI,CAAC,oBAAoB,EAAE;gBAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACtB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG;oBACxB,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;iBAChC,CAAC,CAAC;aACN;iBACI;gBACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACrB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG;oBACxB,GAAG,CAAC,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AAC,sBAAsB,IAAI,EAAE,GAAG,IAAI;gBACpC,CAAC,oBAAoB,GAAG,IAAI;gBAC5B,CAAC,YAAY,KAAK,EAAE,GAAG,KAAK,KAAK,SAAS;aAC7C,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,CAAC,CAAC,eAAe,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,eAAe,KAAK,CAAC,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,oBAAoB,EAAE,IAAI,qBAAqB,EAAE,EAAE,EAAE,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE,CAAC,CAAC,EAAE;KAC3pB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../web-components/dist/collection/components/ic-accordion-group/ic-accordion-group.css?tag=ic-accordion-group&encapsulation=shadow","../web-components/dist/collection/components/ic-accordion-group/ic-accordion-group.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n.label-container {\n --ic-typography-color: var(--ic-accordion-group-title-text);\n color: var(--ic-accordion-group-title-text);\n padding: var(--ic-space-xs);\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n:host(.ic-accordion-group-small) .label-container {\n padding: var(--ic-space-xxs) var(--ic-space-xs);\n}\n\n:host(.ic-accordion-group-large) .label-container {\n padding: var(--ic-space-sm) var(--ic-space-xs);\n}\n","import { h, Host, } from \"@stencil/core\";\nimport { isSlotUsed } from \"../../utils/helpers\";\nlet accordionGroupIds = 0;\n/**\n * @slot label - Content is placed as the accordion group title.\n */\nexport class AccordionGroup {\n constructor() {\n this.accordionGroupId = `ic-accordion-group-${accordionGroupIds++}`;\n /**\n * The accessible button label to provide more context to the 'See all/Hide all' button for screen reader users.\n */\n this.accessibleButtonLabel = \"accordions\";\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n this.theme = \"inherit\";\n /**\n * If `true`, the accordion will load in an expanded state.\n */\n this.expanded = false;\n /**\n * The header for the accordion group.\n */\n this.label = \"\";\n /**\n * If `true`, only one accordion will open at a time.\n */\n this.singleExpansion = false;\n /**\n * The size of the accordion.\n */\n this.size = \"medium\";\n this.handleExpanded = () => {\n if (this.areAllAccordionsOpen) {\n this.expanded = false;\n this.accordions.forEach((acc) => {\n acc.expanded = this.expanded;\n });\n }\n else {\n this.expanded = true;\n this.accordions.forEach((acc) => {\n acc.expanded = this.expanded;\n });\n }\n this.setExpandedToAreAllAccordionsOpen();\n };\n this.linkAccordions = () => {\n this.accordions.forEach((accordion) => {\n accordion.setAttribute(\"context-id\", this.accordionGroupId);\n });\n };\n this.setExpandedToAreAllAccordionsOpen = () => {\n this.areAllAccordionsOpen = this.accordions.every((accordion) => !!accordion.expanded);\n };\n this.accordionOpenBtnText = () => {\n return !this.areAllAccordionsOpen ? \"See all\" : \"Hide all\";\n };\n }\n watchThemeHandler() {\n this.accordions.forEach((acc) => {\n acc.theme = this.theme;\n });\n }\n watchExpandedHandler() {\n this.handleExpanded();\n }\n componentDidLoad() {\n const accordionDirectChildren = this.el.children;\n this.accordions = Array.from(accordionDirectChildren).filter((child) => child.tagName === \"IC-ACCORDION\");\n this.linkAccordions();\n this.accordions.forEach((acc) => {\n acc.theme = this.theme;\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 }\n else {\n this.setExpandedToAreAllAccordionsOpen();\n this.expanded = this.areAllAccordionsOpen;\n }\n }\n handleAccordionClicked(event) {\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 }\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 * Sets the focus on first focusable element in the accordion group. If the \"See/Hide all\" button is present, it will be focused.\n * Otherwise, the first accordion will be focused.\n */\n async setFocus() {\n const focusEl = this.singleExpansion\n ? this.accordions[0]\n : this.allButtonEl;\n focusEl === null || focusEl === void 0 ? void 0 : focusEl.setFocus();\n }\n render() {\n const { size, label, singleExpansion, accessibleButtonLabel, theme } = this;\n return (h(Host, { key: 'ec057d7f6e128e8429ebd9e14497a86d1eaf1abe', \"context-id\": this.accordionGroupId, class: {\n [`ic-accordion-group-${size}`]: true,\n [\"ic-accordion-group\"]: true,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n } }, h(\"div\", { key: '86acdf79730dc3d2dcc95a5928e1a1bebf83412f', class: \"label-container\" }, h(\"ic-typography\", { key: '5f2b615ebe87304b410b896d5b102da42ff5bcd6', variant: \"h4\" }, h(\"h3\", { key: '9b33f5f102e27e4268b0edd894d8d725fd8cc5a4' }, isSlotUsed(this.el, \"label\") ? h(\"slot\", { name: \"label\" }) : label)), !singleExpansion && (h(\"ic-button\", { key: '1b8d8332cd10fed2eea6959f02841cb4b1586902', ref: (el) => (this.allButtonEl = el), onClick: this.handleExpanded, variant: \"tertiary\", \"aria-label\": `${this.accordionOpenBtnText()} ${accessibleButtonLabel}` }, this.accordionOpenBtnText()))), h(\"slot\", { key: 'b93775721fd0cc7560115c6bb62824db59b2ea27' })));\n }\n static get is() { return \"ic-accordion-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-accordion-group.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-accordion-group.css\"]\n };\n }\n static get properties() {\n return {\n \"accessibleButtonLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The accessible button label to provide more context to the 'See all/Hide all' button for screen reader users.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"accessible-button-label\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"accordions\\\"\"\n },\n \"theme\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcThemeMode\",\n \"resolved\": \"\\\"dark\\\" | \\\"inherit\\\" | \\\"light\\\" | undefined\",\n \"references\": {\n \"IcThemeMode\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcThemeMode\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the theme color to the dark or light theme color. \\\"inherit\\\" will set the color based on the system settings or ic-theme component.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"theme\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"inherit\\\"\"\n },\n \"expanded\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the accordion will load in an expanded state.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"expanded\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The header for the accordion group.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"label\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"singleExpansion\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, only one accordion will open at a time.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"single-expansion\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcSizes\",\n \"resolved\": \"\\\"large\\\" | \\\"medium\\\" | \\\"small\\\" | undefined\",\n \"references\": {\n \"IcSizes\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcSizes\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the accordion.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"size\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"medium\\\"\"\n }\n };\n }\n static get states() {\n return {\n \"accordions\": {},\n \"areAllAccordionsOpen\": {}\n };\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets the focus on first focusable element in the accordion group. If the \\\"See/Hide all\\\" button is present, it will be focused.\\nOtherwise, the first accordion will be focused.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"theme\",\n \"methodName\": \"watchThemeHandler\"\n }, {\n \"propName\": \"expanded\",\n \"methodName\": \"watchExpandedHandler\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"accordionClicked\",\n \"method\": \"handleAccordionClicked\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n//# sourceMappingURL=ic-accordion-group.js.map\n"],"version":3}
1
+ {"file":"ic-accordion-group.js","mappings":";;;;;;;AAAA,MAAM,mBAAmB,GAAG,kxFAAkxF,CAAC;AAC/yF,+BAAe,mBAAmB;;ACClC,IAAI,iBAAiB,GAAG,CAAC,CAAC;MAIb,cAAc;IACvB;;;;QACI,IAAI,CAAC,gBAAgB,GAAG,sBAAsB,iBAAiB,EAAE,EAAE,CAAC;;;;QAIpE,IAAI,CAAC,qBAAqB,GAAG,YAAY,CAAC;;;;QAI1C,IAAI,CAAC,KAAK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AW,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,oBAAoB,EAAE,IAAI,qBAAqB,EAAE,EAAE,EAAE,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE,CAAC,CAAC,EAAE;KAC3pB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../web-components/dist/collection/components/ic-accordion-group/ic-accordion-group.css?tag=ic-accordion-group&encapsulation=shadow","../web-components/dist/collection/components/ic-accordion-group/ic-accordion-group.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n.label-container {\n --ic-typography-color: var(--ic-accordion-group-title-text);\n\n color: var(--ic-accordion-group-title-text);\n padding: var(--ic-space-xs);\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n:host(.ic-accordion-group-small) .label-container {\n padding: var(--ic-space-xxs) var(--ic-space-xs);\n}\n\n:host(.ic-accordion-group-large) .label-container {\n padding: var(--ic-space-sm) var(--ic-space-xs);\n}\n","import { h, Host, } from \"@stencil/core\";\nimport { isSlotUsed } from \"../../utils/helpers\";\nlet accordionGroupIds = 0;\n/**\n * @slot label - Content is placed as the accordion group title.\n */\nexport class AccordionGroup {\n constructor() {\n this.accordionGroupId = `ic-accordion-group-${accordionGroupIds++}`;\n /**\n * The accessible button label to provide more context to the 'See all/Hide all' button for screen reader users.\n */\n this.accessibleButtonLabel = \"accordions\";\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n this.theme = \"inherit\";\n /**\n * If `true`, the accordion will load in an expanded state.\n */\n this.expanded = false;\n /**\n * The header for the accordion group.\n */\n this.label = \"\";\n /**\n * If `true`, only one accordion will open at a time.\n */\n this.singleExpansion = false;\n /**\n * The size of the accordion.\n */\n this.size = \"medium\";\n this.handleExpanded = () => {\n if (this.areAllAccordionsOpen) {\n this.expanded = false;\n this.accordions.forEach((acc) => {\n acc.expanded = this.expanded;\n });\n }\n else {\n this.expanded = true;\n this.accordions.forEach((acc) => {\n acc.expanded = this.expanded;\n });\n }\n this.setExpandedToAreAllAccordionsOpen();\n };\n this.linkAccordions = () => {\n this.accordions.forEach((accordion) => {\n accordion.setAttribute(\"context-id\", this.accordionGroupId);\n });\n };\n this.setExpandedToAreAllAccordionsOpen = () => {\n this.areAllAccordionsOpen = this.accordions.every((accordion) => !!accordion.expanded);\n };\n this.accordionOpenBtnText = () => {\n return !this.areAllAccordionsOpen ? \"See all\" : \"Hide all\";\n };\n }\n watchThemeHandler() {\n this.accordions.forEach((acc) => {\n acc.theme = this.theme;\n });\n }\n watchExpandedHandler() {\n this.handleExpanded();\n }\n componentDidLoad() {\n const accordionDirectChildren = this.el.children;\n this.accordions = Array.from(accordionDirectChildren).filter((child) => child.tagName === \"IC-ACCORDION\");\n this.linkAccordions();\n this.accordions.forEach((acc) => {\n acc.theme = this.theme;\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 }\n else {\n this.setExpandedToAreAllAccordionsOpen();\n this.expanded = this.areAllAccordionsOpen;\n }\n }\n handleAccordionClicked(event) {\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 }\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 * Sets the focus on first focusable element in the accordion group. If the \"See/Hide all\" button is present, it will be focused.\n * Otherwise, the first accordion will be focused.\n */\n async setFocus() {\n const focusEl = this.singleExpansion\n ? this.accordions[0]\n : this.allButtonEl;\n focusEl === null || focusEl === void 0 ? void 0 : focusEl.setFocus();\n }\n render() {\n const { size, label, singleExpansion, accessibleButtonLabel, theme } = this;\n return (h(Host, { key: 'ec057d7f6e128e8429ebd9e14497a86d1eaf1abe', \"context-id\": this.accordionGroupId, class: {\n [`ic-accordion-group-${size}`]: true,\n [\"ic-accordion-group\"]: true,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n } }, h(\"div\", { key: '86acdf79730dc3d2dcc95a5928e1a1bebf83412f', class: \"label-container\" }, h(\"ic-typography\", { key: '5f2b615ebe87304b410b896d5b102da42ff5bcd6', variant: \"h4\" }, h(\"h3\", { key: '9b33f5f102e27e4268b0edd894d8d725fd8cc5a4' }, isSlotUsed(this.el, \"label\") ? h(\"slot\", { name: \"label\" }) : label)), !singleExpansion && (h(\"ic-button\", { key: '1b8d8332cd10fed2eea6959f02841cb4b1586902', ref: (el) => (this.allButtonEl = el), onClick: this.handleExpanded, variant: \"tertiary\", \"aria-label\": `${this.accordionOpenBtnText()} ${accessibleButtonLabel}` }, this.accordionOpenBtnText()))), h(\"slot\", { key: 'b93775721fd0cc7560115c6bb62824db59b2ea27' })));\n }\n static get is() { return \"ic-accordion-group\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-accordion-group.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-accordion-group.css\"]\n };\n }\n static get properties() {\n return {\n \"accessibleButtonLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The accessible button label to provide more context to the 'See all/Hide all' button for screen reader users.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"accessible-button-label\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"accordions\\\"\"\n },\n \"theme\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcThemeMode\",\n \"resolved\": \"\\\"dark\\\" | \\\"inherit\\\" | \\\"light\\\" | undefined\",\n \"references\": {\n \"IcThemeMode\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcThemeMode\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the theme color to the dark or light theme color. \\\"inherit\\\" will set the color based on the system settings or ic-theme component.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"theme\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"inherit\\\"\"\n },\n \"expanded\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the accordion will load in an expanded state.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"expanded\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The header for the accordion group.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"label\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"singleExpansion\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, only one accordion will open at a time.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"single-expansion\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcSizes\",\n \"resolved\": \"\\\"large\\\" | \\\"medium\\\" | \\\"small\\\" | undefined\",\n \"references\": {\n \"IcSizes\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcSizes\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the accordion.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"size\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"medium\\\"\"\n }\n };\n }\n static get states() {\n return {\n \"accordions\": {},\n \"areAllAccordionsOpen\": {}\n };\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets the focus on first focusable element in the accordion group. If the \\\"See/Hide all\\\" button is present, it will be focused.\\nOtherwise, the first accordion will be focused.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"theme\",\n \"methodName\": \"watchThemeHandler\"\n }, {\n \"propName\": \"expanded\",\n \"methodName\": \"watchExpandedHandler\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"accordionClicked\",\n \"method\": \"handleAccordionClicked\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n//# sourceMappingURL=ic-accordion-group.js.map\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"ic-accordion.js","mappings":";;;;;AAAA,MAAM,cAAc,GAAG,0gJAA0gJ,CAAC;AACliJ,0BAAe,cAAc;;ACE7B,IAAI,YAAY,GAAG,CAAC,CAAC;MAKR,SAAS;IAClB;;;;;QACI,IAAI,CAAC,WAAW,GAAG,gBAAgB,YAAY,EAAE,EAAE,CAAC;QACpD,IAAI,CAAC,2BAA2B,GAAG,kCAAkC,CAAC;;;;QAItE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;QAItB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;QAItB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;;;;QAIlB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;;;;QAIlB,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;;;;QAIrB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG;YAClB,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;YAC/B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;SACxD,CAAC;;QAEF,IAAI,CAAC,qBAAqB,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK;YACvD,EAAE,CAAC,KAAK,CAAC,kBAAkB,GAAG,GAAG,QAAQ,IAAI,CAAC;YAC9C,EAAE,CAAC,KAAK,CAAC,kBAAk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,EAAE,EAAE,EAAE,uBAAuB,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE,KAAK,EAAE,wBAAwB,EAAE,EAAE,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;KACnX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../web-components/dist/collection/components/ic-accordion/ic-accordion.css?tag=ic-accordion&encapsulation=shadow","../web-components/dist/collection/components/ic-accordion/ic-accordion.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n:host {\n display: block;\n border-bottom: var(--ic-space-1px) solid var(--ic-accordion-divider);\n}\n\n:host .expand-chevron {\n color: var(--ic-accordion-chevron);\n}\n\n:host(.ic-accordion-disabled) .expand-chevron {\n color: var(--ic-accordion-chevron-disabled);\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-space-1px) solid var(--ic-accordion-divider);\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 --ic-typography-color: var(--ic-accordion-heading-text);\n color: var(--ic-accordion-heading-text);\n text-align: left;\n flex: 1 0;\n}\n\n:host(.ic-accordion-disabled) .section-header {\n --ic-typography-color: var(--ic-accordion-heading-text-disabled);\n color: var(--ic-accordion-heading-text-disabled);\n}\n\nbutton:hover {\n background-color: var(--ic-accordion-background-hover);\n cursor: pointer;\n}\n\nbutton:active {\n background-color: var(--ic-accordion-background-pressed);\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 color: var(--ic-accordion-icon);\n}\n\n:host(.ic-accordion-disabled) .icon-container {\n color: var(--ic-accordion-icon-disabled);\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 --ic-typography-color: var(--ic-accordion-body-text);\n color: var(--ic-accordion-body-text);\n height: 0;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n visibility: var(--ic-expanded-content-visibility, hidden);\n}\n\n.expanded-content-inner {\n padding: var(--ic-space-xs);\n}\n\n.expanded-content-opened {\n overflow: visible;\n}\n\n@media (forced-colors: active) {\n button:focus {\n border: var(--ic-border-hc) !important;\n }\n}\n","import { h, Host, } from \"@stencil/core\";\nimport { isSlotUsed, removeDisabledFalse } from \"../../utils/helpers\";\nimport chevronIcon from \"../../assets/chevron-icon.svg\";\nlet accordionIds = 0;\n/**\n * @slot heading - Content is placed as the accordion heading.\n * @slot icon - Content is placed to the left of the heading.\n */\nexport class Accordion {\n constructor() {\n this.accordionId = `ic-accordion-${accordionIds++}`;\n this.CONTENT_VISIBILITY_PROPERTY = \"--ic-expanded-content-visibility\";\n /**\n * If `true`, the accordion will be disabled.\n */\n this.disabled = false;\n /**\n * If `true`, the accordion appears expanded.\n */\n this.expanded = false;\n /**\n * The section header outlining section content.\n */\n this.heading = \"\";\n /**\n * The main body message of the accordion.\n */\n this.message = \"\";\n /**\n * The size of the accordion.\n */\n this.size = \"medium\";\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n this.theme = \"inherit\";\n this.toggleExpanded = () => {\n this.expanded = !this.expanded;\n this.accordionClicked.emit({ id: this.accordionId });\n };\n // Set accordion animation\n this.setAccordionAnimation = (el, duration, property, delay) => {\n el.style.transitionDuration = `${duration}ms`;\n el.style.transitionProperty = property;\n el.style.transitionDelay = delay;\n };\n this.setExpandedContentStyle = (ev, expandedContent) => {\n if (ev.propertyName === \"height\" && expandedContent.clientHeight > 0) {\n expandedContent.classList.add(\"expanded-content-opened\");\n expandedContent.style.height = \"auto\";\n }\n };\n this.hideExpandedContent = (ev, expandedContent) => {\n if (ev.propertyName === \"height\" && expandedContent.clientHeight === 0) {\n expandedContent.style.setProperty(this.CONTENT_VISIBILITY_PROPERTY, \"hidden\");\n }\n };\n this.animateExpandedContent = () => {\n if (this.expandedContentEl) {\n const expandedContentEl = this.expandedContentEl;\n const elementHeight = expandedContentEl.scrollHeight;\n if (elementHeight > 0 && this.expanded) {\n expandedContentEl.style.setProperty(this.CONTENT_VISIBILITY_PROPERTY, \"visible\");\n expandedContentEl.style.height = `${elementHeight}px`;\n this.setAccordionAnimation(expandedContentEl, \"300\", \"height\", \"ease-out\");\n expandedContentEl.addEventListener(\"transitionend\", (e) => {\n this.setExpandedContentStyle(e, expandedContentEl);\n });\n }\n else if (!this.expanded) {\n const expandedContentEl = this.expandedContentEl;\n expandedContentEl.style.height = `${expandedContentEl.scrollHeight}px`;\n if (expandedContentEl.scrollHeight > 0 && !this.expanded) {\n expandedContentEl.style.height = \"0\";\n this.setAccordionAnimation(expandedContentEl, \"300\", \"height\", \"ease-in\");\n expandedContentEl.classList.remove(\"expanded-content-opened\");\n }\n expandedContentEl.addEventListener(\"transitionend\", (e) => {\n this.hideExpandedContent(e, expandedContentEl);\n });\n }\n }\n };\n }\n watchDisabledHandler() {\n removeDisabledFalse(this.disabled, this.el);\n }\n // Every time expanded is set via toggleExpanded or accordionGroup, animate to open or close\n handleExpandedWatch() {\n this.animateExpandedContent();\n }\n /**\n * Sets focus on accordion heading.\n */\n async setFocus() {\n var _a;\n (_a = this.accordionBtnHeading) === null || _a === void 0 ? void 0 : _a.focus();\n }\n componentWillLoad() {\n removeDisabledFalse(this.disabled, this.el);\n }\n disconnectedCallback() {\n const expandedContentEl = this.expandedContentEl;\n if (expandedContentEl) {\n expandedContentEl.removeEventListener(\"transitionend\", (e) => this.setExpandedContentStyle(e, expandedContentEl), true);\n expandedContentEl.removeEventListener(\"transitionend\", (e) => this.hideExpandedContent(e, expandedContentEl), true);\n }\n }\n componentDidLoad() {\n // So accordion opens by default if expanded set to true\n if (this.expanded && this.expandedContentEl) {\n this.expandedContentEl.style.height = \"auto\";\n this.expandedContentEl.style.setProperty(this.CONTENT_VISIBILITY_PROPERTY, \"visible\");\n }\n }\n render() {\n const { size, disabled, expanded, theme } = this;\n return (h(Host, { key: '1af99baa1066daa75be1af7329ed0a79a6a7f3cf', id: this.accordionId, class: {\n [\"ic-accordion-disabled\"]: !!disabled,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }, \"aria-disabled\": disabled ? \"true\" : \"false\" }, h(\"button\", { key: '95695d5beebac9e84bc55159d8602182698ece75', ref: (el) => (this.accordionBtnHeading = el), id: `${this.accordionId}-button`, disabled: disabled, tabindex: disabled ? -1 : 0, class: {\n [`${size}`]: true,\n [\"section-button\"]: true,\n [\"section-button-open\"]: !!expanded && !disabled,\n }, \"aria-expanded\": `${expanded}`, \"aria-controls\": \"expanded-content-area\", onClick: this.toggleExpanded }, isSlotUsed(this.el, \"icon\") && (h(\"div\", { key: '274fc2d72fefc6b7f52e4c11fb0dec81055aeb1e', class: \"icon-container\" }, h(\"slot\", { key: 'b8fb45c64beba9a319776080ea7b764aa4a0b9db', name: \"icon\" }))), h(\"ic-typography\", { key: 'c0ca1e3a7f4a8cb7b05a3892eec1db728162db91', variant: \"subtitle-large\", class: \"section-header\" }, isSlotUsed(this.el, \"heading\") ? (h(\"slot\", { name: \"heading\" })) : (this.heading)), h(\"span\", { key: 'c8a70311d3d99114ff1f75c63dbbbbf1077e59c7', class: {\n [\"expand-chevron\"]: true,\n [\"content-expanded-chevron\"]: !!expanded && !disabled,\n }, \"aria-hidden\": \"true\", innerHTML: chevronIcon })), h(\"div\", { key: '2bbae7f78c0a88f767c64fa0849c6c13bd998128', class: {\n [\"expanded-content\"]: true,\n }, \"aria-labelledby\": `${this.accordionId}-button`, role: \"region\", \"aria-hidden\": `${!expanded}`, id: \"expanded-content-area\", ref: (el) => (this.expandedContentEl = el) }, h(\"div\", { key: '49f53a7ceb1a9a13f50542e93445bacd7d9d9a1e', class: \"expanded-content-inner\" }, this.message ? (h(\"ic-typography\", { variant: \"body\" }, this.message)) : (h(\"slot\", null))))));\n }\n static get is() { return \"ic-accordion\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-accordion.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-accordion.css\"]\n };\n }\n static get properties() {\n return {\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the accordion will be disabled.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"disabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"expanded\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the accordion appears expanded.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"expanded\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The section header outlining section content.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"heading\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"message\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main body message of the accordion.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"message\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcSizes\",\n \"resolved\": \"\\\"large\\\" | \\\"medium\\\" | \\\"small\\\" | undefined\",\n \"references\": {\n \"IcSizes\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcSizes\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the accordion.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"size\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"medium\\\"\"\n },\n \"theme\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcThemeMode\",\n \"resolved\": \"\\\"dark\\\" | \\\"inherit\\\" | \\\"light\\\" | undefined\",\n \"references\": {\n \"IcThemeMode\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcThemeMode\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the theme color to the dark or light theme color. \\\"inherit\\\" will set the color based on the system settings or ic-theme component.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"theme\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"inherit\\\"\"\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"accordionClicked\",\n \"name\": \"accordionClicked\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"Emitted when accordion is clicked.\"\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"{ id: string }\",\n \"resolved\": \"{ id: string; }\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on accordion heading.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"disabled\",\n \"methodName\": \"watchDisabledHandler\"\n }, {\n \"propName\": \"expanded\",\n \"methodName\": \"handleExpandedWatch\"\n }];\n }\n}\n//# sourceMappingURL=ic-accordion.js.map\n"],"version":3}
1
+ {"file":"ic-accordion.js","mappings":";;;;;AAAA,MAAM,cAAc,GAAG,0gJAA0gJ,CAAC;AACliJ,0BAAe,cAAc;;ACE7B,IAAI,YAAY,GAAG,CAAC,CAAC;MAKR,SAAS;IAClB;;;;;QACI,IAAI,CAAC,WAAW,GAAG,gBAAgB,YAAY,EAAE,EAAE,CAAC;QACpD,IAAI,CAAC,2BAA2B,GAAG,kCAAkC,CAAC;;;;QAItE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;QAItB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;;;;QAItB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;;;;QAIlB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;;;;QAIlB,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;;;;QAIrB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG;YAClB,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;YAC/B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;SACxD,CAAC;;QAEF,IAAI,CAAC,qBAAqB,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK;YACvD,EAAE,CAAC,KAAK,CAAC,kBAAkB,GAAG,GAAG,QAAQ,IAAI,CAAC;YAC9C,EAAE,CAAC,KAAK,CAAC,kBAAkB,GAAG,QAAQ,CAAC;YACvC,EAAE,CAAC,KAAK,CAAC,eAAe,GAAG,KAAK,CAAC;SACpC,CAAC;QACF,IAAI,CAAC,uBAAuB,GAAG,CAAC,EAAE,EAAE,eAAe;Y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GAAG,EAAE,0CAA0C,EAAE,KAAK,EAAE,wBAAwB,EAAE,EAAE,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;KACnX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../web-components/dist/collection/components/ic-accordion/ic-accordion.css?tag=ic-accordion&encapsulation=shadow","../web-components/dist/collection/components/ic-accordion/ic-accordion.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n:host {\n display: block;\n border-bottom: var(--ic-space-1px) solid var(--ic-accordion-divider);\n}\n\n:host .expand-chevron {\n color: var(--ic-accordion-chevron);\n}\n\n:host(.ic-accordion-disabled) .expand-chevron {\n color: var(--ic-accordion-chevron-disabled);\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-space-1px) solid var(--ic-accordion-divider);\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 --ic-typography-color: var(--ic-accordion-heading-text);\n\n color: var(--ic-accordion-heading-text);\n text-align: left;\n flex: 1 0;\n}\n\n:host(.ic-accordion-disabled) .section-header {\n --ic-typography-color: var(--ic-accordion-heading-text-disabled);\n\n color: var(--ic-accordion-heading-text-disabled);\n}\n\nbutton:hover {\n background-color: var(--ic-accordion-background-hover);\n cursor: pointer;\n}\n\nbutton:active {\n background-color: var(--ic-accordion-background-pressed);\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 color: var(--ic-accordion-icon);\n}\n\n:host(.ic-accordion-disabled) .icon-container {\n color: var(--ic-accordion-icon-disabled);\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 --ic-typography-color: var(--ic-accordion-body-text);\n\n color: var(--ic-accordion-body-text);\n height: 0;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n visibility: var(--ic-expanded-content-visibility, hidden);\n}\n\n.expanded-content-inner {\n padding: var(--ic-space-xs);\n}\n\n.expanded-content-opened {\n overflow: visible;\n}\n\n@media (forced-colors: active) {\n button:focus {\n border: var(--ic-border-hc) !important;\n }\n}\n","import { h, Host, } from \"@stencil/core\";\nimport { isSlotUsed, removeDisabledFalse } from \"../../utils/helpers\";\nimport chevronIcon from \"../../assets/chevron-icon.svg\";\nlet accordionIds = 0;\n/**\n * @slot heading - Content is placed as the accordion heading.\n * @slot icon - Content is placed to the left of the heading.\n */\nexport class Accordion {\n constructor() {\n this.accordionId = `ic-accordion-${accordionIds++}`;\n this.CONTENT_VISIBILITY_PROPERTY = \"--ic-expanded-content-visibility\";\n /**\n * If `true`, the accordion will be disabled.\n */\n this.disabled = false;\n /**\n * If `true`, the accordion appears expanded.\n */\n this.expanded = false;\n /**\n * The section header outlining section content.\n */\n this.heading = \"\";\n /**\n * The main body message of the accordion.\n */\n this.message = \"\";\n /**\n * The size of the accordion.\n */\n this.size = \"medium\";\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n this.theme = \"inherit\";\n this.toggleExpanded = () => {\n this.expanded = !this.expanded;\n this.accordionClicked.emit({ id: this.accordionId });\n };\n // Set accordion animation\n this.setAccordionAnimation = (el, duration, property, delay) => {\n el.style.transitionDuration = `${duration}ms`;\n el.style.transitionProperty = property;\n el.style.transitionDelay = delay;\n };\n this.setExpandedContentStyle = (ev, expandedContent) => {\n if (ev.propertyName === \"height\" && expandedContent.clientHeight > 0) {\n expandedContent.classList.add(\"expanded-content-opened\");\n expandedContent.style.height = \"auto\";\n }\n };\n this.hideExpandedContent = (ev, expandedContent) => {\n if (ev.propertyName === \"height\" && expandedContent.clientHeight === 0) {\n expandedContent.style.setProperty(this.CONTENT_VISIBILITY_PROPERTY, \"hidden\");\n }\n };\n this.animateExpandedContent = () => {\n if (this.expandedContentEl) {\n const expandedContentEl = this.expandedContentEl;\n const elementHeight = expandedContentEl.scrollHeight;\n if (elementHeight > 0 && this.expanded) {\n expandedContentEl.style.setProperty(this.CONTENT_VISIBILITY_PROPERTY, \"visible\");\n expandedContentEl.style.height = `${elementHeight}px`;\n this.setAccordionAnimation(expandedContentEl, \"300\", \"height\", \"ease-out\");\n expandedContentEl.addEventListener(\"transitionend\", (e) => {\n this.setExpandedContentStyle(e, expandedContentEl);\n });\n }\n else if (!this.expanded) {\n const expandedContentEl = this.expandedContentEl;\n expandedContentEl.style.height = `${expandedContentEl.scrollHeight}px`;\n if (expandedContentEl.scrollHeight > 0 && !this.expanded) {\n expandedContentEl.style.height = \"0\";\n this.setAccordionAnimation(expandedContentEl, \"300\", \"height\", \"ease-in\");\n expandedContentEl.classList.remove(\"expanded-content-opened\");\n }\n expandedContentEl.addEventListener(\"transitionend\", (e) => {\n this.hideExpandedContent(e, expandedContentEl);\n });\n }\n }\n };\n }\n watchDisabledHandler() {\n removeDisabledFalse(this.disabled, this.el);\n }\n // Every time expanded is set via toggleExpanded or accordionGroup, animate to open or close\n handleExpandedWatch() {\n this.animateExpandedContent();\n }\n /**\n * Sets focus on accordion heading.\n */\n async setFocus() {\n var _a;\n (_a = this.accordionBtnHeading) === null || _a === void 0 ? void 0 : _a.focus();\n }\n componentWillLoad() {\n removeDisabledFalse(this.disabled, this.el);\n }\n disconnectedCallback() {\n const expandedContentEl = this.expandedContentEl;\n if (expandedContentEl) {\n expandedContentEl.removeEventListener(\"transitionend\", (e) => this.setExpandedContentStyle(e, expandedContentEl), true);\n expandedContentEl.removeEventListener(\"transitionend\", (e) => this.hideExpandedContent(e, expandedContentEl), true);\n }\n }\n componentDidLoad() {\n // So accordion opens by default if expanded set to true\n if (this.expanded && this.expandedContentEl) {\n this.expandedContentEl.style.height = \"auto\";\n this.expandedContentEl.style.setProperty(this.CONTENT_VISIBILITY_PROPERTY, \"visible\");\n }\n }\n render() {\n const { size, disabled, expanded, theme } = this;\n return (h(Host, { key: '1af99baa1066daa75be1af7329ed0a79a6a7f3cf', id: this.accordionId, class: {\n [\"ic-accordion-disabled\"]: !!disabled,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }, \"aria-disabled\": disabled ? \"true\" : \"false\" }, h(\"button\", { key: '95695d5beebac9e84bc55159d8602182698ece75', ref: (el) => (this.accordionBtnHeading = el), id: `${this.accordionId}-button`, disabled: disabled, tabindex: disabled ? -1 : 0, class: {\n [`${size}`]: true,\n [\"section-button\"]: true,\n [\"section-button-open\"]: !!expanded && !disabled,\n }, \"aria-expanded\": `${expanded}`, \"aria-controls\": \"expanded-content-area\", onClick: this.toggleExpanded }, isSlotUsed(this.el, \"icon\") && (h(\"div\", { key: '274fc2d72fefc6b7f52e4c11fb0dec81055aeb1e', class: \"icon-container\" }, h(\"slot\", { key: 'b8fb45c64beba9a319776080ea7b764aa4a0b9db', name: \"icon\" }))), h(\"ic-typography\", { key: 'c0ca1e3a7f4a8cb7b05a3892eec1db728162db91', variant: \"subtitle-large\", class: \"section-header\" }, isSlotUsed(this.el, \"heading\") ? (h(\"slot\", { name: \"heading\" })) : (this.heading)), h(\"span\", { key: 'c8a70311d3d99114ff1f75c63dbbbbf1077e59c7', class: {\n [\"expand-chevron\"]: true,\n [\"content-expanded-chevron\"]: !!expanded && !disabled,\n }, \"aria-hidden\": \"true\", innerHTML: chevronIcon })), h(\"div\", { key: '2bbae7f78c0a88f767c64fa0849c6c13bd998128', class: {\n [\"expanded-content\"]: true,\n }, \"aria-labelledby\": `${this.accordionId}-button`, role: \"region\", \"aria-hidden\": `${!expanded}`, id: \"expanded-content-area\", ref: (el) => (this.expandedContentEl = el) }, h(\"div\", { key: '49f53a7ceb1a9a13f50542e93445bacd7d9d9a1e', class: \"expanded-content-inner\" }, this.message ? (h(\"ic-typography\", { variant: \"body\" }, this.message)) : (h(\"slot\", null))))));\n }\n static get is() { return \"ic-accordion\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-accordion.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-accordion.css\"]\n };\n }\n static get properties() {\n return {\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the accordion will be disabled.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"disabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"expanded\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the accordion appears expanded.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"expanded\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The section header outlining section content.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"heading\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"message\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main body message of the accordion.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"message\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcSizes\",\n \"resolved\": \"\\\"large\\\" | \\\"medium\\\" | \\\"small\\\" | undefined\",\n \"references\": {\n \"IcSizes\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcSizes\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the accordion.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"size\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"medium\\\"\"\n },\n \"theme\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcThemeMode\",\n \"resolved\": \"\\\"dark\\\" | \\\"inherit\\\" | \\\"light\\\" | undefined\",\n \"references\": {\n \"IcThemeMode\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcThemeMode\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the theme color to the dark or light theme color. \\\"inherit\\\" will set the color based on the system settings or ic-theme component.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"theme\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"inherit\\\"\"\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"accordionClicked\",\n \"name\": \"accordionClicked\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"Emitted when accordion is clicked.\"\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"{ id: string }\",\n \"resolved\": \"{ id: string; }\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on accordion heading.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"disabled\",\n \"methodName\": \"watchDisabledHandler\"\n }, {\n \"propName\": \"expanded\",\n \"methodName\": \"handleExpandedWatch\"\n }];\n }\n}\n//# sourceMappingURL=ic-accordion.js.map\n"],"version":3}
@@ -1,12 +1,12 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { c as closeIcon } from './close-icon.js';
3
- import { f as renderDynamicChildSlots, e as IcBrandForegroundEnum, i as isSlotUsed, V as VARIANT_ICONS } from './helpers.js';
3
+ import { f as renderDynamicChildSlots, i as isSlotUsed, p as pxToRem, V as VARIANT_ICONS } from './helpers.js';
4
4
  import { d as defineCustomElement$5 } from './ic-button2.js';
5
5
  import { d as defineCustomElement$4 } from './ic-loading-indicator2.js';
6
6
  import { d as defineCustomElement$3 } from './ic-tooltip2.js';
7
7
  import { d as defineCustomElement$2 } from './ic-typography2.js';
8
8
 
9
- const icAlertCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block}:host ::slotted(ic-typography){--ic-typography-color:var(--ic-alert-description)}.container{min-height:var(--ic-alert-height);border-radius:var(--ic-space-xxs) var(--ic-space-xxxs) var(--ic-space-xxxs)\n var(--ic-space-xxs);position:relative;display:flex;align-items:center}.container-neutral{background-color:var(--ic-alert-background-neutral);border:var(--ic-space-xxxs) solid var(--ic-alert-border-neutral)}.container-info{background-color:var(--ic-alert-background-info);border:var(--ic-space-xxxs) solid var(--ic-alert-border-info)}.container-warning{background-color:var(--ic-alert-background-warning);border:var(--ic-space-xxxs) solid var(--ic-alert-border-warning)}.container-error{background-color:var(--ic-alert-background-error);border:var(--ic-space-xxxs) solid var(--ic-alert-border-error)}.container-success{background-color:var(--ic-alert-background-success);border:var(--ic-space-xxxs) solid var(--ic-alert-border-success)}.alert-icon-container{height:100%;display:flex;align-items:center}.divider{height:100%;width:var(--ic-space-xs);border-radius:var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);position:absolute}.divider-neutral{background-color:var(--ic-alert-status-type-neutral)}.divider-info{background-color:var(--ic-alert-status-type-info)}.divider-warning{background-color:var(--ic-alert-status-type-warning)}.divider-error{background-color:var(--ic-alert-status-type-error)}.divider-success{background-color:var(--ic-alert-status-type-success)}.alert-icon{height:var(--ic-space-lg);width:1.375rem;margin-left:1.125rem}.icon-placeholder{margin-left:var(--ic-space-xs)}.alert-icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}:host([showdefaulticon=\"false\"]) .icon-neutral{visibility:hidden;width:0;margin-left:0.625rem}.icon-neutral>svg,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block;fill:var(--ic-alert-icon-neutral)}:host([variant=\"info\"]) .alert-icon svg{fill:var(--ic-alert-icon-info)}:host([variant=\"warning\"]) .alert-icon svg{fill:var(--ic-alert-icon-warning)}:host([variant=\"error\"]) .alert-icon svg{fill:var(--ic-alert-icon-error)}:host([variant=\"success\"]) .alert-icon svg{fill:var(--ic-alert-icon-success)}.alert-content{display:flex;align-items:center;margin-left:0.625rem;width:100%}.alert-message{display:flex;align-items:center;padding:var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;flex:1;--ic-typography-color:var(--ic-alert-description)}.alert-message-title-above{display:inline}.alert-title{margin-right:var(--ic-space-xs);--ic-typography-color:var(--ic-alert-title)}.alert-title-above{white-space:normal}.alert-action-container{margin-right:var(--ic-space-xs);display:flex;align-items:center}.dismiss-icon{margin-right:var(--ic-space-xxxs);margin-left:-0.375rem;padding:0.375rem;border:none;border-radius:50%;background-color:inherit;display:flex;align-items:center;justify-content:center}.dismiss-icon>svg{color:var(--ic-alert-icon-dismissible)}.dismiss-icon:hover{cursor:pointer}@media (max-width: 628px){.alert-content{display:flex;flex-direction:column;align-items:flex-start}.alert-message{display:flex;flex-direction:column;align-items:flex-start}.alert-title{white-space:normal}.alert-action-container{margin-bottom:var(--ic-space-xs)}}@media (forced-colors: active){.container{border:var(--ic-border-hc)}}";
9
+ const icAlertCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block}:host ::slotted(ic-typography){--ic-typography-color:var(--ic-alert-description)}.container{min-height:var(--ic-alert-min-height);border-radius:var(--ic-space-xxs) var(--ic-space-xxxs) var(--ic-space-xxxs)\n var(--ic-space-xxs);position:relative;display:flex;align-items:center}.container-neutral{background-color:var(--ic-alert-background-neutral);border:var(--ic-space-xxxs) solid var(--ic-alert-border-neutral)}.container-info{background-color:var(--ic-alert-background-info);border:var(--ic-space-xxxs) solid var(--ic-alert-border-info)}.container-warning{background-color:var(--ic-alert-background-warning);border:var(--ic-space-xxxs) solid var(--ic-alert-border-warning)}.container-error{background-color:var(--ic-alert-background-error);border:var(--ic-space-xxxs) solid var(--ic-alert-border-error)}.container-success{background-color:var(--ic-alert-background-success);border:var(--ic-space-xxxs) solid var(--ic-alert-border-success)}.alert-icon-container{height:100%;display:flex;align-items:center}.divider{height:100%;width:var(--ic-space-xs);border-radius:var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);position:absolute}.divider-neutral{background-color:var(--ic-alert-status-type-neutral)}.divider-info{background-color:var(--ic-alert-status-type-info)}.divider-warning{background-color:var(--ic-alert-status-type-warning)}.divider-error{background-color:var(--ic-alert-status-type-error)}.divider-success{background-color:var(--ic-alert-status-type-success)}.alert-icon{height:var(--ic-space-lg);width:1.375rem;margin-left:1.125rem}.icon-placeholder{margin-left:var(--ic-space-xs)}.alert-icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}:host([showdefaulticon=\"false\"]) .icon-neutral{visibility:hidden;width:0;margin-left:0.625rem}.icon-neutral>svg,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block;fill:var(--ic-alert-icon-neutral)}:host([variant=\"info\"]) .alert-icon svg{fill:var(--ic-alert-icon-info)}:host([variant=\"warning\"]) .alert-icon svg{fill:var(--ic-alert-icon-warning)}:host([variant=\"error\"]) .alert-icon svg{fill:var(--ic-alert-icon-error)}:host([variant=\"success\"]) .alert-icon svg{fill:var(--ic-alert-icon-success)}.alert-content{display:flex;align-items:center;margin-left:0.625rem;width:100%}.alert-message{display:flex;align-items:center;padding:var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;flex:1;--ic-typography-color:var(--ic-alert-description)}.alert-message-title-above{display:inline}.alert-title{margin-right:var(--ic-space-xs);--ic-typography-color:var(--ic-alert-title)}.alert-title-above{white-space:normal}.alert-action-container{margin-right:var(--ic-space-xs);display:flex;align-items:center}.dismiss-icon{margin-right:var(--ic-space-xxxs);margin-left:-0.375rem;padding:0.375rem;border:none;border-radius:50%;background-color:inherit;display:flex;align-items:center;justify-content:center}.dismiss-icon>svg{color:var(--ic-alert-icon-dismissible)}.dismiss-icon:hover{cursor:pointer}@media (max-width: 628px){.alert-content{display:flex;flex-direction:column;align-items:flex-start}.alert-message{display:flex;flex-direction:column;align-items:flex-start}.alert-title{white-space:normal}.alert-action-container{margin-bottom:var(--ic-space-xs)}}@media (forced-colors: active){.container{border:var(--ic-border-hc)}}";
10
10
  const IcAlertStyle0 = icAlertCss;
11
11
 
12
12
  const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
@@ -16,6 +16,8 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
16
16
  this.__attachShadow();
17
17
  this.icDismiss = createEvent(this, "icDismiss", 7);
18
18
  this.hostMutationObserver = null;
19
+ this.systemThemeObserver = null;
20
+ this.darkMode = false;
19
21
  this.alertTitleWrap = false;
20
22
  this.visible = true;
21
23
  /**
@@ -49,58 +51,83 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
49
51
  this.dismissAction = () => {
50
52
  this.icDismiss.emit();
51
53
  };
54
+ this.calculateMinHeight = () => {
55
+ var _a;
56
+ const contentHeight = Number((_a = this.messageEl) === null || _a === void 0 ? void 0 : _a.clientHeight);
57
+ const minHeight = pxToRem(`${(contentHeight > 40 ? contentHeight : 52) + (this.darkMode ? 0 : 4)}`);
58
+ if (this.el.style.getPropertyValue("--ic-alert-min-height") !== minHeight)
59
+ this.el.style.setProperty("--ic-alert-min-height", minHeight);
60
+ };
61
+ }
62
+ themeChangeHandler() {
63
+ if (this.theme !== "inherit")
64
+ this.darkMode = this.theme === "dark";
52
65
  }
53
66
  disconnectedCallback() {
54
- var _a;
67
+ var _a, _b;
55
68
  (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
69
+ (_b = this.systemThemeObserver) === null || _b === void 0 ? void 0 : _b.removeEventListener("change", this.darkModeChangeHandler);
70
+ }
71
+ componentWillLoad() {
72
+ if (!this.el.closest("ic-theme")) {
73
+ this.systemThemeObserver = window.matchMedia("(prefers-color-scheme: dark)");
74
+ this.systemThemeObserver.addEventListener("change", this.darkModeChangeHandler);
75
+ this.darkMode = this.systemThemeObserver.matches;
76
+ }
77
+ this.themeChangeHandler();
56
78
  }
57
79
  componentDidLoad() {
58
- this.alertTitleShouldWrap();
80
+ var _a;
81
+ if (Number((_a = this.titleEl) === null || _a === void 0 ? void 0 : _a.clientHeight) > 24)
82
+ this.alertTitleWrap = true;
59
83
  this.hostMutationObserver = new MutationObserver((mutationList) => renderDynamicChildSlots(mutationList, "action", this));
60
84
  this.hostMutationObserver.observe(this.el, {
61
85
  childList: true,
62
86
  });
87
+ this.calculateMinHeight();
88
+ }
89
+ componentDidUpdate() {
90
+ this.calculateMinHeight();
63
91
  }
64
92
  handleClick() {
65
93
  this.visible = !this.visible;
66
94
  }
67
- alertTitleShouldWrap() {
68
- var _a, _b;
69
- const titleHeight = (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".alert-title")) === null || _b === void 0 ? void 0 : _b.clientHeight;
70
- if (titleHeight && titleHeight > 24)
71
- this.alertTitleWrap = true;
95
+ darkModeChangeHandler(ev) {
96
+ this.darkMode = "detail" in ev ? ev.detail === "dark" : ev.matches;
97
+ this.calculateMinHeight();
72
98
  }
73
99
  render() {
74
- const { variant, heading, message, titleAbove, dismissible, announced, visible, showDefaultIcon, theme, } = this;
75
- return (visible && (h(Host, { key: '335bc190a85988d6dd90dee36bc452a249159889', role: announced ? "alert" : null, class: {
76
- [IcBrandForegroundEnum.Dark]: true,
77
- [`ic-theme-${theme}`]: theme !== "inherit",
78
- } }, h("div", { key: 'e856d3193d274c465ff36bcbda07d7d32f005672', class: {
79
- ["container"]: true,
80
- [`container-${variant}`]: true,
81
- } }, h("div", { key: '2ce18b9ad21036175efac411f6f975c042d1b262', class: "alert-icon-container" }, h("div", { key: 'd472ee06999d1f7ac81e4f17b7d951ad0d014c5f', class: {
82
- ["divider"]: true,
83
- [`divider-${variant}`]: true,
84
- } }), variant === "neutral" ? (isSlotUsed(this.el, "neutral-icon") ? (h("div", { class: "alert-icon svg-container icon-neutral" }, h("slot", { name: "neutral-icon" }))) : showDefaultIcon ? (h("span", { class: {
85
- ["alert-icon"]: true,
86
- ["svg-container"]: true,
87
- [`icon-${variant}`]: true,
88
- }, innerHTML: VARIANT_ICONS[variant].icon })) : (h("div", { class: "icon-placeholder" }))) : (h("span", { class: {
89
- ["alert-icon"]: true,
90
- ["svg-container"]: true,
100
+ const { variant, heading, message, titleAbove, dismissible, announced, visible, showDefaultIcon, theme, alertTitleWrap, dismissAction, } = this;
101
+ const Icon = () => {
102
+ const iconClass = {
103
+ "alert-icon": true,
104
+ "svg-container": true,
91
105
  [`icon-${variant}`]: true,
92
- }, innerHTML: VARIANT_ICONS[variant].icon }))), h("div", { key: 'd83902cf13b0e0de71ac43e725bab061e55dc7a4', class: "alert-content" }, h("div", { key: '8d85d750bee6bc70c6d8e8d6de15ab1244f61d67', class: {
93
- ["alert-message"]: true,
94
- ["alert-message-title-above"]: titleAbove || this.alertTitleWrap,
95
- } }, heading && (h("ic-typography", { key: '597ee8eedb36fa6b5fd311d939fbf6f2ce6efd35', class: {
96
- ["alert-title"]: true,
97
- ["alert-title-above"]: titleAbove || this.alertTitleWrap,
98
- }, variant: "subtitle-large" }, h("p", { key: 'b5a69877cd2d3d4d94c47084a2b7cb739c080b2e' }, heading))), h("slot", { key: 'f6b20259578c375633dff1a24d115500308766d6', name: "message" }, h("ic-typography", { key: '895813c7be5ddc2150f3fda932b69c5da684d460', variant: "body" }, message))), isSlotUsed(this.el, "action") && (h("div", { key: 'b18a1d6e25cc46771f33a09ca956fdcd64d407af', class: "alert-action-container" }, h("slot", { key: '05841b13b776380a6f52cd5cc1a8328df8de7407', name: "action" })))), h("div", { key: 'd58ecb605da9c1fe4b9931abc2bc95ce7aeb8074', class: "dismiss-icon-container" }, dismissible && (h("ic-button", { key: 'd9268c63861f40c897da738994cc35cae1244546', class: {
99
- ["svg-container"]: true,
100
- ["dismiss-icon"]: true,
101
- }, innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon", theme: "dark", title: "Dismiss" })))))));
106
+ };
107
+ if (variant === "neutral") {
108
+ if (isSlotUsed(this.el, "neutral-icon")) {
109
+ return (h("div", { class: iconClass }, h("slot", { name: "neutral-icon" })));
110
+ }
111
+ else if (!showDefaultIcon) {
112
+ return h("div", { class: "icon-placeholder" });
113
+ }
114
+ }
115
+ return (h("span", { class: iconClass, innerHTML: VARIANT_ICONS[variant].icon }));
116
+ };
117
+ return (visible && (h(Host, { role: announced ? "alert" : null, class: {
118
+ [`ic-theme-${theme}`]: theme !== "inherit",
119
+ } }, h("div", { class: { container: true, [`container-${variant}`]: true } }, h("div", { class: "alert-icon-container" }, h("div", { class: { divider: true, [`divider-${variant}`]: true } }), h(Icon, null)), h("div", { class: "alert-content" }, h("div", { class: {
120
+ "alert-message": true,
121
+ "alert-message-title-above": titleAbove || alertTitleWrap,
122
+ }, ref: (el) => (this.messageEl = el) }, heading && (h("ic-typography", { class: {
123
+ "alert-title": true,
124
+ "alert-title-above": titleAbove || alertTitleWrap,
125
+ }, variant: "subtitle-large", ref: (el) => (this.titleEl = el) }, h("p", null, heading))), h("slot", { name: "message" }, h("ic-typography", { variant: "body" }, message))), isSlotUsed(this.el, "action") && (h("div", { class: "alert-action-container" }, h("slot", { name: "action" })))), h("div", { class: "dismiss-icon-container" }, dismissible && (h("ic-button", { class: { "svg-container": true, "dismiss-icon": true }, innerHTML: closeIcon, onClick: dismissAction, variant: "icon", theme: "dark", title: "Dismiss" })))))));
102
126
  }
103
127
  get el() { return this; }
128
+ static get watchers() { return {
129
+ "theme": ["themeChangeHandler"]
130
+ }; }
104
131
  static get style() { return IcAlertStyle0; }
105
132
  }, [1, "ic-alert", {
106
133
  "announced": [4],
@@ -113,7 +140,9 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
113
140
  "variant": [1],
114
141
  "alertTitleWrap": [32],
115
142
  "visible": [32]
116
- }, [[2, "icDismiss", "handleClick"]]]);
143
+ }, [[2, "icDismiss", "handleClick"], [6, "icThemeChange", "darkModeChangeHandler"]], {
144
+ "theme": ["themeChangeHandler"]
145
+ }]);
117
146
  function defineCustomElement$1() {
118
147
  if (typeof customElements === "undefined") {
119
148
  return;