@ebrains/components 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
  2. package/dist/cjs/components-section.cjs.entry.js +3 -5
  3. package/dist/cjs/components.cjs.js +1 -1
  4. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  5. package/dist/cjs/docs-palettes.cjs.entry.js +1 -1
  6. package/dist/cjs/docs-tokens.cjs.entry.js +1 -1
  7. package/dist/cjs/download-9d17d025.js +20 -0
  8. package/dist/cjs/{eds-accordion_33.cjs.entry.js → eds-accordion_34.cjs.entry.js} +176 -92
  9. package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
  10. package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
  11. package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
  12. package/dist/cjs/eds-footer.cjs.entry.js +2 -4
  13. package/dist/cjs/eds-frame.cjs.entry.js +1 -1
  14. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +8 -3
  15. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
  16. package/dist/cjs/eds-icon-download.cjs.entry.js +18 -0
  17. package/dist/cjs/eds-icon-draft.cjs.entry.js +1 -1
  18. package/dist/cjs/eds-icon-edit.cjs.entry.js +1 -1
  19. package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
  20. package/dist/cjs/eds-icon-external.cjs.entry.js +1 -1
  21. package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
  22. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
  23. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
  24. package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
  25. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
  26. package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
  27. package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
  28. package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
  29. package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
  30. package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
  31. package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
  32. package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
  33. package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
  34. package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
  35. package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
  36. package/dist/cjs/eds-icon-start.cjs.entry.js +1 -1
  37. package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
  38. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
  39. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
  40. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
  41. package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
  42. package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
  43. package/dist/cjs/eds-icon-updown.cjs.entry.js +1 -1
  44. package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
  45. package/dist/cjs/eds-icon-view.cjs.entry.js +1 -1
  46. package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
  47. package/dist/cjs/eds-modal.cjs.entry.js +2 -2
  48. package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
  49. package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
  50. package/dist/cjs/eds-social-networks.cjs.entry.js +2 -4
  51. package/dist/cjs/eds-spinner.cjs.entry.js +1 -1
  52. package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
  53. package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
  54. package/dist/cjs/eds-trl.cjs.entry.js +1 -1
  55. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  56. package/dist/cjs/index-0249a32e.js +6 -6
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/logo-space.cjs.entry.js +1 -1
  59. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
  60. package/dist/cjs/logo-variations-tabs.cjs.entry.js +1 -1
  61. package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
  62. package/dist/cjs/svg-repository.cjs.entry.js +3 -19
  63. package/dist/cjs/token-list_3.cjs.entry.js +3 -3
  64. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  65. package/dist/cjs/token-spacing.cjs.entry.js +1 -1
  66. package/dist/cjs/token-typography.cjs.entry.js +1 -1
  67. package/dist/collection/collection-manifest.json +1 -0
  68. package/dist/collection/components/eds-icons/eds-icon-download/eds-icon-download.js +36 -0
  69. package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
  70. package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
  71. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  72. package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
  73. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  74. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  75. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  76. package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
  77. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  78. package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
  79. package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
  80. package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
  81. package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
  82. package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
  83. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  84. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
  85. package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
  86. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  87. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
  88. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
  89. package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
  90. package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
  91. package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
  92. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
  93. package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +1 -1
  94. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
  95. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
  96. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
  97. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
  98. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
  99. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
  100. package/dist/collection/components/eds-img/eds-img.js +2 -2
  101. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
  102. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
  103. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
  104. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
  105. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
  106. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
  107. package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
  108. package/dist/collection/components/eds-link/eds-link.js +1 -1
  109. package/dist/collection/components/eds-logo/eds-logo.js +1 -1
  110. package/dist/collection/components/eds-modal/eds-modal.js +2 -2
  111. package/dist/collection/components/eds-nps/eds-nps.js +4 -4
  112. package/dist/collection/components/eds-pagination/eds-pagination.css +12 -0
  113. package/dist/collection/components/eds-pagination/eds-pagination.js +2 -2
  114. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  115. package/dist/collection/components/eds-rating/eds-rating.js +2 -2
  116. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  117. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  118. package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
  119. package/dist/collection/components/eds-switch/eds-switch.js +2 -2
  120. package/dist/collection/components/eds-table/eds-table.css +4 -0
  121. package/dist/collection/components/eds-table/eds-table.js +8 -6
  122. package/dist/collection/components/eds-tag/eds-tag.js +1 -1
  123. package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
  124. package/dist/collection/components/eds-tooltip/eds-tooltip.css +5 -0
  125. package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
  126. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  127. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  128. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  129. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  130. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  131. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  132. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  133. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  134. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  135. package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
  136. package/dist/collection/eds-docs-ui/components-section/functional/overview.js +1 -1
  137. package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
  138. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  139. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  140. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  141. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  142. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  143. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  144. package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
  145. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  146. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  147. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  148. package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
  149. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  150. package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
  151. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
  152. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
  153. package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -6
  154. package/dist/collection/shared-ui/eds-form/eds-form.css +72 -0
  155. package/dist/collection/shared-ui/eds-form/eds-form.js +87 -4
  156. package/dist/collection/shared-ui/eds-form/eds-form.stories.js +32 -3
  157. package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
  158. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +50 -16
  159. package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
  160. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +20 -8
  161. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -20
  162. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -3
  163. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +6 -7
  164. package/dist/collection/shared-ui/eds-steps/eds-steps.css +136 -92
  165. package/dist/collection/shared-ui/eds-steps/eds-steps.js +234 -40
  166. package/dist/collection/shared-ui/eds-steps/eds-steps.stories.js +71 -7
  167. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +44 -33
  168. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +195 -19
  169. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +65 -4
  170. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +2 -2
  171. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  172. package/dist/collection/shared-ui/eds-user/eds-user.js +35 -1
  173. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
  174. package/dist/collection/utils/eds-form/formValidators.js +4 -3
  175. package/dist/components/components-section.js +3 -5
  176. package/dist/components/components.css +0 -3
  177. package/dist/components/components.esm.js +1 -1
  178. package/dist/components/correct-use-of-colors.js +1 -1
  179. package/dist/components/docs-palettes.js +1 -1
  180. package/dist/components/docs-tokens.js +1 -1
  181. package/dist/components/download.js +18 -0
  182. package/dist/components/eds-app-root.js +1 -1
  183. package/dist/components/eds-cookies-preference.js +1 -1
  184. package/dist/components/eds-feedback.js +1 -1
  185. package/dist/components/eds-footer2.js +2 -4
  186. package/dist/components/eds-form.js +26 -8
  187. package/dist/components/eds-frame.js +1 -1
  188. package/dist/components/eds-fullscreen-menu.js +8 -3
  189. package/dist/components/eds-header.js +1 -1
  190. package/dist/components/eds-icon-bluesky.js +1 -1
  191. package/dist/components/eds-icon-download.d.ts +11 -0
  192. package/dist/components/eds-icon-download.js +33 -0
  193. package/dist/components/eds-icon-draft.js +1 -1
  194. package/dist/components/eds-icon-edit.js +1 -1
  195. package/dist/components/eds-icon-eu.js +1 -1
  196. package/dist/components/eds-icon-external.js +1 -1
  197. package/dist/components/eds-icon-facebook.js +1 -1
  198. package/dist/components/eds-icon-gitlab.js +1 -1
  199. package/dist/components/eds-icon-linkedin.js +1 -1
  200. package/dist/components/eds-icon-loader.js +1 -1
  201. package/dist/components/eds-icon-mastodon.js +1 -1
  202. package/dist/components/eds-icon-menu.js +1 -1
  203. package/dist/components/eds-icon-minus.js +1 -1
  204. package/dist/components/eds-icon-more.js +1 -1
  205. package/dist/components/eds-icon-paper.js +1 -1
  206. package/dist/components/eds-icon-plus.js +1 -1
  207. package/dist/components/eds-icon-portal.js +1 -1
  208. package/dist/components/eds-icon-private.js +1 -1
  209. package/dist/components/eds-icon-public.js +1 -1
  210. package/dist/components/eds-icon-search.js +1 -1
  211. package/dist/components/eds-icon-star.js +1 -1
  212. package/dist/components/eds-icon-start.js +1 -1
  213. package/dist/components/eds-icon-success.js +1 -1
  214. package/dist/components/eds-icon-thumbs-down.js +1 -1
  215. package/dist/components/eds-icon-thumbs-up.js +1 -1
  216. package/dist/components/eds-icon-tutorial.js +1 -1
  217. package/dist/components/eds-icon-twitter.js +1 -1
  218. package/dist/components/eds-icon-unknown.js +1 -1
  219. package/dist/components/eds-icon-updown.js +1 -1
  220. package/dist/components/eds-icon-user.js +1 -1
  221. package/dist/components/eds-icon-view.js +1 -1
  222. package/dist/components/eds-icon-youtube.js +1 -1
  223. package/dist/components/eds-img2.js +2 -2
  224. package/dist/components/eds-input-field2.js +2 -2
  225. package/dist/components/eds-input-footer2.js +1 -1
  226. package/dist/components/eds-input-label2.js +1 -1
  227. package/dist/components/eds-input-range2.js +1 -1
  228. package/dist/components/eds-input-search2.js +1 -1
  229. package/dist/components/eds-input-select2.js +2 -2
  230. package/dist/components/eds-input2.js +2 -2
  231. package/dist/components/eds-link2.js +1 -1
  232. package/dist/components/eds-logo2.js +1 -1
  233. package/dist/components/eds-modal.js +2 -2
  234. package/dist/components/eds-nps2.js +4 -4
  235. package/dist/components/eds-pagination2.js +3 -3
  236. package/dist/components/eds-progress-bar2.js +1 -1
  237. package/dist/components/eds-rating2.js +2 -2
  238. package/dist/components/eds-section-core2.js +1 -1
  239. package/dist/components/eds-section-heading2.js +2 -2
  240. package/dist/components/eds-social-networks2.js +2 -4
  241. package/dist/components/eds-spinner2.js +1 -1
  242. package/dist/components/eds-steps-v2.js +35 -13
  243. package/dist/components/eds-steps2.js +54 -35
  244. package/dist/components/eds-switch.js +2 -2
  245. package/dist/components/eds-table2.js +36 -28
  246. package/dist/components/eds-tabs.js +2 -2
  247. package/dist/components/eds-tag2.js +1 -1
  248. package/dist/components/eds-timeline.js +1 -1
  249. package/dist/components/eds-toast-manager.js +1 -1
  250. package/dist/components/eds-tooltip.js +1 -50
  251. package/dist/components/eds-tooltip2.js +52 -0
  252. package/dist/components/eds-trl.js +33 -27
  253. package/dist/components/eds-user.js +10 -2
  254. package/dist/components/incorrect-use-of-colors.js +1 -1
  255. package/dist/components/logo-space.js +31 -25
  256. package/dist/components/logo-variations-horizontal2.js +1 -1
  257. package/dist/components/logo-variations-tabs.js +1 -1
  258. package/dist/components/logo-variations-vertical2.js +1 -1
  259. package/dist/components/logo-wrong-usage.js +1 -1
  260. package/dist/components/p-0452fe52.entry.js +1 -0
  261. package/dist/components/p-04f288b1.entry.js +1 -0
  262. package/dist/components/p-06951aa3.entry.js +1 -0
  263. package/dist/components/p-0da7d1c9.js +1 -0
  264. package/dist/components/p-101392d0.entry.js +1 -0
  265. package/dist/components/p-171f8e6b.entry.js +1 -0
  266. package/dist/components/{p-d95d7353.entry.js → p-1b032aa8.entry.js} +1 -1
  267. package/dist/components/p-28ec52a7.entry.js +1 -0
  268. package/dist/components/p-2f712656.entry.js +1 -0
  269. package/dist/components/p-3097c321.entry.js +1 -0
  270. package/dist/components/p-36db7db0.entry.js +1 -0
  271. package/dist/components/p-38b0ea8d.entry.js +1 -0
  272. package/dist/components/p-3b551ade.entry.js +9 -0
  273. package/dist/components/p-3fa4a703.entry.js +1 -0
  274. package/dist/components/p-3fa54526.entry.js +1 -0
  275. package/dist/components/p-42680319.entry.js +1 -0
  276. package/dist/components/{p-2ef4dd11.entry.js → p-4c618a35.entry.js} +1 -1
  277. package/dist/components/p-4d207d0e.entry.js +1 -0
  278. package/dist/components/p-4db384d9.entry.js +1 -0
  279. package/dist/components/{p-e210ddbb.entry.js → p-50d7eed9.entry.js} +1 -1
  280. package/dist/components/{p-5f348b0e.entry.js → p-5479e43b.entry.js} +1 -1
  281. package/dist/components/{p-8627afc0.entry.js → p-58c8c0d7.entry.js} +1 -1
  282. package/dist/components/p-5a88cdc2.entry.js +1 -0
  283. package/dist/components/p-5b574bb2.entry.js +1 -0
  284. package/dist/components/p-5ec9fc29.entry.js +1 -0
  285. package/dist/components/p-5f350866.entry.js +1 -0
  286. package/dist/components/p-5ff10b6f.entry.js +1 -0
  287. package/dist/components/p-6420754e.entry.js +1 -0
  288. package/dist/components/p-68a2cd95.entry.js +1 -0
  289. package/dist/components/{p-706a106c.entry.js → p-6a2d1e11.entry.js} +1 -1
  290. package/dist/components/{p-e5892379.entry.js → p-7032a73b.entry.js} +1 -1
  291. package/dist/components/p-7272628d.entry.js +1 -0
  292. package/dist/components/p-78c348e2.entry.js +1 -0
  293. package/dist/components/p-870001ee.entry.js +1 -0
  294. package/dist/components/p-88eeaeca.entry.js +1 -0
  295. package/dist/components/p-8b7910d2.entry.js +1 -0
  296. package/dist/components/{p-2e0c3fc4.entry.js → p-8eced026.entry.js} +1 -1
  297. package/dist/components/{p-b88a2267.entry.js → p-8edd07db.entry.js} +1 -1
  298. package/dist/components/p-8ef68d8a.entry.js +1 -0
  299. package/dist/components/p-8fb1eb43.entry.js +1 -0
  300. package/dist/components/{p-1d18106d.entry.js → p-94a223ec.entry.js} +1 -1
  301. package/dist/components/{p-b9a1aba3.entry.js → p-a5fd4fc9.entry.js} +1 -1
  302. package/dist/components/p-a6586448.entry.js +1 -0
  303. package/dist/components/p-ad7d603b.entry.js +1 -0
  304. package/dist/components/p-b24ef7f7.entry.js +1 -0
  305. package/dist/components/p-baa2df0b.entry.js +1 -0
  306. package/dist/components/p-bfe9d934.entry.js +1 -0
  307. package/dist/components/p-c1943b8f.entry.js +1 -0
  308. package/dist/components/{p-7a3f2576.entry.js → p-c66f4dd8.entry.js} +1 -1
  309. package/dist/components/{p-743f9f8f.entry.js → p-d3391236.entry.js} +1 -1
  310. package/dist/components/p-da0e9a75.entry.js +1 -0
  311. package/dist/components/p-dbe11048.entry.js +1 -0
  312. package/dist/components/{p-4c84fcf4.entry.js → p-dd28ab38.entry.js} +1 -1
  313. package/dist/components/p-e42ac312.entry.js +1 -0
  314. package/dist/components/{p-9f0a34b4.entry.js → p-e6c3f38c.entry.js} +1 -1
  315. package/dist/components/p-e7c37e5b.entry.js +1 -0
  316. package/dist/components/p-e9cd3c4b.entry.js +1 -0
  317. package/dist/components/p-ebd59113.entry.js +1 -0
  318. package/dist/components/p-f092b706.entry.js +1 -0
  319. package/dist/components/p-f29e7506.entry.js +1 -0
  320. package/dist/components/p-fc099d59.entry.js +1 -0
  321. package/dist/components/p-fda3da92.entry.js +1 -0
  322. package/dist/components/{p-67ec46b4.entry.js → p-ff902c98.entry.js} +1 -1
  323. package/dist/components/primary.js +1 -1
  324. package/dist/components/primary2.js +1 -1
  325. package/dist/components/secondary.js +1 -1
  326. package/dist/components/secondary2.js +7 -7
  327. package/dist/components/support.js +1 -1
  328. package/dist/components/support2.js +3 -3
  329. package/dist/components/svg-repository.js +32 -42
  330. package/dist/components/token-list2.js +1 -1
  331. package/dist/components/token-radii2.js +1 -1
  332. package/dist/components/token-ratios.js +1 -1
  333. package/dist/components/token-shadows2.js +1 -1
  334. package/dist/components/token-spacing.js +1 -1
  335. package/dist/components/token-typography.js +1 -1
  336. package/dist/esm/color-primary-palette_6.entry.js +14 -14
  337. package/dist/esm/components-section.entry.js +3 -5
  338. package/dist/esm/components.js +1 -1
  339. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  340. package/dist/esm/docs-palettes.entry.js +1 -1
  341. package/dist/esm/docs-tokens.entry.js +1 -1
  342. package/dist/esm/download-47746956.js +18 -0
  343. package/dist/esm/{eds-accordion_33.entry.js → eds-accordion_34.entry.js} +176 -93
  344. package/dist/esm/eds-app-root.entry.js +1 -1
  345. package/dist/esm/eds-cookies-preference.entry.js +1 -1
  346. package/dist/esm/eds-feedback.entry.js +1 -1
  347. package/dist/esm/eds-footer.entry.js +2 -4
  348. package/dist/esm/eds-frame.entry.js +1 -1
  349. package/dist/esm/eds-fullscreen-menu.entry.js +8 -3
  350. package/dist/esm/eds-icon-bluesky.entry.js +1 -1
  351. package/dist/esm/eds-icon-download.entry.js +14 -0
  352. package/dist/esm/eds-icon-draft.entry.js +1 -1
  353. package/dist/esm/eds-icon-edit.entry.js +1 -1
  354. package/dist/esm/eds-icon-eu.entry.js +1 -1
  355. package/dist/esm/eds-icon-external.entry.js +1 -1
  356. package/dist/esm/eds-icon-facebook.entry.js +1 -1
  357. package/dist/esm/eds-icon-gitlab.entry.js +1 -1
  358. package/dist/esm/eds-icon-linkedin.entry.js +1 -1
  359. package/dist/esm/eds-icon-loader.entry.js +1 -1
  360. package/dist/esm/eds-icon-mastodon.entry.js +1 -1
  361. package/dist/esm/eds-icon-menu.entry.js +1 -1
  362. package/dist/esm/eds-icon-minus.entry.js +1 -1
  363. package/dist/esm/eds-icon-more.entry.js +1 -1
  364. package/dist/esm/eds-icon-paper.entry.js +1 -1
  365. package/dist/esm/eds-icon-plus.entry.js +1 -1
  366. package/dist/esm/eds-icon-portal.entry.js +1 -1
  367. package/dist/esm/eds-icon-private.entry.js +1 -1
  368. package/dist/esm/eds-icon-public.entry.js +1 -1
  369. package/dist/esm/eds-icon-search.entry.js +1 -1
  370. package/dist/esm/eds-icon-star.entry.js +1 -1
  371. package/dist/esm/eds-icon-start.entry.js +1 -1
  372. package/dist/esm/eds-icon-success.entry.js +1 -1
  373. package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
  374. package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
  375. package/dist/esm/eds-icon-tutorial.entry.js +1 -1
  376. package/dist/esm/eds-icon-twitter.entry.js +1 -1
  377. package/dist/esm/eds-icon-unknown.entry.js +1 -1
  378. package/dist/esm/eds-icon-updown.entry.js +1 -1
  379. package/dist/esm/eds-icon-user.entry.js +1 -1
  380. package/dist/esm/eds-icon-view.entry.js +1 -1
  381. package/dist/esm/eds-icon-youtube.entry.js +1 -1
  382. package/dist/esm/eds-modal.entry.js +2 -2
  383. package/dist/esm/eds-progress-bar.entry.js +1 -1
  384. package/dist/esm/eds-section-core_2.entry.js +3 -3
  385. package/dist/esm/eds-social-networks.entry.js +2 -4
  386. package/dist/esm/eds-spinner.entry.js +1 -1
  387. package/dist/esm/eds-timeline.entry.js +1 -1
  388. package/dist/esm/eds-toast-manager.entry.js +1 -1
  389. package/dist/esm/eds-trl.entry.js +1 -1
  390. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  391. package/dist/esm/index-e84b871c.js +6 -6
  392. package/dist/esm/loader.js +1 -1
  393. package/dist/esm/logo-space.entry.js +1 -1
  394. package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
  395. package/dist/esm/logo-variations-tabs.entry.js +1 -1
  396. package/dist/esm/logo-wrong-usage.entry.js +1 -1
  397. package/dist/esm/svg-repository.entry.js +2 -18
  398. package/dist/esm/token-list_3.entry.js +3 -3
  399. package/dist/esm/token-ratios.entry.js +1 -1
  400. package/dist/esm/token-spacing.entry.js +1 -1
  401. package/dist/esm/token-typography.entry.js +1 -1
  402. package/dist/hydrate/index.js +281 -189
  403. package/dist/hydrate/index.mjs +281 -189
  404. package/dist/types/components/eds-icons/eds-icon-download/eds-icon-download.d.ts +10 -0
  405. package/dist/types/components/eds-table/eds-table.d.ts +20 -4
  406. package/dist/types/components.d.ts +288 -29
  407. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +4 -2
  408. package/dist/types/shared-ui/eds-form/eds-form.d.ts +17 -0
  409. package/dist/types/shared-ui/eds-form/eds-form.stories.d.ts +19 -0
  410. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +44 -13
  411. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +11 -3
  412. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +0 -2
  413. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +1 -1
  414. package/dist/types/shared-ui/eds-steps/eds-steps.d.ts +72 -24
  415. package/dist/types/shared-ui/eds-steps/eds-steps.stories.d.ts +58 -0
  416. package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +42 -19
  417. package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +33 -0
  418. package/dist/types/shared-ui/eds-user/eds-user.d.ts +5 -0
  419. package/package.json +1 -1
  420. package/dist/cjs/eds-tooltip.cjs.entry.js +0 -38
  421. package/dist/components/p-05654483.entry.js +0 -1
  422. package/dist/components/p-09079c5c.entry.js +0 -1
  423. package/dist/components/p-10997947.entry.js +0 -1
  424. package/dist/components/p-1ab1ea29.entry.js +0 -1
  425. package/dist/components/p-1bcf743d.entry.js +0 -1
  426. package/dist/components/p-3360e1e2.entry.js +0 -1
  427. package/dist/components/p-38bc21e9.entry.js +0 -1
  428. package/dist/components/p-3b29e0fd.entry.js +0 -1
  429. package/dist/components/p-42457a0f.entry.js +0 -1
  430. package/dist/components/p-4a6a72db.entry.js +0 -1
  431. package/dist/components/p-4b33909d.entry.js +0 -1
  432. package/dist/components/p-4bf4bc93.entry.js +0 -1
  433. package/dist/components/p-547a53d6.entry.js +0 -1
  434. package/dist/components/p-560fc3a4.entry.js +0 -1
  435. package/dist/components/p-5a58f1c1.entry.js +0 -1
  436. package/dist/components/p-5b55f951.entry.js +0 -1
  437. package/dist/components/p-5ba49cf2.entry.js +0 -1
  438. package/dist/components/p-5dd85979.entry.js +0 -1
  439. package/dist/components/p-634b6ca2.entry.js +0 -1
  440. package/dist/components/p-6cd6ff0c.entry.js +0 -1
  441. package/dist/components/p-71ee4af2.entry.js +0 -1
  442. package/dist/components/p-789f54cb.entry.js +0 -1
  443. package/dist/components/p-7ca6db64.entry.js +0 -1
  444. package/dist/components/p-89048f87.entry.js +0 -1
  445. package/dist/components/p-8d363a3c.entry.js +0 -1
  446. package/dist/components/p-97323c46.entry.js +0 -1
  447. package/dist/components/p-9b90296c.entry.js +0 -1
  448. package/dist/components/p-a8ca8346.entry.js +0 -1
  449. package/dist/components/p-ab3b0a53.entry.js +0 -1
  450. package/dist/components/p-b0d38b78.entry.js +0 -1
  451. package/dist/components/p-b6ee4250.entry.js +0 -1
  452. package/dist/components/p-b9fdcb1b.entry.js +0 -1
  453. package/dist/components/p-ba9f41de.entry.js +0 -1
  454. package/dist/components/p-beacaa4f.entry.js +0 -1
  455. package/dist/components/p-bfa23535.entry.js +0 -1
  456. package/dist/components/p-c4ac0528.entry.js +0 -1
  457. package/dist/components/p-cb114bf4.entry.js +0 -1
  458. package/dist/components/p-cd05a97b.entry.js +0 -1
  459. package/dist/components/p-cd787744.entry.js +0 -1
  460. package/dist/components/p-cdc1c8e8.entry.js +0 -1
  461. package/dist/components/p-d1d1943b.entry.js +0 -1
  462. package/dist/components/p-e0ada7e0.entry.js +0 -1
  463. package/dist/components/p-ec706eed.entry.js +0 -1
  464. package/dist/components/p-f32963ff.entry.js +0 -9
  465. package/dist/components/p-f6012c17.entry.js +0 -1
  466. package/dist/components/p-fcba31fa.entry.js +0 -1
  467. package/dist/esm/eds-tooltip.entry.js +0 -34
