@ukic/web-components 3.7.0 → 3.9.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 (533) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-8217daf4.js → helpers-a0e78e2e.js} +31 -7
  3. package/dist/cjs/helpers-a0e78e2e.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-action-chip.cjs.entry.js +116 -0
  7. package/dist/cjs/ic-action-chip.cjs.entry.js.map +1 -0
  8. package/dist/cjs/ic-alert.cjs.entry.js +2 -2
  9. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-back-to-top.cjs.entry.js +4 -4
  11. package/dist/cjs/ic-badge.cjs.entry.js +4 -4
  12. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +3 -3
  14. package/dist/cjs/ic-breadcrumb.cjs.entry.js +3 -3
  15. package/dist/cjs/ic-button_3.cjs.entry.js +56 -96
  16. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-card-vertical.cjs.entry.js +5 -5
  18. package/dist/cjs/ic-checkbox-group.cjs.entry.js +3 -3
  19. package/dist/cjs/ic-checkbox.cjs.entry.js +6 -6
  20. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-chip.cjs.entry.js +13 -5
  22. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
  24. package/dist/cjs/ic-data-list.cjs.entry.js +3 -3
  25. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ic-data-row.cjs.entry.js +4 -4
  27. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
  29. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  30. package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
  31. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  32. package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
  33. package/dist/cjs/ic-footer.cjs.entry.js +4 -4
  34. package/dist/cjs/ic-hero.cjs.entry.js +5 -5
  35. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
  36. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
  37. package/dist/cjs/ic-input-label_2.cjs.entry.js +6 -6
  38. package/dist/cjs/ic-layout-grid-item.cjs.entry.js +70 -0
  39. package/dist/cjs/ic-layout-grid-item.cjs.entry.js.map +1 -0
  40. package/dist/cjs/ic-layout-grid.cjs.entry.js +156 -0
  41. package/dist/cjs/ic-layout-grid.cjs.entry.js.map +1 -0
  42. package/dist/cjs/ic-link.cjs.entry.js +2 -2
  43. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  44. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  45. package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
  46. package/dist/cjs/ic-navigation-group.cjs.entry.js +3 -3
  47. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
  49. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
  50. package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
  51. package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
  52. package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
  53. package/dist/cjs/ic-popover-menu.cjs.entry.js +10 -6
  54. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
  56. package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
  57. package/dist/cjs/ic-search-bar.cjs.entry.js +10 -10
  58. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  59. package/dist/cjs/ic-select.cjs.entry.js +7 -7
  60. package/dist/cjs/ic-side-navigation.cjs.entry.js +5 -5
  61. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  62. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  63. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  64. package/dist/cjs/ic-step.cjs.entry.js +14 -14
  65. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  66. package/dist/cjs/ic-switch.cjs.entry.js +5 -5
  67. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  68. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  69. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  70. package/dist/cjs/ic-tab.cjs.entry.js +3 -3
  71. package/dist/cjs/ic-text-field.cjs.entry.js +7 -7
  72. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  73. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  74. package/dist/cjs/ic-toast.cjs.entry.js +5 -5
  75. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
  77. package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
  78. package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -5
  79. package/dist/cjs/ic-typography.cjs.entry.js +3 -3
  80. package/dist/cjs/index-d337cd8a.js +12 -0
  81. package/dist/cjs/loader.cjs.js +1 -1
  82. package/dist/collection/assets/ai-icon.svg +11 -0
  83. package/dist/collection/collection-manifest.json +3 -0
  84. package/dist/collection/components/ic-action-chip/ic-action-chip.css +644 -0
  85. package/dist/collection/components/ic-action-chip/ic-action-chip.js +564 -0
  86. package/dist/collection/components/ic-action-chip/ic-action-chip.js.map +1 -0
  87. package/dist/collection/components/ic-action-chip/ic-action-chip.stories.js +386 -0
  88. package/dist/collection/components/ic-alert/ic-alert.css +13 -0
  89. package/dist/collection/components/ic-alert/ic-alert.js +1 -1
  90. package/dist/collection/components/ic-alert/ic-alert.stories.js +7 -2
  91. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +3 -3
  92. package/dist/collection/components/ic-badge/ic-badge.css +4 -0
  93. package/dist/collection/components/ic-badge/ic-badge.js +3 -3
  94. package/dist/collection/components/ic-badge/ic-badge.stories.js +98 -0
  95. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +2 -2
  96. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +2 -2
  97. package/dist/collection/components/ic-button/ic-button.css +3 -11
  98. package/dist/collection/components/ic-button/ic-button.js +33 -12
  99. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  100. package/dist/collection/components/ic-button/ic-button.stories.js +181 -2
  101. package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
  102. package/dist/collection/components/ic-checkbox/ic-checkbox.css +1 -0
  103. package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -4
  104. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +2 -2
  105. package/dist/collection/components/ic-chip/ic-chip.css +3 -3
  106. package/dist/collection/components/ic-chip/ic-chip.js +12 -4
  107. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  108. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +2 -2
  109. package/dist/collection/components/ic-data-list/ic-data-list.css +5 -0
  110. package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
  111. package/dist/collection/components/ic-data-list/ic-data-list.stories.js +50 -0
  112. package/dist/collection/components/ic-data-row/ic-data-row.css +3 -1
  113. package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
  114. package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
  115. package/dist/collection/components/ic-dialog/ic-dialog.stories.js +31 -4
  116. package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
  117. package/dist/collection/components/ic-footer/ic-footer.js +3 -3
  118. package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
  119. package/dist/collection/components/ic-hero/ic-hero.js +4 -4
  120. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
  121. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
  122. package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
  123. package/dist/collection/components/ic-input-label/ic-input-label.js +2 -2
  124. package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
  125. package/dist/collection/components/ic-layout-grid/ic-layout-grid.css +540 -0
  126. package/dist/collection/components/ic-layout-grid/ic-layout-grid.js +377 -0
  127. package/dist/collection/components/ic-layout-grid/ic-layout-grid.js.map +1 -0
  128. package/dist/collection/components/ic-layout-grid/ic-layout-grid.stories.js +429 -0
  129. package/dist/collection/components/ic-layout-grid/ic-layout-grid.types.js +2 -0
  130. package/dist/collection/components/ic-layout-grid/ic-layout-grid.types.js.map +1 -0
  131. package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.css +12 -0
  132. package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js +182 -0
  133. package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js.map +1 -0
  134. package/dist/collection/components/ic-link/ic-link.js +1 -1
  135. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +5 -5
  136. package/dist/collection/components/ic-menu/ic-menu.js +3 -3
  137. package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
  138. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +2 -2
  139. package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +2 -0
  140. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
  141. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +2 -2
  142. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
  143. package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
  144. package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
  145. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
  146. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +29 -5
  147. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  148. package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +94 -0
  149. package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
  150. package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
  151. package/dist/collection/components/ic-search-bar/ic-search-bar.js +9 -9
  152. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  153. package/dist/collection/components/ic-select/ic-select.js +6 -6
  154. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
  155. package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
  156. package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
  157. package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
  158. package/dist/collection/components/ic-step/ic-step.js +13 -13
  159. package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
  160. package/dist/collection/components/ic-switch/ic-switch.js +4 -4
  161. package/dist/collection/components/ic-tab/ic-tab.js +2 -2
  162. package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
  163. package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
  164. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
  165. package/dist/collection/components/ic-text-field/ic-text-field.js +6 -6
  166. package/dist/collection/components/ic-theme/ic-theme.js +1 -1
  167. package/dist/collection/components/ic-toast/ic-toast.css +8 -0
  168. package/dist/collection/components/ic-toast/ic-toast.js +4 -4
  169. package/dist/collection/components/ic-toast/ic-toast.stories.js +2 -2
  170. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
  171. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
  172. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
  173. package/dist/collection/components/ic-tooltip/ic-tooltip.css +2 -5
  174. package/dist/collection/components/ic-tooltip/ic-tooltip.js +57 -78
  175. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  176. package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +38 -0
  177. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +4 -4
  178. package/dist/collection/components/ic-typography/ic-typography.js +2 -2
  179. package/dist/collection/utils/constants.js +5 -0
  180. package/dist/collection/utils/constants.js.map +1 -1
  181. package/dist/collection/utils/helpers.js +14 -6
  182. package/dist/collection/utils/helpers.js.map +1 -1
  183. package/dist/collection/utils/types.js.map +1 -1
  184. package/dist/components/helpers.js +31 -7
  185. package/dist/components/helpers.js.map +1 -1
  186. package/dist/components/ic-action-chip.d.ts +11 -0
  187. package/dist/components/ic-action-chip.js +160 -0
  188. package/dist/components/ic-action-chip.js.map +1 -0
  189. package/dist/components/ic-alert.js +1 -1
  190. package/dist/components/ic-alert.js.map +1 -1
  191. package/dist/components/ic-back-to-top.js +4 -4
  192. package/dist/components/ic-back-to-top.js.map +1 -1
  193. package/dist/components/ic-badge.js +4 -4
  194. package/dist/components/ic-badge.js.map +1 -1
  195. package/dist/components/ic-breadcrumb-group.js +3 -3
  196. package/dist/components/ic-breadcrumb2.js +3 -3
  197. package/dist/components/ic-button2.js +15 -13
  198. package/dist/components/ic-button2.js.map +1 -1
  199. package/dist/components/ic-card-vertical.js +4 -4
  200. package/dist/components/ic-checkbox-group.js +3 -3
  201. package/dist/components/ic-checkbox.js +6 -6
  202. package/dist/components/ic-checkbox.js.map +1 -1
  203. package/dist/components/ic-chip.js +13 -5
  204. package/dist/components/ic-chip.js.map +1 -1
  205. package/dist/components/ic-classification-banner.js +2 -2
  206. package/dist/components/ic-data-list.js +3 -3
  207. package/dist/components/ic-data-list.js.map +1 -1
  208. package/dist/components/ic-data-row.js +4 -4
  209. package/dist/components/ic-data-row.js.map +1 -1
  210. package/dist/components/ic-dialog.js +2 -2
  211. package/dist/components/ic-divider2.js +1 -1
  212. package/dist/components/ic-empty-state.js +2 -2
  213. package/dist/components/ic-footer-link-group.js +1 -1
  214. package/dist/components/ic-footer-link.js +3 -3
  215. package/dist/components/ic-footer.js +4 -4
  216. package/dist/components/ic-hero.js +5 -5
  217. package/dist/components/ic-horizontal-scroll2.js +6 -6
  218. package/dist/components/ic-input-component-container2.js +4 -4
  219. package/dist/components/ic-input-container2.js +2 -2
  220. package/dist/components/ic-input-label2.js +3 -3
  221. package/dist/components/ic-input-validation2.js +4 -4
  222. package/dist/components/ic-layout-grid-item.d.ts +11 -0
  223. package/dist/components/ic-layout-grid-item.js +95 -0
  224. package/dist/components/ic-layout-grid-item.js.map +1 -0
  225. package/dist/components/ic-layout-grid.d.ts +11 -0
  226. package/dist/components/ic-layout-grid.js +188 -0
  227. package/dist/components/ic-layout-grid.js.map +1 -0
  228. package/dist/components/ic-link2.js +1 -1
  229. package/dist/components/ic-loading-indicator2.js +5 -5
  230. package/dist/components/ic-menu-group.js +2 -2
  231. package/dist/components/ic-menu-item2.js +1 -1
  232. package/dist/components/ic-menu2.js +4 -4
  233. package/dist/components/ic-navigation-button.js +3 -3
  234. package/dist/components/ic-navigation-group.js +3 -3
  235. package/dist/components/ic-navigation-group.js.map +1 -1
  236. package/dist/components/ic-navigation-item.js +3 -3
  237. package/dist/components/ic-navigation-menu2.js +5 -5
  238. package/dist/components/ic-page-header.js +7 -7
  239. package/dist/components/ic-pagination-item2.js +2 -2
  240. package/dist/components/ic-pagination.js +4 -4
  241. package/dist/components/ic-pagination.js.map +1 -1
  242. package/dist/components/ic-popover-menu.js +11 -6
  243. package/dist/components/ic-popover-menu.js.map +1 -1
  244. package/dist/components/ic-radio-group.js +5 -5
  245. package/dist/components/ic-radio-group.js.map +1 -1
  246. package/dist/components/ic-radio-option.js +5 -5
  247. package/dist/components/ic-radio-option.js.map +1 -1
  248. package/dist/components/ic-search-bar.js +10 -10
  249. package/dist/components/ic-section-container2.js +2 -2
  250. package/dist/components/ic-select.js +7 -7
  251. package/dist/components/ic-side-navigation.js +5 -5
  252. package/dist/components/ic-skeleton.js +2 -2
  253. package/dist/components/ic-skip-link.js +2 -2
  254. package/dist/components/ic-status-tag.js +2 -2
  255. package/dist/components/ic-status-tag.js.map +1 -1
  256. package/dist/components/ic-step.js +14 -14
  257. package/dist/components/ic-stepper.js +2 -2
  258. package/dist/components/ic-switch.js +5 -5
  259. package/dist/components/ic-tab-context.js +1 -1
  260. package/dist/components/ic-tab-group.js +2 -2
  261. package/dist/components/ic-tab-panel.js +2 -2
  262. package/dist/components/ic-tab.js +2 -2
  263. package/dist/components/ic-tab.js.map +1 -1
  264. package/dist/components/ic-text-field.js +7 -7
  265. package/dist/components/ic-theme.js +2 -2
  266. package/dist/components/ic-toast-region.js +1 -1
  267. package/dist/components/ic-toast.js +5 -5
  268. package/dist/components/ic-toast.js.map +1 -1
  269. package/dist/components/ic-toggle-button-group.js +2 -2
  270. package/dist/components/ic-toggle-button.js +2 -2
  271. package/dist/components/ic-tooltip2.js +39 -79
  272. package/dist/components/ic-tooltip2.js.map +1 -1
  273. package/dist/components/ic-top-navigation.js +5 -5
  274. package/dist/components/ic-typography2.js +2 -2
  275. package/dist/core/core.css +236 -16
  276. package/dist/core/core.esm.js +1 -1
  277. package/dist/core/core.esm.js.map +1 -1
  278. package/dist/core/p-0d680d19.entry.js +2 -0
  279. package/dist/core/p-0d680d19.entry.js.map +1 -0
  280. package/dist/core/{p-06e80441.entry.js → p-15dbccc2.entry.js} +2 -2
  281. package/dist/core/{p-91f6884a.entry.js → p-19cf2327.entry.js} +2 -2
  282. package/dist/core/{p-4b6818d9.entry.js → p-1cc402b8.entry.js} +2 -2
  283. package/dist/core/p-1d37ac1c.entry.js +2 -0
  284. package/dist/core/p-1d37ac1c.entry.js.map +1 -0
  285. package/dist/core/{p-182b7037.entry.js → p-1e2f40b0.entry.js} +2 -2
  286. package/dist/core/{p-9d5e4b62.entry.js → p-21cf2beb.entry.js} +2 -2
  287. package/dist/core/p-25007ec9.js +2 -0
  288. package/dist/core/p-25007ec9.js.map +1 -0
  289. package/dist/core/{p-fc5661ac.entry.js → p-287e5c17.entry.js} +2 -2
  290. package/dist/core/{p-543b90c5.entry.js → p-28efe829.entry.js} +2 -2
  291. package/dist/core/{p-fb6e6ac4.entry.js → p-2f4f392f.entry.js} +2 -2
  292. package/dist/core/{p-4301e11e.entry.js → p-313a8a2f.entry.js} +2 -2
  293. package/dist/core/p-317e005f.entry.js +2 -0
  294. package/dist/core/{p-ff47772c.entry.js.map → p-317e005f.entry.js.map} +1 -1
  295. package/dist/core/{p-f4ee5fbb.entry.js → p-3dc54847.entry.js} +2 -2
  296. package/dist/core/{p-0549305b.entry.js → p-3e5d7a3d.entry.js} +2 -2
  297. package/dist/core/p-41ef74a7.entry.js +2 -0
  298. package/dist/core/p-41ef74a7.entry.js.map +1 -0
  299. package/dist/core/{p-ae2ea264.entry.js → p-41f92698.entry.js} +2 -2
  300. package/dist/core/p-43324339.entry.js +2 -0
  301. package/dist/core/p-43324339.entry.js.map +1 -0
  302. package/dist/core/{p-9e051db4.entry.js → p-45dd12ee.entry.js} +2 -2
  303. package/dist/core/{p-018eaee0.entry.js → p-493eaabb.entry.js} +2 -2
  304. package/dist/core/{p-a591ef38.entry.js → p-4ca782eb.entry.js} +2 -2
  305. package/dist/core/{p-056be0df.entry.js → p-4d1a3036.entry.js} +2 -2
  306. package/dist/core/p-52748d5c.entry.js +2 -0
  307. package/dist/core/p-52748d5c.entry.js.map +1 -0
  308. package/dist/core/p-595a4d06.entry.js +2 -0
  309. package/dist/core/p-595a4d06.entry.js.map +1 -0
  310. package/dist/core/p-5daa7915.entry.js +2 -0
  311. package/dist/core/{p-02132a4c.entry.js.map → p-5daa7915.entry.js.map} +1 -1
  312. package/dist/core/{p-421b5f2d.entry.js → p-5f68f62b.entry.js} +2 -2
  313. package/dist/core/{p-d281c3cf.entry.js → p-5fbc8e62.entry.js} +2 -2
  314. package/dist/core/{p-06b0d0f6.entry.js → p-6014ab64.entry.js} +2 -2
  315. package/dist/core/{p-afde0edc.entry.js → p-661ae402.entry.js} +2 -2
  316. package/dist/core/{p-a2ae5d9e.entry.js → p-6a576a8b.entry.js} +2 -2
  317. package/dist/core/{p-b1b27b7e.entry.js → p-6e8ef73c.entry.js} +2 -2
  318. package/dist/core/p-6ed0ac48.entry.js +2 -0
  319. package/dist/core/{p-3194e46c.entry.js.map → p-6ed0ac48.entry.js.map} +1 -1
  320. package/dist/core/p-711bfeed.entry.js +2 -0
  321. package/dist/core/p-711bfeed.entry.js.map +1 -0
  322. package/dist/core/{p-2ec0d11c.entry.js → p-72a9909c.entry.js} +2 -2
  323. package/dist/core/{p-f9491692.entry.js → p-742a9181.entry.js} +2 -2
  324. package/dist/core/p-7cd4f6a6.entry.js +2 -0
  325. package/dist/core/{p-773ded36.entry.js.map → p-7cd4f6a6.entry.js.map} +1 -1
  326. package/dist/core/{p-152ddde9.entry.js → p-8a4b12e4.entry.js} +2 -2
  327. package/dist/core/{p-3448c713.entry.js → p-8b5022bc.entry.js} +2 -2
  328. package/dist/core/{p-ce916f35.entry.js → p-9323c234.entry.js} +2 -2
  329. package/dist/core/{p-50d13439.entry.js → p-948f89a0.entry.js} +2 -2
  330. package/dist/core/p-97b93ddf.entry.js +2 -0
  331. package/dist/core/p-97b93ddf.entry.js.map +1 -0
  332. package/dist/core/{p-0f86ea09.entry.js → p-999f0a5d.entry.js} +2 -2
  333. package/dist/core/p-999f0a5d.entry.js.map +1 -0
  334. package/dist/core/{p-ba89fa16.entry.js → p-9c013333.entry.js} +2 -2
  335. package/dist/core/{p-b83cca09.entry.js → p-9eeb5e85.entry.js} +2 -2
  336. package/dist/core/{p-0179fbd3.entry.js → p-9f36791b.entry.js} +2 -2
  337. package/dist/core/{p-8a5b0fb0.entry.js → p-a602a8e1.entry.js} +2 -2
  338. package/dist/core/{p-98869fe7.entry.js → p-a77364f5.entry.js} +2 -2
  339. package/dist/core/{p-6b52e47f.entry.js → p-af9c391d.entry.js} +2 -2
  340. package/dist/core/{p-77750efc.entry.js → p-b0d488d0.entry.js} +2 -2
  341. package/dist/core/p-b25d33d8.entry.js +2 -0
  342. package/dist/core/{p-627f7172.entry.js.map → p-b25d33d8.entry.js.map} +1 -1
  343. package/dist/core/{p-cd8dab55.entry.js → p-b52000d9.entry.js} +2 -2
  344. package/dist/core/p-cbe0d1bb.entry.js +2 -0
  345. package/dist/core/{p-ec1657fc.entry.js.map → p-cbe0d1bb.entry.js.map} +1 -1
  346. package/dist/core/p-ceea1712.entry.js +2 -0
  347. package/dist/core/p-ceea1712.entry.js.map +1 -0
  348. package/dist/core/p-cf631191.entry.js +2 -0
  349. package/dist/core/{p-6dd73165.entry.js → p-df88ff5b.entry.js} +2 -2
  350. package/dist/core/{p-bb21268f.entry.js → p-e652ab09.entry.js} +2 -2
  351. package/dist/core/{p-29468171.entry.js → p-e876e47c.entry.js} +2 -2
  352. package/dist/core/p-ea061ccf.entry.js +2 -0
  353. package/dist/core/p-ea061ccf.entry.js.map +1 -0
  354. package/dist/core/{p-ab1103e1.entry.js → p-ea778379.entry.js} +2 -2
  355. package/dist/core/{p-948086f4.entry.js → p-ef4b5469.entry.js} +2 -2
  356. package/dist/core/p-f309d3af.entry.js +2 -0
  357. package/dist/core/{p-554c555f.entry.js.map → p-f309d3af.entry.js.map} +1 -1
  358. package/dist/core/{p-9ed5f11d.entry.js → p-f6a02202.entry.js} +2 -2
  359. package/dist/core/p-fc3b1155.entry.js +2 -0
  360. package/dist/core/p-fc3b1155.entry.js.map +1 -0
  361. package/dist/core/p-ffac41d6.entry.js +2 -0
  362. package/dist/core/p-ffac41d6.entry.js.map +1 -0
  363. package/dist/esm/core.js +1 -1
  364. package/dist/esm/{helpers-f5ff3b42.js → helpers-56631aa0.js} +32 -8
  365. package/dist/esm/helpers-56631aa0.js.map +1 -0
  366. package/dist/esm/ic-accordion-group.entry.js +1 -1
  367. package/dist/esm/ic-accordion.entry.js +1 -1
  368. package/dist/esm/ic-action-chip.entry.js +112 -0
  369. package/dist/esm/ic-action-chip.entry.js.map +1 -0
  370. package/dist/esm/ic-alert.entry.js +2 -2
  371. package/dist/esm/ic-alert.entry.js.map +1 -1
  372. package/dist/esm/ic-back-to-top.entry.js +4 -4
  373. package/dist/esm/ic-badge.entry.js +4 -4
  374. package/dist/esm/ic-badge.entry.js.map +1 -1
  375. package/dist/esm/ic-breadcrumb-group.entry.js +3 -3
  376. package/dist/esm/ic-breadcrumb.entry.js +3 -3
  377. package/dist/esm/ic-button_3.entry.js +56 -96
  378. package/dist/esm/ic-button_3.entry.js.map +1 -1
  379. package/dist/esm/ic-card-vertical.entry.js +5 -5
  380. package/dist/esm/ic-checkbox-group.entry.js +3 -3
  381. package/dist/esm/ic-checkbox.entry.js +6 -6
  382. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  383. package/dist/esm/ic-chip.entry.js +13 -5
  384. package/dist/esm/ic-chip.entry.js.map +1 -1
  385. package/dist/esm/ic-classification-banner.entry.js +2 -2
  386. package/dist/esm/ic-data-list.entry.js +3 -3
  387. package/dist/esm/ic-data-list.entry.js.map +1 -1
  388. package/dist/esm/ic-data-row.entry.js +4 -4
  389. package/dist/esm/ic-data-row.entry.js.map +1 -1
  390. package/dist/esm/ic-dialog.entry.js +2 -2
  391. package/dist/esm/ic-divider.entry.js +1 -1
  392. package/dist/esm/ic-empty-state.entry.js +3 -3
  393. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  394. package/dist/esm/ic-footer-link.entry.js +3 -3
  395. package/dist/esm/ic-footer.entry.js +4 -4
  396. package/dist/esm/ic-hero.entry.js +5 -5
  397. package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
  398. package/dist/esm/ic-input-component-container_3.entry.js +9 -9
  399. package/dist/esm/ic-input-label_2.entry.js +6 -6
  400. package/dist/esm/ic-layout-grid-item.entry.js +66 -0
  401. package/dist/esm/ic-layout-grid-item.entry.js.map +1 -0
  402. package/dist/esm/ic-layout-grid.entry.js +152 -0
  403. package/dist/esm/ic-layout-grid.entry.js.map +1 -0
  404. package/dist/esm/ic-link.entry.js +2 -2
  405. package/dist/esm/ic-menu-group.entry.js +2 -2
  406. package/dist/esm/ic-menu-item.entry.js +1 -1
  407. package/dist/esm/ic-navigation-button.entry.js +3 -3
  408. package/dist/esm/ic-navigation-group.entry.js +3 -3
  409. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  410. package/dist/esm/ic-navigation-item.entry.js +3 -3
  411. package/dist/esm/ic-navigation-menu.entry.js +5 -5
  412. package/dist/esm/ic-page-header.entry.js +7 -7
  413. package/dist/esm/ic-pagination-item.entry.js +2 -2
  414. package/dist/esm/ic-pagination.entry.js +5 -5
  415. package/dist/esm/ic-popover-menu.entry.js +10 -6
  416. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  417. package/dist/esm/ic-radio-group.entry.js +5 -5
  418. package/dist/esm/ic-radio-option.entry.js +5 -5
  419. package/dist/esm/ic-search-bar.entry.js +10 -10
  420. package/dist/esm/ic-section-container.entry.js +2 -2
  421. package/dist/esm/ic-select.entry.js +7 -7
  422. package/dist/esm/ic-side-navigation.entry.js +5 -5
  423. package/dist/esm/ic-skeleton.entry.js +2 -2
  424. package/dist/esm/ic-skip-link.entry.js +2 -2
  425. package/dist/esm/ic-status-tag.entry.js +3 -3
  426. package/dist/esm/ic-step.entry.js +14 -14
  427. package/dist/esm/ic-stepper.entry.js +3 -3
  428. package/dist/esm/ic-switch.entry.js +5 -5
  429. package/dist/esm/ic-tab-context.entry.js +1 -1
  430. package/dist/esm/ic-tab-group.entry.js +3 -3
  431. package/dist/esm/ic-tab-panel.entry.js +2 -2
  432. package/dist/esm/ic-tab.entry.js +3 -3
  433. package/dist/esm/ic-text-field.entry.js +7 -7
  434. package/dist/esm/ic-theme.entry.js +2 -2
  435. package/dist/esm/ic-toast-region.entry.js +1 -1
  436. package/dist/esm/ic-toast.entry.js +5 -5
  437. package/dist/esm/ic-toast.entry.js.map +1 -1
  438. package/dist/esm/ic-toggle-button-group.entry.js +3 -3
  439. package/dist/esm/ic-toggle-button.entry.js +3 -3
  440. package/dist/esm/ic-top-navigation.entry.js +5 -5
  441. package/dist/esm/ic-typography.entry.js +3 -3
  442. package/dist/esm/index-a7a720e7.js +12 -0
  443. package/dist/esm/loader.js +1 -1
  444. package/dist/types/components/ic-action-chip/ic-action-chip.d.ts +100 -0
  445. package/dist/types/components/ic-button/ic-button.d.ts +4 -0
  446. package/dist/types/components/ic-chip/ic-chip.d.ts +2 -0
  447. package/dist/types/components/ic-layout-grid/ic-layout-grid.d.ts +56 -0
  448. package/dist/types/components/ic-layout-grid/ic-layout-grid.types.d.ts +8 -0
  449. package/dist/types/components/ic-layout-grid-item/ic-layout-grid-item.d.ts +29 -0
  450. package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +4 -0
  451. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +5 -4
  452. package/dist/types/components.d.ts +343 -2
  453. package/dist/types/utils/constants.d.ts +4 -0
  454. package/dist/types/utils/helpers.d.ts +3 -3
  455. package/dist/types/utils/types.d.ts +1 -1
  456. package/hydrate/index.js +659 -278
  457. package/hydrate/index.mjs +659 -278
  458. package/package.json +2 -2
  459. package/vscode-data.json +270 -0
  460. package/dist/cjs/helpers-8217daf4.js.map +0 -1
  461. package/dist/core/p-02132a4c.entry.js +0 -2
  462. package/dist/core/p-08567369.entry.js +0 -2
  463. package/dist/core/p-08567369.entry.js.map +0 -1
  464. package/dist/core/p-0f86ea09.entry.js.map +0 -1
  465. package/dist/core/p-3194e46c.entry.js +0 -2
  466. package/dist/core/p-43b98687.entry.js +0 -2
  467. package/dist/core/p-43b98687.entry.js.map +0 -1
  468. package/dist/core/p-4b8bfb59.entry.js +0 -2
  469. package/dist/core/p-4b8bfb59.entry.js.map +0 -1
  470. package/dist/core/p-4cd83bfe.entry.js +0 -2
  471. package/dist/core/p-4cd83bfe.entry.js.map +0 -1
  472. package/dist/core/p-554c555f.entry.js +0 -2
  473. package/dist/core/p-5fb58cc8.entry.js +0 -2
  474. package/dist/core/p-5fb58cc8.entry.js.map +0 -1
  475. package/dist/core/p-627f7172.entry.js +0 -2
  476. package/dist/core/p-70abcb2b.js +0 -2
  477. package/dist/core/p-70abcb2b.js.map +0 -1
  478. package/dist/core/p-773ded36.entry.js +0 -2
  479. package/dist/core/p-7cada631.entry.js +0 -2
  480. package/dist/core/p-7cada631.entry.js.map +0 -1
  481. package/dist/core/p-939adcae.entry.js +0 -2
  482. package/dist/core/p-939adcae.entry.js.map +0 -1
  483. package/dist/core/p-97f67617.entry.js +0 -2
  484. package/dist/core/p-97f67617.entry.js.map +0 -1
  485. package/dist/core/p-c100724d.entry.js +0 -2
  486. package/dist/core/p-d85b438a.entry.js +0 -2
  487. package/dist/core/p-d85b438a.entry.js.map +0 -1
  488. package/dist/core/p-ec1657fc.entry.js +0 -2
  489. package/dist/core/p-ff47772c.entry.js +0 -2
  490. package/dist/esm/helpers-f5ff3b42.js.map +0 -1
  491. /package/dist/core/{p-06e80441.entry.js.map → p-15dbccc2.entry.js.map} +0 -0
  492. /package/dist/core/{p-91f6884a.entry.js.map → p-19cf2327.entry.js.map} +0 -0
  493. /package/dist/core/{p-4b6818d9.entry.js.map → p-1cc402b8.entry.js.map} +0 -0
  494. /package/dist/core/{p-182b7037.entry.js.map → p-1e2f40b0.entry.js.map} +0 -0
  495. /package/dist/core/{p-9d5e4b62.entry.js.map → p-21cf2beb.entry.js.map} +0 -0
  496. /package/dist/core/{p-fc5661ac.entry.js.map → p-287e5c17.entry.js.map} +0 -0
  497. /package/dist/core/{p-543b90c5.entry.js.map → p-28efe829.entry.js.map} +0 -0
  498. /package/dist/core/{p-fb6e6ac4.entry.js.map → p-2f4f392f.entry.js.map} +0 -0
  499. /package/dist/core/{p-4301e11e.entry.js.map → p-313a8a2f.entry.js.map} +0 -0
  500. /package/dist/core/{p-f4ee5fbb.entry.js.map → p-3dc54847.entry.js.map} +0 -0
  501. /package/dist/core/{p-0549305b.entry.js.map → p-3e5d7a3d.entry.js.map} +0 -0
  502. /package/dist/core/{p-ae2ea264.entry.js.map → p-41f92698.entry.js.map} +0 -0
  503. /package/dist/core/{p-9e051db4.entry.js.map → p-45dd12ee.entry.js.map} +0 -0
  504. /package/dist/core/{p-018eaee0.entry.js.map → p-493eaabb.entry.js.map} +0 -0
  505. /package/dist/core/{p-a591ef38.entry.js.map → p-4ca782eb.entry.js.map} +0 -0
  506. /package/dist/core/{p-056be0df.entry.js.map → p-4d1a3036.entry.js.map} +0 -0
  507. /package/dist/core/{p-421b5f2d.entry.js.map → p-5f68f62b.entry.js.map} +0 -0
  508. /package/dist/core/{p-d281c3cf.entry.js.map → p-5fbc8e62.entry.js.map} +0 -0
  509. /package/dist/core/{p-06b0d0f6.entry.js.map → p-6014ab64.entry.js.map} +0 -0
  510. /package/dist/core/{p-afde0edc.entry.js.map → p-661ae402.entry.js.map} +0 -0
  511. /package/dist/core/{p-a2ae5d9e.entry.js.map → p-6a576a8b.entry.js.map} +0 -0
  512. /package/dist/core/{p-b1b27b7e.entry.js.map → p-6e8ef73c.entry.js.map} +0 -0
  513. /package/dist/core/{p-2ec0d11c.entry.js.map → p-72a9909c.entry.js.map} +0 -0
  514. /package/dist/core/{p-f9491692.entry.js.map → p-742a9181.entry.js.map} +0 -0
  515. /package/dist/core/{p-152ddde9.entry.js.map → p-8a4b12e4.entry.js.map} +0 -0
  516. /package/dist/core/{p-3448c713.entry.js.map → p-8b5022bc.entry.js.map} +0 -0
  517. /package/dist/core/{p-ce916f35.entry.js.map → p-9323c234.entry.js.map} +0 -0
  518. /package/dist/core/{p-50d13439.entry.js.map → p-948f89a0.entry.js.map} +0 -0
  519. /package/dist/core/{p-ba89fa16.entry.js.map → p-9c013333.entry.js.map} +0 -0
  520. /package/dist/core/{p-b83cca09.entry.js.map → p-9eeb5e85.entry.js.map} +0 -0
  521. /package/dist/core/{p-0179fbd3.entry.js.map → p-9f36791b.entry.js.map} +0 -0
  522. /package/dist/core/{p-8a5b0fb0.entry.js.map → p-a602a8e1.entry.js.map} +0 -0
  523. /package/dist/core/{p-98869fe7.entry.js.map → p-a77364f5.entry.js.map} +0 -0
  524. /package/dist/core/{p-6b52e47f.entry.js.map → p-af9c391d.entry.js.map} +0 -0
  525. /package/dist/core/{p-77750efc.entry.js.map → p-b0d488d0.entry.js.map} +0 -0
  526. /package/dist/core/{p-cd8dab55.entry.js.map → p-b52000d9.entry.js.map} +0 -0
  527. /package/dist/core/{p-c100724d.entry.js.map → p-cf631191.entry.js.map} +0 -0
  528. /package/dist/core/{p-6dd73165.entry.js.map → p-df88ff5b.entry.js.map} +0 -0
  529. /package/dist/core/{p-bb21268f.entry.js.map → p-e652ab09.entry.js.map} +0 -0
  530. /package/dist/core/{p-29468171.entry.js.map → p-e876e47c.entry.js.map} +0 -0
  531. /package/dist/core/{p-ab1103e1.entry.js.map → p-ea778379.entry.js.map} +0 -0
  532. /package/dist/core/{p-948086f4.entry.js.map → p-ef4b5469.entry.js.map} +0 -0
  533. /package/dist/core/{p-9ed5f11d.entry.js.map → p-f6a02202.entry.js.map} +0 -0
