@ukic/canary-web-components 2.0.0-canary.20 → 2.0.0-canary.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (355) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-73d277d1.js → helpers-081d6031.js} +4 -2
  3. package/dist/cjs/helpers-081d6031.js.map +1 -0
  4. package/dist/cjs/{helpers-fc9441f8.js → helpers-261701cd.js} +81 -1
  5. package/dist/cjs/helpers-261701cd.js.map +1 -0
  6. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  7. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  8. package/dist/cjs/ic-alert.cjs.entry.js +17 -1
  9. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  11. package/dist/cjs/ic-badge.cjs.entry.js +1 -1
  12. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  13. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  14. package/dist/cjs/ic-button_3.cjs.entry.js +1 -1
  15. package/dist/cjs/ic-card-horizontal.cjs.entry.js +131 -0
  16. package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -0
  17. package/dist/cjs/ic-card.cjs.entry.js +25 -1
  18. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-checkbox-group.cjs.entry.js +1 -1
  20. package/dist/cjs/ic-checkbox.cjs.entry.js +1 -1
  21. package/dist/cjs/ic-chip.cjs.entry.js +1 -1
  22. package/dist/cjs/ic-classification-banner.cjs.entry.js +12 -3
  23. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  25. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-data-table.cjs.entry.js +1 -1
  27. package/dist/cjs/ic-date-input.cjs.entry.js +1 -1
  28. package/dist/cjs/ic-date-picker.cjs.entry.js +11 -4
  29. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  32. package/dist/cjs/ic-empty-state_2.cjs.entry.js +21 -2
  33. package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  35. package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
  36. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  37. package/dist/cjs/ic-hero.cjs.entry.js +17 -1
  38. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +1 -1
  40. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +1 -1
  41. package/dist/cjs/ic-link.cjs.entry.js +1 -1
  42. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  43. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  44. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +1 -1
  45. package/dist/cjs/ic-menu.cjs.entry.js +1 -1
  46. package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
  47. package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
  48. package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
  49. package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
  50. package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
  51. package/dist/cjs/ic-pagination_4.cjs.entry.js +1 -1
  52. package/dist/cjs/ic-popover-menu.cjs.entry.js +1 -1
  53. package/dist/cjs/ic-radio-group.cjs.entry.js +1 -1
  54. package/dist/cjs/ic-radio-option.cjs.entry.js +1 -1
  55. package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
  56. package/dist/cjs/ic-select-with-multi.cjs.entry.js +2 -30
  57. package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-side-navigation.cjs.entry.js +1 -1
  59. package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
  60. package/dist/cjs/ic-step.cjs.entry.js +1 -1
  61. package/dist/cjs/ic-stepper.cjs.entry.js +1 -1
  62. package/dist/cjs/ic-switch.cjs.entry.js +1 -1
  63. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  64. package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -1
  65. package/dist/cjs/ic-tab.cjs.entry.js +1 -1
  66. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  67. package/dist/cjs/ic-toast.cjs.entry.js +1 -1
  68. package/dist/cjs/ic-toggle-button.cjs.entry.js +1 -1
  69. package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
  70. package/dist/cjs/ic-typography.cjs.entry.js +1 -1
  71. package/dist/cjs/index-4cf27b16.js +4 -0
  72. package/dist/cjs/loader.cjs.js +1 -1
  73. package/dist/collection/collection-manifest.json +1 -0
  74. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +655 -0
  75. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +373 -0
  76. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -0
  77. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js +2 -0
  78. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js.map +1 -0
  79. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js +130 -0
  80. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js.map +1 -0
  81. package/dist/collection/components/ic-date-picker/ic-date-picker.js +12 -3
  82. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  83. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js +29 -0
  84. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js.map +1 -1
  85. package/dist/collection/utils/helpers.js +4 -0
  86. package/dist/collection/utils/helpers.js.map +1 -1
  87. package/dist/components/helpers.js +4 -2
  88. package/dist/components/helpers.js.map +1 -1
  89. package/dist/components/helpers2.js +78 -1
  90. package/dist/components/helpers2.js.map +1 -1
  91. package/dist/components/ic-alert2.js +18 -2
  92. package/dist/components/ic-alert2.js.map +1 -1
  93. package/dist/components/ic-back-to-top.js +1 -1
  94. package/dist/components/ic-badge.js +1 -1
  95. package/dist/components/ic-breadcrumb-group.js +1 -1
  96. package/dist/components/ic-card-horizontal.d.ts +11 -0
  97. package/dist/components/ic-card-horizontal.js +167 -0
  98. package/dist/components/ic-card-horizontal.js.map +1 -0
  99. package/dist/components/ic-card.js +26 -2
  100. package/dist/components/ic-card.js.map +1 -1
  101. package/dist/components/ic-checkbox-group.js +1 -1
  102. package/dist/components/ic-checkbox.js +1 -1
  103. package/dist/components/ic-chip.js +1 -1
  104. package/dist/components/ic-classification-banner.js +12 -3
  105. package/dist/components/ic-classification-banner.js.map +1 -1
  106. package/dist/components/ic-data-row.js +1 -1
  107. package/dist/components/ic-data-table.js +1 -1
  108. package/dist/components/ic-date-input2.js +1 -1
  109. package/dist/components/ic-date-picker.js +12 -4
  110. package/dist/components/ic-date-picker.js.map +1 -1
  111. package/dist/components/ic-divider2.js +1 -1
  112. package/dist/components/ic-empty-state2.js +21 -2
  113. package/dist/components/ic-empty-state2.js.map +1 -1
  114. package/dist/components/ic-footer-link-group.js +1 -1
  115. package/dist/components/ic-footer-link.js +1 -1
  116. package/dist/components/ic-footer.js +1 -1
  117. package/dist/components/ic-hero.js +18 -2
  118. package/dist/components/ic-hero.js.map +1 -1
  119. package/dist/components/ic-input-component-container2.js +1 -1
  120. package/dist/components/ic-input-label2.js +1 -1
  121. package/dist/components/ic-input-validation2.js +1 -1
  122. package/dist/components/ic-menu3.js +1 -1
  123. package/dist/components/ic-navigation-button.js +1 -1
  124. package/dist/components/ic-navigation-group.js +1 -1
  125. package/dist/components/ic-navigation-item.js +1 -1
  126. package/dist/components/ic-page-header.js +1 -1
  127. package/dist/components/ic-pagination-bar2.js +1 -1
  128. package/dist/components/ic-radio-group.js +1 -1
  129. package/dist/components/ic-radio-option.js +1 -1
  130. package/dist/components/ic-search-bar.js +1 -1
  131. package/dist/components/ic-select-with-multi.js +1 -29
  132. package/dist/components/ic-select-with-multi.js.map +1 -1
  133. package/dist/components/ic-select2.js +1 -1
  134. package/dist/components/ic-side-navigation.js +1 -1
  135. package/dist/components/ic-switch.js +1 -1
  136. package/dist/components/ic-text-field2.js +1 -1
  137. package/dist/components/ic-theme.js +1 -1
  138. package/dist/components/ic-top-navigation.js +1 -1
  139. package/dist/core/core.esm.js +1 -1
  140. package/dist/core/core.esm.js.map +1 -1
  141. package/dist/core/{p-edf3411a.entry.js → p-007da09d.entry.js} +2 -2
  142. package/dist/core/{p-0a99994a.entry.js → p-01008e8d.entry.js} +2 -2
  143. package/dist/core/{p-4c57eef0.entry.js → p-01297278.entry.js} +2 -2
  144. package/dist/core/{p-3eb33ef4.entry.js → p-0551f0cf.entry.js} +2 -2
  145. package/dist/core/{p-24f9f6d4.entry.js → p-0944d33b.entry.js} +2 -2
  146. package/dist/core/{p-d3e186a3.entry.js → p-0ea28e7a.entry.js} +2 -2
  147. package/dist/core/p-145c8074.entry.js +2 -0
  148. package/dist/core/p-145c8074.entry.js.map +1 -0
  149. package/dist/core/{p-b8d3f121.entry.js → p-169bcf0f.entry.js} +2 -2
  150. package/dist/core/{p-47c91e08.entry.js → p-1733278a.entry.js} +2 -2
  151. package/dist/core/{p-4883e147.entry.js → p-1ac733c1.entry.js} +2 -2
  152. package/dist/core/{p-94ce6f29.entry.js → p-1d0cff8a.entry.js} +2 -2
  153. package/dist/core/{p-e2387530.entry.js → p-2647931d.entry.js} +2 -2
  154. package/dist/core/{p-0b14be10.entry.js → p-32a3b6c8.entry.js} +2 -2
  155. package/dist/core/{p-a1369740.entry.js → p-354e5dbe.entry.js} +2 -2
  156. package/dist/core/{p-af21360a.entry.js → p-3be4aae0.entry.js} +2 -2
  157. package/dist/core/{p-781e8391.entry.js → p-3d9eca50.entry.js} +2 -2
  158. package/dist/core/{p-92a858f7.entry.js → p-40fc7162.entry.js} +2 -2
  159. package/dist/core/{p-1440cdd1.js → p-45ebcb74.js} +2 -2
  160. package/dist/core/p-45ebcb74.js.map +1 -0
  161. package/dist/core/p-4e6f7cfe.entry.js +2 -0
  162. package/dist/core/p-4e6f7cfe.entry.js.map +1 -0
  163. package/dist/core/{p-db5c4969.entry.js → p-569a68c0.entry.js} +2 -2
  164. package/dist/core/{p-a5bb7bb0.entry.js → p-59d9ea22.entry.js} +2 -2
  165. package/dist/core/{p-c2b5e7b1.entry.js → p-5fea8f1c.entry.js} +2 -2
  166. package/dist/core/{p-c2b5e7b1.entry.js.map → p-5fea8f1c.entry.js.map} +1 -1
  167. package/dist/core/{p-2b9b9f6e.entry.js → p-66595f5f.entry.js} +2 -2
  168. package/dist/core/p-693a77bb.entry.js +2 -0
  169. package/dist/core/p-693a77bb.entry.js.map +1 -0
  170. package/dist/core/p-6b74397a.entry.js +2 -0
  171. package/dist/core/p-6b74397a.entry.js.map +1 -0
  172. package/dist/core/{p-6a7a5ed5.entry.js → p-6e697a16.entry.js} +2 -2
  173. package/dist/core/{p-7168b71a.entry.js → p-6f8fd43e.entry.js} +2 -2
  174. package/dist/core/{p-0970c8a1.entry.js → p-7f690fa3.entry.js} +2 -2
  175. package/dist/core/{p-992b6161.entry.js → p-96670e29.entry.js} +2 -2
  176. package/dist/core/{p-8100f45c.entry.js → p-9e69f517.entry.js} +2 -2
  177. package/dist/core/{p-0629691b.entry.js → p-9e7a5c72.entry.js} +2 -2
  178. package/dist/core/{p-cb7793b0.entry.js → p-9f8ef2bc.entry.js} +2 -2
  179. package/dist/core/{p-60ca1000.entry.js → p-a4585c7e.entry.js} +2 -2
  180. package/dist/core/{p-646b886c.entry.js → p-a589ead8.entry.js} +2 -2
  181. package/dist/core/{p-34cc7b3d.entry.js → p-a6d3743c.entry.js} +2 -2
  182. package/dist/core/{p-14b363d0.entry.js → p-a8c97918.entry.js} +2 -2
  183. package/dist/core/{p-a484c41c.entry.js → p-a970d653.entry.js} +2 -2
  184. package/dist/core/{p-6eafa62e.entry.js → p-ae7c2c39.entry.js} +2 -2
  185. package/dist/core/{p-87868dd2.entry.js → p-b3ed5423.entry.js} +2 -2
  186. package/dist/core/{p-eeae7272.entry.js → p-be4c0cc8.entry.js} +2 -2
  187. package/dist/core/{p-4ec1ce96.entry.js → p-c04f1bfb.entry.js} +2 -2
  188. package/dist/core/p-c04f1bfb.entry.js.map +1 -0
  189. package/dist/core/{p-6cf5343b.entry.js → p-d06c0049.entry.js} +2 -2
  190. package/dist/core/{p-66c26240.entry.js → p-d39239be.entry.js} +2 -2
  191. package/dist/core/{p-7e850bad.entry.js → p-d3ea79e1.entry.js} +2 -2
  192. package/dist/core/{p-ef996e40.entry.js → p-d448bdbd.entry.js} +2 -2
  193. package/dist/core/p-d44b7f21.entry.js +2 -0
  194. package/dist/core/p-d44b7f21.entry.js.map +1 -0
  195. package/dist/core/{p-2536b95b.entry.js → p-d5d36143.entry.js} +2 -2
  196. package/dist/core/p-d68e0c94.entry.js +2 -0
  197. package/dist/core/p-d68e0c94.entry.js.map +1 -0
  198. package/dist/core/{p-12120521.entry.js → p-d91428b4.entry.js} +2 -2
  199. package/dist/core/{p-34e72f79.entry.js → p-e191290c.entry.js} +2 -2
  200. package/dist/core/{p-e1e04f34.entry.js → p-e2421111.entry.js} +2 -2
  201. package/dist/core/{p-6c5c6aaf.entry.js → p-e393e53c.entry.js} +2 -2
  202. package/dist/core/{p-0cdd4c93.entry.js → p-e5b1dd58.entry.js} +2 -2
  203. package/dist/core/p-f6735e4a.js +2 -0
  204. package/dist/core/p-f6735e4a.js.map +1 -0
  205. package/dist/core/{p-3245554e.entry.js → p-fab8da25.entry.js} +2 -2
  206. package/dist/core/{p-0ecde7a8.entry.js → p-fb4219d6.entry.js} +2 -2
  207. package/dist/core/{p-06e0b5b6.entry.js → p-fc0eac8b.entry.js} +2 -2
  208. package/dist/core/{p-d67a5c90.entry.js → p-fdacc7f7.entry.js} +2 -2
  209. package/dist/core/{p-b7161816.entry.js → p-ffeca3c7.entry.js} +2 -2
  210. package/dist/esm/core.js +1 -1
  211. package/dist/esm/{helpers-4e2e4787.js → helpers-d41662f3.js} +5 -3
  212. package/dist/esm/helpers-d41662f3.js.map +1 -0
  213. package/dist/esm/{helpers-1cd71f8a.js → helpers-e75fd113.js} +79 -2
  214. package/dist/esm/helpers-e75fd113.js.map +1 -0
  215. package/dist/esm/ic-accordion-group.entry.js +1 -1
  216. package/dist/esm/ic-accordion.entry.js +1 -1
  217. package/dist/esm/ic-alert.entry.js +18 -2
  218. package/dist/esm/ic-alert.entry.js.map +1 -1
  219. package/dist/esm/ic-back-to-top.entry.js +1 -1
  220. package/dist/esm/ic-badge.entry.js +1 -1
  221. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  222. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  223. package/dist/esm/ic-button_3.entry.js +1 -1
  224. package/dist/esm/ic-card-horizontal.entry.js +127 -0
  225. package/dist/esm/ic-card-horizontal.entry.js.map +1 -0
  226. package/dist/esm/ic-card.entry.js +26 -2
  227. package/dist/esm/ic-card.entry.js.map +1 -1
  228. package/dist/esm/ic-checkbox-group.entry.js +1 -1
  229. package/dist/esm/ic-checkbox.entry.js +1 -1
  230. package/dist/esm/ic-chip.entry.js +1 -1
  231. package/dist/esm/ic-classification-banner.entry.js +12 -3
  232. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  233. package/dist/esm/ic-data-row.entry.js +1 -1
  234. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  235. package/dist/esm/ic-data-table.entry.js +1 -1
  236. package/dist/esm/ic-date-input.entry.js +1 -1
  237. package/dist/esm/ic-date-picker.entry.js +11 -4
  238. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  239. package/dist/esm/ic-dialog.entry.js +1 -1
  240. package/dist/esm/ic-divider.entry.js +1 -1
  241. package/dist/esm/ic-empty-state_2.entry.js +22 -3
  242. package/dist/esm/ic-empty-state_2.entry.js.map +1 -1
  243. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  244. package/dist/esm/ic-footer-link.entry.js +1 -1
  245. package/dist/esm/ic-footer.entry.js +1 -1
  246. package/dist/esm/ic-hero.entry.js +18 -2
  247. package/dist/esm/ic-hero.entry.js.map +1 -1
  248. package/dist/esm/ic-horizontal-scroll.entry.js +1 -1
  249. package/dist/esm/ic-input-component-container_4.entry.js +1 -1
  250. package/dist/esm/ic-link.entry.js +1 -1
  251. package/dist/esm/ic-menu-group.entry.js +1 -1
  252. package/dist/esm/ic-menu-item.entry.js +1 -1
  253. package/dist/esm/ic-menu-with-multi.entry.js +1 -1
  254. package/dist/esm/ic-menu.entry.js +1 -1
  255. package/dist/esm/ic-navigation-button.entry.js +1 -1
  256. package/dist/esm/ic-navigation-group.entry.js +1 -1
  257. package/dist/esm/ic-navigation-item.entry.js +1 -1
  258. package/dist/esm/ic-navigation-menu.entry.js +1 -1
  259. package/dist/esm/ic-page-header.entry.js +1 -1
  260. package/dist/esm/ic-pagination_4.entry.js +1 -1
  261. package/dist/esm/ic-popover-menu.entry.js +1 -1
  262. package/dist/esm/ic-radio-group.entry.js +1 -1
  263. package/dist/esm/ic-radio-option.entry.js +1 -1
  264. package/dist/esm/ic-search-bar.entry.js +1 -1
  265. package/dist/esm/ic-select-with-multi.entry.js +1 -29
  266. package/dist/esm/ic-select-with-multi.entry.js.map +1 -1
  267. package/dist/esm/ic-side-navigation.entry.js +1 -1
  268. package/dist/esm/ic-status-tag.entry.js +1 -1
  269. package/dist/esm/ic-step.entry.js +1 -1
  270. package/dist/esm/ic-stepper.entry.js +1 -1
  271. package/dist/esm/ic-switch.entry.js +1 -1
  272. package/dist/esm/ic-tab-group.entry.js +1 -1
  273. package/dist/esm/ic-tab-panel.entry.js +1 -1
  274. package/dist/esm/ic-tab.entry.js +1 -1
  275. package/dist/esm/ic-theme.entry.js +1 -1
  276. package/dist/esm/ic-toast.entry.js +1 -1
  277. package/dist/esm/ic-toggle-button.entry.js +1 -1
  278. package/dist/esm/ic-top-navigation.entry.js +1 -1
  279. package/dist/esm/ic-typography.entry.js +1 -1
  280. package/dist/esm/index-93509377.js +4 -0
  281. package/dist/esm/loader.js +1 -1
  282. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +71 -0
  283. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.types.d.ts +1 -0
  284. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +1 -0
  285. package/dist/types/components.d.ts +99 -0
  286. package/dist/types/utils/helpers.d.ts +1 -0
  287. package/hydrate/index.js +1038 -753
  288. package/package.json +3 -3
  289. package/dist/cjs/helpers-73d277d1.js.map +0 -1
  290. package/dist/cjs/helpers-fc9441f8.js.map +0 -1
  291. package/dist/core/p-1440cdd1.js.map +0 -1
  292. package/dist/core/p-20d4ded5.js +0 -2
  293. package/dist/core/p-20d4ded5.js.map +0 -1
  294. package/dist/core/p-352b9c17.entry.js +0 -2
  295. package/dist/core/p-352b9c17.entry.js.map +0 -1
  296. package/dist/core/p-3fa986f8.entry.js +0 -2
  297. package/dist/core/p-3fa986f8.entry.js.map +0 -1
  298. package/dist/core/p-4ec1ce96.entry.js.map +0 -1
  299. package/dist/core/p-9769c195.entry.js +0 -2
  300. package/dist/core/p-9769c195.entry.js.map +0 -1
  301. package/dist/core/p-cb15d0b6.entry.js +0 -2
  302. package/dist/core/p-cb15d0b6.entry.js.map +0 -1
  303. package/dist/core/p-e32cce28.entry.js +0 -2
  304. package/dist/core/p-e32cce28.entry.js.map +0 -1
  305. package/dist/esm/helpers-1cd71f8a.js.map +0 -1
  306. package/dist/esm/helpers-4e2e4787.js.map +0 -1
  307. /package/dist/core/{p-edf3411a.entry.js.map → p-007da09d.entry.js.map} +0 -0
  308. /package/dist/core/{p-0a99994a.entry.js.map → p-01008e8d.entry.js.map} +0 -0
  309. /package/dist/core/{p-4c57eef0.entry.js.map → p-01297278.entry.js.map} +0 -0
  310. /package/dist/core/{p-3eb33ef4.entry.js.map → p-0551f0cf.entry.js.map} +0 -0
  311. /package/dist/core/{p-24f9f6d4.entry.js.map → p-0944d33b.entry.js.map} +0 -0
  312. /package/dist/core/{p-d3e186a3.entry.js.map → p-0ea28e7a.entry.js.map} +0 -0
  313. /package/dist/core/{p-b8d3f121.entry.js.map → p-169bcf0f.entry.js.map} +0 -0
  314. /package/dist/core/{p-47c91e08.entry.js.map → p-1733278a.entry.js.map} +0 -0
  315. /package/dist/core/{p-4883e147.entry.js.map → p-1ac733c1.entry.js.map} +0 -0
  316. /package/dist/core/{p-94ce6f29.entry.js.map → p-1d0cff8a.entry.js.map} +0 -0
  317. /package/dist/core/{p-e2387530.entry.js.map → p-2647931d.entry.js.map} +0 -0
  318. /package/dist/core/{p-0b14be10.entry.js.map → p-32a3b6c8.entry.js.map} +0 -0
  319. /package/dist/core/{p-a1369740.entry.js.map → p-354e5dbe.entry.js.map} +0 -0
  320. /package/dist/core/{p-af21360a.entry.js.map → p-3be4aae0.entry.js.map} +0 -0
  321. /package/dist/core/{p-781e8391.entry.js.map → p-3d9eca50.entry.js.map} +0 -0
  322. /package/dist/core/{p-92a858f7.entry.js.map → p-40fc7162.entry.js.map} +0 -0
  323. /package/dist/core/{p-db5c4969.entry.js.map → p-569a68c0.entry.js.map} +0 -0
  324. /package/dist/core/{p-a5bb7bb0.entry.js.map → p-59d9ea22.entry.js.map} +0 -0
  325. /package/dist/core/{p-2b9b9f6e.entry.js.map → p-66595f5f.entry.js.map} +0 -0
  326. /package/dist/core/{p-6a7a5ed5.entry.js.map → p-6e697a16.entry.js.map} +0 -0
  327. /package/dist/core/{p-7168b71a.entry.js.map → p-6f8fd43e.entry.js.map} +0 -0
  328. /package/dist/core/{p-0970c8a1.entry.js.map → p-7f690fa3.entry.js.map} +0 -0
  329. /package/dist/core/{p-992b6161.entry.js.map → p-96670e29.entry.js.map} +0 -0
  330. /package/dist/core/{p-8100f45c.entry.js.map → p-9e69f517.entry.js.map} +0 -0
  331. /package/dist/core/{p-0629691b.entry.js.map → p-9e7a5c72.entry.js.map} +0 -0
  332. /package/dist/core/{p-cb7793b0.entry.js.map → p-9f8ef2bc.entry.js.map} +0 -0
  333. /package/dist/core/{p-60ca1000.entry.js.map → p-a4585c7e.entry.js.map} +0 -0
  334. /package/dist/core/{p-646b886c.entry.js.map → p-a589ead8.entry.js.map} +0 -0
  335. /package/dist/core/{p-34cc7b3d.entry.js.map → p-a6d3743c.entry.js.map} +0 -0
  336. /package/dist/core/{p-14b363d0.entry.js.map → p-a8c97918.entry.js.map} +0 -0
  337. /package/dist/core/{p-a484c41c.entry.js.map → p-a970d653.entry.js.map} +0 -0
  338. /package/dist/core/{p-6eafa62e.entry.js.map → p-ae7c2c39.entry.js.map} +0 -0
  339. /package/dist/core/{p-87868dd2.entry.js.map → p-b3ed5423.entry.js.map} +0 -0
  340. /package/dist/core/{p-eeae7272.entry.js.map → p-be4c0cc8.entry.js.map} +0 -0
  341. /package/dist/core/{p-6cf5343b.entry.js.map → p-d06c0049.entry.js.map} +0 -0
  342. /package/dist/core/{p-66c26240.entry.js.map → p-d39239be.entry.js.map} +0 -0
  343. /package/dist/core/{p-7e850bad.entry.js.map → p-d3ea79e1.entry.js.map} +0 -0
  344. /package/dist/core/{p-ef996e40.entry.js.map → p-d448bdbd.entry.js.map} +0 -0
  345. /package/dist/core/{p-2536b95b.entry.js.map → p-d5d36143.entry.js.map} +0 -0
  346. /package/dist/core/{p-12120521.entry.js.map → p-d91428b4.entry.js.map} +0 -0
  347. /package/dist/core/{p-34e72f79.entry.js.map → p-e191290c.entry.js.map} +0 -0
  348. /package/dist/core/{p-e1e04f34.entry.js.map → p-e2421111.entry.js.map} +0 -0
  349. /package/dist/core/{p-6c5c6aaf.entry.js.map → p-e393e53c.entry.js.map} +0 -0
  350. /package/dist/core/{p-0cdd4c93.entry.js.map → p-e5b1dd58.entry.js.map} +0 -0
  351. /package/dist/core/{p-3245554e.entry.js.map → p-fab8da25.entry.js.map} +0 -0
  352. /package/dist/core/{p-0ecde7a8.entry.js.map → p-fb4219d6.entry.js.map} +0 -0
  353. /package/dist/core/{p-06e0b5b6.entry.js.map → p-fc0eac8b.entry.js.map} +0 -0
  354. /package/dist/core/{p-d67a5c90.entry.js.map → p-fdacc7f7.entry.js.map} +0 -0
  355. /package/dist/core/{p-b7161816.entry.js.map → p-ffeca3c7.entry.js.map} +0 -0
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-4cf27b16.js');
6
6
  const closeIcon = require('./close-icon-d62b369d.js');