@@ -1,93 +1,137 @@
1
1
  .steps {
2
- position: sticky;
3
- margin-left: 16px;
4
- margin-bottom: 12px;
5
- border-left: 1px solid var(--soft-color, #ddd); /* replace var() with your color if needed */
6
- padding-left: 23px;
7
- counter-reset: step;
8
- }
9
-
10
- /* Style for h3 headings inside the steps */
11
- .steps h3 {
12
- counter-increment: step;
13
- font-size: var(--f-heading-05-fontSize);
14
- font-weight: var(--f-heading-05-fontWeight);
15
- line-height: var(--f-heading-05-lineHeight);
16
- position: relative;
17
- }
18
-
19
- .steps h3::before {
20
- content: counter(step);
21
- position: absolute;
22
- left: -40px;
23
- top: 0;
24
- display: flex;
25
- align-items: center;
26
- justify-content: center;
27
- width: 32px;
28
- height: 32px;
29
- font-size: 1rem;
30
- border: 1px solid #ccc; /* adjust border style as needed */
31
- background:var(--grey-900); /* adjust background color as needed */
32
- color: #fff; /* adjust text color as needed */
33
- border-radius: 50%;
34
- }
35
-
36
- /* Style for h4 headings inside the steps */
37
- .steps h4 {
38
- counter-increment: step;
39
- font-size: var(--f-heading-06-fontSize);
40
- font-weight: var(--f-heading-06-fontWeight);
41
- line-height: var(--f-heading-06-lineHeight);
42
- position: relative;
43
- }
44
-
45
- .steps h4::before {
46
- content: counter(step);
47
- position: absolute;
48
- left: -40px;
49
- top: 0;
50
- display: flex;
51
- align-items: center;
52
- justify-content: center;
53
- width: 30px;
54
- height: 30px;
55
- font-size: 0.875rem;
56
- border: 1px solid #ccc;
57
- background: #333;
58
- color: #fff;
59
- border-radius: 50%;
60
- }
61
-
62
- /* Style for blockquotes inside the steps */
63
- .steps blockquote {
64
- margin-top: 16px;
65
- margin-bottom: 16px;
66
- font-style: italic;
67
- color: #aaa;
68
- padding-left: 6px;
69
- }
70
-
71
- .f-body-02 {
72
- font-family: var(--f-body-02-fontFamily);
73
- font-weight: var(--f-body-02-fontWeight);
74
- font-size: var(--f-body-02-fontSize);
75
- line-height: var(--f-body-02-lineHeight);
76
- letter-spacing: var(--f-body-02-letterSpacing);
77
- }
78
-
79
- .text-light {
80
- color: var(--grey-700);
81
- }
82
- .text-lighter {
83
- color: var(--grey-600);
84
- }
85
-
86
- .my-16 {
87
- margin-top: 1rem;
88
- margin-bottom: 1rem;
89
- }
90
-
91
- .mb-28 {
92
- margin-bottom: 1.75rem;
93
- }
2
+ position: sticky;
3
+ margin-left: 16px;
4
+ margin-bottom: 12px;
5
+ border-left: 1px solid var(--soft-color, #ddd);
6
+ /* replace var() with your color if needed */
7
+ padding-left: 23px;
8
+ counter-reset: step;
9
+ }
10
+
11
+ /* Style for h3 headings inside the steps */
12
+ .steps h3 {
13
+ counter-increment: step;
14
+ font-size: var(--f-heading-05-fontSize);
15
+ font-weight: var(--f-heading-05-fontWeight);
16
+ line-height: var(--f-heading-05-lineHeight);
17
+ position: relative;
18
+ }
19
+
20
+ .steps h3::before {
21
+ content: counter(step);
22
+ position: absolute;
23
+ left: -40px;
24
+ top: -2px;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ width: 32px;
29
+ height: 32px;
30
+ font-size: 1rem;
31
+ border: 1px solid #ccc;
32
+ /* adjust border style as needed */
33
+ background: var(--grey-900);
34
+ /* adjust background color as needed */
35
+ color: #fff;
36
+ /* adjust text color as needed */
37
+ border-radius: 50%;
38
+ }
39
+
40
+ /* Style for h4 headings inside the steps */
41
+ .steps h4,
42
+ .steps h5 {
43
+ counter-increment: step;
44
+ font-size: var(--f-heading-06-fontSize);
45
+ font-weight: var(--f-heading-06-fontWeight);
46
+ line-height: var(--f-heading-06-lineHeight);
47
+ position: relative;
48
+ }
49
+
50
+ .steps h4::before,
51
+ .steps h5::before {
52
+ content: counter(step);
53
+ position: absolute;
54
+ left: -40px;
55
+ top: -2px;
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: center;
59
+ width: 30px;
60
+ height: 30px;
61
+ font-size: 0.875rem;
62
+ border: 1px solid #ccc;
63
+ background: #333;
64
+ color: #fff;
65
+ border-radius: 50%;
66
+ }
67
+
68
+ /* Style for blockquotes inside the steps */
69
+ .steps blockquote {
70
+ margin-top: 16px;
71
+ margin-bottom: 16px;
72
+ font-style: italic;
73
+ color: #aaa;
74
+ padding-left: 6px;
75
+ }
76
+
77
+ .f-body-02 {
78
+ font-family: var(--f-body-02-fontFamily);
79
+ font-weight: var(--f-body-02-fontWeight);
80
+ font-size: var(--f-body-02-fontSize);
81
+ line-height: var(--f-body-02-lineHeight);
82
+ letter-spacing: var(--f-body-02-letterSpacing);
83
+ }
84
+
85
+ .text-light {
86
+ color: var(--grey-700);
87
+ }
88
+
89
+ .text-lighter {
90
+ color: var(--grey-600);
91
+ }
92
+
93
+ .my-16 {
94
+ margin-top: 1rem;
95
+ margin-bottom: 1rem;
96
+ }
97
+
98
+ .mt-16 {
99
+ margin-top: 1rem;
100
+ }
101
+
102
+ .mb-28 {
103
+ margin-bottom: 1.75rem;
104
+ }
105
+
106
+ .ml-8 {
107
+ margin-left: 0.5rem;
108
+ }
109
+
110
+ .gap-y-16 {
111
+ row-gap: 1rem;
112
+ }
113
+
114
+ .gap-x-16 {
115
+ -moz-column-gap: 1rem;
116
+ column-gap: 1rem;
117
+ }
118
+
119
+ .flex {
120
+ display: flex;
121
+ }
122
+
123
+ .grid {
124
+ display: grid;
125
+ }
126
+
127
+ .hidden {
128
+ display: none;
129
+ }
130
+
131
+ .block {
132
+ display: block;
133
+ }
134
+
135
+ .cursor-pointer {
136
+ cursor: pointer;
137
+ }
@@ -3,32 +3,49 @@ import { parseData } from "../../utils/sharedUtils";
3
3
  export class EdsSteps {
4
4
  constructor() {
5
5
  this.handleNext = () => {
6
- this.activeStep = this.activeStep + 1;
7
- if (this.activeStep < this.parsedSteps.length) {
8
- this.step.emit(this.activeStep);
6
+ const lastIndex = this.parsedSteps.length - 1;
7
+ if (this.activeStep >= lastIndex) {
8
+ this.finished.emit();
9
+ return;
10
+ }
11
+ const target = this.activeStep + 1;
12
+ this.next.emit(target);
13
+ if (this.isNextDisabledFor(this.activeStep)) {
14
+ return;
15
+ } // block advance only if current is disabled
16
+ this.activeStep = target;
17
+ this.step.emit(this.activeStep);
18
+ // 2) if using the boolean form, clear it when moving away from a step
19
+ if (!Array.isArray(this.disableNext)) {
20
+ this.disableNext = false;
9
21
  }
10
22
  };
11
23
  this.handleBack = () => {
12
24
  if (this.activeStep > 0) {
13
- this.activeStep = this.activeStep - 1;
25
+ const target = this.activeStep - 1;
26
+ this.back.emit(target);
27
+ this.activeStep = target;
14
28
  this.step.emit(this.activeStep);
29
+ // also clear boolean form on back
30
+ if (!Array.isArray(this.disableNext)) {
31
+ this.disableNext = false;
32
+ }
15
33
  }
16
34
  };
17
35
  this.steps = [];
18
36
  this.type = 'static';
37
+ this.nextLabel = 'Next';
38
+ this.backLabel = 'Back';
39
+ this.finishLabel = 'Finish';
40
+ this.disableNext = false;
41
+ this.headingLevel = 'h4';
19
42
  this.activeStep = 0;
20
43
  }
21
- /**
22
- * Lifecycle method that runs when the component has fully loaded.
23
- * It emits a custom event for each `eds-button` element contained within the breadcrumb.
24
- */
25
44
  componentDidLoad() {
26
45
  var _a;
27
46
  if (this.type === 'linear') {
28
47
  const btns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-button');
29
- btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => {
30
- this.emitContext(btn);
31
- });
48
+ btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
32
49
  }
33
50
  }
34
51
  activeStepChanged(newValue) {
@@ -36,19 +53,10 @@ export class EdsSteps {
36
53
  var _a;
37
54
  const activeStepContainer = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.step')[newValue];
38
55
  if (activeStepContainer) {
39
- const btns = activeStepContainer.querySelectorAll('eds-button');
40
- btns.forEach((btn) => {
41
- this.emitContext(btn);
42
- });
56
+ activeStepContainer.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
43
57
  }
44
58
  }, 50);
45
59
  }
46
- /**
47
- * Emits a custom event called `parentContext` for a given link element.
48
- * This event provides context information about the breadcrumb component.
49
- *
50
- * @param linkElement - The link element to which the event will be dispatched.
51
- */
52
60
  emitContext(linkElement) {
53
61
  const event = new CustomEvent('parentContext', {
54
62
  detail: {
@@ -58,26 +66,29 @@ export class EdsSteps {
58
66
  });
59
67
  linkElement.dispatchEvent(event);
60
68
  }
61
- handleStepClick(index) {
62
- this.step.emit(index);
63
- // In linear mode, update the active step on header click.
64
- if (this.type === 'linear') {
65
- this.activeStep = index;
66
- }
67
- }
68
- /**
69
- * Parse the JSON string into an array of steps.
70
- */
71
69
  get parsedSteps() {
72
70
  return parseData(this.steps);
73
71
  }
72
+ isNextDisabledFor(index) {
73
+ return Array.isArray(this.disableNext)
74
+ ? !!this.disableNext[index] // per-step
75
+ : index === this.activeStep && !!this.disableNext; // only active step
76
+ }
77
+ /** Render the semantic heading element */
78
+ renderHeading(title) {
79
+ const Tag = this.headingLevel;
80
+ return h(Tag, null, title);
81
+ }
74
82
  render() {
75
83
  const steps = this.parsedSteps;
76
84
  if (this.type === 'linear') {
77
- return (h("div", null, h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: "step mb-28", key: index }, h("h3", { onClick: () => this.handleStepClick(index) }, step.title), this.activeStep === index && (h("div", { class: "content" }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content })), h("eds-button", { label: index === steps.length - 1 ? 'Finish' : 'Continue', intent: "primary", class: "next-btn", onClick: this.handleNext }), h("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: index === 0, "extra-class": index === 0 ? 'hidden' : 'ml-8 block' })))))))));
85
+ return (h("div", { class: "steps" }, steps.map((step, index) => {
86
+ const isLast = index === steps.length - 1;
87
+ return (h("div", { class: "step mb-28", key: index }, this.renderHeading(step.title), this.activeStep === index && (h("div", { class: "content grid gap-y-16" }, h("slot", { name: `step-${index}` }, h("div", { class: isLast ? 'f-body-02 text-lighter' : 'f-body-02 text-lighter', innerHTML: step.content })), h("div", { class: "flex items-center mt-16" }, h("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), h("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: "ml-8" })), h("slot", { name: `actions-${index}` })))));
88
+ })));
78
89
  }
79
- // Static mode: show all steps with their content, no navigation buttons.
80
- return (h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: "step mb-28", key: index }, h("h3", null, step.title), h("div", { class: "content" }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content }))))))));
90
+ // Static: no navigation buttons
91
+ return (h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: "step mb-28", key: index }, this.renderHeading(step.title), h("div", { class: "content" }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content }))))))));
81
92
  }
