@ukic/canary-web-components 2.0.0-canary.8 → 3.0.0-canary.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (853) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/date-helpers-c9551119.js +150 -0
  3. package/dist/cjs/date-helpers-c9551119.js.map +1 -0
  4. package/dist/cjs/{helpers-b525d45a.js → helpers-33b42cd6.js} +101 -102
  5. package/dist/cjs/helpers-33b42cd6.js.map +1 -0
  6. package/dist/cjs/{helpers-93c5fc92.js → helpers-6817cfbb.js} +209 -12
  7. package/dist/cjs/helpers-6817cfbb.js.map +1 -0
  8. package/dist/cjs/ic-accordion-group.cjs.entry.js +31 -9
  9. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-accordion.cjs.entry.js +7 -8
  11. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-alert.cjs.entry.js +28 -10
  13. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-back-to-top.cjs.entry.js +17 -8
  15. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-badge.cjs.entry.js +67 -117
  17. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +37 -11
  19. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-breadcrumb.cjs.entry.js +8 -7
  21. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-button_3.cjs.entry.js +121 -128
  23. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-card-horizontal.cjs.entry.js +131 -0
  25. package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -0
  26. package/dist/cjs/ic-card-vertical.cjs.entry.js +149 -0
  27. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -0
  28. package/dist/cjs/ic-checkbox-group.cjs.entry.js +27 -20
  29. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-checkbox.cjs.entry.js +45 -40
  31. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-chip.cjs.entry.js +40 -29
  33. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-classification-banner.cjs.entry.js +14 -5
  35. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-data-list.cjs.entry.js +32 -0
  37. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -0
  38. package/dist/cjs/ic-data-row.cjs.entry.js +12 -12
  39. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +57 -0
  41. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -0
  42. package/dist/cjs/ic-data-table.cjs.entry.js +805 -65
  43. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-date-input.cjs.entry.js +1110 -0
  45. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -0
  46. package/dist/cjs/ic-date-picker.cjs.entry.js +1069 -0
  47. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -0
  48. package/dist/cjs/ic-dialog.cjs.entry.js +27 -101
  49. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-divider.cjs.entry.js +2 -3
  51. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-empty-state_2.cjs.entry.js +317 -0
  53. package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -0
  54. package/dist/cjs/ic-footer-link-group.cjs.entry.js +9 -10
  55. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-footer-link.cjs.entry.js +6 -8
  57. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-footer.cjs.entry.js +9 -10
  59. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-hero.cjs.entry.js +27 -12
  61. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -8
  63. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +156 -0
  65. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -0
  66. package/dist/cjs/ic-link.cjs.entry.js +51 -24
  67. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -3
  69. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-menu-item.cjs.entry.js +6 -13
  71. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +186 -47
  73. package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +1 -1
  74. package/dist/cjs/{ic-input-component-container_3.cjs.entry.js → ic-menu.cjs.entry.js} +17 -86
  75. package/dist/cjs/ic-menu.cjs.entry.js.map +1 -0
  76. package/dist/cjs/ic-navigation-button.cjs.entry.js +28 -8
  77. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-navigation-group.cjs.entry.js +23 -21
  79. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-navigation-item.cjs.entry.js +33 -38
  81. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-navigation-menu.cjs.entry.js +3 -4
  83. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-page-header.cjs.entry.js +10 -12
  85. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-pagination_4.cjs.entry.js +226 -185
  87. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-popover-menu.cjs.entry.js +15 -21
  89. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-radio-group.cjs.entry.js +75 -51
  91. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-radio-option.cjs.entry.js +44 -53
  93. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-search-bar.cjs.entry.js +23 -30
  95. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-section-container.cjs.entry.js +1 -1
  97. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-select-with-multi.cjs.entry.js +20 -69
  99. package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ic-side-navigation.cjs.entry.js +8 -9
  101. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ic-skeleton.cjs.entry.js +17 -37
  103. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ic-status-tag.cjs.entry.js +7 -15
  105. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  106. package/dist/cjs/ic-step.cjs.entry.js +42 -43
  107. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  108. package/dist/cjs/ic-stepper.cjs.entry.js +45 -24
  109. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ic-switch.cjs.entry.js +7 -9
  111. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ic-tab-context.cjs.entry.js +35 -18
  113. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  114. package/dist/cjs/ic-tab-group.cjs.entry.js +25 -11
  115. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  116. package/dist/cjs/ic-tab-panel.cjs.entry.js +6 -13
  117. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  118. package/dist/cjs/ic-tab.cjs.entry.js +10 -9
  119. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  120. package/dist/cjs/ic-theme.cjs.entry.js +39 -25
  121. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  122. package/dist/cjs/ic-toast-region.cjs.entry.js +6 -7
  123. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  124. package/dist/cjs/ic-toast.cjs.entry.js +88 -35
  125. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  126. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +17 -17
  127. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  128. package/dist/cjs/ic-toggle-button.cjs.entry.js +15 -14
  129. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  130. package/dist/cjs/ic-top-navigation.cjs.entry.js +62 -86
  131. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  132. package/dist/cjs/ic-tree-item.cjs.entry.js +241 -0
  133. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -0
  134. package/dist/cjs/ic-tree-view.cjs.entry.js +203 -0
  135. package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -0
  136. package/dist/cjs/ic-typography.cjs.entry.js +55 -19
  137. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  138. package/dist/cjs/index-4cf27b16.js +38 -18
  139. package/dist/cjs/loader.cjs.js +1 -1
  140. package/dist/collection/assets/arrow-dropdown.svg +3 -0
  141. package/dist/collection/assets/calendar.svg +3 -0
  142. package/dist/collection/collection-manifest.json +9 -3
  143. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +661 -0
  144. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +373 -0
  145. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -0
  146. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js +2 -0
  147. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js.map +1 -0
  148. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js +130 -0
  149. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js.map +1 -0
  150. package/dist/collection/components/ic-data-table/ic-data-table.css +155 -10
  151. package/dist/collection/components/ic-data-table/ic-data-table.js +1174 -90
  152. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  153. package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
  154. package/dist/collection/components/ic-data-table/story-data.js +758 -40
  155. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  156. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js +339 -3
  157. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
  158. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +93 -0
  159. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +160 -0
  160. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -0
  161. package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js +11 -0
  162. package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js.map +1 -0
  163. package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js +70 -0
  164. package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js.map +1 -0
  165. package/dist/collection/components/ic-date-input/ic-date-input.css +560 -0
  166. package/dist/collection/components/ic-date-input/ic-date-input.js +1775 -0
  167. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -0
  168. package/dist/collection/components/ic-date-input/story-data.js +28 -0
  169. package/dist/collection/components/ic-date-input/story-data.js.map +1 -0
  170. package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js +1158 -0
  171. package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js.map +1 -0
  172. package/dist/collection/components/ic-date-input/test/helpers/ic-date-input.js +42 -0
  173. package/dist/collection/components/ic-date-input/test/helpers/ic-date-input.js.map +1 -0
  174. package/dist/collection/components/ic-date-picker/ic-date-picker.css +880 -0
  175. package/dist/collection/components/ic-date-picker/ic-date-picker.js +1566 -0
  176. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -0
  177. package/dist/collection/components/ic-date-picker/ic-day-button.js +36 -0
  178. package/dist/collection/components/ic-date-picker/ic-day-button.js.map +1 -0
  179. package/dist/collection/components/ic-date-picker/ic-month-picker.js +29 -0
  180. package/dist/collection/components/ic-date-picker/ic-month-picker.js.map +1 -0
  181. package/dist/collection/components/ic-date-picker/ic-year-picker.js +39 -0
  182. package/dist/collection/components/ic-date-picker/ic-year-picker.js.map +1 -0
  183. package/dist/collection/components/ic-date-picker/story-data.js +148 -0
  184. package/dist/collection/components/ic-date-picker/story-data.js.map +1 -0
  185. package/dist/collection/components/ic-date-picker/test/a11y/ic-date-picker.test.a11y.js +13 -0
  186. package/dist/collection/components/ic-date-picker/test/a11y/ic-date-picker.test.a11y.js.map +1 -0
  187. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker-utils.spec.js +207 -0
  188. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker-utils.spec.js.map +1 -0
  189. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js +1030 -0
  190. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js.map +1 -0
  191. package/dist/collection/components/ic-menu-with-multi/ic-menu.css +25 -14
  192. package/dist/collection/components/ic-menu-with-multi/ic-menu.js +189 -71
  193. package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +1 -1
  194. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +229 -52
  195. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +1 -1
  196. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.css +1 -1
  197. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +173 -158
  198. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  199. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +56 -11
  200. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
  201. package/dist/collection/components/ic-select-with-multi/ic-select.css +14 -12
  202. package/dist/collection/components/ic-select-with-multi/ic-select.js +18 -147
  203. package/dist/collection/components/ic-select-with-multi/ic-select.js.map +1 -1
  204. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js +7 -7
  205. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js.map +1 -1
  206. package/dist/collection/components/ic-tree-item/ic-tree-item.css +172 -0
  207. package/dist/collection/components/ic-tree-item/ic-tree-item.js +592 -0
  208. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -0
  209. package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js +114 -0
  210. package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js.map +1 -0
  211. package/dist/collection/components/ic-tree-view/ic-tree-view.css +59 -0
  212. package/dist/collection/components/ic-tree-view/ic-tree-view.js +296 -0
  213. package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -0
  214. package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js +85 -0
  215. package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js.map +1 -0
  216. package/dist/collection/utils/constants.js +55 -0
  217. package/dist/collection/utils/constants.js.map +1 -1
  218. package/dist/collection/utils/date-helpers.js +133 -0
  219. package/dist/collection/utils/date-helpers.js.map +1 -0
  220. package/dist/collection/utils/helpers.js +302 -10
  221. package/dist/collection/utils/helpers.js.map +1 -1
  222. package/dist/collection/utils/types.js +45 -0
  223. package/dist/collection/utils/types.js.map +1 -1
  224. package/dist/components/helpers.js +90 -91
  225. package/dist/components/helpers.js.map +1 -1
  226. package/dist/components/helpers2.js +197 -12
  227. package/dist/components/helpers2.js.map +1 -1
  228. package/dist/components/ic-accordion-group.js +39 -13
  229. package/dist/components/ic-accordion-group.js.map +1 -1
  230. package/dist/components/ic-accordion.js +6 -6
  231. package/dist/components/ic-accordion.js.map +1 -1
  232. package/dist/components/ic-alert.js +132 -1
  233. package/dist/components/ic-alert.js.map +1 -1
  234. package/dist/components/ic-back-to-top.js +37 -8
  235. package/dist/components/ic-back-to-top.js.map +1 -1
  236. package/dist/components/ic-badge.js +75 -121
  237. package/dist/components/ic-badge.js.map +1 -1
  238. package/dist/components/ic-breadcrumb-group.js +42 -10
  239. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  240. package/dist/components/ic-breadcrumb2.js +10 -7
  241. package/dist/components/ic-breadcrumb2.js.map +1 -1
  242. package/dist/components/ic-button2.js +74 -102
  243. package/dist/components/ic-button2.js.map +1 -1
  244. package/dist/components/ic-card-horizontal.d.ts +11 -0
  245. package/dist/components/ic-card-horizontal.js +167 -0
  246. package/dist/components/ic-card-horizontal.js.map +1 -0
  247. package/dist/components/ic-card-vertical.js +194 -0
  248. package/dist/components/ic-card-vertical.js.map +1 -0
  249. package/dist/components/ic-checkbox-group.js +31 -21
  250. package/dist/components/ic-checkbox-group.js.map +1 -1
  251. package/dist/components/ic-checkbox.js +52 -47
  252. package/dist/components/ic-checkbox.js.map +1 -1
  253. package/dist/components/ic-chip.js +45 -31
  254. package/dist/components/ic-chip.js.map +1 -1
  255. package/dist/components/ic-classification-banner.js +14 -5
  256. package/dist/components/ic-classification-banner.js.map +1 -1
  257. package/dist/components/ic-data-list.js +56 -0
  258. package/dist/components/ic-data-list.js.map +1 -0
  259. package/dist/components/ic-data-row.js +14 -13
  260. package/dist/components/ic-data-row.js.map +1 -1
  261. package/dist/components/ic-data-table-title-bar.d.ts +11 -0
  262. package/dist/components/ic-data-table-title-bar.js +136 -0
  263. package/dist/components/ic-data-table-title-bar.js.map +1 -0
  264. package/dist/components/ic-data-table.js +841 -72
  265. package/dist/components/ic-data-table.js.map +1 -1
  266. package/dist/components/ic-date-input.d.ts +11 -0
  267. package/dist/components/ic-date-input.js +8 -0
  268. package/dist/components/ic-date-input.js.map +1 -0
  269. package/dist/components/ic-date-input2.js +1344 -0
  270. package/dist/components/ic-date-input2.js.map +1 -0
  271. package/dist/components/ic-date-picker.d.ts +11 -0
  272. package/dist/components/ic-date-picker.js +1194 -0
  273. package/dist/components/ic-date-picker.js.map +1 -0
  274. package/dist/components/ic-dialog.js +29 -115
  275. package/dist/components/ic-dialog.js.map +1 -1
  276. package/dist/components/ic-divider2.js +1 -2
  277. package/dist/components/ic-divider2.js.map +1 -1
  278. package/dist/components/ic-empty-state.js +1 -57
  279. package/dist/components/ic-empty-state.js.map +1 -1
  280. package/dist/components/ic-empty-state2.js +80 -0
  281. package/dist/components/ic-empty-state2.js.map +1 -0
  282. package/dist/components/ic-footer-link-group.js +10 -10
  283. package/dist/components/ic-footer-link-group.js.map +1 -1
  284. package/dist/components/ic-footer-link.js +13 -8
  285. package/dist/components/ic-footer-link.js.map +1 -1
  286. package/dist/components/ic-footer.js +9 -10
  287. package/dist/components/ic-footer.js.map +1 -1
  288. package/dist/components/ic-hero.js +28 -14
  289. package/dist/components/ic-hero.js.map +1 -1
  290. package/dist/components/ic-horizontal-scroll2.js +6 -8
  291. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  292. package/dist/components/ic-input-component-container2.js +26 -21
  293. package/dist/components/ic-input-component-container2.js.map +1 -1
  294. package/dist/components/ic-input-label2.js +9 -11
  295. package/dist/components/ic-input-label2.js.map +1 -1
  296. package/dist/components/ic-input-validation2.js +4 -5
  297. package/dist/components/ic-input-validation2.js.map +1 -1
  298. package/dist/components/ic-link2.js +54 -27
  299. package/dist/components/ic-link2.js.map +1 -1
  300. package/dist/components/ic-loading-indicator2.js +23 -19
  301. package/dist/components/ic-loading-indicator2.js.map +1 -1
  302. package/dist/components/ic-menu-group.js +2 -2
  303. package/dist/components/ic-menu-group.js.map +1 -1
  304. package/dist/components/ic-menu-item2.js +6 -12
  305. package/dist/components/ic-menu-item2.js.map +1 -1
  306. package/dist/components/ic-menu2.js +15 -20
  307. package/dist/components/ic-menu2.js.map +1 -1
  308. package/dist/components/ic-menu3.js +187 -49
  309. package/dist/components/ic-menu3.js.map +1 -1
  310. package/dist/components/ic-navigation-button.js +28 -8
  311. package/dist/components/ic-navigation-button.js.map +1 -1
  312. package/dist/components/ic-navigation-group.js +23 -20
  313. package/dist/components/ic-navigation-group.js.map +1 -1
  314. package/dist/components/ic-navigation-item.js +33 -37
  315. package/dist/components/ic-navigation-item.js.map +1 -1
  316. package/dist/components/ic-navigation-menu2.js +3 -3
  317. package/dist/components/ic-navigation-menu2.js.map +1 -1
  318. package/dist/components/ic-page-header.js +9 -11
  319. package/dist/components/ic-page-header.js.map +1 -1
  320. package/dist/components/ic-pagination-bar2.js +154 -143
  321. package/dist/components/ic-pagination-bar2.js.map +1 -1
  322. package/dist/components/ic-pagination-item2.js +22 -12
  323. package/dist/components/ic-pagination-item2.js.map +1 -1
  324. package/dist/components/ic-pagination2.js +50 -33
  325. package/dist/components/ic-pagination2.js.map +1 -1
  326. package/dist/components/ic-popover-menu.js +15 -20
  327. package/dist/components/ic-popover-menu.js.map +1 -1
  328. package/dist/components/ic-radio-group.js +76 -51
  329. package/dist/components/ic-radio-group.js.map +1 -1
  330. package/dist/components/ic-radio-option.js +47 -60
  331. package/dist/components/ic-radio-option.js.map +1 -1
  332. package/dist/components/ic-search-bar.js +21 -29
  333. package/dist/components/ic-search-bar.js.map +1 -1
  334. package/dist/components/ic-section-container2.js +1 -1
  335. package/dist/components/ic-section-container2.js.map +1 -1
  336. package/dist/components/ic-select-with-multi.js +15 -71
  337. package/dist/components/ic-select-with-multi.js.map +1 -1
  338. package/dist/components/ic-select2.js +59 -42
  339. package/dist/components/ic-select2.js.map +1 -1
  340. package/dist/components/ic-side-navigation.js +8 -9
  341. package/dist/components/ic-side-navigation.js.map +1 -1
  342. package/dist/components/ic-skeleton.js +18 -43
  343. package/dist/components/ic-skeleton.js.map +1 -1
  344. package/dist/components/ic-status-tag.js +7 -15
  345. package/dist/components/ic-status-tag.js.map +1 -1
  346. package/dist/components/ic-step.js +48 -48
  347. package/dist/components/ic-step.js.map +1 -1
  348. package/dist/components/ic-stepper.js +49 -23
  349. package/dist/components/ic-stepper.js.map +1 -1
  350. package/dist/components/ic-switch.js +7 -9
  351. package/dist/components/ic-switch.js.map +1 -1
  352. package/dist/components/ic-tab-context.js +40 -20
  353. package/dist/components/ic-tab-context.js.map +1 -1
  354. package/dist/components/ic-tab-group.js +27 -13
  355. package/dist/components/ic-tab-group.js.map +1 -1
  356. package/dist/components/ic-tab-panel.js +9 -16
  357. package/dist/components/ic-tab-panel.js.map +1 -1
  358. package/dist/components/ic-tab.js +12 -10
  359. package/dist/components/ic-tab.js.map +1 -1
  360. package/dist/components/ic-text-field2.js +104 -113
  361. package/dist/components/ic-text-field2.js.map +1 -1
  362. package/dist/components/ic-theme.js +45 -28
  363. package/dist/components/ic-theme.js.map +1 -1
  364. package/dist/components/ic-toast-region.js +7 -9
  365. package/dist/components/ic-toast-region.js.map +1 -1
  366. package/dist/components/ic-toast.js +93 -36
  367. package/dist/components/ic-toast.js.map +1 -1
  368. package/dist/components/ic-toggle-button-group.js +17 -17
  369. package/dist/components/ic-toggle-button-group.js.map +1 -1
  370. package/dist/components/ic-toggle-button.js +16 -14
  371. package/dist/components/ic-toggle-button.js.map +1 -1
  372. package/dist/components/ic-tooltip2.js +31 -9
  373. package/dist/components/ic-tooltip2.js.map +1 -1
  374. package/dist/components/ic-top-navigation.js +63 -87
  375. package/dist/components/ic-top-navigation.js.map +1 -1
  376. package/dist/components/ic-tree-item.d.ts +11 -0
  377. package/dist/components/ic-tree-item.js +286 -0
  378. package/dist/components/ic-tree-item.js.map +1 -0
  379. package/dist/components/ic-tree-view.d.ts +11 -0
  380. package/dist/components/ic-tree-view.js +237 -0
  381. package/dist/components/ic-tree-view.js.map +1 -0
  382. package/dist/components/ic-typography2.js +62 -21
  383. package/dist/components/ic-typography2.js.map +1 -1
  384. package/dist/core/core.css +38 -20
  385. package/dist/core/core.esm.js +1 -1
  386. package/dist/core/core.esm.js.map +1 -1
  387. package/dist/core/p-06eeb7f2.entry.js +2 -0
  388. package/dist/core/p-06eeb7f2.entry.js.map +1 -0
  389. package/dist/core/p-0922c552.entry.js +2 -0
  390. package/dist/core/p-0922c552.entry.js.map +1 -0
  391. package/dist/core/p-0bc0e852.entry.js +2 -0
  392. package/dist/core/p-0bc0e852.entry.js.map +1 -0
  393. package/dist/core/p-108a9029.entry.js +2 -0
  394. package/dist/core/p-108a9029.entry.js.map +1 -0
  395. package/dist/core/p-13100d3c.entry.js +2 -0
  396. package/dist/core/p-13100d3c.entry.js.map +1 -0
  397. package/dist/core/p-1769df1d.entry.js +2 -0
  398. package/dist/core/p-1769df1d.entry.js.map +1 -0
  399. package/dist/core/p-202bc922.entry.js +2 -0
  400. package/dist/core/p-202bc922.entry.js.map +1 -0
  401. package/dist/core/p-266341f5.entry.js +2 -0
  402. package/dist/core/p-266341f5.entry.js.map +1 -0
  403. package/dist/core/p-297e99cf.js +2 -0
  404. package/dist/core/p-297e99cf.js.map +1 -0
  405. package/dist/core/p-306def43.entry.js +2 -0
  406. package/dist/core/p-306def43.entry.js.map +1 -0
  407. package/dist/core/p-30b046b2.entry.js +2 -0
  408. package/dist/core/p-30b046b2.entry.js.map +1 -0
  409. package/dist/core/p-33dd24eb.js +2 -0
  410. package/dist/core/p-33dd24eb.js.map +1 -0
  411. package/dist/core/p-3778cc5e.entry.js +2 -0
  412. package/dist/core/p-3778cc5e.entry.js.map +1 -0
  413. package/dist/core/p-383a5a76.entry.js +2 -0
  414. package/dist/core/p-383a5a76.entry.js.map +1 -0
  415. package/dist/core/p-3a0510e2.entry.js +2 -0
  416. package/dist/core/p-3a0510e2.entry.js.map +1 -0
  417. package/dist/core/p-3ace51f5.entry.js +2 -0
  418. package/dist/core/p-3ace51f5.entry.js.map +1 -0
  419. package/dist/core/p-3ef28704.entry.js +2 -0
  420. package/dist/core/p-3ef28704.entry.js.map +1 -0
  421. package/dist/core/p-3f0391c1.entry.js +2 -0
  422. package/dist/core/p-3f0391c1.entry.js.map +1 -0
  423. package/dist/core/p-41fecc61.entry.js +2 -0
  424. package/dist/core/p-41fecc61.entry.js.map +1 -0
  425. package/dist/core/p-46cb94a2.entry.js +2 -0
  426. package/dist/core/p-46cb94a2.entry.js.map +1 -0
  427. package/dist/core/p-4e67f127.entry.js +2 -0
  428. package/dist/core/p-4e67f127.entry.js.map +1 -0
  429. package/dist/core/p-505250cf.entry.js +2 -0
  430. package/dist/core/p-505250cf.entry.js.map +1 -0
  431. package/dist/core/p-50e48f4d.entry.js +2 -0
  432. package/dist/core/p-50e48f4d.entry.js.map +1 -0
  433. package/dist/core/p-56e7459a.entry.js +2 -0
  434. package/dist/core/p-56e7459a.entry.js.map +1 -0
  435. package/dist/core/p-59028160.entry.js +2 -0
  436. package/dist/core/p-59028160.entry.js.map +1 -0
  437. package/dist/core/p-5cfb5821.entry.js +2 -0
  438. package/dist/core/p-5cfb5821.entry.js.map +1 -0
  439. package/dist/core/p-5e6fd734.entry.js +2 -0
  440. package/dist/core/p-5e6fd734.entry.js.map +1 -0
  441. package/dist/core/p-5f313e1a.entry.js +2 -0
  442. package/dist/core/p-5f313e1a.entry.js.map +1 -0
  443. package/dist/core/{p-c2b5e7b1.entry.js → p-5f5403e2.entry.js} +2 -2
  444. package/dist/core/{p-c2b5e7b1.entry.js.map → p-5f5403e2.entry.js.map} +1 -1
  445. package/dist/core/p-710c6a42.entry.js +2 -0
  446. package/dist/core/p-710c6a42.entry.js.map +1 -0
  447. package/dist/core/p-73b40c79.entry.js +2 -0
  448. package/dist/core/p-73b40c79.entry.js.map +1 -0
  449. package/dist/core/p-77a32de5.entry.js +2 -0
  450. package/dist/core/p-77a32de5.entry.js.map +1 -0
  451. package/dist/core/p-7a9de008.entry.js +2 -0
  452. package/dist/core/p-7a9de008.entry.js.map +1 -0
  453. package/dist/core/p-801414e2.entry.js +2 -0
  454. package/dist/core/p-801414e2.entry.js.map +1 -0
  455. package/dist/core/p-82ba744d.entry.js +2 -0
  456. package/dist/core/p-82ba744d.entry.js.map +1 -0
  457. package/dist/core/p-897b8d16.entry.js +2 -0
  458. package/dist/core/p-897b8d16.entry.js.map +1 -0
  459. package/dist/core/p-9397b15b.js +2 -0
  460. package/dist/core/p-9397b15b.js.map +1 -0
  461. package/dist/core/p-9af6adb1.entry.js +2 -0
  462. package/dist/core/p-9af6adb1.entry.js.map +1 -0
  463. package/dist/core/p-9b54feca.entry.js +2 -0
  464. package/dist/core/p-9b54feca.entry.js.map +1 -0
  465. package/dist/core/{p-356b8a4c.entry.js → p-9f3cf053.entry.js} +2 -2
  466. package/dist/core/{p-356b8a4c.entry.js.map → p-9f3cf053.entry.js.map} +1 -1
  467. package/dist/core/p-a57cd616.entry.js +2 -0
  468. package/dist/core/p-a57cd616.entry.js.map +1 -0
  469. package/dist/core/p-a5eaed1a.entry.js +2 -0
  470. package/dist/core/p-a5eaed1a.entry.js.map +1 -0
  471. package/dist/core/p-a78cf2cb.entry.js +2 -0
  472. package/dist/core/p-a78cf2cb.entry.js.map +1 -0
  473. package/dist/core/p-a91340b4.entry.js +2 -0
  474. package/dist/core/p-a91340b4.entry.js.map +1 -0
  475. package/dist/core/p-aee8d45b.entry.js +2 -0
  476. package/dist/core/p-aee8d45b.entry.js.map +1 -0
  477. package/dist/core/{p-452985d9.entry.js → p-b40ecaef.entry.js} +2 -2
  478. package/dist/core/p-b40ecaef.entry.js.map +1 -0
  479. package/dist/core/p-badd4c8d.entry.js +2 -0
  480. package/dist/core/p-badd4c8d.entry.js.map +1 -0
  481. package/dist/core/p-bf670360.entry.js +2 -0
  482. package/dist/core/{p-a434c3d4.entry.js.map → p-bf670360.entry.js.map} +1 -1
  483. package/dist/core/p-c033e7d6.entry.js +2 -0
  484. package/dist/core/p-c033e7d6.entry.js.map +1 -0
  485. package/dist/core/p-c07af2d8.entry.js +2 -0
  486. package/dist/core/p-c07af2d8.entry.js.map +1 -0
  487. package/dist/core/p-c21d0db8.entry.js +2 -0
  488. package/dist/core/p-c21d0db8.entry.js.map +1 -0
  489. package/dist/core/p-c678f73d.entry.js +2 -0
  490. package/dist/core/p-c678f73d.entry.js.map +1 -0
  491. package/dist/core/p-c6ae9bad.entry.js +2 -0
  492. package/dist/core/p-c6ae9bad.entry.js.map +1 -0
  493. package/dist/core/p-c6c1e08e.entry.js +2 -0
  494. package/dist/core/p-c6c1e08e.entry.js.map +1 -0
  495. package/dist/core/p-cb6cebdd.entry.js +2 -0
  496. package/dist/core/p-cb6cebdd.entry.js.map +1 -0
  497. package/dist/core/p-d03374fc.entry.js +2 -0
  498. package/dist/core/p-d03374fc.entry.js.map +1 -0
  499. package/dist/core/p-d16f364a.entry.js +2 -0
  500. package/dist/core/p-d16f364a.entry.js.map +1 -0
  501. package/dist/core/p-d239c33b.entry.js +2 -0
  502. package/dist/core/p-d239c33b.entry.js.map +1 -0
  503. package/dist/core/p-d8563643.entry.js +2 -0
  504. package/dist/core/p-d8563643.entry.js.map +1 -0
  505. package/dist/core/p-da40757f.entry.js +2 -0
  506. package/dist/core/p-da40757f.entry.js.map +1 -0
  507. package/dist/core/p-de052137.entry.js +2 -0
  508. package/dist/core/p-de052137.entry.js.map +1 -0
  509. package/dist/core/p-e5d99316.entry.js +2 -0
  510. package/dist/core/p-e5d99316.entry.js.map +1 -0
  511. package/dist/core/p-e89bb650.entry.js +2 -0
  512. package/dist/core/p-e89bb650.entry.js.map +1 -0
  513. package/dist/core/{p-baf81f30.entry.js → p-f1072c28.entry.js} +2 -2
  514. package/dist/core/{p-452985d9.entry.js.map → p-f1072c28.entry.js.map} +1 -1
  515. package/dist/core/p-f37df214.entry.js +2 -0
  516. package/dist/core/{p-c34848da.entry.js.map → p-f37df214.entry.js.map} +1 -1
  517. package/dist/core/p-f743b0eb.entry.js +2 -0
  518. package/dist/core/p-f743b0eb.entry.js.map +1 -0
  519. package/dist/core/p-f98b1afc.entry.js +2 -0
  520. package/dist/core/p-f98b1afc.entry.js.map +1 -0
  521. package/dist/core/p-fe13f1ba.entry.js +2 -0
  522. package/dist/core/p-fe13f1ba.entry.js.map +1 -0
  523. package/dist/esm/core.js +1 -1
  524. package/dist/esm/date-helpers-0e5e32a7.js +136 -0
  525. package/dist/esm/date-helpers-0e5e32a7.js.map +1 -0
  526. package/dist/esm/helpers-5bd2012a.js +368 -0
  527. package/dist/esm/helpers-5bd2012a.js.map +1 -0
  528. package/dist/esm/{helpers-12b4266a.js → helpers-dab8ddfe.js} +91 -92
  529. package/dist/esm/helpers-dab8ddfe.js.map +1 -0
  530. package/dist/esm/ic-accordion-group.entry.js +31 -9
  531. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  532. package/dist/esm/ic-accordion.entry.js +7 -8
  533. package/dist/esm/ic-accordion.entry.js.map +1 -1
  534. package/dist/esm/ic-alert.entry.js +27 -9
  535. package/dist/esm/ic-alert.entry.js.map +1 -1
  536. package/dist/esm/ic-back-to-top.entry.js +17 -8
  537. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  538. package/dist/esm/ic-badge.entry.js +67 -117
  539. package/dist/esm/ic-badge.entry.js.map +1 -1
  540. package/dist/esm/ic-breadcrumb-group.entry.js +37 -11
  541. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  542. package/dist/esm/ic-breadcrumb.entry.js +8 -7
  543. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  544. package/dist/esm/ic-button_3.entry.js +118 -125
  545. package/dist/esm/ic-button_3.entry.js.map +1 -1
  546. package/dist/esm/ic-card-horizontal.entry.js +127 -0
  547. package/dist/esm/ic-card-horizontal.entry.js.map +1 -0
  548. package/dist/esm/ic-card-vertical.entry.js +145 -0
  549. package/dist/esm/ic-card-vertical.entry.js.map +1 -0
  550. package/dist/esm/ic-checkbox-group.entry.js +27 -20
  551. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  552. package/dist/esm/ic-checkbox.entry.js +45 -40
  553. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  554. package/dist/esm/ic-chip.entry.js +40 -29
  555. package/dist/esm/ic-chip.entry.js.map +1 -1
  556. package/dist/esm/ic-classification-banner.entry.js +14 -5
  557. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  558. package/dist/esm/ic-data-list.entry.js +28 -0
  559. package/dist/esm/ic-data-list.entry.js.map +1 -0
  560. package/dist/esm/ic-data-row.entry.js +12 -12
  561. package/dist/esm/ic-data-row.entry.js.map +1 -1
  562. package/dist/esm/ic-data-table-title-bar.entry.js +53 -0
  563. package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -0
  564. package/dist/esm/ic-data-table.entry.js +806 -66
  565. package/dist/esm/ic-data-table.entry.js.map +1 -1
  566. package/dist/esm/ic-date-input.entry.js +1106 -0
  567. package/dist/esm/ic-date-input.entry.js.map +1 -0
  568. package/dist/esm/ic-date-picker.entry.js +1065 -0
  569. package/dist/esm/ic-date-picker.entry.js.map +1 -0
  570. package/dist/esm/ic-dialog.entry.js +27 -101
  571. package/dist/esm/ic-dialog.entry.js.map +1 -1
  572. package/dist/esm/ic-divider.entry.js +1 -2
  573. package/dist/esm/ic-divider.entry.js.map +1 -1
  574. package/dist/esm/ic-empty-state_2.entry.js +312 -0
  575. package/dist/esm/ic-empty-state_2.entry.js.map +1 -0
  576. package/dist/esm/ic-footer-link-group.entry.js +9 -10
  577. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  578. package/dist/esm/ic-footer-link.entry.js +6 -8
  579. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  580. package/dist/esm/ic-footer.entry.js +9 -10
  581. package/dist/esm/ic-footer.entry.js.map +1 -1
  582. package/dist/esm/ic-hero.entry.js +28 -13
  583. package/dist/esm/ic-hero.entry.js.map +1 -1
  584. package/dist/esm/ic-horizontal-scroll.entry.js +6 -8
  585. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  586. package/dist/esm/ic-input-component-container_4.entry.js +149 -0
  587. package/dist/esm/ic-input-component-container_4.entry.js.map +1 -0
  588. package/dist/esm/ic-link.entry.js +52 -25
  589. package/dist/esm/ic-link.entry.js.map +1 -1
  590. package/dist/esm/ic-menu-group.entry.js +2 -3
  591. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  592. package/dist/esm/ic-menu-item.entry.js +6 -13
  593. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  594. package/dist/esm/ic-menu-with-multi.entry.js +186 -47
  595. package/dist/esm/ic-menu-with-multi.entry.js.map +1 -1
  596. package/dist/esm/{ic-input-component-container_3.entry.js → ic-menu.entry.js} +19 -86
  597. package/dist/esm/ic-menu.entry.js.map +1 -0
  598. package/dist/esm/ic-navigation-button.entry.js +28 -8
  599. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  600. package/dist/esm/ic-navigation-group.entry.js +23 -21
  601. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  602. package/dist/esm/ic-navigation-item.entry.js +33 -38
  603. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  604. package/dist/esm/ic-navigation-menu.entry.js +3 -4
  605. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  606. package/dist/esm/ic-page-header.entry.js +10 -12
  607. package/dist/esm/ic-page-header.entry.js.map +1 -1
  608. package/dist/esm/ic-pagination_4.entry.js +219 -178
  609. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  610. package/dist/esm/ic-popover-menu.entry.js +15 -21
  611. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  612. package/dist/esm/ic-radio-group.entry.js +75 -51
  613. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  614. package/dist/esm/ic-radio-option.entry.js +44 -53
  615. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  616. package/dist/esm/ic-search-bar.entry.js +19 -26
  617. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  618. package/dist/esm/ic-section-container.entry.js +1 -1
  619. package/dist/esm/ic-section-container.entry.js.map +1 -1
  620. package/dist/esm/ic-select-with-multi.entry.js +14 -63
  621. package/dist/esm/ic-select-with-multi.entry.js.map +1 -1
  622. package/dist/esm/ic-side-navigation.entry.js +8 -9
  623. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  624. package/dist/esm/ic-skeleton.entry.js +17 -37
  625. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  626. package/dist/esm/ic-status-tag.entry.js +7 -15
  627. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  628. package/dist/esm/ic-step.entry.js +42 -43
  629. package/dist/esm/ic-step.entry.js.map +1 -1
  630. package/dist/esm/ic-stepper.entry.js +45 -24
  631. package/dist/esm/ic-stepper.entry.js.map +1 -1
  632. package/dist/esm/ic-switch.entry.js +7 -9
  633. package/dist/esm/ic-switch.entry.js.map +1 -1
  634. package/dist/esm/ic-tab-context.entry.js +35 -18
  635. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  636. package/dist/esm/ic-tab-group.entry.js +25 -11
  637. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  638. package/dist/esm/ic-tab-panel.entry.js +6 -13
  639. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  640. package/dist/esm/ic-tab.entry.js +10 -9
  641. package/dist/esm/ic-tab.entry.js.map +1 -1
  642. package/dist/esm/ic-theme.entry.js +39 -25
  643. package/dist/esm/ic-theme.entry.js.map +1 -1
  644. package/dist/esm/ic-toast-region.entry.js +6 -7
  645. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  646. package/dist/esm/ic-toast.entry.js +88 -35
  647. package/dist/esm/ic-toast.entry.js.map +1 -1
  648. package/dist/esm/ic-toggle-button-group.entry.js +17 -17
  649. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  650. package/dist/esm/ic-toggle-button.entry.js +15 -14
  651. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  652. package/dist/esm/ic-top-navigation.entry.js +62 -86
  653. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  654. package/dist/esm/ic-tree-item.entry.js +237 -0
  655. package/dist/esm/ic-tree-item.entry.js.map +1 -0
  656. package/dist/esm/ic-tree-view.entry.js +199 -0
  657. package/dist/esm/ic-tree-view.entry.js.map +1 -0
  658. package/dist/esm/ic-typography.entry.js +56 -20
  659. package/dist/esm/ic-typography.entry.js.map +1 -1
  660. package/dist/esm/index-93509377.js +38 -18
  661. package/dist/esm/loader.js +1 -1
  662. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +71 -0
  663. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.types.d.ts +1 -0
  664. package/dist/types/components/ic-data-table/ic-data-table.d.ts +176 -19
  665. package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +30 -0
  666. package/dist/types/components/ic-data-table/story-data.d.ts +236 -3
  667. package/dist/types/components/ic-data-table-title-bar/ic-data-table-title-bar.d.ts +36 -0
  668. package/dist/types/components/ic-date-input/ic-date-input.d.ts +259 -0
  669. package/dist/types/components/ic-date-input/story-data.d.ts +1 -0
  670. package/dist/types/components/ic-date-input/test/helpers/ic-date-input.d.ts +23 -0
  671. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +240 -0
  672. package/dist/types/components/ic-date-picker/ic-day-button.d.ts +16 -0
  673. package/dist/types/components/ic-date-picker/ic-month-picker.d.ts +14 -0
  674. package/dist/types/components/ic-date-picker/ic-year-picker.d.ts +16 -0
  675. package/dist/types/components/ic-date-picker/story-data.d.ts +22 -0
  676. package/dist/types/components/ic-date-picker/test/a11y/ic-date-picker.test.a11y.d.ts +1 -0
  677. package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +12 -6
  678. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +37 -18
  679. package/dist/types/components/ic-select-with-multi/ic-select.d.ts +3 -33
  680. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +95 -0
  681. package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +40 -0
  682. package/dist/types/components.d.ts +978 -114
  683. package/dist/types/interface.d.ts +1 -0
  684. package/dist/types/utils/constants.d.ts +37 -0
  685. package/dist/types/utils/date-helpers.d.ts +22 -0
  686. package/dist/types/utils/helpers.d.ts +92 -11
  687. package/dist/types/utils/types.d.ts +108 -1
  688. package/hydrate/index.js +6683 -2381
  689. package/package.json +6 -6
  690. package/dist/cjs/helpers-93c5fc92.js.map +0 -1
  691. package/dist/cjs/helpers-b525d45a.js.map +0 -1
  692. package/dist/cjs/ic-card.cjs.entry.js +0 -126
  693. package/dist/cjs/ic-card.cjs.entry.js.map +0 -1
  694. package/dist/cjs/ic-data-entity.cjs.entry.js +0 -29
  695. package/dist/cjs/ic-data-entity.cjs.entry.js.map +0 -1
  696. package/dist/cjs/ic-empty-state.cjs.entry.js +0 -38
  697. package/dist/cjs/ic-empty-state.cjs.entry.js.map +0 -1
  698. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +0 -1
  699. package/dist/cjs/ic-input-label_2.cjs.entry.js +0 -86
  700. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +0 -1
  701. package/dist/cjs/ic-pagination-bar.cjs.entry.js +0 -269
  702. package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +0 -1
  703. package/dist/cjs/types-17dba796.js +0 -16
  704. package/dist/cjs/types-17dba796.js.map +0 -1
  705. package/dist/collection/components/ic-pagination/ic-pagination.types.js +0 -2
  706. package/dist/collection/components/ic-pagination/ic-pagination.types.js.map +0 -1
  707. package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js +0 -146
  708. package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js.map +0 -1
  709. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js +0 -2040
  710. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js.map +0 -1
  711. package/dist/components/ic-alert2.js +0 -117
  712. package/dist/components/ic-alert2.js.map +0 -1
  713. package/dist/components/ic-card.js +0 -171
  714. package/dist/components/ic-card.js.map +0 -1
  715. package/dist/components/ic-data-entity.js +0 -53
  716. package/dist/components/ic-data-entity.js.map +0 -1
  717. package/dist/components/types.js +0 -16
  718. package/dist/components/types.js.map +0 -1
  719. package/dist/core/p-045359e1.entry.js +0 -2
  720. package/dist/core/p-045359e1.entry.js.map +0 -1
  721. package/dist/core/p-10fb4c46.entry.js +0 -2
  722. package/dist/core/p-10fb4c46.entry.js.map +0 -1
  723. package/dist/core/p-169bfa51.entry.js +0 -2
  724. package/dist/core/p-169bfa51.entry.js.map +0 -1
  725. package/dist/core/p-1ca332ca.entry.js +0 -2
  726. package/dist/core/p-1ca332ca.entry.js.map +0 -1
  727. package/dist/core/p-204ace96.entry.js +0 -2
  728. package/dist/core/p-204ace96.entry.js.map +0 -1
  729. package/dist/core/p-21150122.entry.js +0 -2
  730. package/dist/core/p-21150122.entry.js.map +0 -1
  731. package/dist/core/p-2eac7dcc.entry.js +0 -2
  732. package/dist/core/p-2eac7dcc.entry.js.map +0 -1
  733. package/dist/core/p-3803a5b5.entry.js +0 -2
  734. package/dist/core/p-3803a5b5.entry.js.map +0 -1
  735. package/dist/core/p-4753bac8.entry.js +0 -2
  736. package/dist/core/p-4753bac8.entry.js.map +0 -1
  737. package/dist/core/p-4baa0916.entry.js +0 -2
  738. package/dist/core/p-4baa0916.entry.js.map +0 -1
  739. package/dist/core/p-4f413fc0.entry.js +0 -2
  740. package/dist/core/p-4f413fc0.entry.js.map +0 -1
  741. package/dist/core/p-595be57d.entry.js +0 -2
  742. package/dist/core/p-595be57d.entry.js.map +0 -1
  743. package/dist/core/p-5ae93c16.entry.js +0 -2
  744. package/dist/core/p-5ae93c16.entry.js.map +0 -1
  745. package/dist/core/p-5e0c830b.entry.js +0 -2
  746. package/dist/core/p-5e0c830b.entry.js.map +0 -1
  747. package/dist/core/p-624d4f5f.entry.js +0 -2
  748. package/dist/core/p-624d4f5f.entry.js.map +0 -1
  749. package/dist/core/p-6933f8e9.entry.js +0 -2
  750. package/dist/core/p-6933f8e9.entry.js.map +0 -1
  751. package/dist/core/p-6c3044b6.entry.js +0 -2
  752. package/dist/core/p-6c3044b6.entry.js.map +0 -1
  753. package/dist/core/p-73be1251.entry.js +0 -2
  754. package/dist/core/p-73be1251.entry.js.map +0 -1
  755. package/dist/core/p-75dac3d1.entry.js +0 -2
  756. package/dist/core/p-75dac3d1.entry.js.map +0 -1
  757. package/dist/core/p-76915584.entry.js +0 -2
  758. package/dist/core/p-76915584.entry.js.map +0 -1
  759. package/dist/core/p-7ef8d616.entry.js +0 -2
  760. package/dist/core/p-7ef8d616.entry.js.map +0 -1
  761. package/dist/core/p-81ddc39d.entry.js +0 -2
  762. package/dist/core/p-81ddc39d.entry.js.map +0 -1
  763. package/dist/core/p-869954a2.entry.js +0 -2
  764. package/dist/core/p-869954a2.entry.js.map +0 -1
  765. package/dist/core/p-88d54b72.entry.js +0 -2
  766. package/dist/core/p-88d54b72.entry.js.map +0 -1
  767. package/dist/core/p-8b08d8fe.entry.js +0 -2
  768. package/dist/core/p-8b08d8fe.entry.js.map +0 -1
  769. package/dist/core/p-917c5721.entry.js +0 -2
  770. package/dist/core/p-917c5721.entry.js.map +0 -1
  771. package/dist/core/p-942282cd.entry.js +0 -2
  772. package/dist/core/p-942282cd.entry.js.map +0 -1
  773. package/dist/core/p-9777ebb1.entry.js +0 -2
  774. package/dist/core/p-9777ebb1.entry.js.map +0 -1
  775. package/dist/core/p-99cad6c2.js +0 -2
  776. package/dist/core/p-99cad6c2.js.map +0 -1
  777. package/dist/core/p-9caf19eb.js +0 -2
  778. package/dist/core/p-9caf19eb.js.map +0 -1
  779. package/dist/core/p-a0f8efb2.entry.js +0 -2
  780. package/dist/core/p-a0f8efb2.entry.js.map +0 -1
  781. package/dist/core/p-a31031a5.entry.js +0 -2
  782. package/dist/core/p-a31031a5.entry.js.map +0 -1
  783. package/dist/core/p-a434c3d4.entry.js +0 -2
  784. package/dist/core/p-a43c12cd.entry.js +0 -2
  785. package/dist/core/p-a43c12cd.entry.js.map +0 -1
  786. package/dist/core/p-a50c3b9e.entry.js +0 -2
  787. package/dist/core/p-a50c3b9e.entry.js.map +0 -1
  788. package/dist/core/p-ab09986c.entry.js +0 -2
  789. package/dist/core/p-ab09986c.entry.js.map +0 -1
  790. package/dist/core/p-ac4e40a7.entry.js +0 -2
  791. package/dist/core/p-ac4e40a7.entry.js.map +0 -1
  792. package/dist/core/p-b2aa3d7c.entry.js +0 -2
  793. package/dist/core/p-b2aa3d7c.entry.js.map +0 -1
  794. package/dist/core/p-b82dcc29.entry.js +0 -2
  795. package/dist/core/p-b82dcc29.entry.js.map +0 -1
  796. package/dist/core/p-ba86928c.entry.js +0 -2
  797. package/dist/core/p-ba86928c.entry.js.map +0 -1
  798. package/dist/core/p-baf81f30.entry.js.map +0 -1
  799. package/dist/core/p-c125b65a.entry.js +0 -2
  800. package/dist/core/p-c125b65a.entry.js.map +0 -1
  801. package/dist/core/p-c34848da.entry.js +0 -2
  802. package/dist/core/p-d8469ac0.entry.js +0 -2
  803. package/dist/core/p-d8469ac0.entry.js.map +0 -1
  804. package/dist/core/p-db9c03c0.entry.js +0 -2
  805. package/dist/core/p-db9c03c0.entry.js.map +0 -1
  806. package/dist/core/p-e0462b23.entry.js +0 -2
  807. package/dist/core/p-e0462b23.entry.js.map +0 -1
  808. package/dist/core/p-e0a94f2d.entry.js +0 -2
  809. package/dist/core/p-e0a94f2d.entry.js.map +0 -1
  810. package/dist/core/p-e189f1d0.entry.js +0 -2
  811. package/dist/core/p-e189f1d0.entry.js.map +0 -1
  812. package/dist/core/p-e3997d60.entry.js +0 -2
  813. package/dist/core/p-e3997d60.entry.js.map +0 -1
  814. package/dist/core/p-e79e0292.entry.js +0 -2
  815. package/dist/core/p-e79e0292.entry.js.map +0 -1
  816. package/dist/core/p-e834344e.entry.js +0 -2
  817. package/dist/core/p-e834344e.entry.js.map +0 -1
  818. package/dist/core/p-f14454b1.entry.js +0 -2
  819. package/dist/core/p-f14454b1.entry.js.map +0 -1
  820. package/dist/core/p-f3c840cd.entry.js +0 -2
  821. package/dist/core/p-f3c840cd.entry.js.map +0 -1
  822. package/dist/core/p-f6888309.entry.js +0 -2
  823. package/dist/core/p-f6888309.entry.js.map +0 -1
  824. package/dist/core/p-f74a8752.entry.js +0 -2
  825. package/dist/core/p-f74a8752.entry.js.map +0 -1
  826. package/dist/core/p-f7a14c01.entry.js +0 -2
  827. package/dist/core/p-f7a14c01.entry.js.map +0 -1
  828. package/dist/core/p-f843da01.entry.js +0 -2
  829. package/dist/core/p-f843da01.entry.js.map +0 -1
  830. package/dist/core/p-fc5611e2.entry.js +0 -2
  831. package/dist/core/p-fc5611e2.entry.js.map +0 -1
  832. package/dist/core/p-fd186591.js +0 -2
  833. package/dist/core/p-fd186591.js.map +0 -1
  834. package/dist/core/p-fde45b29.entry.js +0 -2
  835. package/dist/core/p-fde45b29.entry.js.map +0 -1
  836. package/dist/esm/helpers-12b4266a.js.map +0 -1
  837. package/dist/esm/helpers-5271897c.js +0 -183
  838. package/dist/esm/helpers-5271897c.js.map +0 -1
  839. package/dist/esm/ic-card.entry.js +0 -122
  840. package/dist/esm/ic-card.entry.js.map +0 -1
  841. package/dist/esm/ic-data-entity.entry.js +0 -25
  842. package/dist/esm/ic-data-entity.entry.js.map +0 -1
  843. package/dist/esm/ic-empty-state.entry.js +0 -34
  844. package/dist/esm/ic-empty-state.entry.js.map +0 -1
  845. package/dist/esm/ic-input-component-container_3.entry.js.map +0 -1
  846. package/dist/esm/ic-input-label_2.entry.js +0 -81
  847. package/dist/esm/ic-input-label_2.entry.js.map +0 -1
  848. package/dist/esm/ic-pagination-bar.entry.js +0 -265
  849. package/dist/esm/ic-pagination-bar.entry.js.map +0 -1
  850. package/dist/esm/types-f605c21c.js +0 -16
  851. package/dist/esm/types-f605c21c.js.map +0 -1
  852. package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +0 -6
  853. /package/dist/types/components/{ic-select-with-multi/test/a11y/ic-select.test.a11y.d.ts → ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.d.ts} +0 -0
