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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (496) hide show
  1. package/README.md +8 -0
  2. package/dist/cjs/core.cjs.js +1 -1
  3. package/dist/cjs/{helpers-8bc3b6d2.js → helpers-81484ceb.js} +2 -2
  4. package/dist/cjs/helpers-81484ceb.js.map +1 -0
  5. package/dist/cjs/ic-alert.cjs.entry.js +3 -1
  6. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  8. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  10. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  11. package/dist/cjs/ic-button_3.cjs.entry.js +26 -10
  12. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-card.cjs.entry.js +17 -4
  14. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-checkbox-group.cjs.entry.js +1 -1
  16. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-checkbox.cjs.entry.js +3 -1
  18. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-chip.cjs.entry.js +66 -0
  20. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -0
  21. package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
  22. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-data-row.cjs.entry.js +2 -2
  25. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  27. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  29. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-footer.cjs.entry.js +3 -3
  33. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-hero.cjs.entry.js +1 -1
  35. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +25 -20
  37. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-input-label_2.cjs.entry.js +1 -1
  39. package/dist/cjs/ic-link.cjs.entry.js +1 -1
  40. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
  42. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
  44. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
  46. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
  48. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
  50. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-radio-group.cjs.entry.js +1 -1
  52. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-radio-option.cjs.entry.js +12 -2
  54. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-search-bar.cjs.entry.js +16 -19
  56. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-select.cjs.entry.js +3 -3
  59. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-side-navigation.cjs.entry.js +1 -1
  61. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-status-tag.cjs.entry.js +4 -3
  64. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-step.cjs.entry.js +101 -13
  66. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-stepper.cjs.entry.js +162 -41
  68. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-switch.cjs.entry.js +1 -1
  70. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-tab-context.cjs.entry.js +6 -1
  72. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  74. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-text-field.cjs.entry.js +1 -1
  76. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-theme.cjs.entry.js +3 -3
  78. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-top-navigation.cjs.entry.js +3 -3
  80. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  82. package/dist/cjs/index-3ef30d9d.js +4 -0
  83. package/dist/cjs/loader.cjs.js +1 -1
  84. package/dist/collection/assets/dismiss-icon.svg +3 -0
  85. package/dist/collection/assets/warning-icon-outline.svg +3 -0
  86. package/dist/collection/collection-manifest.json +1 -0
  87. package/dist/collection/components/ic-alert/ic-alert.js +20 -1
  88. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  89. package/dist/collection/components/ic-button/ic-button.js +2 -2
  90. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  91. package/dist/collection/components/ic-card/ic-card.css +58 -14
  92. package/dist/collection/components/ic-card/ic-card.js +64 -8
  93. package/dist/collection/components/ic-card/ic-card.js.map +1 -1
  94. package/dist/collection/components/ic-checkbox/ic-checkbox.js +20 -1
  95. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  96. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +1 -1
  97. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  98. package/dist/collection/components/ic-chip/ic-chip.css +595 -0
  99. package/dist/collection/components/ic-chip/ic-chip.js +199 -0
  100. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -0
  101. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js +11 -0
  102. package/dist/collection/components/ic-chip/ic-chip.test.a11y.js.map +1 -0
  103. package/dist/collection/components/ic-chip/ic-chip.types.js +2 -0
  104. package/dist/collection/components/ic-chip/ic-chip.types.js.map +1 -0
  105. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +1 -1
  106. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
  107. package/dist/collection/components/ic-data-row/ic-data-row.css +12 -0
  108. package/dist/collection/components/ic-divider/ic-divider.js +1 -1
  109. package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
  110. package/dist/collection/components/ic-footer/ic-footer.js +9 -6
  111. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  112. package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
  113. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  114. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +2 -2
  115. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  116. package/dist/collection/components/ic-hero/ic-hero.js +1 -1
  117. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  118. package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +0 -2
  119. package/dist/collection/components/ic-link/ic-link.js +1 -1
  120. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  121. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +38 -2
  122. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +39 -5
  123. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  124. package/dist/collection/components/ic-menu/ic-menu.js +31 -23
  125. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  126. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +1 -1
  127. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  128. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +2 -2
  129. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  130. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +4 -4
  131. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  132. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +1 -1
  133. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  134. package/dist/collection/components/ic-radio-group/ic-radio-group.js +1 -1
  135. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  136. package/dist/collection/components/ic-radio-option/ic-radio-option.css +7 -8
  137. package/dist/collection/components/ic-radio-option/ic-radio-option.js +32 -0
  138. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  139. package/dist/collection/components/ic-search-bar/ic-search-bar.js +28 -27
  140. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  141. package/dist/collection/components/ic-select/ic-select.css +1 -1
  142. package/dist/collection/components/ic-select/ic-select.js +1 -1
  143. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  144. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +6 -3
  145. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  146. package/dist/collection/components/ic-status-tag/ic-status-tag.js +21 -2
  147. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
  148. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js +1 -1
  149. package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +1 -1
  150. package/dist/collection/components/ic-step/ic-step.css +120 -24
  151. package/dist/collection/components/ic-step/ic-step.js +268 -27
  152. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  153. package/dist/collection/components/ic-step/ic-step.types.js.map +1 -1
  154. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js +74 -0
  155. package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js.map +1 -0
  156. package/dist/collection/components/ic-stepper/ic-stepper.css +15 -1
  157. package/dist/collection/components/ic-stepper/ic-stepper.js +206 -39
  158. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  159. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js +13 -1
  160. package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +1 -1
  161. package/dist/collection/components/ic-tab/ic-tab.js +5 -2
  162. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  163. package/dist/collection/components/ic-tab-context/ic-tab-context.js +29 -2
  164. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  165. package/dist/collection/components/ic-text-field/ic-text-field.js +2 -2
  166. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  167. package/dist/collection/components/ic-theme/ic-theme.js +8 -5
  168. package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
  169. package/dist/collection/components/ic-tooltip/ic-tooltip.css +1 -1
  170. package/dist/collection/components/ic-tooltip/ic-tooltip.js +22 -1
  171. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  172. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +8 -3
  173. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +2 -2
  174. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  175. package/dist/collection/normalize.css +440 -0
  176. package/dist/collection/testspec.setup.js +8 -0
  177. package/dist/collection/testspec.setup.js.map +1 -1
  178. package/dist/collection/utils/helpers.js +1 -1
  179. package/dist/collection/utils/helpers.js.map +1 -1
  180. package/dist/components/helpers.js +2 -2
  181. package/dist/components/helpers.js.map +1 -1
  182. package/dist/components/ic-alert.js +3 -1
  183. package/dist/components/ic-alert.js.map +1 -1
  184. package/dist/components/ic-back-to-top.js.map +1 -1
  185. package/dist/components/ic-button2.js +2 -2
  186. package/dist/components/ic-button2.js.map +1 -1
  187. package/dist/components/ic-card.js +40 -6
  188. package/dist/components/ic-card.js.map +1 -1
  189. package/dist/components/ic-checkbox-group.js +1 -1
  190. package/dist/components/ic-checkbox-group.js.map +1 -1
  191. package/dist/components/ic-checkbox.js +2 -0
  192. package/dist/components/ic-checkbox.js.map +1 -1
  193. package/dist/components/ic-chip.d.ts +11 -0
  194. package/dist/components/ic-chip.js +99 -0
  195. package/dist/components/ic-chip.js.map +1 -0
  196. package/dist/components/ic-classification-banner.js +1 -1
  197. package/dist/components/ic-classification-banner.js.map +1 -1
  198. package/dist/components/ic-data-entity.js.map +1 -1
  199. package/dist/components/ic-data-row.js +1 -1
  200. package/dist/components/ic-data-row.js.map +1 -1
  201. package/dist/components/ic-divider2.js +1 -1
  202. package/dist/components/ic-divider2.js.map +1 -1
  203. package/dist/components/ic-footer-link-group.js +1 -1
  204. package/dist/components/ic-footer-link-group.js.map +1 -1
  205. package/dist/components/ic-footer-link.js +1 -1
  206. package/dist/components/ic-footer-link.js.map +1 -1
  207. package/dist/components/ic-footer.js +3 -3
  208. package/dist/components/ic-footer.js.map +1 -1
  209. package/dist/components/ic-hero.js +1 -1
  210. package/dist/components/ic-hero.js.map +1 -1
  211. package/dist/components/ic-input-component-container2.js +1 -1
  212. package/dist/components/ic-input-component-container2.js.map +1 -1
  213. package/dist/components/ic-input-label2.js +1 -1
  214. package/dist/components/ic-input-validation2.js +1 -1
  215. package/dist/components/ic-link2.js +1 -1
  216. package/dist/components/ic-link2.js.map +1 -1
  217. package/dist/components/ic-loading-indicator2.js +21 -6
  218. package/dist/components/ic-loading-indicator2.js.map +1 -1
  219. package/dist/components/ic-menu2.js +23 -18
  220. package/dist/components/ic-menu2.js.map +1 -1
  221. package/dist/components/ic-navigation-button.js +1 -1
  222. package/dist/components/ic-navigation-button.js.map +1 -1
  223. package/dist/components/ic-navigation-group.js +1 -1
  224. package/dist/components/ic-navigation-group.js.map +1 -1
  225. package/dist/components/ic-navigation-item.js +3 -3
  226. package/dist/components/ic-navigation-item.js.map +1 -1
  227. package/dist/components/ic-navigation-menu2.js +2 -2
  228. package/dist/components/ic-navigation-menu2.js.map +1 -1
  229. package/dist/components/ic-page-header.js.map +1 -1
  230. package/dist/components/ic-radio-group.js +1 -1
  231. package/dist/components/ic-radio-group.js.map +1 -1
  232. package/dist/components/ic-radio-option.js +11 -1
  233. package/dist/components/ic-radio-option.js.map +1 -1
  234. package/dist/components/ic-search-bar.js +18 -21
  235. package/dist/components/ic-search-bar.js.map +1 -1
  236. package/dist/components/ic-section-container2.js.map +1 -1
  237. package/dist/components/ic-select.js +3 -3
  238. package/dist/components/ic-select.js.map +1 -1
  239. package/dist/components/ic-side-navigation.js +2 -2
  240. package/dist/components/ic-side-navigation.js.map +1 -1
  241. package/dist/components/ic-skeleton.js.map +1 -1
  242. package/dist/components/ic-status-tag.js +5 -3
  243. package/dist/components/ic-status-tag.js.map +1 -1
  244. package/dist/components/ic-step.js +117 -16
  245. package/dist/components/ic-step.js.map +1 -1
  246. package/dist/components/ic-stepper.js +169 -41
  247. package/dist/components/ic-stepper.js.map +1 -1
  248. package/dist/components/ic-switch.js.map +1 -1
  249. package/dist/components/ic-tab-context.js +6 -1
  250. package/dist/components/ic-tab-context.js.map +1 -1
  251. package/dist/components/ic-tab-group.js +1 -1
  252. package/dist/components/ic-tab.js.map +1 -1
  253. package/dist/components/ic-text-field2.js +3 -3
  254. package/dist/components/ic-text-field2.js.map +1 -1
  255. package/dist/components/ic-theme.js +3 -3
  256. package/dist/components/ic-theme.js.map +1 -1
  257. package/dist/components/ic-tooltip2.js +7 -3
  258. package/dist/components/ic-tooltip2.js.map +1 -1
  259. package/dist/components/ic-top-navigation.js +4 -4
  260. package/dist/components/ic-top-navigation.js.map +1 -1
  261. package/dist/components/ic-typography2.js.map +1 -1
  262. package/dist/components/index.d.ts +2 -1
  263. package/dist/components/index.js +1 -0
  264. package/dist/components/index.js.map +1 -1
  265. package/dist/core/core.css +1 -1
  266. package/dist/core/core.esm.js +1 -1
  267. package/dist/core/core.esm.js.map +1 -1
  268. package/dist/core/normalize.css +440 -0
  269. package/dist/core/{p-5831bb8e.entry.js → p-050e1e7b.entry.js} +2 -2
  270. package/dist/core/{p-5831bb8e.entry.js.map → p-050e1e7b.entry.js.map} +1 -1
  271. package/dist/core/{p-31a8595f.entry.js → p-09592918.entry.js} +2 -2
  272. package/dist/core/{p-31a8595f.entry.js.map → p-09592918.entry.js.map} +1 -1
  273. package/dist/core/{p-347ec49e.entry.js → p-0b00f848.entry.js} +2 -2
  274. package/dist/core/p-0b00f848.entry.js.map +1 -0
  275. package/dist/core/p-16698d3e.entry.js +2 -0
  276. package/dist/core/p-16698d3e.entry.js.map +1 -0
  277. package/dist/core/p-18a9beea.entry.js +2 -0
  278. package/dist/core/p-18a9beea.entry.js.map +1 -0
  279. package/dist/core/{p-7b39977f.entry.js → p-1da1f2f3.entry.js} +2 -2
  280. package/dist/core/p-1da1f2f3.entry.js.map +1 -0
  281. package/dist/core/{p-2f114521.entry.js → p-217fa7de.entry.js} +2 -2
  282. package/dist/core/{p-2f114521.entry.js.map → p-217fa7de.entry.js.map} +1 -1
  283. package/dist/core/{p-cc83692e.entry.js → p-23bf0b7a.entry.js} +2 -2
  284. package/dist/core/{p-cc83692e.entry.js.map → p-23bf0b7a.entry.js.map} +1 -1
  285. package/dist/core/{p-558552f8.entry.js → p-27554319.entry.js} +2 -2
  286. package/dist/core/p-27554319.entry.js.map +1 -0
  287. package/dist/core/p-2ca96f69.entry.js +2 -0
  288. package/dist/core/p-2ca96f69.entry.js.map +1 -0
  289. package/dist/core/{p-dd3c3e3c.entry.js → p-3f4d632c.entry.js} +2 -2
  290. package/dist/core/p-3f4d632c.entry.js.map +1 -0
  291. package/dist/core/p-3f9cdcdd.entry.js +2 -0
  292. package/dist/core/{p-c4d3c18c.entry.js.map → p-3f9cdcdd.entry.js.map} +1 -1
  293. package/dist/core/p-4f1a7195.entry.js +2 -0
  294. package/dist/core/p-4f1a7195.entry.js.map +1 -0
  295. package/dist/core/p-5616cfb8.entry.js +2 -0
  296. package/dist/core/p-5616cfb8.entry.js.map +1 -0
  297. package/dist/core/p-66cad84e.entry.js +2 -0
  298. package/dist/core/p-66cad84e.entry.js.map +1 -0
  299. package/dist/core/p-6be5e06b.entry.js.map +1 -1
  300. package/dist/core/p-6d0eaaeb.entry.js.map +1 -1
  301. package/dist/core/p-6f442942.entry.js +2 -0
  302. package/dist/core/p-6f442942.entry.js.map +1 -0
  303. package/dist/core/{p-60ffb73e.entry.js → p-789e197b.entry.js} +2 -2
  304. package/dist/core/p-789e197b.entry.js.map +1 -0
  305. package/dist/core/{p-4c72f3a9.entry.js → p-7ba184da.entry.js} +2 -2
  306. package/dist/core/{p-4c72f3a9.entry.js.map → p-7ba184da.entry.js.map} +0 -0
  307. package/dist/core/p-80cd0a2d.entry.js +2 -0
  308. package/dist/core/p-80cd0a2d.entry.js.map +1 -0
  309. package/dist/core/{p-2b5c9143.entry.js → p-8470c255.entry.js} +2 -2
  310. package/dist/core/{p-2b5c9143.entry.js.map → p-8470c255.entry.js.map} +1 -1
  311. package/dist/core/p-89a925f8.entry.js +2 -0
  312. package/dist/core/p-89a925f8.entry.js.map +1 -0
  313. package/dist/core/{p-ecfb2e6b.entry.js → p-930cd4cc.entry.js} +2 -2
  314. package/dist/core/{p-ecfb2e6b.entry.js.map → p-930cd4cc.entry.js.map} +1 -1
  315. package/dist/core/{p-0118400b.entry.js → p-9b4022d7.entry.js} +2 -2
  316. package/dist/core/p-9b4022d7.entry.js.map +1 -0
  317. package/dist/core/p-9e684c58.entry.js +2 -0
  318. package/dist/core/p-9e684c58.entry.js.map +1 -0
  319. package/dist/core/{p-5e261268.entry.js → p-9fbceeb2.entry.js} +2 -2
  320. package/dist/core/{p-5e261268.entry.js.map → p-9fbceeb2.entry.js.map} +0 -0
  321. package/dist/core/p-a2d3e955.entry.js.map +1 -1
  322. package/dist/core/{p-9cd04875.entry.js → p-a5948fc3.entry.js} +2 -2
  323. package/dist/core/{p-9cd04875.entry.js.map → p-a5948fc3.entry.js.map} +1 -1
  324. package/dist/core/{p-23831891.js → p-a8ac8f72.js} +2 -2
  325. package/dist/core/p-a8ac8f72.js.map +1 -0
  326. package/dist/core/{p-6b34d98f.entry.js → p-ae02b008.entry.js} +2 -2
  327. package/dist/core/{p-6b34d98f.entry.js.map → p-ae02b008.entry.js.map} +1 -1
  328. package/dist/core/p-bb106092.entry.js +2 -0
  329. package/dist/core/p-bb106092.entry.js.map +1 -0
  330. package/dist/core/{p-6fba90ee.entry.js → p-bbe00cb1.entry.js} +2 -2
  331. package/dist/core/{p-6fba90ee.entry.js.map → p-bbe00cb1.entry.js.map} +1 -1
  332. package/dist/core/{p-b3dec76d.entry.js → p-c1d78a64.entry.js} +2 -2
  333. package/dist/core/{p-b3dec76d.entry.js.map → p-c1d78a64.entry.js.map} +1 -1
  334. package/dist/core/{p-0b125f26.entry.js → p-c320fa70.entry.js} +2 -2
  335. package/dist/core/{p-0b125f26.entry.js.map → p-c320fa70.entry.js.map} +0 -0
  336. package/dist/core/p-cadb531f.entry.js.map +1 -1
  337. package/dist/core/p-d599cf4f.entry.js +2 -0
  338. package/dist/core/p-d599cf4f.entry.js.map +1 -0
  339. package/dist/core/{p-6f6bd657.entry.js → p-e192e25d.entry.js} +2 -2
  340. package/dist/core/{p-6f6bd657.entry.js.map → p-e192e25d.entry.js.map} +1 -1
  341. package/dist/core/{p-7f04e382.entry.js → p-e810f48c.entry.js} +2 -2
  342. package/dist/core/{p-7f04e382.entry.js.map → p-e810f48c.entry.js.map} +1 -1
  343. package/dist/core/p-e93e9aa3.entry.js.map +1 -1
  344. package/dist/core/p-eaea567e.entry.js +2 -0
  345. package/dist/core/p-eaea567e.entry.js.map +1 -0
  346. package/dist/core/p-f5b045a5.entry.js +2 -0
  347. package/dist/core/p-f5b045a5.entry.js.map +1 -0
  348. package/dist/core/{p-10da19d2.entry.js → p-f760198e.entry.js} +2 -2
  349. package/dist/core/{p-10da19d2.entry.js.map → p-f760198e.entry.js.map} +0 -0
  350. package/dist/core/{p-c6dd4f47.entry.js → p-fd0c6039.entry.js} +2 -2
  351. package/dist/core/p-fd0c6039.entry.js.map +1 -0
  352. package/dist/esm/core.js +1 -1
  353. package/dist/esm/{helpers-3d41833c.js → helpers-46e5291b.js} +3 -3
  354. package/dist/esm/helpers-46e5291b.js.map +1 -0
  355. package/dist/esm/ic-alert.entry.js +3 -1
  356. package/dist/esm/ic-alert.entry.js.map +1 -1
  357. package/dist/esm/ic-back-to-top.entry.js +1 -1
  358. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  359. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  360. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  361. package/dist/esm/ic-button_3.entry.js +26 -10
  362. package/dist/esm/ic-button_3.entry.js.map +1 -1
  363. package/dist/esm/ic-card.entry.js +17 -4
  364. package/dist/esm/ic-card.entry.js.map +1 -1
  365. package/dist/esm/ic-checkbox-group.entry.js +1 -1
  366. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  367. package/dist/esm/ic-checkbox.entry.js +3 -1
  368. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  369. package/dist/esm/ic-chip.entry.js +62 -0
  370. package/dist/esm/ic-chip.entry.js.map +1 -0
  371. package/dist/esm/ic-classification-banner.entry.js +1 -1
  372. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  373. package/dist/esm/ic-data-entity.entry.js.map +1 -1
  374. package/dist/esm/ic-data-row.entry.js +2 -2
  375. package/dist/esm/ic-data-row.entry.js.map +1 -1
  376. package/dist/esm/ic-divider.entry.js +1 -1
  377. package/dist/esm/ic-divider.entry.js.map +1 -1
  378. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  379. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  380. package/dist/esm/ic-footer-link.entry.js +1 -1
  381. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  382. package/dist/esm/ic-footer.entry.js +3 -3
  383. package/dist/esm/ic-footer.entry.js.map +1 -1
  384. package/dist/esm/ic-hero.entry.js +1 -1
  385. package/dist/esm/ic-hero.entry.js.map +1 -1
  386. package/dist/esm/ic-input-component-container_3.entry.js +25 -20
  387. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  388. package/dist/esm/ic-input-label_2.entry.js +1 -1
  389. package/dist/esm/ic-link.entry.js +1 -1
  390. package/dist/esm/ic-link.entry.js.map +1 -1
  391. package/dist/esm/ic-navigation-button.entry.js +1 -1
  392. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  393. package/dist/esm/ic-navigation-group.entry.js +1 -1
  394. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  395. package/dist/esm/ic-navigation-item.entry.js +3 -3
  396. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  397. package/dist/esm/ic-navigation-menu.entry.js +1 -1
  398. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  399. package/dist/esm/ic-page-header.entry.js +1 -1
  400. package/dist/esm/ic-page-header.entry.js.map +1 -1
  401. package/dist/esm/ic-radio-group.entry.js +1 -1
  402. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  403. package/dist/esm/ic-radio-option.entry.js +12 -2
  404. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  405. package/dist/esm/ic-search-bar.entry.js +16 -19
  406. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  407. package/dist/esm/ic-section-container.entry.js.map +1 -1
  408. package/dist/esm/ic-select.entry.js +3 -3
  409. package/dist/esm/ic-select.entry.js.map +1 -1
  410. package/dist/esm/ic-side-navigation.entry.js +1 -1
  411. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  412. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  413. package/dist/esm/ic-status-tag.entry.js +4 -3
  414. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  415. package/dist/esm/ic-step.entry.js +101 -13
  416. package/dist/esm/ic-step.entry.js.map +1 -1
  417. package/dist/esm/ic-stepper.entry.js +162 -41
  418. package/dist/esm/ic-stepper.entry.js.map +1 -1
  419. package/dist/esm/ic-switch.entry.js +1 -1
  420. package/dist/esm/ic-switch.entry.js.map +1 -1
  421. package/dist/esm/ic-tab-context.entry.js +6 -1
  422. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  423. package/dist/esm/ic-tab-group.entry.js +1 -1
  424. package/dist/esm/ic-tab.entry.js.map +1 -1
  425. package/dist/esm/ic-text-field.entry.js +1 -1
  426. package/dist/esm/ic-text-field.entry.js.map +1 -1
  427. package/dist/esm/ic-theme.entry.js +3 -3
  428. package/dist/esm/ic-theme.entry.js.map +1 -1
  429. package/dist/esm/ic-top-navigation.entry.js +3 -3
  430. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  431. package/dist/esm/ic-typography.entry.js.map +1 -1
  432. package/dist/esm/index-1500de1f.js +4 -0
  433. package/dist/esm/loader.js +1 -1
  434. package/dist/types/components/ic-alert/ic-alert.d.ts +5 -1
  435. package/dist/types/components/ic-card/ic-card.d.ts +20 -3
  436. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +5 -1
  437. package/dist/types/components/ic-chip/ic-chip.d.ts +40 -0
  438. package/dist/types/components/ic-chip/ic-chip.test.a11y.d.ts +1 -0
  439. package/dist/types/components/ic-chip/ic-chip.types.d.ts +2 -0
  440. package/dist/types/components/ic-footer/ic-footer.d.ts +2 -2
  441. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +5 -0
  442. package/dist/types/components/ic-menu/ic-menu.d.ts +5 -4
  443. package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +1 -1
  444. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +5 -1
  445. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +3 -4
  446. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +1 -1
  447. package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +4 -0
  448. package/dist/types/components/ic-step/ic-step.d.ts +35 -6
  449. package/dist/types/components/ic-step/ic-step.types.d.ts +2 -0
  450. package/dist/types/components/ic-stepper/ic-stepper-test-examples.d.ts +4 -0
  451. package/dist/types/components/ic-stepper/ic-stepper.d.ts +23 -6
  452. package/dist/types/components/ic-tab/ic-tab.d.ts +1 -1
  453. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +6 -2
  454. package/dist/types/components/ic-theme/ic-theme.d.ts +2 -2
  455. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +4 -0
  456. package/dist/types/components.d.ts +161 -43
  457. package/dist/types/testspec.setup.d.ts +1 -0
  458. package/hydrate/index.js +572 -210
  459. package/package.json +3 -3
  460. package/dist/cjs/helpers-8bc3b6d2.js.map +0 -1
  461. package/dist/core/p-001651fc.entry.js +0 -2
  462. package/dist/core/p-001651fc.entry.js.map +0 -1
  463. package/dist/core/p-0118400b.entry.js.map +0 -1
  464. package/dist/core/p-07cd789d.entry.js +0 -2
  465. package/dist/core/p-07cd789d.entry.js.map +0 -1
  466. package/dist/core/p-23831891.js.map +0 -1
  467. package/dist/core/p-2e9f3011.entry.js +0 -2
  468. package/dist/core/p-2e9f3011.entry.js.map +0 -1
  469. package/dist/core/p-347ec49e.entry.js.map +0 -1
  470. package/dist/core/p-39ae284e.entry.js +0 -2
  471. package/dist/core/p-39ae284e.entry.js.map +0 -1
  472. package/dist/core/p-558552f8.entry.js.map +0 -1
  473. package/dist/core/p-60ffb73e.entry.js.map +0 -1
  474. package/dist/core/p-69650186.entry.js +0 -2
  475. package/dist/core/p-69650186.entry.js.map +0 -1
  476. package/dist/core/p-7093d214.entry.js +0 -2
  477. package/dist/core/p-7093d214.entry.js.map +0 -1
  478. package/dist/core/p-7577c6a3.entry.js +0 -2
  479. package/dist/core/p-7577c6a3.entry.js.map +0 -1
  480. package/dist/core/p-7b39977f.entry.js.map +0 -1
  481. package/dist/core/p-7f632414.entry.js +0 -2
  482. package/dist/core/p-7f632414.entry.js.map +0 -1
  483. package/dist/core/p-88b15005.entry.js +0 -2
  484. package/dist/core/p-88b15005.entry.js.map +0 -1
  485. package/dist/core/p-898607d0.entry.js +0 -2
  486. package/dist/core/p-898607d0.entry.js.map +0 -1
  487. package/dist/core/p-ac43322e.entry.js +0 -2
  488. package/dist/core/p-ac43322e.entry.js.map +0 -1
  489. package/dist/core/p-c4d3c18c.entry.js +0 -2
  490. package/dist/core/p-c6dd4f47.entry.js.map +0 -1
  491. package/dist/core/p-cf5e8a55.entry.js +0 -2
  492. package/dist/core/p-cf5e8a55.entry.js.map +0 -1
  493. package/dist/core/p-dd3c3e3c.entry.js.map +0 -1
  494. package/dist/core/p-e4551421.entry.js +0 -2
  495. package/dist/core/p-e4551421.entry.js.map +0 -1
  496. package/dist/esm/helpers-3d41833c.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","sourceRoot":"","sources":["../../../src/components/ic-step/ic-step.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAQpD,MAAM,OAAO,IAAI;;oBAKkB,QAAQ;;;;;;EAsBzC,MAAM;IACJ,IAAI,IAAI,CAAC;IACT,IAAI,IAAI,CAAC,QAAQ,KAAK,WAAW,EAAE;MACjC,IAAI,GAAG,CACL,qBAAe,OAAO,EAAC,gBAAgB;QACrC,YAAM,KAAK,EAAC,iBAAiB,iBAAa,MAAM,IAC7C,IAAI,CAAC,OAAO,CACR,CACO,CACjB,CAAC;KACH;SAAM;MACL,IAAI,GAAG,CACL,WAAK,KAAK,EAAC,iBAAiB,iBAAa,MAAM;QAC7C,YAAM,KAAK,EAAC,YAAY,EAAC,SAAS,EAAE,SAAS,GAAS,CAClD,CACP,CAAC;KACH;IAED,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,iBAAiB,CAAC;KAC/B;IAED,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,CAChD,WAAK,KAAK,EAAC,oBAAoB,GAAO,CACvC,CAAC;IACF,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,CAClC,WACE,KAAK,EAAE;QACL,CAAC,cAAc,CAAC,EAAE,IAAI;QACtB,CAAC,oBAAoB,CAAC,EACpB,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC;OACjE,IAEA,UAAU,CACP,CACP,CAAC;IAEF,OAAO,CACL,EAAC,IAAI,IACH,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,CAA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C,EAAE,IAAI;OAC1B,IAEA,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,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
+ }