82
93
  static get is() { return "eds-steps"; }
83
94
  static get encapsulation() { return "shadow"; }
@@ -110,8 +121,11 @@ export class EdsSteps {
110
121
  "required": false,
111
122
  "optional": false,
112
123
  "docs": {
113
- "tags": [],
114
- "text": "JSON string containing an array of step objects.\nExample:\n'[\n { \"title\": \"Get Access...\", \"content\": \"To participate...\" },\n { \"title\": \"Subscribe...\", \"content\": \"Technical Coordination...\" },\n { \"title\": \"Confirm Your Subscription\" }\n]'"
124
+ "tags": [{
125
+ "name": "default",
126
+ "text": "[]"
127
+ }],
128
+ "text": "Steps data as an **array** or **JSON string** of objects:\n`{ title: string; content?: string }`.\n\nIn static mode, all steps and their content render.\nIn linear mode, only the active step renders its content."
115
129
  },
116
130
  "attribute": "steps",
117
131
  "reflect": false,
@@ -128,12 +142,135 @@ export class EdsSteps {
128
142
  "required": false,
129
143
  "optional": false,
130
144
  "docs": {
131
- "tags": [],
132
- "text": "The type of stepper. Default is \"static\" (all steps visible, no buttons).\nIf set to \"linear\", then only one step is visible at a time with navigation."
145
+ "tags": [{
146
+ "name": "default",
147
+ "text": "\"static\""
148
+ }],
149
+ "text": "Stepper mode.\n- `static`: all steps are visible (no navigation controls)\n- `linear`: one step at a time with Back/Next/Finish controls"
133
150
  },
134
151
  "attribute": "type",
135
152
  "reflect": false,
136
153
  "defaultValue": "'static'"
154
+ },
155
+ "nextLabel": {
156
+ "type": "string",
157
+ "mutable": false,
158
+ "complexType": {
159
+ "original": "string",
160
+ "resolved": "string",
161
+ "references": {}
162
+ },
163
+ "required": false,
164
+ "optional": false,
165
+ "docs": {
166
+ "tags": [{
167
+ "name": "default",
168
+ "text": "\"Next\""
169
+ }, {
170
+ "name": "attr",
171
+ "text": "next-label"
172
+ }],
173
+ "text": "Label for the **Next** button (linear mode)."
174
+ },
175
+ "attribute": "next-label",
176
+ "reflect": false,
177
+ "defaultValue": "'Next'"
178
+ },
179
+ "backLabel": {
180
+ "type": "string",
181
+ "mutable": false,
182
+ "complexType": {
183
+ "original": "string",
184
+ "resolved": "string",
185
+ "references": {}
186
+ },
187
+ "required": false,
188
+ "optional": false,
189
+ "docs": {
190
+ "tags": [{
191
+ "name": "default",
192
+ "text": "\"Back\""
193
+ }, {
194
+ "name": "attr",
195
+ "text": "back-label"
196
+ }],
197
+ "text": "Label for the **Back** button (linear mode)."
198
+ },
199
+ "attribute": "back-label",
200
+ "reflect": false,
201
+ "defaultValue": "'Back'"
202
+ },
203
+ "finishLabel": {
204
+ "type": "string",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "string",
208
+ "resolved": "string",
209
+ "references": {}
210
+ },
211
+ "required": false,
212
+ "optional": false,
213
+ "docs": {
214
+ "tags": [{
215
+ "name": "default",
216
+ "text": "\"Finish\""
217
+ }, {
218
+ "name": "attr",
219
+ "text": "finish-label"
220
+ }],
221
+ "text": "Label for the **Finish** button on the **last step** (linear mode)."
222
+ },
223
+ "attribute": "finish-label",
224
+ "reflect": false,
225
+ "defaultValue": "'Finish'"
226
+ },
227
+ "disableNext": {
228
+ "type": "boolean",
229
+ "mutable": true,
230
+ "complexType": {
231
+ "original": "boolean | boolean[]",
232
+ "resolved": "boolean | boolean[]",
233
+ "references": {}
234
+ },
235
+ "required": false,
236
+ "optional": false,
237
+ "docs": {
238
+ "tags": [{
239
+ "name": "default",
240
+ "text": "false"
241
+ }, {
242
+ "name": "attr",
243
+ "text": "disable-next"
244
+ }],
245
+ "text": "If `true`, disables **Next/Finish** and prevents advancing.\nUseful for gating progression until validation passes."
246
+ },
247
+ "attribute": "disable-next",
248
+ "reflect": false,
249
+ "defaultValue": "false"
250
+ },
251
+ "headingLevel": {
252
+ "type": "string",
253
+ "mutable": false,
254
+ "complexType": {
255
+ "original": "'h3' | 'h4' | 'h5'",
256
+ "resolved": "\"h3\" | \"h4\" | \"h5\"",
257
+ "references": {}
258
+ },
259
+ "required": false,
260
+ "optional": false,
261
+ "docs": {
262
+ "tags": [{
263
+ "name": "default",
264
+ "text": "\"h4\""
265
+ }, {
266
+ "name": "attr",
267
+ "text": "heading-level"
268
+ }],
269
+ "text": "Semantic heading tag used for each step title.\nAccepted values: `\"h3\" | \"h4\" | \"h5\"`."
270
+ },
271
+ "attribute": "heading-level",
272
+ "reflect": true,
273
+ "defaultValue": "'h4'"
137
274
  }
