@ukic/web-components 3.2.0 → 3.3.0

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 (485) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-789082d4.js → helpers-fc4016d2.js} +21 -37
  3. package/dist/cjs/helpers-fc4016d2.js.map +1 -0
  4. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  5. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  6. package/dist/cjs/ic-alert.cjs.entry.js +1 -1
  7. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  8. package/dist/cjs/ic-badge.cjs.entry.js +4 -4
  9. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +56 -76
  11. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-breadcrumb.cjs.entry.js +32 -51
  13. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-button_3.cjs.entry.js +110 -131
  15. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-card-vertical.cjs.entry.js +5 -5
  17. package/dist/cjs/ic-checkbox-group.cjs.entry.js +9 -10
  18. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-checkbox.cjs.entry.js +34 -33
  20. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-chip.cjs.entry.js +26 -38
  22. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  24. package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
  25. package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
  26. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  27. package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
  28. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  29. package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
  30. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-hero.cjs.entry.js +5 -5
  32. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
  33. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
  34. package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
  35. package/dist/cjs/ic-link.cjs.entry.js +21 -3
  36. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  38. package/dist/cjs/ic-menu-item.cjs.entry.js +5 -5
  39. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
  41. package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
  42. package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
  43. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
  44. package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
  45. package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
  46. package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
  47. package/dist/cjs/ic-popover-menu.cjs.entry.js +8 -7
  48. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
  50. package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
  51. package/dist/cjs/ic-search-bar.cjs.entry.js +112 -135
  52. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  54. package/dist/cjs/ic-select.cjs.entry.js +7 -7
  55. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-side-navigation.cjs.entry.js +6 -6
  57. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  59. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  60. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  61. package/dist/cjs/ic-step.cjs.entry.js +14 -14
  62. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  63. package/dist/cjs/ic-switch.cjs.entry.js +6 -6
  64. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  66. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  67. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  68. package/dist/cjs/ic-tab.cjs.entry.js +3 -3
  69. package/dist/cjs/ic-text-field.cjs.entry.js +32 -29
  70. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  72. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  73. package/dist/cjs/ic-toast.cjs.entry.js +4 -4
  74. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
  75. package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
  76. package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -5
  77. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-typography.cjs.entry.js +3 -3
  79. package/dist/cjs/loader.cjs.js +1 -1
  80. package/dist/collection/components/ic-badge/ic-badge.css +1 -1
  81. package/dist/collection/components/ic-badge/ic-badge.js +2 -2
  82. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +40 -59
  83. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
  84. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +65 -86
  85. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
  86. package/dist/collection/components/ic-button/ic-button.css +105 -54
  87. package/dist/collection/components/ic-button/ic-button.js +141 -162
  88. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  89. package/dist/collection/components/ic-button/ic-button.stories.js +10 -2
  90. package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
  91. package/dist/collection/components/ic-checkbox/ic-checkbox.js +71 -73
  92. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  93. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +24 -25
  94. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  95. package/dist/collection/components/ic-chip/ic-chip.css +9 -0
  96. package/dist/collection/components/ic-chip/ic-chip.js +66 -72
  97. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  98. package/dist/collection/components/ic-chip/ic-chip.stories.js +2 -1
  99. package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
  100. package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
  101. package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
  102. package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
  103. package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
  104. package/dist/collection/components/ic-hero/ic-hero.js +4 -4
  105. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
  106. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
  107. package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
  108. package/dist/collection/components/ic-input-label/ic-input-label.js +4 -4
  109. package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
  110. package/dist/collection/components/ic-link/ic-link.js +23 -2
  111. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  112. package/dist/collection/components/ic-link/ic-link.stories.js +28 -5
  113. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +3 -3
  114. package/dist/collection/components/ic-menu/ic-menu.js +3 -3
  115. package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
  116. package/dist/collection/components/ic-menu-item/ic-menu-item.css +0 -5
  117. package/dist/collection/components/ic-menu-item/ic-menu-item.js +3 -3
  118. package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
  119. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +2 -2
  120. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
  121. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +2 -2
  122. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
  123. package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
  124. package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
  125. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
  126. package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +0 -5
  127. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +6 -5
  128. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  129. package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
  130. package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
  131. package/dist/collection/components/ic-search-bar/ic-search-bar.js +169 -192
  132. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  133. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  134. package/dist/collection/components/ic-select/ic-select.js +6 -6
  135. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  136. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +1 -1
  137. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
  138. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  139. package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
  140. package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
  141. package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
  142. package/dist/collection/components/ic-step/ic-step.js +13 -13
  143. package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
  144. package/dist/collection/components/ic-switch/ic-switch.js +5 -5
  145. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  146. package/dist/collection/components/ic-tab/ic-tab.js +2 -2
  147. package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
  148. package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
  149. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
  150. package/dist/collection/components/ic-text-field/ic-text-field.js +112 -95
  151. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  152. package/dist/collection/components/ic-theme/ic-theme.js +1 -1
  153. package/dist/collection/components/ic-toast/ic-toast.js +3 -3
  154. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
  155. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
  156. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
  157. package/dist/collection/components/ic-tooltip/ic-tooltip.js +2 -2
  158. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +4 -4
  159. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  160. package/dist/collection/components/ic-typography/ic-typography.js +2 -2
  161. package/dist/collection/utils/helpers.js +20 -36
  162. package/dist/collection/utils/helpers.js.map +1 -1
  163. package/dist/components/helpers.js +21 -37
  164. package/dist/components/helpers.js.map +1 -1
  165. package/dist/components/ic-badge.js +3 -3
  166. package/dist/components/ic-badge.js.map +1 -1
  167. package/dist/components/ic-breadcrumb-group.js +57 -78
  168. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  169. package/dist/components/ic-breadcrumb2.js +32 -51
  170. package/dist/components/ic-breadcrumb2.js.map +1 -1
  171. package/dist/components/ic-button2.js +105 -126
  172. package/dist/components/ic-button2.js.map +1 -1
  173. package/dist/components/ic-card-vertical.js +4 -4
  174. package/dist/components/ic-checkbox-group.js +8 -9
  175. package/dist/components/ic-checkbox-group.js.map +1 -1
  176. package/dist/components/ic-checkbox.js +36 -35
  177. package/dist/components/ic-checkbox.js.map +1 -1
  178. package/dist/components/ic-chip.js +28 -40
  179. package/dist/components/ic-chip.js.map +1 -1
  180. package/dist/components/ic-data-list.js +2 -2
  181. package/dist/components/ic-data-row.js +2 -2
  182. package/dist/components/ic-dialog.js +1 -1
  183. package/dist/components/ic-empty-state.js +2 -2
  184. package/dist/components/ic-footer-link.js +2 -2
  185. package/dist/components/ic-hero.js +4 -4
  186. package/dist/components/ic-horizontal-scroll2.js +5 -5
  187. package/dist/components/ic-input-component-container2.js +3 -3
  188. package/dist/components/ic-input-container2.js +2 -2
  189. package/dist/components/ic-input-label2.js +4 -4
  190. package/dist/components/ic-input-validation2.js +3 -3
  191. package/dist/components/ic-link2.js +23 -3
  192. package/dist/components/ic-link2.js.map +1 -1
  193. package/dist/components/ic-loading-indicator2.js +3 -3
  194. package/dist/components/ic-menu-group.js +1 -1
  195. package/dist/components/ic-menu-item2.js +4 -4
  196. package/dist/components/ic-menu-item2.js.map +1 -1
  197. package/dist/components/ic-menu2.js +3 -3
  198. package/dist/components/ic-navigation-button.js +2 -2
  199. package/dist/components/ic-navigation-group.js +1 -1
  200. package/dist/components/ic-navigation-item.js +2 -2
  201. package/dist/components/ic-navigation-menu2.js +4 -4
  202. package/dist/components/ic-page-header.js +6 -6
  203. package/dist/components/ic-pagination-item2.js +1 -1
  204. package/dist/components/ic-pagination.js +4 -4
  205. package/dist/components/ic-popover-menu.js +7 -6
  206. package/dist/components/ic-popover-menu.js.map +1 -1
  207. package/dist/components/ic-radio-group.js +4 -4
  208. package/dist/components/ic-radio-option.js +4 -4
  209. package/dist/components/ic-search-bar.js +112 -135
  210. package/dist/components/ic-search-bar.js.map +1 -1
  211. package/dist/components/ic-section-container2.js +2 -2
  212. package/dist/components/ic-select.js +7 -7
  213. package/dist/components/ic-select.js.map +1 -1
  214. package/dist/components/ic-side-navigation.js +5 -5
  215. package/dist/components/ic-side-navigation.js.map +1 -1
  216. package/dist/components/ic-skeleton.js +2 -2
  217. package/dist/components/ic-skip-link.js +2 -2
  218. package/dist/components/ic-status-tag.js +2 -2
  219. package/dist/components/ic-step.js +13 -13
  220. package/dist/components/ic-stepper.js +2 -2
  221. package/dist/components/ic-switch.js +5 -5
  222. package/dist/components/ic-switch.js.map +1 -1
  223. package/dist/components/ic-tab-context.js +1 -1
  224. package/dist/components/ic-tab-group.js +2 -2
  225. package/dist/components/ic-tab-panel.js +2 -2
  226. package/dist/components/ic-tab-panel.js.map +1 -1
  227. package/dist/components/ic-tab.js +2 -2
  228. package/dist/components/ic-text-field.js +32 -29
  229. package/dist/components/ic-text-field.js.map +1 -1
  230. package/dist/components/ic-theme.js +1 -1
  231. package/dist/components/ic-toast-region.js +1 -1
  232. package/dist/components/ic-toast.js +3 -3
  233. package/dist/components/ic-toggle-button-group.js +2 -2
  234. package/dist/components/ic-toggle-button.js +2 -2
  235. package/dist/components/ic-tooltip2.js +2 -2
  236. package/dist/components/ic-top-navigation.js +4 -4
  237. package/dist/components/ic-top-navigation.js.map +1 -1
  238. package/dist/components/ic-typography2.js +2 -2
  239. package/dist/core/core.css +159 -109
  240. package/dist/core/core.esm.js +1 -1
  241. package/dist/core/core.esm.js.map +1 -1
  242. package/dist/core/{p-4245a976.entry.js → p-00bc353b.entry.js} +2 -2
  243. package/dist/core/{p-ef09b450.entry.js → p-0a436c47.entry.js} +2 -2
  244. package/dist/core/{p-fbde763c.entry.js → p-10e1e227.entry.js} +2 -2
  245. package/dist/core/{p-88924aef.entry.js → p-1440847f.entry.js} +2 -2
  246. package/dist/core/{p-bbe5596b.entry.js → p-15b7adaf.entry.js} +2 -2
  247. package/dist/core/p-16f55230.entry.js +2 -0
  248. package/dist/core/p-16f55230.entry.js.map +1 -0
  249. package/dist/core/{p-45432bf5.entry.js → p-1838d1e9.entry.js} +2 -2
  250. package/dist/core/{p-3eb7ef1d.entry.js → p-18714198.entry.js} +2 -2
  251. package/dist/core/{p-3b5d3e24.entry.js → p-1b2690b4.entry.js} +2 -2
  252. package/dist/core/p-1b2690b4.entry.js.map +1 -0
  253. package/dist/core/{p-b3ac38c5.entry.js → p-1be17f22.entry.js} +2 -2
  254. package/dist/core/p-206c2a26.entry.js +2 -0
  255. package/dist/core/p-206c2a26.entry.js.map +1 -0
  256. package/dist/core/{p-b3d6d5be.entry.js → p-267a19d4.entry.js} +2 -2
  257. package/dist/core/{p-81a12e36.entry.js → p-26dfc4db.entry.js} +2 -2
  258. package/dist/core/{p-81a12e36.entry.js.map → p-26dfc4db.entry.js.map} +1 -1
  259. package/dist/core/p-2c17cc67.entry.js +2 -0
  260. package/dist/core/p-2c17cc67.entry.js.map +1 -0
  261. package/dist/core/{p-f3c72ffb.entry.js → p-2c371198.entry.js} +2 -2
  262. package/dist/core/{p-63fe83ad.entry.js → p-2e44cf53.entry.js} +2 -2
  263. package/dist/core/{p-63fe83ad.entry.js.map → p-2e44cf53.entry.js.map} +1 -1
  264. package/dist/core/{p-70700c7a.entry.js → p-42a7d0b6.entry.js} +2 -2
  265. package/dist/core/p-513628ef.entry.js +2 -0
  266. package/dist/core/p-513628ef.entry.js.map +1 -0
  267. package/dist/core/{p-33c86ba6.entry.js → p-628c32b8.entry.js} +2 -2
  268. package/dist/core/{p-0631c3ab.entry.js → p-70a6cff1.entry.js} +2 -2
  269. package/dist/core/{p-f815f8c9.entry.js → p-72c117b6.entry.js} +2 -2
  270. package/dist/core/p-730d2f6e.entry.js +2 -0
  271. package/dist/core/p-730d2f6e.entry.js.map +1 -0
  272. package/dist/core/{p-7dfe0284.entry.js → p-788c96ac.entry.js} +2 -2
  273. package/dist/core/{p-fe833509.entry.js → p-7fb79e87.entry.js} +2 -2
  274. package/dist/core/p-8242c24f.js +2 -0
  275. package/dist/core/p-8242c24f.js.map +1 -0
  276. package/dist/core/{p-6de6b6b7.entry.js → p-83764268.entry.js} +2 -2
  277. package/dist/core/{p-4b601e06.entry.js → p-8b5022bc.entry.js} +2 -2
  278. package/dist/core/{p-1e4cdd2d.entry.js → p-8c4f7c63.entry.js} +2 -2
  279. package/dist/core/{p-5e18b899.entry.js → p-910f5f14.entry.js} +2 -2
  280. package/dist/core/{p-7afc71d0.entry.js → p-9479f272.entry.js} +2 -2
  281. package/dist/core/{p-acebb05c.entry.js → p-9c47521d.entry.js} +2 -2
  282. package/dist/core/{p-40f2f58e.entry.js → p-9ca147f3.entry.js} +2 -2
  283. package/dist/core/{p-e56d0db2.entry.js → p-9cfc2bac.entry.js} +2 -2
  284. package/dist/core/{p-abaea607.entry.js → p-a0161990.entry.js} +2 -2
  285. package/dist/core/p-a17499ff.entry.js +2 -0
  286. package/dist/core/p-a17499ff.entry.js.map +1 -0
  287. package/dist/core/{p-c2ca6274.entry.js → p-a4f9b5bf.entry.js} +2 -2
  288. package/dist/core/{p-005cd8a8.entry.js → p-aad10013.entry.js} +2 -2
  289. package/dist/core/{p-959a9cdf.entry.js → p-b371a498.entry.js} +2 -2
  290. package/dist/core/{p-959a9cdf.entry.js.map → p-b371a498.entry.js.map} +1 -1
  291. package/dist/core/p-b7568944.entry.js +2 -0
  292. package/dist/core/p-b7568944.entry.js.map +1 -0
  293. package/dist/core/{p-3675c4b4.entry.js → p-b8da5c07.entry.js} +2 -2
  294. package/dist/core/{p-de43d375.entry.js → p-b9459ba2.entry.js} +2 -2
  295. package/dist/core/p-ba600947.entry.js +2 -0
  296. package/dist/core/p-ba600947.entry.js.map +1 -0
  297. package/dist/core/{p-f34eee68.entry.js → p-bc2ca778.entry.js} +2 -2
  298. package/dist/core/{p-7c0914e7.entry.js → p-bdc72446.entry.js} +2 -2
  299. package/dist/core/{p-a9c96e3e.entry.js → p-c45023b7.entry.js} +2 -2
  300. package/dist/core/p-c4663e1a.entry.js +2 -0
  301. package/dist/core/p-c4663e1a.entry.js.map +1 -0
  302. package/dist/core/{p-5206a978.entry.js → p-c8cf1ad5.entry.js} +2 -2
  303. package/dist/core/p-c9a4fe37.entry.js +2 -0
  304. package/dist/core/p-c9a4fe37.entry.js.map +1 -0
  305. package/dist/core/p-cdf56a5d.entry.js +2 -0
  306. package/dist/core/p-cdf56a5d.entry.js.map +1 -0
  307. package/dist/core/{p-23d059ff.entry.js → p-d45d66c0.entry.js} +2 -2
  308. package/dist/core/{p-9ea9a4ce.entry.js → p-d6c50565.entry.js} +2 -2
  309. package/dist/core/{p-950db960.entry.js → p-d975bf2f.entry.js} +2 -2
  310. package/dist/core/{p-950db960.entry.js.map → p-d975bf2f.entry.js.map} +1 -1
  311. package/dist/core/{p-3132270d.entry.js → p-dede4974.entry.js} +2 -2
  312. package/dist/core/{p-23ed8b99.entry.js → p-df88ff5b.entry.js} +2 -2
  313. package/dist/core/{p-c04f36c5.entry.js → p-e86a6d2d.entry.js} +2 -2
  314. package/dist/core/{p-7a0d238b.entry.js → p-ebab7a9e.entry.js} +2 -2
  315. package/dist/core/{p-517d7afb.entry.js → p-eeab3a2e.entry.js} +2 -2
  316. package/dist/core/{p-44e4e8c1.entry.js → p-ef36181d.entry.js} +2 -2
  317. package/dist/core/{p-fc50d582.entry.js → p-f0388d68.entry.js} +2 -2
  318. package/dist/core/{p-e2f893f0.entry.js → p-fbf57f0a.entry.js} +2 -2
  319. package/dist/esm/core.js +1 -1
  320. package/dist/esm/{helpers-46a2d1fd.js → helpers-f2ffaa7c.js} +22 -38
  321. package/dist/esm/helpers-f2ffaa7c.js.map +1 -0
  322. package/dist/esm/ic-accordion-group.entry.js +1 -1
  323. package/dist/esm/ic-accordion.entry.js +1 -1
  324. package/dist/esm/ic-alert.entry.js +1 -1
  325. package/dist/esm/ic-back-to-top.entry.js +1 -1
  326. package/dist/esm/ic-badge.entry.js +4 -4
  327. package/dist/esm/ic-badge.entry.js.map +1 -1
  328. package/dist/esm/ic-breadcrumb-group.entry.js +56 -76
  329. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  330. package/dist/esm/ic-breadcrumb.entry.js +32 -51
  331. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  332. package/dist/esm/ic-button_3.entry.js +111 -132
  333. package/dist/esm/ic-button_3.entry.js.map +1 -1
  334. package/dist/esm/ic-card-vertical.entry.js +5 -5
  335. package/dist/esm/ic-checkbox-group.entry.js +9 -10
  336. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  337. package/dist/esm/ic-checkbox.entry.js +34 -33
  338. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  339. package/dist/esm/ic-chip.entry.js +26 -38
  340. package/dist/esm/ic-chip.entry.js.map +1 -1
  341. package/dist/esm/ic-data-list.entry.js +2 -2
  342. package/dist/esm/ic-data-row.entry.js +3 -3
  343. package/dist/esm/ic-dialog.entry.js +2 -2
  344. package/dist/esm/ic-divider.entry.js +1 -1
  345. package/dist/esm/ic-empty-state.entry.js +3 -3
  346. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  347. package/dist/esm/ic-footer-link.entry.js +3 -3
  348. package/dist/esm/ic-footer.entry.js +1 -1
  349. package/dist/esm/ic-hero.entry.js +5 -5
  350. package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
  351. package/dist/esm/ic-input-component-container_3.entry.js +9 -9
  352. package/dist/esm/ic-input-label_2.entry.js +8 -8
  353. package/dist/esm/ic-link.entry.js +21 -3
  354. package/dist/esm/ic-link.entry.js.map +1 -1
  355. package/dist/esm/ic-menu-group.entry.js +2 -2
  356. package/dist/esm/ic-menu-item.entry.js +5 -5
  357. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  358. package/dist/esm/ic-navigation-button.entry.js +3 -3
  359. package/dist/esm/ic-navigation-group.entry.js +2 -2
  360. package/dist/esm/ic-navigation-item.entry.js +3 -3
  361. package/dist/esm/ic-navigation-menu.entry.js +5 -5
  362. package/dist/esm/ic-page-header.entry.js +7 -7
  363. package/dist/esm/ic-pagination-item.entry.js +2 -2
  364. package/dist/esm/ic-pagination.entry.js +5 -5
  365. package/dist/esm/ic-popover-menu.entry.js +8 -7
  366. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  367. package/dist/esm/ic-radio-group.entry.js +5 -5
  368. package/dist/esm/ic-radio-option.entry.js +5 -5
  369. package/dist/esm/ic-search-bar.entry.js +112 -135
  370. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  371. package/dist/esm/ic-section-container.entry.js +2 -2
  372. package/dist/esm/ic-select.entry.js +7 -7
  373. package/dist/esm/ic-select.entry.js.map +1 -1
  374. package/dist/esm/ic-side-navigation.entry.js +6 -6
  375. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  376. package/dist/esm/ic-skeleton.entry.js +2 -2
  377. package/dist/esm/ic-skip-link.entry.js +2 -2
  378. package/dist/esm/ic-status-tag.entry.js +3 -3
  379. package/dist/esm/ic-step.entry.js +14 -14
  380. package/dist/esm/ic-stepper.entry.js +3 -3
  381. package/dist/esm/ic-switch.entry.js +6 -6
  382. package/dist/esm/ic-switch.entry.js.map +1 -1
  383. package/dist/esm/ic-tab-context.entry.js +1 -1
  384. package/dist/esm/ic-tab-group.entry.js +3 -3
  385. package/dist/esm/ic-tab-panel.entry.js +2 -2
  386. package/dist/esm/ic-tab.entry.js +3 -3
  387. package/dist/esm/ic-text-field.entry.js +32 -29
  388. package/dist/esm/ic-text-field.entry.js.map +1 -1
  389. package/dist/esm/ic-theme.entry.js +2 -2
  390. package/dist/esm/ic-toast-region.entry.js +1 -1
  391. package/dist/esm/ic-toast.entry.js +4 -4
  392. package/dist/esm/ic-toggle-button-group.entry.js +3 -3
  393. package/dist/esm/ic-toggle-button.entry.js +3 -3
  394. package/dist/esm/ic-top-navigation.entry.js +5 -5
  395. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  396. package/dist/esm/ic-typography.entry.js +3 -3
  397. package/dist/esm/loader.js +1 -1
  398. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +4 -6
  399. package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +9 -15
  400. package/dist/types/components/ic-button/ic-button.d.ts +29 -22
  401. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +14 -13
  402. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +8 -9
  403. package/dist/types/components/ic-chip/ic-chip.d.ts +13 -15
  404. package/dist/types/components/ic-link/ic-link.d.ts +2 -0
  405. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +38 -40
  406. package/dist/types/components/ic-text-field/ic-text-field.d.ts +37 -32
  407. package/dist/types/components.d.ts +127 -122
  408. package/dist/types/utils/helpers.d.ts +8 -8
  409. package/hydrate/index.js +590 -680
  410. package/hydrate/index.mjs +590 -680
  411. package/package.json +2 -2
  412. package/vscode-data.json +167 -3
  413. package/dist/cjs/helpers-789082d4.js.map +0 -1
  414. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js +0 -2
  415. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js.map +0 -1
  416. package/dist/core/p-0a8b3967.entry.js +0 -2
  417. package/dist/core/p-0a8b3967.entry.js.map +0 -1
  418. package/dist/core/p-0b4350df.entry.js +0 -2
  419. package/dist/core/p-0b4350df.entry.js.map +0 -1
  420. package/dist/core/p-0e618fc5.entry.js +0 -2
  421. package/dist/core/p-0e618fc5.entry.js.map +0 -1
  422. package/dist/core/p-18ecba80.entry.js +0 -2
  423. package/dist/core/p-18ecba80.entry.js.map +0 -1
  424. package/dist/core/p-281ce313.js +0 -2
  425. package/dist/core/p-281ce313.js.map +0 -1
  426. package/dist/core/p-30abe545.entry.js +0 -2
  427. package/dist/core/p-30abe545.entry.js.map +0 -1
  428. package/dist/core/p-3b5d3e24.entry.js.map +0 -1
  429. package/dist/core/p-5d4b0480.entry.js +0 -2
  430. package/dist/core/p-5d4b0480.entry.js.map +0 -1
  431. package/dist/core/p-6337fe1f.entry.js +0 -2
  432. package/dist/core/p-6337fe1f.entry.js.map +0 -1
  433. package/dist/core/p-8ba129fc.entry.js +0 -2
  434. package/dist/core/p-8ba129fc.entry.js.map +0 -1
  435. package/dist/core/p-ac7db165.entry.js +0 -2
  436. package/dist/core/p-ac7db165.entry.js.map +0 -1
  437. package/dist/core/p-c62318a8.entry.js +0 -2
  438. package/dist/core/p-c62318a8.entry.js.map +0 -1
  439. package/dist/core/p-e586ae7b.entry.js +0 -2
  440. package/dist/core/p-e586ae7b.entry.js.map +0 -1
  441. package/dist/esm/helpers-46a2d1fd.js.map +0 -1
  442. package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +0 -1
  443. /package/dist/core/{p-4245a976.entry.js.map → p-00bc353b.entry.js.map} +0 -0
  444. /package/dist/core/{p-ef09b450.entry.js.map → p-0a436c47.entry.js.map} +0 -0
  445. /package/dist/core/{p-fbde763c.entry.js.map → p-10e1e227.entry.js.map} +0 -0
  446. /package/dist/core/{p-88924aef.entry.js.map → p-1440847f.entry.js.map} +0 -0
  447. /package/dist/core/{p-bbe5596b.entry.js.map → p-15b7adaf.entry.js.map} +0 -0
  448. /package/dist/core/{p-45432bf5.entry.js.map → p-1838d1e9.entry.js.map} +0 -0
  449. /package/dist/core/{p-3eb7ef1d.entry.js.map → p-18714198.entry.js.map} +0 -0
  450. /package/dist/core/{p-b3ac38c5.entry.js.map → p-1be17f22.entry.js.map} +0 -0
  451. /package/dist/core/{p-b3d6d5be.entry.js.map → p-267a19d4.entry.js.map} +0 -0
  452. /package/dist/core/{p-f3c72ffb.entry.js.map → p-2c371198.entry.js.map} +0 -0
  453. /package/dist/core/{p-70700c7a.entry.js.map → p-42a7d0b6.entry.js.map} +0 -0
  454. /package/dist/core/{p-33c86ba6.entry.js.map → p-628c32b8.entry.js.map} +0 -0
  455. /package/dist/core/{p-0631c3ab.entry.js.map → p-70a6cff1.entry.js.map} +0 -0
  456. /package/dist/core/{p-f815f8c9.entry.js.map → p-72c117b6.entry.js.map} +0 -0
  457. /package/dist/core/{p-7dfe0284.entry.js.map → p-788c96ac.entry.js.map} +0 -0
  458. /package/dist/core/{p-fe833509.entry.js.map → p-7fb79e87.entry.js.map} +0 -0
  459. /package/dist/core/{p-6de6b6b7.entry.js.map → p-83764268.entry.js.map} +0 -0
  460. /package/dist/core/{p-4b601e06.entry.js.map → p-8b5022bc.entry.js.map} +0 -0
  461. /package/dist/core/{p-1e4cdd2d.entry.js.map → p-8c4f7c63.entry.js.map} +0 -0
  462. /package/dist/core/{p-5e18b899.entry.js.map → p-910f5f14.entry.js.map} +0 -0
  463. /package/dist/core/{p-7afc71d0.entry.js.map → p-9479f272.entry.js.map} +0 -0
  464. /package/dist/core/{p-acebb05c.entry.js.map → p-9c47521d.entry.js.map} +0 -0
  465. /package/dist/core/{p-40f2f58e.entry.js.map → p-9ca147f3.entry.js.map} +0 -0
  466. /package/dist/core/{p-e56d0db2.entry.js.map → p-9cfc2bac.entry.js.map} +0 -0
  467. /package/dist/core/{p-abaea607.entry.js.map → p-a0161990.entry.js.map} +0 -0
  468. /package/dist/core/{p-c2ca6274.entry.js.map → p-a4f9b5bf.entry.js.map} +0 -0
  469. /package/dist/core/{p-005cd8a8.entry.js.map → p-aad10013.entry.js.map} +0 -0
  470. /package/dist/core/{p-3675c4b4.entry.js.map → p-b8da5c07.entry.js.map} +0 -0
  471. /package/dist/core/{p-de43d375.entry.js.map → p-b9459ba2.entry.js.map} +0 -0
  472. /package/dist/core/{p-f34eee68.entry.js.map → p-bc2ca778.entry.js.map} +0 -0
  473. /package/dist/core/{p-7c0914e7.entry.js.map → p-bdc72446.entry.js.map} +0 -0
  474. /package/dist/core/{p-a9c96e3e.entry.js.map → p-c45023b7.entry.js.map} +0 -0
  475. /package/dist/core/{p-5206a978.entry.js.map → p-c8cf1ad5.entry.js.map} +0 -0
  476. /package/dist/core/{p-23d059ff.entry.js.map → p-d45d66c0.entry.js.map} +0 -0
  477. /package/dist/core/{p-9ea9a4ce.entry.js.map → p-d6c50565.entry.js.map} +0 -0
  478. /package/dist/core/{p-3132270d.entry.js.map → p-dede4974.entry.js.map} +0 -0
  479. /package/dist/core/{p-23ed8b99.entry.js.map → p-df88ff5b.entry.js.map} +0 -0
  480. /package/dist/core/{p-c04f36c5.entry.js.map → p-e86a6d2d.entry.js.map} +0 -0
  481. /package/dist/core/{p-7a0d238b.entry.js.map → p-ebab7a9e.entry.js.map} +0 -0
  482. /package/dist/core/{p-517d7afb.entry.js.map → p-eeab3a2e.entry.js.map} +0 -0
  483. /package/dist/core/{p-44e4e8c1.entry.js.map → p-ef36181d.entry.js.map} +0 -0
  484. /package/dist/core/{p-fc50d582.entry.js.map → p-f0388d68.entry.js.map} +0 -0
  485. /package/dist/core/{p-e2f893f0.entry.js.map → p-fbf57f0a.entry.js.map} +0 -0
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  }
11
11
  return t;