@@ -1,9 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-93509377.js';
2
2
  import { c as closeIcon } from './close-icon-c9e09475.js';
3
- import { i as isSlotUsed, V as VARIANT_ICONS, a as onComponentRequiredPropUndefined, K as getSlot, d as isPropDefined } from './helpers-12b4266a.js';
4
- import { I as IcThemeForegroundEnum } from './types-f605c21c.js';
3
+ import { i as isSlotUsed, V as VARIANT_ICONS, a as onComponentRequiredPropUndefined, J as getSlot, I as IcThemeForegroundEnum, d as isPropDefined } from './helpers-dab8ddfe.js';
5
4
 
6
- const icToastCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--bottom-position:var(--ic-space-xl);position:fixed;bottom:var(--bottom-position);left:50%;transform:translate(-50%);animation:fadein var(--ic-transition-duration-slow) ease-in-out;z-index:var(--ic-z-index-toast)}:host(.hidden){display:none;animation:fadeout var(--ic-transition-duration-slow) ease-in-out}.container{max-width:32.5rem;min-width:18rem;box-shadow:var(--ic-elevation-overlay);min-height:3.5rem;background-color:var(--ic-architectural-800);color:var(--ic-color-white-text);display:flex;align-items:center;position:relative;border-radius:var(--ic-border-radius)}.toast-icon-container{height:100%;display:flex;align-items:center}.divider{height:100%;width:var(--ic-space-xs);position:absolute;border-radius:var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs)}.divider-neutral{background-color:var(--ic-status-unknown)}.divider-info{background-color:var(--ic-status-info-contrast)}.divider-warning{background-color:var(--ic-status-warning-contrast)}.divider-error{background-color:var(--ic-status-error-contrast)}.divider-success{background-color:var(--ic-status-success-contrast)}.toast-icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}:host([variant=\"neutral\"]) .toast-icon svg,::slotted(svg){fill:var(--ic-status-unknown)}:host([variant=\"info\"]) .toast-icon svg{fill:var(--ic-status-info-contrast)}:host([variant=\"warning\"]) .toast-icon svg{fill:var(--ic-status-warning-contrast)}:host([variant=\"error\"]) .toast-icon svg{fill:var(--ic-status-error-contrast)}:host([variant=\"success\"]) .toast-icon svg{fill:var(--ic-status-success-contrast)}.toast-content{margin-left:var(--ic-space-xs);width:100%}.no-icon{margin-left:var(--ic-space-md)}.toast-message{padding:var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0}.toast-action-container{padding-bottom:var(--ic-space-md)}ic-button,.toast-dismiss-timer{padding:var(--ic-space-xs)}@media (max-width: 576px){:host{--bottom-position:var(--ic-space-lg);width:calc(100% - 2 * var(--ic-space-md))}}@media (min-width: 993px){:host{--bottom-position:calc(var(--ic-space-xl) + var(--ic-space-xs))}}@media (forced-colors: active){.container{border:var(--ic-hc-border)}}@keyframes fadein{from{bottom:0;opacity:0}to{bottom:var(--bottom-position);opacity:1}}@keyframes fadeout{from{bottom:var(--bottom-position);opacity:1}to{bottom:0;opacity:0}}";
5
+ const icToastCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){:host{animation:fadein var(--ic-transition-duration-slow) ease-in-out}:host(.hidden){animation:fadeout var(--ic-transition-duration-slow) ease-in-out}}:host{--bottom-position:var(--ic-space-xl);position:fixed;bottom:var(--bottom-position);left:50%;transform:translate(-50%);z-index:var(--ic-z-index-toast)}:host(.ic-toast-hidden){display:none}:host(:focus){outline:none}.container{max-width:32.5rem;min-width:18rem;box-shadow:var(--ic-elevation-overlay);min-height:3.5rem;background-color:var(--ic-architectural-800);--ic-typography-color:var(--ic-color-primary-text-dark);display:flex;align-items:center;position:relative;border-radius:var(--ic-border-radius)}.toast-icon-container{height:100%;display:flex;align-items:center}.divider{height:100%;width:var(--ic-space-xs);position:absolute;border-radius:var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs)}.divider-neutral{background-color:var(--ic-status-unknown)}.divider-info{background-color:var(--ic-status-info-contrast)}.divider-warning{background-color:var(--ic-status-warning-contrast)}.divider-error{background-color:var(--ic-status-error-contrast)}.divider-success{background-color:var(--ic-status-success-contrast)}.toast-icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}:host([variant=\"neutral\"]) .toast-icon svg,::slotted(svg){fill:var(--ic-status-unknown)}:host([variant=\"info\"]) .toast-icon svg{fill:var(--ic-status-info-contrast)}:host([variant=\"warning\"]) .toast-icon svg{fill:var(--ic-status-warning-contrast)}:host([variant=\"error\"]) .toast-icon svg{fill:var(--ic-status-error-contrast)}:host([variant=\"success\"]) .toast-icon svg{fill:var(--ic-status-success-contrast)}.toast-content{margin-left:var(--ic-space-xs);width:100%}.no-icon{margin-left:var(--ic-space-md)}.toast-message{padding:var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0}.toast-action-container{padding-bottom:var(--ic-space-md)}ic-button{padding:var(--ic-space-xs)}.toast-dismiss-timer{padding:var(--ic-space-sm)}@media (max-width: 576px){:host{--bottom-position:var(--ic-space-lg);width:calc(100% - 2 * var(--ic-space-md))}}@media (min-width: 993px){:host{--bottom-position:calc(var(--ic-space-xl) + var(--ic-space-xs))}}@media (forced-colors: active){.container{border:var(--ic-hc-border)}}@keyframes fadein{from{bottom:0;opacity:0}to{bottom:var(--bottom-position);opacity:1}}@keyframes fadeout{from{bottom:var(--bottom-position);opacity:1}to{bottom:0;opacity:0}}";
7
6
 
8
7
  const AUTO_DISMISS_TIMER_REFRESH_RATE_MS = 1000;
9
8
  const TOAST_HEADING_CHAR_LIMIT = 70;
@@ -20,6 +19,15 @@ const Toast = class {
20
19
  this.timerProgress -=
21
20
  (AUTO_DISMISS_TIMER_REFRESH_RATE_MS / this.autoDismissTimeout) * 100;
22
21
  };
22
+ this.onFocus = () => {
23
+ if (this.focusInteractiveElement) {
24
+ this.isManual = true;
25
+ }
26
+ };
27
+ this.onBlur = () => {
28
+ this.handleTimer({ type: "mouseleave" });
29
+ };
30
+ this.isManual = undefined;
23
31
  this.timerProgress = 100;
24
32
  this.visible = false;
25
33
  this.autoDismissTimeout = 5000;
@@ -30,6 +38,9 @@ const Toast = class {
30
38
  this.neutralIconAriaLabel = undefined;
31
39
  this.variant = undefined;
32
40
  }
41
+ dismissModeChangeHandler(newValue) {
42
+ this.isManual = newValue === "manual";
43
+ }
33
44
  disconnectedCallback() {
34
45
  window.clearTimeout(this.dismissTimeout);
35
46
  window.clearInterval(this.timerRefreshInterval);
@@ -61,45 +72,78 @@ const Toast = class {
61
72
  }
62
73
  componentDidLoad() {
63
74
  onComponentRequiredPropUndefined([{ prop: this.heading, propName: "heading" }], "Toast");
64
- const actionContent = getSlot(this.el, "action");
65
- const dismissButton = this.el.shadowRoot.querySelector("ic-button");
66
- if (actionContent)
67
- this.interactiveElements.push(actionContent);
68
- if (dismissButton)
69
- this.interactiveElements.push(dismissButton);
75
+ }
76
+ componentDidUpdate() {
77
+ if (this.focusInteractiveElement && this.isManual) {
78
+ this.resetAutoDismissTimer();
79
+ const actionContent = getSlot(this.el, "action");
80
+ const dismissButton = this.el.shadowRoot.querySelector("ic-button");
81
+ if (actionContent)
82
+ this.interactiveElements.push(actionContent);
83
+ if (dismissButton)
84
+ this.interactiveElements.push(dismissButton);
85
+ this.focusInteractiveElement = false;
86
+ this.findNextInteractiveElement(this.shiftKeyPressed).setFocus();
87
+ this.shiftKeyPressed = false;
88
+ }
89
+ }
90
+ watchVisibleHandler() {
91
+ if (this.visible) {
92
+ const actionContent = getSlot(this.el, "action");
93
+ const dismissButton = this.el.shadowRoot.querySelector("ic-button");
94
+ if (actionContent)
95
+ this.interactiveElements.push(actionContent);
96
+ if (dismissButton)
97
+ this.interactiveElements.push(dismissButton);
98
+ }
99
+ else {
100
+ this.interactiveElements = [];
101
+ }
70
102
  }
71
103
  handleDismiss() {
72
104
  this.visible = false;
73
- clearInterval(this.timerRefreshInterval);
74
- this.timerProgress = 100;
105
+ this.resetAutoDismissTimer();
75
106
  }
76
107
  handleKeyboard(ev) {
77
- if (this.isManual && this.visible) {
78
- switch (ev.key) {
79
- case "Tab":
80
- ev.preventDefault();
81
- this.findNextInteractiveElement(ev.shiftKey).setFocus();
82
- break;
83
- case "Escape":
84
- !ev.repeat && this.dismissAction();
85
- ev.stopImmediatePropagation();
86
- break;
108
+ if (this.visible) {
109
+ if (this.isManual) {
110
+ switch (ev.key) {
111
+ case "Tab":
112
+ ev.preventDefault();
113
+ this.findNextInteractiveElement(ev.shiftKey).setFocus();
114
+ break;
115
+ case "Escape":
116
+ !ev.repeat && this.dismissAction();
117
+ ev.stopImmediatePropagation();
118
+ break;
119
+ }
120
+ }
121
+ else {
122
+ if (ev.key === "Tab") {
123
+ this.shiftKeyPressed = ev.shiftKey;
124
+ this.focusInteractiveElement = true;
125
+ }
87
126
  }
88
127
  }
89
128
  }
90
129
  handleTimer(ev) {
91
- if (!this.isManual) {
92
- switch (ev.type) {
93
- case "mouseenter":
94
- window.clearTimeout(this.dismissTimeout);
95
- window.clearInterval(this.timerRefreshInterval);
96
- this.timerProgress = 100;
97
- break;
98
- case "mouseleave":
99
- this.dismissTimeout = window.setTimeout(this.dismissAction, this.autoDismissTimeout);
100
- this.timerRefreshInterval = window.setInterval(this.handleProgressChange, AUTO_DISMISS_TIMER_REFRESH_RATE_MS);
101
- break;
102
- }
130
+ switch (ev.type) {
131
+ case "mouseenter":
132
+ if (!this.isManual) {
133
+ this.resetAutoDismissTimer();
134
+ }
135
+ this.isManual = true;
136
+ break;
137
+ case "mouseleave":
138
+ if (this.dismissMode === "automatic") {
139
+ this.isManual = false;
140
+ this.interactiveElements = [];
141
+ if (this.visible) {
142
+ this.dismissTimeout = window.setTimeout(this.dismissAction, this.autoDismissTimeout);
143
+ this.timerRefreshInterval = window.setInterval(this.handleProgressChange, AUTO_DISMISS_TIMER_REFRESH_RATE_MS);
144
+ }
145
+ }
146
+ break;
103
147
  }
104
148
  }
105
149
  /**
@@ -139,6 +183,11 @@ const Toast = class {
139
183
  ? this.interactiveElements[currentIndex + (isBackwards ? -1 : 1)]
140
184
  : firstEl;
141
185
  }
186
+ resetAutoDismissTimer() {
187
+ window.clearTimeout(this.dismissTimeout);
188
+ window.clearInterval(this.timerRefreshInterval);
189
+ this.timerProgress = 100;
190
+ }
142
191
  isActive(targetEl) {
143
192
  return targetEl === this.el
144
193
  ? !!this.el.shadowRoot.activeElement
@@ -146,15 +195,19 @@ const Toast = class {
146
195
  }
147
196
  render() {
148
197
  const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
149
- return (h(Host, { class: { ["hidden"]: !visible }, role: isManual ? "dialog" : "status" }, h("div", { class: "container" }, variant && visible && (h("div", { class: "toast-icon-container" }, h("div", { class: {
198
+ return (h(Host, { class: { ["ic-toast-hidden"]: !visible }, role: isManual ? "dialog" : "status", tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur }, h("div", { class: "container" }, variant && visible && (h("div", { class: "toast-icon-container" }, h("div", { class: {
150
199
  ["divider"]: true,
151
200
  [`divider-${variant}`]: true,
152
201
  } }), variant === "neutral" ? (h("slot", { name: "neutral-icon" })) : (h("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), h("div", { class: {
153
202
  ["toast-content"]: true,
154
203
  ["no-icon"]: variant === "neutral" && !isSlotUsed(this.el, "neutral-icon"),
155
- } }, h("div", { class: "toast-message" }, h("ic-typography", { variant: "subtitle-large" }, visible && h("h5", null, heading)), message && (h("ic-typography", { variant: "body" }, visible && h("p", null, message)))), isSlotUsed(this.el, "action") && (h("div", { class: "toast-action-container" }, h("slot", { name: "action" })))), !isManual ? (h("ic-loading-indicator", { class: "toast-dismiss-timer", appearance: "light", size: "icon", progress: this.timerProgress })) : (h("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon", appearance: IcThemeForegroundEnum.Light, "aria-label": dismissButtonAriaLabel })))));
204
+ } }, h("div", { class: "toast-message" }, h("ic-typography", { variant: "subtitle-large" }, visible && h("h5", null, heading)), message && (h("ic-typography", { variant: "body" }, visible && h("p", null, message)))), isSlotUsed(this.el, "action") && (h("div", { class: "toast-action-container" }, h("slot", { name: "action" })))), !isManual ? (h("ic-loading-indicator", { class: "toast-dismiss-timer", appearance: "light", size: "icon", progress: this.timerProgress, description: "" })) : (h("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon", appearance: IcThemeForegroundEnum.Light, "aria-label": dismissButtonAriaLabel })))));
156
205
  }
157
206
  get el() { return getElement(this); }
207
+ static get watchers() { return {
208
+ "dismissMode": ["dismissModeChangeHandler"],
209
+ "visible": ["watchVisibleHandler"]
210
+ }; }
158
211
  };
159
212
  Toast.style = icToastCss;
160
213
 
@@ -1 +1 @@
1
- {"file":"ic-toast.entry.js","mappings":";;;;;AAAA,MAAM,UAAU,GAAG,4rJAA4rJ;;ACK/sJ,MAAM,kCAAkC,GAAG,IAAI,CAAC;AAChD,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,wBAAwB,GAAG,GAAG,CAAC;MAKxB,KAAK;IACd;;;QACI,IAAI,CAAC,mBAAmB,GAAG,EAAE,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG;YACjB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;SACzB,CAAC;QACF,IAAI,CAAC,oBAAoB,GAAG;YACxB,IAAI,CAAC,aAAa;gBACd,CAAC,kCAAkC,GAAG,IAAI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ection/components/ic-toast/ic-toast.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n/**\n * @prop --ic-z-index-toast: z-index of toast\n */\n\n:host {\n --bottom-position: var(--ic-space-xl);\n\n position: fixed;\n bottom: var(--bottom-position);\n left: 50%;\n transform: translate(-50%);\n animation: fadein var(--ic-transition-duration-slow) ease-in-out;\n z-index: var(--ic-z-index-toast);\n}\n\n:host(.hidden) {\n display: none;\n animation: fadeout var(--ic-transition-duration-slow) ease-in-out;\n}\n\n.container {\n max-width: 32.5rem;\n min-width: 18rem;\n box-shadow: var(--ic-elevation-overlay);\n min-height: 3.5rem;\n background-color: var(--ic-architectural-800);\n color: var(--ic-color-white-text);\n display: flex;\n align-items: center;\n position: relative;\n border-radius: var(--ic-border-radius);\n}\n\n.toast-icon-container {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.divider {\n height: 100%;\n width: var(--ic-space-xs);\n position: absolute;\n border-radius: var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);\n}\n\n.divider-neutral {\n background-color: var(--ic-status-unknown);\n}\n\n.divider-info {\n background-color: var(--ic-status-info-contrast);\n}\n\n.divider-warning {\n background-color: var(--ic-status-warning-contrast);\n}\n\n.divider-error {\n background-color: var(--ic-status-error-contrast);\n}\n\n.divider-success {\n background-color: var(--ic-status-success-contrast);\n}\n\n.toast-icon,\n::slotted(svg) {\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n margin-left: var(--ic-space-md);\n}\n\n:host([variant=\"neutral\"]) .toast-icon svg,\n::slotted(svg) {\n fill: var(--ic-status-unknown);\n}\n\n:host([variant=\"info\"]) .toast-icon svg {\n fill: var(--ic-status-info-contrast);\n}\n\n:host([variant=\"warning\"]) .toast-icon svg {\n fill: var(--ic-status-warning-contrast);\n}\n\n:host([variant=\"error\"]) .toast-icon svg {\n fill: var(--ic-status-error-contrast);\n}\n\n:host([variant=\"success\"]) .toast-icon svg {\n fill: var(--ic-status-success-contrast);\n}\n\n.toast-content {\n margin-left: var(--ic-space-xs);\n width: 100%;\n}\n\n.no-icon {\n margin-left: var(--ic-space-md);\n}\n\n.toast-message {\n padding: var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;\n}\n\n.toast-action-container {\n padding-bottom: var(--ic-space-md);\n}\n\nic-button,\n.toast-dismiss-timer {\n padding: var(--ic-space-xs);\n}\n\n@media (max-width: 576px) {\n :host {\n --bottom-position: var(--ic-space-lg);\n\n width: calc(100% - 2 * var(--ic-space-md));\n }\n}\n\n@media (min-width: 993px) {\n :host {\n --bottom-position: calc(var(--ic-space-xl) + var(--ic-space-xs));\n }\n}\n\n@media (forced-colors: active) {\n .container {\n border: var(--ic-hc-border);\n }\n}\n\n@keyframes fadein {\n from {\n bottom: 0;\n opacity: 0;\n }\n\n to {\n bottom: var(--bottom-position);\n opacity: 1;\n }\n}\n\n@keyframes fadeout {\n from {\n bottom: var(--bottom-position);\n opacity: 1;\n }\n\n to {\n bottom: 0;\n opacity: 0;\n }\n}\n","import { h, Host, } from \"@stencil/core\";\nimport closeIcon from \"../../assets/close-icon.svg\";\nimport { VARIANT_ICONS } from \"../../utils/constants\";\nimport { getSlot, isPropDefined, isSlotUsed, onComponentRequiredPropUndefined, } from \"../../utils/helpers\";\nimport { IcThemeForegroundEnum, } from \"../../utils/types\";\nconst AUTO_DISMISS_TIMER_REFRESH_RATE_MS = 1000;\nconst TOAST_HEADING_CHAR_LIMIT = 70;\nconst TOAST_MESSAGE_CHAR_LIMIT = 140;\n/**\n * @slot action - IcButton or IcLink is placed below header and message. If used will default toast to manual `dismiss` type.\n * @slot neutral-icon - A custom neutral icon is placed on the left side of the component. If used will default toast to `neutral` variant.\n */\nexport class Toast {\n constructor() {\n this.interactiveElements = [];\n this.dismissAction = () => {\n this.icDismiss.emit();\n };\n this.handleProgressChange = () => {\n this.timerProgress -=\n (AUTO_DISMISS_TIMER_REFRESH_RATE_MS / this.autoDismissTimeout) * 100;\n };\n this.timerProgress = 100;\n this.visible = false;\n this.autoDismissTimeout = 5000;\n this.dismissButtonAriaLabel = \"dismiss\";\n this.dismissMode = \"manual\";\n this.heading = undefined;\n this.message = undefined;\n this.neutralIconAriaLabel = undefined;\n this.variant = undefined;\n }\n disconnectedCallback() {\n window.clearTimeout(this.dismissTimeout);\n window.clearInterval(this.timerRefreshInterval);\n }\n componentWillLoad() {\n var _a, _b;\n this.handleLongText(this.heading.length > TOAST_HEADING_CHAR_LIMIT, ((_a = this.message) === null || _a === void 0 ? void 0 : _a.length) > TOAST_MESSAGE_CHAR_LIMIT);\n if (this.autoDismissTimeout < 5000)\n this.autoDismissTimeout = 5000;\n if (isSlotUsed(this.el, \"action\"))\n this.dismissMode = \"manual\";\n this.isManual = this.dismissMode === \"manual\";\n if (isSlotUsed(this.el, \"neutral-icon\"))\n this.variant = \"neutral\";\n if (this.variant === \"neutral\") {\n this.neutralVariantLabel =\n (_b = this.neutralIconAriaLabel) !== null && _b !== void 0 ? _b : VARIANT_ICONS[this.variant].ariaLabel;\n }\n if (this.isManual) {\n const toastMessage = isPropDefined(this.message)\n ? `. ${this.message}`\n : \"\";\n this.el.setAttribute(\"aria-label\", this.variant\n ? this.neutralVariantLabel || VARIANT_ICONS[this.variant].ariaLabel\n : this.heading);\n (this.variant || this.message) &&\n this.el.setAttribute(\"aria-description\", this.variant ? `${this.heading}${toastMessage}` : this.message);\n }\n }\n componentDidLoad() {\n onComponentRequiredPropUndefined([{ prop: this.heading, propName: \"heading\" }], \"Toast\");\n const actionContent = getSlot(this.el, \"action\");\n const dismissButton = this.el.shadowRoot.querySelector(\"ic-button\");\n if (actionContent)\n this.interactiveElements.push(actionContent);\n if (dismissButton)\n this.interactiveElements.push(dismissButton);\n }\n handleDismiss() {\n this.visible = false;\n clearInterval(this.timerRefreshInterval);\n this.timerProgress = 100;\n }\n handleKeyboard(ev) {\n if (this.isManual && this.visible) {\n switch (ev.key) {\n case \"Tab\":\n ev.preventDefault();\n this.findNextInteractiveElement(ev.shiftKey).setFocus();\n break;\n case \"Escape\":\n !ev.repeat && this.dismissAction();\n ev.stopImmediatePropagation();\n break;\n }\n }\n }\n handleTimer(ev) {\n if (!this.isManual) {\n switch (ev.type) {\n case \"mouseenter\":\n window.clearTimeout(this.dismissTimeout);\n window.clearInterval(this.timerRefreshInterval);\n this.timerProgress = 100;\n break;\n case \"mouseleave\":\n this.dismissTimeout = window.setTimeout(this.dismissAction, this.autoDismissTimeout);\n this.timerRefreshInterval = window.setInterval(this.handleProgressChange, AUTO_DISMISS_TIMER_REFRESH_RATE_MS);\n break;\n }\n }\n }\n /**\n * @internal Used to display the individual toast.\n * @returns The element that previously had focus before the toast appeared\n */\n async setVisible() {\n if (!this.visible)\n this.visible = true;\n if (!this.isManual) {\n this.dismissTimeout = window.setTimeout(this.dismissAction, this.autoDismissTimeout);\n this.timerRefreshInterval = window.setInterval(this.handleProgressChange, AUTO_DISMISS_TIMER_REFRESH_RATE_MS);\n return null;\n }\n else {\n window.setTimeout(() => this.interactiveElements[0].setFocus(), 200);\n return document.activeElement;\n }\n }\n handleLongText(headingTooLong, messageTooLong) {\n if (messageTooLong || headingTooLong) {\n console.error(`Too many characters in toast ${headingTooLong ? \"heading\" : \"\"}${headingTooLong && messageTooLong ? \" and \" : \"\"}${messageTooLong ? \"message\" : \"\"}. Refer to character limits specified in the prop description`);\n }\n }\n findNextInteractiveElement(isBackwards) {\n const firstEl = this.interactiveElements[0];\n const lastEl = this.interactiveElements[this.interactiveElements.length - 1];\n if (this.isActive(isBackwards ? firstEl : lastEl))\n return isBackwards ? lastEl : firstEl;\n let currentIndex;\n return this.interactiveElements.some((el, index) => {\n if (!this.isActive(el))\n return false;\n currentIndex = index;\n return true;\n })\n ? this.interactiveElements[currentIndex + (isBackwards ? -1 : 1)]\n : firstEl;\n }\n isActive(targetEl) {\n return targetEl === this.el\n ? !!this.el.shadowRoot.activeElement\n : document.activeElement === targetEl;\n }\n render() {\n const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;\n return (h(Host, { class: { [\"hidden\"]: !visible }, role: isManual ? \"dialog\" : \"status\" }, h(\"div\", { class: \"container\" }, variant && visible && (h(\"div\", { class: \"toast-icon-container\" }, h(\"div\", { class: {\n [\"divider\"]: true,\n [`divider-${variant}`]: true,\n } }), variant === \"neutral\" ? (h(\"slot\", { name: \"neutral-icon\" })) : (h(\"span\", { class: \"toast-icon\", innerHTML: VARIANT_ICONS[variant].icon })))), h(\"div\", { class: {\n [\"toast-content\"]: true,\n [\"no-icon\"]: variant === \"neutral\" && !isSlotUsed(this.el, \"neutral-icon\"),\n } }, h(\"div\", { class: \"toast-message\" }, h(\"ic-typography\", { variant: \"subtitle-large\" }, visible && h(\"h5\", null, heading)), message && (h(\"ic-typography\", { variant: \"body\" }, visible && h(\"p\", null, message)))), isSlotUsed(this.el, \"action\") && (h(\"div\", { class: \"toast-action-container\" }, h(\"slot\", { name: \"action\" })))), !isManual ? (h(\"ic-loading-indicator\", { class: \"toast-dismiss-timer\", appearance: \"light\", size: \"icon\", progress: this.timerProgress })) : (h(\"ic-button\", { id: \"dismiss-button\", innerHTML: closeIcon, onClick: this.dismissAction, variant: \"icon\", appearance: IcThemeForegroundEnum.Light, \"aria-label\": dismissButtonAriaLabel })))));\n }\n static get is() { return \"ic-toast\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-toast.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-toast.css\"]\n };\n }\n static get properties() {\n return {\n \"autoDismissTimeout\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS)\\n(NOTE: Has a minimum value of `5000ms`)\"\n },\n \"attribute\": \"auto-dismiss-timeout\",\n \"reflect\": false,\n \"defaultValue\": \"5000\"\n },\n \"dismissButtonAriaLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If toast can be manually dismissed, this prop sets a custom aria-label for the ic-button component\"\n },\n \"attribute\": \"dismiss-button-aria-label\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"dismiss\\\"\"\n },\n \"dismissMode\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"IcActivationTypes\",\n \"resolved\": \"\\\"automatic\\\" | \\\"manual\\\"\",\n \"references\": {\n \"IcActivationTypes\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcActivationTypes\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"How the toast will be dismissed. If manual will display a dismiss button.\"\n },\n \"attribute\": \"dismiss-mode\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"manual\\\"\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The title to display at the start of the toast. (NOTE: Should be no more than `70` characters)\"\n },\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"message\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main body message of the toast. (NOTE: Should be no more than `140` characters)\"\n },\n \"attribute\": \"message\",\n \"reflect\": false\n },\n \"neutralIconAriaLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Provides a custom alt-text to be announced to screen readers, if slotting a custom neutral icon\"\n },\n \"attribute\": \"neutral-icon-aria-label\",\n \"reflect\": false\n },\n \"variant\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"IcStatusVariants\",\n \"resolved\": \"\\\"error\\\" | \\\"info\\\" | \\\"neutral\\\" | \\\"success\\\" | \\\"warning\\\"\",\n \"references\": {\n \"IcStatusVariants\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcStatusVariants\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The variant of the toast being rendered\"\n },\n \"attribute\": \"variant\",\n \"reflect\": false\n }\n };\n }\n static get states() {\n return {\n \"timerProgress\": {},\n \"visible\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"icDismiss\",\n \"name\": \"icDismiss\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Is emitted when the user dismisses the toast\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"setVisible\": {\n \"complexType\": {\n \"signature\": \"() => Promise<HTMLElement>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n },\n \"HTMLElement\": {\n \"location\": \"global\",\n \"id\": \"global::HTMLElement\"\n }\n },\n \"return\": \"Promise<HTMLElement>\"\n },\n \"docs\": {\n \"text\": \"\",\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"Used to display the individual toast.\"\n }, {\n \"name\": \"returns\",\n \"text\": \"The element that previously had focus before the toast appeared\"\n }]\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get listeners() {\n return [{\n \"name\": \"icDismiss\",\n \"method\": \"handleDismiss\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": false\n }, {\n \"name\": \"keydown\",\n \"method\": \"handleKeyboard\",\n \"target\": \"document\",\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"mouseenter\",\n \"method\": \"handleTimer\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }, {\n \"name\": \"mouseleave\",\n \"method\": \"handleTimer\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }];\n }\n}\n//# sourceMappingURL=ic-toast.js.map\n"],"version":3}
1
+ {"file":"ic-toast.entry.js","mappings":";;;;AAAA,MAAM,UAAU,GAAG,u1JAAu1J;;ACK12J,MAAM,kCAAkC,GAAG,IAAI,CAAC;AAChD,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,wBAAwB,GAAG,GAAG,CAAC;MAKxB,KAAK;IACd;;;QACI,IAAI,CAAC,mBAAmB,GAAG,EAAE,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG;YACjB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;SACzB,CAAC;QACF,IAAI,CAAC,oBAAoB,GAAG;YACxB,IAA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EAAE,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,qBAAqB,CAAC,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;KACjrB;;;;;;;;;;;","names":[],"sources":["../web-components/dist/collection/components/ic-toast/ic-toast.css?tag=ic-toast&encapsulation=shadow","../web-components/dist/collection/components/ic-toast/ic-toast.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n/**\n * @prop --ic-z-index-toast: z-index of toast\n */\n\n@media (prefers-reduced-motion: no-preference) {\n :host {\n animation: fadein var(--ic-transition-duration-slow) ease-in-out;\n }\n\n :host(.hidden) {\n animation: fadeout var(--ic-transition-duration-slow) ease-in-out;\n }\n}\n\n:host {\n --bottom-position: var(--ic-space-xl);\n\n position: fixed;\n bottom: var(--bottom-position);\n left: 50%;\n transform: translate(-50%);\n z-index: var(--ic-z-index-toast);\n}\n\n:host(.ic-toast-hidden) {\n display: none;\n}\n\n:host(:focus) {\n outline: none;\n}\n\n.container {\n max-width: 32.5rem;\n min-width: 18rem;\n box-shadow: var(--ic-elevation-overlay);\n min-height: 3.5rem;\n background-color: var(--ic-architectural-800);\n\n --ic-typography-color: var(--ic-color-primary-text-dark);\n\n display: flex;\n align-items: center;\n position: relative;\n border-radius: var(--ic-border-radius);\n}\n\n.toast-icon-container {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.divider {\n height: 100%;\n width: var(--ic-space-xs);\n position: absolute;\n border-radius: var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);\n}\n\n.divider-neutral {\n background-color: var(--ic-status-unknown);\n}\n\n.divider-info {\n background-color: var(--ic-status-info-contrast);\n}\n\n.divider-warning {\n background-color: var(--ic-status-warning-contrast);\n}\n\n.divider-error {\n background-color: var(--ic-status-error-contrast);\n}\n\n.divider-success {\n background-color: var(--ic-status-success-contrast);\n}\n\n.toast-icon,\n::slotted(svg) {\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n margin-left: var(--ic-space-md);\n}\n\n:host([variant=\"neutral\"]) .toast-icon svg,\n::slotted(svg) {\n fill: var(--ic-status-unknown);\n}\n\n:host([variant=\"info\"]) .toast-icon svg {\n fill: var(--ic-status-info-contrast);\n}\n\n:host([variant=\"warning\"]) .toast-icon svg {\n fill: var(--ic-status-warning-contrast);\n}\n\n:host([variant=\"error\"]) .toast-icon svg {\n fill: var(--ic-status-error-contrast);\n}\n\n:host([variant=\"success\"]) .toast-icon svg {\n fill: var(--ic-status-success-contrast);\n}\n\n.toast-content {\n margin-left: var(--ic-space-xs);\n width: 100%;\n}\n\n.no-icon {\n margin-left: var(--ic-space-md);\n}\n\n.toast-message {\n padding: var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;\n}\n\n.toast-action-container {\n padding-bottom: var(--ic-space-md);\n}\n\nic-button {\n padding: var(--ic-space-xs);\n}\n\n.toast-dismiss-timer {\n padding: var(--ic-space-sm);\n}\n\n@media (max-width: 576px) {\n :host {\n --bottom-position: var(--ic-space-lg);\n\n width: calc(100% - 2 * var(--ic-space-md));\n }\n}\n\n@media (min-width: 993px) {\n :host {\n --bottom-position: calc(var(--ic-space-xl) + var(--ic-space-xs));\n }\n}\n\n@media (forced-colors: active) {\n .container {\n border: var(--ic-hc-border);\n }\n}\n\n@keyframes fadein {\n from {\n bottom: 0;\n opacity: 0;\n }\n\n to {\n bottom: var(--bottom-position);\n opacity: 1;\n }\n}\n\n@keyframes fadeout {\n from {\n bottom: var(--bottom-position);\n opacity: 1;\n }\n\n to {\n bottom: 0;\n opacity: 0;\n }\n}\n","import { h, Host, } from \"@stencil/core\";\nimport closeIcon from \"../../assets/close-icon.svg\";\nimport { VARIANT_ICONS } from \"../../utils/constants\";\nimport { getSlot, isPropDefined, isSlotUsed, onComponentRequiredPropUndefined, } from \"../../utils/helpers\";\nimport { IcThemeForegroundEnum, } from \"../../utils/types\";\nconst AUTO_DISMISS_TIMER_REFRESH_RATE_MS = 1000;\nconst TOAST_HEADING_CHAR_LIMIT = 70;\nconst TOAST_MESSAGE_CHAR_LIMIT = 140;\n/**\n * @slot action - IcButton or IcLink is placed below header and message. If used will default toast to manual `dismiss` type.\n * @slot neutral-icon - A custom neutral icon is placed on the left side of the component. If used will default toast to `neutral` variant.\n */\nexport class Toast {\n constructor() {\n this.interactiveElements = [];\n this.dismissAction = () => {\n this.icDismiss.emit();\n };\n this.handleProgressChange = () => {\n this.timerProgress -=\n (AUTO_DISMISS_TIMER_REFRESH_RATE_MS / this.autoDismissTimeout) * 100;\n };\n this.onFocus = () => {\n if (this.focusInteractiveElement) {\n this.isManual = true;\n }\n };\n this.onBlur = () => {\n this.handleTimer({ type: \"mouseleave\" });\n };\n this.isManual = undefined;\n this.timerProgress = 100;\n this.visible = false;\n this.autoDismissTimeout = 5000;\n this.dismissButtonAriaLabel = \"dismiss\";\n this.dismissMode = \"manual\";\n this.heading = undefined;\n this.message = undefined;\n this.neutralIconAriaLabel = undefined;\n this.variant = undefined;\n }\n dismissModeChangeHandler(newValue) {\n this.isManual = newValue === \"manual\";\n }\n disconnectedCallback() {\n window.clearTimeout(this.dismissTimeout);\n window.clearInterval(this.timerRefreshInterval);\n }\n componentWillLoad() {\n var _a, _b;\n this.handleLongText(this.heading.length > TOAST_HEADING_CHAR_LIMIT, ((_a = this.message) === null || _a === void 0 ? void 0 : _a.length) > TOAST_MESSAGE_CHAR_LIMIT);\n if (this.autoDismissTimeout < 5000)\n this.autoDismissTimeout = 5000;\n if (isSlotUsed(this.el, \"action\"))\n this.dismissMode = \"manual\";\n this.isManual = this.dismissMode === \"manual\";\n if (isSlotUsed(this.el, \"neutral-icon\"))\n this.variant = \"neutral\";\n if (this.variant === \"neutral\") {\n this.neutralVariantLabel =\n (_b = this.neutralIconAriaLabel) !== null && _b !== void 0 ? _b : VARIANT_ICONS[this.variant].ariaLabel;\n }\n if (this.isManual) {\n const toastMessage = isPropDefined(this.message)\n ? `. ${this.message}`\n : \"\";\n this.el.setAttribute(\"aria-label\", this.variant\n ? this.neutralVariantLabel || VARIANT_ICONS[this.variant].ariaLabel\n : this.heading);\n (this.variant || this.message) &&\n this.el.setAttribute(\"aria-description\", this.variant ? `${this.heading}${toastMessage}` : this.message);\n }\n }\n componentDidLoad() {\n onComponentRequiredPropUndefined([{ prop: this.heading, propName: \"heading\" }], \"Toast\");\n }\n componentDidUpdate() {\n if (this.focusInteractiveElement && this.isManual) {\n this.resetAutoDismissTimer();\n const actionContent = getSlot(this.el, \"action\");\n const dismissButton = this.el.shadowRoot.querySelector(\"ic-button\");\n if (actionContent)\n this.interactiveElements.push(actionContent);\n if (dismissButton)\n this.interactiveElements.push(dismissButton);\n this.focusInteractiveElement = false;\n this.findNextInteractiveElement(this.shiftKeyPressed).setFocus();\n this.shiftKeyPressed = false;\n }\n }\n watchVisibleHandler() {\n if (this.visible) {\n const actionContent = getSlot(this.el, \"action\");\n const dismissButton = this.el.shadowRoot.querySelector(\"ic-button\");\n if (actionContent)\n this.interactiveElements.push(actionContent);\n if (dismissButton)\n this.interactiveElements.push(dismissButton);\n }\n else {\n this.interactiveElements = [];\n }\n }\n handleDismiss() {\n this.visible = false;\n this.resetAutoDismissTimer();\n }\n handleKeyboard(ev) {\n if (this.visible) {\n if (this.isManual) {\n switch (ev.key) {\n case \"Tab\":\n ev.preventDefault();\n this.findNextInteractiveElement(ev.shiftKey).setFocus();\n break;\n case \"Escape\":\n !ev.repeat && this.dismissAction();\n ev.stopImmediatePropagation();\n break;\n }\n }\n else {\n if (ev.key === \"Tab\") {\n this.shiftKeyPressed = ev.shiftKey;\n this.focusInteractiveElement = true;\n }\n }\n }\n }\n handleTimer(ev) {\n switch (ev.type) {\n case \"mouseenter\":\n if (!this.isManual) {\n this.resetAutoDismissTimer();\n }\n this.isManual = true;\n break;\n case \"mouseleave\":\n if (this.dismissMode === \"automatic\") {\n this.isManual = false;\n this.interactiveElements = [];\n if (this.visible) {\n this.dismissTimeout = window.setTimeout(this.dismissAction, this.autoDismissTimeout);\n this.timerRefreshInterval = window.setInterval(this.handleProgressChange, AUTO_DISMISS_TIMER_REFRESH_RATE_MS);\n }\n }\n break;\n }\n }\n /**\n * @internal Used to display the individual toast.\n * @returns The element that previously had focus before the toast appeared\n */\n async setVisible() {\n if (!this.visible)\n this.visible = true;\n if (!this.isManual) {\n this.dismissTimeout = window.setTimeout(this.dismissAction, this.autoDismissTimeout);\n this.timerRefreshInterval = window.setInterval(this.handleProgressChange, AUTO_DISMISS_TIMER_REFRESH_RATE_MS);\n return null;\n }\n else {\n window.setTimeout(() => this.interactiveElements[0].setFocus(), 200);\n return document.activeElement;\n }\n }\n handleLongText(headingTooLong, messageTooLong) {\n if (messageTooLong || headingTooLong) {\n console.error(`Too many characters in toast ${headingTooLong ? \"heading\" : \"\"}${headingTooLong && messageTooLong ? \" and \" : \"\"}${messageTooLong ? \"message\" : \"\"}. Refer to character limits specified in the prop description`);\n }\n }\n findNextInteractiveElement(isBackwards) {\n const firstEl = this.interactiveElements[0];\n const lastEl = this.interactiveElements[this.interactiveElements.length - 1];\n if (this.isActive(isBackwards ? firstEl : lastEl))\n return isBackwards ? lastEl : firstEl;\n let currentIndex;\n return this.interactiveElements.some((el, index) => {\n if (!this.isActive(el))\n return false;\n currentIndex = index;\n return true;\n })\n ? this.interactiveElements[currentIndex + (isBackwards ? -1 : 1)]\n : firstEl;\n }\n resetAutoDismissTimer() {\n window.clearTimeout(this.dismissTimeout);\n window.clearInterval(this.timerRefreshInterval);\n this.timerProgress = 100;\n }\n isActive(targetEl) {\n return targetEl === this.el\n ? !!this.el.shadowRoot.activeElement\n : document.activeElement === targetEl;\n }\n render() {\n const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;\n return (h(Host, { class: { [\"ic-toast-hidden\"]: !visible }, role: isManual ? \"dialog\" : \"status\", tabindex: \"0\", onFocus: this.onFocus, onBlur: this.onBlur }, h(\"div\", { class: \"container\" }, variant && visible && (h(\"div\", { class: \"toast-icon-container\" }, h(\"div\", { class: {\n [\"divider\"]: true,\n [`divider-${variant}`]: true,\n } }), variant === \"neutral\" ? (h(\"slot\", { name: \"neutral-icon\" })) : (h(\"span\", { class: \"toast-icon\", innerHTML: VARIANT_ICONS[variant].icon })))), h(\"div\", { class: {\n [\"toast-content\"]: true,\n [\"no-icon\"]: variant === \"neutral\" && !isSlotUsed(this.el, \"neutral-icon\"),\n } }, h(\"div\", { class: \"toast-message\" }, h(\"ic-typography\", { variant: \"subtitle-large\" }, visible && h(\"h5\", null, heading)), message && (h(\"ic-typography\", { variant: \"body\" }, visible && h(\"p\", null, message)))), isSlotUsed(this.el, \"action\") && (h(\"div\", { class: \"toast-action-container\" }, h(\"slot\", { name: \"action\" })))), !isManual ? (h(\"ic-loading-indicator\", { class: \"toast-dismiss-timer\", appearance: \"light\", size: \"icon\", progress: this.timerProgress, description: \"\" })) : (h(\"ic-button\", { id: \"dismiss-button\", innerHTML: closeIcon, onClick: this.dismissAction, variant: \"icon\", appearance: IcThemeForegroundEnum.Light, \"aria-label\": dismissButtonAriaLabel })))));\n }\n static get is() { return \"ic-toast\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-toast.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-toast.css\"]\n };\n }\n static get properties() {\n return {\n \"autoDismissTimeout\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS)\\n(NOTE: Has a minimum value of `5000ms`)\"\n },\n \"attribute\": \"auto-dismiss-timeout\",\n \"reflect\": false,\n \"defaultValue\": \"5000\"\n },\n \"dismissButtonAriaLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If toast can be manually dismissed, this prop sets a custom aria-label for the ic-button component\"\n },\n \"attribute\": \"dismiss-button-aria-label\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"dismiss\\\"\"\n },\n \"dismissMode\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"IcActivationTypes\",\n \"resolved\": \"\\\"automatic\\\" | \\\"manual\\\"\",\n \"references\": {\n \"IcActivationTypes\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcActivationTypes\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"How the toast will be dismissed. If manual will display a dismiss button.\"\n },\n \"attribute\": \"dismiss-mode\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"manual\\\"\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The title to display at the start of the toast. (NOTE: Should be no more than `70` characters)\"\n },\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"message\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main body message of the toast. (NOTE: Should be no more than `140` characters)\"\n },\n \"attribute\": \"message\",\n \"reflect\": false\n },\n \"neutralIconAriaLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Provides a custom alt-text to be announced to screen readers, if slotting a custom neutral icon\"\n },\n \"attribute\": \"neutral-icon-aria-label\",\n \"reflect\": false\n },\n \"variant\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"IcStatusVariants\",\n \"resolved\": \"\\\"error\\\" | \\\"info\\\" | \\\"neutral\\\" | \\\"success\\\" | \\\"warning\\\"\",\n \"references\": {\n \"IcStatusVariants\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcStatusVariants\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The variant of the toast being rendered\"\n },\n \"attribute\": \"variant\",\n \"reflect\": false\n }\n };\n }\n static get states() {\n return {\n \"isManual\": {},\n \"timerProgress\": {},\n \"visible\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"icDismiss\",\n \"name\": \"icDismiss\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Is emitted when the user dismisses the toast\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"setVisible\": {\n \"complexType\": {\n \"signature\": \"() => Promise<HTMLElement>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n },\n \"HTMLElement\": {\n \"location\": \"global\",\n \"id\": \"global::HTMLElement\"\n }\n },\n \"return\": \"Promise<HTMLElement>\"\n },\n \"docs\": {\n \"text\": \"\",\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": \"Used to display the individual toast.\"\n }, {\n \"name\": \"returns\",\n \"text\": \"The element that previously had focus before the toast appeared\"\n }]\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"dismissMode\",\n \"methodName\": \"dismissModeChangeHandler\"\n }, {\n \"propName\": \"visible\",\n \"methodName\": \"watchVisibleHandler\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"icDismiss\",\n \"method\": \"handleDismiss\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": false\n }, {\n \"name\": \"keydown\",\n \"method\": \"handleKeyboard\",\n \"target\": \"document\",\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"mouseenter\",\n \"method\": \"handleTimer\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }, {\n \"name\": \"mouseleave\",\n \"method\": \"handleTimer\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": true\n }];\n }\n}\n//# sourceMappingURL=ic-toast.js.map\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-93509377.js';
2
2
 
3
- const icToggleButtonGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:root{display:block}:host{display:flex;flex-direction:row;width:-moz-fit-content;width:fit-content;min-width:-moz-min-content;min-width:min-content;border:var(--ic-border-width) solid var(--ic-action-default);border-radius:var(--ic-border-radius)}:host(.full-width){width:100%;max-width:100%}:host(.loading){min-width:-moz-max-content;min-width:max-content}:host(:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast);outline:none}::slotted(ic-toggle-button){flex-grow:1;--toggle-button-border:none;width:-moz-min-content;width:min-content}::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid var(--ic-action-default)}:host(.disabled){border:var(--ic-border-disabled);pointer-events:none}:host(.disabled) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-disabled)}:host(.dark){border:var(--ic-border-width) solid var(--ic-action-dark)}:host(.dark) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid var(--ic-action-dark)}:host(.light) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid var(--ic-action-light)}:host(.light){border:var(--ic-border-width) solid var(--ic-action-light)}";
3
+ const icToggleButtonGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:root{display:block}:host{display:flex;flex-direction:row;width:-moz-fit-content;width:fit-content;min-width:-moz-min-content;min-width:min-content;border:var(--ic-border-width) solid var(--ic-action-default);border-radius:var(--ic-border-radius)}:host(.ic-toggle-button-group-full-width){width:100%;max-width:100%}:host(.ic-toggle-button-group-loading){min-width:-moz-max-content;min-width:max-content}:host(:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast);outline:none}::slotted(ic-toggle-button){flex-grow:1;width:-moz-min-content;width:min-content;--toggle-button-border:none}::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid var(--ic-action-default)}:host(.ic-toggle-button-group-disabled){border:var(--ic-border-disabled);pointer-events:none}:host(.ic-toggle-button-group-disabled) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-disabled)}:host(.ic-toggle-button-group-dark){border:var(--ic-border-width) solid var(--ic-action-dark)}:host(.ic-toggle-button-group-dark) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid var(--ic-action-dark)}:host(.ic-toggle-button-group-light) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid var(--ic-action-light)}:host(.ic-toggle-button-group-light){border:var(--ic-border-width) solid var(--ic-action-light)}";
4
4
 
