@ukic/web-components 2.1.0-beta.2 → 2.1.0-beta.3

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 (343) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/ic-alert.cjs.entry.js +2 -0
  3. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  4. package/dist/cjs/ic-button_3.cjs.entry.js +25 -9
  5. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-checkbox.cjs.entry.js +2 -0
  9. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-chip.cjs.entry.js +66 -0
  11. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -0
  12. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  13. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-footer.cjs.entry.js +2 -2
  18. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +16 -16
  21. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -2
  26. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-radio-option.cjs.entry.js +10 -0
  30. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-select.cjs.entry.js +2 -2
  34. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-step.cjs.entry.js +101 -13
  37. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-stepper.cjs.entry.js +161 -40
  39. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-tab-context.cjs.entry.js +6 -1
  41. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  45. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  47. package/dist/cjs/index-3ef30d9d.js +4 -0
  48. package/dist/cjs/loader.cjs.js +1 -1
  49. package/dist/collection/assets/dismiss-icon.svg +3 -0
  50. package/dist/collection/assets/warning-icon-outline.svg +3 -0
  51. package/dist/collection/collection-manifest.json +1 -0
  52. package/dist/collection/components/ic-alert/ic-alert.js +20 -1
  53. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  54. package/dist/collection/components/ic-button/ic-button.js +2 -2
  55. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  56. package/dist/collection/components/ic-card/ic-card.js +2 -2
  57. package/dist/collection/components/ic-card/ic-card.js.map +1 -1
  58. package/dist/collection/components/ic-checkbox/ic-checkbox.js +20 -1
  59. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  60. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +1 -1
  61. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  62. package/dist/collection/components/ic-chip/ic-chip.css +595 -0
  63. package/dist/collection/components/ic-chip/ic-chip.js +199 -0
  64. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -0
  65. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js +11 -0
  66. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js.map +1 -0
  67. package/dist/collection/components/ic-chip/ic-chip.types.js +2 -0
  68. package/dist/collection/components/ic-chip/ic-chip.types.js.map +1 -0
  69. package/dist/collection/components/ic-data-row/ic-data-row.css +12 -0
  70. package/dist/collection/components/ic-divider/ic-divider.js +1 -1
  71. package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
  72. package/dist/collection/components/ic-footer/ic-footer.js +9 -6
  73. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  74. package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
  75. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  76. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +2 -2
  77. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  78. package/dist/collection/components/ic-hero/ic-hero.js +1 -1
  79. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  80. package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +0 -2
  81. package/dist/collection/components/ic-link/ic-link.js +1 -1
  82. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  83. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +38 -2
  84. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +39 -5
  85. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  86. package/dist/collection/components/ic-menu/ic-menu.js +23 -20
  87. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  88. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +1 -1
  89. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  90. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +2 -2
  91. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  92. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +4 -4
  93. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  94. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +1 -1
  95. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  96. package/dist/collection/components/ic-radio-group/ic-radio-group.js +1 -1
  97. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  98. package/dist/collection/components/ic-radio-option/ic-radio-option.js +32 -0
  99. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  100. package/dist/collection/components/ic-search-bar/ic-search-bar.js +12 -6
  101. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  102. package/dist/collection/components/ic-select/ic-select.css +1 -1
  103. package/dist/collection/components/ic-select/ic-select.js +1 -1
  104. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  105. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +6 -3
  106. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  107. package/dist/collection/components/ic-step/ic-step.css +120 -24
  108. package/dist/collection/components/ic-step/ic-step.js +268 -27
  109. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  110. package/dist/collection/components/ic-step/ic-step.types.js.map +1 -1
  111. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js +74 -0
  112. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js.map +1 -0
  113. package/dist/collection/components/ic-stepper/ic-stepper.css +15 -1
  114. package/dist/collection/components/ic-stepper/ic-stepper.js +206 -39
  115. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  116. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js +13 -1
  117. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +1 -1
  118. package/dist/collection/components/ic-tab/ic-tab.js +5 -2
  119. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  120. package/dist/collection/components/ic-tab-context/ic-tab-context.js +29 -2
  121. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  122. package/dist/collection/components/ic-text-field/ic-text-field.js +2 -2
  123. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  124. package/dist/collection/components/ic-theme/ic-theme.js +8 -5
  125. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
  126. package/dist/collection/components/ic-tooltip/ic-tooltip.css +1 -1
  127. package/dist/collection/components/ic-tooltip/ic-tooltip.js +22 -1
  128. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  129. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +1 -1
  130. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +1 -1
  131. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  132. package/dist/collection/testspec.setup.js +8 -0
  133. package/dist/collection/testspec.setup.js.map +1 -1
  134. package/dist/components/ic-alert.js +3 -1
  135. package/dist/components/ic-alert.js.map +1 -1
  136. package/dist/components/ic-button2.js +2 -2
  137. package/dist/components/ic-button2.js.map +1 -1
  138. package/dist/components/ic-card.js +1 -1
  139. package/dist/components/ic-card.js.map +1 -1
  140. package/dist/components/ic-checkbox-group.js +1 -1
  141. package/dist/components/ic-checkbox-group.js.map +1 -1
  142. package/dist/components/ic-checkbox.js +2 -0
  143. package/dist/components/ic-checkbox.js.map +1 -1
  144. package/dist/components/ic-chip.d.ts +11 -0
  145. package/dist/components/ic-chip.js +99 -0
  146. package/dist/components/ic-chip.js.map +1 -0
  147. package/dist/components/ic-data-row.js +1 -1
  148. package/dist/components/ic-data-row.js.map +1 -1
  149. package/dist/components/ic-divider2.js +1 -1
  150. package/dist/components/ic-divider2.js.map +1 -1
  151. package/dist/components/ic-footer-link-group.js +1 -1
  152. package/dist/components/ic-footer-link-group.js.map +1 -1
  153. package/dist/components/ic-footer-link.js +1 -1
  154. package/dist/components/ic-footer-link.js.map +1 -1
  155. package/dist/components/ic-footer.js +3 -3
  156. package/dist/components/ic-footer.js.map +1 -1
  157. package/dist/components/ic-hero.js +1 -1
  158. package/dist/components/ic-hero.js.map +1 -1
  159. package/dist/components/ic-input-component-container2.js +1 -1
  160. package/dist/components/ic-input-component-container2.js.map +1 -1
  161. package/dist/components/ic-link2.js +1 -1
  162. package/dist/components/ic-link2.js.map +1 -1
  163. package/dist/components/ic-loading-indicator2.js +21 -6
  164. package/dist/components/ic-loading-indicator2.js.map +1 -1
  165. package/dist/components/ic-menu2.js +15 -15
  166. package/dist/components/ic-menu2.js.map +1 -1
  167. package/dist/components/ic-navigation-button.js +1 -1
  168. package/dist/components/ic-navigation-button.js.map +1 -1
  169. package/dist/components/ic-navigation-group.js +1 -1
  170. package/dist/components/ic-navigation-group.js.map +1 -1
  171. package/dist/components/ic-navigation-item.js +3 -3
  172. package/dist/components/ic-navigation-item.js.map +1 -1
  173. package/dist/components/ic-navigation-menu2.js +1 -1
  174. package/dist/components/ic-navigation-menu2.js.map +1 -1
  175. package/dist/components/ic-radio-group.js +1 -1
  176. package/dist/components/ic-radio-group.js.map +1 -1
  177. package/dist/components/ic-radio-option.js +10 -0
  178. package/dist/components/ic-radio-option.js.map +1 -1
  179. package/dist/components/ic-search-bar.js +2 -2
  180. package/dist/components/ic-search-bar.js.map +1 -1
  181. package/dist/components/ic-select.js +2 -2
  182. package/dist/components/ic-select.js.map +1 -1
  183. package/dist/components/ic-side-navigation.js +1 -1
  184. package/dist/components/ic-side-navigation.js.map +1 -1
  185. package/dist/components/ic-step.js +117 -16
  186. package/dist/components/ic-step.js.map +1 -1
  187. package/dist/components/ic-stepper.js +169 -41
  188. package/dist/components/ic-stepper.js.map +1 -1
  189. package/dist/components/ic-tab-context.js +6 -1
  190. package/dist/components/ic-tab-context.js.map +1 -1
  191. package/dist/components/ic-tab.js.map +1 -1
  192. package/dist/components/ic-text-field2.js +2 -2
  193. package/dist/components/ic-text-field2.js.map +1 -1
  194. package/dist/components/ic-theme.js +2 -2
  195. package/dist/components/ic-theme.js.map +1 -1
  196. package/dist/components/ic-tooltip2.js +7 -3
  197. package/dist/components/ic-tooltip2.js.map +1 -1
  198. package/dist/components/ic-top-navigation.js +1 -1
  199. package/dist/components/ic-top-navigation.js.map +1 -1
  200. package/dist/components/index.d.ts +2 -1
  201. package/dist/components/index.js +1 -0
  202. package/dist/components/index.js.map +1 -1
  203. package/dist/core/core.esm.js +1 -1
  204. package/dist/core/core.esm.js.map +1 -1
  205. package/dist/core/p-0d77bd0c.entry.js +2 -0
  206. package/dist/core/p-0d77bd0c.entry.js.map +1 -0
  207. package/dist/core/p-2b5c9143.entry.js.map +1 -1
  208. package/dist/core/p-31a8595f.entry.js.map +1 -1
  209. package/dist/core/{p-7b39977f.entry.js → p-3a068a45.entry.js} +2 -2
  210. package/dist/core/p-3a068a45.entry.js.map +1 -0
  211. package/dist/core/p-5831bb8e.entry.js.map +1 -1
  212. package/dist/core/p-5d76bbad.entry.js +2 -0
  213. package/dist/core/p-5d76bbad.entry.js.map +1 -0
  214. package/dist/core/p-60ffb73e.entry.js.map +1 -1
  215. package/dist/core/p-6308f1f2.entry.js +2 -0
  216. package/dist/core/p-6308f1f2.entry.js.map +1 -0
  217. package/dist/core/{p-c6dd4f47.entry.js → p-66f3f02b.entry.js} +2 -2
  218. package/dist/core/p-66f3f02b.entry.js.map +1 -0
  219. package/dist/core/p-69650186.entry.js.map +1 -1
  220. package/dist/core/p-6b34d98f.entry.js.map +1 -1
  221. package/dist/core/p-6f6bd657.entry.js.map +1 -1
  222. package/dist/core/{p-558552f8.entry.js → p-7881b94e.entry.js} +2 -2
  223. package/dist/core/p-7881b94e.entry.js.map +1 -0
  224. package/dist/core/p-7f632414.entry.js.map +1 -1
  225. package/dist/core/p-80cd0a2d.entry.js +2 -0
  226. package/dist/core/p-80cd0a2d.entry.js.map +1 -0
  227. package/dist/core/{p-e4551421.entry.js → p-8144e941.entry.js} +2 -2
  228. package/dist/core/p-8144e941.entry.js.map +1 -0
  229. package/dist/core/p-9cd04875.entry.js.map +1 -1
  230. package/dist/core/p-9e684c58.entry.js +2 -0
  231. package/dist/core/p-9e684c58.entry.js.map +1 -0
  232. package/dist/core/p-b24145f7.entry.js +2 -0
  233. package/dist/core/p-b24145f7.entry.js.map +1 -0
  234. package/dist/core/p-b3dec76d.entry.js.map +1 -1
  235. package/dist/core/{p-347ec49e.entry.js → p-bf89bcd3.entry.js} +2 -2
  236. package/dist/core/p-bf89bcd3.entry.js.map +1 -0
  237. package/dist/core/p-c4d3c18c.entry.js.map +1 -1
  238. package/dist/core/p-c85689e3.entry.js +2 -0
  239. package/dist/core/p-c85689e3.entry.js.map +1 -0
  240. package/dist/core/p-c8ce6147.entry.js +2 -0
  241. package/dist/core/p-c8ce6147.entry.js.map +1 -0
  242. package/dist/core/p-cadb531f.entry.js.map +1 -1
  243. package/dist/core/p-cc83692e.entry.js.map +1 -1
  244. package/dist/core/p-dd3c3e3c.entry.js.map +1 -1
  245. package/dist/core/p-ecfb2e6b.entry.js.map +1 -1
  246. package/dist/core/{p-001651fc.entry.js → p-fa7bc907.entry.js} +2 -2
  247. package/dist/core/p-fa7bc907.entry.js.map +1 -0
  248. package/dist/core/p-fbde8a26.entry.js +2 -0
  249. package/dist/core/p-fbde8a26.entry.js.map +1 -0
  250. package/dist/esm/core.js +1 -1
  251. package/dist/esm/ic-alert.entry.js +2 -0
  252. package/dist/esm/ic-alert.entry.js.map +1 -1
  253. package/dist/esm/ic-button_3.entry.js +25 -9
  254. package/dist/esm/ic-button_3.entry.js.map +1 -1
  255. package/dist/esm/ic-card.entry.js.map +1 -1
  256. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  257. package/dist/esm/ic-checkbox.entry.js +2 -0
  258. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  259. package/dist/esm/ic-chip.entry.js +62 -0
  260. package/dist/esm/ic-chip.entry.js.map +1 -0
  261. package/dist/esm/ic-data-row.entry.js +1 -1
  262. package/dist/esm/ic-data-row.entry.js.map +1 -1
  263. package/dist/esm/ic-divider.entry.js.map +1 -1
  264. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  265. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  266. package/dist/esm/ic-footer.entry.js +2 -2
  267. package/dist/esm/ic-footer.entry.js.map +1 -1
  268. package/dist/esm/ic-hero.entry.js.map +1 -1
  269. package/dist/esm/ic-input-component-container_3.entry.js +16 -16
  270. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  271. package/dist/esm/ic-link.entry.js.map +1 -1
  272. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  273. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  274. package/dist/esm/ic-navigation-item.entry.js +2 -2
  275. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  276. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  277. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  278. package/dist/esm/ic-radio-option.entry.js +10 -0
  279. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  280. package/dist/esm/ic-search-bar.entry.js +1 -1
  281. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  282. package/dist/esm/ic-select.entry.js +2 -2
  283. package/dist/esm/ic-select.entry.js.map +1 -1
  284. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  285. package/dist/esm/ic-step.entry.js +101 -13
  286. package/dist/esm/ic-step.entry.js.map +1 -1
  287. package/dist/esm/ic-stepper.entry.js +161 -40
  288. package/dist/esm/ic-stepper.entry.js.map +1 -1
  289. package/dist/esm/ic-tab-context.entry.js +6 -1
  290. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  291. package/dist/esm/ic-tab.entry.js.map +1 -1
  292. package/dist/esm/ic-text-field.entry.js.map +1 -1
  293. package/dist/esm/ic-theme.entry.js +2 -2
  294. package/dist/esm/ic-theme.entry.js.map +1 -1
  295. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  296. package/dist/esm/index-1500de1f.js +4 -0
  297. package/dist/esm/loader.js +1 -1
  298. package/dist/types/components/ic-alert/ic-alert.d.ts +5 -1
  299. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +5 -1
  300. package/dist/types/components/ic-chip/ic-chip.d.ts +40 -0
  301. package/dist/types/components/ic-chip/ic-chip.test.a11y.d.ts +1 -0
  302. package/dist/types/components/ic-chip/ic-chip.types.d.ts +2 -0
  303. package/dist/types/components/ic-footer/ic-footer.d.ts +2 -2
  304. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +5 -0
  305. package/dist/types/components/ic-menu/ic-menu.d.ts +4 -4
  306. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +1 -1
  307. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +5 -1
  308. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +2 -2
  309. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +1 -1
  310. package/dist/types/components/ic-step/ic-step.d.ts +35 -6
  311. package/dist/types/components/ic-step/ic-step.types.d.ts +2 -0
  312. package/dist/types/components/ic-stepper/ic-stepper-test-examples.d.ts +4 -0
  313. package/dist/types/components/ic-stepper/ic-stepper.d.ts +23 -6
  314. package/dist/types/components/ic-tab/ic-tab.d.ts +1 -1
  315. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +6 -2
  316. package/dist/types/components/ic-theme/ic-theme.d.ts +2 -2
  317. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +4 -0
  318. package/dist/types/components.d.ts +134 -40
  319. package/dist/types/testspec.setup.d.ts +1 -0
  320. package/hydrate/index.js +512 -176
  321. package/package.json +3 -3
  322. package/dist/core/p-001651fc.entry.js.map +0 -1
  323. package/dist/core/p-2e9f3011.entry.js +0 -2
  324. package/dist/core/p-2e9f3011.entry.js.map +0 -1
  325. package/dist/core/p-347ec49e.entry.js.map +0 -1
  326. package/dist/core/p-39ae284e.entry.js +0 -2
  327. package/dist/core/p-39ae284e.entry.js.map +0 -1
  328. package/dist/core/p-558552f8.entry.js.map +0 -1
  329. package/dist/core/p-7093d214.entry.js +0 -2
  330. package/dist/core/p-7093d214.entry.js.map +0 -1
  331. package/dist/core/p-7577c6a3.entry.js +0 -2
  332. package/dist/core/p-7577c6a3.entry.js.map +0 -1
  333. package/dist/core/p-7b39977f.entry.js.map +0 -1
  334. package/dist/core/p-88b15005.entry.js +0 -2
  335. package/dist/core/p-88b15005.entry.js.map +0 -1
  336. package/dist/core/p-898607d0.entry.js +0 -2
  337. package/dist/core/p-898607d0.entry.js.map +0 -1
  338. package/dist/core/p-ac43322e.entry.js +0 -2
  339. package/dist/core/p-ac43322e.entry.js.map +0 -1
  340. package/dist/core/p-c6dd4f47.entry.js.map +0 -1
  341. package/dist/core/p-cf5e8a55.entry.js +0 -2
  342. package/dist/core/p-cf5e8a55.entry.js.map +0 -1
  343. package/dist/core/p-e4551421.entry.js.map +0 -1
