@ukic/web-components 3.24.0 → 3.25.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 (321) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/ic-button_3.cjs.entry.js +16 -8
  3. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  4. package/dist/cjs/ic-card-horizontal.cjs.entry.js +5 -5
  5. package/dist/cjs/ic-checkbox-group.cjs.entry.js +2 -2
  6. package/dist/cjs/ic-checkbox.cjs.entry.js +4 -4
  7. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  8. package/dist/cjs/ic-data-row.cjs.entry.js +2 -2
  9. package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
  10. package/dist/cjs/ic-empty-state.cjs.entry.js +2 -2
  11. package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
  12. package/dist/cjs/ic-hero.cjs.entry.js +4 -4
  13. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
  14. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +8 -8
  15. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-input-label_2.cjs.entry.js +5 -5
  17. package/dist/cjs/ic-layout-grid-item.cjs.entry.js +2 -2
  18. package/dist/cjs/ic-layout-grid.cjs.entry.js +2 -2
  19. package/dist/cjs/ic-link.cjs.entry.js +1 -1
  20. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  21. package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
  22. package/dist/cjs/ic-navigation-menu.cjs.entry.js +4 -4
  23. package/dist/cjs/ic-page-header.cjs.entry.js +6 -6
  24. package/dist/cjs/ic-pagination-bar.cjs.entry.js +5 -5
  25. package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-pagination_3.cjs.entry.js +24 -24
  27. package/dist/cjs/ic-popover-menu.cjs.entry.js +4 -4
  28. package/dist/cjs/ic-radio-group.cjs.entry.js +4 -4
  29. package/dist/cjs/ic-radio-option.cjs.entry.js +4 -4
  30. package/dist/cjs/ic-search-bar.cjs.entry.js +9 -9
  31. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  32. package/dist/cjs/ic-side-navigation.cjs.entry.js +4 -4
  33. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  34. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  35. package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
  36. package/dist/cjs/ic-step.cjs.entry.js +13 -13
  37. package/dist/cjs/ic-stepper.cjs.entry.js +2 -2
  38. package/dist/cjs/ic-switch.cjs.entry.js +6 -8
  39. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  41. package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
  42. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  43. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  44. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  45. package/dist/cjs/ic-toast.cjs.entry.js +5 -5
  46. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +2 -2
  47. package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
  48. package/dist/cjs/ic-typography.cjs.entry.js +2 -2
  49. package/dist/cjs/loader.cjs.js +1 -1
  50. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +5 -5
  51. package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -4
  52. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +2 -2
  53. package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
  54. package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
  55. package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
  56. package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
  57. package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
  58. package/dist/collection/components/ic-hero/ic-hero.js +4 -4
  59. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
  60. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
  61. package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
  62. package/dist/collection/components/ic-input-label/ic-input-label.js +2 -2
  63. package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
  64. package/dist/collection/components/ic-layout-grid/ic-layout-grid.js +2 -2
  65. package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js +2 -2
  66. package/dist/collection/components/ic-link/ic-link.js +1 -1
  67. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +5 -5
  68. package/dist/collection/components/ic-menu/ic-menu.js +3 -3
  69. package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
  70. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
  71. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
  72. package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
  73. package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
  74. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +5 -5
  75. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
  76. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +4 -4
  77. package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
  78. package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
  79. package/dist/collection/components/ic-search-bar/ic-search-bar.js +10 -10
  80. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  81. package/dist/collection/components/ic-select/ic-select.js +15 -15
  82. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
  83. package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
  84. package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
  85. package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
  86. package/dist/collection/components/ic-step/ic-step.js +13 -13
  87. package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
  88. package/dist/collection/components/ic-switch/ic-switch.css +108 -43
  89. package/dist/collection/components/ic-switch/ic-switch.js +9 -11
  90. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  91. package/dist/collection/components/ic-switch/ic-switch.stories.js +8 -4
  92. package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
  93. package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
  94. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
  95. package/dist/collection/components/ic-text-field/ic-text-field.js +5 -5
  96. package/dist/collection/components/ic-theme/ic-theme.js +1 -1
  97. package/dist/collection/components/ic-toast/ic-toast.js +5 -5
  98. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
  99. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
  100. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
  101. package/dist/collection/components/ic-tooltip/ic-tooltip.css +21 -0
  102. package/dist/collection/components/ic-tooltip/ic-tooltip.js +33 -3
  103. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  104. package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +128 -6
  105. package/dist/collection/components/ic-typography/ic-typography.js +2 -2
  106. package/dist/components/helpers.js +1 -1
  107. package/dist/components/ic-action-chip.js +1 -1
  108. package/dist/components/ic-alert.js +1 -1
  109. package/dist/components/ic-card-horizontal.js +6 -6
  110. package/dist/components/ic-card-vertical.js +1 -1
  111. package/dist/components/ic-checkbox-group.js +2 -2
  112. package/dist/components/ic-checkbox.js +4 -4
  113. package/dist/components/ic-chip.js +1 -1
  114. package/dist/components/ic-data-list.js +2 -2
  115. package/dist/components/ic-data-row.js +2 -2
  116. package/dist/components/ic-dialog.js +1 -1
  117. package/dist/components/ic-empty-state.js +3 -3
  118. package/dist/components/ic-footer-link.js +2 -2
  119. package/dist/components/ic-footer.js +1 -1
  120. package/dist/components/ic-hero.js +5 -5
  121. package/dist/components/ic-horizontal-scroll2.js +5 -5
  122. package/dist/components/ic-input-component-container2.js +4 -4
  123. package/dist/components/ic-input-container2.js +2 -2
  124. package/dist/components/ic-input-label2.js +2 -2
  125. package/dist/components/ic-input-validation2.js +3 -3
  126. package/dist/components/ic-layout-grid-item.js +2 -2
  127. package/dist/components/ic-layout-grid.js +2 -2
  128. package/dist/components/ic-link2.js +1 -1
  129. package/dist/components/ic-loading-indicator2.js +5 -5
  130. package/dist/components/ic-menu-group.js +1 -1
  131. package/dist/components/ic-menu2.js +3 -3
  132. package/dist/components/ic-navigation-group.js +1 -1
  133. package/dist/components/ic-navigation-menu2.js +4 -4
  134. package/dist/components/ic-page-header.js +6 -6
  135. package/dist/components/ic-page-header.js.map +1 -1
  136. package/dist/components/ic-pagination-bar.js +5 -5
  137. package/dist/components/ic-pagination-bar.js.map +1 -1
  138. package/dist/components/ic-pagination-item2.js +1 -1
  139. package/dist/components/ic-pagination2.js +4 -4
  140. package/dist/components/ic-popover-menu.js +4 -4
  141. package/dist/components/ic-popover-menu.js.map +1 -1
  142. package/dist/components/ic-radio-group.js +4 -4
  143. package/dist/components/ic-radio-group.js.map +1 -1
  144. package/dist/components/ic-radio-option.js +4 -4
  145. package/dist/components/ic-radio-option.js.map +1 -1
  146. package/dist/components/ic-search-bar.js +9 -9
  147. package/dist/components/ic-section-container2.js +2 -2
  148. package/dist/components/ic-select2.js +15 -15
  149. package/dist/components/ic-side-navigation.js +5 -5
  150. package/dist/components/ic-skeleton.js +2 -2
  151. package/dist/components/ic-skeleton.js.map +1 -1
  152. package/dist/components/ic-skip-link.js +2 -2
  153. package/dist/components/ic-status-tag.js +2 -2
  154. package/dist/components/ic-step.js +13 -13
  155. package/dist/components/ic-step.js.map +1 -1
  156. package/dist/components/ic-stepper.js +2 -2
  157. package/dist/components/ic-switch.js +6 -8
  158. package/dist/components/ic-switch.js.map +1 -1
  159. package/dist/components/ic-tab-context.js +1 -1
  160. package/dist/components/ic-tab-group.js +2 -2
  161. package/dist/components/ic-tab-panel.js +2 -2
  162. package/dist/components/ic-text-field2.js +5 -5
  163. package/dist/components/ic-theme.js +1 -1
  164. package/dist/components/ic-toast-region.js +1 -1
  165. package/dist/components/ic-toast.js +5 -5
  166. package/dist/components/ic-toggle-button-group.js +2 -2
  167. package/dist/components/ic-toggle-button.js +2 -2
  168. package/dist/components/ic-tooltip2.js +13 -4
  169. package/dist/components/ic-tooltip2.js.map +1 -1
  170. package/dist/components/ic-typography2.js +2 -2
  171. package/dist/core/core.esm.js +1 -1
  172. package/dist/core/core.esm.js.map +1 -1
  173. package/dist/core/{p-be0010c0.entry.js → p-023cf5d9.entry.js} +2 -2
  174. package/dist/core/{p-52be32d7.entry.js → p-171a19bf.entry.js} +3 -3
  175. package/dist/core/p-171a19bf.entry.js.map +1 -0
  176. package/dist/core/{p-9da03270.entry.js → p-1cfaa962.entry.js} +2 -2
  177. package/dist/core/{p-1bacfc3c.entry.js → p-23fb87be.entry.js} +2 -2
  178. package/dist/core/{p-2a1faef2.entry.js → p-2424f82f.entry.js} +2 -2
  179. package/dist/core/{p-5d01fefb.entry.js → p-243ae8fe.entry.js} +2 -2
  180. package/dist/core/{p-aad03a3c.entry.js → p-271ee0bc.entry.js} +2 -2
  181. package/dist/core/{p-27540e3e.entry.js → p-343670b4.entry.js} +2 -2
  182. package/dist/core/{p-574ef8c9.entry.js → p-3da9774b.entry.js} +2 -2
  183. package/dist/core/{p-111abe0f.entry.js → p-3ee66d00.entry.js} +2 -2
  184. package/dist/core/{p-884af70c.entry.js → p-406647b8.entry.js} +2 -2
  185. package/dist/core/{p-ee63aaf8.entry.js → p-526dd099.entry.js} +2 -2
  186. package/dist/core/{p-b2aef77d.entry.js → p-5fc0dc36.entry.js} +2 -2
  187. package/dist/core/{p-ba80d403.entry.js → p-61799a8b.entry.js} +2 -2
  188. package/dist/core/{p-7410fde3.entry.js → p-6b5edd6b.entry.js} +2 -2
  189. package/dist/core/{p-2e15136e.entry.js → p-70ca7796.entry.js} +2 -2
  190. package/dist/core/{p-570d763b.entry.js → p-72f52f20.entry.js} +2 -2
  191. package/dist/core/{p-f82baa04.entry.js → p-74a3a450.entry.js} +2 -2
  192. package/dist/core/{p-c156e6e9.entry.js → p-796fc111.entry.js} +2 -2
  193. package/dist/core/{p-b52c44eb.entry.js → p-85232cec.entry.js} +2 -2
  194. package/dist/core/{p-b5e683d0.entry.js → p-85ac0d78.entry.js} +2 -2
  195. package/dist/core/{p-b4e8e438.entry.js → p-8fc5e9f9.entry.js} +2 -2
  196. package/dist/core/{p-fe9c3f6e.entry.js → p-9267c160.entry.js} +2 -2
  197. package/dist/core/{p-b431dd8a.entry.js → p-970e190c.entry.js} +2 -2
  198. package/dist/core/p-98dee727.entry.js +2 -0
  199. package/dist/core/p-98dee727.entry.js.map +1 -0
  200. package/dist/core/{p-4613f697.entry.js → p-99b20121.entry.js} +2 -2
  201. package/dist/core/{p-59c5265c.entry.js → p-a7c263bd.entry.js} +2 -2
  202. package/dist/core/{p-4e59d889.entry.js → p-ab104baa.entry.js} +2 -2
  203. package/dist/core/{p-9502fb86.entry.js → p-b58fb588.entry.js} +2 -2
  204. package/dist/core/p-bb52e752.entry.js +2 -0
  205. package/dist/core/p-bb52e752.entry.js.map +1 -0
  206. package/dist/core/{p-6183ad85.entry.js → p-c0b70c08.entry.js} +2 -2
  207. package/dist/core/{p-66bfff48.entry.js → p-c41fd2cf.entry.js} +2 -2
  208. package/dist/core/{p-c9fbad60.entry.js → p-c82c2362.entry.js} +2 -2
  209. package/dist/core/{p-174a70c4.entry.js → p-ca64b7ba.entry.js} +2 -2
  210. package/dist/core/{p-cad23b7d.entry.js → p-cd963de6.entry.js} +2 -2
  211. package/dist/core/{p-83578f1d.entry.js → p-cf87b6db.entry.js} +2 -2
  212. package/dist/core/{p-dbb1370f.entry.js → p-d0d324b4.entry.js} +2 -2
  213. package/dist/core/{p-ea890d3d.entry.js → p-d0dd9f2c.entry.js} +2 -2
  214. package/dist/core/{p-5976de6e.entry.js → p-d1220d2a.entry.js} +2 -2
  215. package/dist/core/{p-56de4f4b.entry.js → p-d7c6fc8d.entry.js} +2 -2
  216. package/dist/core/{p-c14ec3e2.entry.js → p-e5266c19.entry.js} +2 -2
  217. package/dist/core/{p-e8e45d88.entry.js → p-ec1ea1a7.entry.js} +2 -2
  218. package/dist/core/{p-a6ebe253.entry.js → p-ef96e1aa.entry.js} +2 -2
  219. package/dist/core/{p-571404d0.entry.js → p-fd9ea62a.entry.js} +2 -2
  220. package/dist/esm/core.js +1 -1
  221. package/dist/esm/ic-button_3.entry.js +17 -9
  222. package/dist/esm/ic-button_3.entry.js.map +1 -1
  223. package/dist/esm/ic-card-horizontal.entry.js +5 -5
  224. package/dist/esm/ic-checkbox-group.entry.js +2 -2
  225. package/dist/esm/ic-checkbox.entry.js +4 -4
  226. package/dist/esm/ic-data-list.entry.js +2 -2
  227. package/dist/esm/ic-data-row.entry.js +2 -2
  228. package/dist/esm/ic-dialog.entry.js +1 -1
  229. package/dist/esm/ic-empty-state.entry.js +2 -2
  230. package/dist/esm/ic-footer-link.entry.js +2 -2
  231. package/dist/esm/ic-hero.entry.js +4 -4
  232. package/dist/esm/ic-horizontal-scroll.entry.js +5 -5
  233. package/dist/esm/ic-input-component-container_3.entry.js +8 -8
  234. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  235. package/dist/esm/ic-input-label_2.entry.js +5 -5
  236. package/dist/esm/ic-layout-grid-item.entry.js +2 -2
  237. package/dist/esm/ic-layout-grid.entry.js +2 -2
  238. package/dist/esm/ic-link.entry.js +1 -1
  239. package/dist/esm/ic-menu-group.entry.js +1 -1
  240. package/dist/esm/ic-navigation-group.entry.js +1 -1
  241. package/dist/esm/ic-navigation-menu.entry.js +4 -4
  242. package/dist/esm/ic-page-header.entry.js +6 -6
  243. package/dist/esm/ic-pagination-bar.entry.js +5 -5
  244. package/dist/esm/ic-pagination-item.entry.js +1 -1
  245. package/dist/esm/ic-pagination_3.entry.js +24 -24
  246. package/dist/esm/ic-popover-menu.entry.js +4 -4
  247. package/dist/esm/ic-radio-group.entry.js +4 -4
  248. package/dist/esm/ic-radio-option.entry.js +4 -4
  249. package/dist/esm/ic-search-bar.entry.js +9 -9
  250. package/dist/esm/ic-section-container.entry.js +2 -2
  251. package/dist/esm/ic-side-navigation.entry.js +4 -4
  252. package/dist/esm/ic-skeleton.entry.js +2 -2
  253. package/dist/esm/ic-skip-link.entry.js +2 -2
  254. package/dist/esm/ic-status-tag.entry.js +2 -2
  255. package/dist/esm/ic-step.entry.js +13 -13
  256. package/dist/esm/ic-stepper.entry.js +2 -2
  257. package/dist/esm/ic-switch.entry.js +6 -8
  258. package/dist/esm/ic-switch.entry.js.map +1 -1
  259. package/dist/esm/ic-tab-context.entry.js +1 -1
  260. package/dist/esm/ic-tab-group.entry.js +2 -2
  261. package/dist/esm/ic-tab-panel.entry.js +2 -2
  262. package/dist/esm/ic-theme.entry.js +1 -1
  263. package/dist/esm/ic-toast-region.entry.js +1 -1
  264. package/dist/esm/ic-toast.entry.js +5 -5
  265. package/dist/esm/ic-toggle-button-group.entry.js +2 -2
  266. package/dist/esm/ic-toggle-button.entry.js +2 -2
  267. package/dist/esm/ic-typography.entry.js +2 -2
  268. package/dist/esm/loader.js +1 -1
  269. package/dist/types/components/ic-switch/ic-switch.d.ts +2 -2
  270. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +8 -0
  271. package/dist/types/components.d.ts +10 -2
  272. package/hydrate/index.js +181 -171
  273. package/hydrate/index.mjs +181 -171
  274. package/package.json +9 -8
  275. package/vscode-data.json +10 -3
  276. package/dist/core/p-52be32d7.entry.js.map +0 -1
  277. package/dist/core/p-75bf2d00.entry.js +0 -2
  278. package/dist/core/p-75bf2d00.entry.js.map +0 -1
  279. package/dist/core/p-cc3cda99.entry.js +0 -2
  280. package/dist/core/p-cc3cda99.entry.js.map +0 -1
  281. /package/dist/core/{p-be0010c0.entry.js.map → p-023cf5d9.entry.js.map} +0 -0
  282. /package/dist/core/{p-9da03270.entry.js.map → p-1cfaa962.entry.js.map} +0 -0
  283. /package/dist/core/{p-1bacfc3c.entry.js.map → p-23fb87be.entry.js.map} +0 -0
  284. /package/dist/core/{p-2a1faef2.entry.js.map → p-2424f82f.entry.js.map} +0 -0
  285. /package/dist/core/{p-5d01fefb.entry.js.map → p-243ae8fe.entry.js.map} +0 -0
  286. /package/dist/core/{p-aad03a3c.entry.js.map → p-271ee0bc.entry.js.map} +0 -0
  287. /package/dist/core/{p-27540e3e.entry.js.map → p-343670b4.entry.js.map} +0 -0
  288. /package/dist/core/{p-574ef8c9.entry.js.map → p-3da9774b.entry.js.map} +0 -0
  289. /package/dist/core/{p-111abe0f.entry.js.map → p-3ee66d00.entry.js.map} +0 -0
  290. /package/dist/core/{p-884af70c.entry.js.map → p-406647b8.entry.js.map} +0 -0
  291. /package/dist/core/{p-ee63aaf8.entry.js.map → p-526dd099.entry.js.map} +0 -0
  292. /package/dist/core/{p-b2aef77d.entry.js.map → p-5fc0dc36.entry.js.map} +0 -0
  293. /package/dist/core/{p-ba80d403.entry.js.map → p-61799a8b.entry.js.map} +0 -0
  294. /package/dist/core/{p-7410fde3.entry.js.map → p-6b5edd6b.entry.js.map} +0 -0
  295. /package/dist/core/{p-2e15136e.entry.js.map → p-70ca7796.entry.js.map} +0 -0
  296. /package/dist/core/{p-570d763b.entry.js.map → p-72f52f20.entry.js.map} +0 -0
  297. /package/dist/core/{p-f82baa04.entry.js.map → p-74a3a450.entry.js.map} +0 -0
  298. /package/dist/core/{p-c156e6e9.entry.js.map → p-796fc111.entry.js.map} +0 -0
  299. /package/dist/core/{p-b52c44eb.entry.js.map → p-85232cec.entry.js.map} +0 -0
  300. /package/dist/core/{p-b5e683d0.entry.js.map → p-85ac0d78.entry.js.map} +0 -0
  301. /package/dist/core/{p-b4e8e438.entry.js.map → p-8fc5e9f9.entry.js.map} +0 -0
  302. /package/dist/core/{p-fe9c3f6e.entry.js.map → p-9267c160.entry.js.map} +0 -0
  303. /package/dist/core/{p-b431dd8a.entry.js.map → p-970e190c.entry.js.map} +0 -0
  304. /package/dist/core/{p-4613f697.entry.js.map → p-99b20121.entry.js.map} +0 -0
  305. /package/dist/core/{p-59c5265c.entry.js.map → p-a7c263bd.entry.js.map} +0 -0
  306. /package/dist/core/{p-4e59d889.entry.js.map → p-ab104baa.entry.js.map} +0 -0
  307. /package/dist/core/{p-9502fb86.entry.js.map → p-b58fb588.entry.js.map} +0 -0
  308. /package/dist/core/{p-6183ad85.entry.js.map → p-c0b70c08.entry.js.map} +0 -0
  309. /package/dist/core/{p-66bfff48.entry.js.map → p-c41fd2cf.entry.js.map} +0 -0
  310. /package/dist/core/{p-c9fbad60.entry.js.map → p-c82c2362.entry.js.map} +0 -0
  311. /package/dist/core/{p-174a70c4.entry.js.map → p-ca64b7ba.entry.js.map} +0 -0
  312. /package/dist/core/{p-cad23b7d.entry.js.map → p-cd963de6.entry.js.map} +0 -0
  313. /package/dist/core/{p-83578f1d.entry.js.map → p-cf87b6db.entry.js.map} +0 -0
  314. /package/dist/core/{p-dbb1370f.entry.js.map → p-d0d324b4.entry.js.map} +0 -0
  315. /package/dist/core/{p-ea890d3d.entry.js.map → p-d0dd9f2c.entry.js.map} +0 -0
  316. /package/dist/core/{p-5976de6e.entry.js.map → p-d1220d2a.entry.js.map} +0 -0
  317. /package/dist/core/{p-56de4f4b.entry.js.map → p-d7c6fc8d.entry.js.map} +0 -0
  318. /package/dist/core/{p-c14ec3e2.entry.js.map → p-e5266c19.entry.js.map} +0 -0
  319. /package/dist/core/{p-e8e45d88.entry.js.map → p-ec1ea1a7.entry.js.map} +0 -0
  320. /package/dist/core/{p-a6ebe253.entry.js.map → p-ef96e1aa.entry.js.map} +0 -0
  321. /package/dist/core/{p-571404d0.entry.js.map → p-fd9ea62a.entry.js.map} +0 -0