5
5
  const TOGGLE_GROUP = "IC-TOGGLE-BUTTON-GROUP";
6
6
  const ToggleButtonGroup = class {
@@ -29,18 +29,18 @@ const ToggleButtonGroup = class {
29
29
  const el = ev.target;
30
30
  const relEl = ev.relatedTarget;
31
31
  const toggleButtons = Array.from(el.querySelectorAll("ic-toggle-button"));
32
- if (((toggleButtons.every((el) => !el.toggleChecked) ||
32
+ if (((toggleButtons.every((el) => !el.checked) ||
33
33
  this.selectType !== "single") &&
34
34
  this.lastKeyPressed.shift === false) ||
35
- (toggleButtons.every((el) => !el.toggleChecked) &&
35
+ (toggleButtons.every((el) => !el.checked) &&
36
36
  this.lastKeyPressed.shift === true &&
37
37
  relEl.tagName == TOGGLE_GROUP)) {
38
38
  toggleButtons[0].focus();
39
39
  }
40
40
  else if (this.lastKeyPressed.shift === false ||
41
41
  (this.lastKeyPressed.shift === true && relEl.tagName == TOGGLE_GROUP)) {
42
- // if toggleChecked is true and selectMethod is "single", focus that toggle
43
- const toggledButton = toggleButtons.filter((el) => el.toggleChecked);
42
+ // if checked is true and selectMethod is "single", focus that toggle
43
+ const toggledButton = toggleButtons.filter((el) => el.checked);
44
44
  toggledButton[0].focus();
45
45
  }
46
46
  };
@@ -92,7 +92,7 @@ const ToggleButtonGroup = class {
92
92
  this.loading = false;
93
93
  this.selectMethod = "manual";
94
94
  this.selectType = "single";
95
- this.size = "default";
95
+ this.size = "medium";
96
96
  this.variant = "default";
97
97
  }
98
98
  selectHandler(ev, tabTarget) {
@@ -105,19 +105,19 @@ const ToggleButtonGroup = class {
105
105
  clickedToggle = tabTarget;
106
106
  }
107
107
  allToggles.forEach((el) => {
108
- if (el.id !== clickedToggle.id && el.toggleChecked) {
109
- el.toggleChecked = false;
108
+ if (el.id !== clickedToggle.id && el.checked) {
109
+ el.checked = false;
110
110
  }
111
111
  });
112
112
  this.icChange.emit({
113
- toggleChecked: ev.detail.toggleChecked,
113
+ checked: ev.detail.checked,
114
114
  selectedOption: clickedToggle,
115
115
  });
116
116
  }
117
117
  else {
118
- const toggledOptions = this.getAllToggleButtons().filter((el) => el.toggleChecked && !el.disabled);
118
+ const toggledOptions = this.getAllToggleButtons().filter((el) => el.checked && !el.disabled);
119
119
  this.icChange.emit({
120
- toggleChecked: toggledOptions.map((opt) => opt.toggleChecked),
120
+ checked: toggledOptions.map((opt) => opt.checked),
121
121
  toggledOptions: toggledOptions.map((opt) => ({
122
122
  toggleButton: opt,
123
123
  })),
@@ -152,10 +152,10 @@ const ToggleButtonGroup = class {
152
152
  }
153
153
  // trigger selectHandler when unable to add 'target'
154
154
  proxySelectHandler(toggle) {
155
- toggle.toggleChecked = true;
155
+ toggle.checked = true;
156
156
  const customEv = new CustomEvent("icToggleChecked", {
157
157
  detail: {
158
- toggleChecked: toggle.toggleChecked,
158
+ checked: toggle.checked,
159
159
  },
160
160
  });
161
161
  this.selectHandler(customEv, toggle);
@@ -165,10 +165,10 @@ const ToggleButtonGroup = class {
165
165
  }
166
166
  render() {
167
167
  return (h(Host, { role: "group", "aria-label": this.accessibleLabel, "aria-disabled": this.disabled ? "true" : "false", tabindex: 0, class: {
168
- ["full-width"]: this.fullWidth,
169
- ["loading"]: this.loading,
170
- ["disabled"]: this.disabled,
171
- [`${this.appearance}`]: true,
168
+ ["ic-toggle-button-group-full-width"]: this.fullWidth,
169
+ ["ic-toggle-button-group-loading"]: this.loading,
170
+ ["ic-toggle-button-group-disabled"]: this.disabled,
171
+ [`ic-toggle-button-group-${this.appearance}`]: true,
172
172
  }, onFocus: this.handleHostFocus }, h("slot", null)));
173
173
  }
174
174
  get el() { return getElement(this); }