138
275
  };
139
276
  }
@@ -150,8 +287,65 @@ export class EdsSteps {
150
287
  "cancelable": true,
151
288
  "composed": true,
152
289
  "docs": {
153
- "tags": [],
154
- "text": "Emits when a step is clicked, providing the step's index."
290
+ "tags": [{
291
+ "name": "event",
292
+ "text": "step"
293
+ }],
294
+ "text": "Fired whenever the active step changes.\nPayload: the **current step index**."
295
+ },
296
+ "complexType": {
297
+ "original": "number",
298
+ "resolved": "number",
299
+ "references": {}
300
+ }
301
+ }, {
302
+ "method": "finished",
303
+ "name": "finished",
304
+ "bubbles": true,
305
+ "cancelable": true,
306
+ "composed": true,
307
+ "docs": {
308
+ "tags": [{
309
+ "name": "event",
310
+ "text": "finished"
311
+ }],
312
+ "text": "Fired when the user clicks **Finish** on the **last** step."
313
+ },
314
+ "complexType": {
315
+ "original": "void",
316
+ "resolved": "void",
317
+ "references": {}
318
+ }
319
+ }, {
320
+ "method": "next",
321
+ "name": "next",
322
+ "bubbles": true,
323
+ "cancelable": true,
324
+ "composed": true,
325
+ "docs": {
326
+ "tags": [{
327
+ "name": "event",
328
+ "text": "next"
329
+ }],
330
+ "text": "Fired when the user clicks **Next** (before advancing),\nwith the **target** step index (current + 1)."
331
+ },
332
+ "complexType": {
333
+ "original": "number",
334
+ "resolved": "number",
335
+ "references": {}
336
+ }
337
+ }, {
338
+ "method": "back",
339
+ "name": "back",
340
+ "bubbles": true,
341
+ "cancelable": true,
342
+ "composed": true,
343
+ "docs": {
344
+ "tags": [{
345
+ "name": "event",
346
+ "text": "back"
347
+ }],
348
+ "text": "Fired when the user clicks **Back** (before going back),\nwith the **target** step index (current - 1)."
155
349
  },
156
350
  "complexType": {
157
351
  "original": "number",
@@ -14,6 +14,28 @@ export default {
14
14
  steps: {
15
15
  control: { type: 'object' },
16
16
  description: 'An array of step objects. Each object should include a "title" and an optional "content" property.'
17
+ },
18
+ headingLevel: {
19
+ name: 'heading-level',
20
+ control: { type: 'select' },
21
+ options: ['h3', 'h4', 'h5'],
22
+ description: 'Semantic heading tag to render for each step title.'
23
+ },
24
+ nextLabel: {
25
+ control: 'text',
26
+ description: 'Label for the Next button (linear mode).'
27
+ },
28
+ backLabel: {
29
+ control: 'text',
30
+ description: 'Label for the Back button (linear mode).'
31
+ },
32
+ finishLabel: {
33
+ control: 'text',
34
+ description: 'Label for the Finish button on the last step (linear mode).'
35
+ },
36
+ disableNext: {
37
+ control: 'boolean',
38
+ description: 'Disables the Next/Finish button to block progression (linear mode).'
17
39
  }
18
40
  },
19
41
  args: {
@@ -22,14 +44,56 @@ export default {
22
44
  { title: 'Introduction', content: 'Begin by familiarizing yourself with the overall process.' },
23
45
  { title: 'Process Overview', content: 'Review the detailed steps and understand the workflow.' },
24
46
  { title: 'Completion', content: 'Confirm your actions and finish the procedure.' }
25
- ]
47
+ ],
48
+ headingLevel: 'h4',
49
+ nextLabel: 'Next',
50
+ backLabel: 'Back',
51
+ finishLabel: 'Finish',
52
+ disableNext: false
26
53
  }
27
54
  };