@@ -0,0 +1,377 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class LayoutGrid {
3
+ constructor() {
4
+ this.COL_WIDTH_CSS_PROP = "--ic-layout-grid-col-width";
5
+ /**
6
+ * The alignment of the grid.
7
+ */
8
+ this.aligned = "left";
9
+ /**
10
+ * The default column span for grid items.
11
+ */
12
+ this.defaultColSpan = 1;
13
+ /**
14
+ * The default column width for grid items.
15
+ * This is used when the grid type is set to "fixed".
16
+ */
17
+ this.defaultColWidth = "64px";
18
+ /**
19
+ * The default row span for grid items.
20
+ */
21
+ this.defaultRowSpan = 1;
22
+ /**
23
+ * If `true`, the standard vertical padding from the grid will be removed.
24
+ */
25
+ this.fullHeight = false;
26
+ /**
27
+ * The space between grid items, in multiples of the base spacing unit (`var(--ic-space-xs)`).
28
+ */
29
+ this.gridSpacing = 2;
30
+ /**
31
+ * The number of rows in the grid.
32
+ */
33
+ this.rows = 1;
34
+ /**
35
+ * The layout type of the grid.
36
+ */
37
+ this.type = "fixed";
38
+ this.getColumns = () => {
39
+ if (typeof this.columns === "number") {
40
+ this.el.style.setProperty("--ic-layout-grid-columns", this.columns.toString());
41
+ }
42
+ else if (typeof this.columns === "object") {
43
+ Object.entries(this.columns).forEach(([breakpoint, value]) => {
44
+ if (value !== undefined) {
45
+ this.el.style.setProperty(`--ic-layout-grid-columns-${breakpoint}`, value.toString());
46
+ }
47
+ });
48
+ }
49
+ };
50
+ this.getColSpan = () => {
51
+ if (this.defaultColSpan !== undefined) {
52
+ if (typeof this.defaultColSpan === "number") {
53
+ Array.from(this.el.children).forEach((child) => {
54
+ child.style.setProperty("--ic-layout-grid-col-span", `${this.defaultColSpan}`);
55
+ });
56
+ }
57
+ else if (typeof this.defaultColSpan === "object") {
58
+ Object.entries(this.defaultColSpan).forEach(([breakpoint, value]) => {
59
+ if (value !== undefined) {
60
+ this.el.style.setProperty(`--ic-layout-grid-col-span-${breakpoint}`, value.toString());
61
+ }
62
+ });
63
+ }
64
+ }
65
+ };
66
+ this.getGridSpacing = () => {
67
+ this.el.style.setProperty("--ic-layout-grid-spacing", `calc(var(--ic-space-xs) * ${this.gridSpacing})`);
68
+ };
69
+ }
70
+ watchColumns() {
71
+ this.getColumns();
72
+ }
73
+ watchDefaultColSpan() {
74
+ this.getColSpan();
75
+ }
76
+ watchDefaultColWidth(newValue) {
77
+ if (this.type === "fixed") {
78
+ this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, newValue);
79
+ }
80
+ }
81
+ watchDefaultRowSpan(newValue) {
82
+ this.el.style.setProperty("--ic-layout-grid-row-span", `${newValue}`);
83
+ }
84
+ watchGridSpacing() {
85
+ this.getGridSpacing();
86
+ }
87
+ watchRows(newValue) {
88
+ this.el.style.setProperty("--ic-layout-grid-rows", `${newValue}`);
89
+ }
90
+ watchType(newValue) {
91
+ this.getColumns();
92
+ if (newValue === "fixed" && this.defaultColWidth) {
93
+ this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, this.defaultColWidth);
94
+ }
95
+ else {
96
+ this.el.style.removeProperty(this.COL_WIDTH_CSS_PROP);
97
+ }
98
+ }
99
+ componentWillLoad() {
100
+ if (this.columns === undefined) {
101
+ if (this.type === "fixed") {
102
+ this.columns = 12;
103
+ }
104
+ else if (this.type === "fluid") {
105
+ this.columns = {
106
+ xs: 2,
107
+ sm: 4,
108
+ md: 8,
109
+ lg: 12,
110
+ xl: 12,
111
+ };
112
+ }
113
+ }
114
+ this.getColumns();
115
+ this.getColSpan();
116
+ this.getGridSpacing();
117
+ if (this.type === "fixed" && this.defaultColWidth) {
118
+ this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, this.defaultColWidth);
119
+ }
120
+ if (this.rows) {
121
+ this.el.style.setProperty("--ic-layout-grid-rows", `${this.rows}`);
122
+ this.el.style.setProperty("--ic-layout-grid-row-span", `${this.defaultRowSpan}`);
123
+ }
124
+ }
125
+ render() {
126
+ const { aligned, fullHeight } = this;
127
+ return (h(Host, { key: '95699906353df84f439ec7c7ed628f4ba9c80b4e', class: {
128
+ [`ic-layout-grid-aligned-${aligned}`]: true,
129
+ ["ic-layout-grid-no-vertical-padding"]: !!fullHeight,
130
+ } }, h("slot", { key: '5642340495e02e53b2e7248e0f254b32b95b3b3f' })));
131
+ }
132
+ static get is() { return "ic-layout-grid"; }
133
+ static get encapsulation() { return "shadow"; }
134
+ static get originalStyleUrls() {
135
+ return {
136
+ "$": ["ic-layout-grid.css"]
137
+ };
138
+ }
139
+ static get styleUrls() {
140
+ return {
141
+ "$": ["ic-layout-grid.css"]
142
+ };
143
+ }
144
+ static get properties() {
145
+ return {
146
+ "aligned": {
147
+ "type": "string",
148
+ "mutable": false,
149
+ "complexType": {
150
+ "original": "IcAlignment",
151
+ "resolved": "\"center\" | \"full-width\" | \"left\" | undefined",
152
+ "references": {
153
+ "IcAlignment": {
154
+ "location": "import",
155
+ "path": "../../utils/types",
156
+ "id": "src/utils/types.ts::IcAlignment"
157
+ }
158
+ }
159
+ },
160
+ "required": false,
161
+ "optional": true,
162
+ "docs": {
163
+ "tags": [],
164
+ "text": "The alignment of the grid."
165
+ },
166
+ "getter": false,
167
+ "setter": false,
168
+ "attribute": "aligned",
169
+ "reflect": false,
170
+ "defaultValue": "\"left\""
171
+ },
172
+ "columns": {
173
+ "type": "number",
174
+ "mutable": false,
175
+ "complexType": {
176
+ "original": "IcGridBreakpoints",
177
+ "resolved": "number | undefined | { xs?: number | undefined; sm?: number | undefined; md?: number | undefined; lg?: number | undefined; xl?: number | undefined; }",
178
+ "references": {
179
+ "IcGridBreakpoints": {
180
+ "location": "import",
181
+ "path": "./ic-layout-grid.types",
182
+ "id": "src/components/ic-layout-grid/ic-layout-grid.types.ts::IcGridBreakpoints"
183
+ }
184
+ }
185
+ },
186
+ "required": false,
187
+ "optional": true,
188
+ "docs": {
189
+ "tags": [],
190
+ "text": "The number of columns in the grid.\nThis can be a number or an object specifying different values for each breakpoint."
191
+ },
192
+ "getter": false,
193
+ "setter": false,
194
+ "attribute": "columns",
195
+ "reflect": false
196
+ },
197
+ "defaultColSpan": {
198
+ "type": "number",
199
+ "mutable": false,
200
+ "complexType": {
201
+ "original": "IcGridBreakpoints",
202
+ "resolved": "number | undefined | { xs?: number | undefined; sm?: number | undefined; md?: number | undefined; lg?: number | undefined; xl?: number | undefined; }",
203
+ "references": {
204
+ "IcGridBreakpoints": {
205
+ "location": "import",
206
+ "path": "./ic-layout-grid.types",
207
+ "id": "src/components/ic-layout-grid/ic-layout-grid.types.ts::IcGridBreakpoints"
208
+ }
209
+ }
210
+ },
211
+ "required": false,
212
+ "optional": true,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "The default column span for grid items."
216
+ },
217
+ "getter": false,
218
+ "setter": false,
219
+ "attribute": "default-col-span",
220
+ "reflect": false,
221
+ "defaultValue": "1"
222
+ },
223
+ "defaultColWidth": {
224
+ "type": "string",
225
+ "mutable": false,
226
+ "complexType": {
227
+ "original": "string",
228
+ "resolved": "string | undefined",
229
+ "references": {}
230
+ },
231
+ "required": false,
232
+ "optional": true,
233
+ "docs": {
234
+ "tags": [],
235
+ "text": "The default column width for grid items.\nThis is used when the grid type is set to \"fixed\"."
236
+ },
237
+ "getter": false,
238
+ "setter": false,
239
+ "attribute": "default-col-width",
240
+ "reflect": false,
241
+ "defaultValue": "\"64px\""
242
+ },
243
+ "defaultRowSpan": {
244
+ "type": "number",
245
+ "mutable": false,
246
+ "complexType": {
247
+ "original": "number",
248
+ "resolved": "number | undefined",
249
+ "references": {}
250
+ },
251
+ "required": false,
252
+ "optional": true,
253
+ "docs": {
254
+ "tags": [],
255
+ "text": "The default row span for grid items."
256
+ },
257
+ "getter": false,
258
+ "setter": false,
259
+ "attribute": "default-row-span",
260
+ "reflect": false,
261
+ "defaultValue": "1"
262
+ },
263
+ "fullHeight": {
264
+ "type": "boolean",
265
+ "mutable": false,
266
+ "complexType": {
267
+ "original": "boolean",
268
+ "resolved": "boolean | undefined",
269
+ "references": {}
270
+ },
271
+ "required": false,
272
+ "optional": true,
273
+ "docs": {
274
+ "tags": [],
275
+ "text": "If `true`, the standard vertical padding from the grid will be removed."
276
+ },
277
+ "getter": false,
278
+ "setter": false,
279
+ "attribute": "full-height",
280
+ "reflect": false,
281
+ "defaultValue": "false"
282
+ },
283
+ "gridSpacing": {
284
+ "type": "number",
285
+ "mutable": false,
286
+ "complexType": {
287
+ "original": "number",
288
+ "resolved": "number | undefined",
289
+ "references": {}
290
+ },
291
+ "required": false,
292
+ "optional": true,
293
+ "docs": {
294
+ "tags": [],
295
+ "text": "The space between grid items, in multiples of the base spacing unit (`var(--ic-space-xs)`)."
296
+ },
297
+ "getter": false,
298
+ "setter": false,
299
+ "attribute": "grid-spacing",
300
+ "reflect": false,
301
+ "defaultValue": "2"
302
+ },
303
+ "rows": {
304
+ "type": "number",
305
+ "mutable": false,
306
+ "complexType": {
307
+ "original": "number",
308
+ "resolved": "number | undefined",
309
+ "references": {}
310
+ },
311
+ "required": false,
312
+ "optional": true,
313
+ "docs": {
314
+ "tags": [],
315
+ "text": "The number of rows in the grid."
316
+ },
317
+ "getter": false,
318
+ "setter": false,
319
+ "attribute": "rows",
320
+ "reflect": false,
321
+ "defaultValue": "1"
322
+ },
323
+ "type": {
324
+ "type": "string",
325
+ "mutable": false,
326
+ "complexType": {
327
+ "original": "IcGridType",
328
+ "resolved": "\"fixed\" | \"fluid\"",
329
+ "references": {
330
+ "IcGridType": {
331
+ "location": "import",
332
+ "path": "./ic-layout-grid.types",
333
+ "id": "src/components/ic-layout-grid/ic-layout-grid.types.ts::IcGridType"
334
+ }
335
+ }
336
+ },
337
+ "required": false,
338
+ "optional": false,
339
+ "docs": {
340
+ "tags": [],
341
+ "text": "The layout type of the grid."
342
+ },
343
+ "getter": false,
344
+ "setter": false,
345
+ "attribute": "type",
346
+ "reflect": false,
347
+ "defaultValue": "\"fixed\""
348
+ }
349
+ };
350
+ }
351
+ static get elementRef() { return "el"; }
352
+ static get watchers() {
353
+ return [{
354
+ "propName": "columns",
355
+ "methodName": "watchColumns"
356
+ }, {
357
+ "propName": "defaultColSpan",
358
+ "methodName": "watchDefaultColSpan"
359
+ }, {
360
+ "propName": "defaultColWidth",
361
+ "methodName": "watchDefaultColWidth"
362
+ }, {
363
+ "propName": "defaultRowSpan",
364
+ "methodName": "watchDefaultRowSpan"
365
+ }, {
366
+ "propName": "gridSpacing",
367
+ "methodName": "watchGridSpacing"
368
+ }, {
369
+ "propName": "rows",
370
+ "methodName": "watchRows"
371
+ }, {
372
+ "propName": "type",
373
+ "methodName": "watchType"
374
+ }];
375
+ }
376
+ }
377
+ //# sourceMappingURL=ic-layout-grid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-layout-grid.js","sourceRoot":"","sources":["../../../src/components/ic-layout-grid/ic-layout-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAS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C;YAClD,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;QAC3E,CAAC;QACD,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,uBAAuB,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACnE,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CACvB,2BAA2B,EAC3B,GAAG,IAAI,CAAC,cAAc,EAAE,CACzB,CAAC;QACJ,CAAC;IACH,CAAC;IAiDD,MAAM;QACJ,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;QAErC,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,CAAC,0BAA0B,OAAO,EAAE,CAAC,EAAE,IAAI;gBAC3C,CAAC,oCAAoC,CAAC,EAAE,CAAC,CAAC,UAAU;aACrD;YAED,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, Host, h, Element, Watch } from \"@stencil/core\";\nimport { IcAlignment } from \"../../utils/types\";\nimport { IcGridBreakpoints, IcGridType } from \"./ic-layout-grid.types\";\n\n@Component({\n tag: \"ic-layout-grid\",\n styleUrl: \"ic-layout-grid.css\",\n shadow: true,\n})\nexport class LayoutGrid {\n private COL_WIDTH_CSS_PROP = \"--ic-layout-grid-col-width\";\n\n @Element() el: HTMLIcLayoutGridElement;\n\n /**\n * The alignment of the grid.\n */\n @Prop() aligned?: IcAlignment = \"left\";\n\n /**\n * The number of columns in the grid.\n * This can be a number or an object specifying different values for each breakpoint.\n */\n @Prop() columns?: IcGridBreakpoints;\n @Watch(\"columns\")\n watchColumns() {\n this.getColumns();\n }\n\n /**\n * The default column span for grid items.\n */\n @Prop() defaultColSpan?: IcGridBreakpoints = 1;\n @Watch(\"defaultColSpan\")\n watchDefaultColSpan() {\n this.getColSpan();\n }\n\n /**\n * The default column width for grid items.\n * This is used when the grid type is set to \"fixed\".\n */\n @Prop() defaultColWidth?: string = \"64px\";\n @Watch(\"defaultColWidth\")\n watchDefaultColWidth(newValue: string) {\n if (this.type === \"fixed\") {\n this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, newValue);\n }\n }\n\n /**\n * The default row span for grid items.\n */\n @Prop() defaultRowSpan?: number = 1;\n @Watch(\"defaultRowSpan\")\n watchDefaultRowSpan(newValue: number) {\n this.el.style.setProperty(\"--ic-layout-grid-row-span\", `${newValue}`);\n }\n\n /**\n * If `true`, the standard vertical padding from the grid will be removed.\n */\n @Prop() fullHeight?: boolean = false;\n\n /**\n * The space between grid items, in multiples of the base spacing unit (`var(--ic-space-xs)`).\n */\n @Prop() gridSpacing?: number = 2;\n @Watch(\"gridSpacing\")\n watchGridSpacing() {\n this.getGridSpacing();\n }\n\n /**\n * The number of rows in the grid.\n */\n @Prop() rows?: number = 1;\n @Watch(\"rows\")\n watchRows(newValue: number) {\n this.el.style.setProperty(\"--ic-layout-grid-rows\", `${newValue}`);\n }\n\n /**\n * The layout type of the grid.\n */\n @Prop() type: IcGridType = \"fixed\";\n @Watch(\"type\")\n watchType(newValue: IcGridType) {\n this.getColumns();\n if (newValue === \"fixed\" && this.defaultColWidth) {\n this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, this.defaultColWidth);\n } else {\n this.el.style.removeProperty(this.COL_WIDTH_CSS_PROP);\n }\n }\n\n componentWillLoad(): void {\n if (this.columns === undefined) {\n if (this.type === \"fixed\") {\n this.columns = 12;\n } else if (this.type === \"fluid\") {\n this.columns = {\n xs: 2,\n sm: 4,\n md: 8,\n lg: 12,\n xl: 12,\n };\n }\n }\n this.getColumns();\n this.getColSpan();\n this.getGridSpacing();\n if (this.type === \"fixed\" && this.defaultColWidth) {\n this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, this.defaultColWidth);\n }\n if (this.rows) {\n this.el.style.setProperty(\"--ic-layout-grid-rows\", `${this.rows}`);\n this.el.style.setProperty(\n \"--ic-layout-grid-row-span\",\n `${this.defaultRowSpan}`\n );\n }\n }\n\n private getColumns = () => {\n if (typeof this.columns === \"number\") {\n this.el.style.setProperty(\n \"--ic-layout-grid-columns\",\n this.columns.toString()\n );\n } else if (typeof this.columns === \"object\") {\n Object.entries(this.columns).forEach(([breakpoint, value]) => {\n if (value !== undefined) {\n this.el.style.setProperty(\n `--ic-layout-grid-columns-${breakpoint}`,\n value.toString()\n );\n }\n });\n }\n };\n\n private getColSpan = () => {\n if (this.defaultColSpan !== undefined) {\n if (typeof this.defaultColSpan === \"number\") {\n (Array.from(this.el.children) as HTMLElement[]).forEach((child) => {\n child.style.setProperty(\n \"--ic-layout-grid-col-span\",\n `${this.defaultColSpan}`\n );\n });\n } else if (typeof this.defaultColSpan === \"object\") {\n Object.entries(this.defaultColSpan).forEach(([breakpoint, value]) => {\n if (value !== undefined) {\n this.el.style.setProperty(\n `--ic-layout-grid-col-span-${breakpoint}`,\n value.toString()\n );\n }\n });\n }\n }\n };\n\n private getGridSpacing = () => {\n this.el.style.setProperty(\n \"--ic-layout-grid-spacing\",\n `calc(var(--ic-space-xs) * ${this.gridSpacing})`\n );\n };\n\n render() {\n const { aligned, fullHeight } = this;\n\n return (\n <Host\n class={{\n [`ic-layout-grid-aligned-${aligned}`]: true,\n [\"ic-layout-grid-no-vertical-padding\"]: !!fullHeight,\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"]}