@ukic/web-components 2.29.1 → 3.0.0-alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (955) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-94b33ab0.js → helpers-f1cf5156.js} +20 -11
  3. package/dist/cjs/helpers-f1cf5156.js.map +1 -0
  4. package/dist/cjs/ic-accordion-group.cjs.entry.js +9 -10
  5. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-accordion.cjs.entry.js +5 -6
  7. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-alert.cjs.entry.js +4 -7
  9. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-back-to-top.cjs.entry.js +12 -16
  11. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-badge.cjs.entry.js +22 -51
  13. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +26 -14
  15. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-breadcrumb.cjs.entry.js +8 -7
  17. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-button_3.cjs.entry.js +50 -41
  19. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-card-vertical.cjs.entry.js +149 -0
  21. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -0
  22. package/dist/cjs/ic-checkbox-group.cjs.entry.js +7 -7
  23. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-checkbox.cjs.entry.js +6 -16
  25. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ic-chip.cjs.entry.js +22 -23
  27. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
  29. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-data-list.cjs.entry.js +32 -0
  31. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -0
  32. package/dist/cjs/ic-data-row.cjs.entry.js +12 -12
  33. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-dialog.cjs.entry.js +12 -98
  35. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-divider.cjs.entry.js +3 -4
  37. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-empty-state.cjs.entry.js +7 -8
  39. package/dist/cjs/ic-empty-state.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-footer-link-group.cjs.entry.js +9 -10
  41. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-footer-link.cjs.entry.js +6 -8
  43. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-footer.cjs.entry.js +8 -9
  45. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-hero.cjs.entry.js +9 -11
  47. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -6
  49. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +21 -27
  51. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-input-label_2.cjs.entry.js +14 -16
  53. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-link.cjs.entry.js +21 -12
  55. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -3
  57. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-menu-item.cjs.entry.js +3 -4
  59. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -4
  61. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-navigation-group.cjs.entry.js +9 -10
  63. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-navigation-item.cjs.entry.js +6 -7
  65. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ic-navigation-menu.cjs.entry.js +3 -4
  67. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ic-page-header.cjs.entry.js +8 -10
  69. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -3
  71. package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-pagination.cjs.entry.js +33 -32
  73. package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-popover-menu.cjs.entry.js +3 -4
  75. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-radio-group.cjs.entry.js +11 -13
  77. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-radio-option.cjs.entry.js +5 -19
  79. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-search-bar.cjs.entry.js +23 -30
  81. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-select.cjs.entry.js +19 -28
  83. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-side-navigation.cjs.entry.js +7 -8
  85. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-skeleton.cjs.entry.js +5 -6
  87. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-status-tag.cjs.entry.js +6 -15
  89. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-step.cjs.entry.js +41 -46
  91. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-stepper.cjs.entry.js +27 -18
  93. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-switch.cjs.entry.js +7 -9
  95. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-tab-context.cjs.entry.js +34 -28
  97. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-tab-group.cjs.entry.js +25 -11
  99. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ic-tab-panel.cjs.entry.js +12 -11
  101. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ic-tab.cjs.entry.js +10 -9
  103. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ic-text-field.cjs.entry.js +55 -57
  105. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  106. package/dist/cjs/ic-theme.cjs.entry.js +27 -4
  107. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  108. package/dist/cjs/ic-toast-region.cjs.entry.js +0 -7
  109. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ic-toast.cjs.entry.js +83 -36
  111. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +17 -17
  113. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  114. package/dist/cjs/ic-toggle-button.cjs.entry.js +14 -15
  115. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  116. package/dist/cjs/ic-top-navigation.cjs.entry.js +8 -9
  117. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  118. package/dist/cjs/ic-typography.cjs.entry.js +9 -8
  119. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  120. package/dist/cjs/index-f982899d.js +12 -12
  121. package/dist/cjs/loader.cjs.js +1 -1
  122. package/dist/collection/collection-manifest.json +3 -3
  123. package/dist/collection/components/ic-accordion/ic-accordion.css +13 -11
  124. package/dist/collection/components/ic-accordion/ic-accordion.js +5 -5
  125. package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -1
  126. package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +9 -5
  127. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js +12 -12
  128. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js.map +1 -1
  129. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js +7 -7
  130. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js.map +1 -1
  131. package/dist/collection/components/ic-alert/ic-alert.css +16 -11
  132. package/dist/collection/components/ic-alert/ic-alert.js +0 -19
  133. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  134. package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +21 -61
  135. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +10 -13
  136. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
  137. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js +9 -10
  138. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +1 -1
  139. package/dist/collection/components/ic-badge/ic-badge.css +65 -41
  140. package/dist/collection/components/ic-badge/ic-badge.js +52 -100
  141. package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
  142. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +40 -50
  143. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +1 -1
  144. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +16 -11
  145. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +54 -31
  146. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
  147. package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js +3 -3
  148. package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js.map +1 -1
  149. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.css +7 -5
  150. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +66 -33
  151. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
  152. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js +3 -3
  153. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js.map +1 -1
  154. package/dist/collection/components/ic-button/ic-button.css +263 -238
  155. package/dist/collection/components/ic-button/ic-button.js +16 -18
  156. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  157. package/dist/collection/components/{ic-card/ic-card.css → ic-card-vertical/ic-card-vertical.css} +13 -7
  158. package/dist/collection/components/{ic-card/ic-card.js → ic-card-vertical/ic-card-vertical.js} +5 -5
  159. package/dist/collection/components/ic-card-vertical/ic-card-vertical.js.map +1 -0
  160. package/dist/collection/components/{ic-card/test/basic/ic-card.spec.js → ic-card-vertical/test/basic/ic-card-vertical.spec.js} +41 -41
  161. package/dist/collection/components/ic-card-vertical/test/basic/ic-card-vertical.spec.js.map +1 -0
  162. package/dist/collection/components/ic-checkbox/ic-checkbox.css +20 -14
  163. package/dist/collection/components/ic-checkbox/ic-checkbox.js +5 -137
  164. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  165. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +6 -4
  166. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +7 -27
  167. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  168. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js +2 -2
  169. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +1 -1
  170. package/dist/collection/components/ic-chip/ic-chip.css +66 -53
  171. package/dist/collection/components/ic-chip/ic-chip.js +44 -68
  172. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  173. package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js +16 -0
  174. package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js.map +1 -1
  175. package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +28 -10
  176. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +1 -1
  177. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
  178. package/dist/collection/components/{ic-data-entity/ic-data-entity.css → ic-data-list/ic-data-list.css} +7 -3
  179. package/dist/collection/components/{ic-data-entity/ic-data-entity.js → ic-data-list/ic-data-list.js} +33 -27
  180. package/dist/collection/components/ic-data-list/ic-data-list.js.map +1 -0
  181. package/dist/collection/components/{ic-data-entity/test/basic/ic-data-entity.spec.js → ic-data-list/test/basic/ic-data-list.spec.js} +32 -32
  182. package/dist/collection/components/ic-data-list/test/basic/ic-data-list.spec.js.map +1 -0
  183. package/dist/collection/components/ic-data-row/ic-data-row.css +6 -3
  184. package/dist/collection/components/ic-data-row/ic-data-row.js +28 -24
  185. package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
  186. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js +4 -4
  187. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js.map +1 -1
  188. package/dist/collection/components/ic-dialog/ic-dialog.css +3 -12
  189. package/dist/collection/components/ic-dialog/ic-dialog.js +11 -214
  190. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  191. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js +3 -226
  192. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +1 -1
  193. package/dist/collection/components/ic-divider/ic-divider.css +2 -2
  194. package/dist/collection/components/ic-empty-state/ic-empty-state.css +6 -6
  195. package/dist/collection/components/ic-empty-state/ic-empty-state.js +9 -9
  196. package/dist/collection/components/ic-empty-state/ic-empty-state.js.map +1 -1
  197. package/dist/collection/components/ic-footer/ic-footer.css +16 -9
  198. package/dist/collection/components/ic-footer/ic-footer.js +6 -6
  199. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  200. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js +1 -1
  201. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +1 -1
  202. package/dist/collection/components/ic-footer-link/ic-footer-link.css +36 -105
  203. package/dist/collection/components/ic-footer-link/ic-footer-link.js +4 -5
  204. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  205. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +15 -11
  206. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +9 -9
  207. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  208. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js +7 -7
  209. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +1 -1
  210. package/dist/collection/components/ic-hero/ic-hero.css +14 -14
  211. package/dist/collection/components/ic-hero/ic-hero.js +11 -33
  212. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  213. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js +6 -6
  214. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +1 -1
  215. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +8 -8
  216. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +3 -3
  217. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -1
  218. package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +40 -35
  219. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +12 -57
  220. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
  221. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js +9 -9
  222. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +1 -1
  223. package/dist/collection/components/ic-input-label/ic-input-label.css +7 -7
  224. package/dist/collection/components/ic-input-label/ic-input-label.js +24 -46
  225. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  226. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js +4 -4
  227. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +1 -1
  228. package/dist/collection/components/ic-input-validation/ic-input-validation.css +4 -4
  229. package/dist/collection/components/ic-input-validation/ic-input-validation.js +2 -2
  230. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  231. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js +4 -4
  232. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js.map +1 -1
  233. package/dist/collection/components/ic-link/ic-link.css +101 -45
  234. package/dist/collection/components/ic-link/ic-link.js +57 -49
  235. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  236. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js +16 -111
  237. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +1 -1
  238. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +23 -16
  239. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +73 -50
  240. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  241. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -1
  242. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js +3 -2
  243. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js.map +1 -1
  244. package/dist/collection/components/ic-menu/ic-menu.css +27 -16
  245. package/dist/collection/components/ic-menu/ic-menu.js +9 -32
  246. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  247. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js +1 -1
  248. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +1 -1
  249. package/dist/collection/components/ic-menu-group/ic-menu-group.css +2 -1
  250. package/dist/collection/components/ic-menu-item/ic-menu-item.css +51 -36
  251. package/dist/collection/components/ic-menu-item/ic-menu-item.js +1 -1
  252. package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
  253. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +1 -1
  254. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  255. package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +14 -12
  256. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +7 -7
  257. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  258. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +10 -7
  259. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +4 -4
  260. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  261. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +7 -2
  262. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +1 -1
  263. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  264. package/dist/collection/components/ic-page-header/ic-page-header.css +2 -2
  265. package/dist/collection/components/ic-page-header/ic-page-header.js +8 -30
  266. package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
  267. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js +15 -15
  268. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js.map +1 -1
  269. package/dist/collection/components/ic-pagination/ic-pagination.js +38 -36
  270. package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
  271. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js +26 -26
  272. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +1 -1
  273. package/dist/collection/components/ic-pagination-item/ic-pagination-item.css +13 -10
  274. package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +8 -4
  275. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +1 -1
  276. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  277. package/dist/collection/components/ic-radio-group/ic-radio-group.css +5 -5
  278. package/dist/collection/components/ic-radio-group/ic-radio-group.js +12 -34
  279. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  280. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +1 -1
  281. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -1
  282. package/dist/collection/components/ic-radio-option/ic-radio-option.css +11 -8
  283. package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -126
  284. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  285. package/dist/collection/components/ic-search-bar/ic-search-bar.css +11 -11
  286. package/dist/collection/components/ic-search-bar/ic-search-bar.js +32 -99
  287. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  288. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js +15 -15
  289. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +1 -1
  290. package/dist/collection/components/ic-select/ic-select.css +23 -21
  291. package/dist/collection/components/ic-select/ic-select.js +16 -151
  292. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  293. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js +6 -6
  294. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +1 -1
  295. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +18 -17
  296. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +6 -6
  297. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  298. package/dist/collection/components/ic-skeleton/ic-skeleton.css +5 -28
  299. package/dist/collection/components/ic-skeleton/ic-skeleton.js +17 -33
  300. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
  301. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js +1 -1
  302. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js.map +1 -1
  303. package/dist/collection/components/ic-status-tag/ic-status-tag.css +20 -17
  304. package/dist/collection/components/ic-status-tag/ic-status-tag.js +24 -61
  305. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
  306. package/dist/collection/components/ic-status-tag/ic-status-tag.types.js.map +1 -1
  307. package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js +2 -2
  308. package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js.map +1 -1
  309. package/dist/collection/components/ic-step/ic-step.css +97 -128
  310. package/dist/collection/components/ic-step/ic-step.js +77 -54
  311. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  312. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js +30 -30
  313. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js.map +1 -1
  314. package/dist/collection/components/ic-stepper/ic-stepper.css +4 -4
  315. package/dist/collection/components/ic-stepper/ic-stepper.js +51 -33
  316. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  317. package/dist/collection/components/ic-stepper/test/basic/ic-stepper-test-examples.js +37 -37
  318. package/dist/collection/components/ic-stepper/test/basic/ic-stepper-test-examples.js.map +1 -1
  319. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js +237 -237
  320. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +1 -1
  321. package/dist/collection/components/ic-switch/ic-switch.css +2 -2
  322. package/dist/collection/components/ic-switch/ic-switch.js +7 -29
  323. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  324. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js +1 -1
  325. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +1 -1
  326. package/dist/collection/components/ic-tab/ic-tab.css +47 -21
  327. package/dist/collection/components/ic-tab/ic-tab.js +56 -34
  328. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  329. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js +2 -2
  330. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +1 -1
  331. package/dist/collection/components/ic-tab-context/ic-tab-context.js +79 -76
  332. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  333. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js +3 -3
  334. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js.map +1 -1
  335. package/dist/collection/components/ic-tab-group/ic-tab-group.css +7 -8
  336. package/dist/collection/components/ic-tab-group/ic-tab-group.js +68 -54
  337. package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
  338. package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +2 -2
  339. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +91 -30
  340. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
  341. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js +50 -0
  342. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js.map +1 -0
  343. package/dist/collection/components/ic-text-field/ic-text-field.css +15 -9
  344. package/dist/collection/components/ic-text-field/ic-text-field.js +70 -111
  345. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  346. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js +36 -14
  347. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +1 -1
  348. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js +57 -56
  349. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +1 -1
  350. package/dist/collection/components/ic-theme/ic-theme.js +50 -2
  351. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
  352. package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js +13 -11
  353. package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js.map +1 -1
  354. package/dist/collection/components/ic-toast/ic-toast.css +21 -7
  355. package/dist/collection/components/ic-toast/ic-toast.js +83 -32
  356. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  357. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +43 -7
  358. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
  359. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -43
  360. package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -1
  361. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js +0 -20
  362. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js.map +1 -1
  363. package/dist/collection/components/ic-toggle-button/ic-toggle-button.css +58 -51
  364. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +16 -16
  365. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js.map +1 -1
  366. package/dist/collection/components/ic-toggle-button/test/basic/ic-toggle-button.spec.js +4 -4
  367. package/dist/collection/components/ic-toggle-button/test/basic/ic-toggle-button.spec.js.map +1 -1
  368. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.css +11 -8
  369. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +18 -18
  370. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js.map +1 -1
  371. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.types.js.map +1 -1
  372. package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js +19 -19
  373. package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js.map +1 -1
  374. package/dist/collection/components/ic-tooltip/ic-tooltip.css +14 -5
  375. package/dist/collection/components/ic-tooltip/ic-tooltip.js +30 -2
  376. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  377. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js +14 -0
  378. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js.map +1 -1
  379. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +9 -7
  380. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +6 -6
  381. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  382. package/dist/collection/components/ic-typography/ic-typography.css +12 -6
  383. package/dist/collection/components/ic-typography/ic-typography.js +31 -5
  384. package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
  385. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js +14 -0
  386. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +1 -1
  387. package/dist/collection/utils/types.js.map +1 -1
  388. package/dist/components/helpers.js +13 -2
  389. package/dist/components/helpers.js.map +1 -1
  390. package/dist/components/ic-accordion-group.js +9 -9
  391. package/dist/components/ic-accordion-group.js.map +1 -1
  392. package/dist/components/ic-accordion.js +4 -4
  393. package/dist/components/ic-accordion.js.map +1 -1
  394. package/dist/components/ic-alert.js +132 -1
  395. package/dist/components/ic-alert.js.map +1 -1
  396. package/dist/components/ic-back-to-top.js +24 -15
  397. package/dist/components/ic-back-to-top.js.map +1 -1
  398. package/dist/components/ic-badge.js +25 -54
  399. package/dist/components/ic-badge.js.map +1 -1
  400. package/dist/components/ic-breadcrumb-group.js +31 -16
  401. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  402. package/dist/components/ic-breadcrumb2.js +10 -7
  403. package/dist/components/ic-breadcrumb2.js.map +1 -1
  404. package/dist/components/ic-button2.js +16 -18
  405. package/dist/components/ic-button2.js.map +1 -1
  406. package/dist/components/{ic-data-entity.d.ts → ic-card-vertical.d.ts} +4 -4
  407. package/dist/components/{ic-card.js → ic-card-vertical.js} +11 -12
  408. package/dist/components/ic-card-vertical.js.map +1 -0
  409. package/dist/components/ic-checkbox-group.js +7 -7
  410. package/dist/components/ic-checkbox-group.js.map +1 -1
  411. package/dist/components/ic-checkbox.js +6 -21
  412. package/dist/components/ic-checkbox.js.map +1 -1
  413. package/dist/components/ic-chip.js +24 -23
  414. package/dist/components/ic-chip.js.map +1 -1
  415. package/dist/components/ic-classification-banner.js +2 -2
  416. package/dist/components/ic-classification-banner.js.map +1 -1
  417. package/dist/components/{ic-card.d.ts → ic-data-list.d.ts} +4 -4
  418. package/dist/components/ic-data-list.js +56 -0
  419. package/dist/components/ic-data-list.js.map +1 -0
  420. package/dist/components/ic-data-row.js +14 -13
  421. package/dist/components/ic-data-row.js.map +1 -1
  422. package/dist/components/ic-dialog.js +14 -112
  423. package/dist/components/ic-dialog.js.map +1 -1
  424. package/dist/components/ic-divider2.js +2 -3
  425. package/dist/components/ic-divider2.js.map +1 -1
  426. package/dist/components/ic-empty-state.js +7 -7
  427. package/dist/components/ic-empty-state.js.map +1 -1
  428. package/dist/components/ic-footer-link-group.js +10 -10
  429. package/dist/components/ic-footer-link-group.js.map +1 -1
  430. package/dist/components/ic-footer-link.js +13 -8
  431. package/dist/components/ic-footer-link.js.map +1 -1
  432. package/dist/components/ic-footer.js +8 -9
  433. package/dist/components/ic-footer.js.map +1 -1
  434. package/dist/components/ic-hero.js +9 -12
  435. package/dist/components/ic-hero.js.map +1 -1
  436. package/dist/components/ic-horizontal-scroll2.js +5 -6
  437. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  438. package/dist/components/ic-input-component-container2.js +12 -18
  439. package/dist/components/ic-input-component-container2.js.map +1 -1
  440. package/dist/components/ic-input-label2.js +10 -12
  441. package/dist/components/ic-input-label2.js.map +1 -1
  442. package/dist/components/ic-input-validation2.js +4 -5
  443. package/dist/components/ic-input-validation2.js.map +1 -1
  444. package/dist/components/ic-link2.js +22 -13
  445. package/dist/components/ic-link2.js.map +1 -1
  446. package/dist/components/ic-loading-indicator2.js +29 -23
  447. package/dist/components/ic-loading-indicator2.js.map +1 -1
  448. package/dist/components/ic-menu-group.js +2 -2
  449. package/dist/components/ic-menu-group.js.map +1 -1
  450. package/dist/components/ic-menu-item2.js +3 -3
  451. package/dist/components/ic-menu-item2.js.map +1 -1
  452. package/dist/components/ic-menu2.js +8 -11
  453. package/dist/components/ic-menu2.js.map +1 -1
  454. package/dist/components/ic-navigation-button.js +2 -3
  455. package/dist/components/ic-navigation-button.js.map +1 -1
  456. package/dist/components/ic-navigation-group.js +9 -9
  457. package/dist/components/ic-navigation-group.js.map +1 -1
  458. package/dist/components/ic-navigation-item.js +6 -6
  459. package/dist/components/ic-navigation-item.js.map +1 -1
  460. package/dist/components/ic-navigation-menu2.js +3 -3
  461. package/dist/components/ic-navigation-menu2.js.map +1 -1
  462. package/dist/components/ic-page-header.js +8 -10
  463. package/dist/components/ic-page-header.js.map +1 -1
  464. package/dist/components/ic-pagination-item2.js +2 -2
  465. package/dist/components/ic-pagination-item2.js.map +1 -1
  466. package/dist/components/ic-pagination.js +36 -34
  467. package/dist/components/ic-pagination.js.map +1 -1
  468. package/dist/components/ic-popover-menu.js +3 -3
  469. package/dist/components/ic-popover-menu.js.map +1 -1
  470. package/dist/components/ic-radio-group.js +11 -13
  471. package/dist/components/ic-radio-group.js.map +1 -1
  472. package/dist/components/ic-radio-option.js +6 -25
  473. package/dist/components/ic-radio-option.js.map +1 -1
  474. package/dist/components/ic-search-bar.js +21 -29
  475. package/dist/components/ic-search-bar.js.map +1 -1
  476. package/dist/components/ic-select.js +15 -31
  477. package/dist/components/ic-select.js.map +1 -1
  478. package/dist/components/ic-side-navigation.js +7 -8
  479. package/dist/components/ic-side-navigation.js.map +1 -1
  480. package/dist/components/ic-skeleton.js +6 -8
  481. package/dist/components/ic-skeleton.js.map +1 -1
  482. package/dist/components/ic-status-tag.js +6 -15
  483. package/dist/components/ic-status-tag.js.map +1 -1
  484. package/dist/components/ic-step.js +48 -51
  485. package/dist/components/ic-step.js.map +1 -1
  486. package/dist/components/ic-stepper.js +28 -17
  487. package/dist/components/ic-stepper.js.map +1 -1
  488. package/dist/components/ic-switch.js +7 -9
  489. package/dist/components/ic-switch.js.map +1 -1
  490. package/dist/components/ic-tab-context.js +39 -31
  491. package/dist/components/ic-tab-context.js.map +1 -1
  492. package/dist/components/ic-tab-group.js +27 -13
  493. package/dist/components/ic-tab-group.js.map +1 -1
  494. package/dist/components/ic-tab-panel.js +17 -13
  495. package/dist/components/ic-tab-panel.js.map +1 -1
  496. package/dist/components/ic-tab.js +11 -9
  497. package/dist/components/ic-tab.js.map +1 -1
  498. package/dist/components/ic-text-field2.js +52 -57
  499. package/dist/components/ic-text-field2.js.map +1 -1
  500. package/dist/components/ic-theme.js +33 -7
  501. package/dist/components/ic-theme.js.map +1 -1
  502. package/dist/components/ic-toast-region.js +1 -9
  503. package/dist/components/ic-toast-region.js.map +1 -1
  504. package/dist/components/ic-toast.js +86 -37
  505. package/dist/components/ic-toast.js.map +1 -1
  506. package/dist/components/ic-toggle-button-group.js +17 -17
  507. package/dist/components/ic-toggle-button-group.js.map +1 -1
  508. package/dist/components/ic-toggle-button.js +14 -14
  509. package/dist/components/ic-toggle-button.js.map +1 -1
  510. package/dist/components/ic-tooltip2.js +8 -3
  511. package/dist/components/ic-tooltip2.js.map +1 -1
  512. package/dist/components/ic-top-navigation.js +7 -8
  513. package/dist/components/ic-top-navigation.js.map +1 -1
  514. package/dist/components/ic-typography2.js +9 -6
  515. package/dist/components/ic-typography2.js.map +1 -1
  516. package/dist/core/core.css +101 -29
  517. package/dist/core/core.esm.js +1 -1
  518. package/dist/core/core.esm.js.map +1 -1
  519. package/dist/core/p-0a808ec3.entry.js +2 -0
  520. package/dist/core/p-0a808ec3.entry.js.map +1 -0
  521. package/dist/core/p-0c872824.entry.js +2 -0
  522. package/dist/core/p-0c872824.entry.js.map +1 -0
  523. package/dist/core/p-0d30ffab.entry.js +2 -0
  524. package/dist/core/p-0d30ffab.entry.js.map +1 -0
  525. package/dist/core/p-0fb047e7.entry.js +2 -0
  526. package/dist/core/p-0fb047e7.entry.js.map +1 -0
  527. package/dist/core/p-1684c8d4.entry.js +2 -0
  528. package/dist/core/p-1684c8d4.entry.js.map +1 -0
  529. package/dist/core/p-1b573920.entry.js +2 -0
  530. package/dist/core/p-1b573920.entry.js.map +1 -0
  531. package/dist/core/p-1f1758a9.entry.js +2 -0
  532. package/dist/core/p-1f1758a9.entry.js.map +1 -0
  533. package/dist/core/p-21e5dd29.entry.js +2 -0
  534. package/dist/core/p-21e5dd29.entry.js.map +1 -0
  535. package/dist/core/p-244d6dba.entry.js +2 -0
  536. package/dist/core/p-244d6dba.entry.js.map +1 -0
  537. package/dist/core/{p-7438ab1f.entry.js → p-26bc7c62.entry.js} +2 -2
  538. package/dist/core/p-26bc7c62.entry.js.map +1 -0
  539. package/dist/core/{p-3eda4e14.entry.js → p-27274ca8.entry.js} +2 -2
  540. package/dist/core/p-27274ca8.entry.js.map +1 -0
  541. package/dist/core/p-312cacae.js +2 -0
  542. package/dist/core/p-312cacae.js.map +1 -0
  543. package/dist/core/p-31fc8756.entry.js +2 -0
  544. package/dist/core/p-31fc8756.entry.js.map +1 -0
  545. package/dist/core/p-322edabc.entry.js +2 -0
  546. package/dist/core/p-322edabc.entry.js.map +1 -0
  547. package/dist/core/p-34db8aaf.entry.js +2 -0
  548. package/dist/core/p-34db8aaf.entry.js.map +1 -0
  549. package/dist/core/p-355acffa.entry.js +2 -0
  550. package/dist/core/p-355acffa.entry.js.map +1 -0
  551. package/dist/core/p-363d6e88.entry.js +2 -0
  552. package/dist/core/p-363d6e88.entry.js.map +1 -0
  553. package/dist/core/{p-3969d3c0.entry.js → p-3ea4a005.entry.js} +2 -2
  554. package/dist/core/p-3ea4a005.entry.js.map +1 -0
  555. package/dist/core/p-4055f22c.entry.js +2 -0
  556. package/dist/core/p-4055f22c.entry.js.map +1 -0
  557. package/dist/core/p-408344d3.entry.js +2 -0
  558. package/dist/core/p-408344d3.entry.js.map +1 -0
  559. package/dist/core/p-40e9e76a.entry.js +2 -0
  560. package/dist/core/p-40e9e76a.entry.js.map +1 -0
  561. package/dist/core/p-43f9a711.entry.js +2 -0
  562. package/dist/core/p-43f9a711.entry.js.map +1 -0
  563. package/dist/core/p-4502d3c1.entry.js +2 -0
  564. package/dist/core/p-4502d3c1.entry.js.map +1 -0
  565. package/dist/core/p-49525194.entry.js +2 -0
  566. package/dist/core/p-49525194.entry.js.map +1 -0
  567. package/dist/core/p-4ff6d16f.entry.js +2 -0
  568. package/dist/core/p-4ff6d16f.entry.js.map +1 -0
  569. package/dist/core/p-50ead56c.entry.js +2 -0
  570. package/dist/core/p-50ead56c.entry.js.map +1 -0
  571. package/dist/core/p-5deb9730.entry.js +2 -0
  572. package/dist/core/p-5deb9730.entry.js.map +1 -0
  573. package/dist/core/p-60efd7fa.entry.js +2 -0
  574. package/dist/core/{p-223889da.entry.js.map → p-60efd7fa.entry.js.map} +1 -1
  575. package/dist/core/p-6bd2e938.entry.js +2 -0
  576. package/dist/core/p-6bd2e938.entry.js.map +1 -0
  577. package/dist/core/p-6d40baa9.entry.js +2 -0
  578. package/dist/core/p-6d40baa9.entry.js.map +1 -0
  579. package/dist/core/p-7c89fc86.entry.js +2 -0
  580. package/dist/core/p-7c89fc86.entry.js.map +1 -0
  581. package/dist/core/p-82375dca.entry.js +2 -0
  582. package/dist/core/p-82375dca.entry.js.map +1 -0
  583. package/dist/core/p-84526c3e.entry.js +2 -0
  584. package/dist/core/p-84526c3e.entry.js.map +1 -0
  585. package/dist/core/p-93c23a35.entry.js +2 -0
  586. package/dist/core/p-93c23a35.entry.js.map +1 -0
  587. package/dist/core/p-9dba6823.entry.js +2 -0
  588. package/dist/core/p-9dba6823.entry.js.map +1 -0
  589. package/dist/core/p-aa0619ce.entry.js +2 -0
  590. package/dist/core/p-aa0619ce.entry.js.map +1 -0
  591. package/dist/core/p-aab2c7aa.entry.js +2 -0
  592. package/dist/core/p-aab2c7aa.entry.js.map +1 -0
  593. package/dist/core/p-af20322c.entry.js +2 -0
  594. package/dist/core/p-af20322c.entry.js.map +1 -0
  595. package/dist/core/{p-6fae7e1f.entry.js → p-b01ffa55.entry.js} +2 -2
  596. package/dist/core/p-b01ffa55.entry.js.map +1 -0
  597. package/dist/core/p-bf1f0ac7.entry.js +2 -0
  598. package/dist/core/p-bf1f0ac7.entry.js.map +1 -0
  599. package/dist/core/{p-9df32798.entry.js → p-c06a3b97.entry.js} +2 -2
  600. package/dist/core/p-c06a3b97.entry.js.map +1 -0
  601. package/dist/core/p-c86d48b6.entry.js +2 -0
  602. package/dist/core/p-c86d48b6.entry.js.map +1 -0
  603. package/dist/core/p-cbcd4427.entry.js +2 -0
  604. package/dist/core/p-cbcd4427.entry.js.map +1 -0
  605. package/dist/core/p-d1c9c32b.entry.js +2 -0
  606. package/dist/core/p-d1c9c32b.entry.js.map +1 -0
  607. package/dist/core/p-d2f89cb5.entry.js +2 -0
  608. package/dist/core/p-d2f89cb5.entry.js.map +1 -0
  609. package/dist/core/p-d2f8e03f.entry.js +2 -0
  610. package/dist/core/p-d2f8e03f.entry.js.map +1 -0
  611. package/dist/core/p-d58a10ec.entry.js +2 -0
  612. package/dist/core/p-d58a10ec.entry.js.map +1 -0
  613. package/dist/core/p-d8870804.entry.js +2 -0
  614. package/dist/core/p-d8870804.entry.js.map +1 -0
  615. package/dist/core/p-da14cd3c.entry.js +2 -0
  616. package/dist/core/p-da14cd3c.entry.js.map +1 -0
  617. package/dist/core/p-dc83a0e9.entry.js +2 -0
  618. package/dist/core/p-dc83a0e9.entry.js.map +1 -0
  619. package/dist/core/p-de3a5423.entry.js +2 -0
  620. package/dist/core/p-de3a5423.entry.js.map +1 -0
  621. package/dist/core/p-e3ed9110.entry.js +2 -0
  622. package/dist/core/p-e3ed9110.entry.js.map +1 -0
  623. package/dist/core/p-e4b276b5.entry.js +2 -0
  624. package/dist/core/p-e4b276b5.entry.js.map +1 -0
  625. package/dist/core/p-e53309b0.entry.js +2 -0
  626. package/dist/core/p-e53309b0.entry.js.map +1 -0
  627. package/dist/core/p-f30f3a3e.entry.js +2 -0
  628. package/dist/core/p-f30f3a3e.entry.js.map +1 -0
  629. package/dist/core/p-f38bce8d.entry.js +2 -0
  630. package/dist/core/p-f38bce8d.entry.js.map +1 -0
  631. package/dist/core/p-f828a6e1.entry.js +2 -0
  632. package/dist/core/p-f828a6e1.entry.js.map +1 -0
  633. package/dist/core/p-fa1b7a80.entry.js +2 -0
  634. package/dist/core/p-fa1b7a80.entry.js.map +1 -0
  635. package/dist/core/p-fa587e6d.entry.js +2 -0
  636. package/dist/core/p-fa587e6d.entry.js.map +1 -0
  637. package/dist/esm/core.js +1 -1
  638. package/dist/esm/{helpers-3905ccc4.js → helpers-1c9151ef.js} +14 -3
  639. package/dist/esm/helpers-1c9151ef.js.map +1 -0
  640. package/dist/esm/ic-accordion-group.entry.js +9 -10
  641. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  642. package/dist/esm/ic-accordion.entry.js +5 -6
  643. package/dist/esm/ic-accordion.entry.js.map +1 -1
  644. package/dist/esm/ic-alert.entry.js +2 -5
  645. package/dist/esm/ic-alert.entry.js.map +1 -1
  646. package/dist/esm/ic-back-to-top.entry.js +12 -16
  647. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  648. package/dist/esm/ic-badge.entry.js +22 -51
  649. package/dist/esm/ic-badge.entry.js.map +1 -1
  650. package/dist/esm/ic-breadcrumb-group.entry.js +26 -14
  651. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  652. package/dist/esm/ic-breadcrumb.entry.js +8 -7
  653. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  654. package/dist/esm/ic-button_3.entry.js +49 -40
  655. package/dist/esm/ic-button_3.entry.js.map +1 -1
  656. package/dist/esm/ic-card-vertical.entry.js +145 -0
  657. package/dist/esm/ic-card-vertical.entry.js.map +1 -0
  658. package/dist/esm/ic-checkbox-group.entry.js +7 -7
  659. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  660. package/dist/esm/ic-checkbox.entry.js +6 -16
  661. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  662. package/dist/esm/ic-chip.entry.js +23 -24
  663. package/dist/esm/ic-chip.entry.js.map +1 -1
  664. package/dist/esm/ic-classification-banner.entry.js +2 -2
  665. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  666. package/dist/esm/ic-data-list.entry.js +28 -0
  667. package/dist/esm/ic-data-list.entry.js.map +1 -0
  668. package/dist/esm/ic-data-row.entry.js +12 -12
  669. package/dist/esm/ic-data-row.entry.js.map +1 -1
  670. package/dist/esm/ic-dialog.entry.js +12 -98
  671. package/dist/esm/ic-dialog.entry.js.map +1 -1
  672. package/dist/esm/ic-divider.entry.js +2 -3
  673. package/dist/esm/ic-divider.entry.js.map +1 -1
  674. package/dist/esm/ic-empty-state.entry.js +7 -8
  675. package/dist/esm/ic-empty-state.entry.js.map +1 -1
  676. package/dist/esm/ic-footer-link-group.entry.js +9 -10
  677. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  678. package/dist/esm/ic-footer-link.entry.js +6 -8
  679. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  680. package/dist/esm/ic-footer.entry.js +8 -9
  681. package/dist/esm/ic-footer.entry.js.map +1 -1
  682. package/dist/esm/ic-hero.entry.js +9 -11
  683. package/dist/esm/ic-hero.entry.js.map +1 -1
  684. package/dist/esm/ic-horizontal-scroll.entry.js +5 -6
  685. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  686. package/dist/esm/ic-input-component-container_3.entry.js +20 -26
  687. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  688. package/dist/esm/ic-input-label_2.entry.js +11 -13
  689. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  690. package/dist/esm/ic-link.entry.js +20 -11
  691. package/dist/esm/ic-link.entry.js.map +1 -1
  692. package/dist/esm/ic-menu-group.entry.js +2 -3
  693. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  694. package/dist/esm/ic-menu-item.entry.js +3 -4
  695. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  696. package/dist/esm/ic-navigation-button.entry.js +2 -3
  697. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  698. package/dist/esm/ic-navigation-group.entry.js +9 -10
  699. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  700. package/dist/esm/ic-navigation-item.entry.js +6 -7
  701. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  702. package/dist/esm/ic-navigation-menu.entry.js +3 -4
  703. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  704. package/dist/esm/ic-page-header.entry.js +8 -10
  705. package/dist/esm/ic-page-header.entry.js.map +1 -1
  706. package/dist/esm/ic-pagination-item.entry.js +2 -3
  707. package/dist/esm/ic-pagination-item.entry.js.map +1 -1
  708. package/dist/esm/ic-pagination.entry.js +33 -32
  709. package/dist/esm/ic-pagination.entry.js.map +1 -1
  710. package/dist/esm/ic-popover-menu.entry.js +3 -4
  711. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  712. package/dist/esm/ic-radio-group.entry.js +11 -13
  713. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  714. package/dist/esm/ic-radio-option.entry.js +5 -19
  715. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  716. package/dist/esm/ic-search-bar.entry.js +19 -26
  717. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  718. package/dist/esm/ic-select.entry.js +14 -23
  719. package/dist/esm/ic-select.entry.js.map +1 -1
  720. package/dist/esm/ic-side-navigation.entry.js +7 -8
  721. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  722. package/dist/esm/ic-skeleton.entry.js +5 -6
  723. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  724. package/dist/esm/ic-status-tag.entry.js +6 -15
  725. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  726. package/dist/esm/ic-step.entry.js +41 -46
  727. package/dist/esm/ic-step.entry.js.map +1 -1
  728. package/dist/esm/ic-stepper.entry.js +27 -18
  729. package/dist/esm/ic-stepper.entry.js.map +1 -1
  730. package/dist/esm/ic-switch.entry.js +7 -9
  731. package/dist/esm/ic-switch.entry.js.map +1 -1
  732. package/dist/esm/ic-tab-context.entry.js +34 -28
  733. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  734. package/dist/esm/ic-tab-group.entry.js +25 -11
  735. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  736. package/dist/esm/ic-tab-panel.entry.js +12 -11
  737. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  738. package/dist/esm/ic-tab.entry.js +10 -9
  739. package/dist/esm/ic-tab.entry.js.map +1 -1
  740. package/dist/esm/ic-text-field.entry.js +50 -52
  741. package/dist/esm/ic-text-field.entry.js.map +1 -1
  742. package/dist/esm/ic-theme.entry.js +27 -4
  743. package/dist/esm/ic-theme.entry.js.map +1 -1
  744. package/dist/esm/ic-toast-region.entry.js +0 -7
  745. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  746. package/dist/esm/ic-toast.entry.js +83 -36
  747. package/dist/esm/ic-toast.entry.js.map +1 -1
  748. package/dist/esm/ic-toggle-button-group.entry.js +17 -17
  749. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  750. package/dist/esm/ic-toggle-button.entry.js +14 -15
  751. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  752. package/dist/esm/ic-top-navigation.entry.js +7 -8
  753. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  754. package/dist/esm/ic-typography.entry.js +9 -8
  755. package/dist/esm/ic-typography.entry.js.map +1 -1
  756. package/dist/esm/index-d1d2c456.js +12 -12
  757. package/dist/esm/loader.js +1 -1
  758. package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +2 -2
  759. package/dist/types/components/ic-alert/ic-alert.d.ts +0 -4
  760. package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +0 -1
  761. package/dist/types/components/ic-badge/ic-badge.d.ts +8 -15
  762. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +9 -5
  763. package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +13 -7
  764. package/dist/types/components/ic-button/ic-button.d.ts +0 -1
  765. package/dist/types/components/{ic-card/ic-card.d.ts → ic-card-vertical/ic-card-vertical.d.ts} +2 -2
  766. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +0 -28
  767. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +0 -4
  768. package/dist/types/components/ic-chip/ic-chip.d.ts +8 -11
  769. package/dist/types/components/ic-data-list/ic-data-list.d.ts +20 -0
  770. package/dist/types/components/ic-data-row/ic-data-row.d.ts +4 -4
  771. package/dist/types/components/ic-dialog/ic-dialog.d.ts +1 -37
  772. package/dist/types/components/ic-empty-state/ic-empty-state.d.ts +1 -1
  773. package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +1 -1
  774. package/dist/types/components/ic-hero/ic-hero.d.ts +2 -6
  775. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +0 -8
  776. package/dist/types/components/ic-input-label/ic-input-label.d.ts +4 -8
  777. package/dist/types/components/ic-link/ic-link.d.ts +9 -9
  778. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +12 -8
  779. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +1 -1
  780. package/dist/types/components/ic-menu/ic-menu.d.ts +0 -4
  781. package/dist/types/components/ic-page-header/ic-page-header.d.ts +0 -4
  782. package/dist/types/components/ic-pagination/ic-pagination.d.ts +4 -4
  783. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +0 -4
  784. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +0 -24
  785. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +3 -15
  786. package/dist/types/components/ic-select/ic-select.d.ts +1 -31
  787. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +1 -1
  788. package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +3 -6
  789. package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +5 -10
  790. package/dist/types/components/ic-status-tag/ic-status-tag.types.d.ts +0 -1
  791. package/dist/types/components/ic-step/ic-step.d.ts +11 -6
  792. package/dist/types/components/ic-stepper/ic-stepper.d.ts +6 -4
  793. package/dist/types/components/ic-stepper/test/basic/ic-stepper-test-examples.d.ts +4 -4
  794. package/dist/types/components/ic-switch/ic-switch.d.ts +0 -4
  795. package/dist/types/components/ic-tab/ic-tab.d.ts +5 -3
  796. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +11 -11
  797. package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +9 -10
  798. package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +13 -7
  799. package/dist/types/components/ic-text-field/ic-text-field.d.ts +7 -16
  800. package/dist/types/components/ic-theme/ic-theme.d.ts +7 -0
  801. package/dist/types/components/ic-toast/ic-toast.d.ts +8 -1
  802. package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +0 -5
  803. package/dist/types/components/ic-toggle-button/ic-toggle-button.d.ts +1 -1
  804. package/dist/types/components/ic-toggle-button-group/ic-toggle-button-group.types.d.ts +1 -1
  805. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +5 -0
  806. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +1 -1
  807. package/dist/types/components/ic-typography/ic-typography.d.ts +5 -1
  808. package/dist/types/components.d.ts +264 -562
  809. package/dist/types/utils/types.d.ts +4 -3
  810. package/hydrate/index.js +826 -887
  811. package/package.json +2 -2
  812. package/vscode-data.json +298 -347
  813. package/dist/cjs/helpers-94b33ab0.js.map +0 -1
  814. package/dist/cjs/ic-card.cjs.entry.js +0 -150
  815. package/dist/cjs/ic-card.cjs.entry.js.map +0 -1
  816. package/dist/cjs/ic-data-entity.cjs.entry.js +0 -29
  817. package/dist/cjs/ic-data-entity.cjs.entry.js.map +0 -1
  818. package/dist/cjs/types-dc22e301.js +0 -16
  819. package/dist/cjs/types-dc22e301.js.map +0 -1
  820. package/dist/collection/components/ic-card/ic-card.js.map +0 -1
  821. package/dist/collection/components/ic-card/test/basic/ic-card.spec.js.map +0 -1
  822. package/dist/collection/components/ic-chip/ic-chip.types.js +0 -2
  823. package/dist/collection/components/ic-chip/ic-chip.types.js.map +0 -1
  824. package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +0 -1
  825. package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js.map +0 -1
  826. package/dist/components/ic-alert2.js +0 -139
  827. package/dist/components/ic-alert2.js.map +0 -1
  828. package/dist/components/ic-card.js.map +0 -1
  829. package/dist/components/ic-data-entity.js +0 -53
  830. package/dist/components/ic-data-entity.js.map +0 -1
  831. package/dist/components/types.js +0 -16
  832. package/dist/components/types.js.map +0 -1
  833. package/dist/core/p-02262e76.entry.js +0 -2
  834. package/dist/core/p-02262e76.entry.js.map +0 -1
  835. package/dist/core/p-03f23a55.entry.js +0 -2
  836. package/dist/core/p-03f23a55.entry.js.map +0 -1
  837. package/dist/core/p-0432d31a.entry.js +0 -2
  838. package/dist/core/p-0432d31a.entry.js.map +0 -1
  839. package/dist/core/p-093600a2.entry.js +0 -2
  840. package/dist/core/p-093600a2.entry.js.map +0 -1
  841. package/dist/core/p-13a6e7ea.entry.js +0 -2
  842. package/dist/core/p-13a6e7ea.entry.js.map +0 -1
  843. package/dist/core/p-13ec2a00.entry.js +0 -2
  844. package/dist/core/p-13ec2a00.entry.js.map +0 -1
  845. package/dist/core/p-1ae6aadb.entry.js +0 -2
  846. package/dist/core/p-1ae6aadb.entry.js.map +0 -1
  847. package/dist/core/p-1d648b98.entry.js +0 -2
  848. package/dist/core/p-1d648b98.entry.js.map +0 -1
  849. package/dist/core/p-1d6e6ebe.entry.js +0 -2
  850. package/dist/core/p-1d6e6ebe.entry.js.map +0 -1
  851. package/dist/core/p-223889da.entry.js +0 -2
  852. package/dist/core/p-230187a8.entry.js +0 -2
  853. package/dist/core/p-230187a8.entry.js.map +0 -1
  854. package/dist/core/p-26b7b18f.js +0 -2
  855. package/dist/core/p-26b7b18f.js.map +0 -1
  856. package/dist/core/p-2889cc17.entry.js +0 -2
  857. package/dist/core/p-2889cc17.entry.js.map +0 -1
  858. package/dist/core/p-2d930c9c.entry.js +0 -2
  859. package/dist/core/p-2d930c9c.entry.js.map +0 -1
  860. package/dist/core/p-3969d3c0.entry.js.map +0 -1
  861. package/dist/core/p-3af60dee.entry.js +0 -2
  862. package/dist/core/p-3af60dee.entry.js.map +0 -1
  863. package/dist/core/p-3b4c9571.entry.js +0 -2
  864. package/dist/core/p-3b4c9571.entry.js.map +0 -1
  865. package/dist/core/p-3eda4e14.entry.js.map +0 -1
  866. package/dist/core/p-3f2d4108.entry.js +0 -2
  867. package/dist/core/p-3f2d4108.entry.js.map +0 -1
  868. package/dist/core/p-457a4c63.entry.js +0 -2
  869. package/dist/core/p-457a4c63.entry.js.map +0 -1
  870. package/dist/core/p-4b89890b.entry.js +0 -2
  871. package/dist/core/p-4b89890b.entry.js.map +0 -1
  872. package/dist/core/p-4f0e9434.entry.js +0 -2
  873. package/dist/core/p-4f0e9434.entry.js.map +0 -1
  874. package/dist/core/p-55b11f6f.entry.js +0 -2
  875. package/dist/core/p-55b11f6f.entry.js.map +0 -1
  876. package/dist/core/p-5ccd3703.entry.js +0 -2
  877. package/dist/core/p-5ccd3703.entry.js.map +0 -1
  878. package/dist/core/p-604e72ac.entry.js +0 -2
  879. package/dist/core/p-604e72ac.entry.js.map +0 -1
  880. package/dist/core/p-60f7f555.entry.js +0 -2
  881. package/dist/core/p-60f7f555.entry.js.map +0 -1
  882. package/dist/core/p-69576aa0.entry.js +0 -2
  883. package/dist/core/p-69576aa0.entry.js.map +0 -1
  884. package/dist/core/p-6fae7e1f.entry.js.map +0 -1
  885. package/dist/core/p-72b0a5be.entry.js +0 -2
  886. package/dist/core/p-72b0a5be.entry.js.map +0 -1
  887. package/dist/core/p-72b350bc.entry.js +0 -2
  888. package/dist/core/p-72b350bc.entry.js.map +0 -1
  889. package/dist/core/p-7438ab1f.entry.js.map +0 -1
  890. package/dist/core/p-78605899.entry.js +0 -2
  891. package/dist/core/p-78605899.entry.js.map +0 -1
  892. package/dist/core/p-7c2b59fe.entry.js +0 -2
  893. package/dist/core/p-7c2b59fe.entry.js.map +0 -1
  894. package/dist/core/p-836e71de.entry.js +0 -2
  895. package/dist/core/p-836e71de.entry.js.map +0 -1
  896. package/dist/core/p-843ed766.entry.js +0 -2
  897. package/dist/core/p-843ed766.entry.js.map +0 -1
  898. package/dist/core/p-8a8bf98c.entry.js +0 -2
  899. package/dist/core/p-8a8bf98c.entry.js.map +0 -1
  900. package/dist/core/p-8c325d9b.entry.js +0 -2
  901. package/dist/core/p-8c325d9b.entry.js.map +0 -1
  902. package/dist/core/p-936ab032.entry.js +0 -2
  903. package/dist/core/p-936ab032.entry.js.map +0 -1
  904. package/dist/core/p-96505636.entry.js +0 -2
  905. package/dist/core/p-96505636.entry.js.map +0 -1
  906. package/dist/core/p-9c9ba3cd.entry.js +0 -2
  907. package/dist/core/p-9c9ba3cd.entry.js.map +0 -1
  908. package/dist/core/p-9df32798.entry.js.map +0 -1
  909. package/dist/core/p-a6ff78aa.entry.js +0 -2
  910. package/dist/core/p-a6ff78aa.entry.js.map +0 -1
  911. package/dist/core/p-a75f3c4d.entry.js +0 -2
  912. package/dist/core/p-a75f3c4d.entry.js.map +0 -1
  913. package/dist/core/p-aeb001d7.entry.js +0 -2
  914. package/dist/core/p-aeb001d7.entry.js.map +0 -1
  915. package/dist/core/p-b1879a44.entry.js +0 -2
  916. package/dist/core/p-b1879a44.entry.js.map +0 -1
  917. package/dist/core/p-b47021d8.entry.js +0 -2
  918. package/dist/core/p-b47021d8.entry.js.map +0 -1
  919. package/dist/core/p-bb4b7dcb.entry.js +0 -2
  920. package/dist/core/p-bb4b7dcb.entry.js.map +0 -1
  921. package/dist/core/p-bb963aa4.entry.js +0 -2
  922. package/dist/core/p-bb963aa4.entry.js.map +0 -1
  923. package/dist/core/p-be5d5f93.entry.js +0 -2
  924. package/dist/core/p-be5d5f93.entry.js.map +0 -1
  925. package/dist/core/p-c1d5e7f2.entry.js +0 -2
  926. package/dist/core/p-c1d5e7f2.entry.js.map +0 -1
  927. package/dist/core/p-d3750771.entry.js +0 -2
  928. package/dist/core/p-d3750771.entry.js.map +0 -1
  929. package/dist/core/p-dbc0f5da.entry.js +0 -2
  930. package/dist/core/p-dbc0f5da.entry.js.map +0 -1
  931. package/dist/core/p-dd4ef67f.entry.js +0 -2
  932. package/dist/core/p-dd4ef67f.entry.js.map +0 -1
  933. package/dist/core/p-dd9d8e68.entry.js +0 -2
  934. package/dist/core/p-dd9d8e68.entry.js.map +0 -1
  935. package/dist/core/p-def5ba6b.entry.js +0 -2
  936. package/dist/core/p-def5ba6b.entry.js.map +0 -1
  937. package/dist/core/p-e6bad80b.entry.js +0 -2
  938. package/dist/core/p-e6bad80b.entry.js.map +0 -1
  939. package/dist/core/p-e7fa6804.entry.js +0 -2
  940. package/dist/core/p-e7fa6804.entry.js.map +0 -1
  941. package/dist/core/p-e8fa0095.entry.js +0 -2
  942. package/dist/core/p-e8fa0095.entry.js.map +0 -1
  943. package/dist/core/p-ee1c9f20.entry.js +0 -2
  944. package/dist/core/p-ee1c9f20.entry.js.map +0 -1
  945. package/dist/core/p-fef9e8c9.js +0 -2
  946. package/dist/core/p-fef9e8c9.js.map +0 -1
  947. package/dist/esm/helpers-3905ccc4.js.map +0 -1
  948. package/dist/esm/ic-card.entry.js +0 -146
  949. package/dist/esm/ic-card.entry.js.map +0 -1
  950. package/dist/esm/ic-data-entity.entry.js +0 -25
  951. package/dist/esm/ic-data-entity.entry.js.map +0 -1
  952. package/dist/esm/types-6f6b41a5.js +0 -16
  953. package/dist/esm/types-6f6b41a5.js.map +0 -1
  954. package/dist/types/components/ic-chip/ic-chip.types.d.ts +0 -1
  955. package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +0 -20
