@ukic/web-components 3.0.0-alpha.11 → 3.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (985) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  3. package/dist/cjs/core.cjs.js +13 -11
  4. package/dist/cjs/core.cjs.js.map +1 -1
  5. package/dist/cjs/{helpers-eca4c27e.js → helpers-08a9ec1c.js} +31 -26
  6. package/dist/cjs/helpers-08a9ec1c.js.map +1 -0
  7. package/dist/cjs/ic-accordion-group.cjs.entry.js +31 -14
  8. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-accordion.cjs.entry.js +65 -42
  10. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-alert.cjs.entry.js +37 -16
  12. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-back-to-top.cjs.entry.js +29 -15
  14. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-badge.cjs.entry.js +41 -22
  16. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +53 -37
  18. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-breadcrumb.cjs.entry.js +35 -21
  20. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-button_3.cjs.entry.js +246 -144
  22. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-card-vertical.cjs.entry.js +53 -32
  24. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-checkbox-group.cjs.entry.js +32 -9
  26. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-checkbox.cjs.entry.js +48 -29
  28. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-chip.cjs.entry.js +44 -23
  30. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-classification-banner.cjs.entry.js +20 -4
  32. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-data-list.cjs.entry.js +11 -5
  34. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-data-row.cjs.entry.js +28 -18
  36. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-dialog.cjs.entry.js +141 -98
  38. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-divider.cjs.entry.js +35 -15
  40. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-empty-state.cjs.entry.js +15 -9
  42. package/dist/cjs/ic-empty-state.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-footer-link-group.cjs.entry.js +8 -8
  44. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-footer-link.cjs.entry.js +9 -10
  46. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-footer.cjs.entry.js +32 -19
  48. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-hero.cjs.entry.js +29 -17
  50. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +32 -20
  52. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +126 -68
  54. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-input-label_2.cjs.entry.js +45 -17
  56. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-link.cjs.entry.js +28 -21
  58. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-menu-group.cjs.entry.js +5 -5
  60. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-menu-item.cjs.entry.js +20 -18
  62. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-navigation-button.cjs.entry.js +25 -19
  64. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-navigation-group.cjs.entry.js +45 -27
  66. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-navigation-item.cjs.entry.js +69 -48
  68. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-navigation-menu.cjs.entry.js +23 -15
  70. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-page-header.cjs.entry.js +45 -25
  72. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-pagination-item.cjs.entry.js +27 -14
  74. package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-pagination.cjs.entry.js +60 -27
  76. package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-popover-menu.cjs.entry.js +57 -42
  78. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-radio-group.cjs.entry.js +53 -28
  80. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-radio-option.cjs.entry.js +36 -24
  82. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-search-bar.cjs.entry.js +153 -63
  84. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-section-container.cjs.entry.js +12 -5
  86. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-select.cjs.entry.js +230 -136
  88. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-side-navigation.cjs.entry.js +104 -71
  90. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  91. package/dist/cjs/ic-skeleton.cjs.entry.js +11 -4
  92. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ic-skip-link.cjs.entry.js +54 -0
  94. package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -0
  95. package/dist/cjs/ic-status-tag.cjs.entry.js +25 -6
  96. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  97. package/dist/cjs/ic-step.cjs.entry.js +33 -32
  98. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  99. package/dist/cjs/ic-stepper.cjs.entry.js +50 -35
  100. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  101. package/dist/cjs/ic-switch.cjs.entry.js +50 -22
  102. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  103. package/dist/cjs/ic-tab-context.cjs.entry.js +45 -26
  104. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  105. package/dist/cjs/ic-tab-group.cjs.entry.js +14 -9
  106. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  107. package/dist/cjs/ic-tab-panel.cjs.entry.js +16 -12
  108. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  109. package/dist/cjs/ic-tab.cjs.entry.js +21 -15
  110. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  111. package/dist/cjs/ic-text-field.cjs.entry.js +175 -69
  112. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  113. package/dist/cjs/ic-theme.cjs.entry.js +13 -7
  114. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  115. package/dist/cjs/ic-toast-region.cjs.entry.js +2 -3
  116. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  117. package/dist/cjs/ic-toast.cjs.entry.js +29 -21
  118. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  119. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +61 -29
  120. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  121. package/dist/cjs/ic-toggle-button.cjs.entry.js +81 -48
  122. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  123. package/dist/cjs/ic-top-navigation.cjs.entry.js +60 -31
  124. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  125. package/dist/cjs/ic-typography.cjs.entry.js +53 -27
  126. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  127. package/dist/cjs/index-d337cd8a.js +2611 -0
  128. package/dist/cjs/index-d337cd8a.js.map +1 -0
  129. package/dist/cjs/loader.cjs.js +5 -3
  130. package/dist/cjs/loader.cjs.js.map +1 -1
  131. package/dist/collection/collection-manifest.json +5 -4
  132. package/dist/collection/components/ic-accordion/ic-accordion.js +80 -46
  133. package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -1
  134. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js +49 -21
  135. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js.map +1 -1
  136. package/dist/collection/components/ic-alert/ic-alert.js +58 -22
  137. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  138. package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +49 -18
  139. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +59 -14
  140. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
  141. package/dist/collection/components/ic-back-to-top/ic-back-to-top.stories.js +54 -0
  142. package/dist/collection/components/ic-back-to-top/ic-back-to-top.types.js.map +1 -1
  143. package/dist/collection/components/ic-badge/ic-badge.js +69 -32
  144. package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
  145. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +49 -24
  146. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
  147. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +63 -40
  148. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
  149. package/dist/collection/components/ic-button/ic-button.css +0 -8
  150. package/dist/collection/components/ic-button/ic-button.js +211 -98
  151. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  152. package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +88 -42
  153. package/dist/collection/components/ic-card-vertical/ic-card-vertical.js.map +1 -1
  154. package/dist/collection/components/ic-checkbox/ic-checkbox.js +91 -45
  155. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  156. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +62 -20
  157. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  158. package/dist/collection/components/ic-chip/ic-chip.js +67 -30
  159. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  160. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +32 -7
  161. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
  162. package/dist/collection/components/ic-data-list/ic-data-list.js +18 -7
  163. package/dist/collection/components/ic-data-list/ic-data-list.js.map +1 -1
  164. package/dist/collection/components/ic-data-row/ic-data-row.js +38 -21
  165. package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
  166. package/dist/collection/components/ic-dialog/ic-dialog.js +176 -110
  167. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  168. package/dist/collection/components/ic-dialog/ic-dialog.stories.js +100 -49
  169. package/dist/collection/components/ic-divider/ic-divider.js +55 -22
  170. package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
  171. package/dist/collection/components/ic-divider/ic-divider.stories.js +2 -2
  172. package/dist/collection/components/ic-empty-state/ic-empty-state.js +32 -13
  173. package/dist/collection/components/ic-empty-state/ic-empty-state.js.map +1 -1
  174. package/dist/collection/components/ic-footer/ic-footer.js +49 -25
  175. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  176. package/dist/collection/components/ic-footer-link/ic-footer-link.js +24 -15
  177. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  178. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +6 -5
  179. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  180. package/dist/collection/components/ic-hero/ic-hero.css +1 -1
  181. package/dist/collection/components/ic-hero/ic-hero.js +54 -25
  182. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  183. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +40 -21
  184. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -1
  185. package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +9 -0
  186. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +55 -20
  187. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
  188. package/dist/collection/components/ic-input-container/ic-input-container.js +16 -6
  189. package/dist/collection/components/ic-input-container/ic-input-container.js.map +1 -1
  190. package/dist/collection/components/ic-input-label/ic-input-label.js +48 -11
  191. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  192. package/dist/collection/components/ic-input-validation/ic-input-validation.js +31 -14
  193. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  194. package/dist/collection/components/ic-link/ic-link.js +49 -28
  195. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  196. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +124 -66
  197. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  198. package/dist/collection/components/ic-menu/ic-menu.js +136 -74
  199. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  200. package/dist/collection/components/ic-menu/ic-menu.types.js.map +1 -1
  201. package/dist/collection/components/ic-menu-group/ic-menu-group.js +4 -5
  202. package/dist/collection/components/ic-menu-group/ic-menu-group.js.map +1 -1
  203. package/dist/collection/components/ic-menu-item/ic-menu-item.js +53 -28
  204. package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
  205. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +44 -23
  206. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  207. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +83 -28
  208. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  209. package/dist/collection/components/ic-navigation-group/ic-navigation-group.types.js +2 -0
  210. package/dist/collection/components/ic-navigation-group/ic-navigation-group.types.js.map +1 -0
  211. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +107 -63
  212. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  213. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +30 -17
  214. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  215. package/dist/collection/components/ic-page-header/ic-page-header.js +68 -31
  216. package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
  217. package/dist/collection/components/ic-pagination/ic-pagination.js +100 -44
  218. package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
  219. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +48 -22
  220. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js.map +1 -1
  221. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +80 -52
  222. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  223. package/dist/collection/components/ic-radio-group/ic-radio-group.js +87 -41
  224. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  225. package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +31 -0
  226. package/dist/collection/components/ic-radio-option/ic-radio-option.css +20 -0
  227. package/dist/collection/components/ic-radio-option/ic-radio-option.js +64 -33
  228. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  229. package/dist/collection/components/ic-search-bar/ic-search-bar.js +252 -101
  230. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  231. package/dist/collection/components/ic-search-bar/ic-search-bar.types.js.map +1 -1
  232. package/dist/collection/components/ic-section-container/ic-section-container.js +15 -5
  233. package/dist/collection/components/ic-section-container/ic-section-container.js.map +1 -1
  234. package/dist/collection/components/ic-select/ic-select.css +1 -1
  235. package/dist/collection/components/ic-select/ic-select.js +329 -176
  236. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  237. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +1 -2
  238. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +143 -89
  239. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  240. package/dist/collection/components/ic-skeleton/ic-skeleton.js +14 -4
  241. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
  242. package/dist/collection/components/ic-skip-link/ic-skip-link.css +26 -0
  243. package/dist/collection/components/ic-skip-link/ic-skip-link.js +202 -0
  244. package/dist/collection/components/ic-skip-link/ic-skip-link.js.map +1 -0
  245. package/dist/collection/components/ic-skip-link/ic-skip-link.stories.js +160 -0
  246. package/dist/collection/components/ic-status-tag/ic-status-tag.js +41 -9
  247. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
  248. package/dist/collection/components/ic-step/ic-step.js +66 -40
  249. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  250. package/dist/collection/components/ic-stepper/ic-stepper.js +61 -37
  251. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  252. package/dist/collection/components/ic-switch/ic-switch.js +72 -27
  253. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  254. package/dist/collection/components/ic-tab/ic-tab.js +40 -21
  255. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  256. package/dist/collection/components/ic-tab-context/ic-tab-context.js +60 -31
  257. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  258. package/dist/collection/components/ic-tab-group/ic-tab-group.js +21 -9
  259. package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
  260. package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +5 -1
  261. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +50 -14
  262. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
  263. package/dist/collection/components/ic-text-field/ic-text-field.js +321 -140
  264. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  265. package/dist/collection/components/ic-theme/ic-theme.js +19 -9
  266. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
  267. package/dist/collection/components/ic-toast/ic-toast.js +49 -28
  268. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  269. package/dist/collection/components/ic-toast-region/ic-toast-region.js +6 -5
  270. package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -1
  271. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +116 -60
  272. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js.map +1 -1
  273. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +90 -35
  274. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js.map +1 -1
  275. package/dist/collection/components/ic-tooltip/ic-tooltip.js +65 -33
  276. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  277. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +91 -45
  278. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  279. package/dist/collection/components/ic-typography/ic-typography.js +73 -32
  280. package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
  281. package/dist/collection/utils/helpers.js +29 -24
  282. package/dist/collection/utils/helpers.js.map +1 -1
  283. package/dist/collection/utils/testa11y.helpers.js +2 -1
  284. package/dist/collection/utils/testa11y.helpers.js.map +1 -1
  285. package/dist/collection/utils/types.js.map +1 -1
  286. package/dist/components/helpers.js +29 -24
  287. package/dist/components/helpers.js.map +1 -1
  288. package/dist/components/ic-accordion-group.js +29 -12
  289. package/dist/components/ic-accordion-group.js.map +1 -1
  290. package/dist/components/ic-accordion.js +63 -40
  291. package/dist/components/ic-accordion.js.map +1 -1
  292. package/dist/components/ic-alert.js +35 -14
  293. package/dist/components/ic-alert.js.map +1 -1
  294. package/dist/components/ic-back-to-top.js +28 -13
  295. package/dist/components/ic-back-to-top.js.map +1 -1
  296. package/dist/components/ic-badge.js +39 -20
  297. package/dist/components/ic-badge.js.map +1 -1
  298. package/dist/components/ic-breadcrumb-group.js +51 -35
  299. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  300. package/dist/components/ic-breadcrumb2.js +33 -19
  301. package/dist/components/ic-breadcrumb2.js.map +1 -1
  302. package/dist/components/ic-button2.js +113 -63
  303. package/dist/components/ic-button2.js.map +1 -1
  304. package/dist/components/ic-card-vertical.js +51 -30
  305. package/dist/components/ic-card-vertical.js.map +1 -1
  306. package/dist/components/ic-checkbox-group.js +30 -7
  307. package/dist/components/ic-checkbox-group.js.map +1 -1
  308. package/dist/components/ic-checkbox.js +46 -27
  309. package/dist/components/ic-checkbox.js.map +1 -1
  310. package/dist/components/ic-chip.js +42 -21
  311. package/dist/components/ic-chip.js.map +1 -1
  312. package/dist/components/ic-classification-banner.js +19 -3
  313. package/dist/components/ic-classification-banner.js.map +1 -1
  314. package/dist/components/ic-data-list.js +10 -4
  315. package/dist/components/ic-data-list.js.map +1 -1
  316. package/dist/components/ic-data-row.js +27 -17
  317. package/dist/components/ic-data-row.js.map +1 -1
  318. package/dist/components/ic-dialog.js +139 -96
  319. package/dist/components/ic-dialog.js.map +1 -1
  320. package/dist/components/ic-divider2.js +33 -13
  321. package/dist/components/ic-divider2.js.map +1 -1
  322. package/dist/components/ic-empty-state.js +13 -7
  323. package/dist/components/ic-empty-state.js.map +1 -1
  324. package/dist/components/ic-footer-link-group.js +6 -6
  325. package/dist/components/ic-footer-link-group.js.map +1 -1
  326. package/dist/components/ic-footer-link.js +7 -8
  327. package/dist/components/ic-footer-link.js.map +1 -1
  328. package/dist/components/ic-footer.js +31 -18
  329. package/dist/components/ic-footer.js.map +1 -1
  330. package/dist/components/ic-hero.js +27 -15
  331. package/dist/components/ic-hero.js.map +1 -1
  332. package/dist/components/ic-horizontal-scroll2.js +30 -18
  333. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  334. package/dist/components/ic-input-component-container2.js +31 -9
  335. package/dist/components/ic-input-component-container2.js.map +1 -1
  336. package/dist/components/ic-input-container2.js +12 -5
  337. package/dist/components/ic-input-container2.js.map +1 -1
  338. package/dist/components/ic-input-label2.js +28 -8
  339. package/dist/components/ic-input-label2.js.map +1 -1
  340. package/dist/components/ic-input-validation2.js +15 -7
  341. package/dist/components/ic-input-validation2.js.map +1 -1
  342. package/dist/components/ic-link2.js +26 -19
  343. package/dist/components/ic-link2.js.map +1 -1
  344. package/dist/components/ic-loading-indicator2.js +89 -54
  345. package/dist/components/ic-loading-indicator2.js.map +1 -1
  346. package/dist/components/ic-menu-group.js +3 -3
  347. package/dist/components/ic-menu-group.js.map +1 -1
  348. package/dist/components/ic-menu-item2.js +18 -16
  349. package/dist/components/ic-menu-item2.js.map +1 -1
  350. package/dist/components/ic-menu2.js +81 -52
  351. package/dist/components/ic-menu2.js.map +1 -1
  352. package/dist/components/ic-navigation-button.js +23 -17
  353. package/dist/components/ic-navigation-button.js.map +1 -1
  354. package/dist/components/ic-navigation-group.js +45 -27
  355. package/dist/components/ic-navigation-group.js.map +1 -1
  356. package/dist/components/ic-navigation-item.js +68 -47
  357. package/dist/components/ic-navigation-item.js.map +1 -1
  358. package/dist/components/ic-navigation-menu2.js +21 -13
  359. package/dist/components/ic-navigation-menu2.js.map +1 -1
  360. package/dist/components/ic-page-header.js +44 -24
  361. package/dist/components/ic-page-header.js.map +1 -1
  362. package/dist/components/ic-pagination-item2.js +25 -12
  363. package/dist/components/ic-pagination-item2.js.map +1 -1
  364. package/dist/components/ic-pagination.js +58 -25
  365. package/dist/components/ic-pagination.js.map +1 -1
  366. package/dist/components/ic-popover-menu.js +55 -40
  367. package/dist/components/ic-popover-menu.js.map +1 -1
  368. package/dist/components/ic-radio-group.js +51 -26
  369. package/dist/components/ic-radio-group.js.map +1 -1
  370. package/dist/components/ic-radio-option.js +34 -22
  371. package/dist/components/ic-radio-option.js.map +1 -1
  372. package/dist/components/ic-search-bar.js +151 -61
  373. package/dist/components/ic-search-bar.js.map +1 -1
  374. package/dist/components/ic-section-container2.js +11 -4
  375. package/dist/components/ic-section-container2.js.map +1 -1
  376. package/dist/components/ic-select.js +228 -134
  377. package/dist/components/ic-select.js.map +1 -1
  378. package/dist/components/ic-side-navigation.js +103 -70
  379. package/dist/components/ic-side-navigation.js.map +1 -1
  380. package/dist/components/ic-skeleton.js +10 -3
  381. package/dist/components/ic-skeleton.js.map +1 -1
  382. package/dist/components/ic-skip-link.d.ts +11 -0
  383. package/dist/components/ic-skip-link.js +82 -0
  384. package/dist/components/ic-skip-link.js.map +1 -0
  385. package/dist/components/ic-status-tag.js +23 -4
  386. package/dist/components/ic-status-tag.js.map +1 -1
  387. package/dist/components/ic-step.js +31 -30
  388. package/dist/components/ic-step.js.map +1 -1
  389. package/dist/components/ic-stepper.js +48 -33
  390. package/dist/components/ic-stepper.js.map +1 -1
  391. package/dist/components/ic-switch.js +48 -20
  392. package/dist/components/ic-switch.js.map +1 -1
  393. package/dist/components/ic-tab-context.js +44 -25
  394. package/dist/components/ic-tab-context.js.map +1 -1
  395. package/dist/components/ic-tab-group.js +12 -7
  396. package/dist/components/ic-tab-group.js.map +1 -1
  397. package/dist/components/ic-tab-panel.js +16 -11
  398. package/dist/components/ic-tab-panel.js.map +1 -1
  399. package/dist/components/ic-tab.js +19 -13
  400. package/dist/components/ic-tab.js.map +1 -1
  401. package/dist/components/ic-text-field.js +173 -67
  402. package/dist/components/ic-text-field.js.map +1 -1
  403. package/dist/components/ic-theme.js +11 -5
  404. package/dist/components/ic-theme.js.map +1 -1
  405. package/dist/components/ic-toast-region.js +1 -2
  406. package/dist/components/ic-toast-region.js.map +1 -1
  407. package/dist/components/ic-toast.js +27 -19
  408. package/dist/components/ic-toast.js.map +1 -1
  409. package/dist/components/ic-toggle-button-group.js +59 -27
  410. package/dist/components/ic-toggle-button-group.js.map +1 -1
  411. package/dist/components/ic-toggle-button.js +79 -46
  412. package/dist/components/ic-toggle-button.js.map +1 -1
  413. package/dist/components/ic-tooltip2.js +42 -25
  414. package/dist/components/ic-tooltip2.js.map +1 -1
  415. package/dist/components/ic-top-navigation.js +59 -30
  416. package/dist/components/ic-top-navigation.js.map +1 -1
  417. package/dist/components/ic-typography2.js +51 -25
  418. package/dist/components/ic-typography2.js.map +1 -1
  419. package/dist/core/core.css +40 -29
  420. package/dist/core/core.esm.js +1 -1
  421. package/dist/core/core.esm.js.map +1 -1
  422. package/dist/core/index.esm.js.map +1 -1
  423. package/dist/core/p-052d1ff0.entry.js +2 -0
  424. package/dist/core/p-052d1ff0.entry.js.map +1 -0
  425. package/dist/core/p-08fbea60.entry.js +2 -0
  426. package/dist/core/p-08fbea60.entry.js.map +1 -0
  427. package/dist/core/p-0b757d78.entry.js +2 -0
  428. package/dist/core/p-0b757d78.entry.js.map +1 -0
  429. package/dist/core/p-0f34465d.entry.js +2 -0
  430. package/dist/core/p-0f34465d.entry.js.map +1 -0
  431. package/dist/core/p-111b3186.entry.js +2 -0
  432. package/dist/core/p-111b3186.entry.js.map +1 -0
  433. package/dist/core/p-144a31ec.entry.js +2 -0
  434. package/dist/core/p-144a31ec.entry.js.map +1 -0
  435. package/dist/core/{p-ca11666f.entry.js → p-180ea8ac.entry.js} +2 -2
  436. package/dist/core/p-180ea8ac.entry.js.map +1 -0
  437. package/dist/core/{p-39ab6387.entry.js → p-196e3d33.entry.js} +2 -2
  438. package/dist/core/p-196e3d33.entry.js.map +1 -0
  439. package/dist/core/{p-96b4ca6e.entry.js → p-1d6638c8.entry.js} +2 -2
  440. package/dist/core/p-1d6638c8.entry.js.map +1 -0
  441. package/dist/core/p-1d9a929b.entry.js +2 -0
  442. package/dist/core/p-1d9a929b.entry.js.map +1 -0
  443. package/dist/core/{p-27274ca8.entry.js → p-1fccec19.entry.js} +2 -2
  444. package/dist/core/p-1fccec19.entry.js.map +1 -0
  445. package/dist/core/p-269f841d.js +2 -0
  446. package/dist/core/p-269f841d.js.map +1 -0
  447. package/dist/core/{p-094f51b6.entry.js → p-27de359f.entry.js} +2 -2
  448. package/dist/core/p-27de359f.entry.js.map +1 -0
  449. package/dist/core/p-2cb55e86.entry.js +2 -0
  450. package/dist/core/p-2cb55e86.entry.js.map +1 -0
  451. package/dist/core/p-30a262d2.entry.js +2 -0
  452. package/dist/core/p-30a262d2.entry.js.map +1 -0
  453. package/dist/core/p-3b185c32.js.map +1 -1
  454. package/dist/core/{p-a178d53c.entry.js → p-40bc1f3e.entry.js} +2 -2
  455. package/dist/core/p-40bc1f3e.entry.js.map +1 -0
  456. package/dist/core/p-426ec638.js.map +1 -1
  457. package/dist/core/p-47b46637.entry.js +2 -0
  458. package/dist/core/p-47b46637.entry.js.map +1 -0
  459. package/dist/core/p-4a5ab31e.entry.js +2 -0
  460. package/dist/core/p-4a5ab31e.entry.js.map +1 -0
  461. package/dist/core/p-4e4014cd.entry.js +2 -0
  462. package/dist/core/p-4e4014cd.entry.js.map +1 -0
  463. package/dist/core/{p-25d3c3a6.entry.js → p-55eb89cc.entry.js} +2 -2
  464. package/dist/core/p-55eb89cc.entry.js.map +1 -0
  465. package/dist/core/p-59287779.entry.js +2 -0
  466. package/dist/core/p-59287779.entry.js.map +1 -0
  467. package/dist/core/p-59fc58e1.entry.js +2 -0
  468. package/dist/core/p-59fc58e1.entry.js.map +1 -0
  469. package/dist/core/p-5b7d8ee9.entry.js +2 -0
  470. package/dist/core/p-5b7d8ee9.entry.js.map +1 -0
  471. package/dist/core/{p-b404b307.entry.js → p-5fa5ba50.entry.js} +2 -2
  472. package/dist/core/p-5fa5ba50.entry.js.map +1 -0
  473. package/dist/core/p-68a5aaff.js.map +1 -1
  474. package/dist/core/{p-bbd4f487.entry.js → p-6c8e72b4.entry.js} +2 -2
  475. package/dist/core/p-6c8e72b4.entry.js.map +1 -0
  476. package/dist/core/p-6fdb8a79.entry.js +2 -0
  477. package/dist/core/p-6fdb8a79.entry.js.map +1 -0
  478. package/dist/core/{p-146b2788.entry.js → p-72140621.entry.js} +2 -2
  479. package/dist/core/p-72140621.entry.js.map +1 -0
  480. package/dist/core/p-76bdbc98.entry.js +2 -0
  481. package/dist/core/p-76bdbc98.entry.js.map +1 -0
  482. package/dist/core/{p-4cfe1dd8.entry.js → p-78c3ca49.entry.js} +2 -2
  483. package/dist/core/p-78c3ca49.entry.js.map +1 -0
  484. package/dist/core/p-78c51cba.entry.js +2 -0
  485. package/dist/core/p-78c51cba.entry.js.map +1 -0
  486. package/dist/core/{p-3d565739.entry.js → p-7ea79205.entry.js} +2 -2
  487. package/dist/core/p-7ea79205.entry.js.map +1 -0
  488. package/dist/core/p-8577de91.entry.js +2 -0
  489. package/dist/core/p-8577de91.entry.js.map +1 -0
  490. package/dist/core/{p-26bc7c62.entry.js → p-8856dff4.entry.js} +2 -2
  491. package/dist/core/p-8856dff4.entry.js.map +1 -0
  492. package/dist/core/p-8870d5d8.entry.js +2 -0
  493. package/dist/core/p-8870d5d8.entry.js.map +1 -0
  494. package/dist/core/{p-00587c99.entry.js → p-8b928cc9.entry.js} +2 -2
  495. package/dist/core/p-8b928cc9.entry.js.map +1 -0
  496. package/dist/core/p-8d1bee7a.entry.js +2 -0
  497. package/dist/core/p-8d1bee7a.entry.js.map +1 -0
  498. package/dist/core/p-8e4e97b4.js +3 -0
  499. package/dist/core/p-8e4e97b4.js.map +1 -0
  500. package/dist/core/p-8f319e1e.entry.js +2 -0
  501. package/dist/core/p-8f319e1e.entry.js.map +1 -0
  502. package/dist/core/p-90de3f5d.entry.js +2 -0
  503. package/dist/core/p-90de3f5d.entry.js.map +1 -0
  504. package/dist/core/p-912c8594.entry.js +2 -0
  505. package/dist/core/p-912c8594.entry.js.map +1 -0
  506. package/dist/core/{p-67b3cd55.entry.js → p-9206379d.entry.js} +2 -2
  507. package/dist/core/p-9206379d.entry.js.map +1 -0
  508. package/dist/core/p-94748b96.entry.js +2 -0
  509. package/dist/core/p-94748b96.entry.js.map +1 -0
  510. package/dist/core/p-98f906ba.entry.js +2 -0
  511. package/dist/core/p-98f906ba.entry.js.map +1 -0
  512. package/dist/core/{p-5b836707.entry.js → p-999102ee.entry.js} +2 -2
  513. package/dist/core/p-999102ee.entry.js.map +1 -0
  514. package/dist/core/p-9b741f96.entry.js +2 -0
  515. package/dist/core/p-9b741f96.entry.js.map +1 -0
  516. package/dist/core/p-9bcd2c77.entry.js +2 -0
  517. package/dist/core/p-9bcd2c77.entry.js.map +1 -0
  518. package/dist/core/p-9ee2fe04.entry.js +2 -0
  519. package/dist/core/p-9ee2fe04.entry.js.map +1 -0
  520. package/dist/core/{p-e2cf6e7e.entry.js → p-a56ec6d8.entry.js} +2 -2
  521. package/dist/core/p-a56ec6d8.entry.js.map +1 -0
  522. package/dist/core/p-abf767e3.entry.js +2 -0
  523. package/dist/core/p-abf767e3.entry.js.map +1 -0
  524. package/dist/core/p-b594bf26.entry.js +2 -0
  525. package/dist/core/p-b594bf26.entry.js.map +1 -0
  526. package/dist/core/{p-6e94c79c.entry.js → p-bd802c2f.entry.js} +2 -2
  527. package/dist/core/p-bd802c2f.entry.js.map +1 -0
  528. package/dist/core/p-bfee1e84.entry.js +2 -0
  529. package/dist/core/p-bfee1e84.entry.js.map +1 -0
  530. package/dist/core/{p-7f984e25.entry.js → p-c19cdc86.entry.js} +2 -2
  531. package/dist/core/p-c19cdc86.entry.js.map +1 -0
  532. package/dist/core/p-c2e091d7.js.map +1 -1
  533. package/dist/core/{p-73d6092d.entry.js → p-c3785d57.entry.js} +2 -2
  534. package/dist/core/p-c3785d57.entry.js.map +1 -0
  535. package/dist/core/{p-7b26ef60.entry.js → p-caa46d81.entry.js} +2 -2
  536. package/dist/core/p-caa46d81.entry.js.map +1 -0
  537. package/dist/core/p-ce0fb53a.entry.js +2 -0
  538. package/dist/core/p-ce0fb53a.entry.js.map +1 -0
  539. package/dist/core/p-de7542fa.entry.js +2 -0
  540. package/dist/core/p-de7542fa.entry.js.map +1 -0
  541. package/dist/core/{p-07aaf9c4.entry.js → p-df56bc50.entry.js} +2 -2
  542. package/dist/core/p-df56bc50.entry.js.map +1 -0
  543. package/dist/core/p-e1255160.js +2 -0
  544. package/dist/core/p-e1255160.js.map +1 -0
  545. package/dist/core/p-e25feba1.entry.js +2 -0
  546. package/dist/core/p-e25feba1.entry.js.map +1 -0
  547. package/dist/core/{p-c1db155d.entry.js → p-e30c6d79.entry.js} +2 -2
  548. package/dist/core/p-e30c6d79.entry.js.map +1 -0
  549. package/dist/core/p-f074ef5b.js.map +1 -1
  550. package/dist/core/{p-abdc2912.entry.js → p-f486d4f4.entry.js} +2 -2
  551. package/dist/core/p-f486d4f4.entry.js.map +1 -0
  552. package/dist/core/{p-a87d13b3.entry.js → p-fbce5f9a.entry.js} +2 -2
  553. package/dist/core/p-fbce5f9a.entry.js.map +1 -0
  554. package/dist/esm/app-globals-0f993ce5.js +5 -0
  555. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  556. package/dist/esm/core.js +14 -12
  557. package/dist/esm/core.js.map +1 -1
  558. package/dist/esm/{helpers-a72a277b.js → helpers-de6293bf.js} +31 -26
  559. package/dist/esm/helpers-de6293bf.js.map +1 -0
  560. package/dist/esm/ic-accordion-group.entry.js +31 -14
  561. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  562. package/dist/esm/ic-accordion.entry.js +65 -42
  563. package/dist/esm/ic-accordion.entry.js.map +1 -1
  564. package/dist/esm/ic-alert.entry.js +37 -16
  565. package/dist/esm/ic-alert.entry.js.map +1 -1
  566. package/dist/esm/ic-back-to-top.entry.js +29 -15
  567. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  568. package/dist/esm/ic-badge.entry.js +41 -22
  569. package/dist/esm/ic-badge.entry.js.map +1 -1
  570. package/dist/esm/ic-breadcrumb-group.entry.js +53 -37
  571. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  572. package/dist/esm/ic-breadcrumb.entry.js +35 -21
  573. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  574. package/dist/esm/ic-button_3.entry.js +246 -144
  575. package/dist/esm/ic-button_3.entry.js.map +1 -1
  576. package/dist/esm/ic-card-vertical.entry.js +53 -32
  577. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  578. package/dist/esm/ic-checkbox-group.entry.js +32 -9
  579. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  580. package/dist/esm/ic-checkbox.entry.js +48 -29
  581. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  582. package/dist/esm/ic-chip.entry.js +44 -23
  583. package/dist/esm/ic-chip.entry.js.map +1 -1
  584. package/dist/esm/ic-classification-banner.entry.js +20 -4
  585. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  586. package/dist/esm/ic-data-list.entry.js +11 -5
  587. package/dist/esm/ic-data-list.entry.js.map +1 -1
  588. package/dist/esm/ic-data-row.entry.js +28 -18
  589. package/dist/esm/ic-data-row.entry.js.map +1 -1
  590. package/dist/esm/ic-dialog.entry.js +141 -98
  591. package/dist/esm/ic-dialog.entry.js.map +1 -1
  592. package/dist/esm/ic-divider.entry.js +35 -15
  593. package/dist/esm/ic-divider.entry.js.map +1 -1
  594. package/dist/esm/ic-empty-state.entry.js +15 -9
  595. package/dist/esm/ic-empty-state.entry.js.map +1 -1
  596. package/dist/esm/ic-footer-link-group.entry.js +8 -8
  597. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  598. package/dist/esm/ic-footer-link.entry.js +9 -10
  599. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  600. package/dist/esm/ic-footer.entry.js +32 -19
  601. package/dist/esm/ic-footer.entry.js.map +1 -1
  602. package/dist/esm/ic-hero.entry.js +29 -17
  603. package/dist/esm/ic-hero.entry.js.map +1 -1
  604. package/dist/esm/ic-horizontal-scroll.entry.js +32 -20
  605. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  606. package/dist/esm/ic-input-component-container_3.entry.js +126 -68
  607. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  608. package/dist/esm/ic-input-label_2.entry.js +45 -17
  609. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  610. package/dist/esm/ic-link.entry.js +28 -21
  611. package/dist/esm/ic-link.entry.js.map +1 -1
  612. package/dist/esm/ic-menu-group.entry.js +5 -5
  613. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  614. package/dist/esm/ic-menu-item.entry.js +20 -18
  615. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  616. package/dist/esm/ic-navigation-button.entry.js +25 -19
  617. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  618. package/dist/esm/ic-navigation-group.entry.js +45 -27
  619. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  620. package/dist/esm/ic-navigation-item.entry.js +69 -48
  621. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  622. package/dist/esm/ic-navigation-menu.entry.js +23 -15
  623. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  624. package/dist/esm/ic-page-header.entry.js +45 -25
  625. package/dist/esm/ic-page-header.entry.js.map +1 -1
  626. package/dist/esm/ic-pagination-item.entry.js +27 -14
  627. package/dist/esm/ic-pagination-item.entry.js.map +1 -1
  628. package/dist/esm/ic-pagination.entry.js +60 -27
  629. package/dist/esm/ic-pagination.entry.js.map +1 -1
  630. package/dist/esm/ic-popover-menu.entry.js +57 -42
  631. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  632. package/dist/esm/ic-radio-group.entry.js +53 -28
  633. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  634. package/dist/esm/ic-radio-option.entry.js +36 -24
  635. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  636. package/dist/esm/ic-search-bar.entry.js +153 -63
  637. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  638. package/dist/esm/ic-section-container.entry.js +12 -5
  639. package/dist/esm/ic-section-container.entry.js.map +1 -1
  640. package/dist/esm/ic-select.entry.js +230 -136
  641. package/dist/esm/ic-select.entry.js.map +1 -1
  642. package/dist/esm/ic-side-navigation.entry.js +104 -71
  643. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  644. package/dist/esm/ic-skeleton.entry.js +11 -4
  645. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  646. package/dist/esm/ic-skip-link.entry.js +50 -0
  647. package/dist/esm/ic-skip-link.entry.js.map +1 -0
  648. package/dist/esm/ic-status-tag.entry.js +25 -6
  649. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  650. package/dist/esm/ic-step.entry.js +33 -32
  651. package/dist/esm/ic-step.entry.js.map +1 -1
  652. package/dist/esm/ic-stepper.entry.js +50 -35
  653. package/dist/esm/ic-stepper.entry.js.map +1 -1
  654. package/dist/esm/ic-switch.entry.js +50 -22
  655. package/dist/esm/ic-switch.entry.js.map +1 -1
  656. package/dist/esm/ic-tab-context.entry.js +45 -26
  657. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  658. package/dist/esm/ic-tab-group.entry.js +14 -9
  659. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  660. package/dist/esm/ic-tab-panel.entry.js +16 -12
  661. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  662. package/dist/esm/ic-tab.entry.js +21 -15
  663. package/dist/esm/ic-tab.entry.js.map +1 -1
  664. package/dist/esm/ic-text-field.entry.js +175 -69
  665. package/dist/esm/ic-text-field.entry.js.map +1 -1
  666. package/dist/esm/ic-theme.entry.js +13 -7
  667. package/dist/esm/ic-theme.entry.js.map +1 -1
  668. package/dist/esm/ic-toast-region.entry.js +2 -3
  669. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  670. package/dist/esm/ic-toast.entry.js +29 -21
  671. package/dist/esm/ic-toast.entry.js.map +1 -1
  672. package/dist/esm/ic-toggle-button-group.entry.js +61 -29
  673. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  674. package/dist/esm/ic-toggle-button.entry.js +81 -48
  675. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  676. package/dist/esm/ic-top-navigation.entry.js +60 -31
  677. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  678. package/dist/esm/ic-typography.entry.js +53 -27
  679. package/dist/esm/ic-typography.entry.js.map +1 -1
  680. package/dist/esm/index-a7a720e7.js +2580 -0
  681. package/dist/esm/index-a7a720e7.js.map +1 -0
  682. package/dist/esm/loader.js +6 -4
  683. package/dist/esm/loader.js.map +1 -1
  684. package/dist/types/components/ic-accordion/ic-accordion.d.ts +3 -3
  685. package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +5 -5
  686. package/dist/types/components/ic-alert/ic-alert.d.ts +1 -1
  687. package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +6 -2
  688. package/dist/types/components/ic-back-to-top/ic-back-to-top.types.d.ts +1 -0
  689. package/dist/types/components/ic-badge/ic-badge.d.ts +1 -1
  690. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +1 -1
  691. package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +2 -2
  692. package/dist/types/components/ic-button/ic-button.d.ts +6 -6
  693. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +10 -10
  694. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +6 -6
  695. package/dist/types/components/ic-data-list/ic-data-list.d.ts +1 -1
  696. package/dist/types/components/ic-data-row/ic-data-row.d.ts +2 -2
  697. package/dist/types/components/ic-dialog/ic-dialog.d.ts +9 -6
  698. package/dist/types/components/ic-divider/ic-divider.d.ts +3 -3
  699. package/dist/types/components/ic-footer/ic-footer.d.ts +4 -4
  700. package/dist/types/components/ic-hero/ic-hero.d.ts +3 -3
  701. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +6 -6
  702. package/dist/types/components/ic-input-label/ic-input-label.d.ts +2 -2
  703. package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +4 -4
  704. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +2 -2
  705. package/dist/types/components/ic-menu/ic-menu.d.ts +10 -10
  706. package/dist/types/components/ic-menu/ic-menu.types.d.ts +1 -1
  707. package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +2 -2
  708. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +1 -1
  709. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +11 -4
  710. package/dist/types/components/ic-navigation-group/ic-navigation-group.types.d.ts +3 -0
  711. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +8 -8
  712. package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +3 -3
  713. package/dist/types/components/ic-pagination/ic-pagination.d.ts +9 -9
  714. package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +4 -4
  715. package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +4 -4
  716. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +8 -8
  717. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +6 -6
  718. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +12 -12
  719. package/dist/types/components/ic-search-bar/ic-search-bar.types.d.ts +1 -1
  720. package/dist/types/components/ic-select/ic-select.d.ts +20 -20
  721. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +12 -12
  722. package/dist/types/components/ic-skip-link/ic-skip-link.d.ts +33 -0
  723. package/dist/types/components/ic-stepper/ic-stepper.d.ts +1 -1
  724. package/dist/types/components/ic-switch/ic-switch.d.ts +1 -1
  725. package/dist/types/components/ic-tab/ic-tab.d.ts +2 -2
  726. package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +7 -1
  727. package/dist/types/components/ic-text-field/ic-text-field.d.ts +34 -33
  728. package/dist/types/components/ic-theme/ic-theme.d.ts +2 -2
  729. package/dist/types/components/ic-toast/ic-toast.d.ts +3 -3
  730. package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +1 -1
  731. package/dist/types/components/ic-toggle-button/ic-toggle-button.d.ts +3 -3
  732. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +9 -9
  733. package/dist/types/components/ic-typography/ic-typography.d.ts +1 -1
  734. package/dist/types/components.d.ts +292 -197
  735. package/dist/types/stencil-public-runtime.d.ts +9 -10
  736. package/dist/types/utils/helpers.d.ts +10 -10
  737. package/dist/types/utils/types.d.ts +8 -4
  738. package/hydrate/index.d.ts +53 -12
  739. package/hydrate/index.js +32492 -20573
  740. package/hydrate/index.mjs +34265 -0
  741. package/hydrate/package.json +7 -1
  742. package/loader/cdn.js +1 -3
  743. package/loader/index.cjs.js +1 -3
  744. package/loader/index.d.ts +3 -0
  745. package/loader/index.es2017.js +1 -3
  746. package/loader/index.js +1 -3
  747. package/package.json +3 -3
  748. package/vscode-data.json +65 -330
  749. package/dist/cjs/helpers-eca4c27e.js.map +0 -1
  750. package/dist/cjs/index-f982899d.js +0 -3047
  751. package/dist/cjs/index-f982899d.js.map +0 -1
  752. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js +0 -349
  753. package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js.map +0 -1
  754. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js +0 -129
  755. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js.map +0 -1
  756. package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js +0 -329
  757. package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +0 -1
  758. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js +0 -145
  759. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +0 -1
  760. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +0 -450
  761. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +0 -1
  762. package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js +0 -162
  763. package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js.map +0 -1
  764. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js +0 -219
  765. package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js.map +0 -1
  766. package/dist/collection/components/ic-button/test/basic/ic-button.spec.js +0 -332
  767. package/dist/collection/components/ic-button/test/basic/ic-button.spec.js.map +0 -1
  768. package/dist/collection/components/ic-card-vertical/test/basic/ic-card-vertical.spec.js +0 -214
  769. package/dist/collection/components/ic-card-vertical/test/basic/ic-card-vertical.spec.js.map +0 -1
  770. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js +0 -284
  771. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +0 -1
  772. package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js +0 -188
  773. package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js.map +0 -1
  774. package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js +0 -188
  775. package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js.map +0 -1
  776. package/dist/collection/components/ic-data-list/test/basic/ic-data-list.spec.js +0 -161
  777. package/dist/collection/components/ic-data-list/test/basic/ic-data-list.spec.js.map +0 -1
  778. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js +0 -74
  779. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js.map +0 -1
  780. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js +0 -448
  781. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +0 -1
  782. package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js +0 -109
  783. package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js.map +0 -1
  784. package/dist/collection/components/ic-empty-state/test/basic/ic-empty-state.spec.js +0 -101
  785. package/dist/collection/components/ic-empty-state/test/basic/ic-empty-state.spec.js.map +0 -1
  786. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js +0 -181
  787. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +0 -1
  788. package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js +0 -46
  789. package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js.map +0 -1
  790. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js +0 -66
  791. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +0 -1
  792. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js +0 -109
  793. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +0 -1
  794. package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js +0 -223
  795. package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js.map +0 -1
  796. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js +0 -172
  797. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +0 -1
  798. package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js +0 -38
  799. package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js.map +0 -1
  800. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js +0 -84
  801. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +0 -1
  802. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js +0 -89
  803. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js.map +0 -1
  804. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js +0 -120
  805. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +0 -1
  806. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js +0 -149
  807. package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js.map +0 -1
  808. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js +0 -1108
  809. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +0 -1
  810. package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js +0 -94
  811. package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js.map +0 -1
  812. package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js +0 -121
  813. package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js.map +0 -1
  814. package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js +0 -95
  815. package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js.map +0 -1
  816. package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js +0 -309
  817. package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js.map +0 -1
  818. package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js +0 -130
  819. package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js.map +0 -1
  820. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js +0 -176
  821. package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js.map +0 -1
  822. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js +0 -291
  823. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js.map +0 -1
  824. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js +0 -390
  825. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +0 -1
  826. package/dist/collection/components/ic-pagination-item/test/basic/ic-pagination-item.spec.js +0 -79
  827. package/dist/collection/components/ic-pagination-item/test/basic/ic-pagination-item.spec.js.map +0 -1
  828. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js +0 -398
  829. package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js.map +0 -1
  830. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +0 -389
  831. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +0 -1
  832. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js +0 -553
  833. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +0 -1
  834. package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js +0 -69
  835. package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js.map +0 -1
  836. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js +0 -1672
  837. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +0 -1
  838. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js +0 -503
  839. package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +0 -1
  840. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js +0 -89
  841. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js.map +0 -1
  842. package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js +0 -26
  843. package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js.map +0 -1
  844. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js +0 -176
  845. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js.map +0 -1
  846. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js +0 -752
  847. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +0 -1
  848. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js +0 -93
  849. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +0 -1
  850. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js +0 -175
  851. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +0 -1
  852. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js +0 -390
  853. package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js.map +0 -1
  854. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js +0 -50
  855. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js.map +0 -1
  856. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js +0 -312
  857. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +0 -1
  858. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js +0 -341
  859. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +0 -1
  860. package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js +0 -72
  861. package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js.map +0 -1
  862. package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js +0 -79
  863. package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js.map +0 -1
  864. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +0 -314
  865. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +0 -1
  866. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js +0 -64
  867. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js.map +0 -1
  868. package/dist/collection/components/ic-toggle-button/test/basic/ic-toggle-button.spec.js +0 -126
  869. package/dist/collection/components/ic-toggle-button/test/basic/ic-toggle-button.spec.js.map +0 -1
  870. package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js +0 -337
  871. package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js.map +0 -1
  872. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js +0 -321
  873. package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js.map +0 -1
  874. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js +0 -314
  875. package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js.map +0 -1
  876. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js +0 -407
  877. package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +0 -1
  878. package/dist/collection/testspec.setup.js +0 -77
  879. package/dist/collection/testspec.setup.js.map +0 -1
  880. package/dist/core/p-00587c99.entry.js.map +0 -1
  881. package/dist/core/p-07aaf9c4.entry.js.map +0 -1
  882. package/dist/core/p-094f51b6.entry.js.map +0 -1
  883. package/dist/core/p-146b2788.entry.js.map +0 -1
  884. package/dist/core/p-15082ea5.entry.js +0 -2
  885. package/dist/core/p-15082ea5.entry.js.map +0 -1
  886. package/dist/core/p-174de9d7.entry.js +0 -2
  887. package/dist/core/p-174de9d7.entry.js.map +0 -1
  888. package/dist/core/p-17f9921d.entry.js +0 -2
  889. package/dist/core/p-17f9921d.entry.js.map +0 -1
  890. package/dist/core/p-246ea059.entry.js +0 -2
  891. package/dist/core/p-246ea059.entry.js.map +0 -1
  892. package/dist/core/p-25d3c3a6.entry.js.map +0 -1
  893. package/dist/core/p-26bc7c62.entry.js.map +0 -1
  894. package/dist/core/p-27274ca8.entry.js.map +0 -1
  895. package/dist/core/p-39ab6387.entry.js.map +0 -1
  896. package/dist/core/p-3d565739.entry.js.map +0 -1
  897. package/dist/core/p-3ea4a005.entry.js +0 -2
  898. package/dist/core/p-3ea4a005.entry.js.map +0 -1
  899. package/dist/core/p-41b7c67c.entry.js +0 -2
  900. package/dist/core/p-41b7c67c.entry.js.map +0 -1
  901. package/dist/core/p-4572b2ba.entry.js +0 -2
  902. package/dist/core/p-4572b2ba.entry.js.map +0 -1
  903. package/dist/core/p-4cfe1dd8.entry.js.map +0 -1
  904. package/dist/core/p-5b836707.entry.js.map +0 -1
  905. package/dist/core/p-67b3cd55.entry.js.map +0 -1
  906. package/dist/core/p-67b8a829.entry.js +0 -2
  907. package/dist/core/p-67b8a829.entry.js.map +0 -1
  908. package/dist/core/p-6b5e91e2.js +0 -3
  909. package/dist/core/p-6b5e91e2.js.map +0 -1
  910. package/dist/core/p-6dfa5a4b.entry.js +0 -2
  911. package/dist/core/p-6dfa5a4b.entry.js.map +0 -1
  912. package/dist/core/p-6e94c79c.entry.js.map +0 -1
  913. package/dist/core/p-73d6092d.entry.js.map +0 -1
  914. package/dist/core/p-770c52a7.entry.js +0 -2
  915. package/dist/core/p-770c52a7.entry.js.map +0 -1
  916. package/dist/core/p-7b26ef60.entry.js.map +0 -1
  917. package/dist/core/p-7f984e25.entry.js.map +0 -1
  918. package/dist/core/p-86caada0.entry.js +0 -2
  919. package/dist/core/p-86caada0.entry.js.map +0 -1
  920. package/dist/core/p-8c03b8b5.entry.js +0 -2
  921. package/dist/core/p-8c03b8b5.entry.js.map +0 -1
  922. package/dist/core/p-8fdb9b16.entry.js +0 -2
  923. package/dist/core/p-8fdb9b16.entry.js.map +0 -1
  924. package/dist/core/p-91a221b5.entry.js +0 -2
  925. package/dist/core/p-91a221b5.entry.js.map +0 -1
  926. package/dist/core/p-96b4ca6e.entry.js.map +0 -1
  927. package/dist/core/p-9e0c2c19.entry.js +0 -2
  928. package/dist/core/p-9e0c2c19.entry.js.map +0 -1
  929. package/dist/core/p-9f569f90.entry.js +0 -2
  930. package/dist/core/p-9f569f90.entry.js.map +0 -1
  931. package/dist/core/p-a178d53c.entry.js.map +0 -1
  932. package/dist/core/p-a3b7a147.entry.js +0 -2
  933. package/dist/core/p-a3b7a147.entry.js.map +0 -1
  934. package/dist/core/p-a72685f6.entry.js +0 -2
  935. package/dist/core/p-a72685f6.entry.js.map +0 -1
  936. package/dist/core/p-a87d13b3.entry.js.map +0 -1
  937. package/dist/core/p-abdc2912.entry.js.map +0 -1
  938. package/dist/core/p-b260b967.entry.js +0 -2
  939. package/dist/core/p-b260b967.entry.js.map +0 -1
  940. package/dist/core/p-b404b307.entry.js.map +0 -1
  941. package/dist/core/p-b6ce9ca3.entry.js +0 -2
  942. package/dist/core/p-b6ce9ca3.entry.js.map +0 -1
  943. package/dist/core/p-b6e010f3.entry.js +0 -2
  944. package/dist/core/p-b6e010f3.entry.js.map +0 -1
  945. package/dist/core/p-bbd4f487.entry.js.map +0 -1
  946. package/dist/core/p-bd9f3961.entry.js +0 -2
  947. package/dist/core/p-bd9f3961.entry.js.map +0 -1
  948. package/dist/core/p-c1db155d.entry.js.map +0 -1
  949. package/dist/core/p-c7bcdb8e.entry.js +0 -2
  950. package/dist/core/p-c7bcdb8e.entry.js.map +0 -1
  951. package/dist/core/p-ca11666f.entry.js.map +0 -1
  952. package/dist/core/p-cda4aca9.js +0 -2
  953. package/dist/core/p-cda4aca9.js.map +0 -1
  954. package/dist/core/p-d0afa458.entry.js +0 -2
  955. package/dist/core/p-d0afa458.entry.js.map +0 -1
  956. package/dist/core/p-d8690838.entry.js +0 -2
  957. package/dist/core/p-d8690838.entry.js.map +0 -1
  958. package/dist/core/p-dededae6.entry.js +0 -2
  959. package/dist/core/p-dededae6.entry.js.map +0 -1
  960. package/dist/core/p-df957570.entry.js +0 -2
  961. package/dist/core/p-df957570.entry.js.map +0 -1
  962. package/dist/core/p-e2cf6e7e.entry.js.map +0 -1
  963. package/dist/core/p-e6189634.entry.js +0 -2
  964. package/dist/core/p-e6189634.entry.js.map +0 -1
  965. package/dist/core/p-e6dc3cd1.entry.js +0 -2
  966. package/dist/core/p-e6dc3cd1.entry.js.map +0 -1
  967. package/dist/core/p-e831277e.entry.js +0 -2
  968. package/dist/core/p-e831277e.entry.js.map +0 -1
  969. package/dist/core/p-eb7c589b.entry.js +0 -2
  970. package/dist/core/p-eb7c589b.entry.js.map +0 -1
  971. package/dist/core/p-f65179fe.entry.js +0 -2
  972. package/dist/core/p-f65179fe.entry.js.map +0 -1
  973. package/dist/core/p-fd60eef7.entry.js +0 -2
  974. package/dist/core/p-fd60eef7.entry.js.map +0 -1
  975. package/dist/core/p-fd9f3fd0.entry.js +0 -2
  976. package/dist/core/p-fd9f3fd0.entry.js.map +0 -1
  977. package/dist/esm/helpers-a72a277b.js.map +0 -1
  978. package/dist/esm/index-d1d2c456.js +0 -3016
  979. package/dist/esm/index-d1d2c456.js.map +0 -1
  980. package/dist/esm/polyfills/core-js.js +0 -11
  981. package/dist/esm/polyfills/dom.js +0 -79
  982. package/dist/esm/polyfills/es5-html-element.js +0 -1
  983. package/dist/esm/polyfills/index.js +0 -34
  984. package/dist/esm/polyfills/system.js +0 -6
  985. package/dist/types/testspec.setup.d.ts +0 -24