55
+ const renderSteps = (args) => {
56
+ const disableAttr = args.disableNext ? ' disable-next' : '';
57
+ return `
58
+ <eds-steps
59
+ type="${args.type}"
60
+ steps='${JSON.stringify(args.steps)}'
61
+ heading-level="${args.headingLevel}"
62
+ next-label="${args.nextLabel}"
63
+ back-label="${args.backLabel}"
64
+ finish-label="${args.finishLabel}"${disableAttr}
65
+ ></eds-steps>
66
+ `;
67
+ };
28
68
  export const Default = {
29
- render: (args) => `
30
- <eds-steps
31
- type="${args.type}"
32
- steps='${JSON.stringify(args.steps)}'
33
- ></eds-steps>
34
- `
69
+ render: (args) => renderSteps(args)
70
+ };
71
+ export const Linear = {
72
+ args: {
73
+ type: 'linear'
74
+ },
75
+ render: (args) => renderSteps(args)
76
+ };
77
+ export const LinearBlocked = {
78
+ args: {
79
+ type: 'linear',
80
+ disableNext: true
81
+ },
82
+ render: (args) => renderSteps(args)
83
+ };
84
+ export const CustomLabels = {
85
+ args: {
86
+ type: 'linear',
87
+ nextLabel: 'Continue',
88
+ backLabel: 'Previous',
89
+ finishLabel: 'Create form'
90
+ },
91
+ render: (args) => renderSteps(args)
92
+ };
93
+ export const HeadingLevels = {
94
+ args: {
95
+ type: 'static',
96
+ headingLevel: 'h3'
97
+ },
98
+ render: (args) => renderSteps(args)
35
99
  };