@@ -17,7 +17,6 @@ import { IcThemeForegroundEnum, } from "../../utils/types";
17
17
  import arrowDropdown from "../../assets/arrow-dropdown.svg";
18
18
  let buttonIds = 0;
19
19
  /**
20
- * @slot icon - Deprecated. This slot should not be used anymore. Use left-icon or right-icon slot instead.
21
20
  * @slot left-icon - Content will be placed to the left of the button label.
22
21
  * @slot right-icon - Content will be placed to the right of the button label.
23
22
  * @slot top-icon - Content will be placed above the button label.
@@ -113,7 +112,7 @@ export class Button {
113
112
  this.referrerpolicy = undefined;
114
113
  this.rel = undefined;
115
114
  this.selectedFiles = undefined;
116
- this.size = "default";
115
+ this.size = "medium";
117
116
  this.target = undefined;
118
117
  this.tooltipPlacement = "bottom";
119
118
  this.transparentBackground = true;
@@ -270,15 +269,14 @@ export class Button {
270
269
  describedby = this.describedById;
271
270
  }
272
271
  const ButtonContent = () => {
273
- return (h(TagType, Object.assign({ class: "button", "aria-disabled": this.loading || this.disabled ? "true" : null, "aria-label": this.loading ? "Loading" : ariaLabel, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: this.onFocus, onBlur: this.onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), this.hasIconSlot() && !this.loading && (h("div", { class: "icon-container" }, h("slot", { name: "icon" }))), this.hasIconSlot("left") && !this.loading && (h("div", { class: "icon-container" }, h("slot", { name: "left-icon" }))), this.hasIconSlot("top") &&
272
+ const darkAppearance = this.variant.includes("primary") ||
273
+ this.variant.includes("destructive") ||
274
+ this.appearance === IcThemeForegroundEnum.Dark ||
275
+ this.appearance === IcThemeForegroundEnum.Light;
276
+ return (h(TagType, Object.assign({ class: "button", "aria-disabled": this.loading || this.disabled ? "true" : null, "aria-label": this.loading ? "Loading" : ariaLabel, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: this.onFocus, onBlur: this.onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), this.hasIconSlot("left") && !this.loading && (h("div", { class: "icon-container" }, h("slot", { name: "left-icon" }))), this.hasIconSlot("top") &&
274
277
  !this.hasIconSlot("left") &&
275
278
  !this.hasIconSlot("right") &&
276
- !this.loading && (h("div", { class: "icon-container" }, h("slot", { name: "top-icon" }))), this.loading ? (h("div", { class: "loading-container" }, h("ic-loading-indicator", { type: "linear", appearance: this.variant === "primary" ||
277
- this.variant === "destructive" ||
278
- this.appearance === IcThemeForegroundEnum.Dark ||
279
- this.appearance === IcThemeForegroundEnum.Light
280
- ? "light"
281
- : "dark" }))) : (h("slot", null)), this.hasIconSlot("right") && !this.loading && !this.dropdown && (h("div", { class: { "icon-container": true, "right-icon": true } }, h("slot", { name: "right-icon" }))), this.dropdown &&
279
+ !this.loading && (h("div", { class: "icon-container" }, h("slot", { name: "top-icon" }))), this.loading ? (h("div", { class: "loading-container" }, h("ic-loading-indicator", { type: "linear", monochrome: darkAppearance, theme: darkAppearance ? "dark" : "light" }))) : (h("slot", null)), this.hasIconSlot("right") && !this.loading && !this.dropdown && (h("div", { class: { "icon-container": true, "right-icon": true } }, h("slot", { name: "right-icon" }))), this.dropdown &&
282
280
  !this.loading &&
283
281
  this.variant !== "icon" &&
284
282
  this.variant !== "destructive" && (h("span", { class: {
@@ -287,13 +285,13 @@ export class Button {
287
285
  }, innerHTML: arrowDropdown }))));
288
286
  };
289
287
  return (h(Host, { class: {
290
- ["disabled"]: this.disabled && !this.loading,
291
- [`button-variant-${this.variant}`]: true,
292
- [`button-size-${this.size}`]: true,
293
- ["loading"]: this.loading,
294
- ["dark"]: this.appearance === IcThemeForegroundEnum.Dark,
295
- ["light"]: this.appearance === IcThemeForegroundEnum.Light,
296
- ["full-width"]: this.fullWidth,
288
+ ["ic-button-disabled"]: this.disabled && !this.loading,
289
+ [`ic-button-variant-${this.variant}`]: true,
290
+ [`ic-button-size-${this.size}`]: true,
291
+ ["ic-button-loading"]: this.loading,
292
+ ["ic-button-dark"]: this.appearance === IcThemeForegroundEnum.Dark,
293
+ ["ic-button-light"]: this.appearance === IcThemeForegroundEnum.Light,
294
+ ["ic-button-full-width"]: this.fullWidth,
297
295
  ["with-badge"]: isSlotUsed(this.el, "badge"),
298
296
  ["dropdown-no-icon"]: this.dropdown &&
299
297
  !isSlotUsed(this.el, "icon") &&
@@ -782,7 +780,7 @@ export class Button {
782
780
  "mutable": false,
783
781
  "complexType": {
784
782
  "original": "IcSizes",
785
- "resolved": "\"default\" | \"large\" | \"small\"",
783
+ "resolved": "\"large\" | \"medium\" | \"small\"",
786
784
  "references": {
787
785
  "IcSizes": {
788
786
  "location": "import",
@@ -799,7 +797,7 @@ export class Button {
799
797
  },
800
798
  "attribute": "size",
801
799
  "reflect": false,
802
- "defaultValue": "\"default\""
800
+ "defaultValue": "\"medium\""
803
801
  },
804
802
  "target": {
805
803
  "type": "string",
@@ -1 +1 @@
1
- {"version":3,"file":"ic-button.js","sourceRoot":"","sources":["../../../src/components/ic-button/ic-button.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,WAAW,EACX,CAAC,EACD,KAAK,GACN,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAM1D,OAAO,EAIL,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAE5D,IAAI,SAAS,GAAG,CAAC,CAAC;AAElB;;;;;;;GAOG;AAQH,MAAM,OAAO,MAAM;;QAET,gBAAW,GAAG,SAAS,EAAE,CAAC;QAC1B,eAAU,GAAY,KAAK,CAAC;QAE5B,wBAAmB,GAA4B,EAAE,CAAC;QAClD,kBAAa,GAAgB,IAAI,CAAC;QAClC,kBAAa,GAAW,IAAI,CAAC;QAC7B,qBAAgB,GAAqB,IAAI,CAAC;QAC1C,yBAAoB,GAAqB,I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import {\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Method,\n Prop,\n State,\n forceUpdate,\n h,\n Watch,\n} from \"@stencil/core\";\n\nimport {\n getThemeFromContext,\n inheritAttributes,\n isSlotUsed,\n removeDisabledFalse,\n renderFileHiddenInput,\n} from \"../../utils/helpers\";\nimport { IC_INHERITED_ARIA } from \"../../utils/constants\";\nimport {\n IcButtonTypes,\n IcButtonVariants,\n IcButtonTooltipPlacement,\n} from \"./ic-button.types\";\nimport {\n IcSizes,\n IcTheme,\n IcThemeForeground,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\nimport arrowDropdown from \"../../assets/arrow-dropdown.svg\";\n\nlet buttonIds = 0;\n\n/**\n * @slot icon - Deprecated. This slot should not be used anymore. Use left-icon or right-icon slot instead.\n * @slot left-icon - Content will be placed to the left of the button label.\n * @slot right-icon - Content will be placed to the right of the button label.\n * @slot top-icon - Content will be placed above the button label.\n * @slot badge - Badge component overlaying the top right of the button.\n * @slot router-item - Handle routing by nesting your routes in this slot. Setting loading to true will have no impact on this slot.\n */\n@Component({\n tag: \"ic-button\",\n styleUrl: \"ic-button.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Button {\n private buttonEl: HTMLElement;\n private buttonIdNum = buttonIds++;\n private hasTooltip: boolean = false;\n private id: string;\n private inheritedAttributes: { [k: string]: string } = {};\n private describedbyEl: HTMLElement = null;\n private describedById: string = null;\n private mutationObserver: MutationObserver = null;\n private hostMutationObserver: MutationObserver = null;\n private routerSlot: HTMLElement;\n\n @Element() el: HTMLIcButtonElement;\n\n @State() ariaLabel: string = null;\n @State() describedByContent: string = null;\n @State() title: string = null;\n\n /**\n * If `fileUpload` is set to `true`, this is the accepted list of file types.\n */\n @Prop() accept?: string = \"*\";\n\n /**\n * The appearance of the button, e.g. dark, light, or the default.\n */\n @Prop({ mutable: true }) appearance?: IcThemeForeground = \"default\";\n\n /**\n * @internal Used to identify any related child component\n */\n @Prop() ariaControlsId: string | boolean;\n\n /**\n * @internal Used to identify any related child component\n */\n @Prop() ariaOwnsId: string | boolean;\n\n /**\n * If `true`, the button will be in disabled state.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * If `true`, the ic-tooltip which is shown for icon variant will be disabled. Title or aria-label must be set if this prop is not applied.\n */\n @Prop() disableTooltip?: boolean = false;\n\n /**\n * If `true`, the user can save the linked URL instead of navigating to it.\n */\n @Prop() download?: string | boolean = false;\n\n /**\n * If `true`, the button will show a dropdown icon.\n */\n @Prop() dropdown?: boolean = false;\n\n /**\n * If `true`, the aria-expanded value will be set to true. This is only applied if the dropdown prop is also true.\n */\n @Prop({ mutable: true, reflect: true }) dropdownExpanded?: boolean = false;\n\n /**\n * If `true`, when the button is clicked the native file explorer will be launched.\n */\n @Prop() fileUpload?: boolean = false;\n\n /**\n * The name of the control for the file input, which is submitted with the form data.\n */\n @Prop() fileInputName: string = `ic-button-file-upload-input-${buttonIds++}`;\n\n /**\n * The <form> element to associate the button with.\n */\n @Prop() form?: string;\n\n /**\n * The URL that processes the information submitted by the button. It overrides the action attribute of the button's form owner. Does nothing if there is no form owner.\n */\n @Prop() formaction?: string;\n\n /**\n * The way the submitted form data is encoded.\n */\n @Prop() formenctype?: string;\n\n /**\n * The HTTP method used to submit the form.\n */\n @Prop() formmethod?: string;\n\n /**\n * If `true`, the form will not be validated when submitted.\n */\n @Prop() formnovalidate?: boolean;\n\n /**\n * The place to display the response from submitting the form. It overrides the target attribute of the button's form owner.\n */\n @Prop() formtarget?: string;\n\n /**\n * If `true`, the button will fill the width of the container.\n */\n @Prop() fullWidth?: boolean = false;\n\n /**\n * The URL that the link points to. This will render the button as an \"a\" tag.\n */\n @Prop() href?: string;\n\n /**\n * The human language of the linked URL.\n */\n @Prop() hreflang?: string;\n\n /**\n * If `true`, the button will be in loading state.\n */\n @Prop() loading?: boolean = false;\n\n /**\n * If `fileUpload` is set to `true`, this boolean determines whether multiple files are accepted.\n */\n @Prop() multiple?: boolean = false;\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 list of the files that have been selected by a user.\n */\n @Prop() selectedFiles: FileList;\n\n /**\n * The size of the button to be displayed.\n */\n @Prop() size?: IcSizes = \"default\";\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 /**\n * The position of the tooltip in relation to the button.\n */\n @Prop() tooltipPlacement?: IcButtonTooltipPlacement = \"bottom\";\n\n /**\n * If `true`, the secondary variant of button will have a transparent background rather than white.\n */\n @Prop() transparentBackground?: boolean = true;\n\n /**\n * The type of the button.\n */\n @Prop() type?: IcButtonTypes = \"button\";\n\n /**\n * The variant of the button to be displayed.\n */\n @Prop() variant?: IcButtonVariants = \"primary\";\n\n /**\n * Emitted when button has blur\n */\n @Event() icBlur!: EventEmitter<void>;\n\n /**\n * If `fileUpload` is set to `true`, this will be emitted when a file is selected in the native explorer.\n */\n @Event() icFileSelection!: EventEmitter<FileList>;\n\n /**\n * Emitted when button has focus\n */\n @Event() icFocus!: EventEmitter<void>;\n\n disconnectedCallback(): void {\n if (this.mutationObserver !== null && this.mutationObserver !== undefined) {\n this.mutationObserver.disconnect();\n }\n if (\n this.hostMutationObserver !== null &&\n this.hostMutationObserver !== undefined\n ) {\n this.hostMutationObserver.disconnect();\n }\n }\n\n componentWillUpdate(): void {\n if (this.loading) {\n this.el.style.setProperty(\n \"--min-width\",\n `${this.el.getBoundingClientRect().width}px`\n );\n }\n this.setHasTooltip();\n }\n\n componentWillLoad(): void {\n const {\n title,\n \"aria-label\": ariaLabel,\n ...restInheritedAttributes\n } = inheritAttributes(this.el, [...IC_INHERITED_ARIA, \"title\"]);\n\n this.title = title;\n this.ariaLabel = ariaLabel;\n this.inheritedAttributes = restInheritedAttributes;\n\n removeDisabledFalse(this.disabled, this.el);\n\n this.el.setAttribute(\"exportparts\", \"button\");\n\n this.id = this.el.id || null;\n this.setHasTooltip();\n\n if (!this.hasTooltip) {\n const describedById = this.inheritedAttributes[\"aria-describedby\"];\n if (describedById !== undefined) {\n this.describedById = describedById;\n const el = this.el.parentElement.querySelector<HTMLElement>(\n `#${describedById}`\n );\n if (el) {\n this.describedByContent = el.innerText;\n this.describedbyEl = el;\n }\n }\n }\n }\n\n componentDidLoad(): void {\n this.updateTheme();\n\n if (typeof MutationObserver !== \"undefined\") {\n if (this.describedById) {\n this.mutationObserver = new MutationObserver(this.mutationCallback);\n this.mutationObserver.observe(this.describedbyEl, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n }\n\n this.hostMutationObserver = new MutationObserver(\n this.hostMutationCallback\n );\n this.hostMutationObserver.observe(this.el, {\n attributes: true,\n });\n }\n }\n\n componentWillRender(): void {\n const iconEl = this.hasIconSlot(\"left\")\n ? this.el.querySelector(`[slot=\"left-icon\"]`)\n : this.hasIconSlot(\"right\")\n ? this.el.querySelector(`[slot=\"right-icon\"]`)\n : null;\n iconEl?.setAttribute(\"viewBox\", \"0 0 24 24\");\n }\n\n @Listen(\"click\", { capture: true })\n handleHostClick(event: Event): void {\n if (!this.hasRouterSlot()) {\n if (this.fileUpload) {\n renderFileHiddenInput(\n this.icFileSelection,\n this.el,\n this.multiple,\n this.fileInputName,\n this.selectedFiles,\n this.disabled,\n this.accept\n );\n }\n if (this.disabled || this.loading) {\n event.stopImmediatePropagation();\n }\n if (this.dropdown) {\n this.dropdownExpanded = !this.dropdownExpanded;\n }\n }\n }\n\n @Listen(\"themeChange\", { target: \"document\" })\n themeChangeHandler({ detail }: CustomEvent<IcTheme>): void {\n this.updateTheme(detail.mode);\n }\n\n /**\n * Sets focus on the native `button`.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.buttonEl?.focus();\n }\n\n private async closeButtonTooltip(ev: KeyboardEvent): Promise<void> {\n const tooltip = this.el.shadowRoot.querySelector(\"ic-tooltip\");\n if (await tooltip.isTooltipVisible()) {\n tooltip.displayTooltip(false);\n ev.preventDefault();\n ev.stopImmediatePropagation();\n }\n }\n\n private hasIconSlot(position?: \"left\" | \"right\" | \"top\"): boolean {\n const selectorPrefix = position ? `${position}-` : \"\";\n return this.el.querySelector(`[slot=\"${selectorPrefix}icon\"]`) !== null;\n }\n\n private hasRouterSlot(): boolean {\n this.routerSlot = this.el.querySelector('[slot=\"router-item\"]');\n if (this.routerSlot) {\n this.routerSlot.ariaLabel = this.routerSlot.textContent;\n }\n return !!this.routerSlot;\n }\n\n private handleClick = (): void => {\n if (\n (this.el.type === \"submit\" || this.el.type === \"reset\") &&\n !this.hasRouterSlot() &&\n !!this.el.closest(\"FORM\")\n ) {\n const hiddenFormButton = document.createElement(\"button\");\n\n hiddenFormButton.setAttribute(\"type\", this.el.type);\n hiddenFormButton.style.display = \"none\";\n\n this.el.closest(\"FORM\").appendChild(hiddenFormButton);\n\n hiddenFormButton.click();\n hiddenFormButton.remove();\n }\n };\n\n private handleKeyDown = (ev: KeyboardEvent): void => {\n if (ev.key === \"Escape\" && this.hasTooltip) {\n this.closeButtonTooltip(ev);\n }\n };\n\n private onFocus = () => {\n this.icFocus.emit();\n };\n\n private onBlur = () => {\n this.icBlur.emit();\n };\n\n private updateTheme(newTheme: IcThemeForeground = null): void {\n const foregroundColor = getThemeFromContext(this.el, newTheme);\n\n if (foregroundColor !== IcThemeForegroundEnum.Default) {\n this.appearance = foregroundColor;\n }\n }\n\n // triggered when text content of sibling element in light DOM changes\n private mutationCallback = (): void => {\n this.describedByContent = this.describedbyEl.innerText;\n };\n\n // triggered when attributes of host element change\n private hostMutationCallback = (mutationList: MutationRecord[]): void => {\n let forceComponentUpdate = false;\n mutationList.forEach(({ attributeName }) => {\n const attribute = this.el.getAttribute(attributeName);\n if (attributeName === \"title\") this.title = attribute;\n else if (attributeName === \"aria-label\") this.ariaLabel = attribute;\n\n if (IC_INHERITED_ARIA.includes(attributeName)) {\n this.inheritedAttributes[attributeName] = attribute;\n forceComponentUpdate = true;\n }\n });\n if (forceComponentUpdate) {\n forceUpdate(this);\n }\n };\n\n private setHasTooltip = (): void => {\n this.hasTooltip =\n !this.disableTooltip && (!!this.title || this.isIconVariant());\n };\n\n private isIconVariant = (): boolean => {\n return this.variant.startsWith(\"icon\");\n };\n\n render() {\n const TagType = (this.href && \"a\") || \"button\";\n const { title, ariaLabel, inheritedAttributes } = this;\n const buttonAttrs =\n TagType === \"button\"\n ? {\n type: this.type,\n disabled: this.disabled,\n form: this.form,\n formaction: this.formaction,\n formenctype: this.formenctype,\n formmethod: this.formmethod,\n formnovalidate: this.formnovalidate,\n formtarget: this.formtarget,\n }\n : {\n download: this.download !== false ? this.download : null,\n href: this.href,\n rel: this.rel,\n target: this.target,\n referrerpolicy: this.referrerpolicy,\n hreflang: this.hreflang,\n };\n\n let describedby: string = null;\n let buttonId: string = null;\n if (this.hasTooltip) {\n buttonId =\n this.id !== null\n ? `ic-button-with-tooltip-${this.id}`\n : `ic-button-with-tooltip-${this.buttonIdNum}`;\n describedby =\n this.variant === \"icon\" && !!ariaLabel\n ? null\n : `ic-tooltip-${buttonId}`;\n } else {\n describedby = this.describedById;\n }\n\n const ButtonContent = () => {\n return (\n <TagType\n class=\"button\"\n aria-disabled={this.loading || this.disabled ? \"true\" : null}\n aria-label={this.loading ? \"Loading\" : ariaLabel}\n aria-expanded={this.dropdown && `${this.dropdownExpanded}`}\n {...buttonAttrs}\n {...inheritedAttributes}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n ref={(el) => (this.buttonEl = el)}\n aria-describedby={describedby}\n part=\"button\"\n >\n {this.hasIconSlot() && !this.loading && (\n <div class=\"icon-container\">\n <slot name=\"icon\" />\n </div>\n )}\n {this.hasIconSlot(\"left\") && !this.loading && (\n <div class=\"icon-container\">\n <slot name=\"left-icon\" />\n </div>\n )}\n {this.hasIconSlot(\"top\") &&\n !this.hasIconSlot(\"left\") &&\n !this.hasIconSlot(\"right\") &&\n !this.loading && (\n <div class=\"icon-container\">\n <slot name=\"top-icon\" />\n </div>\n )}\n {this.loading ? (\n <div class=\"loading-container\">\n <ic-loading-indicator\n type=\"linear\"\n appearance={\n this.variant === \"primary\" ||\n this.variant === \"destructive\" ||\n this.appearance === IcThemeForegroundEnum.Dark ||\n this.appearance === IcThemeForegroundEnum.Light\n ? \"light\"\n : \"dark\"\n }\n ></ic-loading-indicator>\n </div>\n ) : (\n <slot />\n )}\n {this.hasIconSlot(\"right\") && !this.loading && !this.dropdown && (\n <div class={{ \"icon-container\": true, \"right-icon\": true }}>\n <slot name=\"right-icon\" />\n </div>\n )}\n {this.dropdown &&\n !this.loading &&\n this.variant !== \"icon\" &&\n this.variant !== \"destructive\" && (\n <span\n class={{\n [\"arrow-dropdown\"]: !this.dropdownExpanded,\n [\"dropdown-expanded\"]: this.dropdownExpanded,\n }}\n innerHTML={arrowDropdown}\n />\n )}\n </TagType>\n );\n };\n\n return (\n <Host\n class={{\n [\"disabled\"]: this.disabled && !this.loading,\n [`button-variant-${this.variant}`]: true,\n [`button-size-${this.size}`]: true,\n [\"loading\"]: this.loading,\n [\"dark\"]: this.appearance === IcThemeForegroundEnum.Dark,\n [\"light\"]: this.appearance === IcThemeForegroundEnum.Light,\n [\"full-width\"]: this.fullWidth,\n [\"with-badge\"]: isSlotUsed(this.el, \"badge\"),\n [\"dropdown-no-icon\"]:\n this.dropdown &&\n !isSlotUsed(this.el, \"icon\") &&\n !isSlotUsed(this.el, \"left-icon\"),\n [\"top-icon\"]: isSlotUsed(this.el, \"top-icon\"),\n [\"white-background\"]:\n this.variant === \"secondary\" &&\n !this.transparentBackground &&\n this.appearance !== \"light\",\n }}\n onClick={this.handleClick}\n onKeyDown={this.handleKeyDown}\n aria-owns={this.ariaOwnsId}\n aria-controls={this.ariaControlsId}\n aria-expanded={this.dropdown && `${this.dropdownExpanded}`}\n >\n {this.hasTooltip && (\n <ic-tooltip\n id={describedby}\n label={title || ariaLabel}\n target={buttonId}\n placement={this.tooltipPlacement}\n silent={this.isIconVariant() && !!ariaLabel}\n >\n {this.hasRouterSlot() ? (\n <slot name=\"router-item\"></slot>\n ) : (\n <ButtonContent />\n )}\n </ic-tooltip>\n )}\n {isSlotUsed(this.el, \"badge\") && <slot name=\"badge\"></slot>}\n {!this.hasTooltip &&\n (this.hasRouterSlot() ? (\n <slot name=\"router-item\"></slot>\n ) : (\n <ButtonContent />\n ))}\n {this.describedByContent && (\n <span id={describedby} class=\"ic-button-describedby\">\n {this.describedByContent}\n </span>\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"ic-button.js","sourceRoot":"","sources":["../../../src/components/ic-button/ic-button.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,WAAW,EACX,CAAC,EACD,KAAK,GACN,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAM1D,OAAO,EAIL,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAE5D,IAAI,SAAS,GAAG,CAAC,CAAC;AAElB;;;;;;GAMG;AAQH,MAAM,OAAO,MAAM;;QAET,gBAAW,GAAG,SAAS,EAAE,CAAC;QAC1B,eAAU,GAAY,KAAK,CAAC;QAE5B,wBAAmB,GAA4B,EAAE,CAAC;QAClD,kBAAa,GAAgB,IAAI,CAAC;QAClC,kBAAa,GAAW,IAAI,CAAC;QAC7B,qBAAgB,GAAqB,IAAI,CAAC;QAC1C,yBAAoB,GAAqB,IAAI,CAAC;QAuU9C,gBAAW,GAAG,GAAS,EAAE;YAC/B,IACE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@stencil/core\";\n\nimport {\n getThemeFromContext,\n inheritAttributes,\n isSlotUsed,\n removeDisabledFalse,\n renderFileHiddenInput,\n} from \"../../utils/helpers\";\nimport { IC_INHERITED_ARIA } from \"../../utils/constants\";\nimport {\n IcButtonTypes,\n IcButtonVariants,\n IcButtonTooltipPlacement,\n} from \"./ic-button.types\";\nimport {\n IcSizes,\n IcTheme,\n IcThemeForeground,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\nimport arrowDropdown from \"../../assets/arrow-dropdown.svg\";\n\nlet buttonIds = 0;\n\n/**\n * @slot left-icon - Content will be placed to the left of the button label.\n * @slot right-icon - Content will be placed to the right of the button label.\n * @slot top-icon - Content will be placed above the button label.\n * @slot badge - Badge component overlaying the top right of the button.\n * @slot router-item - Handle routing by nesting your routes in this slot. Setting loading to true will have no impact on this slot.\n */\n@Component({\n tag: \"ic-button\",\n styleUrl: \"ic-button.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Button {\n private buttonEl: HTMLElement;\n private buttonIdNum = buttonIds++;\n private hasTooltip: boolean = false;\n private id: string;\n private inheritedAttributes: { [k: string]: string } = {};\n private describedbyEl: HTMLElement = null;\n private describedById: string = null;\n private mutationObserver: MutationObserver = null;\n private hostMutationObserver: MutationObserver = null;\n private routerSlot: HTMLElement;\n\n @Element() el: HTMLIcButtonElement;\n\n @State() ariaLabel: string = null;\n @State() describedByContent: string = null;\n @State() title: string = null;\n\n /**\n * If `fileUpload` is set to `true`, this is the accepted list of file types.\n */\n @Prop() accept?: string = \"*\";\n\n /**\n * The appearance of the button, e.g. dark, light, or the default.\n */\n @Prop({ mutable: true }) appearance?: IcThemeForeground = \"default\";\n\n /**\n * @internal Used to identify any related child component\n */\n @Prop() ariaControlsId: string | boolean;\n\n /**\n * @internal Used to identify any related child component\n */\n @Prop() ariaOwnsId: string | boolean;\n\n /**\n * If `true`, the button will be in disabled state.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * If `true`, the ic-tooltip which is shown for icon variant will be disabled. Title or aria-label must be set if this prop is not applied.\n */\n @Prop() disableTooltip?: boolean = false;\n\n /**\n * If `true`, the user can save the linked URL instead of navigating to it.\n */\n @Prop() download?: string | boolean = false;\n\n /**\n * If `true`, the button will show a dropdown icon.\n */\n @Prop() dropdown?: boolean = false;\n\n /**\n * If `true`, the aria-expanded value will be set to true. This is only applied if the dropdown prop is also true.\n */\n @Prop({ mutable: true, reflect: true }) dropdownExpanded?: boolean = false;\n\n /**\n * If `true`, when the button is clicked the native file explorer will be launched.\n */\n @Prop() fileUpload?: boolean = false;\n\n /**\n * The name of the control for the file input, which is submitted with the form data.\n */\n @Prop() fileInputName: string = `ic-button-file-upload-input-${buttonIds++}`;\n\n /**\n * The <form> element to associate the button with.\n */\n @Prop() form?: string;\n\n /**\n * The URL that processes the information submitted by the button. It overrides the action attribute of the button's form owner. Does nothing if there is no form owner.\n */\n @Prop() formaction?: string;\n\n /**\n * The way the submitted form data is encoded.\n */\n @Prop() formenctype?: string;\n\n /**\n * The HTTP method used to submit the form.\n */\n @Prop() formmethod?: string;\n\n /**\n * If `true`, the form will not be validated when submitted.\n */\n @Prop() formnovalidate?: boolean;\n\n /**\n * The place to display the response from submitting the form. It overrides the target attribute of the button's form owner.\n */\n @Prop() formtarget?: string;\n\n /**\n * If `true`, the button will fill the width of the container.\n */\n @Prop() fullWidth?: boolean = false;\n\n /**\n * The URL that the link points to. This will render the button as an \"a\" tag.\n */\n @Prop() href?: string;\n\n /**\n * The human language of the linked URL.\n */\n @Prop() hreflang?: string;\n\n /**\n * If `true`, the button will be in loading state.\n */\n @Prop() loading?: boolean = false;\n\n /**\n * If `fileUpload` is set to `true`, this boolean determines whether multiple files are accepted.\n */\n @Prop() multiple?: boolean = false;\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 list of the files that have been selected by a user.\n */\n @Prop() selectedFiles: FileList;\n\n /**\n * The size of the button to be displayed.\n */\n @Prop() size?: IcSizes = \"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 /**\n * The position of the tooltip in relation to the button.\n */\n @Prop() tooltipPlacement?: IcButtonTooltipPlacement = \"bottom\";\n\n /**\n * If `true`, the secondary variant of button will have a transparent background rather than white.\n */\n @Prop() transparentBackground?: boolean = true;\n\n /**\n * The type of the button.\n */\n @Prop() type?: IcButtonTypes = \"button\";\n\n /**\n * The variant of the button to be displayed.\n */\n @Prop() variant?: IcButtonVariants = \"primary\";\n\n /**\n * Emitted when button has blur\n */\n @Event() icBlur!: EventEmitter<void>;\n\n /**\n * If `fileUpload` is set to `true`, this will be emitted when a file is selected in the native explorer.\n */\n @Event() icFileSelection!: EventEmitter<FileList>;\n\n /**\n * Emitted when button has focus\n */\n @Event() icFocus!: EventEmitter<void>;\n\n disconnectedCallback(): void {\n if (this.mutationObserver !== null && this.mutationObserver !== undefined) {\n this.mutationObserver.disconnect();\n }\n if (\n this.hostMutationObserver !== null &&\n this.hostMutationObserver !== undefined\n ) {\n this.hostMutationObserver.disconnect();\n }\n }\n\n componentWillUpdate(): void {\n if (this.loading) {\n this.el.style.setProperty(\n \"--min-width\",\n `${this.el.getBoundingClientRect().width}px`\n );\n }\n this.setHasTooltip();\n }\n\n componentWillLoad(): void {\n const {\n title,\n \"aria-label\": ariaLabel,\n ...restInheritedAttributes\n } = inheritAttributes(this.el, [...IC_INHERITED_ARIA, \"title\"]);\n\n this.title = title;\n this.ariaLabel = ariaLabel;\n this.inheritedAttributes = restInheritedAttributes;\n\n removeDisabledFalse(this.disabled, this.el);\n\n this.el.setAttribute(\"exportparts\", \"button\");\n\n this.id = this.el.id || null;\n this.setHasTooltip();\n\n if (!this.hasTooltip) {\n const describedById = this.inheritedAttributes[\"aria-describedby\"];\n if (describedById !== undefined) {\n this.describedById = describedById;\n const el = this.el.parentElement.querySelector<HTMLElement>(\n `#${describedById}`\n );\n if (el) {\n this.describedByContent = el.innerText;\n this.describedbyEl = el;\n }\n }\n }\n }\n\n componentDidLoad(): void {\n this.updateTheme();\n\n if (typeof MutationObserver !== \"undefined\") {\n if (this.describedById) {\n this.mutationObserver = new MutationObserver(this.mutationCallback);\n this.mutationObserver.observe(this.describedbyEl, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n }\n\n this.hostMutationObserver = new MutationObserver(\n this.hostMutationCallback\n );\n this.hostMutationObserver.observe(this.el, {\n attributes: true,\n });\n }\n }\n\n componentWillRender(): void {\n const iconEl = this.hasIconSlot(\"left\")\n ? this.el.querySelector(`[slot=\"left-icon\"]`)\n : this.hasIconSlot(\"right\")\n ? this.el.querySelector(`[slot=\"right-icon\"]`)\n : null;\n iconEl?.setAttribute(\"viewBox\", \"0 0 24 24\");\n }\n\n @Listen(\"click\", { capture: true })\n handleHostClick(event: Event): void {\n if (!this.hasRouterSlot()) {\n if (this.fileUpload) {\n renderFileHiddenInput(\n this.icFileSelection,\n this.el,\n this.multiple,\n this.fileInputName,\n this.selectedFiles,\n this.disabled,\n this.accept\n );\n }\n if (this.disabled || this.loading) {\n event.stopImmediatePropagation();\n }\n if (this.dropdown) {\n this.dropdownExpanded = !this.dropdownExpanded;\n }\n }\n }\n\n @Listen(\"themeChange\", { target: \"document\" })\n themeChangeHandler({ detail }: CustomEvent<IcTheme>): void {\n this.updateTheme(detail.mode);\n }\n\n /**\n * Sets focus on the native `button`.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.buttonEl?.focus();\n }\n\n private async closeButtonTooltip(ev: KeyboardEvent): Promise<void> {\n const tooltip = this.el.shadowRoot.querySelector(\"ic-tooltip\");\n if (await tooltip.isTooltipVisible()) {\n tooltip.displayTooltip(false);\n ev.preventDefault();\n ev.stopImmediatePropagation();\n }\n }\n\n private hasIconSlot(position?: \"left\" | \"right\" | \"top\"): boolean {\n const selectorPrefix = position ? `${position}-` : \"\";\n return this.el.querySelector(`[slot=\"${selectorPrefix}icon\"]`) !== null;\n }\n\n private hasRouterSlot(): boolean {\n this.routerSlot = this.el.querySelector('[slot=\"router-item\"]');\n if (this.routerSlot) {\n this.routerSlot.ariaLabel = this.routerSlot.textContent;\n }\n return !!this.routerSlot;\n }\n\n private handleClick = (): void => {\n if (\n (this.el.type === \"submit\" || this.el.type === \"reset\") &&\n !this.hasRouterSlot() &&\n !!this.el.closest(\"FORM\")\n ) {\n const hiddenFormButton = document.createElement(\"button\");\n\n hiddenFormButton.setAttribute(\"type\", this.el.type);\n hiddenFormButton.style.display = \"none\";\n\n this.el.closest(\"FORM\").appendChild(hiddenFormButton);\n\n hiddenFormButton.click();\n hiddenFormButton.remove();\n }\n };\n\n private handleKeyDown = (ev: KeyboardEvent): void => {\n if (ev.key === \"Escape\" && this.hasTooltip) {\n this.closeButtonTooltip(ev);\n }\n };\n\n private onFocus = () => {\n this.icFocus.emit();\n };\n\n private onBlur = () => {\n this.icBlur.emit();\n };\n\n private updateTheme(newTheme: IcThemeForeground = null): void {\n const foregroundColor = getThemeFromContext(this.el, newTheme);\n\n if (foregroundColor !== IcThemeForegroundEnum.Default) {\n this.appearance = foregroundColor;\n }\n }\n\n // triggered when text content of sibling element in light DOM changes\n private mutationCallback = (): void => {\n this.describedByContent = this.describedbyEl.innerText;\n };\n\n // triggered when attributes of host element change\n private hostMutationCallback = (mutationList: MutationRecord[]): void => {\n let forceComponentUpdate = false;\n mutationList.forEach(({ attributeName }) => {\n const attribute = this.el.getAttribute(attributeName);\n if (attributeName === \"title\") this.title = attribute;\n else if (attributeName === \"aria-label\") this.ariaLabel = attribute;\n\n if (IC_INHERITED_ARIA.includes(attributeName)) {\n this.inheritedAttributes[attributeName] = attribute;\n forceComponentUpdate = true;\n }\n });\n if (forceComponentUpdate) {\n forceUpdate(this);\n }\n };\n\n private setHasTooltip = (): void => {\n this.hasTooltip =\n !this.disableTooltip && (!!this.title || this.isIconVariant());\n };\n\n private isIconVariant = (): boolean => {\n return this.variant.startsWith(\"icon\");\n };\n\n render() {\n const TagType = (this.href && \"a\") || \"button\";\n const { title, ariaLabel, inheritedAttributes } = this;\n const buttonAttrs =\n TagType === \"button\"\n ? {\n type: this.type,\n disabled: this.disabled,\n form: this.form,\n formaction: this.formaction,\n formenctype: this.formenctype,\n formmethod: this.formmethod,\n formnovalidate: this.formnovalidate,\n formtarget: this.formtarget,\n }\n : {\n download: this.download !== false ? this.download : null,\n href: this.href,\n rel: this.rel,\n target: this.target,\n referrerpolicy: this.referrerpolicy,\n hreflang: this.hreflang,\n };\n\n let describedby: string = null;\n let buttonId: string = null;\n if (this.hasTooltip) {\n buttonId =\n this.id !== null\n ? `ic-button-with-tooltip-${this.id}`\n : `ic-button-with-tooltip-${this.buttonIdNum}`;\n describedby =\n this.variant === \"icon\" && !!ariaLabel\n ? null\n : `ic-tooltip-${buttonId}`;\n } else {\n describedby = this.describedById;\n }\n\n const ButtonContent = () => {\n const darkAppearance =\n this.variant.includes(\"primary\") ||\n this.variant.includes(\"destructive\") ||\n this.appearance === IcThemeForegroundEnum.Dark ||\n this.appearance === IcThemeForegroundEnum.Light;\n return (\n <TagType\n class=\"button\"\n aria-disabled={this.loading || this.disabled ? \"true\" : null}\n aria-label={this.loading ? \"Loading\" : ariaLabel}\n aria-expanded={this.dropdown && `${this.dropdownExpanded}`}\n {...buttonAttrs}\n {...inheritedAttributes}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n ref={(el) => (this.buttonEl = el)}\n aria-describedby={describedby}\n part=\"button\"\n >\n {this.hasIconSlot(\"left\") && !this.loading && (\n <div class=\"icon-container\">\n <slot name=\"left-icon\" />\n </div>\n )}\n {this.hasIconSlot(\"top\") &&\n !this.hasIconSlot(\"left\") &&\n !this.hasIconSlot(\"right\") &&\n !this.loading && (\n <div class=\"icon-container\">\n <slot name=\"top-icon\" />\n </div>\n )}\n {this.loading ? (\n <div class=\"loading-container\">\n <ic-loading-indicator\n type=\"linear\"\n monochrome={darkAppearance}\n theme={darkAppearance ? \"dark\" : \"light\"}\n ></ic-loading-indicator>\n </div>\n ) : (\n <slot />\n )}\n {this.hasIconSlot(\"right\") && !this.loading && !this.dropdown && (\n <div class={{ \"icon-container\": true, \"right-icon\": true }}>\n <slot name=\"right-icon\" />\n </div>\n )}\n {this.dropdown &&\n !this.loading &&\n this.variant !== \"icon\" &&\n this.variant !== \"destructive\" && (\n <span\n class={{\n [\"arrow-dropdown\"]: !this.dropdownExpanded,\n [\"dropdown-expanded\"]: this.dropdownExpanded,\n }}\n innerHTML={arrowDropdown}\n />\n )}\n </TagType>\n );\n };\n\n return (\n <Host\n class={{\n [\"ic-button-disabled\"]: this.disabled && !this.loading,\n [`ic-button-variant-${this.variant}`]: true,\n [`ic-button-size-${this.size}`]: true,\n [\"ic-button-loading\"]: this.loading,\n [\"ic-button-dark\"]: this.appearance === IcThemeForegroundEnum.Dark,\n [\"ic-button-light\"]: this.appearance === IcThemeForegroundEnum.Light,\n [\"ic-button-full-width\"]: this.fullWidth,\n [\"with-badge\"]: isSlotUsed(this.el, \"badge\"),\n [\"dropdown-no-icon\"]:\n this.dropdown &&\n !isSlotUsed(this.el, \"icon\") &&\n !isSlotUsed(this.el, \"left-icon\"),\n [\"top-icon\"]: isSlotUsed(this.el, \"top-icon\"),\n [\"white-background\"]:\n this.variant === \"secondary\" &&\n !this.transparentBackground &&\n this.appearance !== \"light\",\n }}\n onClick={this.handleClick}\n onKeyDown={this.handleKeyDown}\n aria-owns={this.ariaOwnsId}\n aria-controls={this.ariaControlsId}\n aria-expanded={this.dropdown && `${this.dropdownExpanded}`}\n >\n {this.hasTooltip && (\n <ic-tooltip\n id={describedby}\n label={title || ariaLabel}\n target={buttonId}\n placement={this.tooltipPlacement}\n silent={this.isIconVariant() && !!ariaLabel}\n >\n {this.hasRouterSlot() ? (\n <slot name=\"router-item\"></slot>\n ) : (\n <ButtonContent />\n )}\n </ic-tooltip>\n )}\n {isSlotUsed(this.el, \"badge\") && <slot name=\"badge\"></slot>}\n {!this.hasTooltip &&\n (this.hasRouterSlot() ? (\n <slot name=\"router-item\"></slot>\n ) : (\n <ButtonContent />\n ))}\n {this.describedByContent && (\n <span id={describedby} class=\"ic-button-describedby\">\n {this.describedByContent}\n </span>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -492,7 +492,7 @@ button {
492
492
  background-color: var(--ic-action-default-bg-hover);
493
493
  box-shadow: var(--ic-border-focus);
494
494
  outline: var(--ic-hc-focus-outline);
495
- border: var(--ic-border-pressed);
495
+ border: var(--ic-border-pressed-default);
496
496
  }
497
497
 
498
498
  .card.clickable:active {
@@ -520,11 +520,13 @@ button {
520
520
  }
521
521
 
522
522
  .card.disabled ::slotted(svg) {
523
- fill: var(--ic-color-tertiary-text);
523
+ fill: var(--ic-color-text-tertiary);
524
524
  }
525
525
 
526
526
  .card.clickable .card-title {
527
- color: var(--ic-hyperlink);
527
+ --ic-typography-color: var(--ic-color-hyperlink-default);
528
+
529
+ color: var(--ic-color-hyperlink-default);
528
530
  text-decoration: underline;
529
531
  text-decoration-thickness: var(--ic-space-1px);
530
532
  }
@@ -557,8 +559,10 @@ button {
557
559
  .card.disabled .card-title {
558
560
  text-decoration: underline;
559
561
  text-decoration-thickness: var(--ic-space-1px);
560
- text-decoration-color: var(--ic-color-tertiary-text);
561
- color: var(--ic-color-tertiary-text);
562
+ text-decoration-color: var(--ic-color-text-tertiary);
563
+ color: var(--ic-color-text-tertiary);
564
+
565
+ --ic-typography-color: var(--ic-color-text-tertiary);
562
566
  }
563
567
 
564
568
  .subheading {
@@ -576,7 +580,7 @@ button {
576
580
 
577
581
  .card.disabled .card-message,
578
582
  .card.disabled .subheading {
579
- color: var(--ic-color-tertiary-text);
583
+ --ic-typography-color: var(--ic-color-text-tertiary);
580
584
  }
581
585
 
582
586
  .interaction-button {
@@ -648,7 +652,7 @@ button {
648
652
 
649
653
  .toggle-button:active:not(:focus) {
650
654
  background-color: var(--ic-action-default-bg-active);
651
- color: var(--ic-action-default-active);
655
+ color: var(--ic-action-default-pressed);
652
656
  }
653
657
 
654
658
  .toggle-button svg {
@@ -688,6 +692,8 @@ button {
688
692
  .card.disabled .subheading,
689
693
  .card.disabled .card-title {
690
694
  color: GrayText;
695
+
696
+ --ic-typography-color: GrayText;
691
697
  }
692
698
  }
693
699
 
@@ -15,7 +15,7 @@ import chevronIcon from "../../assets/chevron-icon.svg";
15
15
  * @slot expanded-content - Content will be placed below the interaction controls but will not initially be rendered.
16
16
  * @slot badge - Badge component overlaying the top right of the card.
17
17
  */
18
- export class Card {
18
+ export class CardVertical {
19
19
  constructor() {
20
20
  this.hostMutationObserver = null;
21
21
  this.parentFocussed = () => {
@@ -146,16 +146,16 @@ export class Card {
146
146
  [`toggle-button-${this.areaExpanded ? "expanded" : "closed"}`]: true,
147
147
  }, "aria-label": "Toggle expandable area", "aria-expanded": `${this.areaExpanded}`, "aria-controls": this.areaExpanded ? "expanded-content-area" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed(this.el, "expanded-content") && this.areaExpanded && (h("div", { class: "expanded-content", id: "expanded-content-area" }, h("slot", { name: "expanded-content" }))), isSlotUsed(this.el, "badge") && h("slot", { name: "badge" })));
148
148
  }
149
- static get is() { return "ic-card"; }
149
+ static get is() { return "ic-card-vertical"; }
150
150
  static get encapsulation() { return "shadow"; }
151
151
  static get originalStyleUrls() {
152
152
  return {
153
- "$": ["ic-card.css"]
153
+ "$": ["ic-card-vertical.css"]
154
154
  };
155
155
  }
156
156
  static get styleUrls() {
157
157
  return {
158
- "$": ["ic-card.css"]
158
+ "$": ["ic-card-vertical.css"]
159
159
  };
160
160
  }
161
161
  static get properties() {
@@ -424,4 +424,4 @@ export class Card {
424
424
  }];
425
425
  }
426
426
  }
427
- //# sourceMappingURL=ic-card.js.map
427
+ //# sourceMappingURL=ic-card-vertical.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-card-vertical.js","s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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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 chevronIcon from \"../../assets/chevron-icon.svg\";\n\n/**\n * @slot heading - Content will be placed at the top of the card to the right of the icon.\n * @slot message - Content will be placed in the main body of the card.\n * @slot subheading - Content will be placed below the card heading.\n * @slot adornment - Content will be placed below the card subheading.\n * @slot image-top - Content will be placed at the top of the card above all other content.\n * @slot image-mid - Content will be placed below the card heading section.\n * @slot icon - Content will be placed to the left of the card heading.\n * @slot interaction-button - Content will be placed in the top right corner of the heading section.\n * @slot interaction-controls - Content will be placed below the card message.\n * @slot expanded-content - Content will be placed below the interaction controls but will not initially be rendered.\n * @slot badge - Badge component overlaying the top right of the card.\n */\n@Component({\n tag: \"ic-card-vertical\",\n styleUrl: \"ic-card-vertical.css\",\n shadow: true,\n})\nexport class CardVertical {\n private hostMutationObserver: MutationObserver = null;\n\n @Element() el: HTMLIcCardVerticalElement;\n\n @State() appearance?: IcThemeForeground = \"default\";\n @State() areaExpanded: boolean = false;\n @State() isFocussed: boolean = false;\n @State() parentEl: HTMLElement | null = null;\n @State() parentIsAnchorTag: boolean = false;\n\n /**\n * If `true`, the card will be a clickable variant, instead of static.\n */\n @Prop({ mutable: true }) clickable?: boolean = false;\n\n /**\n * If `true`, the card will be disabled if it is clickable.\n */\n @Prop() disabled?: boolean = false;\n\n /**\n * If `true`, the card will have an expandable area and expansion toggle button.\n */\n @Prop() expandable?: boolean = false;\n\n /**\n * If `true`, the card will fill the width of the container.\n */\n @Prop() fullWidth?: boolean = false;\n\n /**\n * The heading for the card. This is required, unless a slotted heading is used.\n */\n @Prop() heading?: string;\n\n /**\n * The URL that the clickable card link points to. If set, the clickable 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 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 subheading for the card.\n */\n @Prop() subheading?: string;\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\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 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 private toggleExpanded = (): void => {\n this.areaExpanded = !this.areaExpanded;\n };\n\n private hostMutationCallback = (mutationList: MutationRecord[]): void => {\n if (\n mutationList.some(({ type, addedNodes, removedNodes }) =>\n type === \"childList\"\n ? checkSlotInChildMutations(addedNodes, removedNodes, [\n \"message\",\n \"adornment\",\n \"expanded-content\",\n \"image-top\",\n \"image-mid\",\n \"icon\",\n \"interaction-button\",\n \"badge\",\n \"interaction-controls\",\n ])\n : false\n )\n ) {\n forceUpdate(this);\n }\n };\n\n render() {\n const {\n clickable,\n disabled,\n expandable,\n heading,\n message,\n href,\n hreflang,\n referrerpolicy,\n rel,\n subheading,\n target,\n fullWidth,\n parentIsAnchorTag,\n isFocussed,\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 [\"fullwidth\"]: fullWidth,\n [\"focussed\"]: isFocussed,\n [\"dark\"]: this.appearance === IcThemeForegroundEnum.Dark,\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-top\") && (\n <div class=\"image-top\">\n <slot name=\"image-top\"></slot>\n </div>\n )}\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 {isSlotUsed(this.el, \"interaction-button\") && (\n <div class=\"interaction-button\">\n <slot name=\"interaction-button\"></slot>\n </div>\n )}\n </div>\n {(subheading || isSlotUsed(this.el, \"subheading\")) && (\n <div class=\"subheading\">\n <slot name=\"subheading\">\n <ic-typography variant=\"subtitle-small\">\n {subheading}\n </ic-typography>\n </slot>\n </div>\n )}\n {isSlotUsed(this.el, \"adornment\") && (\n <div class=\"adornment\">\n <slot name=\"adornment\"></slot>\n </div>\n )}\n {isSlotUsed(this.el, \"image-mid\") && (\n <div class=\"image-mid\">\n <slot name=\"image-mid\"></slot>\n </div>\n )}\n {(message || isSlotUsed(this.el, \"message\")) && (\n <div\n class={{\n [\"card-message\"]: true,\n }}\n >\n {message && <ic-typography variant=\"body\">{message}</ic-typography>}\n {isSlotUsed(this.el, \"message\") && <slot name=\"message\"></slot>}\n </div>\n )}\n {(isSlotUsed(this.el, \"interaction-controls\") || expandable) && (\n <div class=\"interaction-area\">\n <div class=\"interaction-controls\">\n <slot name=\"interaction-controls\"></slot>\n </div>\n {expandable && (\n <ic-tooltip\n id=\"ic-tooltip-expand-button\"\n label=\"Toggle expandable area\"\n silent\n >\n <button\n class={{\n [\"toggle-button\"]: true,\n [`toggle-button-${\n this.areaExpanded ? \"expanded\" : \"closed\"\n }`]: true,\n }}\n aria-label=\"Toggle expandable area\"\n aria-expanded={`${this.areaExpanded}`}\n aria-controls={\n this.areaExpanded ? \"expanded-content-area\" : null\n }\n onClick={this.toggleExpanded}\n innerHTML={chevronIcon}\n ></button>\n </ic-tooltip>\n )}\n </div>\n )}\n {isSlotUsed(this.el, \"expanded-content\") && this.areaExpanded && (\n <div class=\"expanded-content\" id=\"expanded-content-area\">\n <slot name=\"expanded-content\"></slot>\n </div>\n )}\n {isSlotUsed(this.el, \"badge\") && <slot name=\"badge\"></slot>}\n </Component>\n );\n }\n}\n"]}
@@ -1,45 +1,45 @@
1
1
  import { newSpecPage } from "@stencil/core/testing";
2
- import { Card } from "../../ic-card";
3
- describe("ic-card", () => {
2
+ import { CardVertical } from "../../ic-card-vertical";
3
+ describe("ic-card-vertical", () => {
4
4
  it("should render", async () => {
5
5
  const page = await newSpecPage({
6
- components: [Card],
7
- html: `<ic-card heading="Card" message="This is a static card"></ic-card>`,
6
+ components: [CardVertical],
7
+ html: `<ic-card-vertical heading="Card" message="This is a static card"></ic-card-vertical>`,
8
8
  });
9
9
  expect(page.root).toMatchSnapshot();
10
10
  });
11
11
  it("should render as a button", async () => {
12
12
  const page = await newSpecPage({
13
- components: [Card],
14
- html: `<ic-card heading="Card" message="This is a clickable card rendered as a button" clickable=true></ic-card>`,
13
+ components: [CardVertical],
14
+ html: `<ic-card-vertical heading="Card" message="This is a clickable card rendered as a button" clickable=true></ic-card-vertical>`,
15
15
  });
16
16
  expect(page.root).toMatchSnapshot();
17
17
  });
18
18
  it("should render as a link", async () => {
19
19
  const page = await newSpecPage({
20
- components: [Card],
21
- html: `<ic-card heading="Card" message="This is a clickable card rendered as a button" clickable=true href="/"></ic-card>`,
20
+ components: [CardVertical],
21
+ html: `<ic-card-vertical heading="Card" message="This is a clickable card rendered as a button" clickable=true href="/"></ic-card-vertical>`,
22
22
  });
23
23
  expect(page.root).toMatchSnapshot();
24
24
  });
25
25
  it("should render full width variant", async () => {
26
26
  const page = await newSpecPage({
27
- components: [Card],
28
- html: `<ic-card heading="Card" full-width=true message="This is a full width card" clickable=true></ic-card>`,
27
+ components: [CardVertical],
28
+ html: `<ic-card-vertical heading="Card" full-width=true message="This is a full width card" clickable=true></ic-card-vertical>`,
29
29
  });
30
30
  expect(page.root).toMatchSnapshot();
31
31
  });
32
32
  it("should render with a link parent", async () => {
33
33
  const page = await newSpecPage({
34
- components: [Card],
35
- html: `<a href="/"><ic-card heading="Card" message="This is a clickable card" clickable=true></ic-card></a>`,
34
+ components: [CardVertical],
35
+ html: `<a href="/"><ic-card-vertical heading="Card" message="This is a clickable card" clickable=true></ic-card-vertical></a>`,
36
36
  });
37
37
  expect(page.root).toMatchSnapshot();
38
38
  });
39
39
  it("should apply 'focussed' style when parent is focussed", async () => {
40
40
  const page = await newSpecPage({
41
- components: [Card],
42
- html: `<a href="/"><ic-card id="test-id" heading="Card" message="This is a clickable card" clickable=true></ic-card></a>`,
41
+ components: [CardVertical],
42
+ html: `<a href="/"><ic-card-vertical id="test-id" heading="Card" message="This is a clickable card" clickable=true></ic-card-vertical></a>`,
43
43
  });
44
44
  expect(page.root).not.toBeNull;
45
45
  const element = await document.getElementById("test-id");
@@ -49,8 +49,8 @@ describe("ic-card", () => {
49
49
  });
50
50
  it("should lose 'focussed' style when parent loses focus", async () => {
51
51
  const page = await newSpecPage({
52
- components: [Card],
53
- html: `<a href="/"><ic-card id="test-card" heading="Card" message="This is a clickable card" clickable=true></ic-card></a>`,
52
+ components: [CardVertical],
53
+ html: `<a href="/"><ic-card-vertical id="test-card" heading="Card" message="This is a clickable card" clickable=true></ic-card-vertical></a>`,
54
54
  });
55
55
  expect(page.root).not.toBeNull;
56
56
  const element = await document.getElementById("test-card");
@@ -62,8 +62,8 @@ describe("ic-card", () => {
62
62
  });
63
63
  it("should stop immediate propagation of a click event when disabled", async () => {
64
64
  const page = await newSpecPage({
65
- components: [Card],
66
- html: `<ic-card id="test-card" heading="Card" message="This is a clickable card" clickable=true disabled=true onclick="alert('test')"></ic-card>`,
65
+ components: [CardVertical],
66
+ html: `<ic-card-vertical id="test-card" heading="Card" message="This is a clickable card" clickable=true disabled=true onclick="alert('test')"></ic-card-vertical>`,
67
67
  });
68
68
  jest.spyOn(window, "alert").mockImplementation();
69
69
  const element = await document.getElementById("test-card");
@@ -73,50 +73,50 @@ describe("ic-card", () => {
73
73
  });
74
74
  it("should render with a subheading", async () => {
75
75
  const page = await newSpecPage({
76
- components: [Card],
77
- html: `<ic-card id="test-card" heading="Card" subheading="Card subheading" message="This is a card"></ic-card>`,
76
+ components: [CardVertical],
77
+ html: `<ic-card-vertical id="test-card" heading="Card" subheading="Card subheading" message="This is a card"></ic-card-vertical>`,
78
78
  });
79
79
  expect(page.root).toMatchSnapshot();
80
80
  });
81
81
  it("should render with an interaction button", async () => {
82
82
  const page = await newSpecPage({
83
- components: [Card],
84
- html: `<ic-card id="test-card" heading="Card" subheading="Card subheading" message="This is a card"><ic-button variant="primary" slot="interaction-button">Click here</ic-button></ic-card>`,
83
+ components: [CardVertical],
84
+ html: `<ic-card-vertical id="test-card" heading="Card" subheading="Card subheading" message="This is a card"><ic-button variant="primary" slot="interaction-button">Click here</ic-button></ic-card-vertical>`,
85
85
  });
86
86
  expect(page.root).toMatchSnapshot();
87
87
  });
88
88
  it("should render with a top image", async () => {
89
89
  const page = await newSpecPage({
90
- components: [Card],
91
- html: `<ic-card id="test-card" heading="Card" subheading="Card subheading" message="This is a card"><div slot="image-top">Image placeholder</div></ic-card>`,
90
+ components: [CardVertical],
91
+ html: `<ic-card-vertical id="test-card" heading="Card" subheading="Card subheading" message="This is a card"><div slot="image-top">Image placeholder</div></ic-card-vertical>`,
92
92
  });
93
93
  expect(page.root).toMatchSnapshot();
94
94
  });
95
95
  it("should render with a middle image", async () => {
96
96
  const page = await newSpecPage({
97
- components: [Card],
98
- html: `<ic-card id="test-card" heading="Card" subheading="Card subheading" message="This is a card"><div slot="image-mid">Image placeholder</div></ic-card>`,
97
+ components: [CardVertical],
98
+ html: `<ic-card-vertical id="test-card" heading="Card" subheading="Card subheading" message="This is a card"><div slot="image-mid">Image placeholder</div></ic-card-vertical>`,
99
99
  });
100
100
  expect(page.root).toMatchSnapshot();
101
101
  });
102
102
  it("should render with interaction controls", async () => {
103
103
  const page = await newSpecPage({
104
- components: [Card],
105
- html: `<ic-card id="test-card" heading="Card" subheading="Card subheading" message="This is a card"><ic-button slot="interaction-controls">Click here</ic-button></ic-card>`,
104
+ components: [CardVertical],
105
+ html: `<ic-card-vertical id="test-card" heading="Card" subheading="Card subheading" message="This is a card"><ic-button slot="interaction-controls">Click here</ic-button></ic-card-vertical>`,
106
106
  });
107
107
  expect(page.root).toMatchSnapshot();
108
108
  });
109
109
  it("should render as expandable", async () => {
110
110
  const page = await newSpecPage({
111
- components: [Card],
112
- html: `<ic-card id="test-card" heading="Card" subheading="Card subheading" message="This is a card" expandable></ic-card>`,
111
+ components: [CardVertical],
112
+ html: `<ic-card-vertical id="test-card" heading="Card" subheading="Card subheading" message="This is a card" expandable></ic-card-vertical>`,
113
113
  });
114
114
  expect(page.root).toMatchSnapshot();
115
115
  });
116
116
  it("should render content in expanded area", async () => {
117
117
  const page = await newSpecPage({
118
- components: [Card],
119
- html: `<ic-card id="test-card" heading="Card" subheading="Card subheading" message="This is a card" expandable><ic-typography slot="expanded-content">Extra content</ic-typography></ic-card>`,
118
+ components: [CardVertical],
119
+ html: `<ic-card-vertical id="test-card" heading="Card" subheading="Card subheading" message="This is a card" expandable><ic-typography slot="expanded-content">Extra content</ic-typography></ic-card-vertical>`,
120
120
  });
121
121
  page.rootInstance.areaExpanded = true;
122
122
  await page.waitForChanges();
@@ -124,8 +124,8 @@ describe("ic-card", () => {
124
124
  });
125
125
  it("should toggle expanded content when expansion toggle is clicked", async () => {
126
126
  const page = await newSpecPage({
127
- components: [Card],
128
- html: `<ic-card id="test-card" heading="Card" message="This is a clickable card" expandable><ic-typography slot="expanded-content">Expanded</ic-typography></ic-card>`,
127
+ components: [CardVertical],
128
+ html: `<ic-card-vertical id="test-card" heading="Card" message="This is a clickable card" expandable><ic-typography slot="expanded-content">Expanded</ic-typography></ic-card-vertical>`,
129
129
  });
130
130
  expect(page.root).toMatchSnapshot();
131
131
  page.rootInstance.toggleExpanded();
@@ -134,24 +134,24 @@ describe("ic-card", () => {
134
134
  });
135
135
  it("should call 'setFocus' when card as a button is focused", async () => {
136
136
  const page = await newSpecPage({
137
- components: [Card],
138
- html: `<ic-card heading="Card" message="This is a clickable card rendered as a button" clickable=true></ic-card>`,
137
+ components: [CardVertical],
138
+ html: `<ic-card-vertical heading="Card" message="This is a clickable card rendered as a button" clickable=true></ic-card-vertical>`,
139
139
  });
140
140
  //Can't expect anything in this test - this is to increase code coverage only
141
141
  await page.rootInstance.setFocus().toHaveBeenCalled;
142
142
  });
143
143
  it("should call 'setFocus' when card as a link is focused", async () => {
144
144
  const page = await newSpecPage({
145
- components: [Card],
146
- html: `<ic-card heading="Card" message="This is a clickable card rendered as a button" clickable=true href="/"></ic-card>`,
145
+ components: [CardVertical],
146
+ html: `<ic-card-vertical heading="Card" message="This is a clickable card rendered as a button" clickable=true href="/"></ic-card-vertical>`,
147
147
  });
148
148
  //Can't expect anything in this test - this is to increase code coverage only
149
149
  await page.rootInstance.setFocus().toHaveBeenCalled;
150
150
  });
151
151
  it("should test rendering slotted after initial render", async () => {
152
152
  const page = await newSpecPage({
153
- components: [Card],
154
- html: `<ic-card heading="Card" message="This is a static card"></ic-card>`,
153
+ components: [CardVertical],
154
+ html: `<ic-card-vertical heading="Card" message="This is a static card"></ic-card-vertical>`,
155
155
  });
156
156
  const icon = document.createElement("svg");
157
157
  icon.setAttribute("slot", "icon");
@@ -170,4 +170,4 @@ describe("ic-card", () => {
170
170
  ]);
171
171
  });
172
172
  });
173
- //# sourceMappingURL=ic-card.spec.js.map
173
+ //# sourceMappingURL=ic-card-vertical.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-card-vertical.spec.js","sourceRoot":"","sources":["../../../../../src/components/ic-card-vertical/test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CAAC,CAAC;QAEH,6EAA6E;QAC7E,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,gBAAgB,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,KAAK,IAAI,EAAE;QAClE,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,YAAY,CAAC;YAC1B,IAAI,EAAE,sFAAsF;SAC7F,CAAC,CAAC;QAEH,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC3C,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAElC,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/C,QAAQ,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAE3C,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/C,QAAQ,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAE3C,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAChD,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;QAElD,IAAI,CAAC,YAAY,CAAC,oBAAoB,CAAC;YACrC;gBACE,IAAI,EAAE,WAAW;gBACjB,UAAU,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC;gBAC9C,YAAY,EAAE,EAAE;aACjB;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from \"@stencil/core/testing\";\nimport { CardVertical } from \"../../ic-card-vertical\";\n\ndescribe(\"ic-card-vertical\", () => {\n it(\"should render\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical heading=\"Card\" message=\"This is a static card\"></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render as a button\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical heading=\"Card\" message=\"This is a clickable card rendered as a button\" clickable=true></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render as a link\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical heading=\"Card\" message=\"This is a clickable card rendered as a button\" clickable=true href=\"/\"></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render full width variant\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical heading=\"Card\" full-width=true message=\"This is a full width card\" clickable=true></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with a link parent\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<a href=\"/\"><ic-card-vertical heading=\"Card\" message=\"This is a clickable card\" clickable=true></ic-card-vertical></a>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should apply 'focussed' style when parent is focussed\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<a href=\"/\"><ic-card-vertical id=\"test-id\" heading=\"Card\" message=\"This is a clickable card\" clickable=true></ic-card-vertical></a>`,\n });\n\n expect(page.root).not.toBeNull;\n\n const element = await document.getElementById(\"test-id\");\n\n await expect(element.classList.contains(\"focussed\")).toBeFalsy;\n\n await element.focus();\n\n await expect(element.classList.contains(\"focussed\")).toBeTruthy;\n });\n\n it(\"should lose 'focussed' style when parent loses focus\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<a href=\"/\"><ic-card-vertical id=\"test-card\" heading=\"Card\" message=\"This is a clickable card\" clickable=true></ic-card-vertical></a>`,\n });\n\n expect(page.root).not.toBeNull;\n\n const element = await document.getElementById(\"test-card\");\n\n await element.focus();\n\n await expect(element.classList.contains(\"focussed\")).toBeTruthy;\n\n await element.blur();\n\n await expect(element.classList.contains(\"focussed\")).toBeFalsy;\n\n await page.rootInstance.disconnectedCallback();\n });\n\n it(\"should stop immediate propagation of a click event when disabled\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical id=\"test-card\" heading=\"Card\" message=\"This is a clickable card\" clickable=true disabled=true onclick=\"alert('test')\"></ic-card-vertical>`,\n });\n\n jest.spyOn(window, \"alert\").mockImplementation();\n\n const element = await document.getElementById(\"test-card\");\n\n element.click();\n\n await page.waitForChanges();\n\n await expect(window.alert).not.toHaveBeenCalled;\n });\n\n it(\"should render with a subheading\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical id=\"test-card\" heading=\"Card\" subheading=\"Card subheading\" message=\"This is a card\"></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with an interaction button\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical id=\"test-card\" heading=\"Card\" subheading=\"Card subheading\" message=\"This is a card\"><ic-button variant=\"primary\" slot=\"interaction-button\">Click here</ic-button></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with a top image\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical id=\"test-card\" heading=\"Card\" subheading=\"Card subheading\" message=\"This is a card\"><div slot=\"image-top\">Image placeholder</div></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with a middle image\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical id=\"test-card\" heading=\"Card\" subheading=\"Card subheading\" message=\"This is a card\"><div slot=\"image-mid\">Image placeholder</div></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render with interaction controls\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical id=\"test-card\" heading=\"Card\" subheading=\"Card subheading\" message=\"This is a card\"><ic-button slot=\"interaction-controls\">Click here</ic-button></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render as expandable\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical id=\"test-card\" heading=\"Card\" subheading=\"Card subheading\" message=\"This is a card\" expandable></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render content in expanded area\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical id=\"test-card\" heading=\"Card\" subheading=\"Card subheading\" message=\"This is a card\" expandable><ic-typography slot=\"expanded-content\">Extra content</ic-typography></ic-card-vertical>`,\n });\n\n page.rootInstance.areaExpanded = true;\n\n await page.waitForChanges();\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should toggle expanded content when expansion toggle is clicked\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical id=\"test-card\" heading=\"Card\" message=\"This is a clickable card\" expandable><ic-typography slot=\"expanded-content\">Expanded</ic-typography></ic-card-vertical>`,\n });\n\n expect(page.root).toMatchSnapshot();\n\n page.rootInstance.toggleExpanded();\n\n await page.waitForChanges();\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should call 'setFocus' when card as a button is focused\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical heading=\"Card\" message=\"This is a clickable card rendered as a button\" clickable=true></ic-card-vertical>`,\n });\n\n //Can't expect anything in this test - this is to increase code coverage only\n await page.rootInstance.setFocus().toHaveBeenCalled;\n });\n\n it(\"should call 'setFocus' when card as a link is focused\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical heading=\"Card\" message=\"This is a clickable card rendered as a button\" clickable=true href=\"/\"></ic-card-vertical>`,\n });\n\n //Can't expect anything in this test - this is to increase code coverage only\n await page.rootInstance.setFocus().toHaveBeenCalled;\n });\n\n it(\"should test rendering slotted after initial render\", async () => {\n const page = await newSpecPage({\n components: [CardVertical],\n html: `<ic-card-vertical heading=\"Card\" message=\"This is a static card\"></ic-card-vertical>`,\n });\n\n const icon = document.createElement(\"svg\");\n icon.setAttribute(\"slot\", \"icon\");\n\n const imageMid = document.createElement(\"svg\");\n imageMid.setAttribute(\"slot\", \"image-mid\");\n\n const imageTop = document.createElement(\"svg\");\n imageTop.setAttribute(\"slot\", \"image-top\");\n\n const button = document.createElement(\"button\");\n button.setAttribute(\"slot\", \"interaction-button\");\n\n page.rootInstance.hostMutationCallback([\n {\n type: \"childList\",\n addedNodes: [icon, imageMid, imageTop, button],\n removedNodes: [],\n },\n ]);\n });\n});\n"]}