@@ -8,6 +8,38 @@ export class Typography {
8
8
  this.lastWidth = 0;
9
9
  this.resizeObserver = null;
10
10
  this.truncatedHeight = 0;
11
+ this.truncated = false;
12
+ this.truncButtonFocussed = false;
13
+ /**
14
+ * If `true`, appropriate top and bottom margins will be applied to the typography.
15
+ */
16
+ this.applyVerticalMargins = false;
17
+ /**
18
+ * If `true`, the typography will have a bold font weight.
19
+ * Note: This will have no impact on variants that already use an equivalent or higher font weight (h1, h2, and subtitle-large).
20
+ */
21
+ this.bold = false;
22
+ /**
23
+ * If `true`, the typography will have an italic font style.
24
+ */
25
+ this.italic = false;
26
+ /**
27
+ * If `true`, the typography will have a line through it.
28
+ */
29
+ this.strikethrough = false;
30
+ /**
31
+ * Sets the text color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
32
+ */
33
+ this.theme = "inherit";
34
+ /**
35
+ * If `true`, the typography will have a line under it.
36
+ */
37
+ this.underline = false;
38
+ /**
39
+ * The ICDS typography style to use.
40
+ */
41
+ this.variant = "body";
42
+ this.expanded = false;
11
43
  this.toggleExpanded = (ev) => {
12
44
  ev.stopPropagation();
13
45
  this.expanded = !this.expanded;
@@ -31,11 +63,13 @@ export class Typography {
31
63
  : 0;
32
64
  };
33
65
  this.runResizeObserver = () => {
34
- this.resizeObserver = new ResizeObserver(() => {
35
- clearTimeout(this.resizeInterval);
36
- this.resizeInterval = window.setTimeout(this.resizeObserverCallback, 50);
37
- });
38
- this.resizeObserver.observe(this.truncWrapperEl);
66
+ if (this.truncWrapperEl) {
67
+ this.resizeObserver = new ResizeObserver(() => {
68
+ clearTimeout(this.resizeInterval);
69
+ this.resizeInterval = window.setTimeout(this.resizeObserverCallback, 50);
70
+ });
71
+ this.resizeObserver.observe(this.truncWrapperEl);
72
+ }
39
73
  };
40
74
  this.resizeObserverCallback = () => {
41
75
  if (this.lastWidth === this.el.clientWidth) {
@@ -65,17 +99,6 @@ export class Typography {
65
99
  this.truncButtonFocusFromMouse = () => {
66
100
  this.focusBtnFromKeyboard = false;
67
101
  };
68
- this.truncated = false;
69
- this.truncButtonFocussed = false;
70
- this.applyVerticalMargins = false;
71
- this.bold = false;
72
- this.italic = false;
73
- this.maxLines = undefined;
74
- this.strikethrough = false;
75
- this.theme = "inherit";
76
- this.underline = false;
77
- this.variant = "body";
78
- this.expanded = false;
79
102
  }
80
103
  watchExpandedHandler() {
81
104
  this.el.setAttribute("style", `--truncation-max-lines: ${this.expanded ? "initial" : this.maxLines}`);
@@ -102,6 +125,7 @@ export class Typography {
102
125
  if ((this.variant === "body" ||
103
126
  ((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===
104
127
  "IC-TOOLTIP") &&
128
+ this.maxLines &&
105
129
  this.maxLines > 0) {
106
130
  const marker = document.createElement("span");
107
131
  marker.style.visibility = "hidden";
@@ -124,7 +148,7 @@ export class Typography {
124
148
  async checkMaxLines(height) {
125
149
  //24 is the height of a single line
126
150
  const numLines = Math.floor(height / 24);
127
- if (numLines > this.maxLines) {
151
+ if (this.maxLines && numLines > this.maxLines) {
128
152
  this.el.setAttribute("style", `--truncation-max-lines: ${this.maxLines}`);
129
153
  this.truncatedHeight = this.el.clientHeight;
130
154
  this.truncated = true;
@@ -139,19 +163,20 @@ export class Typography {
139
163
  render() {
140
164
  var _a, _b;
141
165
  const { variant, applyVerticalMargins, maxLines, truncated, expanded, strikethrough, underline, italic, bold, theme, } = this;
142
- return (h(Host, { class: {
166
+ return (h(Host, { key: 'ee6df08007125834627adfc7ed7324401aa47fe5', class: {
143
167
  [`ic-typography-${variant}`]: true,
144
- [`ic-typography-vertical-margins-${variant}`]: applyVerticalMargins,
145
- ["ic-typography-bold"]: bold,
146
- ["ic-typography-italic"]: italic,
147
- ["ic-typography-strikethrough"]: strikethrough,
148
- ["ic-typography-underline"]: underline,
168
+ [`ic-typography-vertical-margins-${variant}`]: !!applyVerticalMargins,
169
+ ["ic-typography-bold"]: !!bold,
170
+ ["ic-typography-italic"]: !!italic,
171
+ ["ic-typography-strikethrough"]: !!strikethrough,
172
+ ["ic-typography-underline"]: !!underline,
149
173
  ["in-ag-grid"]: this.inAGGrid,
150
174
  [`ic-theme-${theme}`]: theme !== "inherit",
151
175
  } }, (variant === "body" ||
152
176
  ((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===
153
177
  "IC-TOOLTIP") &&
154
- maxLines > 0 ? (h("div", { class: "trunc-wrapper", ref: (el) => (this.truncWrapperEl = el) }, h("slot", null))) : (h("slot", null)), variant === "body" && maxLines > 0 && truncated && (h("button", { class: { "trunc-btn": true, focus: this.truncButtonFocussed }, onFocus: this.truncButtonFocus, onBlur: this.truncButtonBlur, onMouseDown: this.truncButtonFocusFromMouse, onClick: this.toggleExpanded }, expanded ? "See less" : "See more"))));
178
+ maxLines &&
179
+ maxLines > 0 ? (h("div", { class: "trunc-wrapper", ref: (el) => (this.truncWrapperEl = el) }, h("slot", null))) : (h("slot", null)), variant === "body" && maxLines && maxLines > 0 && truncated && (h("button", { key: '486e675e7a7472d51c2d344575b7a603e2239a21', class: { "trunc-btn": true, focus: this.truncButtonFocussed }, onFocus: this.truncButtonFocus, onBlur: this.truncButtonBlur, onMouseDown: this.truncButtonFocusFromMouse, onClick: this.toggleExpanded }, expanded ? "See less" : "See more"))));
155
180
  }
156
181
  static get is() { return "ic-typography"; }
157
182
  static get encapsulation() { return "shadow"; }
@@ -172,7 +197,7 @@ export class Typography {
172
197
  "mutable": false,
173
198
  "complexType": {
174
199
  "original": "boolean",
175
- "resolved": "boolean",
200
+ "resolved": "boolean | undefined",
176
201
  "references": {}
177
202
  },
178
203
  "required": false,
@@ -181,6 +206,8 @@ export class Typography {
181
206
  "tags": [],
182
207
  "text": "If `true`, appropriate top and bottom margins will be applied to the typography."
183
208
  },
209
+ "getter": false,
210
+ "setter": false,
184
211
  "attribute": "apply-vertical-margins",
185
212
  "reflect": false,
186
213
  "defaultValue": "false"
@@ -190,7 +217,7 @@ export class Typography {
190
217
  "mutable": false,
191
218
  "complexType": {
192
219
  "original": "boolean",
193
- "resolved": "boolean",
220
+ "resolved": "boolean | undefined",
194
221
  "references": {}
195
222
  },
196
223
  "required": false,
@@ -199,6 +226,8 @@ export class Typography {
199
226
  "tags": [],
200
227
  "text": "If `true`, the typography will have a bold font weight.\nNote: This will have no impact on variants that already use an equivalent or higher font weight (h1, h2, and subtitle-large)."
201
228
  },
229
+ "getter": false,
230
+ "setter": false,
202
231
  "attribute": "bold",
203
232
  "reflect": false,
204
233
  "defaultValue": "false"
@@ -208,7 +237,7 @@ export class Typography {
208
237
  "mutable": false,
209
238
  "complexType": {
210
239
  "original": "boolean",
211
- "resolved": "boolean",
240
+ "resolved": "boolean | undefined",
212
241
  "references": {}
213
242
  },
214
243
  "required": false,
@@ -217,6 +246,8 @@ export class Typography {
217
246
  "tags": [],
218
247
  "text": "If `true`, the typography will have an italic font style."
219
248
  },
249
+ "getter": false,
250
+ "setter": false,
220
251
  "attribute": "italic",
221
252
  "reflect": false,
222
253
  "defaultValue": "false"
@@ -226,7 +257,7 @@ export class Typography {
226
257
  "mutable": true,
227
258
  "complexType": {
228
259
  "original": "number",
229
- "resolved": "number",
260
+ "resolved": "number | undefined",
230
261
  "references": {}
231
262
  },
232
263
  "required": false,
@@ -235,6 +266,8 @@ export class Typography {
235
266
  "tags": [],
236
267
  "text": "The number of lines to display before truncating the text, only used for the 'body' variant."
237
268
  },
269
+ "getter": false,
270
+ "setter": false,
238
271
  "attribute": "max-lines",
239
272
  "reflect": false
240
273
  },
@@ -243,7 +276,7 @@ export class Typography {
243
276
  "mutable": false,
244
277
  "complexType": {
245
278
  "original": "boolean",
246
- "resolved": "boolean",
279
+ "resolved": "boolean | undefined",
247
280
  "references": {}
248
281
  },
249
282
  "required": false,
@@ -252,6 +285,8 @@ export class Typography {
252
285
  "tags": [],
253
286
  "text": "If `true`, the typography will have a line through it."
254
287
  },
288
+ "getter": false,
289
+ "setter": false,
255
290
  "attribute": "strikethrough",
256
291
  "reflect": false,
257
292
  "defaultValue": "false"
@@ -261,7 +296,7 @@ export class Typography {
261
296
  "mutable": false,
262
297
  "complexType": {
263
298
  "original": "IcThemeMode",
264
- "resolved": "\"dark\" | \"inherit\" | \"light\"",
299
+ "resolved": "\"dark\" | \"inherit\" | \"light\" | undefined",
265
300
  "references": {
266
301
  "IcThemeMode": {
267
302
  "location": "import",
@@ -276,6 +311,8 @@ export class Typography {
276
311
  "tags": [],
277
312
  "text": "Sets the text color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component."
278
313
  },
314
+ "getter": false,
315
+ "setter": false,
279
316
  "attribute": "theme",
280
317
  "reflect": false,
281
318
  "defaultValue": "\"inherit\""
@@ -285,7 +322,7 @@ export class Typography {
285
322
  "mutable": false,
286
323
  "complexType": {
287
324
  "original": "boolean",
288
- "resolved": "boolean",
325
+ "resolved": "boolean | undefined",
289
326
  "references": {}
290
327
  },
291
328
  "required": false,
@@ -294,6 +331,8 @@ export class Typography {
294
331
  "tags": [],
295
332
  "text": "If `true`, the typography will have a line under it."
296
333
  },
334
+ "getter": false,
335
+ "setter": false,
297
336
  "attribute": "underline",
298
337
  "reflect": false,
299
338
  "defaultValue": "false"
@@ -303,7 +342,7 @@ export class Typography {
303
342
  "mutable": false,
304
343
  "complexType": {
305
344
  "original": "IcTypographyVariants",
306
- "resolved": "\"badge\" | \"badge-small\" | \"body\" | \"caption\" | \"caption-uppercase\" | \"code-extra-small\" | \"code-large\" | \"code-small\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"label\" | \"label-uppercase\" | \"subtitle-large\" | \"subtitle-small\"",
345
+ "resolved": "\"badge\" | \"badge-small\" | \"body\" | \"caption\" | \"caption-uppercase\" | \"code-extra-small\" | \"code-large\" | \"code-small\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"label\" | \"label-uppercase\" | \"subtitle-large\" | \"subtitle-small\" | undefined",
307
346
  "references": {
308
347
  "IcTypographyVariants": {
309
348
  "location": "import",
@@ -318,6 +357,8 @@ export class Typography {
318
357
  "tags": [],
319
358
  "text": "The ICDS typography style to use."
320
359
  },
360
+ "getter": false,
361
+ "setter": false,
321
362
  "attribute": "variant",
322
363
  "reflect": false,
323
364
  "defaultValue": "\"body\""
@@ -1 +1 @@
1
- {"version":3,"file":"ic-typography.js","sourceRoot":"","sources":["../../../src/components/ic-typography/ic-typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,EACJ,KAAK,EACL,KAAK,EACL,MAAM,EACN,KAAK,GAEN,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOxE,MAAM,OAAO,UAAU;;QACb,yBAAoB,GAAY,IAAI,CAAC;QACrC,aAAQ,GAAY,KAAK,CAAC;QAC1B,kBAAa,GAAW,CAAC,CAAC;QAC1B,cAAS,GAAW,CAAC,CAAC;QAGtB,mBAAc,GAAmB,IAAI,CAAC;QACtC,oBAAe,GAAW,CAAC,CAAC;QA6G5B,mBAAc,GAAG,CAAC,EAAS,EAAE,EAAE;YACrC,EAAE,CAAC,eAAe,EAAE,CAAC;YAErB,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;YAC/B,IAAI,CAAC,gCAAgC,CAAC,IAAI,CAAC;gBACzC,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,YAAY,EAAE,IAAI,CA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,GAAG,CAAC,CAAC,CAAC,CAAC,CACb,WAAK,KAAK,EAAC,eAAe,EAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;gBAChE,eAAQ,CACJ,CACP,CAAC,CAAC,CAAC,CACF,eAAQ,CACT;YACA,OAAO,KAAK,MAAM,IAAI,QAAQ,GAAG,CAAC,IAAI,SAAS,IAAI,CAClD,cACE,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,EAC7D,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAC9B,MAAM,EAAE,IAAI,CAAC,eAAe,EAC5B,WAAW,EAAE,IAAI,CAAC,yBAAyB,EAC3C,OAAO,EAAE,IAAI,CAAC,cAAc,IAE3B,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAC5B,CACV,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Prop,\n h,\n Element,\n Host,\n State,\n Watch,\n Method,\n Event,\n EventEmitter,\n} from \"@stencil/core\";\n\nimport { IcTypographyVariants, IcThemeMode } from \"../../utils/types\";\nimport { checkResizeObserver, isElInAGGrid } from \"../../utils/helpers\";\n\n@Component({\n styleUrl: \"ic-typography.css\",\n tag: \"ic-typography\",\n shadow: true,\n})\nexport class Typography {\n private focusBtnFromKeyboard: boolean = true;\n private inAGGrid: boolean = false;\n private lastMarkerTop: number = 0;\n private lastWidth: number = 0;\n private marker: HTMLElement;\n private resizeInterval: number;\n private resizeObserver: ResizeObserver = null;\n private truncatedHeight: number = 0;\n private truncWrapperEl: Element;\n\n @Element() el: HTMLIcTypographyElement;\n\n @State() truncated: boolean = false;\n @State() truncButtonFocussed: boolean = false;\n\n /**\n * If `true`, appropriate top and bottom margins will be applied to the typography.\n */\n @Prop() applyVerticalMargins?: boolean = false;\n\n /**\n * If `true`, the typography will have a bold font weight.\n * Note: This will have no impact on variants that already use an equivalent or higher font weight (h1, h2, and subtitle-large).\n */\n @Prop() bold?: boolean = false;\n\n /**\n * If `true`, the typography will have an italic font style.\n */\n @Prop() italic?: boolean = false;\n\n /**\n * The number of lines to display before truncating the text, only used for the 'body' variant.\n */\n @Prop({ mutable: true }) maxLines?: number;\n\n /**\n * If `true`, the typography will have a line through it.\n */\n @Prop() strikethrough?: boolean = false;\n\n /**\n * Sets the text color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n @Prop() theme?: IcThemeMode = \"inherit\";\n\n /**\n * If `true`, the typography will have a line under it.\n */\n @Prop() underline?: boolean = false;\n\n /**\n * The ICDS typography style to use.\n */\n @Prop() variant?: IcTypographyVariants = \"body\";\n\n /**\n * @internal Emits and event when the typography truncation button has been clicked.\n */\n @Event() typographyTruncationExpandToggle: EventEmitter<{\n expanded: boolean;\n typographyEl: HTMLIcTypographyElement;\n }>;\n\n @State() expanded: boolean = false;\n\n @Watch(\"expanded\")\n watchExpandedHandler(): void {\n this.el.setAttribute(\n \"style\",\n `--truncation-max-lines: ${this.expanded ? \"initial\" : this.maxLines}`\n );\n }\n\n disconnectedCallback(): void {\n if (this.resizeObserver !== null) {\n this.resizeObserver.disconnect();\n }\n }\n /**\n * @internal This is used by data table to remove all truncation in certain events\n */\n @Method()\n async resetTruncation() {\n if (this.truncated) {\n this.truncated = false;\n this.maxLines = 0;\n this.el.removeAttribute(\"max-lines\");\n this.expanded = false;\n this.el.removeAttribute(\"style\");\n }\n }\n\n componentDidLoad(): void {\n if (\n (this.variant === \"body\" ||\n (this.el.getRootNode() as ShadowRoot)?.host?.tagName ===\n \"IC-TOOLTIP\") &&\n this.maxLines > 0\n ) {\n const marker = document.createElement(\"span\");\n marker.style.visibility = \"hidden\";\n this.el.appendChild(marker);\n this.marker = marker;\n this.lastWidth = this.el.clientWidth;\n this.checkMaxLines(this.el.clientHeight);\n checkResizeObserver(this.runResizeObserver);\n }\n }\n\n componentWillRender(): void {\n if (isElInAGGrid(this.el)) {\n this.inAGGrid = true;\n }\n }\n\n private toggleExpanded = (ev: Event) => {\n ev.stopPropagation();\n\n this.expanded = !this.expanded;\n this.typographyTruncationExpandToggle.emit({\n expanded: this.expanded,\n typographyEl: this.el,\n });\n };\n\n /**\n * @internal This checks if the number of lines of text exceeds the maxLines prop. If so, set the line clamp CSS to the max lines\n * @param height - text container height\n */\n\n @Method()\n async checkMaxLines(height: number) {\n //24 is the height of a single line\n const numLines = Math.floor(height / 24);\n if (numLines > this.maxLines) {\n this.el.setAttribute(\"style\", `--truncation-max-lines: ${this.maxLines}`);\n this.truncatedHeight = this.el.clientHeight;\n this.truncated = true;\n }\n }\n\n /**\n * @internal This method makes it possible to set the expanded status of truncated text outside of ic-typography component\n */\n @Method()\n async setShowHideExpanded(expanded: boolean) {\n this.expanded = expanded;\n }\n\n private checkMarkerPosition = (elTop: number, markerTop: number) => {\n if (markerTop - elTop < this.truncatedHeight) {\n this.truncated = false;\n this.expanded = false;\n } else {\n this.truncated = true;\n }\n };\n\n private getElementTop = (el: HTMLElement) => {\n return el.getClientRects && el.getClientRects()[0]\n ? el.getClientRects()[0].top\n : 0;\n };\n\n private runResizeObserver = () => {\n this.resizeObserver = new ResizeObserver(() => {\n clearTimeout(this.resizeInterval);\n this.resizeInterval = window.setTimeout(this.resizeObserverCallback, 50);\n });\n this.resizeObserver.observe(this.truncWrapperEl);\n };\n\n private resizeObserverCallback = () => {\n if (this.lastWidth === this.el.clientWidth) {\n return;\n }\n\n if (this.truncatedHeight === 0) {\n this.checkMaxLines(this.el.clientHeight);\n return;\n }\n\n const markerTop = this.getElementTop(this.marker);\n if (markerTop === this.lastMarkerTop) {\n return;\n }\n\n this.checkMarkerPosition(this.getElementTop(this.el), markerTop);\n this.lastMarkerTop = markerTop;\n this.lastWidth = this.el.clientWidth;\n };\n\n private truncButtonFocus = (): void => {\n if (this.focusBtnFromKeyboard) {\n this.truncButtonFocussed = true;\n }\n };\n\n private truncButtonBlur = (): void => {\n this.focusBtnFromKeyboard = true;\n this.truncButtonFocussed = false;\n };\n\n private truncButtonFocusFromMouse = (): void => {\n this.focusBtnFromKeyboard = false;\n };\n\n render() {\n const {\n variant,\n applyVerticalMargins,\n maxLines,\n truncated,\n expanded,\n strikethrough,\n underline,\n italic,\n bold,\n theme,\n } = this;\n\n return (\n <Host\n class={{\n [`ic-typography-${variant}`]: true,\n [`ic-typography-vertical-margins-${variant}`]: applyVerticalMargins,\n [\"ic-typography-bold\"]: bold,\n [\"ic-typography-italic\"]: italic,\n [\"ic-typography-strikethrough\"]: strikethrough,\n [\"ic-typography-underline\"]: underline,\n [\"in-ag-grid\"]: this.inAGGrid,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n {(variant === \"body\" ||\n (this.el.getRootNode() as ShadowRoot)?.host?.tagName ===\n \"IC-TOOLTIP\") &&\n maxLines > 0 ? (\n <div class=\"trunc-wrapper\" ref={(el) => (this.truncWrapperEl = el)}>\n <slot />\n </div>\n ) : (\n <slot />\n )}\n {variant === \"body\" && maxLines > 0 && truncated && (\n <button\n class={{ \"trunc-btn\": true, focus: this.truncButtonFocussed }}\n onFocus={this.truncButtonFocus}\n onBlur={this.truncButtonBlur}\n onMouseDown={this.truncButtonFocusFromMouse}\n onClick={this.toggleExpanded}\n >\n {expanded ? \"See less\" : \"See more\"}\n </button>\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"ic-typography.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AAK,KAAK,EAAC,eAAe,EAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;gBAChE,eAAQ,CACJ,CACP,CAAC,CAAC,CAAC,CACF,eAAQ,CACT;YACA,OAAO,KAAK,MAAM,IAAI,QAAQ,IAAI,QAAQ,GAAG,CAAC,IAAI,SAAS,IAAI,CAC9D,+DACE,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,EAC7D,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAC9B,MAAM,EAAE,IAAI,CAAC,eAAe,EAC5B,WAAW,EAAE,IAAI,CAAC,yBAAyB,EAC3C,OAAO,EAAE,IAAI,CAAC,cAAc,IAE3B,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAC5B,CACV,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Prop,\n h,\n Element,\n Host,\n State,\n Watch,\n Method,\n Event,\n EventEmitter,\n} from \"@stencil/core\";\n\nimport { IcTypographyVariants, IcThemeMode } from \"../../utils/types\";\nimport { checkResizeObserver, isElInAGGrid } from \"../../utils/helpers\";\n\n@Component({\n styleUrl: \"ic-typography.css\",\n tag: \"ic-typography\",\n shadow: true,\n})\nexport class Typography {\n private focusBtnFromKeyboard: boolean = true;\n private inAGGrid: boolean = false;\n private lastMarkerTop: number = 0;\n private lastWidth: number = 0;\n private marker: HTMLElement;\n private resizeInterval: number;\n private resizeObserver: ResizeObserver | null = null;\n private truncatedHeight: number = 0;\n private truncWrapperEl?: Element;\n\n @Element() el: HTMLIcTypographyElement;\n\n @State() truncated: boolean = false;\n @State() truncButtonFocussed: boolean = false;\n\n /**\n * If `true`, appropriate top and bottom margins will be applied to the typography.\n */\n @Prop() applyVerticalMargins?: boolean = false;\n\n /**\n * If `true`, the typography will have a bold font weight.\n * Note: This will have no impact on variants that already use an equivalent or higher font weight (h1, h2, and subtitle-large).\n */\n @Prop() bold?: boolean = false;\n\n /**\n * If `true`, the typography will have an italic font style.\n */\n @Prop() italic?: boolean = false;\n\n /**\n * The number of lines to display before truncating the text, only used for the 'body' variant.\n */\n @Prop({ mutable: true }) maxLines?: number;\n\n /**\n * If `true`, the typography will have a line through it.\n */\n @Prop() strikethrough?: boolean = false;\n\n /**\n * Sets the text color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n @Prop() theme?: IcThemeMode = \"inherit\";\n\n /**\n * If `true`, the typography will have a line under it.\n */\n @Prop() underline?: boolean = false;\n\n /**\n * The ICDS typography style to use.\n */\n @Prop() variant?: IcTypographyVariants = \"body\";\n\n /**\n * @internal Emits and event when the typography truncation button has been clicked.\n */\n @Event() typographyTruncationExpandToggle: EventEmitter<{\n expanded: boolean;\n typographyEl: HTMLIcTypographyElement;\n }>;\n\n @State() expanded: boolean = false;\n\n @Watch(\"expanded\")\n watchExpandedHandler(): void {\n this.el.setAttribute(\n \"style\",\n `--truncation-max-lines: ${this.expanded ? \"initial\" : this.maxLines}`\n );\n }\n\n disconnectedCallback(): void {\n if (this.resizeObserver !== null) {\n this.resizeObserver.disconnect();\n }\n }\n /**\n * @internal This is used by data table to remove all truncation in certain events\n */\n @Method()\n async resetTruncation() {\n if (this.truncated) {\n this.truncated = false;\n this.maxLines = 0;\n this.el.removeAttribute(\"max-lines\");\n this.expanded = false;\n this.el.removeAttribute(\"style\");\n }\n }\n\n componentDidLoad(): void {\n if (\n (this.variant === \"body\" ||\n (this.el.getRootNode() as ShadowRoot)?.host?.tagName ===\n \"IC-TOOLTIP\") &&\n this.maxLines &&\n this.maxLines > 0\n ) {\n const marker = document.createElement(\"span\");\n marker.style.visibility = \"hidden\";\n this.el.appendChild(marker);\n this.marker = marker;\n this.lastWidth = this.el.clientWidth;\n this.checkMaxLines(this.el.clientHeight);\n checkResizeObserver(this.runResizeObserver);\n }\n }\n\n componentWillRender(): void {\n if (isElInAGGrid(this.el)) {\n this.inAGGrid = true;\n }\n }\n\n private toggleExpanded = (ev: Event) => {\n ev.stopPropagation();\n\n this.expanded = !this.expanded;\n this.typographyTruncationExpandToggle.emit({\n expanded: this.expanded,\n typographyEl: this.el,\n });\n };\n\n /**\n * @internal This checks if the number of lines of text exceeds the maxLines prop. If so, set the line clamp CSS to the max lines\n * @param height - text container height\n */\n\n @Method()\n async checkMaxLines(height: number) {\n //24 is the height of a single line\n const numLines = Math.floor(height / 24);\n if (this.maxLines && numLines > this.maxLines) {\n this.el.setAttribute(\"style\", `--truncation-max-lines: ${this.maxLines}`);\n this.truncatedHeight = this.el.clientHeight;\n this.truncated = true;\n }\n }\n\n /**\n * @internal This method makes it possible to set the expanded status of truncated text outside of ic-typography component\n */\n @Method()\n async setShowHideExpanded(expanded: boolean) {\n this.expanded = expanded;\n }\n\n private checkMarkerPosition = (elTop: number, markerTop: number) => {\n if (markerTop - elTop < this.truncatedHeight) {\n this.truncated = false;\n this.expanded = false;\n } else {\n this.truncated = true;\n }\n };\n\n private getElementTop = (el: HTMLElement) => {\n return el.getClientRects && el.getClientRects()[0]\n ? el.getClientRects()[0].top\n : 0;\n };\n\n private runResizeObserver = () => {\n if (this.truncWrapperEl) {\n this.resizeObserver = new ResizeObserver(() => {\n clearTimeout(this.resizeInterval);\n this.resizeInterval = window.setTimeout(\n this.resizeObserverCallback,\n 50\n );\n });\n this.resizeObserver.observe(this.truncWrapperEl);\n }\n };\n\n private resizeObserverCallback = () => {\n if (this.lastWidth === this.el.clientWidth) {\n return;\n }\n\n if (this.truncatedHeight === 0) {\n this.checkMaxLines(this.el.clientHeight);\n return;\n }\n\n const markerTop = this.getElementTop(this.marker);\n if (markerTop === this.lastMarkerTop) {\n return;\n }\n\n this.checkMarkerPosition(this.getElementTop(this.el), markerTop);\n this.lastMarkerTop = markerTop;\n this.lastWidth = this.el.clientWidth;\n };\n\n private truncButtonFocus = (): void => {\n if (this.focusBtnFromKeyboard) {\n this.truncButtonFocussed = true;\n }\n };\n\n private truncButtonBlur = (): void => {\n this.focusBtnFromKeyboard = true;\n this.truncButtonFocussed = false;\n };\n\n private truncButtonFocusFromMouse = (): void => {\n this.focusBtnFromKeyboard = false;\n };\n\n render() {\n const {\n variant,\n applyVerticalMargins,\n maxLines,\n truncated,\n expanded,\n strikethrough,\n underline,\n italic,\n bold,\n theme,\n } = this;\n\n return (\n <Host\n class={{\n [`ic-typography-${variant}`]: true,\n [`ic-typography-vertical-margins-${variant}`]: !!applyVerticalMargins,\n [\"ic-typography-bold\"]: !!bold,\n [\"ic-typography-italic\"]: !!italic,\n [\"ic-typography-strikethrough\"]: !!strikethrough,\n [\"ic-typography-underline\"]: !!underline,\n [\"in-ag-grid\"]: this.inAGGrid,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n {(variant === \"body\" ||\n (this.el.getRootNode() as ShadowRoot)?.host?.tagName ===\n \"IC-TOOLTIP\") &&\n maxLines &&\n maxLines > 0 ? (\n <div class=\"trunc-wrapper\" ref={(el) => (this.truncWrapperEl = el)}>\n <slot />\n </div>\n ) : (\n <slot />\n )}\n {variant === \"body\" && maxLines && maxLines > 0 && truncated && (\n <button\n class={{ \"trunc-btn\": true, focus: this.truncButtonFocussed }}\n onFocus={this.truncButtonFocus}\n onBlur={this.truncButtonBlur}\n onMouseDown={this.truncButtonFocusFromMouse}\n onClick={this.toggleExpanded}\n >\n {expanded ? \"See less\" : \"See more\"}\n </button>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -2,6 +2,7 @@ import { forceUpdate } from "@stencil/core";
2
2
  import { IcBrandForegroundEnum, } from "../utils/types";
3
3
  import { IC_BLOCK_COLOR_COMPONENTS, IC_BLOCK_COLOR_EXCEPTIONS, IC_FIXED_COLOR_COMPONENTS, } from "./constants";
4
4
  const DARK_MODE_THRESHOLD = 133.3505;
5
+ const ANYWHERE_SEARCH_POSITION = "anywhere";
5
6
  const icInput = "ic-input";
6
7
  const linkIcInput = "input.ic-input";
7
8
  /**
@@ -76,10 +77,10 @@ export const renderHiddenInput = (always, container, name, value, disabled) => {
76
77
  input.classList.add(icInput);
77
78
  container.appendChild(input);
78
79
  }
79
- input.disabled = disabled;
80
+ input.disabled = !!disabled;
80
81
  input.name = name;
81
82
  if (value instanceof Date) {
82
- input.value = value ? value.toISOString() : null;
83
+ input.value = value ? value.toISOString() : "";
83
84
  }
84
85
  else {
85
86
  input.value = value || "";
@@ -115,9 +116,11 @@ export const renderFileHiddenInput = (event, container, multiple, name, value, d
115
116
  input.hidden = true;
116
117
  input.multiple = multiple;
117
118
  input.name = name;
118
- input.files = value;
119
119
  input.disabled = disabled;
120
- input.accept = accept;
120
+ if (value)
121
+ input.files = value;
122
+ if (accept)
123
+ input.accept = accept;
121
124
  input.onchange = () => {
122
125
  event.emit(input.files);
123
126
  };
@@ -131,7 +134,7 @@ export const removeHiddenInput = (container) => {
131
134
  const input = filtered[0];
132
135
  input === null || input === void 0 ? void 0 : input.remove();
133
136
  };
134
- export const hasShadowDom = (el) => !!el.shadowRoot && !!el.attachShadow;
137
+ export const hasShadowDom = (el) => el ? !!el.shadowRoot && !!el.attachShadow : false;
135
138
  export const getInputHelperTextID = (id) => id + "-helper-text";
136
139
  export const getInputValidationTextID = (id) => id + "-validation-text";
137
140
  export const getInputDescribedByText = (inputId, helperText, validationText) => `${helperText ? getInputHelperTextID(inputId) : ""} ${validationText ? getInputValidationTextID(inputId) : ""}`.trim();
@@ -150,9 +153,9 @@ export const getInputDescribedByText = (inputId, helperText, validationText) =>
150
153
  export const getBrandFromContext = (el, brandFromEvent = null) => {
151
154
  var _a;
152
155
  const parentElement = el.parentElement || el.getRootNode().host.parentElement;
153
- const blockColorParent = parentElement.closest(IC_BLOCK_COLOR_COMPONENTS.join(","));
156
+ const blockColorParent = parentElement === null || parentElement === void 0 ? void 0 : parentElement.closest(IC_BLOCK_COLOR_COMPONENTS.join(","));
154
157
  // If within a block color component
155
- if (blockColorParent !== null) {
158
+ if (blockColorParent) {
156
159
  const parentTag = blockColorParent.tagName.toLowerCase();
157
160
  const currentTag = el.tagName.toLowerCase();
158
161
  if ((_a = IC_BLOCK_COLOR_EXCEPTIONS[parentTag]) === null || _a === void 0 ? void 0 : _a.includes(currentTag)) {
@@ -187,7 +190,7 @@ export const isMobileOrTablet = () => "maxTouchPoints" in navigator && "userAgen
187
190
  */
188
191
  export const handleHiddenFormButtonClick = (form, button) => {
189
192
  const hiddenFormButton = document.createElement("button");
190
- hiddenFormButton.setAttribute("type", button.type);
193
+ button.type && hiddenFormButton.setAttribute("type", button.type);
191
194
  hiddenFormButton.style.display = "none";
192
195
  form.appendChild(hiddenFormButton);
193
196
  hiddenFormButton.click();
@@ -195,7 +198,7 @@ export const handleHiddenFormButtonClick = (form, button) => {
195
198
  };
196
199
  export const isEmptyString = (value) => value ? value.trim().length === 0 : true;
197
200
  // A helper function that checks if a prop has been defined
198
- export const isPropDefined = (prop) => prop !== undefined ? prop : null;
201
+ export const isPropDefined = (prop) => prop !== undefined ? prop : undefined;
199
202
  /**
200
203
  * Extracts the label using the value from an object. Requires the object to have a label and value property.
201
204
  * @param value - value from object
@@ -227,12 +230,12 @@ export const getLabelFromValue = (value, options, valueField = "value", labelFie
227
230
  * @param position - whether the search string matches the start of or anywhere in the options
228
231
  * @returns filtered array of options
229
232
  */
230
- export const getFilteredMenuOptions = (options, includeDescriptions, searchString, position, labelField = "label") => options.filter((option) => {
233
+ export const getFilteredMenuOptions = (options, includeDescriptions, searchString, position = ANYWHERE_SEARCH_POSITION, labelField = "label") => options.filter((option) => {
231
234
  var _a;
232
235
  const label = option[labelField].toLowerCase();
233
236
  const description = (_a = option.description) === null || _a === void 0 ? void 0 : _a.toLowerCase();
234
237
  const lowerSearchString = searchString.toLowerCase();
235
- return position === "anywhere"
238
+ return position === ANYWHERE_SEARCH_POSITION
236
239
  ? includeDescriptions
237
240
  ? label.includes(lowerSearchString) ||
238
241
  (description === null || description === void 0 ? void 0 : description.includes(lowerSearchString))
@@ -333,19 +336,21 @@ export const getSlotElements = (slot) => {
333
336
  };
334
337
  export const getNavItemParentDetails = ({ parentElement, }) => {
335
338
  let navType = { navType: "", parent: null };
336
- switch (parentElement.tagName) {
337
- case "IC-NAVIGATION-GROUP":
338
- navType = getNavItemParentDetails(parentElement);
339
- break;
340
- case "IC-TOP-NAVIGATION":
341
- navType = { navType: "top", parent: parentElement };
342
- break;
343
- case "IC-SIDE-NAVIGATION":
344
- navType = { navType: "side", parent: parentElement };
345
- break;
346
- case "IC-PAGE-HEADER":
347
- navType = { navType: "page-header", parent: null };
348
- break;
339
+ if (parentElement) {
340
+ switch (parentElement.tagName) {
341
+ case "IC-NAVIGATION-GROUP":
342
+ navType = getNavItemParentDetails(parentElement);
343
+ break;
344
+ case "IC-TOP-NAVIGATION":
345
+ navType = { navType: "top", parent: parentElement };
346
+ break;
347
+ case "IC-SIDE-NAVIGATION":
348
+ navType = { navType: "side", parent: parentElement };
349
+ break;
350
+ case "IC-PAGE-HEADER":
351
+ navType = { navType: "page-header", parent: null };
352
+ break;
353
+ }
349
354
  }
350
355
  return navType;
351
356
  };