@@ -1,39 +1,121 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import checkIcon from "../../assets/check-icon.svg";
3
+ import warningIcon from "../../assets/warning-icon-outline.svg";
3
4
  export class Step {
4
5
  constructor() {
5
- this.stepType = "active";
6
+ this.variant = undefined;
6
7
  this.stepTitle = undefined;
7
8
  this.stepSubtitle = undefined;
9
+ this.stepStatus = undefined;
10
+ this.stepType = "active";
11
+ this.current = false;
12
+ this.compactStepStyling = undefined;
8
13
  this.stepNum = undefined;
9
14
  this.lastStep = undefined;
15
+ this.lastStepNum = undefined;
16
+ this.nextStepTitle = undefined;
17
+ this.progress = undefined;
10
18
  }
11
- render() {
12
- let icon;
13
- if (this.stepType !== "completed") {
14
- icon = (h("ic-typography", { variant: "subtitle-small" }, h("span", { class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
19
+ stepTypeChangeHandler() {
20
+ if (this.variant === "compact" && this.stepType === "current") {
21
+ this.current = true;
15
22
  }
16
23
  else {
17
- icon = (h("div", { class: "step-icon-inner", "aria-hidden": "true" }, h("span", { class: "check-icon", innerHTML: checkIcon })));
24
+ this.current = false;
18
25
  }
26
+ }
27
+ render() {
28
+ // ARIA LABEL
19
29
  let ariaLabel = "";
20
30
  if (this.stepType === "completed") {
21
31
  ariaLabel = ". Completed step";
22
32
  }
23
33
  else if (this.stepType === "disabled") {
24
- ariaLabel = ". Disabled step";
34
+ ariaLabel = ". Non-required step";
35
+ }
36
+ else if (this.stepStatus === "required") {
37
+ ariaLabel = ". Required step";
38
+ }
39
+ else if (this.stepStatus === "optional") {
40
+ ariaLabel = ". Optional step";
25
41
  }
42
+ // STEP STATUS
43
+ let stepStatus;
44
+ if (this.stepStatus) {
45
+ stepStatus = this.stepStatus[0].toUpperCase() + this.stepStatus.slice(1);
46
+ }
47
+ // STEP TYPE
48
+ let stepType;
49
+ if (this.stepType === "disabled" ||
50
+ this.compactStepStyling === "disabled") {
51
+ stepType = "Not required";
52
+ }
53
+ else if (this.compactStepStyling === "completed") {
54
+ stepType = "Completed";
55
+ }
56
+ // STATUS ICON FOR COMPACT STEP
57
+ let statusIcon;
58
+ if (this.stepType === "completed" ||
59
+ this.compactStepStyling === "completed") {
60
+ statusIcon = (h("span", { class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
61
+ }
62
+ else if (this.stepType === "disabled" ||
63
+ this.compactStepStyling === "disabled") {
64
+ statusIcon = (h("span", { class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
65
+ }
66
+ // COMPACT STEP COMPONENT
67
+ const compactStep = (h("div", { class: {
68
+ ["step"]: true,
69
+ ["current"]: this.current,
70
+ [`compact-step-${this.compactStepStyling}`]: !!this.compactStepStyling,
71
+ } }, h("ic-loading-indicator", { class: {
72
+ "compact-step-progress-indicator": true,
73
+ "not-required": this.stepType === "disabled" ||
74
+ this.compactStepStyling === "disabled",
75
+ }, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), h("div", { class: "step-title-area" }, h("ic-typography", { variant: "h4", class: "step-title" }, this.stepTitle), h("div", { class: "info-line" }, h("ic-typography", { variant: "caption", class: "step-num" }, `${this.stepNum} of ${this.lastStepNum}`, h("span", { class: "visually-hidden" }, " steps")), (this.stepSubtitle ||
76
+ this.stepType === "completed" ||
77
+ this.stepType === "disabled" ||
78
+ (this.variant === "compact" &&
79
+ !!this.compactStepStyling &&
80
+ this.compactStepStyling !== "active") ||
81
+ !!this.stepStatus) && (h("div", { class: "step-status" }, statusIcon && statusIcon, (this.stepSubtitle || stepType) && (h("ic-typography", { variant: "caption" }, this.stepSubtitle !== null &&
82
+ this.stepSubtitle !== undefined
83
+ ? this.stepSubtitle
84
+ : this.stepType === "disabled" ||
85
+ (this.variant === "compact" &&
86
+ this.compactStepStyling === "disabled") ||
87
+ this.stepType === "completed" ||
88
+ (this.variant === "compact" &&
89
+ this.compactStepStyling === "completed")
90
+ ? stepType
91
+ : this.stepStatus && stepStatus))))), this.lastStep ? (h("ic-typography", { variant: "subtitle-small", class: "next-step" }, "Last step")) : (this.nextStepTitle !== undefined && (h("ic-typography", { variant: "subtitle-small", class: "next-step" }, "Next", h("span", { class: "visually-hidden" }, " step is"), ":", " ", this.nextStepTitle))))));
92
+ // ICON FOR DEFAULT STEP
93
+ let icon;
94
+ if (this.stepType !== "completed") {
95
+ icon = (h("ic-typography", { variant: "subtitle-small" }, h("span", { class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
96
+ }
97
+ else {
98
+ icon = (h("div", { class: "step-icon-inner", "aria-hidden": "true" }, h("span", { class: "check-icon", innerHTML: checkIcon })));
99
+ }
100
+ // STEP CONNECT FOR DEFAULT STEP
26
101
  const partialBar = this.stepType === "current" && (h("div", { class: "step-connect-inner" }));
27
102
  const finalStep = !this.lastStep && (h("div", { class: {
28
103
  ["step-connect"]: true,
29
- ["aligned-full-width"]: this.el.parentElement.classList.contains("aligned-full-width"),
104
+ ["aligned-full-width"]: this.el.parentElement.classList.contains("default") &&
105
+ !this.el.parentElement.classList.contains("aligned-left"),
30
106
  } }, partialBar));
31
- return (h(Host, { role: "listitem", "aria-label": `Step ${this.stepNum}${ariaLabel}`, "aria-current": this.stepType == "current" ? "step" : null, class: {
32
- ["aligned-full-width"]: this.el.parentElement.classList.contains("aligned-full-width"),
33
- } }, h("div", { class: {
107
+ // DEFAULT STEP COMPONENT
108
+ const defaultStep = (h("div", { class: {
34
109
  ["step"]: true,
35
110
  [`${this.stepType}`]: true,
36
- } }, h("div", { class: "step-top" }, h("div", { class: "step-icon" }, icon), finalStep), (this.stepTitle || this.stepSubtitle) && (h("div", { class: "step-title-area" }, this.stepTitle && (h("ic-typography", { variant: "subtitle-large", class: "step-title" }, this.stepTitle)), this.stepSubtitle && (h("ic-typography", { variant: "caption", class: "step-subtitle" }, this.stepSubtitle)))))));
111
+ } }, h("div", { class: "step-top" }, h("div", { class: "step-icon" }, icon), finalStep), (this.stepTitle || this.stepSubtitle || this.stepStatus) && (h("div", { class: "step-title-area" }, this.stepTitle && (h("ic-typography", { variant: "subtitle-large", class: "step-title" }, this.stepTitle)), this.stepTitle && (this.stepSubtitle || this.stepStatus) && (h("ic-typography", { variant: "caption", class: "step-subtitle" }, this.stepSubtitle !== null && this.stepSubtitle !== undefined
112
+ ? this.stepSubtitle
113
+ : stepStatus))))));
114
+ return (h(Host, { role: "listitem", "aria-label": `Step ${this.stepNum}${ariaLabel}`, "aria-current": (this.current || this.stepType === "current") && "step", class: {
115
+ ["aligned-full-width"]: this.el.parentElement.classList.contains("default") &&
116
+ !this.el.parentElement.classList.contains("aligned-left"),
117
+ [`${this.variant}`]: true,
118
+ } }, this.variant === "compact" ? compactStep : defaultStep));
37
119
  }
38
120
  static get is() { return "ic-step"; }
39
121
  static get encapsulation() { return "shadow"; }
@@ -49,28 +131,30 @@ export class Step {
49
131
  }
50
132
  static get properties() {
51
133
  return {
52
- "stepType": {
134
+ "variant": {
53
135
  "type": "string",
54
136
  "mutable": false,
55
137
  "complexType": {
56
- "original": "IcStepTypes",
57
- "resolved": "\"active\" | \"completed\" | \"current\" | \"disabled\"",
138
+ "original": "IcStepVariants",
139
+ "resolved": "\"compact\" | \"default\"",
58
140
  "references": {
59
- "IcStepTypes": {
141
+ "IcStepVariants": {
60
142
  "location": "import",
61
143
  "path": "./ic-step.types"
62
144
  }
63
145
  }
64
146
  },
65
- "required": false,
66
- "optional": true,
147
+ "required": true,
148
+ "optional": false,
67
149
  "docs": {
68
- "tags": [],
69
- "text": "The state of the step within the stepper."
150
+ "tags": [{
151
+ "name": "internal",
152
+ "text": "The variant of the step. This is managed by ic-stepper."
153
+ }],
154
+ "text": ""
70
155
  },
71
- "attribute": "step-type",
72
- "reflect": false,
73
- "defaultValue": "\"active\""
156
+ "attribute": "variant",
157
+ "reflect": false
74
158
  },
75
159
  "stepTitle": {
76
160
  "type": "string",
@@ -84,7 +168,7 @@ export class Step {
84
168
  "optional": true,
85
169
  "docs": {
86
170
  "tags": [],
87
- "text": "The name of the step within the stepper."
171
+ "text": "The title of the step within the stepper."
88
172
  },
89
173
  "attribute": "step-title",
90
174
  "reflect": false
@@ -101,11 +185,102 @@ export class Step {
101
185
  "optional": true,
102
186
  "docs": {
103
187
  "tags": [],
104
- "text": "The additional information about the step."
188
+ "text": "Additional information about the step. Use this prop to override the default step status messaging displayed when selecting a step type or step status."
105
189
  },
106
190
  "attribute": "step-subtitle",
107
191
  "reflect": false
108
192
  },
193
+ "stepStatus": {
194
+ "type": "string",
195
+ "mutable": false,
196
+ "complexType": {
197
+ "original": "IcStepStatuses",
198
+ "resolved": "\"optional\" | \"required\"",
199
+ "references": {
200
+ "IcStepStatuses": {
201
+ "location": "import",
202
+ "path": "./ic-step.types"
203
+ }
204
+ }
205
+ },
206
+ "required": false,
207
+ "optional": true,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": "The status of the step. Use this prop to display a status message on the step if it is required or optional."
211
+ },
212
+ "attribute": "step-status",
213
+ "reflect": false
214
+ },
215
+ "stepType": {
216
+ "type": "string",
217
+ "mutable": false,
218
+ "complexType": {
219
+ "original": "IcStepTypes",
220
+ "resolved": "\"active\" | \"completed\" | \"current\" | \"disabled\"",
221
+ "references": {
222
+ "IcStepTypes": {
223
+ "location": "import",
224
+ "path": "./ic-step.types"
225
+ }
226
+ }
227
+ },
228
+ "required": false,
229
+ "optional": true,
230
+ "docs": {
231
+ "tags": [],
232
+ "text": "The state of the step within the stepper."
233
+ },
234
+ "attribute": "step-type",
235
+ "reflect": false,
236
+ "defaultValue": "\"active\""
237
+ },
238
+ "current": {
239
+ "type": "boolean",
240
+ "mutable": true,
241
+ "complexType": {
242
+ "original": "boolean",
243
+ "resolved": "boolean",
244
+ "references": {}
245
+ },
246
+ "required": false,
247
+ "optional": true,
248
+ "docs": {
249
+ "tags": [{
250
+ "name": "internal",
251
+ "text": "If `true`, and a compact stepper is being used, the current step will be the only step in view."
252
+ }],
253
+ "text": ""
254
+ },
255
+ "attribute": "current",
256
+ "reflect": false,
257
+ "defaultValue": "false"
258
+ },
259
+ "compactStepStyling": {
260
+ "type": "string",
261
+ "mutable": false,
262
+ "complexType": {
263
+ "original": "IcStepTypes",
264
+ "resolved": "\"active\" | \"completed\" | \"current\" | \"disabled\"",
265
+ "references": {
266
+ "IcStepTypes": {
267
+ "location": "import",
268
+ "path": "./ic-step.types"
269
+ }
270
+ }
271
+ },
272
+ "required": false,
273
+ "optional": true,
274
+ "docs": {
275
+ "tags": [{
276
+ "name": "internal",
277
+ "text": "If a compact stepper is being used, this sets the styling of the step."
278
+ }],
279
+ "text": ""
280
+ },
281
+ "attribute": "compact-step-styling",
282
+ "reflect": false
283
+ },
109
284
  "stepNum": {
110
285
  "type": "number",
111
286
  "mutable": false,
@@ -134,8 +309,8 @@ export class Step {
134
309
  "resolved": "boolean",
135
310
  "references": {}
136
311
  },
137
- "required": false,
138
- "optional": true,
312
+ "required": true,
313
+ "optional": false,
139
314
  "docs": {
140
315
  "tags": [{
141
316
  "name": "internal",
@@ -145,9 +320,75 @@ export class Step {
145
320
  },
146
321
  "attribute": "last-step",
147
322
  "reflect": false
323
+ },
324
+ "lastStepNum": {
325
+ "type": "number",
326
+ "mutable": false,
327
+ "complexType": {
328
+ "original": "number",
329
+ "resolved": "number",
330
+ "references": {}
331
+ },
332
+ "required": false,
333
+ "optional": true,
334
+ "docs": {
335
+ "tags": [{
336
+ "name": "internal",
337
+ "text": "The step number of the final step. This is managed by ic-stepper."
338
+ }],
339
+ "text": ""
340
+ },
341
+ "attribute": "last-step-num",
342
+ "reflect": false
343
+ },
344
+ "nextStepTitle": {
345
+ "type": "string",
346
+ "mutable": false,
347
+ "complexType": {
348
+ "original": "string",
349
+ "resolved": "string",
350
+ "references": {}
351
+ },
352
+ "required": false,
353
+ "optional": true,
354
+ "docs": {
355
+ "tags": [{
356
+ "name": "internal",
357
+ "text": "The name of the next step. This is managed by ic-stepper."
358
+ }],
359
+ "text": ""
360
+ },
361
+ "attribute": "next-step-title",
362
+ "reflect": false
363
+ },
364
+ "progress": {
365
+ "type": "number",
366
+ "mutable": false,
367
+ "complexType": {
368
+ "original": "number",
369
+ "resolved": "number",
370
+ "references": {}
371
+ },
372
+ "required": false,
373
+ "optional": true,
374
+ "docs": {
375
+ "tags": [{
376
+ "name": "internal",
377
+ "text": "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."
378
+ }],
379
+ "text": ""
380
+ },
381
+ "attribute": "progress",
382
+ "reflect": false
148
383
  }
149
384
  };
150
385
  }
151
386
  static get elementRef() { return "el"; }
387
+ static get watchers() {
388
+ return [{
389
+ "propName": "stepType",
390
+ "methodName": "stepTypeChangeHandler"
391
+ }];
392
+ }
152
393
  }
153
394
  //# sourceMappingURL=ic-step.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ic-step.js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ACH,IAAI,EAAC,UAAU,gBACH,QAAQ,IAAI,CAAC,OAAO,GAAG,SAAS,EAAE,kBAChC,IAAI,CAAC,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EACxD,KAAK,EAAE;QACL,CAAC,oBAAoB,CAAC,EACpB,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC;OACjE;MAED,WACE,KAAK,EAAE;UACL,CAAC,MAAM,CAAC,EAAE,IAAI;UACd,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAI;SAC3B;QAED,WAAK,KAAK,EAAC,UAAU;UACnB,WAAK,KAAK,EAAC,WAAW,IAAE,IAAI,CAAO;UAClC,SAAS,CACN;QACL,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CACxC,WAAK,KAAK,EAAC,iBAAiB;UACzB,IAAI,CAAC,SAAS,IAAI,CACjB,qBAAe,OAAO,EAAC,gBAAgB,EAAC,KAAK,EAAC,YAAY,IACvD,IAAI,CAAC,SAAS,CACD,CACjB;UACA,IAAI,CAAC,YAAY,IAAI,CACpB,qBAAe,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,eAAe,IACnD,IAAI,CAAC,YAAY,CACJ,CACjB,CACG,CACP,CACG,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Element } from \"@stencil/core\";\nimport checkIcon from \"../../assets/check-icon.svg\";\nimport { IcStepTypes } from \"./ic-step.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 * The state of the step within the stepper.\n */\n @Prop() stepType?: IcStepTypes = \"active\";\n\n /**\n * The name of the step within the stepper.\n */\n @Prop() stepTitle?: string;\n\n /**\n * The additional information about the step.\n */\n @Prop() stepSubtitle?: string;\n\n /**\n * @internal The step number, managed by ic-stepper.\n */\n @Prop() stepNum?: number;\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 render() {\n let icon;\n if (this.stepType !== \"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 let ariaLabel = \"\";\n\n if (this.stepType === \"completed\") {\n ariaLabel = \". Completed step\";\n } else if (this.stepType === \"disabled\") {\n ariaLabel = \". Disabled step\";\n }\n\n const partialBar = this.stepType === \"current\" && (\n <div class=\"step-connect-inner\"></div>\n );\n const finalStep = !this.lastStep && (\n <div\n class={{\n [\"step-connect\"]: true,\n [\"aligned-full-width\"]:\n this.el.parentElement.classList.contains(\"aligned-full-width\"),\n }}\n >\n {partialBar}\n </div>\n );\n\n return (\n <Host\n role=\"listitem\"\n aria-label={`Step ${this.stepNum}${ariaLabel}`}\n aria-current={this.stepType == \"current\" ? \"step\" : null}\n class={{\n [\"aligned-full-width\"]:\n this.el.parentElement.classList.contains(\"aligned-full-width\"),\n }}\n >\n <div\n class={{\n [\"step\"]: true,\n [`${this.stepType}`]: true,\n }}\n >\n <div class=\"step-top\">\n <div class=\"step-icon\">{icon}</div>\n {finalStep}\n </div>\n {(this.stepTitle || this.stepSubtitle) && (\n <div class=\"step-title-area\">\n {this.stepTitle && (\n <ic-typography variant=\"subtitle-large\" class=\"step-title\">\n {this.stepTitle}\n </ic-typography>\n )}\n {this.stepSubtitle && (\n <ic-typography variant=\"caption\" class=\"step-subtitle\">\n {this.stepSubtitle}\n </ic-typography>\n )}\n </div>\n )}\n </div>\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;AAQhE,MAAM,OAAO,IAAI;;;;;;oBAyBkB,QAAQ;mBAKI,KAAK;;;;;;;;EAiClD,qBAAqB;IACnB,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;MAC7D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;KACrB;SAAM;MACL,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;KACtB;EACH,CAAC;EAED,MAAM;IACJ,aAAa;IACb,IAAI,SAAS,GAAG,EAAE,CAAC;IAEnB,IAAI,IAAI,CAAC,QAAQ,KAAK,WAAW,EAAE;MACjC,SAAS,GAAG,kBAAkB,CAAC;KAChC;SAAM,IAAI,IAAI,CAAC,QAAQ,KAAK,UAAU,EAAE;MACvC,SAAS,GAAG,qBAAqB,CAAC;KACnC;SAAM,IAAI,IAAI,CAAC,UAAU,KAAK,UAAU,EAAE;MACzC,SAAS,GAAG,iBAAiB,CAAC;KAC/B;SAAM,IAAI,IAAI,CAAC,UAAU,KAAK,UAAU,EAAE;MACzC,SAAS,GAAG,iBAAiB,CAAC;KAC/B;IAED,cAAc;IACd,IAAI,UAAU,CAAC;IACf,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAA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AC,WAAW,CAAC,CAAC,CAAC,WAAW,CAClD,CACR,CAAC;EACJ,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 { IcStepVariants, IcStepStatuses, IcStepTypes } from \"./ic-step.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 * @internal The variant of the step. This is managed by ic-stepper.\n */\n @Prop() variant!: IcStepVariants;\n\n /**\n * The title of the step within the stepper.\n */\n @Prop() stepTitle?: string;\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() stepSubtitle?: string;\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() stepStatus?: IcStepStatuses;\n\n /**\n * The state of the step within the stepper.\n */\n @Prop() stepType?: IcStepTypes = \"active\";\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 a compact stepper is being used, this sets the styling of the step.\n */\n @Prop() compactStepStyling?: IcStepTypes;\n\n /**\n * @internal The step number, managed by ic-stepper.\n */\n @Prop() stepNum?: number;\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() nextStepTitle?: 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 @Watch(\"stepType\")\n stepTypeChangeHandler(): void {\n if (this.variant === \"compact\" && this.stepType === \"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.stepType === \"completed\") {\n ariaLabel = \". Completed step\";\n } else if (this.stepType === \"disabled\") {\n ariaLabel = \". Non-required step\";\n } else if (this.stepStatus === \"required\") {\n ariaLabel = \". Required step\";\n } else if (this.stepStatus === \"optional\") {\n ariaLabel = \". Optional step\";\n }\n\n // STEP STATUS\n let stepStatus;\n if (this.stepStatus) {\n stepStatus = this.stepStatus[0].toUpperCase() + this.stepStatus.slice(1);\n }\n\n // STEP TYPE\n let stepType;\n if (\n this.stepType === \"disabled\" ||\n this.compactStepStyling === \"disabled\"\n ) {\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 (\n this.stepType === \"completed\" ||\n this.compactStepStyling === \"completed\"\n ) {\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.stepType === \"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 }}\n >\n <ic-loading-indicator\n class={{\n \"compact-step-progress-indicator\": true,\n \"not-required\":\n this.stepType === \"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=\"step-title-area\">\n <ic-typography variant=\"h4\" class=\"step-title\">\n {this.stepTitle}\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.stepSubtitle ||\n this.stepType === \"completed\" ||\n this.stepType === \"disabled\" ||\n (this.variant === \"compact\" &&\n !!this.compactStepStyling &&\n this.compactStepStyling !== \"active\") ||\n !!this.stepStatus) && (\n <div class=\"step-status\">\n {statusIcon && statusIcon}\n {(this.stepSubtitle || stepType) && (\n <ic-typography variant=\"caption\">\n {this.stepSubtitle !== null &&\n this.stepSubtitle !== undefined\n ? this.stepSubtitle\n : this.stepType === \"disabled\" ||\n (this.variant === \"compact\" &&\n this.compactStepStyling === \"disabled\") ||\n this.stepType === \"completed\" ||\n (this.variant === \"compact\" &&\n this.compactStepStyling === \"completed\")\n ? stepType\n : this.stepStatus && 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 this.nextStepTitle !== undefined && (\n <ic-typography variant=\"subtitle-small\" class=\"next-step\">\n Next<span class=\"visually-hidden\"> step is</span>:{\" \"}\n {this.nextStepTitle}\n </ic-typography>\n )\n )}\n </div>\n </div>\n );\n\n // ICON FOR DEFAULT STEP\n let icon;\n if (this.stepType !== \"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.stepType === \"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(\"default\") &&\n !this.el.parentElement.classList.contains(\"aligned-left\"),\n }}\n >\n {partialBar}\n </div>\n );\n\n // DEFAULT STEP COMPONENT\n const defaultStep = (\n <div\n class={{\n [\"step\"]: true,\n [`${this.stepType}`]: true,\n }}\n >\n <div class=\"step-top\">\n <div class=\"step-icon\">{icon}</div>\n {finalStep}\n </div>\n {(this.stepTitle || this.stepSubtitle || this.stepStatus) && (\n <div class=\"step-title-area\">\n {this.stepTitle && (\n <ic-typography variant=\"subtitle-large\" class=\"step-title\">\n {this.stepTitle}\n </ic-typography>\n )}\n {this.stepTitle && (this.stepSubtitle || this.stepStatus) && (\n <ic-typography variant=\"caption\" class=\"step-subtitle\">\n {this.stepSubtitle !== null && this.stepSubtitle !== undefined\n ? this.stepSubtitle\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.stepType === \"current\") && \"step\"}\n class={{\n [\"aligned-full-width\"]:\n this.el.parentElement.classList.contains(\"default\") &&\n !this.el.parentElement.classList.contains(\"aligned-left\"),\n [`${this.variant}`]: true,\n }}\n >\n {this.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 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"]}
@@ -0,0 +1,74 @@
1
+ export const defaultStepper = `
2
+ <ic-stepper>
3
+ <ic-step step-title="First"></ic-step>
4
+ <ic-step
5
+ step-title="Second With a Very Long Title"
6
+ step-subtitle="Optional Subtitle"
7
+ step-type="current"
8
+ ></ic-step>
9
+ <ic-step step-title="Third" step-type="disabled"></ic-step>
10
+ <ic-step
11
+ step-title="Fourth"
12
+ step-subtitle="Optional Subtitle"
13
+ step-type="completed"
14
+ ></ic-step>
15
+ </ic-stepper>`;
16
+ export const customConnectorWidthStepper = `
17
+ <ic-stepper aligned="left" connector-width="150">
18
+ <ic-step step-title="First"></ic-step>
19
+ <ic-step
20
+ step-title="Second With a Very Long Title"
21
+ step-subtitle="Optional Subtitle"
22
+ step-type="current"
23
+ ></ic-step>
24
+ <ic-step step-title="Third" step-type="disabled"></ic-step>
25
+ <ic-step
26
+ step-title="Fourth"
27
+ step-subtitle="Optional Subtitle"
28
+ step-type="completed"
29
+ ></ic-step>
30
+ </ic-stepper>`;
31
+ export const invalidConnectorWidthStepper = `
32
+ <ic-stepper aligned="left" connector-width="96">
33
+ <ic-step step-title="First"></ic-step>
34
+ <ic-step
35
+ step-title="Second With a Very Long Title"
36
+ step-subtitle="Optional Subtitle"
37
+ step-type="current"
38
+ ></ic-step>
39
+ <ic-step step-title="Third" step-type="disabled"></ic-step>
40
+ <ic-step
41
+ step-title="Fourth"
42
+ step-subtitle="Optional Subtitle"
43
+ step-type="completed"
44
+ ></ic-step>
45
+ </ic-stepper>`;
46
+ export const compactStepper = `
47
+ <ic-stepper variant="compact" id="custom-compact-stepper">
48
+ <ic-step
49
+ step-title="First"
50
+ ></ic-step>
51
+ <ic-step
52
+ step-title="Second With a Very Long Title"
53
+ step-subtitle="Optional subtitle that is long and should wrap"
54
+ current
55
+ step-type="current"
56
+ ></ic-step>
57
+ <ic-step
58
+ step-title="Third"
59
+ step-type="disabled"
60
+ ></ic-step>
61
+ <ic-step
62
+ step-title="Fourth title that is long and should wrap"
63
+ step-subtitle="Optional Subtitle"
64
+ step-type="completed"
65
+ ></ic-step>
66
+ <ic-step
67
+ step-title="Fifth and final step"
68
+ step-subtitle="Optional Subtitle"
69
+ icon
70
+ step-status="optional"
71
+ step-type="completed"
72
+ ></ic-step>
73
+ </ic-stepper>`;
74
+ //# sourceMappingURL=ic-stepper-test-examples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ic-stepper-test-examples.js","sourceRoot":"","sources":["../../../src/components/ic-stepper/ic-stepper-test-examples.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;kBAcZ,CAAC;AAEnB,MAAM,CAAC,MAAM,2BAA2B,GAAG;;;;;;;;;;;;;;kBAczB,CAAC;AAEnB,MAAM,CAAC,MAAM,4BAA4B,GAAG;;;;;;;;;;;;;;kBAc1B,CAAC;AAEnB,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA2BV,CAAC","sourcesContent":["export const defaultStepper = `\n <ic-stepper>\n <ic-step step-title=\"First\"></ic-step>\n <ic-step\n step-title=\"Second With a Very Long Title\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"current\"\n ></ic-step>\n <ic-step step-title=\"Third\" step-type=\"disabled\"></ic-step>\n <ic-step\n step-title=\"Fourth\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"completed\"\n ></ic-step>\n </ic-stepper>`;\n\nexport const customConnectorWidthStepper = `\n <ic-stepper aligned=\"left\" connector-width=\"150\">\n <ic-step step-title=\"First\"></ic-step>\n <ic-step\n step-title=\"Second With a Very Long Title\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"current\"\n ></ic-step>\n <ic-step step-title=\"Third\" step-type=\"disabled\"></ic-step>\n <ic-step\n step-title=\"Fourth\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"completed\"\n ></ic-step>\n </ic-stepper>`;\n\nexport const invalidConnectorWidthStepper = `\n <ic-stepper aligned=\"left\" connector-width=\"96\">\n <ic-step step-title=\"First\"></ic-step>\n <ic-step\n step-title=\"Second With a Very Long Title\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"current\"\n ></ic-step>\n <ic-step step-title=\"Third\" step-type=\"disabled\"></ic-step>\n <ic-step\n step-title=\"Fourth\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"completed\"\n ></ic-step>\n </ic-stepper>`;\n\nexport const compactStepper = `\n <ic-stepper variant=\"compact\" id=\"custom-compact-stepper\">\n <ic-step \n step-title=\"First\"\n ></ic-step>\n <ic-step\n step-title=\"Second With a Very Long Title\"\n step-subtitle=\"Optional subtitle that is long and should wrap\"\n current\n step-type=\"current\"\n ></ic-step>\n <ic-step\n step-title=\"Third\"\n step-type=\"disabled\"\n ></ic-step>\n <ic-step\n step-title=\"Fourth title that is long and should wrap\"\n step-subtitle=\"Optional Subtitle\"\n step-type=\"completed\"\n ></ic-step>\n <ic-step\n step-title=\"Fifth and final step\"\n step-subtitle=\"Optional Subtitle\"\n icon\n step-status=\"optional\"\n step-type=\"completed\"\n ></ic-step>\n </ic-stepper>`;\n"]}
@@ -9,6 +9,20 @@
9
9
  padding: 0;
10
10
  }
11
11
 
12
- :host(.aligned-full-width) .step-item-list {
12
+ :host(.default:not(.aligned-left)) .step-item-list {
13
13
  flex: auto;
14
14
  }
15
+
16
+ :host(.compact) ul ::slotted(ic-step) {
17
+ display: none;
18
+ }
19
+
20
+ :host(.compact) ul ::slotted(ic-step.show) {
21
+ display: flex;
22
+ }
23
+
24
+ :host(.compact) ul ::slotted(ic-step.hide) {
25
+ display: none;
26
+ opacity: 0;
27
+ visibility: hidden;
28
+ }