@ebrains/components 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (649) hide show
  1. package/dist/cjs/clone-846acfdd.js +5 -0
  2. package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
  3. package/dist/cjs/components-section.cjs.entry.js +4 -6
  4. package/dist/cjs/components.cjs.js +2 -2
  5. package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
  6. package/dist/cjs/docs-palettes.cjs.entry.js +2 -2
  7. package/dist/cjs/docs-tokens.cjs.entry.js +2 -2
  8. package/dist/cjs/download-9d17d025.js +20 -0
  9. package/dist/cjs/edit-ff5b84d8.js +5 -0
  10. package/dist/cjs/{eds-avatar_26.cjs.entry.js → eds-accordion_34.cjs.entry.js} +3597 -203
  11. package/dist/cjs/eds-app-root.cjs.entry.js +2 -2
  12. package/dist/cjs/eds-card-desc_2.cjs.entry.js +3 -3
  13. package/dist/cjs/eds-card-generic.cjs.entry.js +1 -1
  14. package/dist/cjs/eds-card-project.cjs.entry.js +2 -2
  15. package/dist/cjs/eds-card-section.cjs.entry.js +1 -1
  16. package/dist/cjs/eds-card-tags.cjs.entry.js +2 -2
  17. package/dist/cjs/eds-card-tool.cjs.entry.js +2 -2
  18. package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
  19. package/dist/cjs/eds-feedback.cjs.entry.js +2 -2
  20. package/dist/cjs/eds-footer.cjs.entry.js +9 -5
  21. package/dist/cjs/eds-frame.cjs.entry.js +2 -2
  22. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +9 -4
  23. package/dist/cjs/eds-gauge.cjs.entry.js +2 -2
  24. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +2 -2
  25. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +2 -2
  26. package/dist/cjs/eds-icon-bin.cjs.entry.js +2 -2
  27. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +2 -2
  28. package/dist/cjs/eds-icon-bookmark.cjs.entry.js +2 -2
  29. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +2 -2
  30. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +2 -2
  31. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +2 -2
  32. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +2 -2
  33. package/dist/cjs/eds-icon-clone.cjs.entry.js +18 -0
  34. package/dist/cjs/eds-icon-close.cjs.entry.js +2 -2
  35. package/dist/cjs/eds-icon-copy.cjs.entry.js +2 -2
  36. package/dist/cjs/eds-icon-download.cjs.entry.js +18 -0
  37. package/dist/cjs/eds-icon-draft.cjs.entry.js +2 -2
  38. package/dist/cjs/eds-icon-edit.cjs.entry.js +3 -3
  39. package/dist/cjs/eds-icon-eu.cjs.entry.js +2 -2
  40. package/dist/cjs/eds-icon-external.cjs.entry.js +2 -2
  41. package/dist/cjs/eds-icon-facebook.cjs.entry.js +2 -2
  42. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +2 -2
  43. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +2 -2
  44. package/dist/cjs/eds-icon-loader.cjs.entry.js +2 -2
  45. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +2 -2
  46. package/dist/cjs/eds-icon-menu.cjs.entry.js +2 -2
  47. package/dist/cjs/eds-icon-minus.cjs.entry.js +2 -2
  48. package/dist/cjs/eds-icon-more.cjs.entry.js +2 -2
  49. package/dist/cjs/eds-icon-paper.cjs.entry.js +2 -2
  50. package/dist/cjs/eds-icon-plus.cjs.entry.js +2 -2
  51. package/dist/cjs/eds-icon-portal.cjs.entry.js +2 -2
  52. package/dist/cjs/eds-icon-private.cjs.entry.js +2 -2
  53. package/dist/cjs/eds-icon-public.cjs.entry.js +2 -2
  54. package/dist/cjs/eds-icon-search.cjs.entry.js +2 -2
  55. package/dist/cjs/eds-icon-star.cjs.entry.js +2 -2
  56. package/dist/cjs/eds-icon-start.cjs.entry.js +2 -2
  57. package/dist/cjs/eds-icon-success.cjs.entry.js +2 -2
  58. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +2 -2
  59. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +2 -2
  60. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +2 -2
  61. package/dist/cjs/eds-icon-twitter.cjs.entry.js +2 -2
  62. package/dist/cjs/eds-icon-unknown.cjs.entry.js +2 -2
  63. package/dist/cjs/eds-icon-updown.cjs.entry.js +2 -2
  64. package/dist/cjs/eds-icon-user.cjs.entry.js +2 -2
  65. package/dist/cjs/eds-icon-view.cjs.entry.js +18 -0
  66. package/dist/cjs/eds-icon-youtube.cjs.entry.js +2 -2
  67. package/dist/cjs/eds-modal.cjs.entry.js +3 -3
  68. package/dist/cjs/eds-pie.cjs.entry.js +1 -1
  69. package/dist/cjs/eds-progress-bar.cjs.entry.js +2 -2
  70. package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
  71. package/dist/cjs/eds-social-networks.cjs.entry.js +3 -5
  72. package/dist/cjs/eds-spinner.cjs.entry.js +2 -2
  73. package/dist/cjs/eds-splash-screen.cjs.entry.js +1 -1
  74. package/dist/cjs/eds-timeline.cjs.entry.js +2 -2
  75. package/dist/cjs/eds-toast-manager.cjs.entry.js +2 -2
  76. package/dist/cjs/eds-trl.cjs.entry.js +2 -2
  77. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
  78. package/dist/cjs/{index-88c8039f.js → index-0249a32e.js} +19 -32
  79. package/dist/cjs/loader.cjs.js +2 -2
  80. package/dist/cjs/logo-space.cjs.entry.js +2 -2
  81. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +3 -3
  82. package/dist/cjs/logo-variations-tabs.cjs.entry.js +2 -2
  83. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  84. package/dist/cjs/svg-repository.cjs.entry.js +10 -22
  85. package/dist/cjs/token-list_3.cjs.entry.js +4 -4
  86. package/dist/cjs/token-ratios.cjs.entry.js +2 -2
  87. package/dist/cjs/token-spacing.cjs.entry.js +2 -2
  88. package/dist/cjs/token-typography.cjs.entry.js +2 -2
  89. package/dist/cjs/view-80d5c6c8.js +5 -0
  90. package/dist/collection/collection-manifest.json +4 -0
  91. package/dist/collection/components/eds-accordion/eds-accordion.js +1 -1
  92. package/dist/collection/components/eds-alert/eds-alert.js +30 -3
  93. package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
  94. package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
  95. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +1 -1
  96. package/dist/collection/components/eds-button/eds-button.css +4 -0
  97. package/dist/collection/components/eds-button/eds-button.js +19 -8
  98. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
  99. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
  100. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
  101. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
  102. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
  103. package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
  104. package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
  105. package/dist/collection/components/eds-dropdown/eds-dropdown.js +2 -2
  106. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
  107. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
  108. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
  109. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
  110. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
  111. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
  112. package/dist/collection/components/eds-icons/eds-icon-bin/eds-icon-bin.js +1 -1
  113. package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +1 -1
  114. package/dist/collection/components/eds-icons/eds-icon-clone/eds-icon-clone.js +36 -0
  115. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
  116. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
  117. package/dist/collection/components/eds-icons/eds-icon-download/eds-icon-download.js +36 -0
  118. package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
  119. package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
  120. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  121. package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
  122. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  123. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  124. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  125. package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
  126. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  127. package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
  128. package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
  129. package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
  130. package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
  131. package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
  132. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  133. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
  134. package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
  135. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  136. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
  137. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
  138. package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
  139. package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
  140. package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
  141. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
  142. package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +36 -0
  143. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
  144. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
  145. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
  146. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
  147. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
  148. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
  149. package/dist/collection/components/eds-img/eds-img.js +2 -2
  150. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
  151. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
  152. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
  153. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
  154. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
  155. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
  156. package/dist/collection/components/eds-input-field/eds-input-field.js +3 -2
  157. package/dist/collection/components/eds-link/eds-link.js +27 -7
  158. package/dist/collection/components/eds-link/eds-link.stories.js +3 -1
  159. package/dist/collection/components/eds-logo/eds-logo.js +1 -1
  160. package/dist/collection/components/eds-modal/eds-modal.js +2 -2
  161. package/dist/collection/components/eds-nps/eds-npm.stories.js +36 -0
  162. package/dist/collection/components/eds-nps/eds-nps.css +73 -0
  163. package/dist/collection/components/eds-nps/eds-nps.js +163 -0
  164. package/dist/collection/components/eds-pagination/eds-pagination.css +16 -0
  165. package/dist/collection/components/eds-pagination/eds-pagination.js +131 -51
  166. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  167. package/dist/collection/components/eds-rating/eds-rating.js +25 -3
  168. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  169. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  170. package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
  171. package/dist/collection/components/eds-switch/eds-switch.css +15 -5
  172. package/dist/collection/components/eds-switch/eds-switch.js +26 -4
  173. package/dist/collection/components/eds-table/eds-table.css +4 -0
  174. package/dist/collection/components/eds-table/eds-table.js +42 -39
  175. package/dist/collection/components/eds-table/eds-table.stories.js +1 -1
  176. package/dist/collection/components/eds-tag/eds-tag.js +1 -1
  177. package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
  178. package/dist/collection/components/eds-tooltip/eds-tooltip.css +5 -0
  179. package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
  180. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  181. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  182. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  183. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  184. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  185. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  186. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  187. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  188. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  189. package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
  190. package/dist/collection/eds-docs-ui/components-section/functional/overview.js +1 -1
  191. package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
  192. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  193. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  194. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  195. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  196. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  197. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  198. package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
  199. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  200. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  201. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  202. package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
  203. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  204. package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
  205. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
  206. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
  207. package/dist/collection/shared-ui/eds-footer/eds-footer.js +13 -6
  208. package/dist/collection/shared-ui/eds-form/eds-form.css +72 -0
  209. package/dist/collection/shared-ui/eds-form/eds-form.js +110 -5
  210. package/dist/collection/shared-ui/eds-form/eds-form.stories.js +33 -4
  211. package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
  212. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +50 -16
  213. package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
  214. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +20 -8
  215. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -20
  216. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -3
  217. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +6 -7
  218. package/dist/collection/shared-ui/eds-steps/eds-steps.css +136 -92
  219. package/dist/collection/shared-ui/eds-steps/eds-steps.js +234 -40
  220. package/dist/collection/shared-ui/eds-steps/eds-steps.stories.js +71 -7
  221. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +44 -33
  222. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +195 -19
  223. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +65 -4
  224. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +26 -5
  225. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +89 -31
  226. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  227. package/dist/collection/shared-ui/eds-user/eds-user.js +35 -1
  228. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
  229. package/dist/collection/utils/eds-form/formValidators.js +34 -0
  230. package/dist/components/clone.js +3 -0
  231. package/dist/components/components-section.js +3 -5
  232. package/dist/components/components.css +7 -12
  233. package/dist/components/components.esm.js +1 -1
  234. package/dist/components/correct-use-of-colors.js +1 -1
  235. package/dist/components/docs-palettes.js +1 -1
  236. package/dist/components/docs-tokens.js +1 -1
  237. package/dist/components/download.js +18 -0
  238. package/dist/components/edit.js +1 -1
  239. package/dist/components/eds-accordion2.js +1 -1
  240. package/dist/components/eds-alert2.js +21 -5
  241. package/dist/components/eds-app-root.js +1 -1
  242. package/dist/components/eds-avatar2.js +1 -1
  243. package/dist/components/eds-block-break2.js +1 -1
  244. package/dist/components/eds-breadcrumb.js +1 -1
  245. package/dist/components/eds-button2.js +21 -10
  246. package/dist/components/eds-card-desc2.js +1 -1
  247. package/dist/components/eds-card-project.js +1 -1
  248. package/dist/components/eds-card-tags.js +1 -1
  249. package/dist/components/eds-card-title2.js +1 -1
  250. package/dist/components/eds-card-tool.js +1 -1
  251. package/dist/components/eds-code-block2.js +1 -1
  252. package/dist/components/eds-cookies-preference.js +1 -1
  253. package/dist/components/eds-dropdown2.js +2 -2
  254. package/dist/components/eds-feedback.js +1 -1
  255. package/dist/components/eds-footer2.js +8 -4
  256. package/dist/components/eds-form.js +100 -24
  257. package/dist/components/eds-frame.js +1 -1
  258. package/dist/components/eds-fullscreen-menu.js +8 -3
  259. package/dist/components/eds-gauge.js +1 -1
  260. package/dist/components/eds-header.js +1 -1
  261. package/dist/components/eds-icon-arrow-diagonal.js +1 -1
  262. package/dist/components/eds-icon-arrow-right.js +1 -1
  263. package/dist/components/eds-icon-bin.js +1 -1
  264. package/dist/components/eds-icon-bluesky.js +1 -1
  265. package/dist/components/eds-icon-bookmark.js +1 -1
  266. package/dist/components/eds-icon-chevron-down.js +1 -1
  267. package/dist/components/eds-icon-chevron-left.js +1 -1
  268. package/dist/components/eds-icon-chevron-right.js +1 -1
  269. package/dist/components/eds-icon-chevron-up.js +1 -1
  270. package/dist/components/eds-icon-clone.d.ts +11 -0
  271. package/dist/components/eds-icon-clone.js +33 -0
  272. package/dist/components/eds-icon-close.js +1 -1
  273. package/dist/components/eds-icon-copy.js +1 -1
  274. package/dist/components/eds-icon-download.d.ts +11 -0
  275. package/dist/components/eds-icon-download.js +33 -0
  276. package/dist/components/eds-icon-draft.js +1 -1
  277. package/dist/components/eds-icon-edit.js +1 -1
  278. package/dist/components/eds-icon-eu.js +1 -1
  279. package/dist/components/eds-icon-external.js +1 -1
  280. package/dist/components/eds-icon-facebook.js +1 -1
  281. package/dist/components/eds-icon-gitlab.js +1 -1
  282. package/dist/components/eds-icon-linkedin.js +1 -1
  283. package/dist/components/eds-icon-loader.js +1 -1
  284. package/dist/components/eds-icon-mastodon.js +1 -1
  285. package/dist/components/eds-icon-menu.js +1 -1
  286. package/dist/components/eds-icon-minus.js +1 -1
  287. package/dist/components/eds-icon-more.js +1 -1
  288. package/dist/components/eds-icon-paper.js +1 -1
  289. package/dist/components/eds-icon-plus.js +1 -1
  290. package/dist/components/eds-icon-portal.js +1 -1
  291. package/dist/components/eds-icon-private.js +1 -1
  292. package/dist/components/eds-icon-public.js +1 -1
  293. package/dist/components/eds-icon-search.js +1 -1
  294. package/dist/components/eds-icon-star.js +1 -1
  295. package/dist/components/eds-icon-start.js +1 -1
  296. package/dist/components/eds-icon-success.js +1 -1
  297. package/dist/components/eds-icon-thumbs-down.js +1 -1
  298. package/dist/components/eds-icon-thumbs-up.js +1 -1
  299. package/dist/components/eds-icon-tutorial.js +1 -1
  300. package/dist/components/eds-icon-twitter.js +1 -1
  301. package/dist/components/eds-icon-unknown.js +1 -1
  302. package/dist/components/eds-icon-updown.js +1 -1
  303. package/dist/components/eds-icon-user.js +1 -1
  304. package/dist/components/eds-icon-view.d.ts +11 -0
  305. package/dist/components/eds-icon-view.js +33 -0
  306. package/dist/components/eds-icon-youtube.js +1 -1
  307. package/dist/components/eds-img2.js +2 -2
  308. package/dist/components/eds-input-field2.js +4 -3
  309. package/dist/components/eds-input-footer2.js +1 -1
  310. package/dist/components/eds-input-label2.js +1 -1
  311. package/dist/components/eds-input-range2.js +1 -1
  312. package/dist/components/eds-input-search2.js +1 -1
  313. package/dist/components/eds-input-select2.js +2 -2
  314. package/dist/components/eds-input2.js +2 -2
  315. package/dist/components/eds-link2.js +27 -7
  316. package/dist/components/eds-logo2.js +1 -1
  317. package/dist/components/eds-modal.js +2 -2
  318. package/dist/components/eds-nps.d.ts +11 -0
  319. package/dist/components/eds-nps.js +6 -0
  320. package/dist/components/eds-nps2.js +120 -0
  321. package/dist/components/eds-pagination2.js +120 -53
  322. package/dist/components/eds-progress-bar2.js +1 -1
  323. package/dist/components/eds-rating2.js +25 -3
  324. package/dist/components/eds-section-core2.js +1 -1
  325. package/dist/components/eds-section-heading2.js +2 -2
  326. package/dist/components/eds-social-networks2.js +2 -4
  327. package/dist/components/eds-spinner2.js +1 -1
  328. package/dist/components/eds-steps-v2.js +35 -13
  329. package/dist/components/eds-steps2.js +54 -35
  330. package/dist/components/eds-switch.js +27 -5
  331. package/dist/components/eds-table2.js +74 -41
  332. package/dist/components/eds-tabs.js +90 -32
  333. package/dist/components/eds-tag2.js +1 -1
  334. package/dist/components/eds-timeline.js +1 -1
  335. package/dist/components/eds-toast-manager.js +1 -1
  336. package/dist/components/eds-tooltip.js +1 -50
  337. package/dist/components/eds-tooltip2.js +52 -0
  338. package/dist/components/eds-trl.js +37 -25
  339. package/dist/components/eds-user.js +12 -10
  340. package/dist/components/incorrect-use-of-colors.js +9 -3
  341. package/dist/components/logo-space.js +35 -23
  342. package/dist/components/logo-variations-horizontal2.js +1 -1
  343. package/dist/components/logo-variations-tabs.js +1 -1
  344. package/dist/components/logo-variations-vertical2.js +1 -1
  345. package/dist/components/logo-wrong-usage.js +1 -1
  346. package/dist/components/p-0452fe52.entry.js +1 -0
  347. package/dist/components/p-04f288b1.entry.js +1 -0
  348. package/dist/components/p-06951aa3.entry.js +1 -0
  349. package/dist/components/p-0da7d1c9.js +1 -0
  350. package/dist/components/p-101392d0.entry.js +1 -0
  351. package/dist/components/{p-ed4d9bf5.entry.js → p-171f8e6b.entry.js} +1 -1
  352. package/dist/components/p-19e69c03.entry.js +1 -0
  353. package/dist/components/{p-e2e7250a.entry.js → p-1b032aa8.entry.js} +1 -1
  354. package/dist/components/{p-adbd0d7b.entry.js → p-265150a1.entry.js} +1 -1
  355. package/dist/components/p-27c4a06e.js +1 -0
  356. package/dist/components/p-28ec52a7.entry.js +1 -0
  357. package/dist/components/p-2f712656.entry.js +1 -0
  358. package/dist/components/p-3097c321.entry.js +1 -0
  359. package/dist/components/p-36db7db0.entry.js +1 -0
  360. package/dist/components/p-38b0ea8d.entry.js +1 -0
  361. package/dist/components/p-3b551ade.entry.js +9 -0
  362. package/dist/components/p-3fa4a703.entry.js +1 -0
  363. package/dist/components/p-3fa54526.entry.js +1 -0
  364. package/dist/components/p-42680319.entry.js +1 -0
  365. package/dist/components/{p-6d3b5818.entry.js → p-4c618a35.entry.js} +1 -1
  366. package/dist/components/p-4d207d0e.entry.js +1 -0
  367. package/dist/components/p-4db384d9.entry.js +1 -0
  368. package/dist/components/p-4eb2cf7f.js +1 -0
  369. package/dist/components/{p-70e8e66f.entry.js → p-50d7eed9.entry.js} +1 -1
  370. package/dist/components/p-5367bb59.entry.js +1 -0
  371. package/dist/components/{p-356846cd.entry.js → p-5479e43b.entry.js} +1 -1
  372. package/dist/components/{p-3e183368.entry.js → p-58c8c0d7.entry.js} +1 -1
  373. package/dist/components/p-5a88cdc2.entry.js +1 -0
  374. package/dist/components/p-5b574bb2.entry.js +1 -0
  375. package/dist/components/p-5ec9fc29.entry.js +1 -0
  376. package/dist/components/p-5f350866.entry.js +1 -0
  377. package/dist/components/p-5ff10b6f.entry.js +1 -0
  378. package/dist/components/p-6420754e.entry.js +1 -0
  379. package/dist/components/{p-b073d78f.entry.js → p-64b7a6fc.entry.js} +1 -1
  380. package/dist/components/{p-02d94d2d.entry.js → p-6614881d.entry.js} +1 -1
  381. package/dist/components/p-68a2cd95.entry.js +1 -0
  382. package/dist/components/{p-f6ca2aa6.entry.js → p-6a2d1e11.entry.js} +1 -1
  383. package/dist/components/p-6b988c76.entry.js +1 -0
  384. package/dist/components/p-7032a73b.entry.js +1 -0
  385. package/dist/components/p-7272628d.entry.js +1 -0
  386. package/dist/components/p-78c348e2.entry.js +1 -0
  387. package/dist/components/{p-8c0b0121.entry.js → p-79afd8aa.entry.js} +1 -1
  388. package/dist/components/p-7a5623b5.entry.js +1 -0
  389. package/dist/components/p-7fa46b01.entry.js +1 -0
  390. package/dist/components/p-86eff0cb.entry.js +1 -0
  391. package/dist/components/p-870001ee.entry.js +1 -0
  392. package/dist/components/p-88eeaeca.entry.js +1 -0
  393. package/dist/components/p-8b7910d2.entry.js +1 -0
  394. package/dist/components/p-8cf98230.entry.js +1 -0
  395. package/dist/components/{p-e35e156d.entry.js → p-8eced026.entry.js} +1 -1
  396. package/dist/components/{p-0687532c.entry.js → p-8edd07db.entry.js} +1 -1
  397. package/dist/components/p-8ef68d8a.entry.js +1 -0
  398. package/dist/components/p-8fb1eb43.entry.js +1 -0
  399. package/dist/components/p-9261d27c.entry.js +1 -0
  400. package/dist/components/{p-9d18d7b1.entry.js → p-94a223ec.entry.js} +1 -1
  401. package/dist/components/{p-1f5c19b9.entry.js → p-9c1c5e8d.entry.js} +1 -1
  402. package/dist/components/p-9cb14b1f.entry.js +1 -0
  403. package/dist/components/{p-024789cc.entry.js → p-a5fd4fc9.entry.js} +1 -1
  404. package/dist/components/p-a6586448.entry.js +1 -0
  405. package/dist/components/p-ad7d603b.entry.js +1 -0
  406. package/dist/components/p-b24ef7f7.entry.js +1 -0
  407. package/dist/components/{p-66f4cdd9.entry.js → p-b31babda.entry.js} +1 -1
  408. package/dist/components/p-baa2df0b.entry.js +1 -0
  409. package/dist/components/p-bfe9d934.entry.js +1 -0
  410. package/dist/components/p-c1943b8f.entry.js +1 -0
  411. package/dist/components/{p-b3a40663.entry.js → p-c66f4dd8.entry.js} +1 -1
  412. package/dist/components/{p-4e473b4e.entry.js → p-d1927da7.entry.js} +1 -1
  413. package/dist/components/{p-543f2347.entry.js → p-d2e485a1.entry.js} +1 -1
  414. package/dist/components/{p-794f11e7.entry.js → p-d3391236.entry.js} +1 -1
  415. package/dist/components/p-da0e9a75.entry.js +1 -0
  416. package/dist/components/p-dbe11048.entry.js +1 -0
  417. package/dist/components/{p-773a119a.entry.js → p-dd28ab38.entry.js} +1 -1
  418. package/dist/components/p-e42ac312.entry.js +1 -0
  419. package/dist/components/p-e6c3f38c.entry.js +1 -0
  420. package/dist/components/p-e7c37e5b.entry.js +1 -0
  421. package/dist/components/p-e8374410.entry.js +1 -0
  422. package/dist/components/p-e90da4ba.entry.js +1 -0
  423. package/dist/components/p-e9cd3c4b.entry.js +1 -0
  424. package/dist/components/p-ebd59113.entry.js +1 -0
  425. package/dist/components/{p-28ae3f3a.js → p-efbc374c.js} +2 -2
  426. package/dist/components/p-f092b706.entry.js +1 -0
  427. package/dist/components/p-f29e7506.entry.js +1 -0
  428. package/dist/components/p-f2abe4d8.js +1 -0
  429. package/dist/components/p-f40dd50d.entry.js +1 -0
  430. package/dist/components/p-fc099d59.entry.js +1 -0
  431. package/dist/components/p-fda3da92.entry.js +1 -0
  432. package/dist/components/{p-2839899a.entry.js → p-ff902c98.entry.js} +1 -1
  433. package/dist/components/primary.js +1 -1
  434. package/dist/components/primary2.js +1 -1
  435. package/dist/components/secondary.js +1 -1
  436. package/dist/components/secondary2.js +7 -7
  437. package/dist/components/support.js +1 -1
  438. package/dist/components/support2.js +3 -3
  439. package/dist/components/svg-repository.js +41 -41
  440. package/dist/components/token-list2.js +1 -1
  441. package/dist/components/token-radii2.js +1 -1
  442. package/dist/components/token-ratios.js +1 -1
  443. package/dist/components/token-shadows2.js +1 -1
  444. package/dist/components/token-spacing.js +1 -1
  445. package/dist/components/token-typography.js +1 -1
  446. package/dist/components/view.js +3 -0
  447. package/dist/esm/clone-dab56639.js +3 -0
  448. package/dist/esm/color-primary-palette_6.entry.js +15 -15
  449. package/dist/esm/components-section.entry.js +4 -6
  450. package/dist/esm/components.js +3 -3
  451. package/dist/esm/correct-use-of-colors.entry.js +2 -2
  452. package/dist/esm/docs-palettes.entry.js +2 -2
  453. package/dist/esm/docs-tokens.entry.js +2 -2
  454. package/dist/esm/download-47746956.js +18 -0
  455. package/dist/esm/edit-3893a517.js +3 -0
  456. package/dist/esm/{eds-avatar_26.entry.js → eds-accordion_34.entry.js} +3591 -205
  457. package/dist/esm/eds-app-root.entry.js +2 -2
  458. package/dist/esm/eds-card-desc_2.entry.js +3 -3
  459. package/dist/esm/eds-card-generic.entry.js +1 -1
  460. package/dist/esm/eds-card-project.entry.js +2 -2
  461. package/dist/esm/eds-card-section.entry.js +1 -1
  462. package/dist/esm/eds-card-tags.entry.js +2 -2
  463. package/dist/esm/eds-card-tool.entry.js +2 -2
  464. package/dist/esm/eds-cookies-preference.entry.js +2 -2
  465. package/dist/esm/eds-feedback.entry.js +2 -2
  466. package/dist/esm/eds-footer.entry.js +9 -5
  467. package/dist/esm/eds-frame.entry.js +2 -2
  468. package/dist/esm/eds-fullscreen-menu.entry.js +9 -4
  469. package/dist/esm/eds-gauge.entry.js +2 -2
  470. package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
  471. package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
  472. package/dist/esm/eds-icon-bin.entry.js +2 -2
  473. package/dist/esm/eds-icon-bluesky.entry.js +2 -2
  474. package/dist/esm/eds-icon-bookmark.entry.js +2 -2
  475. package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
  476. package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
  477. package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
  478. package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
  479. package/dist/esm/eds-icon-clone.entry.js +14 -0
  480. package/dist/esm/eds-icon-close.entry.js +2 -2
  481. package/dist/esm/eds-icon-copy.entry.js +2 -2
  482. package/dist/esm/eds-icon-download.entry.js +14 -0
  483. package/dist/esm/eds-icon-draft.entry.js +2 -2
  484. package/dist/esm/eds-icon-edit.entry.js +3 -3
  485. package/dist/esm/eds-icon-eu.entry.js +2 -2
  486. package/dist/esm/eds-icon-external.entry.js +2 -2
  487. package/dist/esm/eds-icon-facebook.entry.js +2 -2
  488. package/dist/esm/eds-icon-gitlab.entry.js +2 -2
  489. package/dist/esm/eds-icon-linkedin.entry.js +2 -2
  490. package/dist/esm/eds-icon-loader.entry.js +2 -2
  491. package/dist/esm/eds-icon-mastodon.entry.js +2 -2
  492. package/dist/esm/eds-icon-menu.entry.js +2 -2
  493. package/dist/esm/eds-icon-minus.entry.js +2 -2
  494. package/dist/esm/eds-icon-more.entry.js +2 -2
  495. package/dist/esm/eds-icon-paper.entry.js +2 -2
  496. package/dist/esm/eds-icon-plus.entry.js +2 -2
  497. package/dist/esm/eds-icon-portal.entry.js +2 -2
  498. package/dist/esm/eds-icon-private.entry.js +2 -2
  499. package/dist/esm/eds-icon-public.entry.js +2 -2
  500. package/dist/esm/eds-icon-search.entry.js +2 -2
  501. package/dist/esm/eds-icon-star.entry.js +2 -2
  502. package/dist/esm/eds-icon-start.entry.js +2 -2
  503. package/dist/esm/eds-icon-success.entry.js +2 -2
  504. package/dist/esm/eds-icon-thumbs-down.entry.js +2 -2
  505. package/dist/esm/eds-icon-thumbs-up.entry.js +2 -2
  506. package/dist/esm/eds-icon-tutorial.entry.js +2 -2
  507. package/dist/esm/eds-icon-twitter.entry.js +2 -2
  508. package/dist/esm/eds-icon-unknown.entry.js +2 -2
  509. package/dist/esm/eds-icon-updown.entry.js +2 -2
  510. package/dist/esm/eds-icon-user.entry.js +2 -2
  511. package/dist/esm/eds-icon-view.entry.js +14 -0
  512. package/dist/esm/eds-icon-youtube.entry.js +2 -2
  513. package/dist/esm/eds-modal.entry.js +3 -3
  514. package/dist/esm/eds-pie.entry.js +1 -1
  515. package/dist/esm/eds-progress-bar.entry.js +2 -2
  516. package/dist/esm/eds-section-core_2.entry.js +4 -4
  517. package/dist/esm/eds-social-networks.entry.js +3 -5
  518. package/dist/esm/eds-spinner.entry.js +2 -2
  519. package/dist/esm/eds-splash-screen.entry.js +1 -1
  520. package/dist/esm/eds-timeline.entry.js +2 -2
  521. package/dist/esm/eds-toast-manager.entry.js +2 -2
  522. package/dist/esm/eds-trl.entry.js +2 -2
  523. package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
  524. package/dist/esm/{index-fdb33359.js → index-e84b871c.js} +19 -32
  525. package/dist/esm/loader.js +3 -3
  526. package/dist/esm/logo-space.entry.js +2 -2
  527. package/dist/esm/logo-variations-horizontal_2.entry.js +3 -3
  528. package/dist/esm/logo-variations-tabs.entry.js +2 -2
  529. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  530. package/dist/esm/svg-repository.entry.js +9 -21
  531. package/dist/esm/token-list_3.entry.js +4 -4
  532. package/dist/esm/token-ratios.entry.js +2 -2
  533. package/dist/esm/token-spacing.entry.js +2 -2
  534. package/dist/esm/token-typography.entry.js +2 -2
  535. package/dist/esm/view-e900f2d4.js +3 -0
  536. package/dist/hydrate/index.js +852 -327
  537. package/dist/hydrate/index.mjs +852 -327
  538. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +3 -1
  539. package/dist/types/components/eds-alert/eds-alert.d.ts +6 -0
  540. package/dist/types/components/eds-button/eds-button.d.ts +1 -0
  541. package/dist/types/components/eds-icons/eds-icon-clone/eds-icon-clone.d.ts +10 -0
  542. package/dist/types/components/eds-icons/eds-icon-download/eds-icon-download.d.ts +10 -0
  543. package/dist/types/components/eds-icons/eds-icon-view/eds-icon-view.d.ts +10 -0
  544. package/dist/types/components/eds-link/eds-link.d.ts +1 -0
  545. package/dist/types/components/eds-nps/eds-npm.stories.d.ts +28 -0
  546. package/dist/types/components/eds-nps/eds-nps.d.ts +20 -0
  547. package/dist/types/components/eds-pagination/eds-pagination.d.ts +23 -2
  548. package/dist/types/components/eds-rating/eds-rating.d.ts +3 -1
  549. package/dist/types/components/eds-switch/eds-switch.d.ts +1 -0
  550. package/dist/types/components/eds-table/eds-table.d.ts +23 -8
  551. package/dist/types/components/eds-table/eds-table.stories.d.ts +7 -2
  552. package/dist/types/components.d.ts +421 -41
  553. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +4 -2
  554. package/dist/types/shared-ui/eds-form/eds-form.d.ts +18 -0
  555. package/dist/types/shared-ui/eds-form/eds-form.stories.d.ts +19 -0
  556. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +44 -13
  557. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +11 -3
  558. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +0 -2
  559. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +1 -1
  560. package/dist/types/shared-ui/eds-steps/eds-steps.d.ts +72 -24
  561. package/dist/types/shared-ui/eds-steps/eds-steps.stories.d.ts +58 -0
  562. package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +42 -19
  563. package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +33 -0
  564. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +7 -9
  565. package/dist/types/shared-ui/eds-user/eds-user.d.ts +5 -0
  566. package/dist/types/utils/eds-form/formValidators.d.ts +1 -0
  567. package/package.json +1 -1
  568. package/dist/cjs/edit-5714c144.js +0 -5
  569. package/dist/cjs/eds-accordion.cjs.entry.js +0 -87
  570. package/dist/cjs/eds-alert.cjs.entry.js +0 -104
  571. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -145
  572. package/dist/cjs/eds-code-block.cjs.entry.js +0 -2489
  573. package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -125
  574. package/dist/cjs/eds-switch.cjs.entry.js +0 -46
  575. package/dist/cjs/eds-tooltip.cjs.entry.js +0 -38
  576. package/dist/components/p-023bc47c.entry.js +0 -1
  577. package/dist/components/p-02df910c.entry.js +0 -1
  578. package/dist/components/p-0be79e08.entry.js +0 -1
  579. package/dist/components/p-0e74d8b4.entry.js +0 -1
  580. package/dist/components/p-11efb1d1.entry.js +0 -1
  581. package/dist/components/p-1791ce82.entry.js +0 -1
  582. package/dist/components/p-19d586e6.entry.js +0 -1
  583. package/dist/components/p-2679926c.entry.js +0 -1
  584. package/dist/components/p-2d1a7471.entry.js +0 -1
  585. package/dist/components/p-2ff16a39.entry.js +0 -1
  586. package/dist/components/p-32e18e48.entry.js +0 -1
  587. package/dist/components/p-38e99d4b.entry.js +0 -1
  588. package/dist/components/p-3a331c68.entry.js +0 -1
  589. package/dist/components/p-4088ae0e.entry.js +0 -1
  590. package/dist/components/p-4277fb1a.entry.js +0 -1
  591. package/dist/components/p-42a73db4.entry.js +0 -1
  592. package/dist/components/p-43468b0f.entry.js +0 -1
  593. package/dist/components/p-44055e68.entry.js +0 -1
  594. package/dist/components/p-4a5d0dcd.entry.js +0 -1
  595. package/dist/components/p-4a7412ec.entry.js +0 -1
  596. package/dist/components/p-4b88d84c.entry.js +0 -1
  597. package/dist/components/p-50f43dfd.entry.js +0 -1
  598. package/dist/components/p-562afa88.entry.js +0 -1
  599. package/dist/components/p-564431ad.entry.js +0 -1
  600. package/dist/components/p-5aa4065a.entry.js +0 -1
  601. package/dist/components/p-5ae1c931.entry.js +0 -1
  602. package/dist/components/p-634258e6.entry.js +0 -1
  603. package/dist/components/p-68f45098.entry.js +0 -1
  604. package/dist/components/p-73a44c48.entry.js +0 -1
  605. package/dist/components/p-73c74835.entry.js +0 -1
  606. package/dist/components/p-76905315.entry.js +0 -1
  607. package/dist/components/p-7dbe791f.entry.js +0 -1
  608. package/dist/components/p-7ec52188.entry.js +0 -1
  609. package/dist/components/p-7fc84bb2.js +0 -1
  610. package/dist/components/p-82559816.entry.js +0 -1
  611. package/dist/components/p-85683b18.entry.js +0 -1
  612. package/dist/components/p-8681e5d8.entry.js +0 -1
  613. package/dist/components/p-877d13d9.entry.js +0 -1
  614. package/dist/components/p-8dee879d.entry.js +0 -1
  615. package/dist/components/p-911b1c0b.entry.js +0 -1
  616. package/dist/components/p-93e6ba0f.entry.js +0 -1
  617. package/dist/components/p-960aa103.entry.js +0 -1
  618. package/dist/components/p-996005b7.entry.js +0 -1
  619. package/dist/components/p-9e53eca3.entry.js +0 -1
  620. package/dist/components/p-aa5e75b4.entry.js +0 -1
  621. package/dist/components/p-ae9393b6.entry.js +0 -1
  622. package/dist/components/p-af137162.entry.js +0 -1
  623. package/dist/components/p-b630e51a.entry.js +0 -1
  624. package/dist/components/p-bb9af709.entry.js +0 -1
  625. package/dist/components/p-c2dc3692.entry.js +0 -1
  626. package/dist/components/p-c91b4eec.entry.js +0 -1
  627. package/dist/components/p-caff3355.entry.js +0 -1
  628. package/dist/components/p-ce66ea37.entry.js +0 -1
  629. package/dist/components/p-d4f239d7.entry.js +0 -1
  630. package/dist/components/p-d7251d4d.entry.js +0 -1
  631. package/dist/components/p-deb9bbed.entry.js +0 -1
  632. package/dist/components/p-ed7696a2.entry.js +0 -1
  633. package/dist/components/p-f2416727.entry.js +0 -1
  634. package/dist/components/p-f28b5da7.entry.js +0 -1
  635. package/dist/components/p-f3839914.entry.js +0 -1
  636. package/dist/components/p-f42b6251.entry.js +0 -1
  637. package/dist/components/p-f7a31196.entry.js +0 -1
  638. package/dist/components/p-f973c83b.entry.js +0 -1
  639. package/dist/components/p-fe167c78.entry.js +0 -9
  640. package/dist/esm/edit-1dc8d11b.js +0 -3
  641. package/dist/esm/eds-accordion.entry.js +0 -83
  642. package/dist/esm/eds-alert.entry.js +0 -100
  643. package/dist/esm/eds-breadcrumb.entry.js +0 -141
  644. package/dist/esm/eds-code-block.entry.js +0 -2485
  645. package/dist/esm/eds-matomo-notice.entry.js +0 -121
  646. package/dist/esm/eds-switch.entry.js +0 -42
  647. package/dist/esm/eds-tooltip.entry.js +0 -34
  648. /package/dist/collection/shared-ui/eds-toast-manager/{eds-toast-manager.stories.js → eds-toast-manager.st.js} +0 -0
  649. /package/dist/types/shared-ui/eds-toast-manager/{eds-toast-manager.stories.d.ts → eds-toast-manager.st.d.ts} +0 -0
