@ebrains/components 2.1.0 → 2.3.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 (608) hide show
  1. package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
  2. package/dist/cjs/components-section.cjs.entry.js +4 -6
  3. package/dist/cjs/components.cjs.js +2 -2
  4. package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
  5. package/dist/cjs/docs-palettes.cjs.entry.js +2 -2
  6. package/dist/cjs/docs-tokens.cjs.entry.js +2 -2
  7. package/dist/cjs/download-9d17d025.js +20 -0
  8. package/dist/cjs/{eds-accordion_33.cjs.entry.js → eds-accordion_36.cjs.entry.js} +590 -110
  9. package/dist/cjs/eds-app-root.cjs.entry.js +2 -2
  10. package/dist/cjs/eds-card-desc_2.cjs.entry.js +3 -3
  11. package/dist/cjs/eds-card-generic.cjs.entry.js +3 -3
  12. package/dist/cjs/eds-card-project.cjs.entry.js +2 -2
  13. package/dist/cjs/eds-card-section.cjs.entry.js +2 -2
  14. package/dist/cjs/eds-card-tags.cjs.entry.js +2 -2
  15. package/dist/cjs/eds-card-tool.cjs.entry.js +2 -2
  16. package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
  17. package/dist/cjs/eds-feedback.cjs.entry.js +2 -2
  18. package/dist/cjs/eds-footer.cjs.entry.js +3 -5
  19. package/dist/cjs/eds-frame.cjs.entry.js +2 -2
  20. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +9 -4
  21. package/dist/cjs/eds-gauge.cjs.entry.js +2 -2
  22. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +2 -2
  23. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +2 -2
  24. package/dist/cjs/eds-icon-bin.cjs.entry.js +2 -2
  25. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +2 -2
  26. package/dist/cjs/eds-icon-bookmark.cjs.entry.js +2 -2
  27. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +2 -2
  28. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +2 -2
  29. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +2 -2
  30. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +2 -2
  31. package/dist/cjs/eds-icon-clone.cjs.entry.js +2 -2
  32. package/dist/cjs/eds-icon-close.cjs.entry.js +2 -2
  33. package/dist/cjs/eds-icon-copy.cjs.entry.js +2 -2
  34. package/dist/cjs/eds-icon-download.cjs.entry.js +18 -0
  35. package/dist/cjs/eds-icon-draft.cjs.entry.js +2 -2
  36. package/dist/cjs/eds-icon-edit.cjs.entry.js +2 -2
  37. package/dist/cjs/eds-icon-eu.cjs.entry.js +2 -2
  38. package/dist/cjs/eds-icon-external.cjs.entry.js +2 -2
  39. package/dist/cjs/eds-icon-facebook.cjs.entry.js +2 -2
  40. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +2 -2
  41. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +2 -2
  42. package/dist/cjs/eds-icon-loader.cjs.entry.js +2 -2
  43. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +2 -2
  44. package/dist/cjs/eds-icon-menu.cjs.entry.js +2 -2
  45. package/dist/cjs/eds-icon-minus.cjs.entry.js +2 -2
  46. package/dist/cjs/eds-icon-more.cjs.entry.js +2 -2
  47. package/dist/cjs/eds-icon-paper.cjs.entry.js +2 -2
  48. package/dist/cjs/eds-icon-plus.cjs.entry.js +2 -2
  49. package/dist/cjs/eds-icon-portal.cjs.entry.js +2 -2
  50. package/dist/cjs/eds-icon-private.cjs.entry.js +2 -2
  51. package/dist/cjs/eds-icon-public.cjs.entry.js +2 -2
  52. package/dist/cjs/eds-icon-search.cjs.entry.js +2 -2
  53. package/dist/cjs/eds-icon-star.cjs.entry.js +2 -2
  54. package/dist/cjs/eds-icon-start.cjs.entry.js +2 -2
  55. package/dist/cjs/eds-icon-success.cjs.entry.js +2 -2
  56. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +2 -2
  57. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +2 -2
  58. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +2 -2
  59. package/dist/cjs/eds-icon-twitter.cjs.entry.js +2 -2
  60. package/dist/cjs/eds-icon-unknown.cjs.entry.js +2 -2
  61. package/dist/cjs/eds-icon-updown.cjs.entry.js +2 -2
  62. package/dist/cjs/eds-icon-user.cjs.entry.js +2 -2
  63. package/dist/cjs/eds-icon-view.cjs.entry.js +2 -2
  64. package/dist/cjs/eds-icon-youtube.cjs.entry.js +2 -2
  65. package/dist/cjs/eds-modal.cjs.entry.js +4 -4
  66. package/dist/cjs/eds-pie.cjs.entry.js +1 -1
  67. package/dist/cjs/eds-progress-bar.cjs.entry.js +2 -2
  68. package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
  69. package/dist/cjs/eds-social-networks.cjs.entry.js +3 -5
  70. package/dist/cjs/eds-splash-screen.cjs.entry.js +1 -1
  71. package/dist/cjs/eds-timeline.cjs.entry.js +2 -2
  72. package/dist/cjs/eds-toast-manager.cjs.entry.js +2 -2
  73. package/dist/cjs/eds-trl.cjs.entry.js +2 -2
  74. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
  75. package/dist/cjs/{index-0249a32e.js → index-50bc1aa4.js} +8 -11
  76. package/dist/cjs/loader.cjs.js +2 -2
  77. package/dist/cjs/logo-space.cjs.entry.js +2 -2
  78. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +3 -3
  79. package/dist/cjs/logo-variations-tabs.cjs.entry.js +2 -2
  80. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  81. package/dist/cjs/svg-repository.cjs.entry.js +4 -20
  82. package/dist/cjs/token-list_3.cjs.entry.js +4 -4
  83. package/dist/cjs/token-ratios.cjs.entry.js +2 -2
  84. package/dist/cjs/token-spacing.cjs.entry.js +2 -2
  85. package/dist/cjs/token-typography.cjs.entry.js +2 -2
  86. package/dist/collection/collection-manifest.json +2 -0
  87. package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
  88. package/dist/collection/components/eds-alert/eds-alert.js +2 -2
  89. package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
  90. package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
  91. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +1 -1
  92. package/dist/collection/components/eds-button/eds-button.js +1 -1
  93. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
  94. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
  95. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
  96. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +8 -0
  97. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
  98. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
  99. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
  100. package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
  101. package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
  102. package/dist/collection/components/eds-dropdown/eds-dropdown.js +127 -11
  103. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
  104. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
  105. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
  106. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
  107. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
  108. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
  109. package/dist/collection/components/eds-icons/eds-icon-bin/eds-icon-bin.js +1 -1
  110. package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +1 -1
  111. package/dist/collection/components/eds-icons/eds-icon-clone/eds-icon-clone.js +1 -1
  112. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
  113. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
  114. package/dist/collection/components/eds-icons/eds-icon-download/eds-icon-download.js +36 -0
  115. package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
  116. package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
  117. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  118. package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
  119. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  120. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  121. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  122. package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
  123. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  124. package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
  125. package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
  126. package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
  127. package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
  128. package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
  129. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  130. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
  131. package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
  132. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  133. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
  134. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
  135. package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
  136. package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
  137. package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
  138. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
  139. package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +1 -1
  140. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
  141. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
  142. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
  143. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
  144. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
  145. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
  146. package/dist/collection/components/eds-img/eds-img.js +2 -2
  147. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
  148. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
  149. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
  150. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
  151. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
  152. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
  153. package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
  154. package/dist/collection/components/eds-link/eds-link.js +1 -1
  155. package/dist/collection/components/eds-logo/eds-logo.js +1 -1
  156. package/dist/collection/components/eds-modal/eds-modal.css +41 -22
  157. package/dist/collection/components/eds-modal/eds-modal.js +2 -2
  158. package/dist/collection/components/eds-nps/eds-nps.js +4 -4
  159. package/dist/collection/components/eds-pagination/eds-pagination.css +12 -0
  160. package/dist/collection/components/eds-pagination/eds-pagination.js +2 -2
  161. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  162. package/dist/collection/components/eds-rating/eds-rating.js +2 -2
  163. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  164. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  165. package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
  166. package/dist/collection/components/eds-switch/eds-switch.js +2 -2
  167. package/dist/collection/components/eds-table/eds-table.css +4 -0
  168. package/dist/collection/components/eds-table/eds-table.js +8 -6
  169. package/dist/collection/components/eds-tag/eds-tag.js +3 -3
  170. package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
  171. package/dist/collection/components/eds-tooltip/eds-tooltip.css +5 -0
  172. package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
  173. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  174. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  175. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  176. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  177. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  178. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  179. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  180. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  181. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  182. package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
  183. package/dist/collection/eds-docs-ui/components-section/functional/overview.js +1 -1
  184. package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
  185. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  186. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  187. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  188. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  189. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  190. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  191. package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
  192. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  193. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  194. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  195. package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
  196. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  197. package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
  198. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +1 -1
  199. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
  200. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
  201. package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -6
  202. package/dist/collection/shared-ui/eds-form/eds-form.css +72 -0
  203. package/dist/collection/shared-ui/eds-form/eds-form.js +128 -7
  204. package/dist/collection/shared-ui/eds-form/eds-form.stories.js +32 -3
  205. package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
  206. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +50 -16
  207. package/dist/collection/shared-ui/eds-global-search/eds-global-search.css +222 -0
  208. package/dist/collection/shared-ui/eds-global-search/eds-global-search.js +309 -0
  209. package/dist/collection/shared-ui/eds-global-search/eds-global-search.stories.js +277 -0
  210. package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
  211. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +20 -8
  212. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -20
  213. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -3
  214. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +6 -7
  215. package/dist/collection/shared-ui/eds-steps/eds-steps.css +138 -92
  216. package/dist/collection/shared-ui/eds-steps/eds-steps.js +265 -40
  217. package/dist/collection/shared-ui/eds-steps/eds-steps.stories.js +71 -7
  218. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +47 -34
  219. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +227 -19
  220. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +65 -4
  221. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +2 -2
  222. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  223. package/dist/collection/shared-ui/eds-user/eds-user.js +82 -1
  224. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
  225. package/dist/collection/utils/eds-form/formValidators.js +4 -3
  226. package/dist/components/components-section.js +3 -5
  227. package/dist/components/components.css +3 -3
  228. package/dist/components/components.esm.js +1 -1
  229. package/dist/components/correct-use-of-colors.js +1 -1
  230. package/dist/components/docs-palettes.js +1 -1
  231. package/dist/components/docs-tokens.js +1 -1
  232. package/dist/components/download.js +18 -0
  233. package/dist/components/eds-accordion2.js +2 -2
  234. package/dist/components/eds-alert2.js +2 -2
  235. package/dist/components/eds-app-root.js +1 -1
  236. package/dist/components/eds-avatar2.js +1 -1
  237. package/dist/components/eds-block-break2.js +1 -1
  238. package/dist/components/eds-breadcrumb.js +1 -1
  239. package/dist/components/eds-button2.js +1 -1
  240. package/dist/components/eds-card-desc2.js +1 -1
  241. package/dist/components/eds-card-generic2.js +2 -2
  242. package/dist/components/eds-card-project.js +1 -1
  243. package/dist/components/eds-card-section.js +1 -1
  244. package/dist/components/eds-card-tags.js +1 -1
  245. package/dist/components/eds-card-title2.js +1 -1
  246. package/dist/components/eds-card-tool.js +1 -1
  247. package/dist/components/eds-code-block2.js +1 -1
  248. package/dist/components/eds-cookies-preference.js +1 -1
  249. package/dist/components/eds-dropdown2.js +53 -7
  250. package/dist/components/eds-feedback.js +1 -1
  251. package/dist/components/eds-footer2.js +2 -4
  252. package/dist/components/eds-form.js +61 -11
  253. package/dist/components/eds-frame.js +1 -1
  254. package/dist/components/eds-fullscreen-menu.js +8 -3
  255. package/dist/components/eds-gauge.js +1 -1
  256. package/dist/components/eds-global-search.d.ts +11 -0
  257. package/dist/components/eds-global-search.js +262 -0
  258. package/dist/components/eds-header.js +1 -1
  259. package/dist/components/eds-icon-arrow-diagonal.js +1 -1
  260. package/dist/components/eds-icon-arrow-right.js +1 -1
  261. package/dist/components/eds-icon-bin.js +1 -1
  262. package/dist/components/eds-icon-bluesky.js +1 -1
  263. package/dist/components/eds-icon-bookmark.js +1 -1
  264. package/dist/components/eds-icon-chevron-down.js +1 -1
  265. package/dist/components/eds-icon-chevron-left.js +1 -1
  266. package/dist/components/eds-icon-chevron-right.js +1 -1
  267. package/dist/components/eds-icon-chevron-up.js +1 -1
  268. package/dist/components/eds-icon-clone.js +1 -1
  269. package/dist/components/eds-icon-close.js +1 -1
  270. package/dist/components/eds-icon-copy.js +1 -1
  271. package/dist/components/eds-icon-download.d.ts +11 -0
  272. package/dist/components/eds-icon-download.js +33 -0
  273. package/dist/components/eds-icon-draft.js +1 -1
  274. package/dist/components/eds-icon-edit.js +1 -1
  275. package/dist/components/eds-icon-eu.js +1 -1
  276. package/dist/components/eds-icon-external.js +1 -1
  277. package/dist/components/eds-icon-facebook.js +1 -1
  278. package/dist/components/eds-icon-gitlab.js +1 -1
  279. package/dist/components/eds-icon-linkedin.js +1 -1
  280. package/dist/components/eds-icon-loader.js +1 -1
  281. package/dist/components/eds-icon-mastodon.js +1 -1
  282. package/dist/components/eds-icon-menu.js +1 -1
  283. package/dist/components/eds-icon-minus.js +1 -1
  284. package/dist/components/eds-icon-more.js +1 -1
  285. package/dist/components/eds-icon-paper.js +1 -1
  286. package/dist/components/eds-icon-plus.js +1 -1
  287. package/dist/components/eds-icon-portal.js +1 -1
  288. package/dist/components/eds-icon-private.js +1 -1
  289. package/dist/components/eds-icon-public.js +1 -1
  290. package/dist/components/eds-icon-search.js +1 -1
  291. package/dist/components/eds-icon-star.js +1 -1
  292. package/dist/components/eds-icon-start.js +1 -1
  293. package/dist/components/eds-icon-success.js +1 -1
  294. package/dist/components/eds-icon-thumbs-down.js +1 -1
  295. package/dist/components/eds-icon-thumbs-up.js +1 -1
  296. package/dist/components/eds-icon-tutorial.js +1 -1
  297. package/dist/components/eds-icon-twitter.js +1 -1
  298. package/dist/components/eds-icon-unknown.js +1 -1
  299. package/dist/components/eds-icon-updown.js +1 -1
  300. package/dist/components/eds-icon-user.js +1 -1
  301. package/dist/components/eds-icon-view.js +1 -1
  302. package/dist/components/eds-icon-youtube.js +1 -1
  303. package/dist/components/eds-img2.js +2 -2
  304. package/dist/components/eds-input-field2.js +2 -2
  305. package/dist/components/eds-input-footer2.js +1 -1
  306. package/dist/components/eds-input-label2.js +1 -1
  307. package/dist/components/eds-input-range2.js +1 -1
  308. package/dist/components/eds-input-search2.js +1 -1
  309. package/dist/components/eds-input-select2.js +2 -2
  310. package/dist/components/eds-input2.js +2 -2
  311. package/dist/components/eds-link2.js +1 -1
  312. package/dist/components/eds-logo2.js +1 -1
  313. package/dist/components/eds-modal.js +3 -3
  314. package/dist/components/eds-nps2.js +4 -4
  315. package/dist/components/eds-pagination2.js +3 -3
  316. package/dist/components/eds-progress-bar2.js +1 -1
  317. package/dist/components/eds-rating2.js +2 -2
  318. package/dist/components/eds-section-core2.js +1 -1
  319. package/dist/components/eds-section-heading2.js +2 -2
  320. package/dist/components/eds-social-networks2.js +2 -4
  321. package/dist/components/eds-spinner2.js +1 -1
  322. package/dist/components/eds-steps-v2.js +67 -13
  323. package/dist/components/eds-steps2.js +85 -35
  324. package/dist/components/eds-switch.js +2 -2
  325. package/dist/components/eds-table2.js +36 -28
  326. package/dist/components/eds-tabs.js +2 -2
  327. package/dist/components/eds-tag2.js +1 -1
  328. package/dist/components/eds-timeline.js +1 -1
  329. package/dist/components/eds-toast-manager.js +1 -1
  330. package/dist/components/eds-tooltip.js +1 -50
  331. package/dist/components/eds-tooltip2.js +52 -0
  332. package/dist/components/eds-trl.js +33 -27
  333. package/dist/components/eds-user.js +20 -2
  334. package/dist/components/incorrect-use-of-colors.js +1 -1
  335. package/dist/components/logo-space.js +31 -25
  336. package/dist/components/logo-variations-horizontal2.js +1 -1
  337. package/dist/components/logo-variations-tabs.js +1 -1
  338. package/dist/components/logo-variations-vertical2.js +1 -1
  339. package/dist/components/logo-wrong-usage.js +1 -1
  340. package/dist/components/p-03714413.entry.js +1 -0
  341. package/dist/components/{p-67ec46b4.entry.js → p-06428b6c.entry.js} +1 -1
  342. package/dist/components/{p-7a3f2576.entry.js → p-067a184b.entry.js} +1 -1
  343. package/dist/components/p-097665cb.entry.js +1 -0
  344. package/dist/components/p-09f1b358.entry.js +1 -0
  345. package/dist/components/p-0da7d1c9.js +1 -0
  346. package/dist/components/p-1297d926.entry.js +1 -0
  347. package/dist/components/p-1928711b.entry.js +1 -0
  348. package/dist/components/{p-2ef4dd11.entry.js → p-1fad228f.entry.js} +1 -1
  349. package/dist/components/p-204f97de.entry.js +1 -0
  350. package/dist/components/p-20e385b8.entry.js +1 -0
  351. package/dist/components/{p-8627afc0.entry.js → p-219842c0.entry.js} +1 -1
  352. package/dist/components/p-21b5ca1f.entry.js +1 -0
  353. package/dist/components/{p-efbc374c.js → p-271c61ff.js} +1 -1
  354. package/dist/components/p-290b3d61.entry.js +1 -0
  355. package/dist/components/p-2db9f80a.entry.js +1 -0
  356. package/dist/components/p-354857a8.entry.js +1 -0
  357. package/dist/components/p-37a3d3ba.entry.js +1 -0
  358. package/dist/components/p-3a295312.entry.js +1 -0
  359. package/dist/components/p-3ff1f198.entry.js +1 -0
  360. package/dist/components/p-404b4dec.entry.js +1 -0
  361. package/dist/components/p-422c08a9.entry.js +1 -0
  362. package/dist/components/p-44cc0966.entry.js +1 -0
  363. package/dist/components/p-473aeaa0.entry.js +1 -0
  364. package/dist/components/p-4b2d40d4.entry.js +1 -0
  365. package/dist/components/{p-d1927da7.entry.js → p-4beb1e06.entry.js} +1 -1
  366. package/dist/components/p-4faa0047.entry.js +1 -0
  367. package/dist/components/p-552125e3.entry.js +1 -0
  368. package/dist/components/p-5db8003b.entry.js +1 -0
  369. package/dist/components/p-5ea2afdf.entry.js +1 -0
  370. package/dist/components/p-5f2bb217.entry.js +1 -0
  371. package/dist/components/p-65d1c8e9.entry.js +1 -0
  372. package/dist/components/p-67823a16.entry.js +1 -0
  373. package/dist/components/p-69db1210.entry.js +1 -0
  374. package/dist/components/p-701dc6d8.entry.js +1 -0
  375. package/dist/components/{p-e5892379.entry.js → p-71e9b1e9.entry.js} +1 -1
  376. package/dist/components/p-71f4afdf.entry.js +1 -0
  377. package/dist/components/p-73daee37.entry.js +1 -0
  378. package/dist/components/p-77143afc.entry.js +1 -0
  379. package/dist/components/p-7a137d91.entry.js +1 -0
  380. package/dist/components/p-7a34b267.entry.js +1 -0
  381. package/dist/components/{p-b31babda.entry.js → p-7ada2015.entry.js} +1 -1
  382. package/dist/components/p-81cce4f8.entry.js +1 -0
  383. package/dist/components/{p-d2e485a1.entry.js → p-83dde536.entry.js} +1 -1
  384. package/dist/components/p-84a04d37.entry.js +1 -0
  385. package/dist/components/p-8d66718e.entry.js +1 -0
  386. package/dist/components/p-9154e892.entry.js +1 -0
  387. package/dist/components/{p-5f348b0e.entry.js → p-9385c5fd.entry.js} +1 -1
  388. package/dist/components/p-98501e25.entry.js +1 -0
  389. package/dist/components/p-98d79948.entry.js +1 -0
  390. package/dist/components/p-9992fbdb.entry.js +1 -0
  391. package/dist/components/{p-b88a2267.entry.js → p-9c68934f.entry.js} +1 -1
  392. package/dist/components/{p-b9a1aba3.entry.js → p-a258d382.entry.js} +1 -1
  393. package/dist/components/p-a82fc224.entry.js +1 -0
  394. package/dist/components/p-ad0519b7.entry.js +1 -0
  395. package/dist/components/p-b15b11de.entry.js +9 -0
  396. package/dist/components/p-b56a3fc9.entry.js +1 -0
  397. package/dist/components/{p-09079c5c.entry.js → p-b9b6ac74.entry.js} +1 -1
  398. package/dist/components/p-b9bd1209.entry.js +1 -0
  399. package/dist/components/{p-9c1c5e8d.entry.js → p-bce8a58d.entry.js} +1 -1
  400. package/dist/components/{p-2e0c3fc4.entry.js → p-c12b0af1.entry.js} +1 -1
  401. package/dist/components/{p-265150a1.entry.js → p-c51b90c2.entry.js} +1 -1
  402. package/dist/components/{p-d95d7353.entry.js → p-c5d6c2a5.entry.js} +1 -1
  403. package/dist/components/p-c6f5d9df.entry.js +1 -0
  404. package/dist/components/p-c770c97b.entry.js +1 -0
  405. package/dist/components/{p-706a106c.entry.js → p-c8cba3a9.entry.js} +1 -1
  406. package/dist/components/{p-64b7a6fc.entry.js → p-ca91952b.entry.js} +1 -1
  407. package/dist/components/p-cba7d276.entry.js +1 -0
  408. package/dist/components/p-cffb13fa.entry.js +1 -0
  409. package/dist/components/p-d3cbc8f9.entry.js +1 -0
  410. package/dist/components/{p-743f9f8f.entry.js → p-d650c6c3.entry.js} +1 -1
  411. package/dist/components/p-d6a6879c.entry.js +1 -0
  412. package/dist/components/p-d9e02227.entry.js +1 -0
  413. package/dist/components/{p-79afd8aa.entry.js → p-da96c7cd.entry.js} +1 -1
  414. package/dist/components/{p-e210ddbb.entry.js → p-dd34feaa.entry.js} +1 -1
  415. package/dist/components/p-df18ffd1.entry.js +1 -0
  416. package/dist/components/p-e3b89fab.entry.js +1 -0
  417. package/dist/components/p-e696531f.entry.js +1 -0
  418. package/dist/components/{p-4c84fcf4.entry.js → p-e7b7179f.entry.js} +1 -1
  419. package/dist/components/p-e8bc4649.entry.js +1 -0
  420. package/dist/components/p-ef86f330.entry.js +1 -0
  421. package/dist/components/p-f5470900.entry.js +1 -0
  422. package/dist/components/p-ff433e09.entry.js +1 -0
  423. package/dist/components/primary.js +1 -1
  424. package/dist/components/primary2.js +1 -1
  425. package/dist/components/secondary.js +1 -1
  426. package/dist/components/secondary2.js +7 -7
  427. package/dist/components/support.js +1 -1
  428. package/dist/components/support2.js +3 -3
  429. package/dist/components/svg-repository.js +32 -42
  430. package/dist/components/token-list2.js +1 -1
  431. package/dist/components/token-radii2.js +1 -1
  432. package/dist/components/token-ratios.js +1 -1
  433. package/dist/components/token-shadows2.js +1 -1
  434. package/dist/components/token-spacing.js +1 -1
  435. package/dist/components/token-typography.js +1 -1
  436. package/dist/esm/color-primary-palette_6.entry.js +15 -15
  437. package/dist/esm/components-section.entry.js +4 -6
  438. package/dist/esm/components.js +3 -3
  439. package/dist/esm/correct-use-of-colors.entry.js +2 -2
  440. package/dist/esm/docs-palettes.entry.js +2 -2
  441. package/dist/esm/docs-tokens.entry.js +2 -2
  442. package/dist/esm/download-47746956.js +18 -0
  443. package/dist/esm/{eds-accordion_33.entry.js → eds-accordion_36.entry.js} +588 -111
  444. package/dist/esm/eds-app-root.entry.js +2 -2
  445. package/dist/esm/eds-card-desc_2.entry.js +3 -3
  446. package/dist/esm/eds-card-generic.entry.js +3 -3
  447. package/dist/esm/eds-card-project.entry.js +2 -2
  448. package/dist/esm/eds-card-section.entry.js +2 -2
  449. package/dist/esm/eds-card-tags.entry.js +2 -2
  450. package/dist/esm/eds-card-tool.entry.js +2 -2
  451. package/dist/esm/eds-cookies-preference.entry.js +2 -2
  452. package/dist/esm/eds-feedback.entry.js +2 -2
  453. package/dist/esm/eds-footer.entry.js +3 -5
  454. package/dist/esm/eds-frame.entry.js +2 -2
  455. package/dist/esm/eds-fullscreen-menu.entry.js +9 -4
  456. package/dist/esm/eds-gauge.entry.js +2 -2
  457. package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
  458. package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
  459. package/dist/esm/eds-icon-bin.entry.js +2 -2
  460. package/dist/esm/eds-icon-bluesky.entry.js +2 -2
  461. package/dist/esm/eds-icon-bookmark.entry.js +2 -2
  462. package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
  463. package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
  464. package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
  465. package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
  466. package/dist/esm/eds-icon-clone.entry.js +2 -2
  467. package/dist/esm/eds-icon-close.entry.js +2 -2
  468. package/dist/esm/eds-icon-copy.entry.js +2 -2
  469. package/dist/esm/eds-icon-download.entry.js +14 -0
  470. package/dist/esm/eds-icon-draft.entry.js +2 -2
  471. package/dist/esm/eds-icon-edit.entry.js +2 -2
  472. package/dist/esm/eds-icon-eu.entry.js +2 -2
  473. package/dist/esm/eds-icon-external.entry.js +2 -2
  474. package/dist/esm/eds-icon-facebook.entry.js +2 -2
  475. package/dist/esm/eds-icon-gitlab.entry.js +2 -2
  476. package/dist/esm/eds-icon-linkedin.entry.js +2 -2
  477. package/dist/esm/eds-icon-loader.entry.js +2 -2
  478. package/dist/esm/eds-icon-mastodon.entry.js +2 -2
  479. package/dist/esm/eds-icon-menu.entry.js +2 -2
  480. package/dist/esm/eds-icon-minus.entry.js +2 -2
  481. package/dist/esm/eds-icon-more.entry.js +2 -2
  482. package/dist/esm/eds-icon-paper.entry.js +2 -2
  483. package/dist/esm/eds-icon-plus.entry.js +2 -2
  484. package/dist/esm/eds-icon-portal.entry.js +2 -2
  485. package/dist/esm/eds-icon-private.entry.js +2 -2
  486. package/dist/esm/eds-icon-public.entry.js +2 -2
  487. package/dist/esm/eds-icon-search.entry.js +2 -2
  488. package/dist/esm/eds-icon-star.entry.js +2 -2
  489. package/dist/esm/eds-icon-start.entry.js +2 -2
  490. package/dist/esm/eds-icon-success.entry.js +2 -2
  491. package/dist/esm/eds-icon-thumbs-down.entry.js +2 -2
  492. package/dist/esm/eds-icon-thumbs-up.entry.js +2 -2
  493. package/dist/esm/eds-icon-tutorial.entry.js +2 -2
  494. package/dist/esm/eds-icon-twitter.entry.js +2 -2
  495. package/dist/esm/eds-icon-unknown.entry.js +2 -2
  496. package/dist/esm/eds-icon-updown.entry.js +2 -2
  497. package/dist/esm/eds-icon-user.entry.js +2 -2
  498. package/dist/esm/eds-icon-view.entry.js +2 -2
  499. package/dist/esm/eds-icon-youtube.entry.js +2 -2
  500. package/dist/esm/eds-modal.entry.js +4 -4
  501. package/dist/esm/eds-pie.entry.js +1 -1
  502. package/dist/esm/eds-progress-bar.entry.js +2 -2
  503. package/dist/esm/eds-section-core_2.entry.js +4 -4
  504. package/dist/esm/eds-social-networks.entry.js +3 -5
  505. package/dist/esm/eds-splash-screen.entry.js +1 -1
  506. package/dist/esm/eds-timeline.entry.js +2 -2
  507. package/dist/esm/eds-toast-manager.entry.js +2 -2
  508. package/dist/esm/eds-trl.entry.js +2 -2
  509. package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
  510. package/dist/esm/{index-e84b871c.js → index-870ab08f.js} +8 -11
  511. package/dist/esm/loader.js +3 -3
  512. package/dist/esm/logo-space.entry.js +2 -2
  513. package/dist/esm/logo-variations-horizontal_2.entry.js +3 -3
  514. package/dist/esm/logo-variations-tabs.entry.js +2 -2
  515. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  516. package/dist/esm/svg-repository.entry.js +3 -19
  517. package/dist/esm/token-list_3.entry.js +4 -4
  518. package/dist/esm/token-ratios.entry.js +2 -2
  519. package/dist/esm/token-spacing.entry.js +2 -2
  520. package/dist/esm/token-typography.entry.js +2 -2
  521. package/dist/hydrate/index.js +679 -236
  522. package/dist/hydrate/index.mjs +679 -236
  523. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +1 -0
  524. package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +27 -6
  525. package/dist/types/components/eds-icons/eds-icon-download/eds-icon-download.d.ts +10 -0
  526. package/dist/types/components/eds-table/eds-table.d.ts +20 -4
  527. package/dist/types/components/eds-tag/eds-tag.d.ts +1 -1
  528. package/dist/types/components.d.ts +455 -55
  529. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +4 -2
  530. package/dist/types/shared-ui/eds-form/eds-form.d.ts +18 -1
  531. package/dist/types/shared-ui/eds-form/eds-form.stories.d.ts +19 -0
  532. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +44 -13
  533. package/dist/types/shared-ui/eds-global-search/eds-global-search.d.ts +72 -0
  534. package/dist/types/shared-ui/eds-global-search/eds-global-search.stories.d.ts +40 -0
  535. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +11 -3
  536. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +0 -2
  537. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +1 -1
  538. package/dist/types/shared-ui/eds-steps/eds-steps.d.ts +73 -24
  539. package/dist/types/shared-ui/eds-steps/eds-steps.stories.d.ts +58 -0
  540. package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +44 -19
  541. package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +33 -0
  542. package/dist/types/shared-ui/eds-user/eds-user.d.ts +9 -0
  543. package/dist/types/types/global.d.ts +11 -0
  544. package/package.json +1 -1
  545. package/dist/cjs/eds-spinner.cjs.entry.js +0 -88
  546. package/dist/cjs/eds-tooltip.cjs.entry.js +0 -38
  547. package/dist/components/p-05654483.entry.js +0 -1
  548. package/dist/components/p-10997947.entry.js +0 -1
  549. package/dist/components/p-19e69c03.entry.js +0 -1
  550. package/dist/components/p-1ab1ea29.entry.js +0 -1
  551. package/dist/components/p-1bcf743d.entry.js +0 -1
  552. package/dist/components/p-1d18106d.entry.js +0 -1
  553. package/dist/components/p-3360e1e2.entry.js +0 -1
  554. package/dist/components/p-38bc21e9.entry.js +0 -1
  555. package/dist/components/p-3b29e0fd.entry.js +0 -1
  556. package/dist/components/p-42457a0f.entry.js +0 -1
  557. package/dist/components/p-4a6a72db.entry.js +0 -1
  558. package/dist/components/p-4b33909d.entry.js +0 -1
  559. package/dist/components/p-4bf4bc93.entry.js +0 -1
  560. package/dist/components/p-5367bb59.entry.js +0 -1
  561. package/dist/components/p-547a53d6.entry.js +0 -1
  562. package/dist/components/p-560fc3a4.entry.js +0 -1
  563. package/dist/components/p-5a58f1c1.entry.js +0 -1
  564. package/dist/components/p-5b55f951.entry.js +0 -1
  565. package/dist/components/p-5ba49cf2.entry.js +0 -1
  566. package/dist/components/p-5dd85979.entry.js +0 -1
  567. package/dist/components/p-634b6ca2.entry.js +0 -1
  568. package/dist/components/p-6614881d.entry.js +0 -1
  569. package/dist/components/p-6b988c76.entry.js +0 -1
  570. package/dist/components/p-6cd6ff0c.entry.js +0 -1
  571. package/dist/components/p-71ee4af2.entry.js +0 -1
  572. package/dist/components/p-789f54cb.entry.js +0 -1
  573. package/dist/components/p-7a5623b5.entry.js +0 -1
  574. package/dist/components/p-7ca6db64.entry.js +0 -1
  575. package/dist/components/p-7fa46b01.entry.js +0 -1
  576. package/dist/components/p-86eff0cb.entry.js +0 -1
  577. package/dist/components/p-89048f87.entry.js +0 -1
  578. package/dist/components/p-8cf98230.entry.js +0 -1
  579. package/dist/components/p-8d363a3c.entry.js +0 -1
  580. package/dist/components/p-9261d27c.entry.js +0 -1
  581. package/dist/components/p-97323c46.entry.js +0 -1
  582. package/dist/components/p-9b90296c.entry.js +0 -1
  583. package/dist/components/p-9cb14b1f.entry.js +0 -1
  584. package/dist/components/p-9f0a34b4.entry.js +0 -1
  585. package/dist/components/p-a8ca8346.entry.js +0 -1
  586. package/dist/components/p-ab3b0a53.entry.js +0 -1
  587. package/dist/components/p-b0d38b78.entry.js +0 -1
  588. package/dist/components/p-b6ee4250.entry.js +0 -1
  589. package/dist/components/p-b9fdcb1b.entry.js +0 -1
  590. package/dist/components/p-ba9f41de.entry.js +0 -1
  591. package/dist/components/p-beacaa4f.entry.js +0 -1
  592. package/dist/components/p-bfa23535.entry.js +0 -1
  593. package/dist/components/p-c4ac0528.entry.js +0 -1
  594. package/dist/components/p-cb114bf4.entry.js +0 -1
  595. package/dist/components/p-cd05a97b.entry.js +0 -1
  596. package/dist/components/p-cd787744.entry.js +0 -1
  597. package/dist/components/p-cdc1c8e8.entry.js +0 -1
  598. package/dist/components/p-d1d1943b.entry.js +0 -1
  599. package/dist/components/p-e0ada7e0.entry.js +0 -1
  600. package/dist/components/p-e8374410.entry.js +0 -1
  601. package/dist/components/p-e90da4ba.entry.js +0 -1
  602. package/dist/components/p-ec706eed.entry.js +0 -1
  603. package/dist/components/p-f32963ff.entry.js +0 -9
  604. package/dist/components/p-f40dd50d.entry.js +0 -1
  605. package/dist/components/p-f6012c17.entry.js +0 -1
  606. package/dist/components/p-fcba31fa.entry.js +0 -1
  607. package/dist/esm/eds-spinner.entry.js +0 -84
  608. package/dist/esm/eds-tooltip.entry.js +0 -34
