@ukic/web-components 3.11.0 → 3.13.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 (408) hide show
  1. package/dist/cjs/{constants-8354f6e6.js → constants-3a9ba64a.js} +3 -1
  2. package/dist/cjs/constants-3a9ba64a.js.map +1 -0
  3. package/dist/cjs/core.cjs.js +1 -1
  4. package/dist/cjs/{helpers-ffe1c2d9.js → helpers-478d1107.js} +2 -2
  5. package/dist/cjs/helpers-478d1107.js.map +1 -0
  6. package/dist/cjs/ic-accordion-group.cjs.entry.js +2 -2
  7. package/dist/cjs/ic-accordion.cjs.entry.js +2 -2
  8. package/dist/cjs/ic-action-chip.cjs.entry.js +2 -2
  9. package/dist/cjs/ic-alert.cjs.entry.js +5 -5
  10. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-back-to-top.cjs.entry.js +2 -2
  12. package/dist/cjs/ic-badge.cjs.entry.js +2 -2
  13. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
  14. package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
  15. package/dist/cjs/ic-button_3.cjs.entry.js +2 -2
  16. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-card-vertical.cjs.entry.js +2 -2
  18. package/dist/cjs/ic-checkbox-group.cjs.entry.js +13 -6
  19. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-checkbox.cjs.entry.js +2 -2
  21. package/dist/cjs/ic-chip.cjs.entry.js +7 -6
  22. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-data-row.cjs.entry.js +2 -2
  24. package/dist/cjs/ic-dialog.cjs.entry.js +37 -12
  25. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ic-divider.cjs.entry.js +2 -2
  27. package/dist/cjs/ic-empty-state.cjs.entry.js +2 -2
  28. package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
  29. package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
  30. package/dist/cjs/ic-footer.cjs.entry.js +2 -2
  31. package/dist/cjs/ic-hero.cjs.entry.js +2 -2
  32. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +2 -2
  33. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +1389 -11
  34. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -7
  36. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-link.cjs.entry.js +2 -2
  38. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  39. package/dist/cjs/ic-menu-item.cjs.entry.js +2 -2
  40. package/dist/cjs/ic-navigation-button.cjs.entry.js +2 -2
  41. package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
  42. package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
  43. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-navigation-menu.cjs.entry.js +2 -2
  45. package/dist/cjs/ic-page-header.cjs.entry.js +3 -3
  46. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
  48. package/dist/cjs/ic-pagination.cjs.entry.js +2 -2
  49. package/dist/cjs/ic-popover-menu.cjs.entry.js +2 -2
  50. package/dist/cjs/ic-radio-group.cjs.entry.js +15 -8
  51. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-radio-option.cjs.entry.js +3 -3
  53. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-search-bar.cjs.entry.js +2 -2
  55. package/dist/cjs/ic-select.cjs.entry.js +17 -10
  56. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-side-navigation.cjs.entry.js +2 -2
  58. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  59. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-step.cjs.entry.js +68 -55
  61. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-stepper.cjs.entry.js +22 -4
  63. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-switch.cjs.entry.js +2 -2
  65. package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
  66. package/dist/cjs/ic-tab.cjs.entry.js +2 -2
  67. package/dist/cjs/ic-text-field.cjs.entry.js +9 -9
  68. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  70. package/dist/cjs/ic-toast.cjs.entry.js +2 -2
  71. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +2 -2
  72. package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
  73. package/dist/cjs/ic-top-navigation.cjs.entry.js +3 -3
  74. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-typography.cjs.entry.js +2 -2
  76. package/dist/cjs/index.cjs.js +2 -1
  77. package/dist/cjs/index.cjs.js.map +1 -1
  78. package/dist/cjs/loader.cjs.js +1 -1
  79. package/dist/collection/components/ic-alert/ic-alert.css +13 -23
  80. package/dist/collection/components/ic-alert/ic-alert.js +2 -2
  81. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  82. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +3 -3
  83. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +36 -3
  84. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  85. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +163 -0
  86. package/dist/collection/components/ic-chip/ic-chip.css +4 -0
  87. package/dist/collection/components/ic-chip/ic-chip.js +4 -3
  88. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  89. package/dist/collection/components/ic-dialog/ic-dialog.js +36 -11
  90. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  91. package/dist/collection/components/ic-input-validation/ic-input-validation.css +4 -1
  92. package/dist/collection/components/ic-input-validation/ic-input-validation.js +9 -8
  93. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  94. package/dist/collection/components/ic-menu/ic-menu.js +13 -9
  95. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  96. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +9 -0
  97. package/dist/collection/components/ic-page-header/ic-page-header.css +4 -0
  98. package/dist/collection/components/ic-radio-group/ic-radio-group.css +2 -2
  99. package/dist/collection/components/ic-radio-group/ic-radio-group.js +40 -7
  100. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  101. package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +164 -0
  102. package/dist/collection/components/ic-radio-option/ic-radio-option.css +37 -1
  103. package/dist/collection/components/ic-select/ic-select.js +41 -8
  104. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  105. package/dist/collection/components/ic-select/ic-select_(multi).stories.js +14 -2
  106. package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +10 -0
  107. package/dist/collection/components/ic-select/ic-select_(single).stories.js +184 -4
  108. package/dist/collection/components/ic-status-tag/ic-status-tag.css +1 -4
  109. package/dist/collection/components/ic-step/ic-step.js +90 -53
  110. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  111. package/dist/collection/components/ic-step/ic-step.types.js.map +1 -1
  112. package/dist/collection/components/ic-stepper/ic-stepper.js +44 -2
  113. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  114. package/dist/collection/components/ic-stepper/ic-stepper.stories.js +76 -0
  115. package/dist/collection/components/ic-text-field/ic-text-field.css +2 -2
  116. package/dist/collection/components/ic-text-field/ic-text-field.js +32 -32
  117. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  118. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +13 -10
  119. package/dist/collection/utils/common-helpers.js +17 -0
  120. package/dist/collection/utils/common-helpers.js.map +1 -0
  121. package/dist/collection/utils/constants.js +1 -0
  122. package/dist/collection/utils/constants.js.map +1 -1
  123. package/dist/collection/utils/types.js.map +1 -1
  124. package/dist/components/constants.js +2 -1
  125. package/dist/components/constants.js.map +1 -1
  126. package/dist/components/helpers.js.map +1 -1
  127. package/dist/components/ic-alert.js +3 -3
  128. package/dist/components/ic-alert.js.map +1 -1
  129. package/dist/components/ic-checkbox-group.js +12 -4
  130. package/dist/components/ic-checkbox-group.js.map +1 -1
  131. package/dist/components/ic-chip.js +5 -4
  132. package/dist/components/ic-chip.js.map +1 -1
  133. package/dist/components/ic-dialog.js +35 -10
  134. package/dist/components/ic-dialog.js.map +1 -1
  135. package/dist/components/ic-input-validation2.js +7 -6
  136. package/dist/components/ic-input-validation2.js.map +1 -1
  137. package/dist/components/ic-menu2.js +1388 -9
  138. package/dist/components/ic-menu2.js.map +1 -1
  139. package/dist/components/ic-navigation-item.js +1 -1
  140. package/dist/components/ic-navigation-item.js.map +1 -1
  141. package/dist/components/ic-page-header.js +1 -1
  142. package/dist/components/ic-page-header.js.map +1 -1
  143. package/dist/components/ic-popover-menu.js.map +1 -1
  144. package/dist/components/ic-radio-group.js +14 -6
  145. package/dist/components/ic-radio-group.js.map +1 -1
  146. package/dist/components/ic-radio-option.js +1 -1
  147. package/dist/components/ic-radio-option.js.map +1 -1
  148. package/dist/components/ic-select.js +17 -9
  149. package/dist/components/ic-select.js.map +1 -1
  150. package/dist/components/ic-side-navigation.js.map +1 -1
  151. package/dist/components/ic-status-tag.js +1 -1
  152. package/dist/components/ic-status-tag.js.map +1 -1
  153. package/dist/components/ic-step.js +67 -53
  154. package/dist/components/ic-step.js.map +1 -1
  155. package/dist/components/ic-stepper.js +21 -2
  156. package/dist/components/ic-stepper.js.map +1 -1
  157. package/dist/components/ic-text-field.js +8 -8
  158. package/dist/components/ic-text-field.js.map +1 -1
  159. package/dist/components/ic-top-navigation.js +1 -1
  160. package/dist/components/ic-top-navigation.js.map +1 -1
  161. package/dist/components/index.js +1 -1
  162. package/dist/core/core.css +6 -6
  163. package/dist/core/core.esm.js +1 -1
  164. package/dist/core/core.esm.js.map +1 -1
  165. package/dist/core/index.esm.js +1 -1
  166. package/dist/core/{p-52a2f800.entry.js → p-0123dde7.entry.js} +2 -2
  167. package/dist/core/{p-52a2f800.entry.js.map → p-0123dde7.entry.js.map} +1 -1
  168. package/dist/core/{p-23b223bf.entry.js → p-01e018cb.entry.js} +2 -2
  169. package/dist/core/{p-1ab63899.entry.js → p-02af2b59.entry.js} +2 -2
  170. package/dist/core/p-05036675.entry.js +2 -0
  171. package/dist/core/p-05036675.entry.js.map +1 -0
  172. package/dist/core/{p-1d4dfef1.entry.js → p-0c36ce84.entry.js} +2 -2
  173. package/dist/core/{p-f78f34ce.entry.js → p-0ec76cff.entry.js} +2 -2
  174. package/dist/core/{p-35ee7c53.entry.js → p-13e093d0.entry.js} +2 -2
  175. package/dist/core/{p-a48b581a.entry.js → p-1423bd4a.entry.js} +2 -2
  176. package/dist/core/p-19f9d292.entry.js +2 -0
  177. package/dist/core/p-19f9d292.entry.js.map +1 -0
  178. package/dist/core/{p-3f55bb5b.entry.js → p-2126d37b.entry.js} +2 -2
  179. package/dist/core/{p-515ded3f.entry.js → p-228bc12d.entry.js} +2 -2
  180. package/dist/core/{p-d27e46ac.entry.js → p-25bef09d.entry.js} +2 -2
  181. package/dist/core/{p-eddc5517.entry.js → p-27e67d45.entry.js} +2 -2
  182. package/dist/core/{p-4dd8add9.entry.js → p-2800fc30.entry.js} +2 -2
  183. package/dist/core/{p-f045f59d.entry.js → p-33582352.entry.js} +2 -2
  184. package/dist/core/{p-58b8d154.entry.js → p-45097448.entry.js} +2 -2
  185. package/dist/core/p-45f743e4.entry.js +2 -0
  186. package/dist/core/p-45f743e4.entry.js.map +1 -0
  187. package/dist/core/{p-a4e67ab8.entry.js → p-511aa329.entry.js} +2 -2
  188. package/dist/core/p-511aa329.entry.js.map +1 -0
  189. package/dist/core/p-514daffe.entry.js +2 -0
  190. package/dist/core/p-514daffe.entry.js.map +1 -0
  191. package/dist/core/{p-3a78bf6e.entry.js → p-54803e3b.entry.js} +2 -2
  192. package/dist/core/{p-0201abbf.entry.js → p-6058d4c9.entry.js} +2 -2
  193. package/dist/core/p-621b0770.entry.js +2 -0
  194. package/dist/core/p-621b0770.entry.js.map +1 -0
  195. package/dist/core/{p-8d29c0fa.entry.js → p-675bb3e4.entry.js} +2 -2
  196. package/dist/core/{p-75e0278a.entry.js → p-6dbe70f1.entry.js} +2 -2
  197. package/dist/core/{p-b9018261.entry.js → p-6e139e6e.entry.js} +2 -2
  198. package/dist/core/p-6f50d2e0.entry.js +2 -0
  199. package/dist/core/p-6f50d2e0.entry.js.map +1 -0
  200. package/dist/core/p-71c86e71.entry.js +2 -0
  201. package/dist/core/p-71c86e71.entry.js.map +1 -0
  202. package/dist/core/{p-aab838e5.entry.js → p-80317cd1.entry.js} +2 -2
  203. package/dist/core/{p-02c2c31f.entry.js → p-813ad03c.entry.js} +2 -2
  204. package/dist/core/{p-69412f61.entry.js → p-8558b9b7.entry.js} +2 -2
  205. package/dist/core/{p-a468df37.entry.js → p-8684efeb.entry.js} +2 -2
  206. package/dist/core/{p-ffc608a1.entry.js → p-8b99a806.entry.js} +2 -2
  207. package/dist/core/{p-19366be6.entry.js → p-93479c36.entry.js} +2 -2
  208. package/dist/core/{p-69cc0f7d.entry.js → p-95d3d1a7.entry.js} +2 -2
  209. package/dist/core/{p-01aeffca.entry.js → p-96a6cff2.entry.js} +2 -2
  210. package/dist/core/p-96a6cff2.entry.js.map +1 -0
  211. package/dist/core/p-99793b64.entry.js +2 -0
  212. package/dist/core/p-99793b64.entry.js.map +1 -0
  213. package/dist/core/{p-fd488ed7.entry.js → p-9f12b20c.entry.js} +2 -2
  214. package/dist/core/p-9f12b20c.entry.js.map +1 -0
  215. package/dist/core/{p-57803949.entry.js → p-a06c1e4e.entry.js} +2 -2
  216. package/dist/core/p-a08c360b.entry.js +2 -0
  217. package/dist/core/p-a08c360b.entry.js.map +1 -0
  218. package/dist/core/p-a1857d24.entry.js +2 -0
  219. package/dist/core/p-a1857d24.entry.js.map +1 -0
  220. package/dist/core/p-a97b8082.entry.js +3 -0
  221. package/dist/core/p-a97b8082.entry.js.map +1 -0
  222. package/dist/core/{p-abb9dccb.entry.js → p-abd88929.entry.js} +2 -2
  223. package/dist/core/{p-cdd04ec2.entry.js → p-b0376079.entry.js} +2 -2
  224. package/dist/core/{p-6ceedfa8.js → p-b57e59b7.js} +2 -2
  225. package/dist/core/p-b57e59b7.js.map +1 -0
  226. package/dist/core/p-b9bdd9a9.entry.js +2 -0
  227. package/dist/core/p-b9bdd9a9.entry.js.map +1 -0
  228. package/dist/core/{p-641c26c4.js → p-bddf799a.js} +2 -2
  229. package/dist/core/p-bddf799a.js.map +1 -0
  230. package/dist/core/{p-0809aff4.entry.js → p-c04e1fab.entry.js} +2 -2
  231. package/dist/core/{p-65a3c216.entry.js → p-c975cced.entry.js} +2 -2
  232. package/dist/core/p-cc00cbce.entry.js +2 -0
  233. package/dist/core/p-cc00cbce.entry.js.map +1 -0
  234. package/dist/core/{p-f086d6df.entry.js → p-de32a223.entry.js} +2 -2
  235. package/dist/core/{p-46423f42.entry.js → p-e6dacbe2.entry.js} +2 -2
  236. package/dist/core/{p-1dab47b1.entry.js → p-ea06792a.entry.js} +2 -2
  237. package/dist/core/{p-5c6efed3.entry.js → p-eb0e7153.entry.js} +2 -2
  238. package/dist/core/{p-402813c9.entry.js → p-f609ca37.entry.js} +2 -2
  239. package/dist/core/{p-cd63bcf2.entry.js → p-fb734a59.entry.js} +2 -2
  240. package/dist/esm/{constants-48759bda.js → constants-7960cba4.js} +3 -2
  241. package/dist/esm/constants-7960cba4.js.map +1 -0
  242. package/dist/esm/core.js +1 -1
  243. package/dist/esm/{helpers-d8189e9d.js → helpers-4ddac6ed.js} +2 -2
  244. package/dist/esm/helpers-4ddac6ed.js.map +1 -0
  245. package/dist/esm/ic-accordion-group.entry.js +2 -2
  246. package/dist/esm/ic-accordion.entry.js +2 -2
  247. package/dist/esm/ic-action-chip.entry.js +2 -2
  248. package/dist/esm/ic-alert.entry.js +5 -5
  249. package/dist/esm/ic-alert.entry.js.map +1 -1
  250. package/dist/esm/ic-back-to-top.entry.js +2 -2
  251. package/dist/esm/ic-badge.entry.js +2 -2
  252. package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
  253. package/dist/esm/ic-breadcrumb.entry.js +2 -2
  254. package/dist/esm/ic-button_3.entry.js +2 -2
  255. package/dist/esm/ic-button_3.entry.js.map +1 -1
  256. package/dist/esm/ic-card-vertical.entry.js +2 -2
  257. package/dist/esm/ic-checkbox-group.entry.js +13 -6
  258. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  259. package/dist/esm/ic-checkbox.entry.js +2 -2
  260. package/dist/esm/ic-chip.entry.js +7 -6
  261. package/dist/esm/ic-chip.entry.js.map +1 -1
  262. package/dist/esm/ic-data-row.entry.js +2 -2
  263. package/dist/esm/ic-dialog.entry.js +37 -12
  264. package/dist/esm/ic-dialog.entry.js.map +1 -1
  265. package/dist/esm/ic-divider.entry.js +2 -2
  266. package/dist/esm/ic-empty-state.entry.js +2 -2
  267. package/dist/esm/ic-footer-link-group.entry.js +2 -2
  268. package/dist/esm/ic-footer-link.entry.js +2 -2
  269. package/dist/esm/ic-footer.entry.js +2 -2
  270. package/dist/esm/ic-hero.entry.js +2 -2
  271. package/dist/esm/ic-horizontal-scroll.entry.js +2 -2
  272. package/dist/esm/ic-input-component-container_3.entry.js +1389 -11
  273. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  274. package/dist/esm/ic-input-label_2.entry.js +8 -7
  275. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  276. package/dist/esm/ic-link.entry.js +2 -2
  277. package/dist/esm/ic-menu-group.entry.js +2 -2
  278. package/dist/esm/ic-menu-item.entry.js +2 -2
  279. package/dist/esm/ic-navigation-button.entry.js +2 -2
  280. package/dist/esm/ic-navigation-group.entry.js +2 -2
  281. package/dist/esm/ic-navigation-item.entry.js +3 -3
  282. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  283. package/dist/esm/ic-navigation-menu.entry.js +2 -2
  284. package/dist/esm/ic-page-header.entry.js +3 -3
  285. package/dist/esm/ic-page-header.entry.js.map +1 -1
  286. package/dist/esm/ic-pagination-item.entry.js +2 -2
  287. package/dist/esm/ic-pagination.entry.js +2 -2
  288. package/dist/esm/ic-popover-menu.entry.js +2 -2
  289. package/dist/esm/ic-radio-group.entry.js +15 -8
  290. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  291. package/dist/esm/ic-radio-option.entry.js +3 -3
  292. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  293. package/dist/esm/ic-search-bar.entry.js +2 -2
  294. package/dist/esm/ic-select.entry.js +17 -10
  295. package/dist/esm/ic-select.entry.js.map +1 -1
  296. package/dist/esm/ic-side-navigation.entry.js +2 -2
  297. package/dist/esm/ic-status-tag.entry.js +3 -3
  298. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  299. package/dist/esm/ic-step.entry.js +68 -55
  300. package/dist/esm/ic-step.entry.js.map +1 -1
  301. package/dist/esm/ic-stepper.entry.js +22 -4
  302. package/dist/esm/ic-stepper.entry.js.map +1 -1
  303. package/dist/esm/ic-switch.entry.js +2 -2
  304. package/dist/esm/ic-tab-group.entry.js +2 -2
  305. package/dist/esm/ic-tab.entry.js +2 -2
  306. package/dist/esm/ic-text-field.entry.js +9 -9
  307. package/dist/esm/ic-text-field.entry.js.map +1 -1
  308. package/dist/esm/ic-theme.entry.js +2 -2
  309. package/dist/esm/ic-toast.entry.js +2 -2
  310. package/dist/esm/ic-toggle-button-group.entry.js +2 -2
  311. package/dist/esm/ic-toggle-button.entry.js +2 -2
  312. package/dist/esm/ic-top-navigation.entry.js +3 -3
  313. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  314. package/dist/esm/ic-typography.entry.js +2 -2
  315. package/dist/esm/index.js +1 -1
  316. package/dist/esm/loader.js +1 -1
  317. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +5 -1
  318. package/dist/types/components/ic-dialog/ic-dialog.d.ts +2 -1
  319. package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +2 -3
  320. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +6 -2
  321. package/dist/types/components/ic-select/ic-select.d.ts +5 -1
  322. package/dist/types/components/ic-step/ic-step.d.ts +5 -1
  323. package/dist/types/components/ic-step/ic-step.types.d.ts +11 -0
  324. package/dist/types/components/ic-stepper/ic-stepper.d.ts +5 -1
  325. package/dist/types/components/ic-text-field/ic-text-field.d.ts +4 -4
  326. package/dist/types/components.d.ts +48 -10
  327. package/dist/types/interface.d.ts +0 -1
  328. package/dist/types/utils/common-helpers.d.ts +2 -0
  329. package/dist/types/utils/constants.d.ts +1 -0
  330. package/dist/types/utils/types.d.ts +7 -2
  331. package/hydrate/index.js +1580 -117
  332. package/hydrate/index.mjs +1580 -117
  333. package/package.json +4 -3
  334. package/vscode-data.json +45 -0
  335. package/dist/cjs/constants-8354f6e6.js.map +0 -1
  336. package/dist/cjs/helpers-ffe1c2d9.js.map +0 -1
  337. package/dist/collection/components/ic-input-validation/ic-input-validation.types.js +0 -2
  338. package/dist/collection/components/ic-input-validation/ic-input-validation.types.js.map +0 -1
  339. package/dist/core/p-01aeffca.entry.js.map +0 -1
  340. package/dist/core/p-402c2455.entry.js +0 -2
  341. package/dist/core/p-402c2455.entry.js.map +0 -1
  342. package/dist/core/p-4a2c02b2.entry.js +0 -2
  343. package/dist/core/p-4a2c02b2.entry.js.map +0 -1
  344. package/dist/core/p-641c26c4.js.map +0 -1
  345. package/dist/core/p-6ceedfa8.js.map +0 -1
  346. package/dist/core/p-75a9b2e4.entry.js +0 -2
  347. package/dist/core/p-75a9b2e4.entry.js.map +0 -1
  348. package/dist/core/p-8326db29.entry.js +0 -2
  349. package/dist/core/p-8326db29.entry.js.map +0 -1
  350. package/dist/core/p-8af9413c.entry.js +0 -2
  351. package/dist/core/p-8af9413c.entry.js.map +0 -1
  352. package/dist/core/p-8d1fbbeb.entry.js +0 -2
  353. package/dist/core/p-8d1fbbeb.entry.js.map +0 -1
  354. package/dist/core/p-a4e67ab8.entry.js.map +0 -1
  355. package/dist/core/p-b80d408f.entry.js +0 -2
  356. package/dist/core/p-b80d408f.entry.js.map +0 -1
  357. package/dist/core/p-c81ffadd.entry.js +0 -2
  358. package/dist/core/p-c81ffadd.entry.js.map +0 -1
  359. package/dist/core/p-d35f8bd4.entry.js +0 -2
  360. package/dist/core/p-d35f8bd4.entry.js.map +0 -1
  361. package/dist/core/p-d6b3e02f.entry.js +0 -2
  362. package/dist/core/p-d6b3e02f.entry.js.map +0 -1
  363. package/dist/core/p-d7bd5aa0.entry.js +0 -2
  364. package/dist/core/p-d7bd5aa0.entry.js.map +0 -1
  365. package/dist/core/p-ed69f110.entry.js +0 -2
  366. package/dist/core/p-ed69f110.entry.js.map +0 -1
  367. package/dist/core/p-f17e1525.entry.js +0 -2
  368. package/dist/core/p-f17e1525.entry.js.map +0 -1
  369. package/dist/core/p-fd488ed7.entry.js.map +0 -1
  370. package/dist/esm/constants-48759bda.js.map +0 -1
  371. package/dist/esm/helpers-d8189e9d.js.map +0 -1
  372. package/dist/types/components/ic-input-validation/ic-input-validation.types.d.ts +0 -1
  373. /package/dist/core/{p-23b223bf.entry.js.map → p-01e018cb.entry.js.map} +0 -0
  374. /package/dist/core/{p-1ab63899.entry.js.map → p-02af2b59.entry.js.map} +0 -0
  375. /package/dist/core/{p-1d4dfef1.entry.js.map → p-0c36ce84.entry.js.map} +0 -0
  376. /package/dist/core/{p-f78f34ce.entry.js.map → p-0ec76cff.entry.js.map} +0 -0
  377. /package/dist/core/{p-35ee7c53.entry.js.map → p-13e093d0.entry.js.map} +0 -0
  378. /package/dist/core/{p-a48b581a.entry.js.map → p-1423bd4a.entry.js.map} +0 -0
  379. /package/dist/core/{p-3f55bb5b.entry.js.map → p-2126d37b.entry.js.map} +0 -0
  380. /package/dist/core/{p-515ded3f.entry.js.map → p-228bc12d.entry.js.map} +0 -0
  381. /package/dist/core/{p-d27e46ac.entry.js.map → p-25bef09d.entry.js.map} +0 -0
  382. /package/dist/core/{p-eddc5517.entry.js.map → p-27e67d45.entry.js.map} +0 -0
  383. /package/dist/core/{p-4dd8add9.entry.js.map → p-2800fc30.entry.js.map} +0 -0
  384. /package/dist/core/{p-f045f59d.entry.js.map → p-33582352.entry.js.map} +0 -0
  385. /package/dist/core/{p-58b8d154.entry.js.map → p-45097448.entry.js.map} +0 -0
  386. /package/dist/core/{p-3a78bf6e.entry.js.map → p-54803e3b.entry.js.map} +0 -0
  387. /package/dist/core/{p-0201abbf.entry.js.map → p-6058d4c9.entry.js.map} +0 -0
  388. /package/dist/core/{p-8d29c0fa.entry.js.map → p-675bb3e4.entry.js.map} +0 -0
  389. /package/dist/core/{p-75e0278a.entry.js.map → p-6dbe70f1.entry.js.map} +0 -0
  390. /package/dist/core/{p-b9018261.entry.js.map → p-6e139e6e.entry.js.map} +0 -0
  391. /package/dist/core/{p-aab838e5.entry.js.map → p-80317cd1.entry.js.map} +0 -0
  392. /package/dist/core/{p-02c2c31f.entry.js.map → p-813ad03c.entry.js.map} +0 -0
  393. /package/dist/core/{p-69412f61.entry.js.map → p-8558b9b7.entry.js.map} +0 -0
  394. /package/dist/core/{p-a468df37.entry.js.map → p-8684efeb.entry.js.map} +0 -0
  395. /package/dist/core/{p-ffc608a1.entry.js.map → p-8b99a806.entry.js.map} +0 -0
  396. /package/dist/core/{p-19366be6.entry.js.map → p-93479c36.entry.js.map} +0 -0
  397. /package/dist/core/{p-69cc0f7d.entry.js.map → p-95d3d1a7.entry.js.map} +0 -0
  398. /package/dist/core/{p-57803949.entry.js.map → p-a06c1e4e.entry.js.map} +0 -0
  399. /package/dist/core/{p-abb9dccb.entry.js.map → p-abd88929.entry.js.map} +0 -0
  400. /package/dist/core/{p-cdd04ec2.entry.js.map → p-b0376079.entry.js.map} +0 -0
  401. /package/dist/core/{p-0809aff4.entry.js.map → p-c04e1fab.entry.js.map} +0 -0
  402. /package/dist/core/{p-65a3c216.entry.js.map → p-c975cced.entry.js.map} +0 -0
  403. /package/dist/core/{p-f086d6df.entry.js.map → p-de32a223.entry.js.map} +0 -0
  404. /package/dist/core/{p-46423f42.entry.js.map → p-e6dacbe2.entry.js.map} +0 -0
  405. /package/dist/core/{p-1dab47b1.entry.js.map → p-ea06792a.entry.js.map} +0 -0
  406. /package/dist/core/{p-5c6efed3.entry.js.map → p-eb0e7153.entry.js.map} +0 -0
  407. /package/dist/core/{p-402813c9.entry.js.map → p-f609ca37.entry.js.map} +0 -0
  408. /package/dist/core/{p-cd63bcf2.entry.js.map → p-fb734a59.entry.js.map} +0 -0