@@ -1,8 +1,9 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$3 } from './eds-button2.js';
2
3
  import { d as defineCustomElement$2 } from './eds-icon-wrapper2.js';
3
4
  import { d as defineCustomElement$1 } from './eds-link2.js';
4
5
 
5
- 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-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}}";
6
7
  const EdsPaginationStyle0 = edsPaginationCss;
7
8
 
8
9
  const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination extends HTMLElement {
@@ -10,17 +11,65 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
10
11
  super();
11
12
  this.__registerHost();
12
13
  this.__attachShadow();
14
+ /**
15
+ * Handles keyboard navigation within the pagination
16
+ */
17
+ this.handleKeyDown = (e) => {
18
+ if (this.mode !== 'default' || !this.useButtons) {
19
+ return;
20
+ }
21
+ const navigableItems = this.getNavigableItems();
22
+ if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
23
+ e.preventDefault();
24
+ const increment = e.key === 'ArrowRight' ? 1 : -1;
25
+ let currentIndex = this.focusedIndex;
26
+ // If no item is focused, start from current page or first item
27
+ if (currentIndex === -1) {
28
+ const currentPageIndex = navigableItems.findIndex((item) => item.type === 'page' && item.page === this.currentPage);
29
+ currentIndex = currentPageIndex !== -1 ? currentPageIndex : 0;
30
+ }
31
+ let newIndex = currentIndex + increment;
32
+ // Wrap around navigation
33
+ if (newIndex >= navigableItems.length) {
34
+ newIndex = 0;
35
+ }
36
+ else if (newIndex < 0) {
37
+ newIndex = navigableItems.length - 1;
38
+ }
39
+ this.focusedIndex = newIndex;
40
+ this.focusPaginationItem(newIndex);
41
+ }
42
+ else if (e.key === 'Home') {
43
+ e.preventDefault();
44
+ this.focusedIndex = 0;
45
+ this.focusPaginationItem(0);
46
+ }
47
+ else if (e.key === 'End') {
48
+ e.preventDefault();
49
+ const lastIndex = navigableItems.length - 1;
50
+ this.focusedIndex = lastIndex;
51
+ this.focusPaginationItem(lastIndex);
52
+ }
53
+ };
54
+ /**
55
+ * Handles focus events for pagination items
56
+ */
57
+ this.handleItemFocus = (index) => {
58
+ this.focusedIndex = index;
59
+ };
13
60
  this.currentPage = undefined;