@@ -38,11 +38,11 @@ export class Skeleton {
38
38
  width: el.style.width || width || DEFAULT_WIDTHS[variant],
39
39
  }
40
40
  : undefined;
41
- return (h(Host, { key: 'a68ad9122c6ad09b2283f2d6168e6286c8c8157f', class: {
41
+ return (h(Host, { key: '67c1971600feaaaf5849048b4bc5ad3d4903ffb4', class: {
42
42
  skeleton: true,
43
43
  "ic-skeleton-circle": variant === "circle",
44
44
  [`ic-theme-${theme}`]: theme !== "inherit",
45
- }, style: style, "aria-disabled": "true" }, h("slot", { key: 'a44bc7abbfb1f33581eec83e06556936ee410636' })));
45
+ }, style: style, "aria-disabled": "true" }, h("slot", { key: 'caf8562f7997131daa69e85d6766b3edf2531259' })));
46
46
  }
47
47
  static get is() { return "ic-skeleton"; }
48
48
  static get encapsulation() { return "shadow"; }
@@ -35,9 +35,9 @@ export class SkipLink {
35
35
  }
36
36
  render() {
37
37
  const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
38
- return (h(Host, { key: '90a25f2594d0169a8ee6f1d03b30a30fccb17168', class: {
38
+ return (h(Host, { key: '2f344a07df5cb31b39b5cd4ca8bc257229646b31', class: {
39
39
  [`ic-theme-${theme}`]: theme !== "inherit",
40
- } }, h("ic-link", { key: '79c0f5121c3ac8bae5992756f3c628f381ebe576', class: {
40
+ } }, h("ic-link", { key: '9b844b5a2f207d08eaa8cbb621d54ed56f5cc28d', class: {
41
41
  "display-top": !inline,
42
42
  "full-width": !!fullWidth,
43
43
  "show-background": !transparentBackground,
@@ -33,12 +33,12 @@ export class StatusTag {
33
33
  }
34
34
  render() {
35
35
  const { label, status, variant, size, announced, theme, uppercase } = this;
36
- return (h(Host, { key: 'e6dae50277c14c03b3d42bc12b880fa421ba5e5b', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, h("strong", { key: 'e92f10182a350fd9ea993bb6376b77463a865c6d', class: {
36
+ return (h(Host, { key: '06426990cc94da53c570547331c63d161675f620', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, h("strong", { key: '2c6d0e05018d59bfc7c1acab4b8ffda5ba4cfce3', class: {
37
37
  ["tag"]: true,
38
38
  [`${variant}-${status}`]: true,
39
39
  ["outlined"]: variant === "outlined",
40
40
  [`${size}`]: true,
41
- } }, h("ic-typography", { key: 'b3a5f6504550096511aa0b0e577be5ed46b9fd84', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, h("span", { key: 'd7cdc4dc4b3e635432d57799cbaea26d5380fea9' }, label)))));
41
+ } }, h("ic-typography", { key: '3af29b781e35ed4817043d4f2f697f468502189a', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, h("span", { key: '4f4759e8dabfff3d686ed3e4cd3975cc0b0c33b4' }, label)))));
42
42
  }
43
43
  static get is() { return "ic-status-tag"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -77,27 +77,27 @@ export class Step {
77
77
  // STATUS ICON FOR COMPACT STEP
78
78
  let statusIcon;
79
79
  if (type === "completed" || compactStepStyling === "completed") {
80
- statusIcon = (h("span", { key: '3e6a788d03556019e87781e4e58306d0081da72a', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
80
+ statusIcon = (h("span", { key: '4d1011a9a12449bd324aff3f404522fde6912be3', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
81
81
  }
82
82
  else if (type === "disabled" || compactStepStyling === "disabled") {
83
- statusIcon = (h("span", { key: 'd3df77790e474794ac3a74cc99c98ec73a51530a', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
83
+ statusIcon = (h("span", { key: '7825f61e87546bcaa9100c439239022abb0f3eb7', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
84
84
  }
85
85
  // COMPACT STEP COMPONENT
86
- const compactStep = (h("div", { key: '58e72e89eb93fd00ea4a76704c3744050eed25d2', class: {
86
+ const compactStep = (h("div", { key: '82c7c26c90ce286582f7ef477129d2ce241200c1', class: {
87
87
  ["step"]: true,
88
88
  ["current"]: !!current,
89
89
  [`compact-step-${compactStepStyling}`]: !!compactStepStyling,
90
90
  ["disabled"]: type === "disabled" || compactStepStyling === "disabled",
91
- } }, h("ic-loading-indicator", { key: 'c7a6e8e70fe3e3a485a5b0c9353b6a7eaf5888d0', class: {
91
+ } }, h("ic-loading-indicator", { key: 'd3d1b2aa382bd8b307433f16aa05f644b275902f', class: {
92
92
  "compact-step-progress-indicator": true,
93
93
  "not-required": type === "disabled" || compactStepStyling === "disabled",
94
- }, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), h("div", { key: '13209e08fa212f80ee2b6b2f04dd65cd3a36f461', class: "heading-area" }, isSlotUsed(this.el, "heading") ? (h("slot", { name: "heading" })) : (h("ic-typography", { variant: "h4", class: "heading" }, heading)), h("div", { key: '7c71fc4f8ce1b59c792c60f2d18cc464ebfc3b0f', class: "info-line" }, h("ic-typography", { key: '942f6be75ff898fccda479f36003b80dcdcad9ed', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, h("span", { key: 'a3ced0ecff13af724c007fa1ca32f7396f114612', class: "visually-hidden" }, ` ${icI18n.steps}`)), (this.subheading ||
94
+ }, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), h("div", { key: 'd0f78f477b4fe29b2ac33798712b70c0c3d2ce41', class: "heading-area" }, isSlotUsed(this.el, "heading") ? (h("slot", { name: "heading" })) : (h("ic-typography", { variant: "h4", class: "heading" }, heading)), h("div", { key: 'f9a074c126d393ec82cf72621e5941c32dbd72fb', class: "info-line" }, h("ic-typography", { key: '1b6bd91bcb1013fa1e23a9e9af49d3da1f25448e', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, h("span", { key: '753bbc4c12a2b968cde11238f46ff4ffbc4f39fd', class: "visually-hidden" }, ` ${icI18n.steps}`)), (this.subheading ||
95
95
  type === "completed" ||
96
96
  type === "disabled" ||
97
97
  (this.variant === "compact" &&
98
98
  !!compactStepStyling &&
99
99
  compactStepStyling !== "active") ||
100
- !!status) && (h("div", { key: '04bb305951a0de96241c64e478b26e12afcd838a', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (h("ic-typography", { key: '3487444c46756faf3f1a88ce4cebd129cbd14d87', variant: "caption" }, subheading !== null && isPropDefined(subheading)
100
+ !!status) && (h("div", { key: '93968f9752cf90df5f67994a3942f38d94323b50', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (h("ic-typography", { key: 'd1879f9dc5a7ea2e9b468fc95593056527e08095', variant: "caption" }, subheading !== null && isPropDefined(subheading)
101
101
  ? subheading
102
102
  : type === "disabled" ||
103
103
  (variant === "compact" &&
@@ -110,26 +110,26 @@ export class Step {
110
110
  // ICON FOR DEFAULT STEP
111
111
  let icon;
112
112
  if (type !== "completed") {
113
- icon = (h("ic-typography", { key: 'e25e3e2da7abbf17fcf8ede4dde3ce26010f68e0', variant: "subtitle-small" }, h("span", { key: 'ae4b4e77475d060dc7ce62796118fd03a0cbdb1f', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
113
+ icon = (h("ic-typography", { key: 'e76d3c6f2fc82ae27e9f19af2ad29374c75271b1', variant: "subtitle-small" }, h("span", { key: '2ada7f696f0e90ecca298a2109d9aaeb70777a1a', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
114
114
  }
115
115
  else {
116
- icon = (h("div", { key: '86b31c3ca79c025e185a5461c210be965b42dc2a', class: "step-icon-inner", "aria-hidden": "true" }, h("span", { key: '9854c6981f84ed0984fb98666a123de0c2a32048', class: "check-icon", innerHTML: checkIcon })));
116
+ icon = (h("div", { key: '195a5f5dd31061a4059020d7fa1d65b15eb29a11', class: "step-icon-inner", "aria-hidden": "true" }, h("span", { key: 'd11d3bf512968fa286309bcd69faa20cd12d3396', class: "check-icon", innerHTML: checkIcon })));
117
117
  }
118
118
  // STEP CONNECT FOR DEFAULT STEP
119
- const partialBar = type === "current" && (h("div", { key: 'af4367f38115d9ee7f0e2112ab62ae7fdfe5b801', class: "step-connect-inner" }));
120
- const finalStep = !lastStep && (h("div", { key: '979da51621c8e026ab2b2d59d7ad83764e0330a7', class: {
119
+ const partialBar = type === "current" && (h("div", { key: '5564ceeb1d40367572f3ae679e7212a2a2a53578', class: "step-connect-inner" }));
120
+ const finalStep = !lastStep && (h("div", { key: 'fae846f5c7d46ad65c7d21a2785526ed6d841444', class: {
121
121
  ["step-connect"]: true,
122
122
  ["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
123
123
  !this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
124
124
  } }, partialBar));
125
125
  // DEFAULT STEP COMPONENT
126
- const defaultStep = (h("div", { key: 'd91c5752a70b8062c91c7a2563229968ed832a2f', class: {
126
+ const defaultStep = (h("div", { key: 'f02d7139a59a46207e7bd308cf90ffd42c14a93e', class: {
127
127
  ["step"]: true,
128
128
  [`${type}`]: true,
129
- } }, h("div", { key: 'df780502b324c87db8eb701d9b4c43e12e6d6b32', class: "step-top" }, h("div", { key: '7e2b4c244ecfe20c71f53d8f825938af39b62f71', class: "step-icon" }, icon), finalStep), (hasHeading || subheading || status) && (h("div", { key: 'e645cb62ca795ee554a1b580e6fdae6555bc410c', class: "heading-area" }, isSlotUsed(this.el, "heading") ? (h("slot", { name: "heading" })) : (h("ic-typography", { variant: "subtitle-large", class: "heading" }, heading)), hasHeading && (subheading || status) && (h("ic-typography", { key: '8498b50dd12915ac9e39ad329e35b0a585c77f46', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined(subheading)
129
+ } }, h("div", { key: 'd3cb91eb9ae01c50255fefe75c9cf15dac9899a2', class: "step-top" }, h("div", { key: '71afc47b70d57c6d98aacd824c304e661d97a97d', class: "step-icon" }, icon), finalStep), (hasHeading || subheading || status) && (h("div", { key: '7b11bdfc83c4071d6aff8f026e7ab32f2033a666', class: "heading-area" }, isSlotUsed(this.el, "heading") ? (h("slot", { name: "heading" })) : (h("ic-typography", { variant: "subtitle-large", class: "heading" }, heading)), hasHeading && (subheading || status) && (h("ic-typography", { key: '10da1844c1af5252f89bc59254e23c45c5400a2d', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined(subheading)
130
130
  ? subheading
131
131
  : stepStatus))))));
132
- return (h(Host, { key: '356617f292b301db2b92d8c1d111fa32831705c1', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
132
+ return (h(Host, { key: '6605252cf1e05ba81b2adbcf6e41f2c9c23b1f09', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
133
133
  ["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
134
134
  !this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
135
135
  [`ic-step-${variant}`]: true,
@@ -279,11 +279,11 @@ export class Stepper {
279
279
  checkResizeObserver(this.runResizeObserver);
280
280
  }
281
281
  render() {
282
- return (h(Host, { key: '457ee30e4513044d1160e73ab9e868c796d996e2', class: {
282
+ return (h(Host, { key: '4fbff633235fba3d0c146427b74d1c4e69cff419', class: {
283
283
  [`ic-stepper-${this.variant}`]: true,
284
284
  ["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
285
285
  [`ic-theme-${this.theme}`]: this.theme !== "inherit",
286
- } }, h("ul", { key: '32a6e9ee86bc0a89d9997aa7f74250874f1e466f', class: "step-item-list" }, h("slot", { key: '9571c50056c525a853cd0469d81fa2dead8cec1f' }))));
286
+ } }, h("ul", { key: '452b6724f1b286aa3ff75fd460cdc4dfa36e8e55', class: "step-item-list" }, h("slot", { key: 'e6e6465ee3c505fab2bbe1c7c502defa7e587571' }))));
287
287
  }
288
288
  static get is() { return "ic-stepper"; }
289
289
  static get encapsulation() { return "shadow"; }
@@ -468,15 +468,10 @@ input {
468
468
  margin-bottom: var(--ic-space-xs);
469
469
  }
470
470
 
471
- .ic-switch-label-small {
472
- margin-bottom: var(--ic-space-xs);
473
- }
474
-
475
471
  .ic-switch-toggle {
476
472
  display: flex;
477
473
  align-items: center;
478
- justify-content: space-around;
479
- width: 4rem;
474
+ width: calc(var(--ic-space-xl) * 2);
480
475
  height: var(--ic-space-xl);
481
476
  position: relative;
482
477
  border-radius: 100vw;
@@ -485,6 +480,19 @@ input {
485
480
  box-sizing: border-box;
486
481
  transition: var(--ic-transition-duration-fast);
487
482
  margin-left: var(--ic-space-xxs);
483
+ gap: calc(var(--ic-space-md) + var(--ic-space-xxs));
484
+ }
485
+
486
+ .ic-switch-small .ic-switch-toggle {
487
+ width: var(--ic-space-xxl);
488
+ height: var(--ic-space-lg);
489
+ gap: calc(var(--ic-space-sm) + var(--ic-space-xxxs));
490
+ }
491
+
492
+ .ic-switch-large .ic-switch-toggle {
493
+ width: calc(var(--ic-space-xl) + var(--ic-space-xxl));
494
+ height: calc(var(--ic-space-xl) + var(--ic-space-xs));
495
+ gap: calc(var(--ic-space-lg) + var(--ic-space-xxs));
488
496
  }
489
497
 
490
498
  .ic-switch-line-break {
@@ -493,42 +501,70 @@ input {
493
501
 
494
502
  .ic-switch-toggle::before {
495
503
  content: "";
496
- width: 1.333rem;
497
- height: 1.333rem;
504
+ width: calc(var(--ic-space-sm) * 2);
505
+ height: calc(var(--ic-space-sm) * 2);
498
506
  border-radius: 50%;
499
507
  position: absolute;
500
508
  z-index: 2;
501
509
  top: 50%;
502
- left: 0.333rem;
510
+ left: var(--ic-space-xxs);
503
511
  transform: translate(0, -50%);
504
512
  background-color: var(--ic-switch-unchecked);
505
513
  transition: var(--ic-transition-duration-slow);
506
514
  }
507
515
 
516
+ .ic-switch-small .ic-switch-toggle::before {
517
+ width: var(--ic-space-md);
518
+ height: var(--ic-space-md);
519
+ }
520
+
521
+ .ic-switch-large .ic-switch-toggle::before {
522
+ width: var(--ic-space-xl);
523
+ height: var(--ic-space-xl);
524
+ }
525
+
508
526
  .ic-switch-icon {
509
527
  display: inline-block;
510
528
  vertical-align: middle;
511
- width: 0.625rem;
512
- height: 0.625rem;
529
+ width: var(--ic-space-sm);
530
+ height: var(--ic-space-sm);
513
531
  }
514
532
 
515
- .ic-switch-icon-circle,
516
- .ic-switch-icon-line {
517
- stroke-width: 1;
533
+ .ic-switch-small .ic-switch-icon {
534
+ width: var(--ic-space-xs);
535
+ height: var(--ic-space-xs);
536
+ }
537
+
538
+ .ic-switch-large .ic-switch-icon {
539
+ width: var(--ic-space-md);
540
+ height: var(--ic-space-md);
518
541
  }
519
542
 
520
543
  .ic-switch-icon-circle {
521
544
  stroke: var(--ic-switch-indicator-off);
545
+ stroke-width: var(--ic-space-1px);
522
546
  }
523
547
 
524
548
  .ic-switch-icon-line {
525
- stroke: var(--ic-switch-indicator-on);
549
+ height: var(--ic-space-sm);
550
+ width: var(--ic-space-1px);
551
+ background-color: var(--ic-switch-indicator-on);
552
+ border-radius: 99px;
553
+ margin-left: calc(
554
+ var(--ic-space-md) + var(--ic-space-xxs) - var(--ic-space-1px)
555
+ );
526
556
  }
527
557
 
528
- @media (prefers-reduced-motion: reduce) {
529
- .ic-switch-toggle::before {
530
- transition-duration: 0ms;
531
- }
558
+ .ic-switch-small .ic-switch-icon-line {
559
+ margin-left: calc(var(--ic-space-md) - var(--ic-space-1px));
560
+ height: var(--ic-space-xs);
561
+ }
562
+
563
+ .ic-switch-large .ic-switch-icon-line {
564
+ margin-left: calc(
565
+ var(--ic-space-xs) + var(--ic-space-md) - var(--ic-space-1px)
566
+ );
567
+ height: var(--ic-space-md);
532
568
  }
533
569
 
534
570
  .ic-switch-input:checked + .ic-switch-toggle {
@@ -537,24 +573,35 @@ input {
537
573
  }
538
574
 
539
575
  .ic-switch-input:checked + .ic-switch-toggle::before {
540
- transform: translate(var(--ic-space-xl), -50%);
576
+ transform: translate(calc(var(--ic-space-xl) - var(--ic-space-1px)), -50%);
541
577
  background-color: var(--ic-switch-checked);
542
578
  }
543
579
 
580
+ .ic-switch-small .ic-switch-input:checked + .ic-switch-toggle::before {
581
+ transform: translate(calc(var(--ic-space-lg) - var(--ic-space-1px)), -50%);
582
+ }
583
+
584
+ .ic-switch-large .ic-switch-input:checked + .ic-switch-toggle::before {
585
+ transform: translate(
586
+ calc(var(--ic-space-xxl) - var(--ic-space-xs) - var(--ic-space-1px)),
587
+ -50%
588
+ );
589
+ }
590
+
544
591
  .ic-switch-input:not([disabled]) + .ic-switch-toggle:hover::before {
545
- box-shadow: 0 0 0 0.75rem var(--ic-switch-unchecked-bg-hover);
592
+ box-shadow: 0 0 0 var(--ic-space-sm) var(--ic-switch-unchecked-bg-hover);
546
593
  }
547
594
 
548
595
  .ic-switch-input:not([disabled]) + .ic-switch-toggle:active::before {
549
- box-shadow: 0 0 0 0.75rem var(--ic-switch-unchecked-bg-pressed);
596
+ box-shadow: 0 0 0 var(--ic-space-sm) var(--ic-switch-unchecked-bg-pressed);
550
597
  }
551
598
 
552
599
  .ic-switch-input:not([disabled]):checked + .ic-switch-toggle:hover::before {
553
- box-shadow: 0 0 0 0.75rem var(--ic-switch-checked-bg-hover);
600
+ box-shadow: 0 0 0 var(--ic-space-sm) var(--ic-switch-checked-bg-hover);
554
601
  }
555
602
 
556
603
  .ic-switch-input:not([disabled]):checked + .ic-switch-toggle:active::before {
557
- box-shadow: 0 0 0 0.75rem var(--ic-switch-checked-bg-pressed);
604
+ box-shadow: 0 0 0 var(--ic-space-sm) var(--ic-switch-checked-bg-pressed);
558
605
  }
559
606
 
560
607
  .ic-switch-input:focus:not([disabled]) + .ic-switch-toggle,
@@ -571,7 +618,7 @@ input {
571
618
  }
572
619
 
573
620
  .ic-switch-disabled .ic-switch-icon-line {
574
- stroke: var(--ic-switch-indicator-on-disabled);
621
+ background-color: var(--ic-switch-indicator-on-disabled);
575
622
  }
576
623
 
577
624
  .ic-switch-input:disabled + .ic-switch-toggle {
@@ -593,27 +640,27 @@ input {
593
640
  background-color: var(--ic-switch-checked);
594
641
  }
595
642
 
596
- .ic-switch-small .ic-switch-toggle {
597
- width: var(--ic-space-xxl);
598
- height: var(--ic-space-lg);
599
- }
600
-
601
- .ic-switch-small .ic-switch-toggle::before {
602
- width: var(--ic-space-md);
603
- height: var(--ic-space-md);
604
- left: var(--ic-space-xxs);
605
- }
606
-
607
- .ic-switch-small .ic-switch-input:checked + .ic-switch-toggle::before {
608
- transform: translate(var(--ic-space-lg), -50%);
609
- }
610
-
611
643
  ::slotted([slot="right-adornment"]) {
612
644
  margin-left: var(--ic-space-sm);
613
645
  fill: var(--ic-switch-icon);
614
646
  }
615
647
 
616
648
  @media (forced-colors: active) {
649
+ .ic-switch-toggle::before {
650
+ width: calc(var(--ic-space-sm) * 2 - var(--ic-space-xxxs));
651
+ height: calc(var(--ic-space-sm) * 2 - var(--ic-space-xxxs));
652
+ }
653
+
654
+ .ic-switch-small .ic-switch-toggle::before {
655
+ width: calc(var(--ic-space-md) - var(--ic-space-xxxs));
656
+ height: calc(var(--ic-space-md) - var(--ic-space-xxxs));
657
+ }
658
+
659
+ .ic-switch-large .ic-switch-toggle::before {
660
+ width: calc(var(--ic-space-xl) - var(--ic-space-xxxs));
661
+ height: calc(var(--ic-space-xl) - var(--ic-space-xxxs));
662
+ }
663
+
617
664
  .ic-switch-toggle::before,
618
665
  .ic-switch-input:checked + .ic-switch-toggle {
619
666
  border: var(--ic-border-hc);
@@ -625,7 +672,18 @@ input {
625
672
  }
626
673
 
627
674
  .ic-switch-input:checked + .ic-switch-toggle::before {
628
- transform: translate(calc(var(--ic-space-xl) - 0.125rem), -50%);
675
+ transform: translate(calc(var(--ic-space-xl) - var(--ic-space-xxxs)), -50%);
676
+ }
677
+
678
+ .ic-switch-small .ic-switch-input:checked + .ic-switch-toggle::before {
679
+ transform: translate(calc(var(--ic-space-lg) - var(--ic-space-xxxs)), -50%);
680
+ }
681
+
682
+ .ic-switch-large .ic-switch-input:checked + .ic-switch-toggle::before {
683
+ transform: translate(
684
+ calc(var(--ic-space-xxl) - var(--ic-space-xs) - var(--ic-space-xxxs)),
685
+ -50%
686
+ );
629
687
  }
630
688
 
631
689
  .ic-switch-input:disabled + .ic-switch-toggle,
@@ -634,10 +692,17 @@ input {
634
692
  border-color: GrayText;
635
693
  }
636
694
 
637
- .ic-switch-disabled .ic-switch-icon-circle,
638
- .ic-switch-disabled .ic-switch-icon-line {
695
+ .ic-switch-icon-line {
696
+ background-color: buttonborder;
697
+ }
698
+
699
+ .ic-switch-disabled .ic-switch-icon-circle {
639
700
  stroke: GrayText;
640
701
  }
702
+
703
+ .ic-switch-disabled .ic-switch-icon-line {
704
+ background-color: GrayText;
705
+ }
641
706
  }
642
707
 
643
708
  @media (prefers-reduced-motion: reduce) {
@@ -89,18 +89,16 @@ export class Switch {
89
89
  }
90
90
  render() {
91
91
  const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
92
- const isSmall = size === "small";
93
92
  renderHiddenInput(this.el, checkedState ? value : "", name, disabled);
94
- return (h(Host, { key: '88d2bde84ec11e0b5e23de8b291684eae49ba48f', class: {
93
+ return (h(Host, { key: '5c000ca3e49cd14427153c3621794df417e8cf20', class: {
95
94
  [`ic-theme-${theme}`]: theme !== "inherit",
96
- } }, h("label", { key: '46de14be85f760c6267141eb1fe36bc710a9e251', class: {
95
+ } }, h("label", { key: '8460399d045a653d8c5e3c93f87d2759b99d4095', class: {
97
96
  "ic-switch-container": true,
98
97
  "ic-switch-disabled": !!disabled,
99
- "ic-switch-small": isSmall,
100
- }, htmlFor: inputId }, !hideLabel && (h("ic-input-label", { key: 'c361f411bf189a5aae8c90e331bc5a07535c3b64', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
98
+ [`ic-switch-${size}`]: true,
99
+ }, htmlFor: inputId }, !hideLabel && (h("ic-input-label", { key: '5bd95a31f589a3569373427072b91153b9af825d', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
101
100
  "ic-switch-label": true,
102
- "ic-switch-label-small": isSmall,
103
- } }, h("slot", { key: 'd0ec1f628328f0e3938964248ac38c576ee602ce', name: "helper-text", slot: "helper-text" }))), !hideLabel && h("span", { key: '60474539357c0bd43823042d06e0292f1769a879', class: "ic-switch-line-break" }), h("input", { key: 'e9f17d56e514e1a545fae25631c835a714515461', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), h("span", { key: 'ec6530e9f6d0a9248d6104068a8dc08c98142d44', class: "ic-switch-toggle" }, h("svg", { key: '9dbe1ccb311d5d3cf836b1db84f783f3f4aa1b1c', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("line", { key: '019b9a398510349b9fbb41784aa01f77af2c482f', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), h("svg", { key: '36806f4ca85eb87212f155f42293cffc9d7b2f2e', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '5d34317d431ea7b8e10d6a379b02148b4fc69b4e', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), h("slot", { key: 'bfb4599c8cfad3efa9466eefe7dc84b580a2a3d2', name: "right-adornment" }))));
101
+ } }, h("slot", { key: 'a89047529ee17453676191651624842e5b1643ff', name: "helper-text", slot: "helper-text" }))), !hideLabel && h("span", { key: 'ef6b29d8bfa4ad565aca3fdadc61f9d7e9c8a51c', class: "ic-switch-line-break" }), h("input", { key: '0299a7208ea94969af14ded8f92a3c602e4d9260', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), h("span", { key: '5576c0aff81d9a5825111f62a00dfc69516ff52d', class: "ic-switch-toggle" }, h("span", { key: '3bd162d8cd5b5d08b1a71625edaa7905d837414b', class: "ic-switch-icon-line", "aria-hidden": "true" }), h("svg", { key: '592dd6027032283ed67502269b80fd6a5ca922ae', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 8 8", xmlns: "http://www.w3.org/2000/svg", fill: "none" }, h("circle", { key: '6479b349e98272f1578e84b7213949ed064e84f7', class: "ic-switch-icon-circle", fill: "none", cx: "4", cy: "4", r: "3.5", "vector-effect": "non-scaling-stroke" }))), h("slot", { key: '66d14ab0f462f8f050ffb425a154bde647821377', name: "right-adornment" }))));
104
102
  }
105
103
  static get is() { return "ic-switch"; }
106
104
  static get encapsulation() { return "shadow"; }
@@ -240,13 +238,13 @@ export class Switch {
240
238
  "type": "string",
241
239
  "mutable": false,
242
240
  "complexType": {
243
- "original": "IcSizesNoLarge",
244
- "resolved": "\"medium\" | \"small\" | undefined",
241
+ "original": "IcSizes",
242
+ "resolved": "\"large\" | \"medium\" | \"small\" | undefined",
245
243
  "references": {
246
- "IcSizesNoLarge": {
244
+ "IcSizes": {
247
245
  "location": "import",
248
246
  "path": "../../utils/types",
249
- "id": "src/utils/types.ts::IcSizesNoLarge"
247
+ "id": "src/utils/types.ts::IcSizes"
250
248
  }
251
249
  }
252
250
  },
@@ -1 +1 @@
1
- {"version":3,"file":"ic-switch.js","sourceRoot":"","sources":["../../../src/components/ic-switch/ic-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EAEL,MAAM,EACN,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,iBAAiB,E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EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EACvB,EAAE,EAAC,GAAG,EACN,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GACvB,CACE;oBACN,4DACE,KAAK,EAAC,gBAAgB,iBACV,MAAM,EAClB,SAAS,EAAC,OAAO,EACjB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B;wBAElC,+DACE,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,MAAM,EACX,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,GAC9B,CACE,CACD;gBACP,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC9B,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n Method,\n Watch,\n} from \"@stencil/core\";\nimport {\n getInputDescribedByText,\n onComponentRequiredPropUndefined,\n renderHiddenInput,\n addFormResetListener,\n removeFormResetListener,\n removeDisabledFalse,\n} from \"../../utils/helpers\";\nimport { IcSwitchChangeEventDetail } from \"./ic-switch.types\";\nimport { IcSizesNoLarge, IcThemeMode } from \"../../utils/types\";\n\nlet inputIds = 0;\n\n/**\n * @slot helper-text - Content is set as the helper text for the switch.\n * @slot right-adornment - Content is placed to the right of switch.\n */\n@Component({\n tag: \"ic-switch\",\n styleUrl: \"ic-switch.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Switch {\n private inputId = `ic-switch-input-${inputIds++}`;\n\n @Element() el: HTMLIcSwitchElement;\n\n @State() checkedState: boolean = false;\n @State() initiallyChecked = this.checked;\n\n /**\n * If `true`, the switch will display as checked.\n */\n @Prop() checked?: boolean = false;\n\n @Watch(\"checked\")\n checkedChangeHandler(): void {\n this.checkedState = !!this.checked;\n }\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * The helper text that will be displayed for additional field guidance.\n */\n @Prop() helperText?: string = \"\";\n\n /**\n * If `true`, the label will be hidden and the required label value will be applied as an aria-label.\n */\n @Prop() hideLabel?: boolean = false;\n\n /**\n * The aria-label applied to the switch when no visual 'name' is provided.\n */\n @Prop() label!: string;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name?: string = this.inputId;\n\n /**\n * The size of the switch component.\n */\n @Prop() size?: IcSizesNoLarge = \"medium\";\n\n /**\n * 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.\n */\n @Prop() theme?: IcThemeMode = \"inherit\";\n\n /**\n * The value of the toggle does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a toggle is analogous to the value of a `<input type=\"checkbox\">`,\n * it's only used when the toggle participates in a native `<form>`.\n */\n @Prop() value?: string | null = \"on\";\n\n /**\n * Emitted when the toggle loses focus.\n */\n @Event() icBlur!: EventEmitter<void>;\n\n /**\n * Emitted when the value property has changed.\n */\n @Event() icChange!: EventEmitter<IcSwitchChangeEventDetail>;\n\n /**\n * Emitted when the toggle has focus.\n */\n @Event() icFocus!: EventEmitter<void>;\n\n disconnectedCallback(): void {\n removeFormResetListener(this.el, this.handleFormReset);\n }\n\n componentWillLoad(): void {\n this.checkedState = this.checked!;\n addFormResetListener(this.el, this.handleFormReset);\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Switch\"\n );\n }\n\n /**\n * Sets focus on the switch.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot?.querySelector(\"input\")?.focus();\n }\n\n private handleChange = () => {\n this.checkedState = !this.checkedState;\n this.icChange.emit({\n checked: this.checkedState,\n value: this.value!,\n });\n };\n\n private onFocus = () => {\n this.icFocus.emit();\n };\n\n private onBlur = () => {\n this.icBlur.emit();\n };\n\n private handleFormReset = (): void => {\n this.checkedState = this.initiallyChecked!;\n };\n\n render() {\n const {\n label,\n checkedState,\n size,\n disabled,\n name,\n value,\n hideLabel,\n helperText,\n inputId,\n theme,\n } = this;\n\n const isSmall = size === \"small\";\n\n renderHiddenInput(this.el, checkedState ? value : \"\", name, disabled);\n\n return (\n <Host\n class={{\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n <label\n class={{\n \"ic-switch-container\": true,\n \"ic-switch-disabled\": !!disabled,\n \"ic-switch-small\": isSmall,\n }}\n htmlFor={inputId}\n >\n {!hideLabel && (\n <ic-input-label\n for={inputId}\n label={label}\n helperText={helperText}\n readonly={false}\n disabled={disabled}\n class={{\n \"ic-switch-label\": true,\n \"ic-switch-label-small\": isSmall,\n }}\n >\n <slot name=\"helper-text\" slot=\"helper-text\"></slot>\n </ic-input-label>\n )}\n {!hideLabel && <span class=\"ic-switch-line-break\"></span>}\n <input\n checked={checkedState}\n disabled={disabled}\n aria-label={label}\n aria-checked={checkedState ? \"true\" : \"false\"}\n aria-describedby={getInputDescribedByText(\n this.el,\n inputId,\n helperText !== \"\",\n false\n )}\n role=\"switch\"\n class=\"ic-switch-input\"\n type=\"checkbox\"\n name=\"toggle\"\n id={inputId}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onChange={this.handleChange}\n />\n <span class=\"ic-switch-toggle\">\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <line\n class=\"ic-switch-icon-line\"\n x1=\"9\"\n y1={isSmall ? \"2\" : \"1\"}\n x2=\"9\"\n y2={isSmall ? \"8\" : \"9\"}\n />\n </svg>\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n class=\"ic-switch-icon-circle\"\n fill=\"none\"\n cx=\"5\"\n cy=\"5\"\n r={isSmall ? \"3.335\" : \"4.445\"}\n />\n </svg>\n </span>\n <slot name=\"right-adornment\"></slot>\n </label>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"ic-switch.js","sourceRoot":"","sources":["../../../src/components/ic-switch/ic-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EAEL,MAAM,EACN,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAI7B,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB;;;GAGG;AAQH,MAAM,OAAO,MAAM;IAPnB;QAQU,YAAO,GAAG,mBAAmB,QAAQ,EAAE,EAAE,CAAC;QAIzC,iBAAY,GAAY,KAAK,CAAC;QAC9B,qBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC;QAEzC;;WAEG;QACK,YAAO,GAAa,KAAK,CAAC;QAOlC;;WAEG;QACK,aAAQ,GAAa,KAAK,CAAC;QAMnC;;WAEG;QACK,eAAU,GA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n Method,\n Watch,\n} from \"@stencil/core\";\nimport {\n getInputDescribedByText,\n onComponentRequiredPropUndefined,\n renderHiddenInput,\n addFormResetListener,\n removeFormResetListener,\n removeDisabledFalse,\n} from \"../../utils/helpers\";\nimport { IcSwitchChangeEventDetail } from \"./ic-switch.types\";\nimport { IcSizes, IcThemeMode } from \"../../utils/types\";\n\nlet inputIds = 0;\n\n/**\n * @slot helper-text - Content is set as the helper text for the switch.\n * @slot right-adornment - Content is placed to the right of switch.\n */\n@Component({\n tag: \"ic-switch\",\n styleUrl: \"ic-switch.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Switch {\n private inputId = `ic-switch-input-${inputIds++}`;\n\n @Element() el: HTMLIcSwitchElement;\n\n @State() checkedState: boolean = false;\n @State() initiallyChecked = this.checked;\n\n /**\n * If `true`, the switch will display as checked.\n */\n @Prop() checked?: boolean = false;\n\n @Watch(\"checked\")\n checkedChangeHandler(): void {\n this.checkedState = !!this.checked;\n }\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * The helper text that will be displayed for additional field guidance.\n */\n @Prop() helperText?: string = \"\";\n\n /**\n * If `true`, the label will be hidden and the required label value will be applied as an aria-label.\n */\n @Prop() hideLabel?: boolean = false;\n\n /**\n * The aria-label applied to the switch when no visual 'name' is provided.\n */\n @Prop() label!: string;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name?: string = this.inputId;\n\n /**\n * The size of the switch component.\n */\n @Prop() size?: IcSizes = \"medium\";\n\n /**\n * 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.\n */\n @Prop() theme?: IcThemeMode = \"inherit\";\n\n /**\n * The value of the toggle does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a toggle is analogous to the value of a `<input type=\"checkbox\">`,\n * it's only used when the toggle participates in a native `<form>`.\n */\n @Prop() value?: string | null = \"on\";\n\n /**\n * Emitted when the toggle loses focus.\n */\n @Event() icBlur!: EventEmitter<void>;\n\n /**\n * Emitted when the value property has changed.\n */\n @Event() icChange!: EventEmitter<IcSwitchChangeEventDetail>;\n\n /**\n * Emitted when the toggle has focus.\n */\n @Event() icFocus!: EventEmitter<void>;\n\n disconnectedCallback(): void {\n removeFormResetListener(this.el, this.handleFormReset);\n }\n\n componentWillLoad(): void {\n this.checkedState = this.checked!;\n addFormResetListener(this.el, this.handleFormReset);\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Switch\"\n );\n }\n\n /**\n * Sets focus on the switch.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot?.querySelector(\"input\")?.focus();\n }\n\n private handleChange = () => {\n this.checkedState = !this.checkedState;\n this.icChange.emit({\n checked: this.checkedState,\n value: this.value!,\n });\n };\n\n private onFocus = () => {\n this.icFocus.emit();\n };\n\n private onBlur = () => {\n this.icBlur.emit();\n };\n\n private handleFormReset = (): void => {\n this.checkedState = this.initiallyChecked!;\n };\n\n render() {\n const {\n label,\n checkedState,\n size,\n disabled,\n name,\n value,\n hideLabel,\n helperText,\n inputId,\n theme,\n } = this;\n\n renderHiddenInput(this.el, checkedState ? value : \"\", name, disabled);\n\n return (\n <Host\n class={{\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n <label\n class={{\n \"ic-switch-container\": true,\n \"ic-switch-disabled\": !!disabled,\n [`ic-switch-${size}`]: true,\n }}\n htmlFor={inputId}\n >\n {!hideLabel && (\n <ic-input-label\n for={inputId}\n label={label}\n helperText={helperText}\n readonly={false}\n disabled={disabled}\n class={{\n \"ic-switch-label\": true,\n }}\n >\n <slot name=\"helper-text\" slot=\"helper-text\"></slot>\n </ic-input-label>\n )}\n {!hideLabel && <span class=\"ic-switch-line-break\"></span>}\n <input\n checked={checkedState}\n disabled={disabled}\n aria-label={label}\n aria-checked={checkedState ? \"true\" : \"false\"}\n aria-describedby={getInputDescribedByText(\n this.el,\n inputId,\n helperText !== \"\",\n false\n )}\n role=\"switch\"\n class=\"ic-switch-input\"\n type=\"checkbox\"\n name=\"toggle\"\n id={inputId}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onChange={this.handleChange}\n />\n <span class=\"ic-switch-toggle\">\n <span class=\"ic-switch-icon-line\" aria-hidden=\"true\"></span>\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 8 8\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n >\n <circle\n class=\"ic-switch-icon-circle\"\n fill=\"none\"\n cx=\"4\"\n cy=\"4\"\n r=\"3.5\"\n vector-effect=\"non-scaling-stroke\"\n />\n </svg>\n </span>\n <slot name=\"right-adornment\"></slot>\n </label>\n </Host>\n );\n }\n}\n"]}
@@ -30,9 +30,13 @@ export const Checked = {
30
30
  name: "Checked",
31
31
  };
32
32
 
33
- export const Small = {
34
- render: () => html` <ic-switch size="small" label="Label"></ic-switch> `,
35
- name: "Small",
33
+ export const Sizes = {
34
+ render: () => html`
35
+ <ic-switch size="small" label="Label"></ic-switch>
36
+ <ic-switch label="Label"></ic-switch>
37
+ <ic-switch size="large" label="Label"></ic-switch>
38
+ `,
39
+ name: "Sizes",
36
40
  };
37
41
 
38
42
  export const Disabled = {
@@ -136,7 +140,7 @@ export const Playground = {
136
140
 
137
141
  argTypes: {
138
142
  size: {
139
- options: ["medium", "small"],
143
+ options: ["small", "medium", "large"],
140
144
 
141
145
  control: {
142
146
  type: "inline-radio",
@@ -227,7 +227,7 @@ export class TabContext {
227
227
  }
228
228
  }
229
229
  render() {
230
- return h("slot", { key: '6a473d128002201d91b16855f088cb013b3e6b09' });
230
+ return h("slot", { key: '717530e623d11f274e79fe3be4bcbd0ff9e71033' });
231
231
  }
232
232
  static get is() { return "ic-tab-context"; }
233
233
  static get properties() {
@@ -16,11 +16,11 @@ export class TabGroup {
16
16
  }
17
17
  render() {
18
18
  const { inline, theme, label, monochrome } = this;
19
- return (h(Host, { key: '1e0f683aa804fe2dde78bce4c8d9b60c5d6a4396', role: "tablist", "aria-label": label, class: {
19
+ return (h(Host, { key: '1681c117c989b999a55a9646350f26efe3dac55c', role: "tablist", "aria-label": label, class: {
20
20
  ["ic-tab-group-inline"]: !!inline,
21
21
  [`ic-theme-${theme}`]: theme !== "inherit",
22
22
  ["ic-tab-group-monochrome"]: !!monochrome,
23
- } }, h("ic-horizontal-scroll", { key: 'fdca176d28c2e6619d787f3d141a78c3cf06176a', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, h("div", { key: 'f3255d04eebecdd81e5badd671fee33b885df3c5', class: "tabs-container" }, h("slot", { key: '9499e87ed5fd26e3936fcc7c9af353d7acd2fb36' })))));
23
+ } }, h("ic-horizontal-scroll", { key: '86003202cd06e1bbd9f99124c10ceebe9414049d', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, h("div", { key: '4e1b79906c19817adf8a4d01332f8066e8d5e1c4', class: "tabs-container" }, h("slot", { key: '697f2ce044588082937aff666d1f04976b310785' })))));
24
24
  }
25
25
  static get is() { return "ic-tab-group"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -17,10 +17,10 @@ export class TabPanel {
17
17
  }
18
18
  render() {
19
19
  const { active, theme } = this;
20
- return (h(Host, { key: '7daba74123d072e8ebdac9f217451b67a734dbc4', class: {
20
+ return (h(Host, { key: 'c00d3917329516768eb37409203d897251b75d76', class: {
21
21
  [`ic-theme-${theme}`]: theme !== "inherit",
22
22
  "ic-tab-panel-hidden": !active,
23
- }, role: "tabpanel", "aria-hidden": `${!active}` }, h("div", { key: '552b91bfa6a9570da568982b693d13f5ce8911e7' }, h("slot", { key: '3f2f5d3de12ab65d949bccfdc9aa5ea09a6dfa8d' }))));
23
+ }, role: "tabpanel", "aria-hidden": `${!active}` }, h("div", { key: 'f5cc419286a31c1b6da62a34926dcf8060c12dfd' }, h("slot", { key: '05c9bfb071d304e758c0bb8dd780bf000b3d8bf1' }))));
24
24
  }
25
25
  static get is() { return "ic-tab-panel"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -387,14 +387,14 @@ export class TextField {
387
387
  hiddenInput
388
388
  ? renderHiddenInput(this.el, value, name, disabledMode)
389
389
  : removeHiddenInput(this.el);
390
- return (h(Host, { key: '6300558c65d21c3cf9fcb2af66774cbdf274cf89', class: {
390
+ return (h(Host, { key: '4eb073ddbce5dc93c167bbaa66b94daf51c4a828', class: {
391
391
  "ic-text-field-full-width": fullWidth,
392
392
  "ic-text-field-disabled": disabledMode,
393
393
  [`ic-theme-${theme}`]: theme !== "inherit",
394
- } }, h("ic-input-container", { key: '6f0d1a6cf4ed01bd98c3b69d37f6ffb473e1201e', readonly: readonly, disabled: disabledMode }, !hideLabel && (h("ic-input-label", { key: '71cc64b0733fbe16b21f389000c8a6813ad9f07f', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, h("slot", { key: '985b82195b09acc991bbed6c0be5210cba70f59e', name: "helper-text", slot: "helper-text" }))), h("ic-input-component-container", { key: '95df2f453e06c5dec6788e98db94e5e4ce129d04', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (h("span", { key: '62a052203a6b9e35858e7103f505bdf38eda7349', class: {
394
+ } }, h("ic-input-container", { key: '07a171c8cbd55588387145b3d8469e6930ab4a7c', readonly: readonly, disabled: disabledMode }, !hideLabel && (h("ic-input-label", { key: 'b5f6b3b831c08cd4958458188c8d6be3219f1479', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, h("slot", { key: '1c33ec889c6a730f4b7e1075978e13f05a21f53a', name: "helper-text", slot: "helper-text" }))), h("ic-input-component-container", { key: '786f1d5b65b4b66838aba7320cd5b479cd8305e4', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (h("span", { key: 'ed91ef841c132afd05cdee83e735413ad1d9e5a3', class: {
395
395
  readonly,
396
396
  "has-value": this.getNumberOfCharacters(value) > 0,
397
- }, slot: "left-icon" }, h("slot", { key: '12ee0976840d954f7f855740db4098983ccf73a5', name: "icon" }))), !multiline ? (h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: type, min: min, max: max, value: value, class: {
397
+ }, slot: "left-icon" }, h("slot", { key: 'ee52a8fc57ce814d713d1a0807d8dc040ced4d41', name: "icon" }))), !multiline ? (h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: type, min: min, max: max, value: value, class: {
398
398
  "no-left-pad": !showLeftIcon && readonly,
399
399
  readonly,
400
400
  "truncate-value": truncateValue,
@@ -402,12 +402,12 @@ export class TextField {
402
402
  "no-resize": resize === false || !!readonly,
403
403
  "no-left-pad": !showLeftIcon && !!readonly,
404
404
  readonly: !!readonly,
405
- }, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (h("slot", { key: '4bd5b1b44a9fded9be98c35d3e49f357b99adf26', name: "clear-button" })), isSlotUsed(el, "search-submit-button") && (h("slot", { key: 'fccd3ae4e454d661540f45b748440aa8c9c28baf', name: "search-submit-button" }))), isSlotUsed(el, "menu") && h("slot", { key: 'aca9fabb2b029547a713e75be81c179e3c1e3b52', name: "menu" }), h("ic-input-validation", { key: '1d2443ab140751bd21f247f5136254498ffc8004', class: { "show-validation": this.showValidationMargin() }, status: this.hasStatus(currentStatus) === false ||
405
+ }, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (h("slot", { key: '06f74409f7256055715e982be8e68780df1126b5', name: "clear-button" })), isSlotUsed(el, "search-submit-button") && (h("slot", { key: '7ed8058fb83dfa713539348de0c37929a0225129', name: "search-submit-button" }))), isSlotUsed(el, "menu") && h("slot", { key: 'e56ca28bcb4154d65bb46f1b3625e29c0038e9b7', name: "menu" }), h("ic-input-validation", { key: '3c64d8598155035ebde2419e407e89c35053c64a', class: { "show-validation": this.showValidationMargin() }, status: this.hasStatus(currentStatus) === false ||
406
406
  (currentStatus === IcInformationStatus.Success &&
407
407
  validationInline) ||
408
408
  validationInlineInternal
409
409
  ? ""
410
- : currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, isSlotUsed(el, "validation-text") && (h("slot", { key: 'e8f5abdc72b047998c5164ec7bef70eab2d7af81', name: "validation-text", slot: "validation-message" })), !readonly && maxNumChars > 0 && (h("div", { key: '9458320139c6c17b4db3f40ef91ed8f35667e612', slot: "validation-message-adornment" }, !hideCharCount && (h("ic-typography", { key: '26663bbc0dbc1e5183cfb4af5b2f9a244fa303c5', variant: "caption", class: "char-count-text" }, h("span", { key: '84a9de3338f2fee09b3712fcc56dd509bbc672e2', class: "char-count" }, numChars, "/", maxNumChars))), h("span", { key: 'cb1d19f9755ea5b393e03ab19da262c67ce6e19e', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), h("span", { key: '87cfdac09956c5e749ff4c06bb58228d2d40feb5', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))));
410
+ : currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, isSlotUsed(el, "validation-text") && (h("slot", { key: 'd40417b8b52597518c4b1e804ede9ae59364c0c9', name: "validation-text", slot: "validation-message" })), !readonly && maxNumChars > 0 && (h("div", { key: 'e4dc991f18d280cf05f3ead492e17eb37b15cbb1', slot: "validation-message-adornment" }, !hideCharCount && (h("ic-typography", { key: 'e668b2a73a860bd7a53300440a019239363f2350', variant: "caption", class: "char-count-text" }, h("span", { key: '835dea67f0e27e0c86e0236f48ecd7a5265719a3', class: "char-count" }, numChars, "/", maxNumChars))), h("span", { key: '0a4d3628c4ecfe1102b015c3bf4a345eb2a18674', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), h("span", { key: '365c77cbed1ca017f3f19f13be9b76561ec5cf57', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))));
411
411
  }
412
412
  static get is() { return "ic-text-field"; }
413
413
  static get encapsulation() { return "shadow"; }
@@ -65,7 +65,7 @@ export class Theme {
65
65
  }
66
66
  render() {
67
67
  const { themeClass } = this;
68
- return (h(Host, { key: '29325dda558601bd748d1712aa146bfd5c2d1240', class: themeClass }, h("slot", { key: 'c352dc6c92ee972a7542c01f8fefa62c38575034' })));
68
+ return (h(Host, { key: '63d492e3dd31089565a15df543420f375dbad1b6', class: themeClass }, h("slot", { key: '479a3cbc49286aa2e3853956721f26a5ee37e9ef' })));
69
69
  }
70
70
  static get is() { return "ic-theme"; }
71
71
  static get properties() {