@@ -13,6 +13,7 @@ const defaultArgs = {
13
13
  readonly: false,
14
14
  required: false,
15
15
  size: "medium",
16
+ validationAriaLive: "polite",
16
17
  validationStatus: "no status",
17
18
  ["validation-text"]: "",
18
19
  ["show-clear-button"]: false,
@@ -228,8 +229,8 @@ export const CustomComponents = {
228
229
  value: "Lat",
229
230
  description: "A milkier coffee than a cappuccino",
230
231
  element: {
231
- component: \`<ic-status-tag label="Neutral status"></ic-status-tag>\`,
232
- ariaLabel: "Neutral status tag",
232
+ component: \`<ic-status-tag label="Success status" status="success"></ic-status-tag>\`,
233
+ ariaLabel: "Success status tag",
233
234
  },
234
235
  icon: \`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000"><g><path d="M4.47 20.5037H19.53C21.07 20.5037 22.03 18.8337 21.26 17.5037L13.73 4.49375C12.96 3.16375 11.04 3.16375 10.27 4.49375L2.74 17.5037C1.97 18.8337 2.93 20.5037 4.47 20.5037ZM12 13.5037C11.45 13.5037 11 13.0537 11 12.5037V10.5037C11 9.95375 11.45 9.50375 12 9.50375C12.55 9.50375 13 9.95375 13 10.5037V12.5037C13 13.0537 12.55 13.5037 12 13.5037ZM13 17.5037H11V15.5037H13V17.5037Z" /></g></svg>\`,
235
236
  },
@@ -514,6 +515,52 @@ export const Recommended = {
514
515
  name: "Recommended",
515
516
  };
516
517
 
518
+ export const HiddenMenuOptionLabels = {
519
+ render: () =>
520
+ html`<ic-select
521
+ id="hidden-menu-opts-select"
522
+ label="What is your favourite coffee size?"
523
+ ></ic-select>
524
+ <script>
525
+ var select = document.querySelector("#hidden-menu-opts-select");
526
+ select.options = [
527
+ {
528
+ label: "Small",
529
+ value: "s",
530
+ element: {
531
+ component: \`<ic-chip label="Small" size="small"></ic-chip>\`,
532
+ ariaLabel: "small chip",
533
+ },
534
+ hideLabel: true,
535
+ },
536
+ {
537
+ label: "Medium size",
538
+ value: "m",
539
+ element: {
540
+ component: \`<ic-chip label="Medium"></ic-chip>\`,
541
+ ariaLabel: "medium chip",
542
+ },
543
+ hideLabel: true,
544
+ },
545
+ {
546
+ label: "Large",
547
+ value: "l",
548
+ element: {
549
+ component: \`<ic-chip label="Large" size="large"></ic-chip>\`,
550
+ ariaLabel: "large chip",
551
+ },
552
+ hideLabel: true,
553
+ },
554
+ {
555
+ label: "Extra Large",
556
+ value: "xl",
557
+ },
558
+ ];
559
+ </script>`,
560
+
561
+ name: "Hidden menu option labels",
562
+ };
563
+
517
564
  export const Validation = {
518
565
  render: () =>
519
566
  html`<ic-select
@@ -574,6 +621,101 @@ export const Validation = {
574
621
  name: "Validation",
575
622
  };
576
623
 
624
+ export const AriaLiveBehaviour = {
625
+ render: () =>
626
+ html`<ic-select
627
+ id="field-1"
628
+ label="What is your favourite coffee?"
629
+ helper-text="Error already set on page load and aria-live overridden as 'assertive'"
630
+ validation-status="error"
631
+ validation-text="First error message"
632
+ validation-aria-live="assertive"
633
+ ></ic-select>
634
+ <br />
635
+ <ic-select
636
+ id="field-2"
637
+ label="What is your favourite coffee?"
638
+ helper-text="Error set after page load and aria-live overridden as 'assertive'"
639
+ validation-aria-live="assertive"
640
+ ></ic-select>
641
+ <br />
642
+ <ic-button id="toggle-btn-1">Toggle errors</ic-button>
643
+ <script>
644
+ let showErrors1 = false;
645
+ const btn1 = document.getElementById("toggle-btn-1");
646
+ const field1 = document.getElementById("field-1");
647
+ const field2 = document.getElementById("field-2");
648
+
649
+ btn1.addEventListener("click", () => {
650
+ showErrors1 = !showErrors1;
651
+
652
+ field1.setAttribute("validation-status", showErrors1 ? "" : "error");
653
+ field1.setAttribute(
654
+ "validation-text",
655
+ showErrors1 ? "" : "First error message"
656
+ );
657
+
658
+ field2.setAttribute("validation-status", showErrors1 ? "error" : "");
659
+ field2.setAttribute(
660
+ "validation-text",
661
+ showErrors1 ? "Second error message" : ""
662
+ );
663
+ });
664
+ </script>
665
+ <br />
666
+ <br />
667
+ <br />
668
+ <br />
669
+ <ic-select
670
+ id="field-3"
671
+ label="What is your favourite coffee?"
672
+ helper-text="Default aria-live behaviour (i.e. 'polite')"
673
+ ></ic-select>
674
+ <br />
675
+ <ic-select
676
+ id="field-4"
677
+ label="What is your favourite coffee?"
678
+ helper-text="Default aria-live behaviour (i.e. 'polite')"
679
+ ></ic-select>
680
+ <br />
681
+ <ic-button id="toggle-btn-2">Toggle errors</ic-button>
682
+ <script>
683
+ let showErrors2 = false;
684
+ const btn2 = document.getElementById("toggle-btn-2");
685
+ const field3 = document.getElementById("field-3");
686
+ const field4 = document.getElementById("field-4");
687
+
688
+ btn2.addEventListener("click", () => {
689
+ showErrors2 = !showErrors2;
690
+
691
+ field3.setAttribute("validation-status", showErrors2 ? "error" : "");
692
+ field3.setAttribute(
693
+ "validation-text",
694
+ showErrors2 ? "Third error message" : ""
695
+ );
696
+
697
+ field4.setAttribute("validation-status", showErrors2 ? "error" : "");
698
+ field4.setAttribute(
699
+ "validation-text",
700
+ showErrors2 ? "Fourth error message" : ""
701
+ );
702
+ });
703
+
704
+ document.querySelectorAll("ic-select").forEach((el) => {
705
+ el.options = [
706
+ { label: "Cappuccino", value: "Cap" },
707
+ { label: "Latte", value: "Lat" },
708
+ { label: "Americano", value: "Ame" },
709
+ ];
710
+ el.addEventListener("icChange", function (event) {
711
+ console.log("icChange: " + event.detail.value);
712
+ });
713
+ });
714
+ </script>`,
715
+
716
+ name: "Aria-live behaviour",
717
+ };
718
+
577
719
  export const ScrollBehaviour = {
578
720
  render: () =>
579
721
  html`<ic-select
@@ -679,6 +821,35 @@ export const EmittingIcOptionSelectOnEnter = {
679
821
  name: "Emitting icOptionSelect on enter",
680
822
  };
681
823
 
824
+ export const CustomPropsOnLiElements = {
825
+ render: () =>
826
+ html`<ic-select
827
+ id="select-custom-li-props"
828
+ label="What is your favourite coffee?"
829
+ ></ic-select>
830
+ <br />
831
+ <p>
832
+ <code>lang="it"</code> has been set on each
833
+ <code>&lt;li&gt;</code> element. This can be tested using a screen
834
+ reader.
835
+ </p>
836
+ <script>
837
+ var select = document.querySelector("#select-custom-li-props");
838
+ select.options = [
839
+ { label: "Cappuccino", value: "Cap", htmlProps: { lang: "it" } },
840
+ { label: "Latte", value: "Lat", htmlProps: { lang: "it" } },
841
+ { label: "Americano", value: "Ame", htmlProps: { lang: "it" } },
842
+ ];
843
+ select.addEventListener("icChange", function (event) {
844
+ console.log("icChange: " + event.detail.value);
845
+ });
846
+ </script>`,
847
+
848
+ name: "Custom props on <li>s",
849
+ };
850
+
851
+ const inlineRadioSelector = "inline-radio";
852
+
682
853
  export const Playground = {
683
854
  render: (args) =>
684
855
  html` <ic-select
@@ -695,6 +866,7 @@ export const Playground = {
695
866
  required=${args.required}
696
867
  show-clear-button=${args["show-clear-button"]}
697
868
  size=${args.size}
869
+ validation-aria-live=${args.validationAriaLive}
698
870
  validation-status=${args.validationStatus === "no status"
699
871
  ? ""
700
872
  : args.validationStatus}
@@ -777,6 +949,14 @@ export const Playground = {
777
949
  args: defaultArgs,
778
950
 
779
951
  argTypes: {
952
+ validationAriaLive: {
953
+ options: ["polite", "assertive", "off"],
954
+
955
+ control: {
956
+ type: inlineRadioSelector,
957
+ },
958
+ },
959
+
780
960
  validationStatus: {
781
961
  defaultValue: "no status",
782
962
  options: ["no status", "error", "success", "warning"],
@@ -790,7 +970,7 @@ export const Playground = {
790
970
  options: ["small", "medium", "large"],
791
971
 
792
972
  control: {
793
- type: "inline-radio",
973
+ type: inlineRadioSelector,
794
974
  },
795
975
  },
796
976
 
@@ -804,7 +984,7 @@ export const Playground = {
804
984
  options: ["inherit", "light", "dark"],
805
985
 
806
986
  control: {
807
- type: "inline-radio",
987
+ type: inlineRadioSelector,
808
988
  },
809
989
  },
810
990
  },
@@ -523,11 +523,8 @@ video {
523
523
  }
524
524
 
525
525
  @media (forced-colors: active) {
526
- .tag {
527
- border: var(--ic-border-hc);
526
+ :host {
528
527
  -ms-high-contrast-adjust: none;
529
528
  forced-color-adjust: none;
530
-
531
- --ic-typography-color: var(--ic-status-tag-text);
532
529
  }
533
530
  }
@@ -8,6 +8,20 @@ export class Step {
8
8
  * @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.
9
9
  */
10
10
  this.current = false;
11
+ /**
12
+ * Words within the component that can be replaced to translate the component into a different language
13
+ */
14
+ this.icI18n = {
15
+ next: "Next",
16
+ step: "Step",
17
+ steps: "Steps",
18
+ of: "of",
19
+ lastStep: "Last step",
20
+ completed: "Completed",
21
+ notRequired: "Not required",
22
+ required: "Required",
23
+ optional: "Optional",
24
+ };
11
25
  /**
12
26
  * @internal 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.
13
27
  */
@@ -27,96 +41,95 @@ export class Step {
27
41
  }
28
42
  render() {
29
43
  var _a, _b;
44
+ const { compactStepStyling, current, heading, icI18n, lastStep, lastStepNum, nextStepHeading, progress, status, stepNum, subheading, theme, type, variant, } = this;
30
45
  // ARIA LABEL
31
46
  let ariaLabel = "";
32
- if (this.type === "completed") {
33
- ariaLabel = ". Completed step";
47
+ if (type === "completed") {
48
+ ariaLabel = `. ${icI18n.completed}`;
34
49
  }
35
- else if (this.type === "disabled") {
36
- ariaLabel = ". Non-required step";
50
+ else if (type === "disabled") {
51
+ ariaLabel = `. ${icI18n.notRequired}`;
37
52
  }
38
- else if (this.status === "required") {
39
- ariaLabel = ". Required step";
53
+ else if (status === "required") {
54
+ ariaLabel = `. ${icI18n.required}`;
40
55
  }
41
- else if (this.status === "optional") {
42
- ariaLabel = ". Optional step";
56
+ else if (status === "optional") {
57
+ ariaLabel = `. ${icI18n.optional}`;
43
58
  }
44
59
  // STEP STATUS
45
60
  let stepStatus;
46
- if (this.status && isPropDefined(this.status)) {
47
- stepStatus = this.status[0].toUpperCase() + this.status.slice(1);
61
+ if (status && isPropDefined(status)) {
62
+ stepStatus = status[0].toUpperCase() + status.slice(1);
48
63
  }
49
64
  // STEP TYPE
50
65
  let stepType;
51
- if (this.type === "disabled" || this.compactStepStyling === "disabled") {
52
- stepType = "Not required";
66
+ if (type === "disabled" || compactStepStyling === "disabled") {
67
+ stepType = icI18n.notRequired;
53
68
  }
54
- else if (this.compactStepStyling === "completed") {
55
- stepType = "Completed";
69
+ else if (compactStepStyling === "completed") {
70
+ stepType = icI18n.completed;
56
71
  }
57
72
  // STATUS ICON FOR COMPACT STEP
58
73
  let statusIcon;
59
- if (this.type === "completed" || this.compactStepStyling === "completed") {
60
- statusIcon = (h("span", { key: '31e62d15ef4e1b19777678e5d0c8d3c3e1576b9b', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
74
+ if (type === "completed" || compactStepStyling === "completed") {
75
+ statusIcon = (h("span", { key: 'c1e124ab66fda2ad2fe60769de15e35e34519951', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
61
76
  }
62
- else if (this.type === "disabled" ||
63
- this.compactStepStyling === "disabled") {
64
- statusIcon = (h("span", { key: '6f4911859d103732d5f2133a26dc4e05cd6a3d22', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
77
+ else if (type === "disabled" || compactStepStyling === "disabled") {
78
+ statusIcon = (h("span", { key: 'e4a11bda9361099c4a082a17ea365c5f87c72ee9', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
65
79
  }
66
80
  // COMPACT STEP COMPONENT
67
- const compactStep = (h("div", { key: '3abb768b9f5072d26314ea3af8d8a1d15950aef2', class: {
81
+ const compactStep = (h("div", { key: 'f4ce620bf342de1d168cd8988e110b399d16e8a5', class: {
68
82
  ["step"]: true,
69
- ["current"]: !!this.current,
70
- [`compact-step-${this.compactStepStyling}`]: !!this.compactStepStyling,
71
- ["disabled"]: this.type === "disabled" || this.compactStepStyling === "disabled",
72
- } }, h("ic-loading-indicator", { key: '01610eac2cb0eee7b3ee0f22de7d9cd8cf34f140', class: {
83
+ ["current"]: !!current,
84
+ [`compact-step-${compactStepStyling}`]: !!compactStepStyling,
85
+ ["disabled"]: type === "disabled" || compactStepStyling === "disabled",
86
+ } }, h("ic-loading-indicator", { key: '69fe4783331f0d2c8537e46bb4065ee946e15922', class: {
73
87
  "compact-step-progress-indicator": true,
74
- "not-required": this.type === "disabled" ||
75
- this.compactStepStyling === "disabled",
76
- }, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), h("div", { key: '62012e70159993ed1706bd81d44f349390393c84', class: "heading-area" }, h("ic-typography", { key: 'd7a88dc3a430c3278427c7ca05dfd4bad39e1142', variant: "h4", class: "heading" }, this.heading), h("div", { key: 'd05bb42194a52eb5bc348a254e925b3b6471c1a9', class: "info-line" }, h("ic-typography", { key: '0eb058bb2dd87513830a34885623cfe67c28013b', variant: "caption", class: "step-num" }, `${this.stepNum} of ${this.lastStepNum}`, h("span", { key: '9ce66855d6b9776dbd1fcd8c0d55b3361cd97fa3', class: "visually-hidden" }, " steps")), (this.subheading ||
77
- this.type === "completed" ||
78
- this.type === "disabled" ||
88
+ "not-required": type === "disabled" || compactStepStyling === "disabled",
89
+ }, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), h("div", { key: '5e44dab23d530705ce04d6f5e898224031be9eae', class: "heading-area" }, h("ic-typography", { key: '09feb668ddc70f11313c4639b1b2dd3efa86903e', variant: "h4", class: "heading" }, heading), h("div", { key: '5d2e680eec783d9da46298084f379b780a2dfbb5', class: "info-line" }, h("ic-typography", { key: '8578d9363f9b29301cdfe46a360bdbf525ec16e8', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, h("span", { key: 'f9bcfd8e7ff1179ed7c48714741fddc401b9de00', class: "visually-hidden" }, ` ${icI18n.steps}`)), (this.subheading ||
90
+ type === "completed" ||
91
+ type === "disabled" ||
79
92
  (this.variant === "compact" &&
80
- !!this.compactStepStyling &&
81
- this.compactStepStyling !== "active") ||
82
- !!this.status) && (h("div", { key: 'a9fad93fb213aea850b57a508b2cfd18e66a4601', class: "step-status" }, statusIcon !== undefined && statusIcon, (this.subheading || stepType) && (h("ic-typography", { key: 'c7efc458915ba355ab46bb7764685cb72a725742', variant: "caption" }, this.subheading !== null && isPropDefined(this.subheading)
83
- ? this.subheading
84
- : this.type === "disabled" ||
85
- (this.variant === "compact" &&
86
- this.compactStepStyling === "disabled") ||
87
- this.type === "completed" ||
88
- (this.variant === "compact" &&
89
- this.compactStepStyling === "completed")
93
+ !!compactStepStyling &&
94
+ compactStepStyling !== "active") ||
95
+ !!status) && (h("div", { key: 'ee4276dfd163853a6b82563e89e123b75c224613', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (h("ic-typography", { key: '3a165f76bb8cf653705a0e86e931616fc75030b1', variant: "caption" }, subheading !== null && isPropDefined(subheading)
96
+ ? subheading
97
+ : type === "disabled" ||
98
+ (variant === "compact" &&
99
+ compactStepStyling === "disabled") ||
100
+ type === "completed" ||
101
+ (variant === "compact" &&
102
+ compactStepStyling === "completed")
90
103
  ? stepType
91
- : this.status && stepStatus))))), this.lastStep ? (h("ic-typography", { variant: "subtitle-small", class: "next-step" }, "Last step")) : (isPropDefined(this.nextStepHeading) && (h("ic-typography", { variant: "subtitle-small", class: "next-step" }, "Next", h("span", { class: "visually-hidden" }, " step is"), ":", " ", this.nextStepHeading))))));
104
+ : status && stepStatus))))), lastStep ? (h("ic-typography", { variant: "subtitle-small", class: "next-step" }, icI18n.lastStep)) : (isPropDefined(nextStepHeading) && (h("ic-typography", { variant: "subtitle-small", class: "next-step" }, icI18n.next, h("span", { class: "visually-hidden" }, " ", icI18n.step), ":", " ", this.nextStepHeading))))));
92
105
  // ICON FOR DEFAULT STEP
93
106
  let icon;
94
- if (this.type !== "completed") {
95
- icon = (h("ic-typography", { key: 'f2730d318e4fd63b63fdacafcb71a58cebbe2f59', variant: "subtitle-small" }, h("span", { key: '03a7ddac3f3ded528cf1a46097a81a0e2568e3c6', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
107
+ if (type !== "completed") {
108
+ icon = (h("ic-typography", { key: '4ada11af3f862b66af7ca387ca5e2ed0c7bd1456', variant: "subtitle-small" }, h("span", { key: 'f7acc54618d69f93bdfc8d9c9322e23d58749a51', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
96
109
  }
97
110
  else {
98
- icon = (h("div", { key: '58fb2c4ee87edb92d49134763cbadd79f0c9a54e', class: "step-icon-inner", "aria-hidden": "true" }, h("span", { key: '71753c297cf27e8bcdbcc33e1677d8e890ebc14b', class: "check-icon", innerHTML: checkIcon })));
111
+ icon = (h("div", { key: '5efba193e768116f7bf92a0369d61fdd7e8b04ff', class: "step-icon-inner", "aria-hidden": "true" }, h("span", { key: '390a1f3f6daffa5e2e82293b81680a3eb9f1bb35', class: "check-icon", innerHTML: checkIcon })));
99
112
  }
100
113
  // STEP CONNECT FOR DEFAULT STEP
101
- const partialBar = this.type === "current" && (h("div", { key: 'a6bd5f3e2a433845a1e55fbd5b714ea8c87f44d5', class: "step-connect-inner" }));
102
- const finalStep = !this.lastStep && (h("div", { key: '28a9ba2a0fc5d7219e5bb5fa70696a62aa511b6d', class: {
114
+ const partialBar = type === "current" && (h("div", { key: 'd4255228e9626afbce26b5b65bb3b1329795cc84', class: "step-connect-inner" }));
115
+ const finalStep = !lastStep && (h("div", { key: '72093cf835767969a9f56a45e7952e42d2b21d46', class: {
103
116
  ["step-connect"]: true,
104
117
  ["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
105
118
  !this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
106
119
  } }, partialBar));
107
120
  // DEFAULT STEP COMPONENT
108
- const defaultStep = (h("div", { key: 'fdef2ca76d51403edda89814d7c3bd359fa371ab', class: {
121
+ const defaultStep = (h("div", { key: '7ee74bb84e4678e20ee4eb5daa26f9252d795f83', class: {
109
122
  ["step"]: true,
110
- [`${this.type}`]: true,
111
- } }, h("div", { key: '10a8908e0b3022b68255d0062d49cf9db75d3277', class: "step-top" }, h("div", { key: '70d65414701e912b38d6b28bc49527f83c389849', class: "step-icon" }, icon), finalStep), (this.heading || this.subheading || this.status) && (h("div", { key: 'b0f5ba114b2076b647b48e886620b72b60c68e07', class: "heading-area" }, this.heading && (h("ic-typography", { key: '7be124b0b48932cd6f66264376a49b6387c5f6cc', variant: "subtitle-large", class: "heading" }, this.heading)), this.heading && (this.subheading || this.status) && (h("ic-typography", { key: 'cc27e08a365f008d259cc67862fb7c92728dd3bc', variant: "caption", class: "subheading" }, this.subheading !== null && isPropDefined(this.subheading)
112
- ? this.subheading
123
+ [`${type}`]: true,
124
+ } }, h("div", { key: 'c3e678c9eab7688174b87c55bad404407ffedd72', class: "step-top" }, h("div", { key: 'bad28cb205e9450b226073b8803e779d62616207', class: "step-icon" }, icon), finalStep), (heading || subheading || status) && (h("div", { key: '946ab99559fdaa3106244e6758b7573ea454d5b8', class: "heading-area" }, heading && (h("ic-typography", { key: 'c2a9e10b0e30b0de194b321f1683c6d36783020d', variant: "subtitle-large", class: "heading" }, heading)), heading && (subheading || status) && (h("ic-typography", { key: 'bfa452d159a531bb0706540af3c91407f0c9f03f', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined(subheading)
125
+ ? subheading
113
126
  : stepStatus))))));
114
- return (h(Host, { key: '0fa86f597f22a806165b7583eb39d4bbdccc4d40', role: "listitem", "aria-label": `Step ${this.stepNum}${ariaLabel}`, "aria-current": (this.current || this.type === "current") && "step", class: {
127
+ return (h(Host, { key: 'e1d36358b31ec0f91ca0c9874a661ce10bd38d2c', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
115
128
  ["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
116
129
  !this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
117
- [`ic-step-${this.variant}`]: true,
118
- [`ic-theme-${this.theme}`]: this.theme !== "inherit",
119
- } }, this.variant === "compact" ? compactStep : defaultStep));
130
+ [`ic-step-${variant}`]: true,
131
+ [`ic-theme-${theme}`]: this.theme !== "inherit",
132
+ } }, variant === "compact" ? compactStep : defaultStep));
120
133
  }
121
134
  static get is() { return "ic-step"; }
122
135
  static get encapsulation() { return "shadow"; }
@@ -183,6 +196,30 @@ export class Step {
183
196
  "reflect": false,
184
197
  "defaultValue": "false"
185
198
  },
199
+ "icI18n": {
200
+ "type": "unknown",
201
+ "mutable": false,
202
+ "complexType": {
203
+ "original": "IcStepI18n",
204
+ "resolved": "{ next: string; step: string; steps: string; of: string; lastStep: string; completed: string; notRequired: string; required: string; optional: string; }",
205
+ "references": {
206
+ "IcStepI18n": {
207
+ "location": "import",
208
+ "path": "./ic-step.types",
209
+ "id": "src/components/ic-step/ic-step.types.ts::IcStepI18n"
210
+ }
211
+ }
212
+ },
213
+ "required": false,
214
+ "optional": false,
215
+ "docs": {
216
+ "tags": [],
217
+ "text": "Words within the component that can be replaced to translate the component into a different language"
218
+ },
219
+ "getter": false,
220
+ "setter": false,
221
+ "defaultValue": "{\n next: \"Next\",\n step: \"Step\",\n steps: \"Steps\",\n of: \"of\",\n lastStep: \"Last step\",\n completed: \"Completed\",\n notRequired: \"Not required\",\n required: \"Required\",\n optional: \"Optional\",\n }"
222
+ },
186
223
  "lastStep": {
187
224
  "type": "boolean",
188
225
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"ic-step.js","sourceRoot":"","sources":["../../../src/components/ic-step/ic-step.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAQpD,MAAM,OAAO,IAAI;IALjB;QAaE;;WAEG;QACsB,YAAO,GAAa,KAAK,CAAC;QA0CnD;;WAEG;QACK,UAAK,GAAiB,SAAS,CAAC;QAOxC;;WAEG;QACK,SAAI,GAAiB,QAAQ,CAAC;KA+NvC;IA5NC,iBAAiB;QACf,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC1D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACtB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,MAAM;;QACJ,aAAa;QACb,IAAI,SAAS,GAAG,EAAE,CAAC;QAEnB,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;YAC9B,SAAS,GAAG,kBAAkB,CAAC;QACjC,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACpC,SAAS,GAAG,qBAAqB,CAAC;QACpC,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;YACtC,SAAS,GAAG,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CACF","sourcesContent":["import { Component, Host, h, Prop, Element, Watch } from \"@stencil/core\";\nimport checkIcon from \"../../assets/check-icon.svg\";\nimport warningIcon from \"../../assets/warning-icon-outline.svg\";\nimport { IcStepVariants, IcStepStatuses, IcStepTypes } from \"./ic-step.types\";\nimport { isPropDefined } from \"../../utils/helpers\";\nimport { IcThemeMode } from \"../../utils/types\";\n\n@Component({\n tag: \"ic-step\",\n styleUrl: \"ic-step.css\",\n shadow: true,\n})\nexport class Step {\n @Element() el: HTMLIcStepElement;\n\n /**\n * @internal If a compact stepper is being used, this sets the styling of the step.\n */\n @Prop() compactStepStyling?: IcStepTypes;\n\n /**\n * @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.\n */\n @Prop({ mutable: true }) current?: boolean = false;\n\n /**\n * @internal If `true`, the step will be marked as being the last one in the series. This is managed by ic-stepper.\n */\n @Prop() lastStep!: boolean;\n\n /**\n * @internal The step number of the final step. This is managed by ic-stepper.\n */\n @Prop() lastStepNum?: number;\n\n /**\n * @internal The name of the next step. This is managed by ic-stepper.\n */\n @Prop() nextStepHeading?: string;\n\n /**\n * @internal The progress of the next step, calculated by dividing the current step number by the total number of steps. This is managed by ic-stepper.\n */\n @Prop() progress?: number;\n\n /**\n * @internal The step number, managed by ic-stepper.\n */\n @Prop() stepNum?: number;\n\n /**\n * The status of the step. Use this prop to display a status message on the step if it is required or optional.\n */\n @Prop() status?: IcStepStatuses;\n\n /**\n * Additional information about the step. Use this prop to override the default step status messaging displayed when selecting a step type or step status.\n */\n @Prop() subheading?: string;\n\n /**\n * The title of the step within the stepper.\n */\n @Prop() heading?: string;\n\n /**\n * @internal 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 * @internal The variant of the step. This is managed by ic-stepper.\n */\n @Prop() variant!: IcStepVariants;\n\n /**\n * The state of the step within the stepper.\n */\n @Prop() type?: IcStepTypes = \"active\";\n\n @Watch(\"type\")\n typeChangeHandler(): void {\n if (this.variant === \"compact\" && this.type === \"current\") {\n this.current = true;\n } else {\n this.current = false;\n }\n }\n\n render() {\n // ARIA LABEL\n let ariaLabel = \"\";\n\n if (this.type === \"completed\") {\n ariaLabel = \". Completed step\";\n } else if (this.type === \"disabled\") {\n ariaLabel = \". Non-required step\";\n } else if (this.status === \"required\") {\n ariaLabel = \". Required step\";\n } else if (this.status === \"optional\") {\n ariaLabel = \". Optional step\";\n }\n\n // STEP STATUS\n let stepStatus;\n if (this.status && isPropDefined(this.status)) {\n stepStatus = this.status[0].toUpperCase() + this.status.slice(1);\n }\n\n // STEP TYPE\n let stepType;\n if (this.type === \"disabled\" || this.compactStepStyling === \"disabled\") {\n stepType = \"Not required\";\n } else if (this.compactStepStyling === \"completed\") {\n stepType = \"Completed\";\n }\n\n // STATUS ICON FOR COMPACT STEP\n let statusIcon;\n if (this.type === \"completed\" || this.compactStepStyling === \"completed\") {\n statusIcon = (\n <span\n class=\"check-icon step-icon\"\n aria-hidden=\"true\"\n innerHTML={checkIcon}\n ></span>\n );\n } else if (\n this.type === \"disabled\" ||\n this.compactStepStyling === \"disabled\"\n ) {\n statusIcon = (\n <span\n class=\"warning-icon step-icon\"\n aria-hidden=\"true\"\n innerHTML={warningIcon}\n ></span>\n );\n }\n\n // COMPACT STEP COMPONENT\n const compactStep = (\n <div\n class={{\n [\"step\"]: true,\n [\"current\"]: !!this.current,\n [`compact-step-${this.compactStepStyling}`]:\n !!this.compactStepStyling,\n [\"disabled\"]:\n this.type === \"disabled\" || this.compactStepStyling === \"disabled\",\n }}\n >\n <ic-loading-indicator\n class={{\n \"compact-step-progress-indicator\": true,\n \"not-required\":\n this.type === \"disabled\" ||\n this.compactStepStyling === \"disabled\",\n }}\n aria-hidden=\"true\"\n size=\"small\"\n inner-label={this.stepNum}\n progress={this.progress}\n ></ic-loading-indicator>\n <div class=\"heading-area\">\n <ic-typography variant=\"h4\" class=\"heading\">\n {this.heading}\n </ic-typography>\n <div class=\"info-line\">\n <ic-typography variant=\"caption\" class=\"step-num\">\n {`${this.stepNum} of ${this.lastStepNum}`}\n <span class=\"visually-hidden\"> steps</span>\n </ic-typography>\n {(this.subheading ||\n this.type === \"completed\" ||\n this.type === \"disabled\" ||\n (this.variant === \"compact\" &&\n !!this.compactStepStyling &&\n this.compactStepStyling !== \"active\") ||\n !!this.status) && (\n <div class=\"step-status\">\n {statusIcon !== undefined && statusIcon}\n {(this.subheading || stepType) && (\n <ic-typography variant=\"caption\">\n {this.subheading !== null && isPropDefined(this.subheading)\n ? this.subheading\n : this.type === \"disabled\" ||\n (this.variant === \"compact\" &&\n this.compactStepStyling === \"disabled\") ||\n this.type === \"completed\" ||\n (this.variant === \"compact\" &&\n this.compactStepStyling === \"completed\")\n ? stepType\n : this.status && stepStatus}\n </ic-typography>\n )}\n </div>\n )}\n </div>\n {this.lastStep ? (\n <ic-typography variant=\"subtitle-small\" class=\"next-step\">\n Last step\n </ic-typography>\n ) : (\n isPropDefined(this.nextStepHeading) && (\n <ic-typography variant=\"subtitle-small\" class=\"next-step\">\n Next<span class=\"visually-hidden\"> step is</span>:{\" \"}\n {this.nextStepHeading}\n </ic-typography>\n )\n )}\n </div>\n </div>\n );\n\n // ICON FOR DEFAULT STEP\n let icon;\n if (this.type !== \"completed\") {\n icon = (\n <ic-typography variant=\"subtitle-small\">\n <span class=\"step-icon-inner\" aria-hidden=\"true\">\n {this.stepNum}\n </span>\n </ic-typography>\n );\n } else {\n icon = (\n <div class=\"step-icon-inner\" aria-hidden=\"true\">\n <span class=\"check-icon\" innerHTML={checkIcon}></span>\n </div>\n );\n }\n\n // STEP CONNECT FOR DEFAULT STEP\n const partialBar = this.type === \"current\" && (\n <div class=\"step-connect-inner\"></div>\n );\n\n const finalStep = !this.lastStep && (\n <div\n class={{\n [\"step-connect\"]: true,\n [\"aligned-full-width\"]: !!(\n this.el.parentElement?.classList.contains(\"ic-stepper-default\") &&\n !this.el.parentElement.classList.contains(\"ic-stepper-aligned-left\")\n ),\n }}\n >\n {partialBar}\n </div>\n );\n\n // DEFAULT STEP COMPONENT\n const defaultStep = (\n <div\n class={{\n [\"step\"]: true,\n [`${this.type}`]: true,\n }}\n >\n <div class=\"step-top\">\n <div class=\"step-icon\">{icon}</div>\n {finalStep}\n </div>\n {(this.heading || this.subheading || this.status) && (\n <div class=\"heading-area\">\n {this.heading && (\n <ic-typography variant=\"subtitle-large\" class=\"heading\">\n {this.heading}\n </ic-typography>\n )}\n {this.heading && (this.subheading || this.status) && (\n <ic-typography variant=\"caption\" class=\"subheading\">\n {this.subheading !== null && isPropDefined(this.subheading)\n ? this.subheading\n : stepStatus}\n </ic-typography>\n )}\n </div>\n )}\n </div>\n );\n\n return (\n <Host\n role=\"listitem\"\n aria-label={`Step ${this.stepNum}${ariaLabel}`}\n aria-current={(this.current || this.type === \"current\") && \"step\"}\n class={{\n [\"aligned-full-width\"]: !!(\n this.el.parentElement?.classList.contains(\"ic-stepper-default\") &&\n !this.el.parentElement.classList.contains(\"ic-stepper-aligned-left\")\n ),\n [`ic-step-${this.variant}`]: true,\n [`ic-theme-${this.theme}`]: this.theme !== \"inherit\",\n }}\n >\n {this.variant === \"compact\" ? compactStep : defaultStep}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"ic-step.js","sourceRoot":"","sources":["../../../src/components/ic-step/ic-step.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAOhE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAQpD,MAAM,OAAO,IAAI;IALjB;QAaE;;WAEG;QACsB,YAAO,GAAa,KAAK,CAAC;QAEnD;;WAEG;QACK,WAAM,GAAe;YAC3B,IAAI,EAAE,MAAM;YACZ,IAAI,E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AC,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;aAChD,IAEA,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAC7C,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Element, Watch } from \"@stencil/core\";\nimport checkIcon from \"../../assets/check-icon.svg\";\nimport warningIcon from \"../../assets/warning-icon-outline.svg\";\nimport {\n IcStepVariants,\n IcStepStatuses,\n IcStepTypes,\n IcStepI18n,\n} from \"./ic-step.types\";\nimport { isPropDefined } from \"../../utils/helpers\";\nimport { IcThemeMode } from \"../../utils/types\";\n\n@Component({\n tag: \"ic-step\",\n styleUrl: \"ic-step.css\",\n shadow: true,\n})\nexport class Step {\n @Element() el: HTMLIcStepElement;\n\n /**\n * @internal If a compact stepper is being used, this sets the styling of the step.\n */\n @Prop() compactStepStyling?: IcStepTypes;\n\n /**\n * @internal If `true`, and a compact stepper is being used, the current step will be the only step in view.\n */\n @Prop({ mutable: true }) current?: boolean = false;\n\n /**\n * Words within the component that can be replaced to translate the component into a different language\n */\n @Prop() icI18n: IcStepI18n = {\n next: \"Next\",\n step: \"Step\",\n steps: \"Steps\",\n of: \"of\",\n lastStep: \"Last step\",\n completed: \"Completed\",\n notRequired: \"Not required\",\n required: \"Required\",\n optional: \"Optional\",\n };\n\n /**\n * @internal If `true`, the step will be marked as being the last one in the series. This is managed by ic-stepper.\n */\n @Prop() lastStep!: boolean;\n\n /**\n * @internal The step number of the final step. This is managed by ic-stepper.\n */\n @Prop() lastStepNum?: number;\n\n /**\n * @internal The name of the next step. This is managed by ic-stepper.\n */\n @Prop() nextStepHeading?: string;\n\n /**\n * @internal The progress of the next step, calculated by dividing the current step number by the total number of steps. This is managed by ic-stepper.\n */\n @Prop() progress?: number;\n\n /**\n * @internal The step number, managed by ic-stepper.\n */\n @Prop() stepNum?: number;\n\n /**\n * The status of the step. Use this prop to display a status message on the step if it is required or optional.\n */\n @Prop() status?: IcStepStatuses;\n\n /**\n * Additional information about the step. Use this prop to override the default step status messaging displayed when selecting a step type or step status.\n */\n @Prop() subheading?: string;\n\n /**\n * The title of the step within the stepper.\n */\n @Prop() heading?: string;\n\n /**\n * @internal 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 * @internal The variant of the step. This is managed by ic-stepper.\n */\n @Prop() variant!: IcStepVariants;\n\n /**\n * The state of the step within the stepper.\n */\n @Prop() type?: IcStepTypes = \"active\";\n\n @Watch(\"type\")\n typeChangeHandler(): void {\n if (this.variant === \"compact\" && this.type === \"current\") {\n this.current = true;\n } else {\n this.current = false;\n }\n }\n\n render() {\n const {\n compactStepStyling,\n current,\n heading,\n icI18n,\n lastStep,\n lastStepNum,\n nextStepHeading,\n progress,\n status,\n stepNum,\n subheading,\n theme,\n type,\n variant,\n } = this;\n\n // ARIA LABEL\n let ariaLabel = \"\";\n\n if (type === \"completed\") {\n ariaLabel = `. ${icI18n.completed}`;\n } else if (type === \"disabled\") {\n ariaLabel = `. ${icI18n.notRequired}`;\n } else if (status === \"required\") {\n ariaLabel = `. ${icI18n.required}`;\n } else if (status === \"optional\") {\n ariaLabel = `. ${icI18n.optional}`;\n }\n\n // STEP STATUS\n let stepStatus;\n if (status && isPropDefined(status)) {\n stepStatus = status[0].toUpperCase() + status.slice(1);\n }\n\n // STEP TYPE\n let stepType;\n if (type === \"disabled\" || compactStepStyling === \"disabled\") {\n stepType = icI18n.notRequired;\n } else if (compactStepStyling === \"completed\") {\n stepType = icI18n.completed;\n }\n\n // STATUS ICON FOR COMPACT STEP\n let statusIcon;\n if (type === \"completed\" || compactStepStyling === \"completed\") {\n statusIcon = (\n <span\n class=\"check-icon step-icon\"\n aria-hidden=\"true\"\n innerHTML={checkIcon}\n ></span>\n );\n } else if (type === \"disabled\" || compactStepStyling === \"disabled\") {\n statusIcon = (\n <span\n class=\"warning-icon step-icon\"\n aria-hidden=\"true\"\n innerHTML={warningIcon}\n ></span>\n );\n }\n\n // COMPACT STEP COMPONENT\n const compactStep = (\n <div\n class={{\n [\"step\"]: true,\n [\"current\"]: !!current,\n [`compact-step-${compactStepStyling}`]: !!compactStepStyling,\n [\"disabled\"]:\n type === \"disabled\" || compactStepStyling === \"disabled\",\n }}\n >\n <ic-loading-indicator\n class={{\n \"compact-step-progress-indicator\": true,\n \"not-required\":\n type === \"disabled\" || compactStepStyling === \"disabled\",\n }}\n aria-hidden=\"true\"\n size=\"small\"\n inner-label={stepNum}\n progress={progress}\n ></ic-loading-indicator>\n <div class=\"heading-area\">\n <ic-typography variant=\"h4\" class=\"heading\">\n {heading}\n </ic-typography>\n <div class=\"info-line\">\n <ic-typography variant=\"caption\" class=\"step-num\">\n {`${stepNum} ${icI18n.of} ${lastStepNum}`}\n <span class=\"visually-hidden\">{` ${icI18n.steps}`}</span>\n </ic-typography>\n {(this.subheading ||\n type === \"completed\" ||\n type === \"disabled\" ||\n (this.variant === \"compact\" &&\n !!compactStepStyling &&\n compactStepStyling !== \"active\") ||\n !!status) && (\n <div class=\"step-status\">\n {statusIcon !== undefined && statusIcon}\n {(subheading || stepType) && (\n <ic-typography variant=\"caption\">\n {subheading !== null && isPropDefined(subheading)\n ? subheading\n : type === \"disabled\" ||\n (variant === \"compact\" &&\n compactStepStyling === \"disabled\") ||\n type === \"completed\" ||\n (variant === \"compact\" &&\n compactStepStyling === \"completed\")\n ? stepType\n : status && stepStatus}\n </ic-typography>\n )}\n </div>\n )}\n </div>\n {lastStep ? (\n <ic-typography variant=\"subtitle-small\" class=\"next-step\">\n {icI18n.lastStep}\n </ic-typography>\n ) : (\n isPropDefined(nextStepHeading) && (\n <ic-typography variant=\"subtitle-small\" class=\"next-step\">\n {icI18n.next}\n <span class=\"visually-hidden\"> {icI18n.step}</span>:{\" \"}\n {this.nextStepHeading}\n </ic-typography>\n )\n )}\n </div>\n </div>\n );\n\n // ICON FOR DEFAULT STEP\n let icon;\n if (type !== \"completed\") {\n icon = (\n <ic-typography variant=\"subtitle-small\">\n <span class=\"step-icon-inner\" aria-hidden=\"true\">\n {this.stepNum}\n </span>\n </ic-typography>\n );\n } else {\n icon = (\n <div class=\"step-icon-inner\" aria-hidden=\"true\">\n <span class=\"check-icon\" innerHTML={checkIcon}></span>\n </div>\n );\n }\n\n // STEP CONNECT FOR DEFAULT STEP\n const partialBar = type === \"current\" && (\n <div class=\"step-connect-inner\"></div>\n );\n\n const finalStep = !lastStep && (\n <div\n class={{\n [\"step-connect\"]: true,\n [\"aligned-full-width\"]: !!(\n this.el.parentElement?.classList.contains(\"ic-stepper-default\") &&\n !this.el.parentElement.classList.contains(\"ic-stepper-aligned-left\")\n ),\n }}\n >\n {partialBar}\n </div>\n );\n\n // DEFAULT STEP COMPONENT\n const defaultStep = (\n <div\n class={{\n [\"step\"]: true,\n [`${type}`]: true,\n }}\n >\n <div class=\"step-top\">\n <div class=\"step-icon\">{icon}</div>\n {finalStep}\n </div>\n {(heading || subheading || status) && (\n <div class=\"heading-area\">\n {heading && (\n <ic-typography variant=\"subtitle-large\" class=\"heading\">\n {heading}\n </ic-typography>\n )}\n {heading && (subheading || status) && (\n <ic-typography variant=\"caption\" class=\"subheading\">\n {subheading !== null && isPropDefined(subheading)\n ? subheading\n : stepStatus}\n </ic-typography>\n )}\n </div>\n )}\n </div>\n );\n\n return (\n <Host\n role=\"listitem\"\n aria-label={`${icI18n.step} ${stepNum}${ariaLabel}`}\n aria-current={(current || type === \"current\") && \"step\"}\n class={{\n [\"aligned-full-width\"]: !!(\n this.el.parentElement?.classList.contains(\"ic-stepper-default\") &&\n !this.el.parentElement.classList.contains(\"ic-stepper-aligned-left\")\n ),\n [`ic-step-${variant}`]: true,\n [`ic-theme-${theme}`]: this.theme !== \"inherit\",\n }}\n >\n {variant === \"compact\" ? compactStep : defaultStep}\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ic-step.types.js","sourceRoot":"","sources":["../../../src/components/ic-step/ic-step.types.ts"],"names":[],"mappings":"","sourcesContent":["export type IcStepVariants = \"default\" | \"compact\";\n\nexport type IcStepStatuses = \"optional\" | \"required\";\n\nexport type IcStepTypes = \"active\" | \"current\" | \"completed\" | \"disabled\";\n"]}
1
+ {"version":3,"file":"ic-step.types.js","sourceRoot":"","sources":["../../../src/components/ic-step/ic-step.types.ts"],"names":[],"mappings":"","sourcesContent":["export type IcStepVariants = \"default\" | \"compact\";\n\nexport type IcStepStatuses = \"optional\" | \"required\";\n\nexport type IcStepTypes = \"active\" | \"current\" | \"completed\" | \"disabled\";\n\nexport type IcStepI18n = {\n next: string;\n step: string;\n steps: string;\n of: string;\n lastStep: string;\n completed: string;\n notRequired: string;\n required: string;\n optional: string;\n};\n"]}
@@ -25,6 +25,20 @@ export class Stepper {
25
25
  * If `true`, the information about each step, i.e. step title, step subtitle and step status, will be hidden on all default steps. The information about each step will still be visible in the compact variant of the stepper.
26
26
  */
27
27
  this.hideStepInfo = false;
28
+ /**
29
+ * Provide alternative values for text in all child steps. For the purpose of translating the application into other languages.
30
+ */
31
+ this.icI18n = {
32
+ next: "Next",
33
+ step: "Step",
34
+ steps: "Steps",
35
+ of: "of",
36
+ lastStep: "Last step",
37
+ completed: "Completed",
38
+ notRequired: "Not required",
39
+ required: "Required",
40
+ optional: "Optional",
41
+ };
28
42
  /**
29
43
  * 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.
30
44
  */
@@ -70,6 +84,10 @@ export class Stepper {
70
84
  this.initialiseStepStates = () => {
71
85
  this.steps.forEach((step, index) => {
72
86
  var _a, _b, _c;
87
+ // Set language
88
+ if (this.icI18n !== undefined) {
89
+ step.icI18n = this.icI18n;
90
+ }
73
91
  // Set variant
74
92
  step.variant = this.variant;
75
93
  // Assign stepNum to each step
@@ -241,11 +259,11 @@ export class Stepper {
241
259
  checkResizeObserver(this.runResizeObserver);
242
260
  }
243
261
  render() {
244
- return (h(Host, { key: 'b7a0dfaa4d7842f9df2f85e1dbc2e693d9c68679', class: {
262
+ return (h(Host, { key: '9d9ca9d145f10826c095669a86a99b532bee274d', class: {
245
263
  [`ic-stepper-${this.variant}`]: true,
246
264
  ["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
247
265
  [`ic-theme-${this.theme}`]: this.theme !== "inherit",
248
- } }, h("ul", { key: '051a97451fc7e8074978f332aa4aa1a6bcfcd17f', class: "step-item-list" }, h("slot", { key: 'bbecef8f861b321f530606b70229a15a9d20549b' }))));
266
+ } }, h("ul", { key: '7cc19512929ba09b0e13b50f400c5b84967678d3', class: "step-item-list" }, h("slot", { key: '35312de95aa58d5555e19911db1d030d31b74cb4' }))));
249
267
  }
250
268
  static get is() { return "ic-stepper"; }
251
269
  static get encapsulation() { return "shadow"; }
@@ -327,6 +345,30 @@ export class Stepper {
327
345
  "reflect": false,
328
346
  "defaultValue": "false"
329
347
  },
348
+ "icI18n": {
349
+ "type": "unknown",
350
+ "mutable": false,
351
+ "complexType": {
352
+ "original": "IcStepI18n",
353
+ "resolved": "undefined | { next: string; step: string; steps: string; of: string; lastStep: string; completed: string; notRequired: string; required: string; optional: string; }",
354
+ "references": {
355
+ "IcStepI18n": {
356
+ "location": "import",
357
+ "path": "../ic-step/ic-step.types",
358
+ "id": "src/components/ic-step/ic-step.types.ts::IcStepI18n"
359
+ }
360
+ }
361
+ },
362
+ "required": false,
363
+ "optional": true,
364
+ "docs": {
365
+ "tags": [],
366
+ "text": "Provide alternative values for text in all child steps. For the purpose of translating the application into other languages."
367
+ },
368
+ "getter": false,
369
+ "setter": false,
370
+ "defaultValue": "{\n next: \"Next\",\n step: \"Step\",\n steps: \"Steps\",\n of: \"of\",\n lastStep: \"Last step\",\n completed: \"Completed\",\n notRequired: \"Not required\",\n required: \"Required\",\n optional: \"Optional\",\n }"
371
+ },
330
372
  "theme": {
331
373
  "type": "string",
332
374
  "mutable": false,