12
12
  };
13
- import { Host, forceUpdate, h, } from "@stencil/core";
13
+ import { Host, forceUpdate, h, Fragment, } from "@stencil/core";
14
14
  import { getBrandFromContext, inheritAttributes, isSlotUsed, removeDisabledFalse, renderFileHiddenInput, } from "../../utils/helpers";
15
15
  import { IC_INHERITED_ARIA } from "../../utils/constants";
16
16
  import { IcBrandForegroundEnum, } from "../../utils/types";
@@ -29,7 +29,6 @@ export class Button {
29
29
  this.hasTooltip = false;
30
30
  this.inheritedAttributes = {};
31
31
  this.describedbyEl = null;
32
- this.describedById = null;
33
32
  this.mutationObserver = null;
34
33
  this.hostMutationObserver = null;
35
34
  this.ariaLabel = "";
@@ -96,7 +95,7 @@ export class Button {
96
95
  */
97
96
  this.tooltipPlacement = "bottom";
98
97
  /**
99
- * If `true`, the secondary variant of button will have a transparent background rather than white.
98
+ * If `true`, the secondary & tertiary variants of button will have a transparent background when not hovered, pressed or loading.
100
99
  */
101
100
  this.transparentBackground = true;
102
101
  /**
@@ -107,6 +106,7 @@ export class Button {
107
106
  * The variant of the button to be displayed.
108
107
  */
109
108
  this.variant = "primary";
109
+ this.getSlottedIcon = (position) => this.el.querySelector(`[slot="${position}-icon"]`);
110
110
  this.handleClick = () => {
111
111
  var _a;
112
112
  if ((this.el.type === "submit" || this.el.type === "reset") &&
@@ -131,12 +131,17 @@ export class Button {
131
131
  this.onBlur = () => {
132
132
  this.icBlur.emit();
133
133
  };
134
- // triggered when text content of sibling element in light DOM changes
134
+ /**
135
+ * Triggered when text content of sibling element in light DOM changes
136
+ */
135
137
  this.mutationCallback = () => {
136
138
  var _a;
137
139
  this.describedByContent = (_a = this.describedbyEl) === null || _a === void 0 ? void 0 : _a.innerText;
138
140
  };
139
- // triggered when attributes of host element change
141
+ /**
142
+ * Triggered when attributes of host element change
143
+ * @param mutationList the list of changes made to the host element
144
+ */
140
145
  this.hostMutationCallback = (mutationList) => {
141
146
  let forceComponentUpdate = false;
142
147
  mutationList.forEach(({ attributeName }) => {
@@ -162,58 +167,54 @@ export class Button {
162
167
  this.hasTooltip =
163
168
  !this.disableTooltip && (!!this.title || !!this.isIconVariant());
164
169
  };
165
- this.isIconVariant = () => {
166
- var _a;
167
- return (_a = this.variant) === null || _a === void 0 ? void 0 : _a.startsWith("icon");
168
- };
170
+ this.isIconVariant = () => this.variant.startsWith("icon");
169
171
  this.arrangeRouterItem = () => {
170
- var _a, _b, _c, _d;
172
+ var _a;
171
173
  const setStyles = (element, styles) => {
172
174
  Object.entries(styles).forEach(([key, value]) => {
173
175
  element.style.setProperty(key, value);
174
176
  });
175
177
  };
176
- const iconWrapper = document.createElement("div");
177
- const icon = (_a = this.routerSlot) === null || _a === void 0 ? void 0 : _a.querySelector("svg");
178
- const badge = (_b = this.routerSlot) === null || _b === void 0 ? void 0 : _b.querySelector("ic-badge");
179
- const label = (_d = (_c = this.routerSlot) === null || _c === void 0 ? void 0 : _c.textContent) === null || _d === void 0 ? void 0 : _d.trim();
180
- const icTypography = document.createElement("ic-typography");
181
- setStyles(icTypography, {
182
- "font-family": "var(--ic-font-body-family)",
183
- "font-size": "0.875rem",
184
- "font-weight": "600",
185
- });
186
- setStyles(this.routerSlot, {
187
- gap: "0",
188
- });
189
- if (icon) {
190
- setStyles(icon, {
191
- fill: "currentcolor",
178
+ if (this.routerSlot) {
179
+ const icTypography = document.createElement("ic-typography");
180
+ setStyles(icTypography, {
181
+ "font-family": "var(--ic-font-body-family)",
182
+ "font-size": "0.875rem",
183
+ "font-weight": "600",
192
184
  });
193
- icon.getAttribute("slot") === "left-icon" &&
194
- setStyles(iconWrapper, {
195
- "margin-right": "var(--ic-space-xs)",
196
- });
197
- icon.getAttribute("slot") === "right-icon" &&
198
- setStyles(iconWrapper, {
199
- "margin-left": "var(--ic-space-xs)",
200
- });
201
- if (icon.getAttribute("slot") === "top-icon") {
202
- setStyles(this.routerSlot, {
203
- display: "flex",
204
- "flex-direction": "column",
205
- "--height": "fit-content",
185
+ setStyles(this.routerSlot, {
186
+ gap: "0",
187
+ });
188
+ const icon = this.routerSlot.querySelector("svg");
189
+ const iconSlot = icon === null || icon === void 0 ? void 0 : icon.getAttribute("slot");
190
+ const iconWrapper = document.createElement("div");
191
+ if (icon) {
192
+ setStyles(icon, {
193
+ fill: "currentcolor",
206
194
  });
195
+ if (iconSlot === "top-icon") {
196
+ setStyles(this.routerSlot, {
197
+ display: "flex",
198
+ "flex-direction": "column",
199
+ "--height": "fit-content",
200
+ });
201
+ }
202
+ else if (iconSlot) {
203
+ const marginPlacement = iconSlot === "left-icon" ? "right" : "left";
204
+ setStyles(iconWrapper, {
205
+ [`margin-${marginPlacement}`]: "var(--ic-space-xs)",
206
+ });
207
+ }
208
+ iconWrapper.append(icon);
207
209
  }
208
- iconWrapper.append(icon);
209
- }
210
- badge && iconWrapper.append(badge);
211
- if (label) {
212
- icTypography.textContent = label;
213
- }
214
- if (this.routerSlot) {
210
+ const badge = this.routerSlot.querySelector("ic-badge");
211
+ const label = (_a = this.routerSlot.textContent) === null || _a === void 0 ? void 0 : _a.trim();
212
+ if (badge)
213
+ iconWrapper.append(badge);
214
+ if (label)
215
+ icTypography.textContent = label;
215
216
  this.routerSlot.textContent = "";
216
- if (icon && icon.getAttribute("slot") === "right-icon") {
217
+ if (iconSlot === "right-icon") {
217
218
  this.routerSlot.append(icTypography);
218
219
  this.routerSlot.append(iconWrapper);
219
220
  }
@@ -228,13 +229,9 @@ export class Button {
228
229
  removeDisabledFalse(this.disabled, this.el);
229
230
  }
230
231
  disconnectedCallback() {
231
- if (this.mutationObserver !== null && this.mutationObserver !== undefined) {
232
- this.mutationObserver.disconnect();
233
- }
234
- if (this.hostMutationObserver !== null &&
235
- this.hostMutationObserver !== undefined) {
236
- this.hostMutationObserver.disconnect();
237
- }
232
+ var _a, _b;
233
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
234
+ (_b = this.hostMutationObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
238
235
  }
239
236
  componentWillUpdate() {
240
237
  if (this.loading) {
@@ -254,7 +251,7 @@ export class Button {
254
251
  this.setHasTooltip();
255
252
  if (!this.hasTooltip) {
256
253
  const describedById = this.inheritedAttributes["aria-describedby"];
257
- if (describedById !== undefined) {
254
+ if (describedById) {
258
255
  this.describedById = describedById;
259
256
  const el = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector(`#${describedById}`);
260
257
  if (el) {
@@ -279,21 +276,18 @@ export class Button {
279
276
  this.hostMutationObserver.observe(this.el, {
280
277
  attributes: true,
281
278
  });
282
- this.hasRouterSlot() && this.arrangeRouterItem();
279
+ if (this.hasRouterSlot())
280
+ this.arrangeRouterItem();
283
281
  }
284
282
  }
285
283
  componentWillRender() {
286
- const iconEl = this.hasIconSlot("left")
287
- ? this.el.querySelector(`[slot="left-icon"]`)
288
- : this.hasIconSlot("right")
289
- ? this.el.querySelector(`[slot="right-icon"]`)
290
- : null;
284
+ const iconEl = this.getSlottedIcon("left") || this.getSlottedIcon("right");
291
285
  iconEl === null || iconEl === void 0 ? void 0 : iconEl.setAttribute("viewBox", "0 0 24 24");
292
286
  }
293
287
  handleHostClick(event) {
294
288
  if (!this.hasRouterSlot()) {
295
289
  if (this.fileUpload) {
296
- renderFileHiddenInput(this.icFileSelection, this.el, !!this.multiple, this.fileInputName, this.selectedFiles, !!this.disabled, this.accept);
290
+ renderFileHiddenInput(this.icFileSelection, this.el, !!this.multiple, !!this.disabled, this.accept, this.fileInputName, this.selectedFiles);
297
291
  }
298
292
  if (this.disabled || this.loading) {
299
293
  event.stopImmediatePropagation();
@@ -322,10 +316,6 @@ export class Button {
322
316
  ev.stopImmediatePropagation();
323
317
  }
324
318
  }
325
- hasIconSlot(position) {
326
- const selectorPrefix = position ? `${position}-` : "";
327
- return this.el.querySelector(`[slot="${selectorPrefix}icon"]`) !== null;
328
- }
329
319
  hasRouterSlot() {
330
320
  this.routerSlot = this.el.querySelector('[slot="router-item"]');
331
321
  if (this.routerSlot) {
@@ -344,72 +334,61 @@ export class Button {
344
334
  }
345
335
  }
346
336
  render() {
347
- const TagType = (this.href && "a") || "button";
348
- const { title, ariaLabel, inheritedAttributes } = this;
337
+ const { ariaControlsId, ariaLabel, ariaOwnsId, buttonIdNum, describedByContent, describedById, disabled, download, dropdown, dropdownExpanded, form, formaction, formenctype, formmethod, formnovalidate, formtarget, fullWidth, handleClick, handleKeyDown, hasTooltip, href, hreflang, id, inheritedAttributes, isIconVariant, loading, monochrome, onBlur, onFocus, referrerpolicy, rel, size, target, theme, title, tooltipPlacement, transparentBackground, type, variant, } = this;
338
+ const TagType = href ? "a" : "button";
349
339
  const buttonAttrs = TagType === "button"
350
340
  ? {
351
- type: this.type,
352
- disabled: this.disabled,
353
- form: this.form,
354
- formaction: this.formaction,
355
- formenctype: this.formenctype,
356
- formmethod: this.formmethod,
357
- formnovalidate: this.formnovalidate,
358
- formtarget: this.formtarget,
341
+ type,
342
+ disabled,
343
+ form,
344
+ formaction,
345
+ formenctype,
346
+ formmethod,
347
+ formnovalidate,
348
+ formtarget,
359
349
  }
360
350
  : {
361
- download: this.download !== false ? this.download : null,
362
- href: this.href,
363
- rel: this.rel,
364
- target: this.target,
365
- referrerpolicy: this.referrerpolicy,
366
- hreflang: this.hreflang,
351
+ download: download !== false ? download : null,
352
+ href,
353
+ rel,
354
+ target,
355
+ referrerpolicy,
356
+ hreflang,
367
357
  };
368
- let describedby = null;
369
- let buttonId = null;
370
- if (this.hasTooltip) {
371
- buttonId =
372
- this.id !== null
373
- ? `ic-button-with-tooltip-${this.id}`
374
- : `ic-button-with-tooltip-${this.buttonIdNum}`;
375
- describedby =
376
- this.variant === "icon" && !!ariaLabel
377
- ? null
378
- : `ic-tooltip-${buttonId}`;
379
- }
380
- else {
381
- describedby = this.describedById;
382
- }
383
- const ButtonContent = () => {
384
- return (h(TagType, Object.assign({ class: "button", "aria-disabled": this.loading || this.disabled ? "true" : null, "aria-label": this.loading ? "Loading" : ariaLabel, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: this.onFocus, onBlur: this.onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), this.hasIconSlot("left") && !this.loading && (h("div", { class: "icon-container" }, h("slot", { name: "left-icon" }))), this.hasIconSlot("top") &&
385
- !this.hasIconSlot("left") &&
386
- !this.hasIconSlot("right") &&
387
- !this.loading && (h("div", { class: "icon-container" }, h("slot", { name: "top-icon" }))), this.loading ? (h("div", { class: "loading-container" }, h("ic-loading-indicator", { type: "linear", monochrome: this.monochrome, theme: this.theme }))) : (h("slot", null)), this.hasIconSlot("right") && !this.loading && !this.dropdown && (h("div", { class: { "icon-container": true, "right-icon": true } }, h("slot", { name: "right-icon" }))), this.dropdown &&
388
- !this.loading &&
389
- this.variant !== "icon" &&
390
- this.variant !== "destructive" && (h("span", { class: {
391
- ["arrow-dropdown"]: !this.dropdownExpanded,
392
- ["dropdown-expanded"]: !!this.dropdownExpanded,
393
- }, innerHTML: arrowDropdown }))));
394
- };
395
- return (h(Host, { class: {
396
- [`ic-theme-${this.theme}`]: this.theme !== "inherit",
397
- [`monochrome`]: !!this.monochrome,
398
- ["ic-button-disabled"]: !!this.disabled && !this.loading,
399
- [`ic-button-variant-${this.variant}`]: true,
400
- [`ic-button-size-${this.size}`]: true,
401
- ["ic-button-loading"]: !!this.loading,
402
- ["ic-button-full-width"]: !!this.fullWidth,
403
- ["with-badge"]: isSlotUsed(this.el, "badge"),
404
- ["dropdown-no-icon"]: !!this.dropdown &&
358
+ const buttonId = hasTooltip
359
+ ? `ic-button-with-tooltip-${id || buttonIdNum}`
360
+ : undefined;
361
+ const describedby = !hasTooltip
362
+ ? describedById
363
+ : variant !== "icon" || !ariaLabel
364
+ ? `ic-tooltip-${buttonId}`
365
+ : undefined;
366
+ const hasLeftIcon = !!this.getSlottedIcon("left");
367
+ const hasRightIcon = !!this.getSlottedIcon("right");
368
+ const ButtonContent = () => this.hasRouterSlot() ? (h("slot", { name: "router-item" })) : (h(TagType, Object.assign({ class: "button", "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (h("div", { class: "loading-container" }, h("ic-loading-indicator", { type: "linear", monochrome: monochrome, theme: theme }))) : (h(Fragment, null, (hasLeftIcon ||
369
+ (!!this.getSlottedIcon("top") && !hasRightIcon)) && (h("div", { class: "icon-container" }, h("slot", { name: `${hasLeftIcon ? "left" : "top"}-icon` }))), h("slot", null), !dropdown
370
+ ? hasRightIcon && (h("div", { class: { "icon-container": true, "right-icon": true } }, h("slot", { name: "right-icon" })))
371
+ : variant !== "icon" &&
372
+ variant !== "destructive" && (h("span", { class: dropdownExpanded
373
+ ? "dropdown-expanded"
374
+ : "arrow-dropdown", innerHTML: arrowDropdown }))))));
375
+ return (h(Host, { key: 'ad9ac0c76988c09eb82376bec11b59a01921e191', class: {
376
+ "ic-button-disabled": disabled && !loading,
377
+ "ic-button-full-width": fullWidth,
378
+ "ic-button-loading": loading,
379
+ [`ic-button-size-${size}`]: true,
380
+ [`ic-button-variant-${variant}`]: true,
381
+ [`ic-theme-${theme}`]: theme !== "inherit",
382
+ background: (variant === "secondary" || variant === "tertiary") &&
383
+ !transparentBackground &&
384
+ !disabled,
385
+ "dropdown-no-icon": dropdown &&
405
386
  !isSlotUsed(this.el, "icon") &&
406
387
  !isSlotUsed(this.el, "left-icon"),
407
- ["top-icon"]: isSlotUsed(this.el, "top-icon"),
408
- ["background"]: this.variant === "secondary" &&
409
- !this.transparentBackground &&
410
- this.theme === "light",
411
- }, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "aria-owns": this.ariaOwnsId, "aria-controls": this.ariaControlsId, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, this.hasTooltip && (h("ic-tooltip", { id: describedby || undefined, label: title || ariaLabel, target: buttonId || undefined, placement: this.tooltipPlacement, silent: this.isIconVariant() && !!ariaLabel }, this.hasRouterSlot() ? (h("slot", { name: "router-item" })) : (h(ButtonContent, null)))), isSlotUsed(this.el, "badge") && h("slot", { name: "badge" }), !this.hasTooltip &&
412
- (this.hasRouterSlot() ? (h("slot", { name: "router-item" })) : (h(ButtonContent, null))), this.describedByContent && (h("span", { id: describedby || undefined, class: "ic-button-describedby" }, this.describedByContent))));
388
+ monochrome,
389
+ "top-icon": isSlotUsed(this.el, "top-icon"),
390
+ "with-badge": isSlotUsed(this.el, "badge"),
391
+ }, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (h("ic-tooltip", { key: '6ea260823e7bf9640a83606682243f300a3841db', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, silent: isIconVariant() && !!ariaLabel }, h(ButtonContent, { key: '4fb9a4f68cd2973fc0cd4bf8710dc284332655e8' }))), isSlotUsed(this.el, "badge") && h("slot", { key: '598752e05b5b7c8af271b6b86752e531ca49839f', name: "badge" }), !hasTooltip && h(ButtonContent, { key: '0931fa5a19abb382782b95c86273b92c6888563b' }), describedByContent && (h("span", { key: 'b90c65b1b89f09467a38f47c104d207327686abb', id: describedby, class: "ic-button-describedby" }, describedByContent))));
413
392
  }
414
393
  static get is() { return "ic-button"; }
415
394
  static get encapsulation() { return "shadow"; }
@@ -431,11 +410,11 @@ export class Button {
431
410
  "mutable": false,
432
411
  "complexType": {
433
412
  "original": "string",
434
- "resolved": "string | undefined",
413
+ "resolved": "string",
435
414
  "references": {}
436
415
  },
437
416
  "required": false,
438
- "optional": true,
417
+ "optional": false,
439
418
  "docs": {
440
419
  "tags": [],
441
420
  "text": "If `fileUpload` is set to `true`, this is the accepted list of file types."
@@ -495,11 +474,11 @@ export class Button {
495
474
  "mutable": false,
496
475
  "complexType": {
497
476
  "original": "boolean",
498
- "resolved": "boolean | undefined",
477
+ "resolved": "boolean",
499
478
  "references": {}
500
479
  },
501
480
  "required": false,
502
- "optional": true,
481
+ "optional": false,
503
482
  "docs": {
504
483
  "tags": [],
505
484
  "text": "If `true`, the button will be in disabled state."
@@ -515,11 +494,11 @@ export class Button {
515
494
  "mutable": false,
516
495
  "complexType": {
517
496
  "original": "boolean",
518
- "resolved": "boolean | undefined",
497
+ "resolved": "boolean",
519
498
  "references": {}
520
499
  },
521
500
  "required": false,
522
- "optional": true,
501
+ "optional": false,
523
502
  "docs": {
524
503
  "tags": [],
525
504
  "text": "If `true`, the ic-tooltip which is shown for icon variant will be disabled. Title or aria-label must be set if this prop is not applied."
@@ -535,11 +514,11 @@ export class Button {
535
514
  "mutable": false,
536
515
  "complexType": {
537
516
  "original": "string | boolean",
538
- "resolved": "boolean | string | undefined",
517
+ "resolved": "boolean | string",
539
518
  "references": {}
540
519
  },
541
520
  "required": false,
542
- "optional": true,
521
+ "optional": false,
543
522
  "docs": {
544
523
  "tags": [],
545
524
  "text": "If `true`, the user can save the linked URL instead of navigating to it."
@@ -555,11 +534,11 @@ export class Button {
555
534
  "mutable": false,
556
535
  "complexType": {
557
536
  "original": "boolean",
558
- "resolved": "boolean | undefined",
537
+ "resolved": "boolean",
559
538
  "references": {}
560
539
  },
561
540
  "required": false,
562
- "optional": true,
541
+ "optional": false,
563
542
  "docs": {
564
543
  "tags": [],
565
544
  "text": "If `true`, the button will show a dropdown icon."
@@ -575,11 +554,11 @@ export class Button {
575
554
  "mutable": true,
576
555
  "complexType": {
577
556
  "original": "boolean",
578
- "resolved": "boolean | undefined",
557
+ "resolved": "boolean",
579
558
  "references": {}
580
559
  },
581
560
  "required": false,
582
- "optional": true,
561
+ "optional": false,
583
562
  "docs": {
584
563
  "tags": [],
585
564
  "text": "If `true`, the aria-expanded value will be set to true. This is only applied if the dropdown prop is also true."
@@ -595,11 +574,11 @@ export class Button {
595
574
  "mutable": false,
596
575
  "complexType": {
597
576
  "original": "boolean",
598
- "resolved": "boolean | undefined",
577
+ "resolved": "boolean",
599
578
  "references": {}
600
579
  },
601
580
  "required": false,
602
- "optional": true,
581
+ "optional": false,
603
582
  "docs": {
604
583
  "tags": [],
605
584
  "text": "If `true`, when the button is clicked the native file explorer will be launched."
@@ -615,11 +594,11 @@ export class Button {
615
594
  "mutable": false,
616
595
  "complexType": {
617
596
  "original": "string",
618
- "resolved": "string | undefined",
597
+ "resolved": "string",
619
598
  "references": {}
620
599
  },
621
600
  "required": false,
622
- "optional": true,
601
+ "optional": false,
623
602
  "docs": {
624
603
  "tags": [],
625
604
  "text": "The name of the control for the file input, which is submitted with the form data."
@@ -749,11 +728,11 @@ export class Button {
749
728
  "mutable": false,
750
729
  "complexType": {
751
730
  "original": "boolean",
752
- "resolved": "boolean | undefined",
731
+ "resolved": "boolean",
753
732
  "references": {}
754
733
  },
755
734
  "required": false,
756
- "optional": true,
735
+ "optional": false,
757
736
  "docs": {
758
737
  "tags": [],
759
738
  "text": "If `true`, the button will fill the width of the container."
@@ -807,11 +786,11 @@ export class Button {
807
786
  "mutable": false,
808
787
  "complexType": {
809
788
  "original": "boolean",
810
- "resolved": "boolean | undefined",
789
+ "resolved": "boolean",
811
790
  "references": {}
812
791
  },
813
792
  "required": false,
814
- "optional": true,
793
+ "optional": false,
815
794
  "docs": {
816
795
  "tags": [],
817
796
  "text": "If `true`, the button will be in loading state."
@@ -827,11 +806,11 @@ export class Button {
827
806
  "mutable": true,
828
807
  "complexType": {
829
808
  "original": "boolean",
830
- "resolved": "boolean | undefined",
809
+ "resolved": "boolean",
831
810
  "references": {}
832
811
  },
833
812
  "required": false,
834
- "optional": true,
813
+ "optional": false,
835
814
  "docs": {
836
815
  "tags": [],
837
816
  "text": "If `true`, the button will display as monochromatic in either `light` or `dark` theme."
@@ -847,11 +826,11 @@ export class Button {
847
826
  "mutable": false,
848
827
  "complexType": {
849
828
  "original": "boolean",
850
- "resolved": "boolean | undefined",
829
+ "resolved": "boolean",
851
830
  "references": {}
852
831
  },
853
832
  "required": false,
854
- "optional": true,
833
+ "optional": false,
855
834
  "docs": {
856
835
  "tags": [],
857
836
  "text": "If `fileUpload` is set to `true`, this boolean determines whether multiple files are accepted."
@@ -932,7 +911,7 @@ export class Button {
932
911
  "mutable": false,
933
912
  "complexType": {
934
913
  "original": "IcSizes",
935
- "resolved": "\"large\" | \"medium\" | \"small\" | undefined",
914
+ "resolved": "\"large\" | \"medium\" | \"small\"",
936
915
  "references": {
937
916
  "IcSizes": {
938
917
  "location": "import",
@@ -942,7 +921,7 @@ export class Button {
942
921
  }
943
922
  },
944
923
  "required": false,
945
- "optional": true,
924
+ "optional": false,
946
925
  "docs": {
947
926
  "tags": [],
948
927
  "text": "The size of the button to be displayed."
@@ -977,7 +956,7 @@ export class Button {
977
956
  "mutable": true,
978
957
  "complexType": {
979
958
  "original": "IcThemeMode",
980
- "resolved": "\"dark\" | \"inherit\" | \"light\" | undefined",
959
+ "resolved": "\"dark\" | \"inherit\" | \"light\"",
981
960
  "references": {
982
961
  "IcThemeMode": {
983
962
  "location": "import",
@@ -987,7 +966,7 @@ export class Button {
987
966
  }
988
967
  },
989
968
  "required": false,
990
- "optional": true,
969
+ "optional": false,
991
970
  "docs": {
992
971
  "tags": [],
993
972
  "text": "Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component."
@@ -1003,7 +982,7 @@ export class Button {
1003
982
  "mutable": false,
1004
983
  "complexType": {
1005
984
  "original": "IcButtonTooltipPlacement",
1006
- "resolved": "\"bottom\" | \"left\" | \"right\" | \"top\" | undefined",
985
+ "resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
1007
986
  "references": {
1008
987
  "IcButtonTooltipPlacement": {
1009
988
  "location": "import",
@@ -1013,7 +992,7 @@ export class Button {
1013
992
  }
1014
993
  },
1015
994
  "required": false,
1016
- "optional": true,
995
+ "optional": false,
1017
996
  "docs": {
1018
997
  "tags": [],
1019
998
  "text": "The position of the tooltip in relation to the button."
@@ -1029,14 +1008,14 @@ export class Button {
1029
1008
  "mutable": false,
1030
1009
  "complexType": {
1031
1010
  "original": "boolean",
1032
- "resolved": "boolean | undefined",
1011
+ "resolved": "boolean",
1033
1012
  "references": {}
1034
1013
  },
1035
1014
  "required": false,
1036
- "optional": true,
1015
+ "optional": false,
1037
1016
  "docs": {
1038
1017
  "tags": [],
1039
- "text": "If `true`, the secondary variant of button will have a transparent background rather than white."
1018
+ "text": "If `true`, the secondary & tertiary variants of button will have a transparent background when not hovered, pressed or loading."
1040
1019
  },
1041
1020
  "getter": false,
1042
1021
  "setter": false,
@@ -1049,7 +1028,7 @@ export class Button {
1049
1028
  "mutable": false,
1050
1029
  "complexType": {
1051
1030
  "original": "IcButtonTypes",
1052
- "resolved": "\"button\" | \"reset\" | \"submit\" | undefined",
1031
+ "resolved": "\"button\" | \"reset\" | \"submit\"",
1053
1032
  "references": {
1054
1033
  "IcButtonTypes": {
1055
1034
  "location": "import",
@@ -1059,7 +1038,7 @@ export class Button {
1059
1038
  }
1060
1039
  },
1061
1040
  "required": false,
1062
- "optional": true,
1041
+ "optional": false,
1063
1042
  "docs": {
1064
1043
  "tags": [],
1065
1044
  "text": "The type of the button."
@@ -1075,7 +1054,7 @@ export class Button {
1075
1054
  "mutable": false,
1076
1055
  "complexType": {
1077
1056
  "original": "IcButtonVariants",
1078
- "resolved": "\"destructive\" | \"icon\" | \"icon-destructive\" | \"icon-primary\" | \"icon-secondary\" | \"icon-tertiary\" | \"primary\" | \"secondary\" | \"tertiary\" | undefined",
1057
+ "resolved": "\"destructive\" | \"icon\" | \"icon-destructive\" | \"icon-primary\" | \"icon-secondary\" | \"icon-tertiary\" | \"primary\" | \"secondary\" | \"tertiary\"",
1079
1058
  "references": {
1080
1059
  "IcButtonVariants": {
1081
1060
  "location": "import",
@@ -1085,7 +1064,7 @@ export class Button {
1085
1064
  }
1086
1065
  },
1087
1066
  "required": false,
1088
- "optional": true,
1067
+ "optional": false,
1089
1068
  "docs": {
1090
1069
  "tags": [],
1091
1070
  "text": "The variant of the button to be displayed."