14
61
  this.lastPage = undefined;
15
62
  this.perPage = 10;
16
63
  this.total = 0;
17
64
  this.url = '';
18
65
  this.mode = 'default';
66
+ this.useButtons = true;
19
67
  this.prevLabel = 'Prev';
20
68
  this.nextLabel = 'Next';
21
69
  this.prevUrl = '';
22
70
  this.nextUrl = '';
23
71
  this.links = [];
72
+ this.focusedIndex = -1;
24
73
  }
25
74
  /** Lifecycle hook to generate pagination links on component load */
26
75
  componentWillLoad() {
@@ -29,24 +78,17 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
29
78
  }
30
79
  }
31
80
  componentDidLoad() {
32
- // Emit context for each eds-link element after the component is fully loaded
33
- const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
34
- links.forEach((lnk) => {
35
- this.emitContext(lnk);
36
- });
37
- /*if (links.length > 0) {
38
- // Emit context for the first link
39
- this.emitContext(links[0]);
40
-
41
- // Emit context for the last link, if it's different from the first
42
- if (links.length > 1) {
43
- this.emitContext(links[links.length - 1]);
44
- }
45
- }*/
81
+ // Only emit context for links, not buttons
82
+ if (!this.useButtons) {
83
+ const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
84
+ links.forEach((lnk) => {
85
+ this.emitContext(lnk);
86
+ });
87
+ }
46
88
  }