@@ -2,15 +2,41 @@ import { h } from "@stencil/core";
2
2
  import { parseData } from "../../utils/sharedUtils";
3
3
  export class EdsStepsV2 {
4
4
  constructor() {
5
+ this.handleTitleClick = (index) => {
6
+ // If clicking the same title, keep your existing toggle behavior
7
+ if (index === this.activeStep) {
8
+ this.activeStep = this.activeStep === index ? -1 : index;
9
+ this.step.emit(this.activeStep);
10
+ return;
11
+ }
12
+ // Block *forward* jumps when progression is gated by disableNext (boolean)
13
+ const forwardBlocked = this.type === 'linear' && index > this.activeStep && this.isNextDisabledForCurrent();
14
+ if (forwardBlocked) {
15
+ return;
16
+ }
17
+ // Allow back (or forward when not gated)
18
+ this.activeStep = index;
19
+ this.step.emit(this.activeStep);
20
+ };
5
21
  this.handleNext = () => {
6
- this.activeStep = this.activeStep + 1;
7
- if (this.activeStep < this.parsedSteps.length) {
22
+ const lastIndex = this.parsedSteps.length - 1;
23
+ if (this.activeStep >= lastIndex) {
24
+ this.finished.emit();
25
+ this.activeStep = -1; // collapse last step
26
+ return;
27
+ }
28
+ const target = this.activeStep + 1;
29
+ this.next.emit(target);
30
+ if (!this.disableNext) {
31
+ this.activeStep = target;
8
32
  this.step.emit(this.activeStep);
9
33
  }
10
34
  };
11
35
  this.handleBack = () => {
12
36
  if (this.activeStep > 0) {
13
- this.activeStep = this.activeStep - 1;
37
+ const target = this.activeStep - 1;
38
+ this.back.emit(target);
39
+ this.activeStep = target;
14
40
  this.step.emit(this.activeStep);
15
41
  }
16
42
  };
@@ -20,6 +46,11 @@ export class EdsStepsV2 {
20
46
  this.imageWidth = undefined;
21
47
  this.bg = true;
22
48
  this.message = undefined;
49
+ this.nextLabel = 'Next';
50
+ this.backLabel = 'Back';
51
+ this.finishLabel = 'Finish';
52
+ this.disableNext = false;
53
+ this.headingLevel = 'h4';
23
54
  this.activeStep = 0;
24
55
  }
25
56
  componentDidLoad() {
@@ -58,24 +89,39 @@ export class EdsStepsV2 {
58
89
  'border-softer effect-focus-within relative rounded-lg border-2'
59
90
  ].join(' ');
60
91
  }
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
92
  /**
69
93
  * Parses the steps property into an array of Step objects.
70
94
  */
71
95
  get parsedSteps() {
72
96
  return parseData(this.steps);
73
97
  }
98
+ isNextDisabledForCurrent() {
99
+ return !!this.disableNext;
100
+ }
101
+ /** Render the semantic heading element */
102
+ renderHeading(title, index) {
103
+ const Tag = this.headingLevel;
104
+ if (this.type === 'linear') {
105
+ const isOpen = this.activeStep === index;
106
+ const forwardBlocked = index > this.activeStep && this.isNextDisabledForCurrent();
107
+ const onKey = (e) => {
108
+ if (forwardBlocked) {
109
+ return;
110
+ }
111
+ if (e.key === 'Enter' || e.key === ' ') {
112
+ e.preventDefault();
113
+ this.handleTitleClick(index);
114
+ }
115
+ };
116
+ return (h(Tag, { class: `eds-steps__title ${forwardBlocked ? 'is-disabled' : ''}`, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-disabled": forwardBlocked ? 'true' : 'false', "aria-expanded": isOpen, "aria-controls": `eds-step-panel-${index}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey }, title));
117
+ }
118
+ return h(Tag, { class: "eds-steps__title" }, title);
119
+ }
74
120
  render() {
75
121
  const steps = this.parsedSteps;
76
- return (h("div", { key: 'bbcec2dd9a5096eb0cecf0d413892e5708822f52', class: this.articleClasses() }, this.imageSrc ? (h("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, h("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" }))) : (this.message && (h("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, h("div", { class: "p-24" }, h("span", { class: "text-inverse f-heading-04 " }, this.message))))), h("div", { key: 'db0618aad7d5986fcb0889f1c439be73f83a00df', class: "p-8" }, this.type === 'linear' ? (h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: index === 0 ? 'step' : 'step space-y-16', 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' })))))))) : (
122
+ return (h("div", { key: 'b486aa34dfab4902cd6569cc2ce228104ca536cd', class: this.articleClasses() }, this.imageSrc ? (h("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, h("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" }))) : (this.message && (h("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, h("div", { class: "p-24" }, h("span", { class: "text-inverse f-heading-04 " }, this.message))))), h("div", { key: 'e2a928ecb67caed4885c9e364621b422249610f1', class: "pb-20 px-8" }, this.type === 'linear' ? (h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: index === 0 ? 'step' : 'step space-y-16', key: index }, this.renderHeading(step.title, index), this.activeStep === index && (h("div", { class: "content grid gap-y-16", id: `eds-step-panel-${index}` }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter' : 'f-body-02 text-lighter', innerHTML: step.content })), h("div", { class: "flex items-center" }, 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: index === steps.length - 1 ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.disableNext, size: "small", class: "ml-8" }))))))))) : (
77
123
  // Static mode: show all steps with their content.
78
- h("div", { class: "steps space-y-8" }, steps.map((step, index) => (h("div", { class: "step", key: index }, h("h3", { onClick: () => this.handleStepClick(index) }, 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 })))))))))));
124
+ h("div", { class: "steps space-y-8" }, steps.map((step, index) => (h("div", { class: "step", key: index }, this.renderHeading(step.title, index), h("div", { class: "content", id: `eds-step-panel-${index}` }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter', innerHTML: step.content })))))))))));
79
125
  }
80
126
  static get is() { return "eds-steps-v2"; }
81
127
  static get encapsulation() { return "shadow"; }
@@ -109,7 +155,7 @@ export class EdsStepsV2 {
109
155
  "optional": false,
110
156
  "docs": {
111
157
  "tags": [],
112
- "text": "JSON string or an array of step objects.\nExample:\n'[\n { \"title\": \"Step One\", \"content\": \"Details for step one\" },\n { \"title\": \"Step Two\", \"content\": \"Details for step two\" }\n]'"
158
+ "text": "JSON string or an array of step objects.\nEach object should have a `title` and optional `content` property."
113
159
  },
114
160
  "attribute": "steps",
115
161
  "reflect": false,
@@ -126,8 +172,11 @@ export class EdsStepsV2 {
126
172
  "required": false,
127
173
  "optional": false,
128
174
  "docs": {
129
- "tags": [],
130
- "text": "The type of stepper. Default is \"static\" (all steps visible, no navigation buttons).\nUse \"linear\" if only one step should be visible at a time."
175
+ "tags": [{
176
+ "name": "default",
177
+ "text": "\"static\""
178
+ }],
179
+ "text": "The type of stepper:\n- `\"static\"`: shows all steps with their content.\n- `\"linear\"`: shows only one step at a time with navigation controls."
131
180
  },
132
181
  "attribute": "type",
133
182
  "reflect": false,
@@ -162,7 +211,7 @@ export class EdsStepsV2 {
162
211
  "optional": true,
163
212
  "docs": {
164
213
  "tags": [],
165
- "text": "Optional image width for the eds-img component."
214
+ "text": "Optional image width for the `eds-img` component."
166
215
  },
167
216
  "attribute": "image-width",
168
217
  "reflect": false
@@ -179,7 +228,7 @@ export class EdsStepsV2 {
179
228
  "optional": false,
180
229
  "docs": {
181
230
  "tags": [],
182
- "text": "If true, apply a background class to the container."
231
+ "text": "If true, apply an inverse background to the container."
183
232
  },
184
233
  "attribute": "bg",
185
234
  "reflect": false,
@@ -201,6 +250,99 @@ export class EdsStepsV2 {
201
250
  },
202
251
  "attribute": "message",
203
252
  "reflect": false
253
+ },
254
+ "nextLabel": {
255
+ "type": "string",
256
+ "mutable": false,
257
+ "complexType": {
258
+ "original": "string",
259
+ "resolved": "string",
260
+ "references": {}
261
+ },
262
+ "required": false,
263
+ "optional": false,
264
+ "docs": {
265
+ "tags": [],
266
+ "text": "Label text for the \"Next\" button."
267
+ },
268
+ "attribute": "next-label",
269
+ "reflect": false,
270
+ "defaultValue": "'Next'"
271
+ },
272
+ "backLabel": {
273
+ "type": "string",
274
+ "mutable": false,
275
+ "complexType": {
276
+ "original": "string",
277
+ "resolved": "string",
278
+ "references": {}
279
+ },
280
+ "required": false,
281
+ "optional": false,
282
+ "docs": {
283
+ "tags": [],
284
+ "text": "Label text for the \"Back\" button."
285
+ },
286
+ "attribute": "back-label",
287
+ "reflect": false,
288
+ "defaultValue": "'Back'"
289
+ },
290
+ "finishLabel": {
291
+ "type": "string",
292
+ "mutable": false,
293
+ "complexType": {
294
+ "original": "string",
295
+ "resolved": "string",
296
+ "references": {}
297
+ },
298
+ "required": false,
299
+ "optional": false,
300
+ "docs": {
301
+ "tags": [],
302
+ "text": "Label text for the \"Finish\" button (last step in linear mode)."
303
+ },
304
+ "attribute": "finish-label",
305
+ "reflect": false,
306
+ "defaultValue": "'Finish'"
307
+ },
308
+ "disableNext": {
309
+ "type": "boolean",
310
+ "mutable": false,
311
+ "complexType": {
312
+ "original": "boolean",
313
+ "resolved": "boolean",
314
+ "references": {}
315
+ },
316
+ "required": false,
317
+ "optional": false,
318
+ "docs": {
319
+ "tags": [],
320
+ "text": "If true, disables the \"Next\" button to block progression."
321
+ },
322
+ "attribute": "disable-next",
323
+ "reflect": false,
324
+ "defaultValue": "false"
325
+ },
326
+ "headingLevel": {
327
+ "type": "string",
328
+ "mutable": false,
329
+ "complexType": {
330
+ "original": "'h3' | 'h4' | 'h5'",
331
+ "resolved": "\"h3\" | \"h4\" | \"h5\"",
332
+ "references": {}
333
+ },
334
+ "required": false,
335
+ "optional": false,
336
+ "docs": {
337
+ "tags": [{
338
+ "name": "default",
339
+ "text": "\"h4\""
340
+ }],
341
+ "text": "Heading level to use for each step title."
342
+ },
343
+ "attribute": "heading-level",
344
+ "reflect": true,
345
+ "defaultValue": "'h4'"
204
346
  }
205
347
  };
206
348
  }
@@ -217,8 +359,74 @@ export class EdsStepsV2 {
217
359
  "cancelable": true,
218
360
  "composed": true,
219
361
  "docs": {
220
- "tags": [],
221
- "text": "Emits when a step is clicked, providing the step's index."
362
+ "tags": [{
363
+ "name": "event",
364
+ "text": "step"
365
+ }, {
366
+ "name": "payload",
367
+ "text": "{number} The index of the new active step."
368
+ }],
369
+ "text": "Emitted when the active step changes."
370
+ },
371
+ "complexType": {
372
+ "original": "number",
373
+ "resolved": "number",
374
+ "references": {}
375
+ }
376
+ }, {
377
+ "method": "finished",
378
+ "name": "finished",
379
+ "bubbles": true,
380
+ "cancelable": true,
381
+ "composed": true,
382
+ "docs": {
383
+ "tags": [{
384
+ "name": "event",
385
+ "text": "finished"
386
+ }],
387
+ "text": "Emitted when the \"Finish\" button is clicked (last step in linear mode)."
388
+ },
389
+ "complexType": {
390
+ "original": "void",
391
+ "resolved": "void",
392
+ "references": {}
393
+ }
394
+ }, {
395
+ "method": "next",
396
+ "name": "next",
397
+ "bubbles": true,
398
+ "cancelable": true,
399
+ "composed": true,
400
+ "docs": {
401
+ "tags": [{
402
+ "name": "event",
403
+ "text": "next"
404
+ }, {
405
+ "name": "payload",
406
+ "text": "{number} The target step index."
407
+ }],
408
+ "text": "Emitted when the \"Next\" button is clicked."
409
+ },
410
+ "complexType": {
411
+ "original": "number",
412
+ "resolved": "number",
413
+ "references": {}
414
+ }
415
+ }, {
416
+ "method": "back",
417
+ "name": "back",
418
+ "bubbles": true,
419
+ "cancelable": true,
420
+ "composed": true,
421
+ "docs": {
422
+ "tags": [{
423
+ "name": "event",
424
+ "text": "back"
425
+ }, {
426
+ "name": "payload",
427
+ "text": "{number} The target step index."
428
+ }],
429
+ "text": "Emitted when the \"Back\" button is clicked."
222
430
  },
223
431
  "complexType": {
224
432
  "original": "number",
@@ -30,6 +30,29 @@ export default {
30
30
  message: {
31
31
  control: 'text',
32
32
  description: 'Message to display if no image is provided'
33
+ },
34
+ headingLevel: {
35
+ name: 'heading-level',
36
+ control: { type: 'select' },
37
+ options: ['h3', 'h4', 'h5'],
38
+ description: 'Semantic heading tag to render for each step title',
39
+ defaultValue: 'h4'
40
+ },
41
+ nextLabel: {
42
+ control: 'text',
43
+ description: 'Label for the Next button (linear)'
44
+ },
45
+ backLabel: {
46
+ control: 'text',
47
+ description: 'Label for the Back button (linear)'
48
+ },
49
+ finishLabel: {
50
+ control: 'text',
51
+ description: 'Label for the Finish button on the last step (linear)'
52
+ },
53
+ disableNext: {
54
+ control: 'boolean',
55
+ description: 'Disable Next/Finish to block progression (linear)'
33
56
  }
34
57
  },
35
58
  args: {
@@ -41,12 +64,29 @@ export default {
41
64
  type: 'static',
42
65
  imageSrc: '',
43
66
  bg: true,
44
- message: 'No image available'
67
+ message: 'No image available',
68
+ headingLevel: 'h4',
69
+ nextLabel: 'Next',
70
+ backLabel: 'Back',
71
+ finishLabel: 'Finish',
72
+ disableNext: false
45
73
  }
46
74
  };
47
- const Template = ({ steps, type, imageSrc, bg, message }) => html `
48
- <div class="max-w-sidebar">
49
- <eds-steps-v2 .steps=${steps} type="${type}" .imageSrc=${imageSrc} ?bg=${bg} message="${message}"></eds-steps-v2>
75
+ const Template = ({ steps, type, imageSrc, imageWidth, bg, message, headingLevel, nextLabel, backLabel, finishLabel, disableNext }) => html `
76
+ <div class="grid grid-layout grid-cols-2">
77
+ <eds-steps-v2
78
+ .steps=${steps}
79
+ type="${type}"
80
+ .imageSrc=${imageSrc}
81
+ .imageWidth=${imageWidth}
82
+ ?bg=${bg}
83
+ message="${message || ''}"
84
+ heading-level="${headingLevel}"
85
+ next-label="${nextLabel}"
86
+ back-label="${backLabel}"
87
+ finish-label="${finishLabel}"
88
+ ?disable-next=${disableNext}
89
+ ></eds-steps-v2>
50
90
  </div>
51
91
  `;
52
92
  export const Static = Template.bind({});
@@ -61,6 +101,7 @@ WithImage.storyName = 'With Image';
61
101
  WithImage.args = {
62
102
  type: 'static',
63
103
  imageSrc: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
104
+ imageWidth: 960,
64
105
  message: ''
65
106
  };
66
107
  export const WithMessage = Template.bind({});
@@ -77,3 +118,23 @@ Linear.args = {
77
118
  imageSrc: '',
78
119
  message: ''
79
120
  };
121
+ export const LinearBlocked = Template.bind({});
122
+ LinearBlocked.storyName = 'Linear (Next Disabled)';
123
+ LinearBlocked.args = {
124
+ type: 'linear',
125
+ disableNext: true
126
+ };
127
+ export const CustomLabels = Template.bind({});
128
+ CustomLabels.storyName = 'Linear (Custom Labels)';
129
+ CustomLabels.args = {
130
+ type: 'linear',
131
+ nextLabel: 'Continue',
132
+ backLabel: 'Previous',
133
+ finishLabel: 'Create Form'
134
+ };
135
+ export const HeadingLevels = Template.bind({});
136
+ HeadingLevels.storyName = 'Static (Heading Levels)';
137
+ HeadingLevels.args = {
138
+ type: 'static',
139
+ headingLevel: 'h3'
140
+ };
@@ -170,12 +170,12 @@ export class EdsTabs {
170
170
  }
171
171
  }
172
172
  render() {
173
- return (h("div", { key: 'e3bd802f08f460d5f3e89860669fefe2a8006e59', id: `${this.identifier}` }, h("div", { key: 'bcbd4afb8febec0520075c8e34269f184e2d9738', class: "scroller-x overflow-x-auto relative z-[1] mx-auto px-16 pt-8 lg:px-28 after:border-soft before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("nav", { key: '32e93b3ee6831918fd863fb23f1a5af1ae979201', role: "tablist", ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
173
+ return (h("div", { key: 'bab7b3d6a9e6e66ab6476827ecc06a3e3c7244be', id: `${this.identifier}` }, h("div", { key: 'e20639e1842936b6c1fe24b19ca7f94ccc09d18f', class: "scroller-x overflow-x-auto relative z-[1] mx-auto px-16 pt-8 lg:px-28 after:border-soft before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("nav", { key: 'e3f4e385e1bfb1f5abc75697697ab9a6a8124b6b', role: "tablist", ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
174
174
  const TabComponent = 'button';
175
175
  const tabProps = this.getTabOptions(tab.active, index);
176
176
  const isActive = index === this.activeIndex;
177
177
  return (h(TabComponent, Object.assign({}, tabProps, { type: "button", role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabIndex: isActive ? 0 : -1, "aria-label": tab.ariaLabel || tab.label, "aria-controls": `panel-${index}`, id: `tab-${index}`, ref: (el) => this.setTabRef(el, index), onClick: () => this.handleTabClick(index, tab.label, true), onKeyDown: (e) => this.onKeyDown(e, index) }), tab.label || tab.ariaLabel));
178
- }))), h("div", { key: 'ffe610574d342933121cbaca9bcb8fb483fde60b', class: "tab-panels" }, this.parsedTabs.map((_, index) => (h("div", { role: "tabpanel", id: `panel-${index}`, "aria-labelledby": `tab-${index}`, hidden: index !== this.activeIndex, tabIndex: index === this.activeIndex ? 0 : -1, class: "effect-focus" }, h("slot", { name: `panel-${index}` })))))));
178
+ }))), h("div", { key: 'f958fca5abaeeba0b6fcc900b91fa1309508dc57', class: "tab-panels" }, this.parsedTabs.map((_, index) => (h("div", { role: "tabpanel", id: `panel-${index}`, "aria-labelledby": `tab-${index}`, hidden: index !== this.activeIndex, tabIndex: index === this.activeIndex ? 0 : -1, class: "effect-focus" }, h("slot", { name: `panel-${index}` })))))));
179
179
  }
180
180
  static get is() { return "eds-tabs"; }
181
181
  static get encapsulation() { return "shadow"; }
@@ -31,7 +31,7 @@ export class EdsToastManager {
31
31
  this.toasts = this.toasts.filter((t) => t.id !== id);
32
32
  }
33
33
  render() {
34
- return (h("div", { key: '85027aad9484f391686c4126e984a84e8045511c', class: "toast-container" }, this.toasts.map((t) => (h("div", { key: t.id }, h("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
34
+ return (h("div", { key: '52a933209ce89505ae72ab7f300fd052d03200ed', class: "toast-container" }, this.toasts.map((t) => (h("div", { key: t.id }, h("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
35
35
  }
36
36
  static get is() { return "eds-toast-manager"; }
37
37
  static get encapsulation() { return "shadow"; }
@@ -7,7 +7,14 @@ import { h } from "@stencil/core";
7
7
  */
8
8
  export class EdsUser {
9
9
  constructor() {
10
+ this.handleDropdown = (e) => {
11
+ this.expanded = e.detail.expanded;
12
+ };
10
13
  this.user = undefined;
14
+ this.intent = 'tertiary';
15
+ this.dropdownLabel = 'Account';
16
+ this.expanded = false;
17
+ this.shortMode = false;
11
18
  }
12
19
  /**
13
20
  * Helper getter to ensure we work with a User object.
@@ -31,9 +38,15 @@ export class EdsUser {
31
38
  const initials = `${((_a = user.given_name) === null || _a === void 0 ? void 0 : _a.charAt(0)) || ''}${((_b = user.family_name) === null || _b === void 0 ? void 0 : _b.charAt(0)) || ''}`.toUpperCase();
32
39
  return initials || ((_d = (_c = user.name) === null || _c === void 0 ? void 0 : _c.charAt(0)) === null || _d === void 0 ? void 0 : _d.toUpperCase()) || '';
33
40
  }
41
+ async closeDropdown() {
42
+ var _a;
43
+ await ((_a = this.dropdownEl) === null || _a === void 0 ? void 0 : _a.close());
44
+ this.expanded = false;
45
+ }
34
46
  render() {
35
47
  const user = this.parsedUser;
36
- return (h("div", { key: '8a1f10cc85d8e2707042c85bc597b76fb2d25da4', class: "block" }, h("div", { key: 'a744de3d113920b8ff0d01ce273672b2bff57c97', class: "flex items-center" }, h("eds-dropdown", { key: 'e9230372d79936a785050ebb3e41f40e73282a57', label: `Hi, ${user.preferred_username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, h("div", { key: '7d4bd0ee0985c840a18764cac784726ff1c987fb', class: "min-w-[280px] p-8" }, h("div", { key: '603d6807988dd79cd4e7827918ff8932d8463fc3', class: "flex gap-x-16" }, h("eds-avatar", { key: '65ba89139cb6e3b6cb90c2072eb68cc7dc1da49c', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "grey" }), h("div", { key: 'df35b758918ebccbdfe6630bd356e647522404e1', class: "max-w-full" }, user.name && h("p", { key: '7174f34445bb1a0b77a3c1b893421bd104832485', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && h("p", { key: '72d853f5014c03803dce7aa0a74d96847ed8c875', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && h("p", { key: 'e406e2f3ca8504220ee9586a1d176c15c7236502', class: "f-ui-03-light text-light mt-4" }, user.email))), h("div", { key: '8fd3b42ab4eb3d1d70a0b827e3a03af8503c55d1', class: "text-default flex w-full flex-col gap-y-8" }, h("slot", { key: '6a477155c256543b7793947d52feb3f5abb0df6e' })))))));
48
+ const iconName = this.expanded ? 'chevron-down' : 'chevron-right';
49
+ return (h("div", { key: '68836f7fc63986d1ef1e5d1775258358db3418c6', class: "block" }, h("div", { key: '3b5be3d2d700ce3e1a800c33adde9b55bb07fda0', class: "flex items-center" }, h("eds-dropdown", { key: 'f3f97f19aac315031f428d190f1e143429bcd860', ref: (el) => (this.dropdownEl = el), label: this.dropdownLabel, intent: this.intent, "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: iconName, class: "text-default", onDropdown: this.handleDropdown }, h("div", { key: '6a6bccaa4e8b0e68460ac50e3edc8d9fc3612e00', class: "min-w-[280px] p-8" }, h("div", { key: '97a9b4d9c0e0873162103461a542cf401be06c2f', class: "flex gap-x-16", "data-dropdown-no-close": true }, h("eds-avatar", { key: 'f89cee9f0ad6549e60ebb3ade437d1dd0c2e6eb6', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "black" }), h("div", { key: 'b9fc649a35280ecebe57955b85844f3a78c4db04', class: "max-w-full" }, user.name && h("p", { key: 'b2914fca3ddabc4d12fa2c6cee83a98505fd110a', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && h("p", { key: '68ec348104e36b6fbf9c5fc47e254f3cfc4ca85b', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && h("p", { key: '3b7720aaa30597a49acf61b6c3ff0c1f1cc3bfd8', class: "f-ui-03-light text-light mt-4" }, user.email))), h("div", { key: '28cdba1fb361b84e9cb0a7ce904ec39cf13d022e', class: "text-default flex w-full flex-col gap-y-8" }, h("slot", { key: 'c1cddbb24c72749c4ea07e2e0311da61af6e9886' })))))));
37
50
  }
38
51
  static get is() { return "eds-user"; }
39
52
  static get encapsulation() { return "shadow"; }
@@ -70,6 +83,74 @@ export class EdsUser {
70
83
  },
71
84
  "attribute": "user",
72
85
  "reflect": false
86
+ },
87
+ "intent": {
88
+ "type": "string",
89
+ "mutable": false,
90
+ "complexType": {
91
+ "original": "Intent",
92
+ "resolved": "\"ghost\" | \"primary\" | \"secondary\" | \"tertiary\"",
93
+ "references": {
94
+ "Intent": {
95
+ "location": "global",
96
+ "id": "global::Intent"
97
+ }
98
+ }
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": "Visual intent of the trigger button"
105
+ },
106
+ "attribute": "intent",
107
+ "reflect": false,
108
+ "defaultValue": "'tertiary'"
109
+ },
110
+ "dropdownLabel": {
111
+ "type": "string",
112
+ "mutable": false,
113
+ "complexType": {
114
+ "original": "string",
115
+ "resolved": "string",
116
+ "references": {}
117
+ },
118
+ "required": false,
119
+ "optional": false,
120
+ "docs": {
121
+ "tags": [],
122
+ "text": ""
123
+ },
124
+ "attribute": "dropdown-label",
125
+ "reflect": false,
126
+ "defaultValue": "'Account'"
127
+ }
128
+ };
129
+ }
130
+ static get states() {
131
+ return {
132
+ "expanded": {},
133
+ "shortMode": {}
134
+ };
135
+ }
136
+ static get methods() {
137
+ return {
138
+ "closeDropdown": {
139
+ "complexType": {
140
+ "signature": "() => Promise<void>",
141
+ "parameters": [],
142
+ "references": {
143
+ "Promise": {
144
+ "location": "global",
145
+ "id": "global::Promise"
146
+ }
147
+ },
148
+ "return": "Promise<void>"
149
+ },
150
+ "docs": {
151
+ "text": "",
152
+ "tags": []
153
+ }
73
154
  }
74
155
  };
75
156
  }
@@ -27,7 +27,7 @@ export class EdsAppRoot {
27
27
  this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
28
28
  }
29
29
  render() {
30
- return (h("div", { key: '36bb7790b9e035749548410ba1d54092c7a40810' }, h("eds-splash-screen", { key: '7be473b1c48f0ab2549077d7619a1dbd3a1fd90c', inverse: true, initPromise: this.combinedInitPromise }), h("eds-login", { key: '824affc8c670317f2c1b8a22b9fe6223a477d364', "keycloak-url": "http://localhost:8080", "keycloak-realm": "nigeor-realm", "keycloak-client-id": "stencil-app" }), h("main", { key: 'c5f6f9dae8608a49d3c47139f33735236a65091c' }, this.isAuthenticated ? h("h1", null, "Welcome, authenticated user!") : h("h1", null, "Please log in."))));
30
+ return (h("div", { key: '814465ac49c8f5688bc8b1006723a531c925c030' }, h("eds-splash-screen", { key: '578982c4b01714129ebf0e7c415bdacea10061f8', inverse: true, initPromise: this.combinedInitPromise }), h("eds-login", { key: 'abc4ef7fed629bc2eda0e2f14f5165b83851794d', "keycloak-url": "http://localhost:8080", "keycloak-realm": "nigeor-realm", "keycloak-client-id": "stencil-app" }), h("main", { key: '1fb96900889c942ec0beb120e1ed869a9d78c6fa' }, this.isAuthenticated ? h("h1", null, "Welcome, authenticated user!") : h("h1", null, "Please log in."))));
31
31
  }
32
32
  static get is() { return "eds-app-root"; }
33
33
  static get encapsulation() { return "shadow"; }
@@ -78,9 +78,10 @@ isFieldVisible) {
78
78
  const npsEl = findNpsElement(formEl);
79
79
  if (npsEl && npsEl.shadowRoot) {
80
80
  const raw = (_a = npsEl.shadowRoot
81
- .querySelector('div[role="radio"][aria-checked="true"] eds-button')) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-label');
82
- const value = raw !== null ? parseInt(raw, 10) : null;
83
- if (value === null) {
81
+ .querySelector('eds-button[tabindex="0"]')) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-label');
82
+ const parsed = raw !== null ? parseInt(raw, 10) : NaN;
83
+ const value = Number.isInteger(parsed) && parsed >= 0 && parsed <= 10 ? parsed : NaN;
84
+ if (isNaN(value)) {
84
85
  // eslint-disable-next-line
85
86
  if (field.required) {
86
87
  errors[field.name] = ['This field is required.'];
@@ -37,7 +37,7 @@ const DocsOverview = () => (h("div", { class: "static-content container" },
37
37
  }
38
38
  ] }),
39
39
  h("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
40
- h("eds-code-block", { code: '<eds-button \n label="my bytton" \n intent="primary">\n</eds-button>', language: "html", "copy-label": "Copy Code" }),
40
+ h("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" }),
41
41
  h("h2", null, "Load the variables and styles"),
42
42
  h("p", null,
43
43
  "To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the",
@@ -55,9 +55,7 @@ const DocsOverview = () => (h("div", { class: "static-content container" },
55
55
  "Note that, loading either the variables or the predefined CSS framework above,",
56
56
  ' ',
57
57
  h("b", null, "automatically loads the fonts so you can skip loading them separately"),
58
- ". If you wish, however, to load the fonts, add the tag below to the ",
59
- h("code", null, "head")),
60
- h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" })));
58
+ ".")));
61
59
 
62
60
  const DocsInstallation = () => (h("div", null,
63
61
  h("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
@@ -143,7 +141,7 @@ const ComponentsSection$1 = /*@__PURE__*/ proxyCustomElement(class ComponentsSec
143
141
  }
144
142
  }
145
143
  render() {
146
- return h("div", { key: 'dc274e3d76a296c8a8b18abcc4fc8741a6b9eddd', class: "container" }, this.renderContent());
144
+ return h("div", { key: 'd5f1ea9d290addbfa2a4c21e815597871f6d7639', class: "container" }, this.renderContent());
147
145
  }
148
146
  }, [0, "components-section", {
149
147
  "tabIndex": [2, "tab-index"]
@@ -6227,6 +6227,9 @@ input[type="range"]::-webkit-slider-thumb {
6227
6227
  .mb-4 {
6228
6228
  margin-bottom: 0.25rem;
6229
6229
  }
6230
+ .mb-8 {
6231
+ margin-bottom: 0.5rem;
6232
+ }
6230
6233
  .ml-4 {
6231
6234
  margin-left: 0.25rem;
6232
6235
  }
@@ -6789,9 +6792,6 @@ input[type="range"]::-webkit-slider-thumb {
6789
6792
  .p-20 {
6790
6793
  padding: 1.25rem;
6791
6794
  }
6792
- .p-4 {
6793
- padding: 0.25rem;
6794
- }
6795
6795
  .p-8 {
6796
6796
  padding: 0.5rem;
6797
6797
  }