7
- const helpers = require('./helpers-73d277d1.js');
7
+ const helpers = require('./helpers-081d6031.js');
8
8
  const types = require('./types-17dba796.js');
9
9
 
10
10
  const icAlertCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block}.container{min-height:3.5rem;border-radius:var(--ic-border-radius);position:relative;display:flex;align-items:center}.container-neutral{background-color:var(--ic-status-unknown-light)}.container-info{background-color:var(--ic-status-info-light)}.container-warning{background-color:var(--ic-status-warning-light)}.container-error{background-color:var(--ic-status-error-light)}.container-success{background-color:var(--ic-status-success-light)}.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-status-unknown)}.divider-info{background-color:var(--ic-status-info)}.divider-warning{background-color:var(--ic-status-warning)}.divider-error{background-color:var(--ic-status-error)}.divider-success{background-color:var(--ic-status-success)}.alert-icon{height:var(--ic-space-lg);width:1.375rem;margin-left:1.125rem}.alert-icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}.icon-neutral>svg{fill:var(--ic-status-unknown)}:host([variant=\"info\"]) .alert-icon svg{fill:var(--ic-status-info)}:host([variant=\"warning\"]) .alert-icon svg{fill:var(--ic-status-warning)}:host([variant=\"error\"]) .alert-icon svg{fill:var(--ic-status-error)}:host([variant=\"success\"]) .alert-icon svg{fill:var(--ic-status-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}.alert-message-title-above{display:inline}.alert-title{margin-right:var(--ic-space-xs)}.alert-title-above{white-space:normal}.alert-action-container{margin-right:var(--ic-space-xs);display:flex;align-items:center}.dismiss-icon{margin-right:var(--ic-space-xxxs);margin-left:-0.375rem;padding:0.375rem;border:none;border-radius:50%;background-color:inherit;display:flex;align-items:center;justify-content:center}.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-hc-border)}}";
@@ -14,10 +14,18 @@ const Alert = class {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.dismiss = index.createEvent(this, "dismiss", 7);
16
16
  this.icDismiss = index.createEvent(this, "icDismiss", 7);
17
+ this.hostMutationObserver = null;
17
18
  this.dismissAction = () => {
18
19
  this.dismiss.emit();
19
20
  this.icDismiss.emit();
20
21
  };
22
+ this.hostMutationCallback = (mutationList) => {
23
+ if (mutationList.some(({ type, addedNodes, removedNodes }) => type === "childList"
24
+ ? helpers.checkSlotInChildMutations(addedNodes, removedNodes, "action")
25
+ : false)) {
26
+ index.forceUpdate(this);
27
+ }
28
+ };
21
29
  this.alertTitleWrap = false;
22
30
  this.visible = true;
23
31
  this.announced = true;
@@ -27,8 +35,16 @@ const Alert = class {
27
35
  this.titleAbove = false;
28
36
  this.variant = "neutral";
29
37
  }
38
+ disconnectedCallback() {
39
+ var _a;
40
+ (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
41
+ }
30
42
  componentDidLoad() {
31
43
  this.alertTitleShouldWrap();
44
+ this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
45
+ this.hostMutationObserver.observe(this.el, {
46
+ childList: true,
47
+ });
32
48
  }
33
49
  handleClick() {
34
50
  this.visible = !this.visible;
@@ -1 +1 @@
1
- {"file":"ic-alert.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,UAAU,GAAG,+uJAA+uJ;;MCSrvJ,KAAK;IACd;;;;QACI,IAAI,CAAC,aAAa,GAAG;YACjB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACpB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;SACzB,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;KAC5B;IACD,gBAAgB;QACZ,IAAI,CAAC,oBAAoB,EAAE,CAAC;KAC/B;IACD,WAAW;QACP,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;KAChC;IACD,oBAAoB;QAChB,IAAI,EAAE,CAAC;QACP,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC;QACjI,IAAI,WAAW,GAA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AAa,GAAG,IAAI;gBACrB,CAAC,mBAAmB,GAAG,UAAU,IAAI,IAAI,CAAC,cAAc;aAC3D,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAEA,OAAC,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAEA,OAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAEA,OAAC,CAAC,eAAe,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,EAAEI,kBAAU,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAKJ,OAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,wBAAwB,EAAE,EAAEA,OAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,EAAEA,OAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,wBAAwB,EAAE,EAAE,WAAW,KAAKA,OAAC,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE;gBAChV,CAAC,eAAe,GAAG,IAAI;gBACvB,CAAC,cAAc,GAAG,IAAI;aACzB,EAAE,SAAS,EAAEK,mBAAS,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAEH,2BAAqB,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;KAChJ;;;;;;;","names":["h","Host","IcThemeForegroundEnum","VARIANT_ICONS","isSlotUsed","closeIcon"],"sources":["../web-components/dist/collection/components/ic-alert/ic-alert.css?tag=ic-alert&encapsulation=shadow","../web-components/dist/collection/components/ic-alert/ic-alert.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}\n\n.container {\n min-height: 3.5rem;\n border-radius: var(--ic-border-radius);\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.container-neutral {\n background-color: var(--ic-status-unknown-light);\n}\n\n.container-info {\n background-color: var(--ic-status-info-light);\n}\n\n.container-warning {\n background-color: var(--ic-status-warning-light);\n}\n\n.container-error {\n background-color: var(--ic-status-error-light);\n}\n\n.container-success {\n background-color: var(--ic-status-success-light);\n}\n\n.alert-icon-container {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.divider {\n height: 100%;\n width: var(--ic-space-xs);\n border-radius: var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);\n position: absolute;\n}\n\n.divider-neutral {\n background-color: var(--ic-status-unknown);\n}\n\n.divider-info {\n background-color: var(--ic-status-info);\n}\n\n.divider-warning {\n background-color: var(--ic-status-warning);\n}\n\n.divider-error {\n background-color: var(--ic-status-error);\n}\n\n.divider-success {\n background-color: var(--ic-status-success);\n}\n\n.alert-icon {\n height: var(--ic-space-lg);\n width: 1.375rem;\n margin-left: 1.125rem;\n}\n\n.alert-icon > svg {\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n display: inline-block;\n}\n\n.icon-neutral > svg {\n fill: var(--ic-status-unknown);\n}\n\n:host([variant=\"info\"]) .alert-icon svg {\n fill: var(--ic-status-info);\n}\n\n:host([variant=\"warning\"]) .alert-icon svg {\n fill: var(--ic-status-warning);\n}\n\n:host([variant=\"error\"]) .alert-icon svg {\n fill: var(--ic-status-error);\n}\n\n:host([variant=\"success\"]) .alert-icon svg {\n fill: var(--ic-status-success);\n}\n\n.alert-content {\n display: flex;\n align-items: center;\n margin-left: 0.625rem;\n width: 100%;\n}\n\n.alert-message {\n display: flex;\n align-items: center;\n padding: var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;\n flex: 1;\n}\n\n.alert-message-title-above {\n display: inline;\n}\n\n.alert-title {\n margin-right: var(--ic-space-xs);\n}\n\n.alert-title-above {\n white-space: normal;\n}\n\n.alert-action-container {\n margin-right: var(--ic-space-xs);\n display: flex;\n align-items: center;\n}\n\n.dismiss-icon {\n margin-right: var(--ic-space-xxxs);\n margin-left: -0.375rem;\n padding: 0.375rem;\n border: none;\n border-radius: 50%;\n background-color: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.dismiss-icon:hover {\n cursor: pointer;\n}\n\n@media (max-width: 628px) {\n .alert-content {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n\n .alert-message {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n\n .alert-title {\n white-space: normal;\n }\n\n .alert-action-container {\n margin-bottom: var(--ic-space-xs);\n }\n}\n\n@media (forced-colors: active) {\n .container {\n border: var(--ic-hc-border);\n }\n}\n","import { Host, h, } from \"@stencil/core\";\nimport closeIcon from \"../../assets/close-icon.svg\";\nimport { isSlotUsed } from \"../../utils/helpers\";\nimport { IcThemeForegroundEnum } from \"../../utils/types\";\nimport { VARIANT_ICONS } from \"../../utils/constants\";\n/**\n * @slot message - Content is placed to the right of the title.\n * @slot action - Content is placed to the right of the message.\n */\nexport class Alert {\n constructor() {\n this.dismissAction = () => {\n this.dismiss.emit();\n this.icDismiss.emit();\n };\n this.alertTitleWrap = false;\n this.visible = true;\n this.announced = true;\n this.dismissible = false;\n this.heading = \"\";\n this.message = undefined;\n this.titleAbove = false;\n this.variant = \"neutral\";\n }\n componentDidLoad() {\n this.alertTitleShouldWrap();\n }\n handleClick() {\n this.visible = !this.visible;\n }\n alertTitleShouldWrap() {\n var _a;\n const titleHeight = (_a = this.el.shadowRoot.querySelector(\".alert-title\")) === null || _a === void 0 ? void 0 : _a.clientHeight;\n if (titleHeight > 24)\n this.alertTitleWrap = true;\n }\n render() {\n const { variant, heading, message, titleAbove, dismissible, announced, visible, } = this;\n return (visible && (h(Host, { role: announced ? \"alert\" : null, class: {\n [IcThemeForegroundEnum.Dark]: true,\n } }, h(\"div\", { class: {\n [\"container\"]: true,\n [`container-${variant}`]: true,\n } }, h(\"div\", { class: \"alert-icon-container\" }, h(\"div\", { class: {\n [\"divider\"]: true,\n [`divider-${variant}`]: true,\n } }), h(\"span\", { class: {\n [\"alert-icon\"]: true,\n [\"svg-container\"]: true,\n [`icon-${variant}`]: true,\n }, innerHTML: VARIANT_ICONS[variant].icon })), h(\"div\", { class: \"alert-content\" }, h(\"div\", { class: {\n [\"alert-message\"]: true,\n [\"alert-message-title-above\"]: titleAbove || this.alertTitleWrap,\n } }, heading && (h(\"ic-typography\", { class: {\n [\"alert-title\"]: true,\n [\"alert-title-above\"]: titleAbove || this.alertTitleWrap,\n }, variant: \"subtitle-large\" }, h(\"p\", null, heading))), h(\"slot\", { name: \"message\" }, h(\"ic-typography\", { variant: \"body\" }, message))), isSlotUsed(this.el, \"action\") && (h(\"div\", { class: \"alert-action-container\" }, h(\"slot\", { name: \"action\" })))), h(\"div\", { class: \"dismiss-icon-container\" }, dismissible && (h(\"ic-button\", { class: {\n [\"svg-container\"]: true,\n [\"dismiss-icon\"]: true,\n }, innerHTML: closeIcon, onClick: this.dismissAction, variant: \"icon\", appearance: IcThemeForegroundEnum.Dark, title: \"dismiss\" })))))));\n }\n static get is() { return \"ic-alert\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-alert.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-alert.css\"]\n };\n }\n static get properties() {\n return {\n \"announced\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the alert will have the 'alert' ARIA role and will be announced to screen readers.\"\n },\n \"attribute\": \"announced\",\n \"reflect\": false,\n \"defaultValue\": \"true\"\n },\n \"dismissible\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the alert will have a close icon at the end to dismiss it.\"\n },\n \"attribute\": \"dismissible\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The optional title to display at the start of the alert.\"\n },\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\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main body message of the alert.\"\n },\n \"attribute\": \"message\",\n \"reflect\": false\n },\n \"titleAbove\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the title and message will appear above and below instead of inline.\"\n },\n \"attribute\": \"title-above\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"variant\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcStatusVariants\",\n \"resolved\": \"\\\"error\\\" | \\\"info\\\" | \\\"neutral\\\" | \\\"success\\\" | \\\"warning\\\"\",\n \"references\": {\n \"IcStatusVariants\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcStatusVariants\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The variant of the alert which will be rendered.\"\n },\n \"attribute\": \"variant\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"neutral\\\"\"\n }\n };\n }\n static get states() {\n return {\n \"alertTitleWrap\": {},\n \"visible\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"dismiss\",\n \"name\": \"dismiss\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"This event should not be used anymore. Use icDismiss instead.\"\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"icDismiss\",\n \"name\": \"icDismiss\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Is emitted when the user dismisses the alert.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get elementRef() { return \"el\"; }\n static get listeners() {\n return [{\n \"name\": \"icDismiss\",\n \"method\": \"handleClick\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": false\n }];\n }\n}\n//# sourceMappingURL=ic-alert.js.map\n"],"version":3}
1
+ {"file":"ic-alert.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,UAAU,GAAG,+uJAA+uJ;;MCSrvJ,KAAK;IACd;;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EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;KAChJ;;;;;;;","names":["checkSlotInChildMutations","forceUpdate","h","Host","IcThemeForegroundEnum","VARIANT_ICONS","isSlotUsed","closeIcon"],"sources":["../web-components/dist/collection/components/ic-alert/ic-alert.css?tag=ic-alert&encapsulation=shadow","../web-components/dist/collection/components/ic-alert/ic-alert.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}\n\n.container {\n min-height: 3.5rem;\n border-radius: var(--ic-border-radius);\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.container-neutral {\n background-color: var(--ic-status-unknown-light);\n}\n\n.container-info {\n background-color: var(--ic-status-info-light);\n}\n\n.container-warning {\n background-color: var(--ic-status-warning-light);\n}\n\n.container-error {\n background-color: var(--ic-status-error-light);\n}\n\n.container-success {\n background-color: var(--ic-status-success-light);\n}\n\n.alert-icon-container {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.divider {\n height: 100%;\n width: var(--ic-space-xs);\n border-radius: var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);\n position: absolute;\n}\n\n.divider-neutral {\n background-color: var(--ic-status-unknown);\n}\n\n.divider-info {\n background-color: var(--ic-status-info);\n}\n\n.divider-warning {\n background-color: var(--ic-status-warning);\n}\n\n.divider-error {\n background-color: var(--ic-status-error);\n}\n\n.divider-success {\n background-color: var(--ic-status-success);\n}\n\n.alert-icon {\n height: var(--ic-space-lg);\n width: 1.375rem;\n margin-left: 1.125rem;\n}\n\n.alert-icon > svg {\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n display: inline-block;\n}\n\n.icon-neutral > svg {\n fill: var(--ic-status-unknown);\n}\n\n:host([variant=\"info\"]) .alert-icon svg {\n fill: var(--ic-status-info);\n}\n\n:host([variant=\"warning\"]) .alert-icon svg {\n fill: var(--ic-status-warning);\n}\n\n:host([variant=\"error\"]) .alert-icon svg {\n fill: var(--ic-status-error);\n}\n\n:host([variant=\"success\"]) .alert-icon svg {\n fill: var(--ic-status-success);\n}\n\n.alert-content {\n display: flex;\n align-items: center;\n margin-left: 0.625rem;\n width: 100%;\n}\n\n.alert-message {\n display: flex;\n align-items: center;\n padding: var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;\n flex: 1;\n}\n\n.alert-message-title-above {\n display: inline;\n}\n\n.alert-title {\n margin-right: var(--ic-space-xs);\n}\n\n.alert-title-above {\n white-space: normal;\n}\n\n.alert-action-container {\n margin-right: var(--ic-space-xs);\n display: flex;\n align-items: center;\n}\n\n.dismiss-icon {\n margin-right: var(--ic-space-xxxs);\n margin-left: -0.375rem;\n padding: 0.375rem;\n border: none;\n border-radius: 50%;\n background-color: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.dismiss-icon:hover {\n cursor: pointer;\n}\n\n@media (max-width: 628px) {\n .alert-content {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n\n .alert-message {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n\n .alert-title {\n white-space: normal;\n }\n\n .alert-action-container {\n margin-bottom: var(--ic-space-xs);\n }\n}\n\n@media (forced-colors: active) {\n .container {\n border: var(--ic-hc-border);\n }\n}\n","import { Host, h, forceUpdate, } from \"@stencil/core\";\nimport closeIcon from \"../../assets/close-icon.svg\";\nimport { isSlotUsed, checkSlotInChildMutations } from \"../../utils/helpers\";\nimport { IcThemeForegroundEnum } from \"../../utils/types\";\nimport { VARIANT_ICONS } from \"../../utils/constants\";\n/**\n * @slot message - Content is placed to the right of the title.\n * @slot action - Content is placed to the right of the message.\n */\nexport class Alert {\n constructor() {\n this.hostMutationObserver = null;\n this.dismissAction = () => {\n this.dismiss.emit();\n this.icDismiss.emit();\n };\n this.hostMutationCallback = (mutationList) => {\n if (mutationList.some(({ type, addedNodes, removedNodes }) => type === \"childList\"\n ? checkSlotInChildMutations(addedNodes, removedNodes, \"action\")\n : false)) {\n forceUpdate(this);\n }\n };\n this.alertTitleWrap = false;\n this.visible = true;\n this.announced = true;\n this.dismissible = false;\n this.heading = \"\";\n this.message = undefined;\n this.titleAbove = false;\n this.variant = \"neutral\";\n }\n disconnectedCallback() {\n var _a;\n (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n componentDidLoad() {\n this.alertTitleShouldWrap();\n this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n handleClick() {\n this.visible = !this.visible;\n }\n alertTitleShouldWrap() {\n var _a;\n const titleHeight = (_a = this.el.shadowRoot.querySelector(\".alert-title\")) === null || _a === void 0 ? void 0 : _a.clientHeight;\n if (titleHeight > 24)\n this.alertTitleWrap = true;\n }\n render() {\n const { variant, heading, message, titleAbove, dismissible, announced, visible, } = this;\n return (visible && (h(Host, { role: announced ? \"alert\" : null, class: {\n [IcThemeForegroundEnum.Dark]: true,\n } }, h(\"div\", { class: {\n [\"container\"]: true,\n [`container-${variant}`]: true,\n } }, h(\"div\", { class: \"alert-icon-container\" }, h(\"div\", { class: {\n [\"divider\"]: true,\n [`divider-${variant}`]: true,\n } }), h(\"span\", { class: {\n [\"alert-icon\"]: true,\n [\"svg-container\"]: true,\n [`icon-${variant}`]: true,\n }, innerHTML: VARIANT_ICONS[variant].icon })), h(\"div\", { class: \"alert-content\" }, h(\"div\", { class: {\n [\"alert-message\"]: true,\n [\"alert-message-title-above\"]: titleAbove || this.alertTitleWrap,\n } }, heading && (h(\"ic-typography\", { class: {\n [\"alert-title\"]: true,\n [\"alert-title-above\"]: titleAbove || this.alertTitleWrap,\n }, variant: \"subtitle-large\" }, h(\"p\", null, heading))), h(\"slot\", { name: \"message\" }, h(\"ic-typography\", { variant: \"body\" }, message))), isSlotUsed(this.el, \"action\") && (h(\"div\", { class: \"alert-action-container\" }, h(\"slot\", { name: \"action\" })))), h(\"div\", { class: \"dismiss-icon-container\" }, dismissible && (h(\"ic-button\", { class: {\n [\"svg-container\"]: true,\n [\"dismiss-icon\"]: true,\n }, innerHTML: closeIcon, onClick: this.dismissAction, variant: \"icon\", appearance: IcThemeForegroundEnum.Dark, title: \"dismiss\" })))))));\n }\n static get is() { return \"ic-alert\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-alert.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-alert.css\"]\n };\n }\n static get properties() {\n return {\n \"announced\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the alert will have the 'alert' ARIA role and will be announced to screen readers.\"\n },\n \"attribute\": \"announced\",\n \"reflect\": false,\n \"defaultValue\": \"true\"\n },\n \"dismissible\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the alert will have a close icon at the end to dismiss it.\"\n },\n \"attribute\": \"dismissible\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The optional title to display at the start of the alert.\"\n },\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\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main body message of the alert.\"\n },\n \"attribute\": \"message\",\n \"reflect\": false\n },\n \"titleAbove\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the title and message will appear above and below instead of inline.\"\n },\n \"attribute\": \"title-above\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"variant\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcStatusVariants\",\n \"resolved\": \"\\\"error\\\" | \\\"info\\\" | \\\"neutral\\\" | \\\"success\\\" | \\\"warning\\\"\",\n \"references\": {\n \"IcStatusVariants\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcStatusVariants\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The variant of the alert which will be rendered.\"\n },\n \"attribute\": \"variant\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"neutral\\\"\"\n }\n };\n }\n static get states() {\n return {\n \"alertTitleWrap\": {},\n \"visible\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"dismiss\",\n \"name\": \"dismiss\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"This event should not be used anymore. Use icDismiss instead.\"\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"icDismiss\",\n \"name\": \"icDismiss\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Is emitted when the user dismisses the alert.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get elementRef() { return \"el\"; }\n static get listeners() {\n return [{\n \"name\": \"icDismiss\",\n \"method\": \"handleClick\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": false\n }];\n }\n}\n//# sourceMappingURL=ic-alert.js.map\n"],"version":3}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-4cf27b16.js');
6
- const helpers = require('./helpers-73d277d1.js');
6
+ const helpers = require('./helpers-081d6031.js');
7
7
  require('./types-17dba796.js');
8
8
 
9
9
  const ArrowUpward = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" aria-hidden="true">
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-4cf27b16.js');
6
- const helpers = require('./helpers-73d277d1.js');
6
+ const helpers = require('./helpers-081d6031.js');
7
7
  require('./types-17dba796.js');
8
8
 
9
9
  const icBadgeCss = "@media (prefers-reduced-motion: no-preference){:host(.show){animation:expand var(--ic-transition-duration-slow)}:host(.hide){animation:shrink var(--ic-transition-duration-slow)}}:host{display:flex;height:var(--ic-space-md);min-width:var(--ic-space-md);width:-moz-fit-content;width:fit-content;border-radius:calc(2 * var(--ic-space-xxl));position:absolute}:host(.neutral){background-color:var(--ic-architectural-500)}:host(.light){background-color:var(--ic-architectural-40)}:host(.info){background-color:var(--ic-status-info)}:host(.warning){background-color:var(--ic-status-warning-mid)}:host(.error){background-color:var(--ic-status-error)}:host(.success){background-color:var(--ic-status-success)}:host(.small){height:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host(.large){height:calc(var(--ic-space-md) + var(--ic-space-xxs));min-width:calc(var(--ic-space-md) + var(--ic-space-xxs))}:host(.dot.default){height:var(--ic-space-xs);width:var(--ic-space-xs);min-width:var(--ic-space-xs)}:host(.dot.small){height:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));min-width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs))}:host(.dot.large){height:var(--ic-space-sm);width:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host(.foreground-dark) ::slotted(*){fill:var(--ic-color-primary-text)}:host(.foreground-light) ::slotted(*){fill:white}:host(.foreground-dark) ic-typography{color:var(--ic-color-primary-text)}:host(.foreground-light) ic-typography{color:white}:host(.text) ic-typography{align-self:center;padding:0 calc((var(--ic-space-xs) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px)}:host(.text.small) ic-typography{padding:0 0.2132rem}:host(.text.large) ic-typography{padding:0 calc((var(--ic-space-sm) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px)}:host(.icon) ::slotted(svg){width:var(--ic-space-sm);height:var(--ic-space-sm);padding:var(--ic-space-xxxs)}:host(.icon.small) ::slotted(svg){width:var(--ic-space-xs);height:var(--ic-space-xs)}:host(.icon.large) ::slotted(svg){width:calc(var(--ic-space-sm) + var(--ic-space-xxxs));height:calc(var(--ic-space-sm) + var(--ic-space-xxxs));padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))}:host(.far){top:calc(-1 * var(--ic-space-xs));right:calc(-1 * var(--ic-space-xs))}:host(.far.small),:host(.dot.far.large){top:calc(-1 * var(--ic-space-xxs));right:calc(-1 * var(--ic-space-xxs))}:host(.dot.far),:host(.dot.far.small){top:calc(-1 * var(--ic-space-xxxs));right:calc(-1 * var(--ic-space-xxxs))}:host(.near){top:calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)));right:calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)))}:host(.dot.near){top:calc(-1 * var(--ic-space-1px));right:calc(-1 * var(--ic-space-1px))}:host(.inline){position:static}:host(.hide){visibility:hidden !important;transition:visibility var(--ic-transition-duration-slow)}@keyframes expand{from{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes shrink{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-4cf27b16.js');
6
- const helpers = require('./helpers-73d277d1.js');
6
+ const helpers = require('./helpers-081d6031.js');
7
7
  require('./types-17dba796.js');
8
8
 
9
9
  const icBreadcrumbGroupCss = ":host{display:block}:host ol{display:flex;list-style-type:none;align-items:center;flex-wrap:wrap;padding:0;margin:0}:host(.back) ol ::slotted(ic-breadcrumb){display:none}:host(.back) ol ::slotted(ic-breadcrumb.show){display:flex}:host(.collapsed) ol ::slotted(ic-breadcrumb.hide){display:none;opacity:0;visibility:hidden}:host(.collapsed) ol ::slotted(ic-breadcrumb.visuallyhidden){display:block;opacity:0;transition:all var(--ic-easing-transition-slow)}:host(.collapsed) ol ::slotted(ic-breadcrumb.fade){opacity:1}";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-4cf27b16.js');
6
6
  const chevronIcon = require('./chevron-icon-3dedd973.js');
7
- const helpers = require('./helpers-73d277d1.js');
7
+ const helpers = require('./helpers-081d6031.js');
8
8
  require('./types-17dba796.js');
9
9
 
10
10
  const backIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-4cf27b16.js');
6
- const helpers = require('./helpers-73d277d1.js');
6
+ const helpers = require('./helpers-081d6031.js');
7
7
  const types = require('./types-17dba796.js');
8
8
  const popper = require('./popper-16968c2e.js');
9
9
 
@@ -0,0 +1,131 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-4cf27b16.js');
6
+ const helpers = require('./helpers-261701cd.js');
7
+
8
+ const icCardHorizontalCss = "/*! 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:flex;--card-max-width:548px;--image-size:114px;--message-max-lines:2}.card.small{--card-max-width:360px}.card.large{--card-max-width:720px;--image-size:142px;--message-max-lines:3}.card.extra-large{--card-max-width:1130px;--image-size:186px;--message-max-lines:5}a{text-decoration:none !important;color:var(--ic-architectural-black) !important}button{border:none;background-color:transparent;outline:var(--ic-hc-focus-outline);padding:0}.card,.card.clickable{display:flex;flex-direction:row;border:var(--ic-border-default);border-radius:var(--ic-border-radius);box-sizing:border-box;text-align:left;color:var(--ic-architectural-black);transition:var(--ic-easing-transition-fast);position:relative;max-width:var(--card-max-width);height:-moz-fit-content;height:fit-content;width:var(--card-horizontal-width, -moz-fit-content);width:var(--card-horizontal-width, fit-content)}.dark.card,.dark.card.clickable{border:var(--ic-border-width) solid var(--ic-architectural-700)}.card.clickable:hover{background-color:var(--ic-action-default-bg-hover);border:var(--ic-border-hover);cursor:pointer}.card.clickable:focus,.card.clickable.focussed{background-color:var(--ic-action-default-bg-hover);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);border:var(--ic-border-pressed)}.card.clickable:active{background-color:var(--ic-action-default-bg-active);box-shadow:var(--ic-border-focus)}.card.disabled{border:var(--ic-border-disabled)}.card-header{display:flex;align-items:center}.icon{display:flex;align-items:center;padding-right:var(--ic-space-xs)}.card.disabled ::slotted(svg){fill:var(--ic-color-tertiary-text)}.card.clickable .card-title{color:var(--ic-hyperlink);text-decoration:underline;text-decoration-thickness:var(--ic-space-1px)}.card.clickable:hover .card-title,.card.clickable:focus .card-title,.card.clickable.focussed .card-title{display:inline-block;border-bottom:0.25rem solid !important;margin-bottom:-0.25rem !important;text-decoration:none}.card.clickable:active .card-title{text-decoration:none}.card.disabled .card-title{text-decoration:underline;text-decoration-thickness:var(--ic-space-1px);text-decoration-color:var(--ic-color-tertiary-text);color:var(--ic-color-tertiary-text)}.card-message{margin-top:var(--ic-space-xxxs);align-items:left}.card.disabled .card-message{color:var(--ic-color-tertiary-text)}.image{display:flex;height:var(--image-size);width:var(--image-size);border-radius:var(--ic-border-radius)}.card-content{display:flex;flex-direction:column;padding:var(--ic-space-md)}.card .card-title ::slotted([slot=\"heading\"]),.card .card-title ic-typography p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(var(--card-max-width) - var(--ic-space-xl))}.card.with-icon .card-title ::slotted([slot=\"heading\"]),.card.with-icon .card-title ic-typography p{max-width:calc(var(--card-max-width) - (2 * var(--ic-space-xl)))}.card.with-image .card-title ::slotted([slot=\"heading\"]),.card.with-image .card-title ic-typography p{max-width:calc(\n var(--card-max-width) - var(--image-size) - var(--ic-space-xl)\n )}.card.with-image.with-icon .card-title ::slotted([slot=\"heading\"]),.card.with-image.with-icon .card-title ic-typography p{max-width:calc(\n var(--card-max-width) - var(--image-size) - (2 * var(--ic-space-xl))\n )}.card .card-message ::slotted([slot=\"message\"]),.card .card-message ic-typography{display:-webkit-box;-webkit-box-orient:vertical;line-clamp:var(--message-max-lines, initial);-webkit-line-clamp:var(--message-max-lines, initial);overflow:hidden}@media (forced-colors: active){.card ::slotted(svg){fill:currentcolor}.card.disabled ::slotted(svg){fill:GrayText !important}.card.disabled{border-color:GrayText !important}.card.disabled .card-message,.card.disabled .card-title{color:GrayText}}";
9
+
10
+ const Card = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.hostMutationObserver = null;
14
+ this.hostMutationCallback = (mutationList) => {
15
+ if (mutationList.some(({ type, addedNodes, removedNodes }) => type === "childList"
16
+ ? helpers.checkSlotInChildMutations(addedNodes, removedNodes, "image")
17
+ : false)) {
18
+ index.forceUpdate(this);
19
+ }
20
+ };
21
+ this.parentFocussed = () => {
22
+ this.isFocussed = true;
23
+ };
24
+ this.parentBlurred = () => {
25
+ this.isFocussed = false;
26
+ };
27
+ this.appearance = "default";
28
+ this.isFocussed = false;
29
+ this.parentEl = null;
30
+ this.parentIsAnchorTag = false;
31
+ this.clickable = false;
32
+ this.disabled = false;
33
+ this.heading = undefined;
34
+ this.href = undefined;
35
+ this.hreflang = "";
36
+ this.message = "";
37
+ this.referrerpolicy = undefined;
38
+ this.rel = undefined;
39
+ this.size = "medium";
40
+ this.target = undefined;
41
+ }
42
+ disconnectedCallback() {
43
+ var _a;
44
+ if (this.parentIsAnchorTag) {
45
+ this.parentEl.removeEventListener("focus", this.parentFocussed);
46
+ this.parentEl.removeEventListener("blur", this.parentBlurred);
47
+ }
48
+ (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
49
+ }
50
+ componentWillLoad() {
51
+ this.parentEl = this.el.parentElement;
52
+ if (this.parentEl.tagName === "A") {
53
+ this.clickable = true;
54
+ this.parentIsAnchorTag = true;
55
+ this.parentEl.classList.add("ic-card-wrapper-link");
56
+ this.parentEl.addEventListener("focus", this.parentFocussed);
57
+ this.parentEl.addEventListener("blur", this.parentBlurred);
58
+ }
59
+ helpers.removeDisabledFalse(this.disabled, this.el);
60
+ }
61
+ componentDidLoad() {
62
+ !helpers.isSlotUsed(this.el, "heading") &&
63
+ helpers.onComponentRequiredPropUndefined([{ prop: this.heading, propName: "heading" }], "Card");
64
+ this.updateTheme();
65
+ this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
66
+ this.hostMutationObserver.observe(this.el, {
67
+ childList: true,
68
+ });
69
+ }
70
+ handleHostClick(event) {
71
+ if (this.disabled) {
72
+ event.stopImmediatePropagation();
73
+ }
74
+ }
75
+ themeChangeHandler(ev) {
76
+ const theme = ev.detail;
77
+ this.updateTheme(theme.mode);
78
+ }
79
+ /**
80
+ * Sets focus on the card.
81
+ */
82
+ async setFocus() {
83
+ if (this.el.shadowRoot.querySelector("a")) {
84
+ this.el.shadowRoot.querySelector("a").focus();
85
+ }
86
+ else if (this.el.shadowRoot.querySelector("button")) {
87
+ this.el.shadowRoot.querySelector("button").focus();
88
+ }
89
+ }
90
+ updateTheme(newTheme = null) {
91
+ const foregroundColor = helpers.getThemeFromContext(this.el, newTheme || null);
92
+ if (foregroundColor !== helpers.IcThemeForegroundEnum.Default) {
93
+ this.appearance = foregroundColor;
94
+ }
95
+ }
96
+ render() {
97
+ const { clickable, disabled, heading, message, href, hreflang, referrerpolicy, rel, target, parentIsAnchorTag, isFocussed, size, } = this;
98
+ const Component = parentIsAnchorTag
99
+ ? "div"
100
+ : clickable
101
+ ? this.href === undefined
102
+ ? "button"
103
+ : "a"
104
+ : "div";
105
+ const attrs = Component == "a" && {
106
+ href: href,
107
+ hrefLang: hreflang,
108
+ referrerPolicy: referrerpolicy,
109
+ rel: rel,
110
+ target: target,
111
+ };
112
+ return (index.h(Component, Object.assign({ class: {
113
+ ["card"]: true,
114
+ ["clickable"]: clickable && !disabled,
115
+ ["disabled"]: disabled,
116
+ ["focussed"]: isFocussed,
117
+ ["dark"]: this.appearance === helpers.IcThemeForegroundEnum.Dark,
118
+ [`${size}`]: true,
119
+ ["with-icon"]: helpers.isSlotUsed(this.el, "icon"),
120
+ ["with-image"]: helpers.isSlotUsed(this.el, "image"),
121
+ }, tabindex: clickable && !parentIsAnchorTag ? 0 : null, "aria-disabled": disabled ? "true" : null, disabled: disabled ? true : null }, attrs), helpers.isSlotUsed(this.el, "image") && (index.h("div", { class: { ["image"]: true } }, index.h("slot", { name: "image" }))), index.h("div", { class: "card-content" }, index.h("div", { class: "card-header" }, helpers.isSlotUsed(this.el, "icon") && (index.h("div", { class: "icon" }, index.h("slot", { name: "icon" }))), index.h("div", { class: "card-title" }, index.h("slot", { name: "heading" }, index.h("ic-typography", { variant: "h4" }, index.h("p", null, heading))))), (message || helpers.isSlotUsed(this.el, "message")) && (index.h("div", { class: {
122
+ ["card-message"]: true,
123
+ } }, message && (index.h("ic-typography", { variant: "body" }, message)), helpers.isSlotUsed(this.el, "message") && index.h("slot", { name: "message" })))), helpers.isSlotUsed(this.el, "badge") && index.h("slot", { name: "badge" })));
124
+ }
125
+ get el() { return index.getElement(this); }
126
+ };
127
+ Card.style = icCardHorizontalCss;
128
+
129
+ exports.ic_card_horizontal = Card;
130
+
131
+ //# sourceMappingURL=ic-card-horizontal.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"ic-card-horizontal.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,mBAAmB,GAAG,gmMAAgmM;;MCoC/mM,IAAI;;;QACP,yBAAoB,GAAqB,IAAI,CAAC;QAuH9C,yBAAoB,GAAG,CAAC,YAA8B;YAC5D,IACE,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,KACnD,IAAI,KAAK,WAAW;kBAChBA,iCAAyB,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC;kBAC5D,KAAK,CACV,EACD;gBACAC,iBAAW,CAAC,IAAI,CAAC,CAAC;aACnB;SACF,CAAC;QAEM,mBAAc,GAAG;YACvB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SACxB,CAAC;QAEM,kBAAa,GAAG;YACtB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;SACzB,CAAC;0BArIwC,SAAS;0BACpB,KAAK;wBACI,IAAI;iCACN,KAAK;yBAKI,KAAK;wBAKvB,KAAK;;;wBAeN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AI,EAAC,MAAM,GAAG,CAChB,CACP,EACDA,iBAAK,KAAK,EAAC,YAAY,IACrBA,kBAAM,IAAI,EAAC,SAAS,IAClBA,2BAAe,OAAO,EAAC,IAAI,IACzBA,mBAAI,OAAO,CAAK,CACF,CACX,CACH,CACF,EACL,CAAC,OAAO,IAAIJ,kBAAU,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC,MACzCI,iBACE,KAAK,EAAE;gBACL,CAAC,cAAc,GAAG,IAAI;aACvB,IAEA,OAAO,KACNA,2BAAe,OAAO,EAAC,MAAM,IAAE,OAAO,CAAiB,CACxD,EACAJ,kBAAU,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC,IAAII,kBAAM,IAAI,EAAC,SAAS,GAAQ,CAC3D,CACP,CACG,EACLJ,kBAAU,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,IAAII,kBAAM,IAAI,EAAC,OAAO,GAAQ,CACjD,EACZ;KACH;;;;;;;","names":["checkSlotInChildMutations","forceUpdate","removeDisabledFalse","isSlotUsed","onComponentRequiredPropUndefined","getThemeFromContext","IcThemeForegroundEnum","h"],"sources":["src/components/ic-card-horizontal/ic-card-horizontal.css?tag=ic-card-horizontal&encapsulation=shadow","src/components/ic-card-horizontal/ic-card-horizontal.tsx"],"sourcesContent":["@import \"../../../dist/core/normalize.css\";\n\n/**\n * @prop --card-horizontal-width: Width of the horizontal card\n */\n\n:host {\n display: flex;\n\n --card-max-width: 548px;\n --image-size: 114px;\n --message-max-lines: 2;\n}\n\n.card.small {\n --card-max-width: 360px;\n}\n\n.card.large {\n --card-max-width: 720px;\n --image-size: 142px;\n --message-max-lines: 3;\n}\n\n.card.extra-large {\n --card-max-width: 1130px;\n --image-size: 186px;\n --message-max-lines: 5;\n}\n\na {\n text-decoration: none !important;\n color: var(--ic-architectural-black) !important;\n}\n\nbutton {\n border: none;\n background-color: transparent;\n outline: var(--ic-hc-focus-outline);\n padding: 0;\n}\n\n.card,\n.card.clickable {\n display: flex;\n flex-direction: row;\n border: var(--ic-border-default);\n border-radius: var(--ic-border-radius);\n box-sizing: border-box;\n text-align: left;\n color: var(--ic-architectural-black);\n transition: var(--ic-easing-transition-fast);\n position: relative;\n max-width: var(--card-max-width);\n height: fit-content;\n width: var(--card-horizontal-width, fit-content);\n}\n\n.dark.card,\n.dark.card.clickable {\n border: var(--ic-border-width) solid var(--ic-architectural-700);\n}\n\n.card.clickable:hover {\n background-color: var(--ic-action-default-bg-hover);\n border: var(--ic-border-hover);\n cursor: pointer;\n}\n\n.card.clickable:focus,\n.card.clickable.focussed {\n background-color: var(--ic-action-default-bg-hover);\n box-shadow: var(--ic-border-focus);\n outline: var(--ic-hc-focus-outline);\n border: var(--ic-border-pressed);\n}\n\n.card.clickable:active {\n background-color: var(--ic-action-default-bg-active);\n box-shadow: var(--ic-border-focus);\n}\n\n.card.disabled {\n border: var(--ic-border-disabled);\n}\n\n.card-header {\n display: flex;\n align-items: center;\n}\n\n.icon {\n display: flex;\n align-items: center;\n padding-right: var(--ic-space-xs);\n}\n\n.card.disabled ::slotted(svg) {\n fill: var(--ic-color-tertiary-text);\n}\n\n.card.clickable .card-title {\n color: var(--ic-hyperlink);\n text-decoration: underline;\n text-decoration-thickness: var(--ic-space-1px);\n}\n\n.card.clickable:hover .card-title,\n.card.clickable:focus .card-title,\n.card.clickable.focussed .card-title {\n display: inline-block;\n border-bottom: 0.25rem solid !important;\n margin-bottom: -0.25rem !important;\n text-decoration: none;\n}\n\n.card.clickable:active .card-title {\n text-decoration: none;\n}\n\n.card.disabled .card-title {\n text-decoration: underline;\n text-decoration-thickness: var(--ic-space-1px);\n text-decoration-color: var(--ic-color-tertiary-text);\n color: var(--ic-color-tertiary-text);\n}\n\n.card-message {\n margin-top: var(--ic-space-xxxs);\n align-items: left;\n}\n\n.card.disabled .card-message {\n color: var(--ic-color-tertiary-text);\n}\n\n.image {\n display: flex;\n height: var(--image-size);\n width: var(--image-size);\n border-radius: var(--ic-border-radius);\n}\n\n.card-content {\n display: flex;\n flex-direction: column;\n padding: var(--ic-space-md);\n}\n\n.card .card-title ::slotted([slot=\"heading\"]),\n.card .card-title ic-typography p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: calc(var(--card-max-width) - var(--ic-space-xl));\n}\n\n.card.with-icon .card-title ::slotted([slot=\"heading\"]),\n.card.with-icon .card-title ic-typography p {\n max-width: calc(var(--card-max-width) - (2 * var(--ic-space-xl)));\n}\n\n.card.with-image .card-title ::slotted([slot=\"heading\"]),\n.card.with-image .card-title ic-typography p {\n max-width: calc(\n var(--card-max-width) - var(--image-size) - var(--ic-space-xl)\n );\n}\n\n.card.with-image.with-icon .card-title ::slotted([slot=\"heading\"]),\n.card.with-image.with-icon .card-title ic-typography p {\n max-width: calc(\n var(--card-max-width) - var(--image-size) - (2 * var(--ic-space-xl))\n );\n}\n\n.card .card-message ::slotted([slot=\"message\"]),\n.card .card-message ic-typography {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n line-clamp: var(--message-max-lines, initial);\n -webkit-line-clamp: var(--message-max-lines, initial);\n overflow: hidden;\n}\n\n/** High Contrast **/\n@media (forced-colors: active) {\n .card ::slotted(svg) {\n fill: currentcolor;\n }\n\n .card.disabled ::slotted(svg) {\n fill: GrayText !important;\n }\n\n .card.disabled {\n border-color: GrayText !important;\n }\n\n .card.disabled .card-message,\n .card.disabled .card-title {\n color: GrayText;\n }\n}\n\n/* Add back in after storybook has the `color-scheme: light dark` code */\n\n/* @media (prefers-color-scheme: dark) and (not (forced-colors: active)) {\n ::slotted([slot=\"icon\"]) {\n fill: var(--ic-architectural-white);\n }\n} */\n","import {\n Component,\n Element,\n Listen,\n Prop,\n State,\n h,\n Method,\n forceUpdate,\n} from \"@stencil/core\";\nimport {\n onComponentRequiredPropUndefined,\n isSlotUsed,\n getThemeFromContext,\n removeDisabledFalse,\n checkSlotInChildMutations,\n} from \"../../utils/helpers\";\nimport {\n IcTheme,\n IcThemeForeground,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\nimport { IcCardSizes } from \"./ic-card-horizontal.types\";\n\n/**\n * @slot heading - Content will be placed at the top of the horizontal card to the right of the icon.\n * @slot message - Content will be placed in the main body of the horizontal card.\n * @slot image - Content will be placed to the left of all other content.\n * @slot icon - Content will be placed to the left of the horizontal card heading.\n * @slot badge - Badge component overlaying the top right of the horizontal card.\n */\n@Component({\n tag: \"ic-card-horizontal\",\n styleUrl: \"ic-card-horizontal.css\",\n shadow: true,\n})\nexport class Card {\n private hostMutationObserver: MutationObserver = null;\n\n @Element() el: HTMLIcCardHorizontalElement;\n\n @State() appearance?: IcThemeForeground = \"default\";\n @State() isFocussed: boolean = false;\n @State() parentEl: HTMLElement | null = null;\n @State() parentIsAnchorTag: boolean = false;\n\n /**\n * If `true`, the horizontal card will be a clickable variant, instead of static.\n */\n @Prop({ mutable: true }) clickable?: boolean = false;\n\n /**\n * If `true`, the horizontal card will be disabled if it is clickable.\n */\n @Prop() disabled?: boolean = false;\n\n /**\n * The heading for the horizontal card. This is required, unless a slotted heading is used.\n */\n @Prop() heading?: string;\n\n /**\n * The URL that the clickable horizontal card link points to. If set, the clickable horizontal card will render as an \"a\" tag, otherwise it will render as a button.\n */\n @Prop() href?: string | undefined;\n\n /**\n * The human language of the linked URL.\n */\n @Prop() hreflang?: string = \"\";\n\n /**\n * The main body message of the horizontal card.\n */\n @Prop() message?: string = \"\";\n\n /**\n * How much of the referrer to send when following the link.\n */\n @Prop() referrerpolicy?: ReferrerPolicy;\n\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n @Prop() rel?: string;\n\n /**\n * The size of the horizontal card.\n */\n @Prop() size: IcCardSizes = \"medium\";\n\n /**\n * The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe).\n */\n @Prop() target?: string;\n\n disconnectedCallback(): void {\n if (this.parentIsAnchorTag) {\n this.parentEl.removeEventListener(\"focus\", this.parentFocussed);\n this.parentEl.removeEventListener(\"blur\", this.parentBlurred);\n }\n this.hostMutationObserver?.disconnect();\n }\n\n componentWillLoad(): void {\n this.parentEl = this.el.parentElement;\n\n if (this.parentEl.tagName === \"A\") {\n this.clickable = true;\n this.parentIsAnchorTag = true;\n this.parentEl.classList.add(\"ic-card-wrapper-link\");\n this.parentEl.addEventListener(\"focus\", this.parentFocussed);\n this.parentEl.addEventListener(\"blur\", this.parentBlurred);\n }\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n !isSlotUsed(this.el, \"heading\") &&\n onComponentRequiredPropUndefined(\n [{ prop: this.heading, propName: \"heading\" }],\n \"Card\"\n );\n this.updateTheme();\n\n this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n\n @Listen(\"click\", { capture: true })\n handleHostClick(event: Event): void {\n if (this.disabled) {\n event.stopImmediatePropagation();\n }\n }\n\n @Listen(\"themeChange\", { target: \"document\" })\n themeChangeHandler(ev: CustomEvent): void {\n const theme: IcTheme = ev.detail;\n this.updateTheme(theme.mode);\n }\n\n /**\n * Sets focus on the card.\n */\n @Method()\n async setFocus(): Promise<void> {\n if (this.el.shadowRoot.querySelector(\"a\")) {\n this.el.shadowRoot.querySelector(\"a\").focus();\n } else if (this.el.shadowRoot.querySelector(\"button\")) {\n this.el.shadowRoot.querySelector(\"button\").focus();\n }\n }\n\n private hostMutationCallback = (mutationList: MutationRecord[]): void => {\n if (\n mutationList.some(({ type, addedNodes, removedNodes }) =>\n type === \"childList\"\n ? checkSlotInChildMutations(addedNodes, removedNodes, \"image\")\n : false\n )\n ) {\n forceUpdate(this);\n }\n };\n\n private parentFocussed = (): void => {\n this.isFocussed = true;\n };\n\n private parentBlurred = (): void => {\n this.isFocussed = false;\n };\n\n private updateTheme(newTheme: IcThemeForeground = null): void {\n const foregroundColor = getThemeFromContext(this.el, newTheme || null);\n\n if (foregroundColor !== IcThemeForegroundEnum.Default) {\n this.appearance = foregroundColor;\n }\n }\n\n render() {\n const {\n clickable,\n disabled,\n heading,\n message,\n href,\n hreflang,\n referrerpolicy,\n rel,\n target,\n parentIsAnchorTag,\n isFocussed,\n size,\n } = this;\n\n const Component = parentIsAnchorTag\n ? \"div\"\n : clickable\n ? this.href === undefined\n ? \"button\"\n : \"a\"\n : \"div\";\n\n const attrs = Component == \"a\" && {\n href: href,\n hrefLang: hreflang,\n referrerPolicy: referrerpolicy,\n rel: rel,\n target: target,\n };\n\n return (\n <Component\n class={{\n [\"card\"]: true,\n [\"clickable\"]: clickable && !disabled,\n [\"disabled\"]: disabled,\n [\"focussed\"]: isFocussed,\n [\"dark\"]: this.appearance === IcThemeForegroundEnum.Dark,\n [`${size}`]: true,\n [\"with-icon\"]: isSlotUsed(this.el, \"icon\"),\n [\"with-image\"]: isSlotUsed(this.el, \"image\"),\n }}\n tabindex={clickable && !parentIsAnchorTag ? 0 : null}\n aria-disabled={disabled ? \"true\" : null}\n disabled={disabled ? true : null}\n {...attrs}\n >\n {isSlotUsed(this.el, \"image\") && (\n <div class={{ [\"image\"]: true }}>\n <slot name=\"image\"></slot>\n </div>\n )}\n <div class=\"card-content\">\n <div class=\"card-header\">\n {isSlotUsed(this.el, \"icon\") && (\n <div class=\"icon\">\n <slot name=\"icon\" />\n </div>\n )}\n <div class=\"card-title\">\n <slot name=\"heading\">\n <ic-typography variant=\"h4\">\n <p>{heading}</p>\n </ic-typography>\n </slot>\n </div>\n </div>\n {(message || isSlotUsed(this.el, \"message\")) && (\n <div\n class={{\n [\"card-message\"]: true,\n }}\n >\n {message && (\n <ic-typography variant=\"body\">{message}</ic-typography>\n )}\n {isSlotUsed(this.el, \"message\") && <slot name=\"message\"></slot>}\n </div>\n )}\n </div>\n {isSlotUsed(this.el, \"badge\") && <slot name=\"badge\"></slot>}\n </Component>\n );\n }\n}\n"],"version":3}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-4cf27b16.js');
6
- const helpers = require('./helpers-73d277d1.js');
6
+ const helpers = require('./helpers-081d6031.js');
7
7
  const types = require('./types-17dba796.js');