47
89
  /**
48
90
  * Emits a custom event called `parentContext` for a given link element.
49
- * This event provides context information about the breadcrumb component.
91
+ * This event provides context information about the pagination component.
50
92
  *
51
93
  * @param linkElement - The link element to which the event will be dispatched.
52
94
  */
@@ -64,6 +106,34 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
64
106
  this.generateLinks();
65
107
  }
66
108
  }
109
+ /**
110
+ * Gets all navigable pagination items for keyboard navigation
111
+ */
112
+ getNavigableItems() {
113
+ const items = [];
114
+ // Previous button
115
+ items.push({ type: 'prev', disabled: this.isFirstPage() });
116
+ // Page numbers
117
+ this.links.forEach((link) => {
118
+ if (typeof link === 'object') {
119
+ items.push({ type: 'page', page: parseInt(link.label), disabled: false });
120
+ }
121
+ });
122
+ // Next button
123
+ items.push({ type: 'next', disabled: this.isLastPage() });
124
+ return items.filter((item) => !item.disabled);
125
+ }
126
+ /**
127
+ * Focuses a specific pagination item by index
128
+ */
129
+ focusPaginationItem(index) {
130
+ var _a;
131
+ const buttons = (_a = this.hostEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.pagination-button');
132
+ const targetButton = buttons === null || buttons === void 0 ? void 0 : buttons[index];
133
+ if (targetButton) {
134
+ targetButton.focus();
135
+ }
136
+ }
67
137
  /**
68
138
  * Checks if the current page is the first page
69
139
  * @returns {boolean} - true if current page is the first page
@@ -86,7 +156,7 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
86
156
  generateLink(page) {
87
157
  const urlHasQuery = this.url.includes('?');
88
158
  return {
89
- ariaLabel: `Page ${page}`,
159
+ ariaLabel: `Go to page ${page}`,
90
160
  url: `${this.url}${urlHasQuery ? '&' : '?'}page=${page}`,
91
161
  label: page.toString(),
92
162
  current: this.currentPage === page,
@@ -106,7 +176,6 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
106
176
  * Creates a pagination range based on delta, current, and total pages
107
177
  * @param {number} current - Current page number
108
178
  * @param {number} total - Total number of pages
109
- * @param {number} delta - Range of pages to display around the current page
110
179
  * @returns {(number | string)[]} - Range of page numbers or ellipses
111
180
  */
112
181
  getPaginationGenerator(current, total) {
@@ -121,7 +190,7 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
121
190
  else {
122
191
  // Always show the first page
123
192
  range.push(1);
124
- // Add ellipsis if theres a gap between the first page and the current range start
193
+ // Add ellipsis if there's a gap between the first page and the current range start
125
194
  if (current - delta > 2) {
126
195
  range.push('...');
127
196
  }
@@ -129,7 +198,7 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
129
198
  for (let i = Math.max(2, current - delta); i <= Math.min(total - 1, current + delta); i++) {
130
199
  range.push(i);
131
200
  }
132
- // Add ellipsis if theres a gap between the current range end and the last page
201
+ // Add ellipsis if there's a gap between the current range end and the last page
133
202
  if (current + delta < total - 1) {
134
203
  range.push('...');
135
204
  }
@@ -144,9 +213,11 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
144
213
  */
145
214
  pageResults() {
146
215
  if (this.total > 0) {
216
+ const start = this.perPage * ((this.currentPage || 1) - 1) + 1;
217
+ const end = Math.min(this.perPage * (this.currentPage || 1), this.total);
147
218
  return this.total > this.perPage
148
- ? `${this.perPage * ((this.currentPage || 1) - 1) + 1} - ${this.perPage * (this.currentPage || 1) >= this.total ? this.total : this.perPage * (this.currentPage || 1)} of ${this.total}`
149
- : `${this.total}`;
219
+ ? `Showing ${start} to ${end} of ${this.total} results`
220
+ : `Showing ${this.total} result${this.total !== 1 ? 's' : ''}`;
150
221
  }
151
222
  return '';
152
223
  }
@@ -159,11 +230,13 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
159
230
  if (this.mode === 'navigator') {
160
231
  return; // No page clicking logic for navigator mode
161
232
  }
162
- event.preventDefault(); // Prevent default link navigation
233
+ if (this.useButtons) {
234
+ event.preventDefault(); // Prevent default for buttons
235
+ }
163
236
  if (newPage !== this.currentPage) {
164
237
  this.links = this.links.map((link) => typeof link === 'object' ? Object.assign(Object.assign({}, link), { current: parseInt(link.label) === newPage }) : link);
165
238
  const pageChangeEvent = new CustomEvent('page', {
166
- detail: newPage,
239
+ detail: { value: newPage },
167
240
  bubbles: true,
168
241
  composed: true
169
242
  });
@@ -172,38 +245,25 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
172
245
  }
173
246
  }
174
247
  render() {
175
- return (h("div", { key: '978896bd8c550afdc30281e1a8d9858022857551' }, this.total > 0 && this.mode === 'default' && (h("p", { key: '10781adbf2c4754580c31eecc180fc426b5e09a1', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, h("span", { key: '29765740419772ac83736495c859d2d75097904c', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination" }, h("ul", { class: "flex items-center justify-center gap-x-8" }, h("li", { class: "mr-auto" }, h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
176
- ? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
248
+ const navigableIndex = -1; // Track index for keyboard navigation
249
+ return (h("div", { key: '9379c40daaca176e67fb59918f1ca387cb4759b9' }, this.total > 0 && this.mode === 'default' && (h("p", { key: 'd09f7f6b7de136987d5b52564bc60afb3775299a', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, h("span", { key: '4af8f097a79c8fb0495838f06424f43e5e5dcddc', 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
+ if (this.mode === 'default' && !this.isFirstPage()) {
251
+ this.handlePageClick(event, (this.currentPage || 1) - 1);
252
+ }
253
+ } }))) : (h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
254
+ ? this.prevUrl || '#'
177
255
  : this.isFirstPage()
178
256
  ? '#'
179
- : this.generateLink(this.currentPage - 1).url, disabled: this.mode === 'navigator'
180
- ? !this.prevUrl // Disable if prevUrl is not provided
181
- : this.isFirstPage(), "aria-label": "Previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pr-12", onClick: (event) => {
182
- if (this.mode === 'default') {
183
- if (this.isFirstPage()) {
184
- event.preventDefault(); // Prevent click if disabled
185
- }
186
- else {
187
- this.handlePageClick(event, (this.currentPage || 1) - 1);
188
- }
257
+ : this.generateLink(this.currentPage - 1).url, 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: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pr-12" }))), this.mode === 'default' &&
258
+ this.links.map((link, index) => (h("li", { key: index, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof link === 'string' ? (h("span", { class: "flex items-center justify-center", "aria-hidden": "true" }, link)) : this.useButtons ? (h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, h("eds-button", { label: link.label, "aria-label": link.current ? `Current page, page ${link.label}` : `Go to page ${link.label}`, "aria-current": link.current ? 'page' : undefined, size: "small", "extra-class": "!p-8 pagination-button", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))) : (h("eds-link", { url: link.url, "aria-label": link.ariaLabel, label: link.label, current: link.current, "aria-current": link.current ? 'page' : undefined, size: "small", class: "!p-8", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))))), h("li", { class: "ml-auto" }, this.useButtons ? (h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, h("eds-button", { label: this.nextLabel, disabled: this.mode === 'navigator' ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "ghost", "extra-class": "!p-8 lg:!pl-12 pagination-button", onClick: (event) => {
259
+ if (this.mode === 'default' && !this.isLastPage()) {
260
+ this.handlePageClick(event, (this.currentPage || 1) + 1);
189
261
  }
190
- } })), this.mode === 'default' &&
191
- this.links.map((link, index) => (h("li", { key: index, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof link === 'string' ? (h("span", { class: "flex items-center justify-center" }, link)) : (h("eds-link", { url: link.url, "aria-label": link.ariaLabel, label: link.label, current: link.current, size: "small", class: "!p-8", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))))), h("li", { class: "ml-auto" }, h("eds-link", { label: this.nextLabel, url: this.mode === 'navigator'
192
- ? this.nextUrl || '#' // Use nextUrl if provided, otherwise disable with '#'
262
+ } }))) : (h("eds-link", { label: this.nextLabel, url: this.mode === 'navigator'
263
+ ? this.nextUrl || '#'
193
264
  : this.isLastPage()
194
265
  ? '#'
195
- : this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator'
196
- ? !this.nextUrl // Disable if nextUrl is not provided
197
- : this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (event) => {
198
- if (this.mode === 'default') {
199
- if (this.isLastPage()) {
200
- event.preventDefault(); // Prevent click if disabled
201
- }
202
- else {
203
- this.handlePageClick(event, (this.currentPage || 1) + 1);
204
- }
205
- }
206
- } }))))) : null));
266
+ : this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator' ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors" })))))) : null));
207
267
  }
208
268
  get hostEl() { return this; }
209
269
  static get watchers() { return {
@@ -218,11 +278,13 @@ const EdsPagination = /*@__PURE__*/ proxyCustomElement(class EdsPagination exten
218
278
  "total": [2],
219
279
  "url": [1],
220
280
  "mode": [1],
281
+ "useButtons": [4, "use-buttons"],
221
282
  "prevLabel": [1, "prev-label"],
222
283
  "nextLabel": [1, "next-label"],
223
284
  "prevUrl": [1, "prev-url"],
224
285
  "nextUrl": [1, "next-url"],
225
- "links": [32]
286
+ "links": [32],
287
+ "focusedIndex": [32]
226
288
  }, undefined, {
227
289
  "currentPage": ["onPageOrLastPageChange"],
228
290
  "lastPage": ["onPageOrLastPageChange"]
@@ -231,13 +293,18 @@ function defineCustomElement() {
231
293
  if (typeof customElements === "undefined") {
232
294
  return;
233
295
  }
234
- const components = ["eds-pagination", "eds-icon-wrapper", "eds-link"];
296
+ const components = ["eds-pagination", "eds-button", "eds-icon-wrapper", "eds-link"];
235
297
  components.forEach(tagName => { switch (tagName) {
236
298
  case "eds-pagination":
237
299
  if (!customElements.get(tagName)) {
238
300
  customElements.define(tagName, EdsPagination);
239
301
  }
240
302
  break;
303
+ case "eds-button":
304
+ if (!customElements.get(tagName)) {
305
+ defineCustomElement$3();
306
+ }
307
+ break;
241
308
  case "eds-icon-wrapper":
242
309
  if (!customElements.get(tagName)) {
243
310
  defineCustomElement$2();
@@ -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: '8406651d280d0a7f55ac627aa08fed80ff01028e', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, h("div", { key: '0b784248450d7766879be03a2e1f83484090da2c', class: fillClasses, style: { width: `${progressValue}%` } }), h("div", { key: '421253aa1f8dd3ea83936452607c4bcd49f47eb3', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, h("span", { key: 'ae649fcb7ed22741f3fedd129f0c0cb41254b721', class: "text-default f-body-02" }, progressValue, "%"))));
49
+ return (h("div", { key: '6c273c0fae28e5a1af49eb7e6be7b9fca717a503', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, h("div", { key: 'a46a83e9086471adde1837e59d909096d59e7882', class: fillClasses, style: { width: `${progressValue}%` } }), h("div", { key: '193f2efa8259e7facacba374fff8087e9702c246', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, h("span", { key: 'e3454f3507d2a30245671698752a7f0f26baff57', class: "text-default f-body-02" }, progressValue, "%"))));
50
50
  }
51
51
  static get style() { return EdsProgressBarStyle0; }
52
52
  }, [1, "eds-progress-bar", {
@@ -11,6 +11,7 @@ const EdsRating = /*@__PURE__*/ proxyCustomElement(class EdsRating extends HTMLE
11
11
  this.__registerHost();
12
12
  this.__attachShadow();
13
13
  this.rating = createEvent(this, "rating", 7);
14
+ this.buttonRefs = [];
14
15
  this.ratingType = 'star';
15
16
  this.ratingCount = 5;
16
17
  this.selectedRating = 0;
@@ -44,16 +45,37 @@ const EdsRating = /*@__PURE__*/ proxyCustomElement(class EdsRating extends HTMLE
44
45
  * Handles the click event on a star.
45
46
  * @param rating - The selected rating value.
46
47
  */
47
- handleClick(rating) {
48
+ onSelect(rating) {
48
49
  this.selectedRating = rating;
49
50
  this.rating.emit(rating);
51
+ setTimeout(() => {
52
+ const btn = this.buttonRefs[rating - 1];
53
+ btn === null || btn === void 0 ? void 0 : btn.focus();
54
+ }, 0);
55
+ }
56
+ handleKeyNav(e) {
57
+ const { key } = e;
58
+ if (!['ArrowRight', 'ArrowLeft', 'ArrowDown', 'ArrowUp'].includes(key)) {
59
+ return;
60
+ }
61
+ e.preventDefault();
62
+ const increment = key === 'ArrowRight' || key === 'ArrowDown' ? 1 : -1;
63
+ let next = (this.selectedRating || 1) + increment;
64
+ if (next > this.ratingCount) {
65
+ next = 1;
66
+ }
67
+ if (next < 1) {
68
+ next = this.ratingCount;
69
+ }
70
+ this.onSelect(next);
50
71
  }
51
72
  render() {
52
- return (h("div", { key: '7f70d2d6691257ba0658ab9500ab7200af28366a', role: "radiogroup", class: "stars flex space-x-1 my-8" }, Array.from({ length: this.ratingCount }, (_, index) => {
73
+ return (h("div", { key: 'a7fc18897f2901f60432432899da18861e76edf6', 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) => {
53
74
  const starRating = index + 1;
54
75
  const isSelected = starRating <= this.selectedRating;
55
76
  // Use the mapping text if available; otherwise, fall back to a generic label.
56
- return (h("eds-button", { icon: this.ratingType, role: "radio", "aria-checked": isSelected ? 'true' : 'false', "aria-label": this.ratingType, onClick: () => this.handleClick(starRating), tabIndex: this.selectedRating === 0 && index === 0 ? 0 : isSelected ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "large", "extra-class": "p-2" // Optional padding or styling for the star button
77
+ const checked = this.selectedRating === starRating;
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
57
79
  }));
58
80
  })));
59
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: 'b3469cabf7e1a59c7908f5440b76d0c3bed0395d' }, h("eds-section-heading", { key: '38e11acb4b491579573bee449680776d3ec23de3', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), h("slot", { key: '133fc1150fb7e300544388adc673c1446b36ac39' })));
18
+ return (h(TagType, { key: '99f87da56df0ac4b5b28ce721288507beb0cd431' }, h("eds-section-heading", { key: '101137aa9637a95580393a52e7f41d71e8ae8e8b', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), h("slot", { key: '0b6a6131d8e1e2528982571cf7ba617736a34173' })));
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: '1b819df75c9d61eebe7d11b9116dba7278a34d91', class: {
29
+ return (h(TagType, { key: '2af16d4d21378244ba843b619b3fd4f283b3e179', 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: '8f99c7c15982f9190117f8eb71725af66afd0741', class: this.getHeadingClass() }, this.sectionTitle)));
34
+ } }, h(HeadingTag, { key: '8caa529d940fd5d2f7e8f49f7b8e5f2572712f9e', 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: '7bd6202c426d23ded6af47b26e025f2d1b42904a' }, h("p", { key: '0c66f58474ff55cc06bd9f3f15f3deb251c9fb87', class: "f-ui-02" }, this.heading), h("ul", { key: '3e082ae50c77e2d8612b823aa3e474672d65d42f', 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: '62692c53f820ff5d6569e42af692063ad8918cdd', "aria-label": "Social media" }, h("p", { key: 'a571612ba3c1b669e0145484bec4d480b17c1979', class: "f-ui-02" }, this.heading), h("ul", { key: 'c0cc02cd5eebf16130f7b09fb8f11319695fdccb', 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: 'b2ba16cd90ebf036143f6ab52b996497464814c1' }, h("div", { key: 'f619fb03d0364ae7032931559d591fab6ad40123', class: "spinner-overlay", style: overlayStyle }, h("span", { key: '7c1e397ab319de1f67320e3836225e3733a483fd', class: "spinner", style: spinnerStyle }), this.message && h("p", { key: 'ddf6e08c8d2d00f114f815bab28b06c19a56cd6d', class: "f-body-01" }, this.message))));
81
+ return (h(Host, { key: 'b10a5d28d0b06e7b36276fb814e3b8b57b767094' }, h("div", { key: '8f2205bb74775c16660d35f80bf880ac9c39d725', class: "spinner-overlay", style: overlayStyle }, h("span", { key: 'f681700791c6c10ea63473f34719a873757bcf5e', class: "spinner", style: spinnerStyle }), this.message && h("p", { key: 'b0afdd60a6c74fd740626cb7da3402a9a5075e34', 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}";
8
8
  const EdsStepsV2Style0 = edsStepsV2Css;
9
9
 
10
10
  const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends HTMLElement {
@@ -13,15 +13,29 @@ 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);
16
19
  this.handleNext = () => {
17
- this.activeStep = this.activeStep + 1;
18
- if (this.activeStep < this.parsedSteps.length) {
20
+ const lastIndex = this.parsedSteps.length - 1;
21
+ if (this.activeStep >= lastIndex) {
22
+ // Finish
23
+ this.finished.emit();
24
+ return;
25
+ }
26
+ // Next
27
+ const target = this.activeStep + 1;
28
+ this.next.emit(target);
29
+ if (!this.disableNext) {
30
+ this.activeStep = target;
19
31
  this.step.emit(this.activeStep);
20
32
  }
21
33
  };
22
34
  this.handleBack = () => {
23
35
  if (this.activeStep > 0) {
24
- this.activeStep = this.activeStep - 1;
36
+ const target = this.activeStep - 1;
37
+ this.back.emit(target);
38
+ this.activeStep = target;
25
39
  this.step.emit(this.activeStep);
26
40
  }
27
41
  };
@@ -31,6 +45,11 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
31
45
  this.imageWidth = undefined;
32
46
  this.bg = true;
33
47
  this.message = undefined;
48
+ this.nextLabel = 'Next';
49
+ this.backLabel = 'Back';
50
+ this.finishLabel = 'Finish';
51
+ this.disableNext = false;
52
+ this.headingLevel = 'h4';
34
53
  this.activeStep = 0;
35
54
  }
36
55
  componentDidLoad() {
@@ -69,24 +88,22 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
69
88
  'border-softer effect-focus-within relative rounded-lg border-2'
70
89
  ].join(' ');
71
90
  }
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
91
  /**
80
92
  * Parses the steps property into an array of Step objects.
81
93
  */
82
94
  get parsedSteps() {
83
95
  return parseData(this.steps);
84
96
  }
97
+ /** Render the semantic heading element */
98
+ renderHeading(title) {
99
+ const Tag = this.headingLevel;
100
+ return h(Tag, null, title);
101
+ }
85
102
  render() {
86
103
  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' })))))))) : (
104
+ return (h("div", { key: '1ff00f17a85e9a3a9d7bef23694560acd77e7ee4', 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: 'a0328e80df5d9447cfa5378eb9e45925f1f68c69', 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), this.activeStep === index && (h("div", { class: "content grid gap-y-16" }, 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
105
  // 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 })))))))))));
106
+ h("div", { class: "steps space-y-8" }, steps.map((step, index) => (h("div", { class: "step", key: index }, this.renderHeading(step.title), h("div", { class: "content" }, h("slot", { name: `step-${index}` }, h("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter', innerHTML: step.content })))))))))));
90
107
  }
91
108
  get el() { return this; }
92
109
  static get watchers() { return {
@@ -100,6 +117,11 @@ const EdsStepsV2$1 = /*@__PURE__*/ proxyCustomElement(class EdsStepsV2 extends H
100
117
  "imageWidth": [2, "image-width"],
101
118
  "bg": [4],
102
119
  "message": [1],
120
+ "nextLabel": [1, "next-label"],
121
+ "backLabel": [1, "back-label"],
122
+ "finishLabel": [1, "finish-label"],
123
+ "disableNext": [4, "disable-next"],
124
+ "headingLevel": [513, "heading-level"],
103
125
  "activeStep": [32]
104
126
  }, undefined, {
105
127
  "activeStep": ["activeStepChanged"]