@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
@@ -72,13 +72,13 @@ const EdsNps = /*@__PURE__*/ proxyCustomElement(class EdsNps extends HTMLElement
72
72
  }
73
73
  render() {
74
74
  const count = this.max - this.min + 1;
75
- const fallback = 0;
76
- return (h("div", { key: 'd675e1e4ecc306511c0324d0b76ee66237cb6738', class: "eds-nps" }, h("eds-input-label", { key: '2eede06f6ee166c36b0cf315a35435c89c3c0ba5', id: "nps-question", name: "nps-question", label: this.question }), h("div", { key: '16105649fe6b3b229127c9a741367a6381db774f', role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: count }, (_, i) => {
75
+ //onst fallback = 0;
76
+ return (h("div", { key: '51e0d272693fd42d1f239f8498d9a5744dead8d7', class: "eds-nps" }, h("eds-input-label", { key: 'f9d3b65985e221f9608da3aba22cc1dc4dd54417', id: "nps-question", name: "nps-question", label: this.question }), h("div", { key: '00b22eff70fd1dd3d210e17aaef5df2057f99bb7', role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: count }, (_, i) => {
77
77
  const val = this.min + i;
78
78
  const isSelected = val === this.selectedValue;
79
- const tabIndex = this.selectedValue === null ? (i === fallback ? 0 : -1) : isSelected ? 0 : -1;
79
+ const tabIndex = isSelected ? 0 : -1;
80
80
  return (h("div", { class: "grid-col-span-1", key: val }, h("eds-button", { tabindex: tabIndex, label: `${val}`, "aria-label": `${val}`, intent: isSelected ? 'primary' : 'ghost', "extra-class": "!block !px-0 w-full", triggerClick: () => this.handleClick(val) })));
81
- })), h("div", { key: 'e7bd70a4f1a8083d9c3e08fdf8de55999a27d92d', class: "flex justify-between mt-8" }, h("span", { key: 'ea3fbbac20a162e7cf5f2d5e3321c8bc9297014e', class: "f-ui-04 text-light ml-4" }, this.leftLabel), h("span", { key: '3ff59cde0c532587ead8b8a1eaaff6c630e7e7ac', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
81
+ })), h("div", { key: '7289bd6476a2080be3c02011240e2493b84079e5', class: "flex justify-between mt-8" }, h("span", { key: 'ebfcebd9aa3d11cf298e44987debd8edef1f6e40', class: "f-ui-04 text-light ml-4" }, this.leftLabel), h("span", { key: '002f9878b267439af9f83f9ffd1b52eaef46b929', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
82
82
  }
83
83
  get el() { return this; }
84
84
  static get style() { return EdsNpsStyle0; }
@@ -3,7 +3,7 @@ import { d as defineCustomElement$3 } from './eds-button2.js';
3
3
  import { d as defineCustomElement$2 } from './eds-icon-wrapper2.js';
4
4
  import { d as defineCustomElement$1 } from './eds-link2.js';
5
5
 
6
- const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-light{color:var(--grey-700)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
6
+ const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-light{color:var(--grey-700)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
7
7
  const EdsPaginationStyle0 = edsPaginationCss;
8
8
 
9
9
  const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination extends HTMLElement {
@@ -236,7 +236,7 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
236
236
  if (newPage !== this.currentPage) {
237
237
  this.links = this.links.map((link) => typeof link === 'object' ? Object.assign(Object.assign({}, link), { current: parseInt(link.label) === newPage }) : link);
238
238
  const pageChangeEvent = new CustomEvent('page', {
239
- detail: newPage,
239
+ detail: { value: newPage },
240
240
  bubbles: true,
241
241
  composed: true
242
242
  });
@@ -246,7 +246,7 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
246
246
  }
247
247
  render() {
248
248
  const navigableIndex = -1; // Track index for keyboard navigation
249
- return (h("div", { key: '753a7e573a09e7fcb66eac9e11e00f690c49543d' }, this.total > 0 && this.mode === 'default' && (h("p", { key: '6286d71622614a835d471812a55d5c6bef37a13e', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, h("span", { key: 'daa7bfa31e736a40c46641fed88653d51eeabc67', class: "text-light sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === 'default' ? 'pagination-info' : undefined, onKeyDown: this.handleKeyDown }, h("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, h("li", { class: "mr-auto" }, this.useButtons ? (h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, h("eds-button", { label: this.prevLabel, disabled: this.mode === 'navigator' ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "ghost", "extra-class": "!p-8 lg:!pr-12 pagination-button", onClick: (event) => {
249
+ return (h("div", { key: 'bf34cb68555555ef984592b261929cfb5ef93048' }, this.total > 0 && this.mode === 'default' && (h("p", { key: '47b8034e6fd839151cdaff04d4df43fec520ce40', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, h("span", { key: 'd9d340393777b7b6e808fa21d38f691f1002b363', class: "text-light sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === 'default' ? 'pagination-info' : undefined, onKeyDown: this.handleKeyDown }, h("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, h("li", { class: "mr-auto" }, this.useButtons ? (h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, h("eds-button", { label: this.prevLabel, disabled: this.mode === 'navigator' ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "ghost", "extra-class": "!p-8 lg:!pr-12 pagination-button", onClick: (event) => {
250
250
  if (this.mode === 'default' && !this.isFirstPage()) {
251
251
  this.handlePageClick(event, (this.currentPage || 1) - 1);
252
252
  }
@@ -46,7 +46,7 @@ const EdsProgressBar = /*@__PURE__*/ proxyCustomElement(class EdsProgressBar ext
46
46
  ]
47
47
  .filter(Boolean)
48
48
  .join(' ');
49
- return (h("div", { key: '2a620231eaa84ba7e89e05da48175624fdc92d31', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, h("div", { key: '660e2c84ad358c0de1d9548b730308505e79bcd6', class: fillClasses, style: { width: `${progressValue}%` } }), h("div", { key: '4d0fa2a209d315b658f80906b95a0bf255c82c78', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, h("span", { key: '0d423e16659d84b2d050f7d60ced4aefeeef9022', class: "text-default f-body-02" }, progressValue, "%"))));
49
+ return (h("div", { key: '6a0e7cb42770cecd023f07cd26a3e2716a9c9905', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, h("div", { key: '854743f0fc1b916ec24c7e657349871f2175fc64', class: fillClasses, style: { width: `${progressValue}%` } }), h("div", { key: '74d46ff06e9b41d81563b49c1939a989e32877d5', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, h("span", { key: '0c5925f73934b71e96c6d006c4f7b3a21d144b74', class: "text-default f-body-02" }, progressValue, "%"))));
50
50
  }
51
51
  static get style() { return EdsProgressBarStyle0; }
52
52
  }, [1, "eds-progress-bar", {
@@ -70,12 +70,12 @@ const EdsRating = /*@__PURE__*/ proxyCustomElement(class EdsRating extends HTMLE
70
70
  this.onSelect(next);
71
71
  }
72
72
  render() {
73
- return (h("div", { key: 'bd72970d86f2dbb21d58671fc85feea3011749b3', id: "rating-buttons", role: "radiogroup", "aria-labelledby": "rating", class: "stars flex space-x-1 my-8", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: this.ratingCount }, (_, index) => {
73
+ return (h("div", { key: '764b3b37545e97f028423fd5760b882e6151f767', id: "rating-buttons", role: "group", "aria-labelledby": "rating", class: "stars flex space-x-1 my-8", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: this.ratingCount }, (_, index) => {
74
74
  const starRating = index + 1;
75
75
  const isSelected = starRating <= this.selectedRating;
76
76
  // Use the mapping text if available; otherwise, fall back to a generic label.
77
77
  const checked = this.selectedRating === starRating;
78
- return (h("eds-button", { ref: (el) => (this.buttonRefs[index] = el), icon: this.ratingType, role: "radio", "aria-checked": checked, "aria-label": `${starRating} ${this.ratingType}${starRating > 1 ? 's' : ''}`, onClick: () => this.onSelect(starRating), tabIndex: checked || (this.selectedRating === 0 && index === 0) ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "large", "extra-class": "p-2" // Optional padding or styling for the star button
78
+ return (h("eds-button", { ref: (el) => (this.buttonRefs[index] = el), icon: this.ratingType, "aria-label": `${starRating} ${this.ratingType}${starRating > 1 ? 's' : ''}`, onClick: () => this.onSelect(starRating), tabIndex: checked || (this.selectedRating === 0 && index === 0) ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "large", "extra-class": "p-2" // Optional padding or styling for the star button
79
79
  }));
80
80
  })));
81
81
  }
@@ -15,7 +15,7 @@ const EdsSectionCore = /*@__PURE__*/ proxyCustomElement(class EdsSectionCore ext
15
15
  }
16
16
  render() {
17
17
  const TagType = this.tag; // Set dynamic tag type (div or section)
18
- return (h(TagType, { key: 'b77b5af1c6f3acbc2696a9608b55199ed4110d71' }, h("eds-section-heading", { key: '464dd4c67d69d1ef3ed1d932081c3195a2b51503', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), h("slot", { key: 'b5dbd4f55aee2df3bcbc44e21a134544ffd733f7' })));
18
+ return (h(TagType, { key: '4765a07e798f1a622c25ec145c31345b27e1815d' }, h("eds-section-heading", { key: 'a320ac532863eaabbc1901ab5d9e9d0c14ae7556', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), h("slot", { key: '8de34d1949c0a7d0d83f977d18d36f435444401d' })));
19
19
  }
20
20
  static get style() { return EdsSectionCoreStyle0; }
21
21
  }, [1, "eds-section-core", {
@@ -26,12 +26,12 @@ const EdsSectionHeading = /*@__PURE__*/ proxyCustomElement(class EdsSectionHeadi
26
26
  render() {
27
27
  const TagType = this.tag; // Dynamically set tag type for the container
28
28
  const HeadingTag = this.headingLevel; // Dynamically set heading level
29
- return (h(TagType, { key: '4ae69ea354156a0e35a8884a63d7556ead8ada24', class: {
29
+ return (h(TagType, { key: '960224968ba731050d2b208a07c1faddc386746b', class: {
30
30
  'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
31
31
  container: this.withContainer,
32
32
  'pt-48': this.spacingLarge,
33
33
  'pt-28': !this.spacingLarge
34
- } }, h(HeadingTag, { key: 'a3549fb733687c3ff31f17bdc362275eb0b29e31', class: this.getHeadingClass() }, this.sectionTitle)));
34
+ } }, h(HeadingTag, { key: 'fc93452bfe1bac130654a187d7d42ee18f273147', class: this.getHeadingClass() }, this.sectionTitle)));
35
35
  }
36
36
  }, [0, "eds-section-heading", {
37
37
  "sectionTitle": [1, "section-title"],
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/clien
2
2
  import { d as defineCustomElement$2 } from './eds-icon-wrapper2.js';
3
3
  import { d as defineCustomElement$1 } from './eds-link2.js';
4
4
 
5
- const edsSocialNetworksCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
5
+ const edsSocialNetworksCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.mt-12{margin-top:0.75rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
6
6
  const EdsSocialNetworksStyle0 = edsSocialNetworksCss;
7
7
 
8
8
  const EdsSocialNetworks = /*@__PURE__*/ proxyCustomElement(class EdsSocialNetworks extends HTMLElement {
@@ -54,11 +54,9 @@ const EdsSocialNetworks = /*@__PURE__*/ proxyCustomElement(class EdsSocialNetwor
54
54
  /**
55
55
  * Renders the component's HTML structure with links to EBRAINS social profiles.
56
56
  * Each social network link uses the `eds-link` component with specific classes and styles.
57
- *
58
- * @returns {JSX.Element} The rendered JSX for the component.
59
57
  */
60
58
  render() {
61
- return (h("div", { key: '7241de6d0a20687523e17a4455dff1dfac59a191' }, h("p", { key: '8292c0dde1b3518ada53dddc2ea0134ff3035e83', class: "f-ui-02" }, this.heading), h("ul", { key: 'b30922e6d1f51a52300c889464824fafad775f74', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (h("li", { key: index }, h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
59
+ return (h("nav", { key: '907adc08d4e02f34994a057146a60b734d6ab81b', "aria-label": "Social media" }, h("p", { key: 'a3620851f2e31d662a812ac74e831f023d2646a4', class: "f-ui-02" }, this.heading), h("ul", { key: 'b8fece03b5ed995a9dba78cf0445a4eb46787bdc', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (h("li", { key: index }, h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": `EBRAINS on ${network.label}`, url: network.url, icon: network.icon, intent: "strong" })))))));
62
60
  }
63
61
  static get style() { return EdsSocialNetworksStyle0; }
64
62
  }, [1, "eds-social-networks", {
@@ -78,7 +78,7 @@ const EdsSpinner = /*@__PURE__*/ proxyCustomElement(class EdsSpinner extends HTM
78
78
  alignItems: 'center',
79
79
  justifyContent: 'center'
80
80
  };
81
- return (h(Host, { key: 'cbf9cead7c7c6bc5314c074f7249c920eb60d326' }, h("div", { key: 'd22c71a76af3f53c649e547538e0f1627cd9ecd0', class: "spinner-overlay", style: overlayStyle }, h("span", { key: '83b42f7ee9ba4d356bd82097989b8be1db8a8ef9', class: "spinner", style: spinnerStyle }), this.message && h("p", { key: '0a2c4efe46b8f86a037d29de699534441bf7585e', class: "f-body-01" }, this.message))));
81
+ return (h(Host, { key: 'dbf06a1430e3a69314ec016937a9b3ba89229353' }, h("div", { key: '12a51b0eed154fd2c6b6ae4ce586630a8f61164a', class: "spinner-overlay", style: overlayStyle }, h("span", { key: '0e63b80c45efec7b226b5f4277fe00e4f7bc4f1b', class: "spinner", style: spinnerStyle }), this.message && h("p", { key: '8625d4589ec26c9513d1dc7a53fa17b9874fcf3c', class: "f-body-01" }, this.message))));
82
82
  }
83
83
  static get style() { return EdsSpinnerStyle0; }
84
84
  }, [1, "eds-spinner", {
@@ -4,7 +4,7 @@ import { d as defineCustomElement$4 } from './eds-button2.js';
4
4
  import { d as defineCustomElement$3 } from './eds-icon-wrapper2.js';
5
5
  import { d as defineCustomElement$2 } from './eds-img2.js';
6
6
 
7
- const edsStepsV2Css = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.mt-16{margin-top:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}";
7
+ const edsStepsV2Css = ".steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.mt-16{margin-top:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}.eds-steps__title{cursor:pointer}";
8
8
  const EdsStepsV2Style0 = edsStepsV2Css;
9
9
 
10
10
  const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends HTMLElement {
@@ -13,15 +13,44 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
13
13
  this.__registerHost();
14
14
  this.__attachShadow();
15
15
  this.step = createEvent(this, "step", 7);
16
+ this.finished = createEvent(this, "finished", 7);
17
+ this.next = createEvent(this, "next", 7);
18
+ this.back = createEvent(this, "back", 7);
19
+ this.handleTitleClick = (index) => {
20
+ // If clicking the same title, keep your existing toggle behavior
21
+ if (index === this.activeStep) {
22
+ this.activeStep = this.activeStep === index ? -1 : index;
23
+ this.step.emit(this.activeStep);
24
+ return;
25
+ }
26
+ // Block *forward* jumps when progression is gated by disableNext (boolean)
27
+ const forwardBlocked = this.type === 'linear' && index > this.activeStep && this.isNextDisabledForCurrent();
28
+ if (forwardBlocked) {
29
+ return;
30
+ }
31
+ // Allow back (or forward when not gated)
32
+ this.activeStep = index;
33
+ this.step.emit(this.activeStep);
34
+ };
16
35
  this.handleNext = () => {
17
- this.activeStep = this.activeStep + 1;
18
- if (this.activeStep < this.parsedSteps.length) {
36
+ const lastIndex = this.parsedSteps.length - 1;
37
+ if (this.activeStep >= lastIndex) {
38
+ this.finished.emit();
39
+ this.activeStep = -1; // collapse last step
40
+ return;
41
+ }
42
+ const target = this.activeStep + 1;
43
+ this.next.emit(target);
44
+ if (!this.disableNext) {
45
+ this.activeStep = target;
19
46
  this.step.emit(this.activeStep);
20
47
  }
21
48
  };
22
49
  this.handleBack = () => {
23
50
  if (this.activeStep > 0) {
24
- this.activeStep = this.activeStep - 1;
51
+ const target = this.activeStep - 1;
52
+ this.back.emit(target);
53
+ this.activeStep = target;
25
54
  this.step.emit(this.activeStep);
26
55
  }
27
56
  };
@@ -31,6 +60,11 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
31
60
  this.imageWidth = undefined;
32
61
  this.bg = true;
33
62
  this.message = undefined;
63
+ this.nextLabel = 'Next';
64
+ this.backLabel = 'Back';
65
+ this.finishLabel = 'Finish';
66
+ this.disableNext = false;
67
+ this.headingLevel = 'h4';
34
68
  this.activeStep = 0;
35
69
  }
36
70
  componentDidLoad() {
@@ -69,24 +103,39 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
69
103
  'border-softer effect-focus-within relative rounded-lg border-2'
70
104
  ].join(' ');
71
105
  }
72
- handleStepClick(index) {
73
- this.step.emit(index);
74
- // In linear mode, update the active step on header click.
75
- if (this.type === 'linear') {
76
- this.activeStep = index;
77
- }
78
- }
79
106
  /**
80
107
  * Parses the steps property into an array of Step objects.
81
108
  */
82
109
  get parsedSteps() {
83
110
  return parseData(this.steps);
84
111
  }
112
+ isNextDisabledForCurrent() {
113
+ return !!this.disableNext;
114
+ }
115
+ /** Render the semantic heading element */
116
+ renderHeading(title, index) {
117
+ const Tag = this.headingLevel;
118
+ if (this.type === 'linear') {
119
+ const isOpen = this.activeStep === index;
120
+ const forwardBlocked = index > this.activeStep && this.isNextDisabledForCurrent();
121
+ const onKey = (e) => {
122
+ if (forwardBlocked) {
123
+ return;
124
+ }
125
+ if (e.key === 'Enter' || e.key === ' ') {
126
+ e.preventDefault();
127
+ this.handleTitleClick(index);
128
+ }
129
+ };
130
+ 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));
131
+ }
132
+ return h(Tag, { class: "eds-steps__title" }, title);
133
+ }
85
134
  render() {
86
135
  const steps = this.parsedSteps;
87
- 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' })))))))) : (
136
+ 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" }))))))))) : (
88
137
  // Static mode: show all steps with their content.
89
- 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 })))))))))));
138
+ 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 })))))))))));
90
139
  }
91
140
  get el() { return this; }
92
141
  static get watchers() { return {
@@ -100,6 +149,11 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
100
149
  "imageWidth": [2, "image-width"],
101
150
  "bg": [4],
102
151
  "message": [1],
152
+ "nextLabel": [1, "next-label"],
153
+ "backLabel": [1, "back-label"],
154
+ "finishLabel": [1, "finish-label"],
155
+ "disableNext": [4, "disable-next"],
156
+ "headingLevel": [513, "heading-level"],
103
157
  "activeStep": [32]
104
158
  }, undefined, {
105
159
  "activeStep": ["activeStepChanged"]
@@ -3,7 +3,7 @@ import { p as parseData } from './sharedUtils.js';
3
3
  import { d as defineCustomElement$2 } from './eds-button2.js';
4
4
  import { d as defineCustomElement$1 } from './eds-icon-wrapper2.js';
5
5
 
6
- const edsStepsCss = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-28{margin-bottom:1.75rem}";
6
+ const edsStepsCss = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.my-16{margin-top:1rem;margin-bottom:1rem}.mt-16{margin-top:1rem}.mb-28{margin-bottom:1.75rem}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.cursor-pointer{cursor:pointer}.eds-steps__title{cursor:pointer}";
7
7
  const EdsStepsStyle0 = edsStepsCss;
8
8
 
9
9
  const EdsSteps = /*@__PURE__*/ proxyCustomElement(class EdsSteps extends HTMLElement {
@@ -12,33 +12,70 @@ const EdsSteps = /*@__PURE__*/ proxyCustomElement(class EdsSteps extends HTMLEle
12
12
  this.__registerHost();
13
13
  this.__attachShadow();
14
14
  this.step = createEvent(this, "step", 7);
15
- this.handleNext = () => {
16
- this.activeStep = this.activeStep + 1;
17
- if (this.activeStep < this.parsedSteps.length) {
15
+ this.finished = createEvent(this, "finished", 7);
16
+ this.next = createEvent(this, "next", 7);
17
+ this.back = createEvent(this, "back", 7);
18
+ this.handleTitleClick = (index) => {
19
+ // 1) If clicking the current title, keep your existing toggle behavior
20
+ if (index === this.activeStep) {
21
+ this.activeStep = this.activeStep === index ? -1 : index;
18
22
  this.step.emit(this.activeStep);
23
+ return;
24
+ }
25
+ // 2) In linear mode, block jumping *forward* when current step is gated
26
+ const forwardBlocked = this.type === 'linear' && index > this.activeStep && this.isNextDisabledFor(this.activeStep);
27
+ if (forwardBlocked) {
28
+ return;
29
+ } // do nothing when Next/Finish would be disabled
30
+ // 3) Allow jumping back or forward when not gated
31
+ this.activeStep = index;
32
+ this.step.emit(this.activeStep);
33
+ };
34
+ this.handleNext = () => {
35
+ const lastIndex = this.parsedSteps.length - 1;
36
+ if (this.activeStep >= lastIndex) {
37
+ this.activeStep = -1;
38
+ this.finished.emit();
39
+ return;
40
+ }
41
+ const target = this.activeStep + 1;
42
+ this.next.emit(target);
43
+ if (this.isNextDisabledFor(this.activeStep)) {
44
+ return;
45
+ } // block advance only if current is disabled
46
+ this.activeStep = target;
47
+ this.step.emit(this.activeStep);
48
+ // 2) if using the boolean form, clear it when moving away from a step
49
+ if (!Array.isArray(this.disableNext)) {
50
+ this.disableNext = false;
19
51
  }
20
52
  };
21
53
  this.handleBack = () => {
22
54
  if (this.activeStep > 0) {
23
- this.activeStep = this.activeStep - 1;
55
+ const target = this.activeStep - 1;
56
+ this.back.emit(target);
57
+ this.activeStep = target;
24
58
  this.step.emit(this.activeStep);
59
+ // also clear boolean form on back
60
+ if (!Array.isArray(this.disableNext)) {
61
+ this.disableNext = false;
62
+ }
25
63
  }
26
64
  };
27
65
  this.steps = [];
28
66
  this.type = 'static';
67
+ this.nextLabel = 'Next';
68
+ this.backLabel = 'Back';
69
+ this.finishLabel = 'Finish';
70
+ this.disableNext = false;
71
+ this.headingLevel = 'h4';
29
72
  this.activeStep = 0;
30
73
  }
31
- /**
32
- * Lifecycle method that runs when the component has fully loaded.
33
- * It emits a custom event for each `eds-button` element contained within the breadcrumb.
34
- */
35
74
  componentDidLoad() {
36
75
  var _a;
37
76
  if (this.type === 'linear') {
38
77
  const btns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-button');
39
- btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => {
40
- this.emitContext(btn);
41
- });
78
+ btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
42
79
  }
43
80
  }
44
81
  activeStepChanged(newValue) {
@@ -46,19 +83,10 @@ const EdsSteps = /*@__PURE__*/ proxyCustomElement(class EdsSteps extends HTMLEle
46
83
  var _a;
47
84
  const activeStepContainer = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.step')[newValue];
48
85
  if (activeStepContainer) {
49
- const btns = activeStepContainer.querySelectorAll('eds-button');
50
- btns.forEach((btn) => {
51
- this.emitContext(btn);
52
- });
86
+ activeStepContainer.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
53
87
  }
54
88
  }, 50);
55
89
  }
56
- /**
57
- * Emits a custom event called `parentContext` for a given link element.
58
- * This event provides context information about the breadcrumb component.
59
- *
60
- * @param linkElement - The link element to which the event will be dispatched.
61
- */
62
90
  emitContext(linkElement) {
63
91
  const event = new CustomEvent('parentContext', {
64
92
  detail: {
@@ -68,26 +96,43 @@ const EdsSteps = /*@__PURE__*/ proxyCustomElement(class EdsSteps extends HTMLEle
68
96
  });
69
97
  linkElement.dispatchEvent(event);
70
98
  }
71
- handleStepClick(index) {
72
- this.step.emit(index);
73
- // In linear mode, update the active step on header click.
74
- if (this.type === 'linear') {
75
- this.activeStep = index;
76
- }
77
- }
78
- /**
79
- * Parse the JSON string into an array of steps.
80
- */
81
99
  get parsedSteps() {
82
100
  return parseData(this.steps);
83
101
  }
102
+ isNextDisabledFor(index) {
103
+ return Array.isArray(this.disableNext)
104
+ ? !!this.disableNext[index] // per-step
105
+ : index === this.activeStep && !!this.disableNext; // only active step
106
+ }
107
+ /** Render the semantic heading element as a clickable control only in linear mode */
108
+ renderHeading(title, index) {
109
+ const Tag = this.headingLevel;
110
+ if (this.type === 'linear') {
111
+ const forwardBlocked = index > this.activeStep && this.isNextDisabledFor(this.activeStep);
112
+ const onKey = (e) => {
113
+ if (forwardBlocked) {
114
+ return;
115
+ }
116
+ if (e.key === 'Enter' || e.key === ' ') {
117
+ e.preventDefault();
118
+ this.handleTitleClick(index);
119
+ }
120
+ };
121
+ const isOpen = this.activeStep === index;
122
+ 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));
123
+ }
124
+ return h(Tag, { class: "eds-steps__title" }, title);
125
+ }
84
126
  render() {
85
127
  const steps = this.parsedSteps;
86
128
  if (this.type === 'linear') {
87
- 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' })))))))));
129
+ return (h("div", { class: "steps" }, steps.map((step, index) => {
130
+ const isLast = index === steps.length - 1;
131
+ return (h("div", { class: "step mb-28", 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: 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}` })))));
132
+ })));
88
133
  }
89
- // Static mode: show all steps with their content, no navigation buttons.
90
- 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 }))))))));
134
+ // Static: no navigation buttons
135
+ return (h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: "step mb-28", 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 my-16', innerHTML: step.content }))))))));
91
136
  }
92
137
  get el() { return this; }
93
138
  static get watchers() { return {
@@ -97,6 +142,11 @@ const EdsSteps = /*@__PURE__*/ proxyCustomElement(class EdsSteps extends HTMLEle
97
142
  }, [1, "eds-steps", {
98
143
  "steps": [1],
99
144
  "type": [1],
145
+ "nextLabel": [1, "next-label"],
146
+ "backLabel": [1, "back-label"],
147
+ "finishLabel": [1, "finish-label"],
148
+ "disableNext": [1028, "disable-next"],
149
+ "headingLevel": [513, "heading-level"],
100
150
  "activeStep": [32]
101
151
  }, undefined, {
102
152
  "activeStep": ["activeStepChanged"]
@@ -53,11 +53,11 @@ const EdsSwitch$1 = /*@__PURE__*/ proxyCustomElement(class EdsSwitch extends HTM
53
53
  : this.labelOff
54
54
  : 'Toggle switch'
55
55
  : undefined;
56
- return (h("div", { key: 'f4c99a2ec360af6030de11698bab82833b3f415f', class: "switch-container" }, this.labelOff && (h("span", { key: '8bb8d063e744c194c0d44a0c371ae8224f9611cb', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), h("button", { key: 'ccc49c8ac6f639707c90822e24f3ae3ab8f2c26c', id: switchId, tabindex: this.disabled ? '-1' : '0', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-labelledby": labelledBy.length > 0 ? labelledBy.join(' ') : undefined, "aria-label": accessibleLabel, class: {
56
+ return (h("div", { key: 'd73bf797be76e256e065ab8b4fbe68a44802d3f1', class: "switch-container" }, this.labelOff && (h("span", { key: 'f4897e3d9948358a82bd61ea26c86e0d2eba81b5', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), h("button", { key: 'a01753fce0fedbf8a25d2cd64c662da8e69fef95', id: switchId, tabindex: this.disabled ? '-1' : '0', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-labelledby": labelledBy.length > 0 ? labelledBy.join(' ') : undefined, "aria-label": accessibleLabel, class: {
57
57
  switch: true,
58
58
  'switch--checked': this.checked,
59
59
  'switch--disabled': this.disabled
60
- }, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, h("span", { key: '2275930bc9909c0a95c6c10e28f715fe1afe9294', class: "switch-handle" })), this.labelOn && (h("span", { key: 'd789fd15943c1fadf1f87c55059261eaf5e05a8f', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
60
+ }, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, h("span", { key: 'eee315ce803b246cbe73e9d42635cbaa775febdb', class: "switch-handle" })), this.labelOn && (h("span", { key: 'f1229ffea8041dea2237a032292a4465fc76e216', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
61
61
  }
62
62
  get el() { return this; }
63
63
  static get style() { return EdsSwitchStyle0; }