8
8
  const chevronIcon = require('./chevron-icon-3dedd973.js');
9
9
 
@@ -12,6 +12,7 @@ const icCardCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/n
12
12
  const Card = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
+ this.hostMutationObserver = null;
15
16
  this.parentFocussed = () => {
16
17
  this.isFocussed = true;
17
18
  };
@@ -21,6 +22,23 @@ const Card = class {
21
22
  this.toggleExpanded = () => {
22
23
  this.areaExpanded = !this.areaExpanded;
23
24
  };
25
+ this.hostMutationCallback = (mutationList) => {
26
+ if (mutationList.some(({ type, addedNodes, removedNodes }) => type === "childList"
27
+ ? helpers.checkSlotInChildMutations(addedNodes, removedNodes, [
28
+ "message",
29
+ "adornment",
30
+ "expanded-content",
31
+ "image-top",
32
+ "image-mid",
33
+ "icon",
34
+ "interaction-button",
35
+ "badge",
36
+ "interaction-controls",
37
+ ])
38
+ : false)) {
39
+ index.forceUpdate(this);
40
+ }
41
+ };
24
42
  this.appearance = "default";
25
43
  this.areaExpanded = false;
26
44
  this.isFocussed = false;
@@ -40,10 +58,12 @@ const Card = class {
40
58
  this.target = undefined;
41
59
  }
42
60
  disconnectedCallback() {
61
+ var _a;
43
62
  if (this.parentIsAnchorTag) {
44
63
  this.parentEl.removeEventListener("focus", this.parentFocussed);
45
64
  this.parentEl.removeEventListener("blur", this.parentBlurred);
46
65
  }
66
+ (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
47
67
  }
48
68
  componentWillLoad() {
49
69
  this.parentEl = this.el.parentElement;
@@ -60,6 +80,10 @@ const Card = class {
60
80
  !helpers.isSlotUsed(this.el, "heading") &&
61
81
  helpers.onComponentRequiredPropUndefined([{ prop: this.heading, propName: "heading" }], "Card");
62
82
  this.updateTheme();
83
+ this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
84
+ this.hostMutationObserver.observe(this.el, {
85
+ childList: true,
86
+ });
63
87
  }
64
88
  handleHostClick(event) {
65
89
  if (this.disabled) {