@ebrains/components 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
  2. package/dist/cjs/components-section.cjs.entry.js +3 -5
  3. package/dist/cjs/components.cjs.js +1 -1
  4. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  5. package/dist/cjs/docs-palettes.cjs.entry.js +1 -1
  6. package/dist/cjs/docs-tokens.cjs.entry.js +1 -1
  7. package/dist/cjs/download-9d17d025.js +20 -0
  8. package/dist/cjs/{eds-accordion_33.cjs.entry.js → eds-accordion_34.cjs.entry.js} +176 -92
  9. package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
  10. package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
  11. package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
  12. package/dist/cjs/eds-footer.cjs.entry.js +2 -4
  13. package/dist/cjs/eds-frame.cjs.entry.js +1 -1
  14. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +8 -3
  15. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
  16. package/dist/cjs/eds-icon-download.cjs.entry.js +18 -0
  17. package/dist/cjs/eds-icon-draft.cjs.entry.js +1 -1
  18. package/dist/cjs/eds-icon-edit.cjs.entry.js +1 -1
  19. package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
  20. package/dist/cjs/eds-icon-external.cjs.entry.js +1 -1
  21. package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
  22. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
  23. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
  24. package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
  25. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
  26. package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
  27. package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
  28. package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
  29. package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
  30. package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
  31. package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
  32. package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
  33. package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
  34. package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
  35. package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
  36. package/dist/cjs/eds-icon-start.cjs.entry.js +1 -1
  37. package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
  38. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
  39. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
  40. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
  41. package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
  42. package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
  43. package/dist/cjs/eds-icon-updown.cjs.entry.js +1 -1
  44. package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
  45. package/dist/cjs/eds-icon-view.cjs.entry.js +1 -1
  46. package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
  47. package/dist/cjs/eds-modal.cjs.entry.js +2 -2
  48. package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
  49. package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
  50. package/dist/cjs/eds-social-networks.cjs.entry.js +2 -4
  51. package/dist/cjs/eds-spinner.cjs.entry.js +1 -1
  52. package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
  53. package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
  54. package/dist/cjs/eds-trl.cjs.entry.js +1 -1
  55. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  56. package/dist/cjs/index-0249a32e.js +6 -6
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/logo-space.cjs.entry.js +1 -1
  59. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
  60. package/dist/cjs/logo-variations-tabs.cjs.entry.js +1 -1
  61. package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
  62. package/dist/cjs/svg-repository.cjs.entry.js +3 -19
  63. package/dist/cjs/token-list_3.cjs.entry.js +3 -3
  64. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  65. package/dist/cjs/token-spacing.cjs.entry.js +1 -1
  66. package/dist/cjs/token-typography.cjs.entry.js +1 -1
  67. package/dist/collection/collection-manifest.json +1 -0
  68. package/dist/collection/components/eds-icons/eds-icon-download/eds-icon-download.js +36 -0
  69. package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
  70. package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
  71. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  72. package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
  73. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  74. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  75. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  76. package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
  77. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  78. package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
  79. package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
  80. package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
  81. package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
  82. package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
  83. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  84. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
  85. package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
  86. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  87. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
  88. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
  89. package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
  90. package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
  91. package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
  92. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
  93. package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +1 -1
  94. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
  95. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
  96. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
  97. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
  98. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
  99. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
  100. package/dist/collection/components/eds-img/eds-img.js +2 -2
  101. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
  102. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
  103. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
  104. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
  105. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
  106. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
  107. package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
  108. package/dist/collection/components/eds-link/eds-link.js +1 -1
  109. package/dist/collection/components/eds-logo/eds-logo.js +1 -1
  110. package/dist/collection/components/eds-modal/eds-modal.js +2 -2
  111. package/dist/collection/components/eds-nps/eds-nps.js +4 -4
  112. package/dist/collection/components/eds-pagination/eds-pagination.css +12 -0
  113. package/dist/collection/components/eds-pagination/eds-pagination.js +2 -2
  114. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  115. package/dist/collection/components/eds-rating/eds-rating.js +2 -2
  116. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  117. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  118. package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
  119. package/dist/collection/components/eds-switch/eds-switch.js +2 -2
  120. package/dist/collection/components/eds-table/eds-table.css +4 -0
  121. package/dist/collection/components/eds-table/eds-table.js +8 -6
  122. package/dist/collection/components/eds-tag/eds-tag.js +1 -1
  123. package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
  124. package/dist/collection/components/eds-tooltip/eds-tooltip.css +5 -0
  125. package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
  126. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  127. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  128. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  129. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  130. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  131. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  132. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  133. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  134. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  135. package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
  136. package/dist/collection/eds-docs-ui/components-section/functional/overview.js +1 -1
  137. package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
  138. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  139. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  140. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  141. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  142. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  143. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  144. package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
  145. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  146. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  147. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  148. package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
  149. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  150. package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
  151. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
  152. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
  153. package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -6
  154. package/dist/collection/shared-ui/eds-form/eds-form.css +72 -0
  155. package/dist/collection/shared-ui/eds-form/eds-form.js +87 -4
  156. package/dist/collection/shared-ui/eds-form/eds-form.stories.js +32 -3
  157. package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
  158. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +50 -16
  159. package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
  160. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +20 -8
  161. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -20
  162. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -3
  163. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +6 -7
  164. package/dist/collection/shared-ui/eds-steps/eds-steps.css +136 -92
  165. package/dist/collection/shared-ui/eds-steps/eds-steps.js +234 -40
  166. package/dist/collection/shared-ui/eds-steps/eds-steps.stories.js +71 -7
  167. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +44 -33
  168. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +195 -19
  169. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +65 -4
  170. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +2 -2
  171. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  172. package/dist/collection/shared-ui/eds-user/eds-user.js +35 -1
  173. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
  174. package/dist/collection/utils/eds-form/formValidators.js +4 -3
  175. package/dist/components/components-section.js +3 -5
  176. package/dist/components/components.css +0 -3
  177. package/dist/components/components.esm.js +1 -1
  178. package/dist/components/correct-use-of-colors.js +1 -1
  179. package/dist/components/docs-palettes.js +1 -1
  180. package/dist/components/docs-tokens.js +1 -1
  181. package/dist/components/download.js +18 -0
  182. package/dist/components/eds-app-root.js +1 -1
  183. package/dist/components/eds-cookies-preference.js +1 -1
  184. package/dist/components/eds-feedback.js +1 -1
  185. package/dist/components/eds-footer2.js +2 -4
  186. package/dist/components/eds-form.js +26 -8
  187. package/dist/components/eds-frame.js +1 -1
  188. package/dist/components/eds-fullscreen-menu.js +8 -3
  189. package/dist/components/eds-header.js +1 -1
  190. package/dist/components/eds-icon-bluesky.js +1 -1
  191. package/dist/components/eds-icon-download.d.ts +11 -0
  192. package/dist/components/eds-icon-download.js +33 -0
  193. package/dist/components/eds-icon-draft.js +1 -1
  194. package/dist/components/eds-icon-edit.js +1 -1
  195. package/dist/components/eds-icon-eu.js +1 -1
  196. package/dist/components/eds-icon-external.js +1 -1
  197. package/dist/components/eds-icon-facebook.js +1 -1
  198. package/dist/components/eds-icon-gitlab.js +1 -1
  199. package/dist/components/eds-icon-linkedin.js +1 -1
  200. package/dist/components/eds-icon-loader.js +1 -1
  201. package/dist/components/eds-icon-mastodon.js +1 -1
  202. package/dist/components/eds-icon-menu.js +1 -1
  203. package/dist/components/eds-icon-minus.js +1 -1
  204. package/dist/components/eds-icon-more.js +1 -1
  205. package/dist/components/eds-icon-paper.js +1 -1
  206. package/dist/components/eds-icon-plus.js +1 -1
  207. package/dist/components/eds-icon-portal.js +1 -1
  208. package/dist/components/eds-icon-private.js +1 -1
  209. package/dist/components/eds-icon-public.js +1 -1
  210. package/dist/components/eds-icon-search.js +1 -1
  211. package/dist/components/eds-icon-star.js +1 -1
  212. package/dist/components/eds-icon-start.js +1 -1
  213. package/dist/components/eds-icon-success.js +1 -1
  214. package/dist/components/eds-icon-thumbs-down.js +1 -1
  215. package/dist/components/eds-icon-thumbs-up.js +1 -1
  216. package/dist/components/eds-icon-tutorial.js +1 -1
  217. package/dist/components/eds-icon-twitter.js +1 -1
  218. package/dist/components/eds-icon-unknown.js +1 -1
  219. package/dist/components/eds-icon-updown.js +1 -1
  220. package/dist/components/eds-icon-user.js +1 -1
  221. package/dist/components/eds-icon-view.js +1 -1
  222. package/dist/components/eds-icon-youtube.js +1 -1
  223. package/dist/components/eds-img2.js +2 -2
  224. package/dist/components/eds-input-field2.js +2 -2
  225. package/dist/components/eds-input-footer2.js +1 -1
  226. package/dist/components/eds-input-label2.js +1 -1
  227. package/dist/components/eds-input-range2.js +1 -1
  228. package/dist/components/eds-input-search2.js +1 -1
  229. package/dist/components/eds-input-select2.js +2 -2
  230. package/dist/components/eds-input2.js +2 -2
  231. package/dist/components/eds-link2.js +1 -1
  232. package/dist/components/eds-logo2.js +1 -1
  233. package/dist/components/eds-modal.js +2 -2
  234. package/dist/components/eds-nps2.js +4 -4
  235. package/dist/components/eds-pagination2.js +3 -3
  236. package/dist/components/eds-progress-bar2.js +1 -1
  237. package/dist/components/eds-rating2.js +2 -2
  238. package/dist/components/eds-section-core2.js +1 -1
  239. package/dist/components/eds-section-heading2.js +2 -2
  240. package/dist/components/eds-social-networks2.js +2 -4
  241. package/dist/components/eds-spinner2.js +1 -1
  242. package/dist/components/eds-steps-v2.js +35 -13
  243. package/dist/components/eds-steps2.js +54 -35
  244. package/dist/components/eds-switch.js +2 -2
  245. package/dist/components/eds-table2.js +36 -28
  246. package/dist/components/eds-tabs.js +2 -2
  247. package/dist/components/eds-tag2.js +1 -1
  248. package/dist/components/eds-timeline.js +1 -1
  249. package/dist/components/eds-toast-manager.js +1 -1
  250. package/dist/components/eds-tooltip.js +1 -50
  251. package/dist/components/eds-tooltip2.js +52 -0
  252. package/dist/components/eds-trl.js +33 -27
  253. package/dist/components/eds-user.js +10 -2
  254. package/dist/components/incorrect-use-of-colors.js +1 -1
  255. package/dist/components/logo-space.js +31 -25
  256. package/dist/components/logo-variations-horizontal2.js +1 -1
  257. package/dist/components/logo-variations-tabs.js +1 -1
  258. package/dist/components/logo-variations-vertical2.js +1 -1
  259. package/dist/components/logo-wrong-usage.js +1 -1
  260. package/dist/components/p-0452fe52.entry.js +1 -0
  261. package/dist/components/p-04f288b1.entry.js +1 -0
  262. package/dist/components/p-06951aa3.entry.js +1 -0
  263. package/dist/components/p-0da7d1c9.js +1 -0
  264. package/dist/components/p-101392d0.entry.js +1 -0
  265. package/dist/components/p-171f8e6b.entry.js +1 -0
  266. package/dist/components/{p-d95d7353.entry.js → p-1b032aa8.entry.js} +1 -1
  267. package/dist/components/p-28ec52a7.entry.js +1 -0
  268. package/dist/components/p-2f712656.entry.js +1 -0
  269. package/dist/components/p-3097c321.entry.js +1 -0
  270. package/dist/components/p-36db7db0.entry.js +1 -0
  271. package/dist/components/p-38b0ea8d.entry.js +1 -0
  272. package/dist/components/p-3b551ade.entry.js +9 -0
  273. package/dist/components/p-3fa4a703.entry.js +1 -0
  274. package/dist/components/p-3fa54526.entry.js +1 -0
  275. package/dist/components/p-42680319.entry.js +1 -0
  276. package/dist/components/{p-2ef4dd11.entry.js → p-4c618a35.entry.js} +1 -1
  277. package/dist/components/p-4d207d0e.entry.js +1 -0
  278. package/dist/components/p-4db384d9.entry.js +1 -0
  279. package/dist/components/{p-e210ddbb.entry.js → p-50d7eed9.entry.js} +1 -1
  280. package/dist/components/{p-5f348b0e.entry.js → p-5479e43b.entry.js} +1 -1
  281. package/dist/components/{p-8627afc0.entry.js → p-58c8c0d7.entry.js} +1 -1
  282. package/dist/components/p-5a88cdc2.entry.js +1 -0
  283. package/dist/components/p-5b574bb2.entry.js +1 -0
  284. package/dist/components/p-5ec9fc29.entry.js +1 -0
  285. package/dist/components/p-5f350866.entry.js +1 -0
  286. package/dist/components/p-5ff10b6f.entry.js +1 -0
  287. package/dist/components/p-6420754e.entry.js +1 -0
  288. package/dist/components/p-68a2cd95.entry.js +1 -0
  289. package/dist/components/{p-706a106c.entry.js → p-6a2d1e11.entry.js} +1 -1
  290. package/dist/components/{p-e5892379.entry.js → p-7032a73b.entry.js} +1 -1
  291. package/dist/components/p-7272628d.entry.js +1 -0
  292. package/dist/components/p-78c348e2.entry.js +1 -0
  293. package/dist/components/p-870001ee.entry.js +1 -0
  294. package/dist/components/p-88eeaeca.entry.js +1 -0
  295. package/dist/components/p-8b7910d2.entry.js +1 -0
  296. package/dist/components/{p-2e0c3fc4.entry.js → p-8eced026.entry.js} +1 -1
  297. package/dist/components/{p-b88a2267.entry.js → p-8edd07db.entry.js} +1 -1
  298. package/dist/components/p-8ef68d8a.entry.js +1 -0
  299. package/dist/components/p-8fb1eb43.entry.js +1 -0
  300. package/dist/components/{p-1d18106d.entry.js → p-94a223ec.entry.js} +1 -1
  301. package/dist/components/{p-b9a1aba3.entry.js → p-a5fd4fc9.entry.js} +1 -1
  302. package/dist/components/p-a6586448.entry.js +1 -0
  303. package/dist/components/p-ad7d603b.entry.js +1 -0
  304. package/dist/components/p-b24ef7f7.entry.js +1 -0
  305. package/dist/components/p-baa2df0b.entry.js +1 -0
  306. package/dist/components/p-bfe9d934.entry.js +1 -0
  307. package/dist/components/p-c1943b8f.entry.js +1 -0
  308. package/dist/components/{p-7a3f2576.entry.js → p-c66f4dd8.entry.js} +1 -1
  309. package/dist/components/{p-743f9f8f.entry.js → p-d3391236.entry.js} +1 -1
  310. package/dist/components/p-da0e9a75.entry.js +1 -0
  311. package/dist/components/p-dbe11048.entry.js +1 -0
  312. package/dist/components/{p-4c84fcf4.entry.js → p-dd28ab38.entry.js} +1 -1
  313. package/dist/components/p-e42ac312.entry.js +1 -0
  314. package/dist/components/{p-9f0a34b4.entry.js → p-e6c3f38c.entry.js} +1 -1
  315. package/dist/components/p-e7c37e5b.entry.js +1 -0
  316. package/dist/components/p-e9cd3c4b.entry.js +1 -0
  317. package/dist/components/p-ebd59113.entry.js +1 -0
  318. package/dist/components/p-f092b706.entry.js +1 -0
  319. package/dist/components/p-f29e7506.entry.js +1 -0
  320. package/dist/components/p-fc099d59.entry.js +1 -0
  321. package/dist/components/p-fda3da92.entry.js +1 -0
  322. package/dist/components/{p-67ec46b4.entry.js → p-ff902c98.entry.js} +1 -1
  323. package/dist/components/primary.js +1 -1
  324. package/dist/components/primary2.js +1 -1
  325. package/dist/components/secondary.js +1 -1
  326. package/dist/components/secondary2.js +7 -7
  327. package/dist/components/support.js +1 -1
  328. package/dist/components/support2.js +3 -3
  329. package/dist/components/svg-repository.js +32 -42
  330. package/dist/components/token-list2.js +1 -1
  331. package/dist/components/token-radii2.js +1 -1
  332. package/dist/components/token-ratios.js +1 -1
  333. package/dist/components/token-shadows2.js +1 -1
  334. package/dist/components/token-spacing.js +1 -1
  335. package/dist/components/token-typography.js +1 -1
  336. package/dist/esm/color-primary-palette_6.entry.js +14 -14
  337. package/dist/esm/components-section.entry.js +3 -5
  338. package/dist/esm/components.js +1 -1
  339. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  340. package/dist/esm/docs-palettes.entry.js +1 -1
  341. package/dist/esm/docs-tokens.entry.js +1 -1
  342. package/dist/esm/download-47746956.js +18 -0
  343. package/dist/esm/{eds-accordion_33.entry.js → eds-accordion_34.entry.js} +176 -93
  344. package/dist/esm/eds-app-root.entry.js +1 -1
  345. package/dist/esm/eds-cookies-preference.entry.js +1 -1
  346. package/dist/esm/eds-feedback.entry.js +1 -1
  347. package/dist/esm/eds-footer.entry.js +2 -4
  348. package/dist/esm/eds-frame.entry.js +1 -1
  349. package/dist/esm/eds-fullscreen-menu.entry.js +8 -3
  350. package/dist/esm/eds-icon-bluesky.entry.js +1 -1
  351. package/dist/esm/eds-icon-download.entry.js +14 -0
  352. package/dist/esm/eds-icon-draft.entry.js +1 -1
  353. package/dist/esm/eds-icon-edit.entry.js +1 -1
  354. package/dist/esm/eds-icon-eu.entry.js +1 -1
  355. package/dist/esm/eds-icon-external.entry.js +1 -1
  356. package/dist/esm/eds-icon-facebook.entry.js +1 -1
  357. package/dist/esm/eds-icon-gitlab.entry.js +1 -1
  358. package/dist/esm/eds-icon-linkedin.entry.js +1 -1
  359. package/dist/esm/eds-icon-loader.entry.js +1 -1
  360. package/dist/esm/eds-icon-mastodon.entry.js +1 -1
  361. package/dist/esm/eds-icon-menu.entry.js +1 -1
  362. package/dist/esm/eds-icon-minus.entry.js +1 -1
  363. package/dist/esm/eds-icon-more.entry.js +1 -1
  364. package/dist/esm/eds-icon-paper.entry.js +1 -1
  365. package/dist/esm/eds-icon-plus.entry.js +1 -1
  366. package/dist/esm/eds-icon-portal.entry.js +1 -1
  367. package/dist/esm/eds-icon-private.entry.js +1 -1
  368. package/dist/esm/eds-icon-public.entry.js +1 -1
  369. package/dist/esm/eds-icon-search.entry.js +1 -1
  370. package/dist/esm/eds-icon-star.entry.js +1 -1
  371. package/dist/esm/eds-icon-start.entry.js +1 -1
  372. package/dist/esm/eds-icon-success.entry.js +1 -1
  373. package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
  374. package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
  375. package/dist/esm/eds-icon-tutorial.entry.js +1 -1
  376. package/dist/esm/eds-icon-twitter.entry.js +1 -1
  377. package/dist/esm/eds-icon-unknown.entry.js +1 -1
  378. package/dist/esm/eds-icon-updown.entry.js +1 -1
  379. package/dist/esm/eds-icon-user.entry.js +1 -1
  380. package/dist/esm/eds-icon-view.entry.js +1 -1
  381. package/dist/esm/eds-icon-youtube.entry.js +1 -1
  382. package/dist/esm/eds-modal.entry.js +2 -2
  383. package/dist/esm/eds-progress-bar.entry.js +1 -1
  384. package/dist/esm/eds-section-core_2.entry.js +3 -3
  385. package/dist/esm/eds-social-networks.entry.js +2 -4
  386. package/dist/esm/eds-spinner.entry.js +1 -1
  387. package/dist/esm/eds-timeline.entry.js +1 -1
  388. package/dist/esm/eds-toast-manager.entry.js +1 -1
  389. package/dist/esm/eds-trl.entry.js +1 -1
  390. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  391. package/dist/esm/index-e84b871c.js +6 -6
  392. package/dist/esm/loader.js +1 -1
  393. package/dist/esm/logo-space.entry.js +1 -1
  394. package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
  395. package/dist/esm/logo-variations-tabs.entry.js +1 -1
  396. package/dist/esm/logo-wrong-usage.entry.js +1 -1
  397. package/dist/esm/svg-repository.entry.js +2 -18
  398. package/dist/esm/token-list_3.entry.js +3 -3
  399. package/dist/esm/token-ratios.entry.js +1 -1
  400. package/dist/esm/token-spacing.entry.js +1 -1
  401. package/dist/esm/token-typography.entry.js +1 -1
  402. package/dist/hydrate/index.js +281 -189
  403. package/dist/hydrate/index.mjs +281 -189
  404. package/dist/types/components/eds-icons/eds-icon-download/eds-icon-download.d.ts +10 -0
  405. package/dist/types/components/eds-table/eds-table.d.ts +20 -4
  406. package/dist/types/components.d.ts +288 -29
  407. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +4 -2
  408. package/dist/types/shared-ui/eds-form/eds-form.d.ts +17 -0
  409. package/dist/types/shared-ui/eds-form/eds-form.stories.d.ts +19 -0
  410. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +44 -13
  411. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +11 -3
  412. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +0 -2
  413. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +1 -1
  414. package/dist/types/shared-ui/eds-steps/eds-steps.d.ts +72 -24
  415. package/dist/types/shared-ui/eds-steps/eds-steps.stories.d.ts +58 -0
  416. package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +42 -19
  417. package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +33 -0
  418. package/dist/types/shared-ui/eds-user/eds-user.d.ts +5 -0
  419. package/package.json +1 -1
  420. package/dist/cjs/eds-tooltip.cjs.entry.js +0 -38
  421. package/dist/components/p-05654483.entry.js +0 -1
  422. package/dist/components/p-09079c5c.entry.js +0 -1
  423. package/dist/components/p-10997947.entry.js +0 -1
  424. package/dist/components/p-1ab1ea29.entry.js +0 -1
  425. package/dist/components/p-1bcf743d.entry.js +0 -1
  426. package/dist/components/p-3360e1e2.entry.js +0 -1
  427. package/dist/components/p-38bc21e9.entry.js +0 -1
  428. package/dist/components/p-3b29e0fd.entry.js +0 -1
  429. package/dist/components/p-42457a0f.entry.js +0 -1
  430. package/dist/components/p-4a6a72db.entry.js +0 -1
  431. package/dist/components/p-4b33909d.entry.js +0 -1
  432. package/dist/components/p-4bf4bc93.entry.js +0 -1
  433. package/dist/components/p-547a53d6.entry.js +0 -1
  434. package/dist/components/p-560fc3a4.entry.js +0 -1
  435. package/dist/components/p-5a58f1c1.entry.js +0 -1
  436. package/dist/components/p-5b55f951.entry.js +0 -1
  437. package/dist/components/p-5ba49cf2.entry.js +0 -1
  438. package/dist/components/p-5dd85979.entry.js +0 -1
  439. package/dist/components/p-634b6ca2.entry.js +0 -1
  440. package/dist/components/p-6cd6ff0c.entry.js +0 -1
  441. package/dist/components/p-71ee4af2.entry.js +0 -1
  442. package/dist/components/p-789f54cb.entry.js +0 -1
  443. package/dist/components/p-7ca6db64.entry.js +0 -1
  444. package/dist/components/p-89048f87.entry.js +0 -1
  445. package/dist/components/p-8d363a3c.entry.js +0 -1
  446. package/dist/components/p-97323c46.entry.js +0 -1
  447. package/dist/components/p-9b90296c.entry.js +0 -1
  448. package/dist/components/p-a8ca8346.entry.js +0 -1
  449. package/dist/components/p-ab3b0a53.entry.js +0 -1
  450. package/dist/components/p-b0d38b78.entry.js +0 -1
  451. package/dist/components/p-b6ee4250.entry.js +0 -1
  452. package/dist/components/p-b9fdcb1b.entry.js +0 -1
  453. package/dist/components/p-ba9f41de.entry.js +0 -1
  454. package/dist/components/p-beacaa4f.entry.js +0 -1
  455. package/dist/components/p-bfa23535.entry.js +0 -1
  456. package/dist/components/p-c4ac0528.entry.js +0 -1
  457. package/dist/components/p-cb114bf4.entry.js +0 -1
  458. package/dist/components/p-cd05a97b.entry.js +0 -1
  459. package/dist/components/p-cd787744.entry.js +0 -1
  460. package/dist/components/p-cdc1c8e8.entry.js +0 -1
  461. package/dist/components/p-d1d1943b.entry.js +0 -1
  462. package/dist/components/p-e0ada7e0.entry.js +0 -1
  463. package/dist/components/p-ec706eed.entry.js +0 -1
  464. package/dist/components/p-f32963ff.entry.js +0 -9
  465. package/dist/components/p-f6012c17.entry.js +0 -1
  466. package/dist/components/p-fcba31fa.entry.js +0 -1
  467. package/dist/esm/eds-tooltip.entry.js +0 -34
@@ -3330,9 +3330,10 @@ isFieldVisible) {
3330
3330
  const npsEl = findNpsElement(formEl);
3331
3331
  if (npsEl && npsEl.shadowRoot) {
3332
3332
  const raw = (_a = npsEl.shadowRoot
3333
- .querySelector('div[role="radio"][aria-checked="true"] eds-button')) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-label');
3334
- const value = raw !== null ? parseInt(raw, 10) : null;
3335
- if (value === null) {
3333
+ .querySelector('eds-button[tabindex="0"]')) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-label');
3334
+ const parsed = raw !== null ? parseInt(raw, 10) : NaN;
3335
+ const value = Number.isInteger(parsed) && parsed >= 0 && parsed <= 10 ? parsed : NaN;
3336
+ if (isNaN(value)) {
3336
3337
  // eslint-disable-next-line
3337
3338
  if (field.required) {
3338
3339
  errors[field.name] = ['This field is required.'];
@@ -3398,7 +3399,7 @@ function getFormInitData({ initData, parsedFields, currentValues
3398
3399
  return { updatedValues };
3399
3400
  }
3400
3401
 
3401
- const edsFormCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.flex{display:flex}.flex-col{flex-direction:column}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-01 b,.f-body-01 strong{font-weight:var(--f-body-01---bold-weight, bold)}.f-body-02 b,.f-body-02 strong{font-weight:var(--f-body-02---bold-weight, bold)}.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)}.rounded-sm{border-radius:8px}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-2{border-width:2px}.mt-20{margin-top:1.25rem}.mt-32{margin-top:2rem}.mb-32{margin-bottom:2rem}.pt-28{padding-top:1.75rem}.pl-8{padding-left:0.5rem}.pl-16{padding-left:1rem}.border-l-2{border-left-width:2px}.gap-y-8{row-gap:0.5rem}.gap-y-16{row-gap:1rem}.gap-y-24{row-gap:1.5rem}.border-group{border-left:1px solid var(--soft-color, #ddd);padding-left:1rem}";
3402
+ const edsFormCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.flex{display:flex}.flex-col{flex-direction:column}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-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)}.f-body-01 b,.f-body-01 strong{font-weight:var(--f-body-01---bold-weight, bold)}.f-body-02 b,.f-body-02 strong{font-weight:var(--f-body-02---bold-weight, bold)}.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-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.rounded-sm{border-radius:8px}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-2{border-width:2px}.mt-20{margin-top:1.25rem}.mt-32{margin-top:2rem}.mb-32{margin-bottom:2rem}.pt-28{padding-top:1.75rem}.pl-8{padding-left:0.5rem}.pl-16{padding-left:1rem}.border-l-2{border-left-width:2px}.gap-y-8{row-gap:0.5rem}.gap-y-16{row-gap:1rem}.gap-y-24{row-gap:1.5rem}.border-group{border-left:1px solid var(--soft-color, #ddd);padding-left:1rem}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.shadow-hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.relative{position:relative}.rounded-lg{border-radius:16px}.px-16{padding-left:1rem;padding-right:1rem}.pb-16{padding-bottom:1rem}.p-32{padding:2rem}";
3402
3403
  const EdsFormStyle0 = edsFormCss;
3403
3404
 
3404
3405
  const EdsForm = class {
@@ -3406,13 +3407,17 @@ const EdsForm = class {
3406
3407
  index.registerInstance(this, hostRef);
3407
3408
  this.form = index.createEvent(this, "form", 7);
3408
3409
  this.name = 'eds-form';
3410
+ this.title = undefined;
3411
+ this.description = undefined;
3409
3412
  this.setFormUrl = true;
3410
3413
  this.formBtn = true;
3411
3414
  this.formBtnLabel = 'Submit';
3415
+ this.buttonIntent = 'primary';
3412
3416
  this.errorMessage = 'Some fields in your form are incorrect.';
3413
3417
  this.fields = [];
3414
3418
  this.groups = [];
3415
3419
  this.initData = {};
3420
+ this.formStyle = 'default';
3416
3421
  this.values = {};
3417
3422
  this.isSubmitting = false;
3418
3423
  this.hasError = false;
@@ -3710,10 +3715,15 @@ const EdsForm = class {
3710
3715
  }
3711
3716
  get groupedFields() {
3712
3717
  const map = {};
3713
- // initialize buckets for each group
3718
+ // initialize buckets for each declared group
3714
3719
  this.parsedGroups.forEach((g) => (map[g.id] = []));
3720
+ // always keep an ungrouped bucket
3715
3721
  map['__ungrouped'] = [];
3722
+ // only bucket fields that are currently visible
3716
3723
  this.parsedFields.forEach((f) => {
3724
+ if (!this.isFieldVisible(f)) {
3725
+ return;
3726
+ }
3717
3727
  const gid = f.groupId || '__ungrouped';
3718
3728
  if (!map[gid]) {
3719
3729
  map[gid] = [];
@@ -3734,7 +3744,7 @@ const EdsForm = class {
3734
3744
  return (index.h("div", { class: "form-group rating-field", key: field.name }, index.h("div", { class: "flex justify-between" }, field && (index.h("eds-input-label", { name: `rating-${field.name}`, label: field.label, disabled: field.disabled, required: field.required }))), index.h("eds-rating", { id: `rating-${field.name}`, "rating-type": field.ratingType, "rating-count": field.ratingCount, "selected-rating": val, onRating: (e) => this.handleRating(e, field) }), index.h("div", { class: "mt-6" }, index.h("eds-input-footer", { id: `${field.name}-footer`, name: field.name, message: field.message, "error-message": (_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.join('<br/>'), error: !!this.errors[field.name], link: field.link }))));
3735
3745
  }
3736
3746
  else if (field.type === 'nps') {
3737
- return (index.h("div", { class: "form-group nps-field", key: field.name }, index.h("div", { class: "flex justify-between" }, field && (index.h("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), index.h("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), index.h("div", { class: "mt-6" }, index.h("eds-input-footer", { id: `${field.name}-footer`, name: field.name, message: field.message, "error-message": (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br/>'), error: !!this.errors[field.name], link: field.link }))));
3747
+ return (index.h("div", { class: "form-group nps-field", key: field.name }, index.h("div", { class: "flex justify-between" }, field && (index.h("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), index.h("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), index.h("div", { class: "mt-6" }, index.h("eds-input-footer", { id: `${field.name}-footer`, name: field.name, "error-message": (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br/>'), error: !!this.errors[field.name] }))));
3738
3748
  }
3739
3749
  return (index.h("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, error: !!this.errors[field.name], errorMessage: (_c = this.errors[field.name]) === null || _c === void 0 ? void 0 : _c.join('<br/>'), options: field.options, onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field) }));
3740
3750
  }
@@ -3745,9 +3755,13 @@ const EdsForm = class {
3745
3755
  const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
3746
3756
  //const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
3747
3757
  const buckets = this.groupedFields;
3748
- return (index.h("form", { key: 'a66997f39b5be347a4d502f77bcd1da9d1a274ac', ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, index.h("div", { key: 'f8800d2ebe64b3279234ab8ebe20e535dc822872' }, index.h("slot", { key: 'b4194073b281dec35a79a6cc974fdf7476a67807' }), hiddenFields.map((field, index$1) => (index.h("eds-input", { key: index$1, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
3758
+ // build the shadow/bg classes if formStyle="shadow"
3759
+ const styleClasses = this.formStyle === 'shadow'
3760
+ ? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
3761
+ : '';
3762
+ return (index.h("form", { key: 'ecf49eb81f18b444d059d3bdea4600f4ae594ea9', class: styleClasses, ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, index.h("div", { key: '65137fb770f274431c7906326cdf49e0fee73b18', class: "flex flex-col gap-y-24" }, this.title && (index.h("span", { key: 'e4c5b4a7883c4569a657cc234f18f995480ec8df', role: "heading", class: "f-heading-04" }, this.title)), this.description && index.h("span", { key: '65528e4600127f1cff4ce0e5be6f8a6bddc4c864', class: "f-body-02 text-light" }, this.description), index.h("slot", { key: '6230035a050386763723c2b60bd5e81b912762d7' })), hiddenFields.map((field, index$1) => (index.h("eds-input", { key: index$1, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
3749
3763
  .filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
3750
- .map((g) => (index.h("div", { class: "container mt-20", key: g.id }, index.h("span", { class: "f-body-02" }, index.h("b", null, g.title)), index.h("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), index.h("div", { key: '2fc83ebb6b0a472f6853618602c37ee83adae9ff', class: "flex flex-col mt-20 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f)))), this.formBtn && (index.h("div", { key: '91b569b1a4513945f3228c374ae45b52ea17f91d', class: "mt-32" }, index.h("eds-button", { key: '1a8feaecd5a7f292f8aeae3db900700b4f7fb8d4', intent: "primary", label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
3764
+ .map((g) => (index.h("div", { class: "container mt-32", key: g.id }, index.h("span", { class: "f-body-02" }, index.h("b", null, g.title)), index.h("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), index.h("div", { key: '8116d30248f8461a842365470da9915200531028', class: "flex flex-col mt-32 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f))), this.formBtn && (index.h("div", { key: 'e2f1d3ca6a9f6a3b44c45e576150505c49e41dd1', class: "mt-32" }, index.h("eds-button", { key: 'e312bf08b5db526c00497fafaa9476a225919aaf', intent: this.buttonIntent, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
3751
3765
  }
3752
3766
  get el() { return index.getElement(this); }
3753
3767
  static get watchers() { return {
@@ -3805,7 +3819,7 @@ const EdsHeader = class {
3805
3819
  const classes = variantClasses[this.headerVariant] || variantClasses.default;
3806
3820
  // Logo color variant: default and inverse use 'color', strong uses 'color-white'
3807
3821
  const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
3808
- return (index.h("header", { key: '812ad4427cbb3f4b0ca9e305870c35d63487dc59', class: `flex items-center justify-between relative z-10 ${classes}` }, index.h("div", { key: '531acdceb12ca45fea125091dee4d8a0ff39a10b', class: "mr-auto w-[200px] h-[85px]" }, index.h("eds-logo", { key: 'bb2708b3c8eacc575117bfed404b7c9db4fd05e2', type: logoType, href: this.homeUrl })), this.parsedLinks && (index.h("nav", { key: 'a80192d7666416c29025a1ac5812946f14feec3f', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, index.h("ul", { key: 'fae258c468367837a9738bcbe2442709fdc601a0', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (index.h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "large", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), index.h("slot", { key: '9588ef20e19fda76115074c39d902eebead3c845' }), this.menuEnabled && (index.h("div", { key: 'ce2e43645a1c33ca7d6495acd820ad0a93cefdf9', class: "md:hidden flex overflow-hidden px-16" }, index.h("eds-button", { key: 'ed73c7e7a6544f60eea9dbf43379ffe4967c0dbd', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
3822
+ return (index.h("header", { key: 'a0f5bb7d9e850e9414db804019674d6bcbc8ea0b', class: `flex items-center justify-between relative z-10 ${classes}` }, index.h("div", { key: '678d5b1583e6fa47c0eac8ce734e8ec34cd76ad9', class: "mr-auto w-[200px] h-[85px]" }, index.h("eds-logo", { key: '12ce9c42b266bbddfd75d2a8f0097708480a2490', type: logoType, href: this.homeUrl })), this.parsedLinks && (index.h("nav", { key: 'eb388b679d4e268dc7fc011bc2a6406a619287c8', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, index.h("ul", { key: 'c3f8689bb257166c50dd678287c8ad4f54eb315a', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (index.h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "large", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), index.h("slot", { key: '3f689a811a60052393a795937a908cf7d0604cc6' }), this.menuEnabled && (index.h("div", { key: '506b953b455b72085d83bdaafc6855992075ddbe', class: "md:hidden flex overflow-hidden px-16" }, index.h("eds-button", { key: '5b526affd813549a6142efab255d6486a5e2dd66', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
3809
3823
  }
3810
3824
  get hostEl() { return index.getElement(this); }
3811
3825
  };
@@ -3887,10 +3901,10 @@ const EdsImg = class {
3887
3901
  imgOpts['loading'] = 'lazy';
3888
3902
  imgOpts['decoding'] = 'async';
3889
3903
  }
3890
- return (index.h("div", { key: '605bff5657ca79678517527a9462b31608e5af7a', class: {
3904
+ return (index.h("div", { key: 'fec0dcf2ec178a953f4ced8a71b037030983670d', class: {
3891
3905
  'items-center justify-center': true,
3892
3906
  'effect-bg-pattern': this.lazyload && this.showBg
3893
- } }, index.h("picture", { key: '0d0def26688c1ec7214211d02875160965e2ce48' }, this.formats.map((format) => (index.h("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), index.h("img", Object.assign({ key: 'c9c307a5fdf25d9792db2a76f4d08fcd27b50401', ref: (el) => (this.img = el), class: {
3907
+ } }, index.h("picture", { key: '0df010a6ed50519be0a2017bf12db7d1ab2fb208' }, this.formats.map((format) => (index.h("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), index.h("img", Object.assign({ key: 'ea4275b2cc6be0cce5ab63f97d05454e3c4ee1dc', ref: (el) => (this.img = el), class: {
3894
3908
  'effect-opacity object-cover object-center': true,
3895
3909
  'opacity-100': this.loaded,
3896
3910
  'opacity-0': !this.loaded
@@ -3949,7 +3963,7 @@ const EdsInput = class {
3949
3963
  render() {
3950
3964
  const withIcon = !!this.icon;
3951
3965
  const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
3952
- return (index.h("div", { key: 'a26224d6345099df6bc5110d42b701980603f7f7', class: "relative flex items-center" }, this.type === 'textarea' ? (index.h("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${withIcon ? 'input-with-icon' : ''} ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })) : this.type === 'select' ? (index.h("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((option) => (index.h("option", { value: option.value, selected: option.value === this.innerVal, key: option.value }, option.label))))) : (index.h("input", Object.assign({ id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined }, (this.type === 'number'
3966
+ return (index.h("div", { key: '0a6386205f78655569bf93960a4e2664563e4014', class: "relative flex items-center" }, this.type === 'textarea' ? (index.h("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${withIcon ? 'input-with-icon' : ''} ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })) : this.type === 'select' ? (index.h("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((option) => (index.h("option", { value: option.value, selected: option.value === this.innerVal, key: option.value }, option.label))))) : (index.h("input", Object.assign({ id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined }, (this.type === 'number'
3953
3967
  ? {
3954
3968
  min: this.min,
3955
3969
  max: this.max,
@@ -3960,7 +3974,7 @@ const EdsInput = class {
3960
3974
  input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
3961
3975
  ${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
3962
3976
  ${this.error ? 'input-error' : ''}
3963
- `, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (index.h("span", { key: 'beb48d08d18b5ca5b054b1b579e2f9527af222e9', class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}` }, this.maxLength)), this.icon && (index.h("eds-icon-wrapper", { key: '06948fe33c35c5830edd50a37411281865ef6d12', class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, icon: this.icon }))));
3977
+ `, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (index.h("span", { key: 'c78bf1501f682cde9a193ea6726baf2433566516', class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}` }, this.maxLength)), this.icon && (index.h("eds-icon-wrapper", { key: 'c07e7d5d8394292cf365f32838dfd837ccf168d6', class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, icon: this.icon }))));
3964
3978
  }
3965
3979
  get el() { return index.getElement(this); }
3966
3980
  static get watchers() { return {
@@ -4071,7 +4085,7 @@ const EdsInputField = class {
4071
4085
  }
4072
4086
  render() {
4073
4087
  const inputOpts = Object.assign({ name: this.name, id: this.inputId, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleNativeInput, onChange: this.handleNativeChange, type: this.type, required: this.required, value: this.value, error: this.error, icon: this.icon, checked: this.checked }, (this.type === 'number' ? { min: this.min, max: this.max, step: this.step } : {}));
4074
- return (index.h("div", { key: '615165ebb5980d2da414ad4028e053b46358eb4e' }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (index.h("fieldset", { class: "space-y-4 mt-8" }, index.h("div", { class: "flex justify-between" }, this.label && (index.h("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && (index.h("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.parsedOptions.map((option) => (index.h("div", { class: "flex items-center gap-x-4 gap-y-4", key: option.value }, index.h("eds-input", Object.assign({}, inputOpts, { value: option.value, checked: typeof this.value === 'string' && this.value.split(',').includes(String(option.value)) })), index.h("label", { htmlFor: this.name, class: `input-label-options ${this.disabled ? 'text-lighter' : ''}` }, option.label)))))) : (index.h("div", { class: "flex items-center gap-x-8" }, index.h("eds-input", Object.assign({}, inputOpts, { value: this.value, checked: this.value === 'on' || this.checked })), this.label && (index.h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (index.h("div", null, index.h("div", { class: "flex justify-between" }, this.label && (index.h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && (index.h("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.type === 'select' ? (index.h("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (index.h("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChangeNative, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (index.h("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
4088
+ return (index.h("div", { key: 'eaa1d9c1095204c82bd01eab0f19f80eeee64d05' }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (index.h("fieldset", { class: "space-y-4 mt-8" }, index.h("div", { class: "flex justify-between mb-4" }, this.label && (index.h("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && (index.h("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.parsedOptions.map((option) => (index.h("div", { class: "flex items-center gap-x-4 gap-y-4", key: option.value }, index.h("eds-input", Object.assign({}, inputOpts, { value: option.value, checked: typeof this.value === 'string' && this.value.split(',').includes(String(option.value)) })), index.h("label", { htmlFor: this.name, class: `input-label-options ${this.disabled ? 'text-lighter' : ''}` }, option.label)))))) : (index.h("div", { class: "flex items-center gap-x-8" }, index.h("eds-input", Object.assign({}, inputOpts, { value: this.value, checked: this.value === 'on' || this.checked })), this.label && (index.h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (index.h("div", null, index.h("div", { class: "flex justify-between mb-4" }, this.label && (index.h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && (index.h("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.type === 'select' ? (index.h("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (index.h("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChangeNative, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (index.h("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
4075
4089
  var _a, _b, _c;
4076
4090
  const rangeProps = {
4077
4091
  name: inputOpts.name,
@@ -4084,7 +4098,7 @@ const EdsInputField = class {
4084
4098
  const opt = this.parsedOptions;
4085
4099
  const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
4086
4100
  return (index.h("eds-input-range", Object.assign({}, rangeProps, { min: (_a = opt[0]) === null || _a === void 0 ? void 0 : _a.value, max: (_b = opt[1]) === null || _b === void 0 ? void 0 : _b.value, step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value, value: numberValue })));
4087
- })()) : (index.h("eds-input", Object.assign({}, inputOpts))))), index.h("div", { key: '4ca8edfb4538caab53e89f16008683aea28adfbc', class: "mt-6" }, index.h("eds-input-footer", { key: '68053a16f607a277a5c806f3c830b24acf3b1f50', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link }))));
4101
+ })()) : (index.h("eds-input", Object.assign({}, inputOpts))))), index.h("div", { key: '60e6c848d41591b2e9ec8c5cf8dd656ec8562c38', class: "mt-6" }, index.h("eds-input-footer", { key: 'e9298e01dbab9aa6a98a486286b32024766348d1', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link }))));
4088
4102
  }
4089
4103
  static get delegatesFocus() { return true; }
4090
4104
  get hostEl() { return index.getElement(this); }
@@ -4104,7 +4118,7 @@ const EdsInputFooter = class {
4104
4118
  this.link = undefined;
4105
4119
  }
4106
4120
  render() {
4107
- return (index.h("div", { key: '58bce34f2ec417696ba03d6c8c0c77fa1d900f9a' }, this.error && this.errorMessage && (index.h("div", { key: 'be14dc0f6e9494c1ee436fd8f822112eab6d2ce2', id: `error_${this.name}`, class: "text-error flex items-center" }, index.h("eds-icon-wrapper", { key: 'aaa2010441b0bfe9445e4b6401115b29606ac507', icon: "warning" }), index.h("p", { key: '277ac1de538e873c7da9b592e60dfd276738025d', class: "f-ui-04 ml-4 mb-4", innerHTML: this.errorMessage }))), this.message && index.h("p", { key: '4f07c6efe398bb002322a35279e68b237eac860e', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (index.h("a", { key: '50d042530985eeafd7334b0bb38fd2c14aed0e3f', href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label))));
4121
+ return (index.h("div", { key: '54571d8f3c08a7a4f12e40728e02a7210ab0d345' }, this.error && this.errorMessage && (index.h("div", { key: 'db35f0c0dfa931d55d57a9c4ad3fffaeb4cea914', id: `error_${this.name}`, class: "text-error flex items-center" }, index.h("eds-icon-wrapper", { key: '63e401d86876829d8d2bbab887a66ef0dbd1837f', icon: "warning" }), index.h("p", { key: '81f8b0819a7cb119353c8ac38ab1df0cafb9d36f', class: "f-ui-04 ml-4 mb-4", innerHTML: this.errorMessage }))), this.message && index.h("p", { key: 'e5018623e2d8578864dc1f0b06d54e4a60ff9020', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (index.h("a", { key: 'e7b6bde26ae02cf07ac8b8e6461282a4ba1355ed', href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label))));
4108
4122
  }
4109
4123
  };
4110
4124
  EdsInputFooter.style = EdsInputFooterStyle0;
@@ -4121,7 +4135,7 @@ const EdsInputLabel = class {
4121
4135
  this.disabled = false;
4122
4136
  }
4123
4137
  render() {
4124
- return (index.h("label", { key: '622cd7e26774448ca86c1168d0a287d7b61d3e29', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (index.h("span", { key: 'c3162e765af70dd972e3cd0ca360cd3f52003f76' }, index.h("span", { key: '5bca5243c95399fefff4fa21b6c1477a287a3cb4', "aria-hidden": "true" }, "*"), index.h("span", { key: 'bc1c229ac387161e4aa314498dbbc77fbab62955', class: "sr-only" }, "required")))));
4138
+ return (index.h("label", { key: '90e0659383fd3be9a166457de5429385fe3bfe02', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (index.h("span", { key: '4d417c45dd636bfd5872d846e5eb89ff3694a4d4' }, index.h("span", { key: '3924011891ee03e530fe25b269bf4231f3acd9cb', "aria-hidden": "true" }, "*"), index.h("span", { key: '2f343b6b4ab4cbd538189cfa404210cf676eefe7', class: "sr-only" }, "required")))));
4125
4139
  }
4126
4140
  };
4127
4141
  EdsInputLabel.style = EdsInputLabelStyle0;
@@ -4168,7 +4182,7 @@ const EdsInputRange = class {
4168
4182
  return this.inputElement;
4169
4183
  }
4170
4184
  render() {
4171
- return (index.h("div", { key: '51c9adb300d50eecb48de1547c0a0475692aa97b', class: "relative flex flex-col items-start" }, index.h("input", { key: '65ac18497d2a4307d7f5161951b87bb38cdad892', id: this.inputId || this.name, name: this.name, min: this.min, max: this.max, step: this.step, value: this.sliderVal, required: this.required, disabled: this.disabled, type: "range", class: "w-full py-6 input", tabindex: "0", role: "slider", "aria-describedby": `desc_${this.name}`, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.sliderVal, onInput: this.onInput, onChange: this.onChange }), index.h("p", { key: '9b717fce31d2340f3b4bc4b5583e6b1e7764314f', id: `desc_${this.name}`, class: "block f-ui-05 mt-4 text-lighter" }, "Current value: ", this.sliderVal)));
4185
+ return (index.h("div", { key: '3fa2ef579847e66bcacc35afe202192b78a06975', class: "relative flex flex-col items-start" }, index.h("input", { key: '669cc03e44dfa1ae8eae758f82f41939de1be625', id: this.inputId || this.name, name: this.name, min: this.min, max: this.max, step: this.step, value: this.sliderVal, required: this.required, disabled: this.disabled, type: "range", class: "w-full py-6 input", tabindex: "0", role: "slider", "aria-describedby": `desc_${this.name}`, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.sliderVal, onInput: this.onInput, onChange: this.onChange }), index.h("p", { key: 'b3865e1bfacb423da277f4b76dfd0f3294f96cc6', id: `desc_${this.name}`, class: "block f-ui-05 mt-4 text-lighter" }, "Current value: ", this.sliderVal)));
4172
4186
  }
4173
4187
  get el() { return index.getElement(this); }
4174
4188
  static get watchers() { return {
@@ -4237,7 +4251,7 @@ const EdsInputSearch = class {
4237
4251
  return this.inputElement;
4238
4252
  }
4239
4253
  render() {
4240
- return (index.h("div", { key: '40f0faa26610671e0a89055e5a51fb17ab17c470', class: "relative flex items-center" }, index.h("eds-icon-wrapper", { key: '910f6681ae719608c6f2787de4b3871742dd290a', icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), index.h("input", { key: '77534918bd9f2bcd4014e5b201a4f7eb2c0753b4', id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.value || '', required: this.required, disabled: this.disabled, type: "search", "aria-label": this.placeholder, class: `input pl-36 ${this.decorate}`,
4254
+ return (index.h("div", { key: 'ad7c42baf7c54ede5dca7dd2a6916557f46d33d6', class: "relative flex items-center" }, index.h("eds-icon-wrapper", { key: '6de80c397bae5e541de1ce3c2937bed860b58363', icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), index.h("input", { key: '9637c5569c97061fde3735ecb58b6a6f81a10e15', id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.value || '', required: this.required, disabled: this.disabled, type: "search", "aria-label": this.placeholder, class: `input pl-36 ${this.decorate}`,
4241
4255
  //onInput={this.onInput}
4242
4256
  onChange: this.onChange })));
4243
4257
  }
@@ -4266,12 +4280,12 @@ const EdsInputSelect = class {
4266
4280
  const selectId = this.inputId || this.name;
4267
4281
  const placeholderText = this.placeholder || `Pick from the list`;
4268
4282
  const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
4269
- return (index.h("div", { key: 'f154a5f34a0d09cf6a02e24f13ed9af46532c76c', class: "relative" }, index.h("select", { key: '0982936337bcbec3e2b81f7edc1436506841c782', id: selectId, name: this.name, class: {
4283
+ return (index.h("div", { key: '06be08db809ec9970ca4d7bdbdcdf1c8f2bc8840', class: "relative" }, index.h("select", { key: 'e4319592e6c2f0c71e0dc75ca2d854506bda70bc', id: selectId, name: this.name, class: {
4270
4284
  input: true,
4271
4285
  'input-error': this.error,
4272
4286
  'px-4': true,
4273
4287
  'py-2': true
4274
- }, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, index.h("option", { key: '7656fa514dec6b8b05bbb8d02636bf5e2ee8d213', value: "", disabled: true, hidden: true }, placeholderText), this.options.map((opt, index$1) => (index.h("option", { key: index$1, value: opt.value, selected: opt.value === this.value }, opt.label)))), index.h("span", { key: '8464aa5ef3eab675f493b582736c25a7edd88224', class: "bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center" }, index.h("eds-icon-wrapper", { key: '092271b13e4d496a85c55fbb5f1756805cd5d3de', class: "w-20 h-20", icon: "chevron-right" }))));
4288
+ }, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, index.h("option", { key: 'a0ece38948f84a10ea8cd4c0a01b3f8b9730c7ef', value: "", disabled: true, hidden: true }, placeholderText), this.options.map((opt, index$1) => (index.h("option", { key: index$1, value: opt.value, selected: opt.value === this.value }, opt.label)))), index.h("span", { key: '8ce085e43d0ba6340e52b0666dc0a31abbf1a2f9', class: "bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center" }, index.h("eds-icon-wrapper", { key: '8b91b3fa3a819d04ede5d7816fcb2f04e66fd03b', class: "w-20 h-20", icon: "chevron-right" }))));
4275
4289
  }
4276
4290
  };
4277
4291
 
@@ -4503,7 +4517,7 @@ const EdsLink = class {
4503
4517
  const labelClasses = this.hideLabelOnSmallScreen
4504
4518
  ? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
4505
4519
  : '';
4506
- return (index.h("a", { key: '929b7318ec6475113125e40d789476df76e59e38', class: `${classes || ''} ${this.extraClass || ''}`, href: isInteractive ? this.url : undefined, target: this.external && isInteractive ? '_blank' : undefined, rel: this.external && isInteractive ? 'noopener noreferrer' : undefined, tabIndex: isInteractive ? 0 : -1, "aria-label": isIconOnly ? this.ariaLabel || 'Link' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, "aria-current": this.current ? 'page' : undefined, role: this.disabled ? 'link' : undefined, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, index.h("span", { key: '4b965dcb07ebca43577b0dcd9f2d11495caa761a', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), this.label && index.h("span", { key: 'a4327fe130fb8c3962096eff3415ad62e19230f4', class: labelClasses }, this.label), this.renderRightIcon())));
4520
+ return (index.h("a", { key: 'bc82c9ea21f98ed71c812c8366ba8368c3ac5bf4', class: `${classes || ''} ${this.extraClass || ''}`, href: isInteractive ? this.url : undefined, target: this.external && isInteractive ? '_blank' : undefined, rel: this.external && isInteractive ? 'noopener noreferrer' : undefined, tabIndex: isInteractive ? 0 : -1, "aria-label": isIconOnly ? this.ariaLabel || 'Link' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, "aria-current": this.current ? 'page' : undefined, role: this.disabled ? 'link' : undefined, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, index.h("span", { key: 'eed89377d27a476a7d7e70a8c40f3100b8089a0b', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), this.label && index.h("span", { key: 'c6d09f0c54e092e53350014d6d89b67c35a8be71', class: labelClasses }, this.label), this.renderRightIcon())));
4507
4521
  }
4508
4522
  get el() { return index.getElement(this); }
4509
4523
  };
@@ -4571,7 +4585,7 @@ const EdsLogo = class {
4571
4585
  }
4572
4586
  render() {
4573
4587
  const logoContent = this.getLogo();
4574
- return (index.h("a", { key: 'fff2a45eb8b41f59026ff7033824484339e3c0a9', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, index.h("div", { key: 'bc13988a739af1c94d5eadbabf558cbbb10927b8', innerHTML: logoContent })));
4588
+ return (index.h("a", { key: 'e5c4e4701d698282dc85561c8c434f0790fb2401', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, index.h("div", { key: '32cc8649fe67b6c4a874b5c1aaa6d4d793b4c4c7', innerHTML: logoContent })));
4575
4589
  }
4576
4590
  get el() { return index.getElement(this); }
4577
4591
  };
@@ -4761,19 +4775,19 @@ const EdsNps = class {
4761
4775
  }
4762
4776
  render() {
4763
4777
  const count = this.max - this.min + 1;
4764
- const fallback = 0;
4765
- return (index.h("div", { key: 'd675e1e4ecc306511c0324d0b76ee66237cb6738', class: "eds-nps" }, index.h("eds-input-label", { key: '2eede06f6ee166c36b0cf315a35435c89c3c0ba5', id: "nps-question", name: "nps-question", label: this.question }), index.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) => {
4778
+ //onst fallback = 0;
4779
+ return (index.h("div", { key: '3831baab086cbf44a3d1511885f15bbab23c9cd2', class: "eds-nps" }, index.h("eds-input-label", { key: 'f9bd8a812d1b65a634dfaa7aae704218dc79468c', id: "nps-question", name: "nps-question", label: this.question }), index.h("div", { key: '398f5225c5b4071c2570a74a9e642f5059bb7813', role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: count }, (_, i) => {
4766
4780
  const val = this.min + i;
4767
4781
  const isSelected = val === this.selectedValue;
4768
- const tabIndex = this.selectedValue === null ? (i === fallback ? 0 : -1) : isSelected ? 0 : -1;
4782
+ const tabIndex = isSelected ? 0 : -1;
4769
4783
  return (index.h("div", { class: "grid-col-span-1", key: val }, index.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) })));
4770
- })), index.h("div", { key: 'e7bd70a4f1a8083d9c3e08fdf8de55999a27d92d', class: "flex justify-between mt-8" }, index.h("span", { key: 'ea3fbbac20a162e7cf5f2d5e3321c8bc9297014e', class: "f-ui-04 text-light ml-4" }, this.leftLabel), index.h("span", { key: '3ff59cde0c532587ead8b8a1eaaff6c630e7e7ac', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
4784
+ })), index.h("div", { key: '0acafaae3f2ce522ffbc245c5733ca509d4bf3c1', class: "flex justify-between mt-8" }, index.h("span", { key: '001e0be00b07ae2e831ea6af0c577a5eeecb9a56', class: "f-ui-04 text-light ml-4" }, this.leftLabel), index.h("span", { key: '99a12d89ea577fb2bb9c34241a2b9f0f254c284a', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
4771
4785
  }
4772
4786
  get el() { return index.getElement(this); }
4773
4787
  };
4774
4788
  EdsNps.style = EdsNpsStyle0;
4775
4789
 
4776
- 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}}";
4790
+ 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}}";
4777
4791
  const EdsPaginationStyle0 = edsPaginationCss;
4778
4792
 
4779
4793
  const EdsPagination = class {
@@ -5004,7 +5018,7 @@ const EdsPagination = class {
5004
5018
  if (newPage !== this.currentPage) {
5005
5019
  this.links = this.links.map((link) => typeof link === 'object' ? Object.assign(Object.assign({}, link), { current: parseInt(link.label) === newPage }) : link);
5006
5020
  const pageChangeEvent = new CustomEvent('page', {
5007
- detail: newPage,
5021
+ detail: { value: newPage },
5008
5022
  bubbles: true,
5009
5023
  composed: true
5010
5024
  });
@@ -5014,7 +5028,7 @@ const EdsPagination = class {
5014
5028
  }
5015
5029
  render() {
5016
5030
  const navigableIndex = -1; // Track index for keyboard navigation
5017
- return (index.h("div", { key: '753a7e573a09e7fcb66eac9e11e00f690c49543d' }, this.total > 0 && this.mode === 'default' && (index.h("p", { key: '6286d71622614a835d471812a55d5c6bef37a13e', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, index.h("span", { key: 'daa7bfa31e736a40c46641fed88653d51eeabc67', class: "text-light sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (index.h("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === 'default' ? 'pagination-info' : undefined, onKeyDown: this.handleKeyDown }, index.h("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, index.h("li", { class: "mr-auto" }, this.useButtons ? (index.h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, index.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) => {
5031
+ return (index.h("div", { key: '9379c40daaca176e67fb59918f1ca387cb4759b9' }, this.total > 0 && this.mode === 'default' && (index.h("p", { key: 'd09f7f6b7de136987d5b52564bc60afb3775299a', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, index.h("span", { key: '4af8f097a79c8fb0495838f06424f43e5e5dcddc', class: "text-light sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (index.h("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === 'default' ? 'pagination-info' : undefined, onKeyDown: this.handleKeyDown }, index.h("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, index.h("li", { class: "mr-auto" }, this.useButtons ? (index.h("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, index.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) => {
5018
5032
  if (this.mode === 'default' && !this.isFirstPage()) {
5019
5033
  this.handlePageClick(event, (this.currentPage || 1) - 1);
5020
5034
  }
@@ -5107,12 +5121,12 @@ const EdsRating = class {
5107
5121
  this.onSelect(next);
5108
5122
  }
5109
5123
  render() {
5110
- return (index.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$1) => {
5124
+ return (index.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$1) => {
5111
5125
  const starRating = index$1 + 1;
5112
5126
  const isSelected = starRating <= this.selectedRating;
5113
5127
  // Use the mapping text if available; otherwise, fall back to a generic label.
5114
5128
  const checked = this.selectedRating === starRating;
5115
- return (index.h("eds-button", { ref: (el) => (this.buttonRefs[index$1] = 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$1 === 0) ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "large", "extra-class": "p-2" // Optional padding or styling for the star button
5129
+ return (index.h("eds-button", { ref: (el) => (this.buttonRefs[index$1] = el), icon: this.ratingType, "aria-label": `${starRating} ${this.ratingType}${starRating > 1 ? 's' : ''}`, onClick: () => this.onSelect(starRating), tabIndex: checked || (this.selectedRating === 0 && index$1 === 0) ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "large", "extra-class": "p-2" // Optional padding or styling for the star button
5116
5130
  }));
5117
5131
  })));
5118
5132
  }
@@ -5120,40 +5134,60 @@ const EdsRating = class {
5120
5134
  };
5121
5135
  EdsRating.style = EdsRatingStyle0;
5122
5136
 
5123
- 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}";
5137
+ 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}";
5124
5138
  const EdsStepsStyle0 = edsStepsCss;
5125
5139
 
5126
5140
  const EdsSteps = class {
5127
5141
  constructor(hostRef) {
5128
5142
  index.registerInstance(this, hostRef);
5129
5143
  this.step = index.createEvent(this, "step", 7);
5144
+ this.finished = index.createEvent(this, "finished", 7);
5145
+ this.next = index.createEvent(this, "next", 7);
5146
+ this.back = index.createEvent(this, "back", 7);
5130
5147
  this.handleNext = () => {
5131
- this.activeStep = this.activeStep + 1;
5132
- if (this.activeStep < this.parsedSteps.length) {
5133
- this.step.emit(this.activeStep);
5148
+ const lastIndex = this.parsedSteps.length - 1;
5149
+ if (this.activeStep >= lastIndex) {
5150
+ this.finished.emit();
5151
+ return;
5152
+ }
5153
+ const target = this.activeStep + 1;
5154
+ this.next.emit(target);
5155
+ if (this.isNextDisabledFor(this.activeStep)) {
5156
+ return;
5157
+ } // block advance only if current is disabled
5158
+ this.activeStep = target;
5159
+ this.step.emit(this.activeStep);
5160
+ // 2) if using the boolean form, clear it when moving away from a step
5161
+ if (!Array.isArray(this.disableNext)) {
5162
+ this.disableNext = false;
5134
5163
  }
5135
5164
  };
5136
5165
  this.handleBack = () => {
5137
5166
  if (this.activeStep > 0) {
5138
- this.activeStep = this.activeStep - 1;
5167
+ const target = this.activeStep - 1;
5168
+ this.back.emit(target);
5169
+ this.activeStep = target;
5139
5170
  this.step.emit(this.activeStep);
5171
+ // also clear boolean form on back
5172
+ if (!Array.isArray(this.disableNext)) {
5173
+ this.disableNext = false;
5174
+ }
5140
5175
  }
5141
5176
  };
5142
5177
  this.steps = [];
5143
5178
  this.type = 'static';
5179
+ this.nextLabel = 'Next';
5180
+ this.backLabel = 'Back';
5181
+ this.finishLabel = 'Finish';
5182
+ this.disableNext = false;
5183
+ this.headingLevel = 'h4';
5144
5184
  this.activeStep = 0;
5145
5185
  }
5146
- /**
5147
- * Lifecycle method that runs when the component has fully loaded.
5148
- * It emits a custom event for each `eds-button` element contained within the breadcrumb.
5149
- */
5150
5186
  componentDidLoad() {
5151
5187
  var _a;
5152
5188
  if (this.type === 'linear') {
5153
5189
  const btns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-button');
5154
- btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => {
5155
- this.emitContext(btn);
5156
- });
5190
+ btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
5157
5191
  }
5158
5192
  }
5159
5193
  activeStepChanged(newValue) {
@@ -5161,19 +5195,10 @@ const EdsSteps = class {
5161
5195
  var _a;
5162
5196
  const activeStepContainer = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.step')[newValue];
5163
5197
  if (activeStepContainer) {
5164
- const btns = activeStepContainer.querySelectorAll('eds-button');
5165
- btns.forEach((btn) => {
5166
- this.emitContext(btn);
5167
- });
5198
+ activeStepContainer.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
5168
5199
  }
5169
5200
  }, 50);
5170
5201
  }
5171
- /**
5172
- * Emits a custom event called `parentContext` for a given link element.
5173
- * This event provides context information about the breadcrumb component.
5174
- *
5175
- * @param linkElement - The link element to which the event will be dispatched.
5176
- */
5177
5202
  emitContext(linkElement) {
5178
5203
  const event = new CustomEvent('parentContext', {
5179
5204
  detail: {
@@ -5183,26 +5208,29 @@ const EdsSteps = class {
5183
5208
  });
5184
5209
  linkElement.dispatchEvent(event);
5185
5210
  }
5186
- handleStepClick(index) {
5187
- this.step.emit(index);
5188
- // In linear mode, update the active step on header click.
5189
- if (this.type === 'linear') {
5190
- this.activeStep = index;
5191
- }
5192
- }
5193
- /**
5194
- * Parse the JSON string into an array of steps.
5195
- */
5196
5211
  get parsedSteps() {
5197
5212
  return sharedUtils.parseData(this.steps);
5198
5213
  }
5214
+ isNextDisabledFor(index) {
5215
+ return Array.isArray(this.disableNext)
5216
+ ? !!this.disableNext[index] // per-step
5217
+ : index === this.activeStep && !!this.disableNext; // only active step
5218
+ }
5219
+ /** Render the semantic heading element */
5220
+ renderHeading(title) {
5221
+ const Tag = this.headingLevel;
5222
+ return index.h(Tag, null, title);
5223
+ }
5199
5224
  render() {
5200
5225
  const steps = this.parsedSteps;
5201
5226
  if (this.type === 'linear') {
5202
- return (index.h("div", null, index.h("div", { class: "steps" }, steps.map((step, index$1) => (index.h("div", { class: "step mb-28", key: index$1 }, index.h("h3", { onClick: () => this.handleStepClick(index$1) }, step.title), this.activeStep === index$1 && (index.h("div", { class: "content" }, index.h("slot", { name: `step-${index$1}` }, index.h("div", { class: index$1 === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content })), index.h("eds-button", { label: index$1 === steps.length - 1 ? 'Finish' : 'Continue', intent: "primary", class: "next-btn", onClick: this.handleNext }), index.h("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: index$1 === 0, "extra-class": index$1 === 0 ? 'hidden' : 'ml-8 block' })))))))));
5227
+ return (index.h("div", { class: "steps" }, steps.map((step, index$1) => {
5228
+ const isLast = index$1 === steps.length - 1;
5229
+ return (index.h("div", { class: "step mb-28", key: index$1 }, this.renderHeading(step.title), this.activeStep === index$1 && (index.h("div", { class: "content grid gap-y-16" }, index.h("slot", { name: `step-${index$1}` }, index.h("div", { class: isLast ? 'f-body-02 text-lighter' : 'f-body-02 text-lighter', innerHTML: step.content })), index.h("div", { class: "flex items-center mt-16" }, index.h("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index$1 === 0, class: index$1 === 0 ? 'hidden' : 'block', size: "small" }), index.h("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index$1), size: "small", class: "ml-8" })), index.h("slot", { name: `actions-${index$1}` })))));
5230
+ })));
5203
5231
  }
5204
- // Static mode: show all steps with their content, no navigation buttons.
5205
- return (index.h("div", { class: "steps" }, steps.map((step, index$1) => (index.h("div", { class: "step mb-28", key: index$1 }, index.h("h3", null, step.title), index.h("div", { class: "content" }, index.h("slot", { name: `step-${index$1}` }, index.h("div", { class: index$1 === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content }))))))));
5232
+ // Static: no navigation buttons
5233
+ return (index.h("div", { class: "steps" }, steps.map((step, index$1) => (index.h("div", { class: "step mb-28", key: index$1 }, this.renderHeading(step.title), index.h("div", { class: "content" }, index.h("slot", { name: `step-${index$1}` }, index.h("div", { class: index$1 === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content }))))))));
5206
5234
  }
5207
5235
  get el() { return index.getElement(this); }
5208
5236
  static get watchers() { return {
@@ -5211,22 +5239,36 @@ const EdsSteps = class {
5211
5239
  };
5212
5240
  EdsSteps.style = EdsStepsStyle0;
5213
5241
 
5214
- 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))}";
5242
+ 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}";
5215
5243
  const EdsStepsV2Style0 = edsStepsV2Css;
5216
5244
 
5217
5245
  const EdsStepsV2 = class {
5218
5246
  constructor(hostRef) {
5219
5247
  index.registerInstance(this, hostRef);
5220
5248
  this.step = index.createEvent(this, "step", 7);
5249
+ this.finished = index.createEvent(this, "finished", 7);
5250
+ this.next = index.createEvent(this, "next", 7);
5251
+ this.back = index.createEvent(this, "back", 7);
5221
5252
  this.handleNext = () => {
5222
- this.activeStep = this.activeStep + 1;
5223
- if (this.activeStep < this.parsedSteps.length) {
5253
+ const lastIndex = this.parsedSteps.length - 1;
5254
+ if (this.activeStep >= lastIndex) {
5255
+ // Finish
5256
+ this.finished.emit();
5257
+ return;
5258
+ }
5259
+ // Next
5260
+ const target = this.activeStep + 1;
5261
+ this.next.emit(target);
5262
+ if (!this.disableNext) {
5263
+ this.activeStep = target;
5224
5264
  this.step.emit(this.activeStep);
5225
5265
  }
5226
5266
  };
5227
5267
  this.handleBack = () => {
5228
5268
  if (this.activeStep > 0) {
5229
- this.activeStep = this.activeStep - 1;
5269
+ const target = this.activeStep - 1;
5270
+ this.back.emit(target);
5271
+ this.activeStep = target;
5230
5272
  this.step.emit(this.activeStep);
5231
5273
  }
5232
5274
  };
@@ -5236,6 +5278,11 @@ const EdsStepsV2 = class {
5236
5278
  this.imageWidth = undefined;
5237
5279
  this.bg = true;
5238
5280
  this.message = undefined;
5281
+ this.nextLabel = 'Next';
5282
+ this.backLabel = 'Back';
5283
+ this.finishLabel = 'Finish';
5284
+ this.disableNext = false;
5285
+ this.headingLevel = 'h4';
5239
5286
  this.activeStep = 0;
5240
5287
  }
5241
5288
  componentDidLoad() {
@@ -5274,24 +5321,22 @@ const EdsStepsV2 = class {
5274
5321
  'border-softer effect-focus-within relative rounded-lg border-2'
5275
5322
  ].join(' ');
5276
5323
  }
5277
- handleStepClick(index) {
5278
- this.step.emit(index);
5279
- // In linear mode, update the active step on header click.
5280
- if (this.type === 'linear') {
5281
- this.activeStep = index;
5282
- }
5283
- }
5284
5324
  /**
5285
5325
  * Parses the steps property into an array of Step objects.
5286
5326
  */
5287
5327
  get parsedSteps() {
5288
5328
  return sharedUtils.parseData(this.steps);
5289
5329
  }
5330
+ /** Render the semantic heading element */
5331
+ renderHeading(title) {
5332
+ const Tag = this.headingLevel;
5333
+ return index.h(Tag, null, title);
5334
+ }
5290
5335
  render() {
5291
5336
  const steps = this.parsedSteps;
5292
- return (index.h("div", { key: 'bbcec2dd9a5096eb0cecf0d413892e5708822f52', class: this.articleClasses() }, this.imageSrc ? (index.h("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, index.h("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" }))) : (this.message && (index.h("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, index.h("div", { class: "p-24" }, index.h("span", { class: "text-inverse f-heading-04 " }, this.message))))), index.h("div", { key: 'db0618aad7d5986fcb0889f1c439be73f83a00df', class: "p-8" }, this.type === 'linear' ? (index.h("div", { class: "steps" }, steps.map((step, index$1) => (index.h("div", { class: index$1 === 0 ? 'step' : 'step space-y-16', key: index$1 }, index.h("h3", { onClick: () => this.handleStepClick(index$1) }, step.title), this.activeStep === index$1 && (index.h("div", { class: "content" }, index.h("slot", { name: `step-${index$1}` }, index.h("div", { class: index$1 === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content })), index.h("eds-button", { label: index$1 === steps.length - 1 ? 'Finish' : 'Continue', intent: "primary", class: "next-btn", onClick: this.handleNext }), index.h("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: index$1 === 0, "extra-class": index$1 === 0 ? 'hidden' : 'ml-8 block' })))))))) : (
5337
+ return (index.h("div", { key: '1ff00f17a85e9a3a9d7bef23694560acd77e7ee4', class: this.articleClasses() }, this.imageSrc ? (index.h("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, index.h("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" }))) : (this.message && (index.h("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, index.h("div", { class: "p-24" }, index.h("span", { class: "text-inverse f-heading-04 " }, this.message))))), index.h("div", { key: 'a0328e80df5d9447cfa5378eb9e45925f1f68c69', class: "pb-20 px-8" }, this.type === 'linear' ? (index.h("div", { class: "steps" }, steps.map((step, index$1) => (index.h("div", { class: index$1 === 0 ? 'step' : 'step space-y-16', key: index$1 }, this.renderHeading(step.title), this.activeStep === index$1 && (index.h("div", { class: "content grid gap-y-16" }, index.h("slot", { name: `step-${index$1}` }, index.h("div", { class: index$1 === steps.length - 1 ? 'f-body-02 text-lighter' : 'f-body-02 text-lighter', innerHTML: step.content })), index.h("div", { class: "flex items-center" }, index.h("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index$1 === 0, class: index$1 === 0 ? 'hidden' : 'block', size: "small" }), index.h("eds-button", { label: index$1 === 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" }))))))))) : (
5293
5338
  // Static mode: show all steps with their content.
5294
- index.h("div", { class: "steps space-y-8" }, steps.map((step, index$1) => (index.h("div", { class: "step", key: index$1 }, index.h("h3", { onClick: () => this.handleStepClick(index$1) }, step.title), index.h("div", { class: "content" }, index.h("slot", { name: `step-${index$1}` }, index.h("div", { class: index$1 === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content })))))))))));
5339
+ index.h("div", { class: "steps space-y-8" }, steps.map((step, index$1) => (index.h("div", { class: "step", key: index$1 }, this.renderHeading(step.title), index.h("div", { class: "content" }, index.h("slot", { name: `step-${index$1}` }, index.h("div", { class: index$1 === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter', innerHTML: step.content })))))))))));
5295
5340
  }
5296
5341
  get el() { return index.getElement(this); }
5297
5342
  static get watchers() { return {
@@ -5350,17 +5395,17 @@ const EdsSwitch = class {
5350
5395
  : this.labelOff
5351
5396
  : 'Toggle switch'
5352
5397
  : undefined;
5353
- return (index.h("div", { key: 'f4c99a2ec360af6030de11698bab82833b3f415f', class: "switch-container" }, this.labelOff && (index.h("span", { key: '8bb8d063e744c194c0d44a0c371ae8224f9611cb', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), index.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: {
5398
+ return (index.h("div", { key: '95a833cbe8e736d7e747f6fdd8504dd8c169ea60', class: "switch-container" }, this.labelOff && (index.h("span", { key: 'a88de63c35409ab244a6cba5bd70a10728a08b2a', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), index.h("button", { key: 'd6573f05164f2b57063e9a97c3b983f32700bd7a', 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: {
5354
5399
  switch: true,
5355
5400
  'switch--checked': this.checked,
5356
5401
  'switch--disabled': this.disabled
5357
- }, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, index.h("span", { key: '2275930bc9909c0a95c6c10e28f715fe1afe9294', class: "switch-handle" })), this.labelOn && (index.h("span", { key: 'd789fd15943c1fadf1f87c55059261eaf5e05a8f', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
5402
+ }, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, index.h("span", { key: '35e6da3bb76779bfaad04d8990dec419524fb543', class: "switch-handle" })), this.labelOn && (index.h("span", { key: 'b14243d9d45dbdddb9473ad2c5696e07be9831d3', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
5358
5403
  }
5359
5404
  get el() { return index.getElement(this); }
5360
5405
  };
5361
5406
  EdsSwitch.style = EdsSwitchStyle0;
5362
5407
 
5363
- const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-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)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
5408
+ const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.p-4{padding:0.25rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-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)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
5364
5409
  const EdsTableStyle0 = edsTableCss;
5365
5410
 
5366
5411
  const EdsTable = class {
@@ -5488,7 +5533,7 @@ const EdsTable = class {
5488
5533
  }
5489
5534
  const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
5490
5535
  if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
5491
- paginationEl.addEventListener('page', (event) => this.handlePageChange(event.detail));
5536
+ paginationEl.addEventListener('page', (event) => this.handlePageChange(event.detail.value));
5492
5537
  paginationEl.setAttribute('listener-attached', 'true');
5493
5538
  }
5494
5539
  }
@@ -5537,7 +5582,9 @@ const EdsTable = class {
5537
5582
  return (index.h("eds-input-field", { name: `chc-${actionName}`, label: act.label, type: "checkbox", checked: checked, onChange: (e) => this.emitAction(act.name, row, e.target.checked) }));
5538
5583
  }
5539
5584
  // Let all action buttons be focusable naturally
5540
- return (index.h("eds-button", { label: act.label, icon: act.icon, pill: true, size: "small", intent: "ghost", tabIndex: 0, onClick: () => this.emitAction(act.name, row) }));
5585
+ const showLabel = act.showLabel === true;
5586
+ const btn = (index.h("eds-button", { icon: act.icon, label: showLabel ? act.label : null, iconPos: "left", pill: true, size: "small", intent: "ghost", tabIndex: 0, onClick: () => this.emitAction(act.name, row) }));
5587
+ return showLabel ? btn : index.h("eds-tooltip", { content: act.label }, btn);
5541
5588
  }
5542
5589
  emitAction(actionName, row, checked) {
5543
5590
  analytics.sendAnalytics({
@@ -5583,7 +5630,7 @@ const EdsTable = class {
5583
5630
  const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
5584
5631
  const paginatedRows = this.getPaginatedRows();
5585
5632
  const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
5586
- return (index.h("div", { key: '87e7cc3c87618ede91bb51d7a07cd597a438d6c5' }, this.searchEnabled && (index.h("div", { key: '6b77700a913e272eef4c932d40c5c5d001ff6b5c' }, index.h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (event) => this.handleSearch(event) }))), index.h("div", { key: '6f2ffc7a3ba2cc8e8194670a7ecb9e237f7dc60a', class: "mt-20" }, index.h("table", { key: '0227d3029f30ab9928cd01ba8dc2eccde2073f47', class: "block overflow-x-auto mt-6 p-0" }, index.h("thead", { key: 'c1f844d8413b596d5ca07d6b79ebd36c8a17f51f' }, index.h("tr", { key: 'caadaaf66314e3ea7d47a748b6e899389a7e2d55', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
5633
+ return (index.h("div", { key: '67cfdabc741af13585699e43e67ba0d204a60706' }, this.searchEnabled && (index.h("div", { key: '208240b9832f9b2e9645cc9d7315a43bd47b54b3' }, index.h("eds-input-field", { key: 1, icon: "search", name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (event) => this.handleSearch(event) }))), index.h("div", { key: '893924497d1535b7d29bc0b64ba48f4a3e366c43', class: "mt-20" }, index.h("table", { key: 'a019fa4f2886d4c2aa4bddc88dc7b6d7aa63fdcb', class: "block overflow-x-auto mt-6 p-0" }, index.h("thead", { key: 'a6360fea59c605878e443a23cf45d0f8a9644140' }, index.h("tr", { key: '09702e8838f32c52bf6314b59ec598c6fa55d609', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
5587
5634
  var _a;
5588
5635
  if (col === 'actions') {
5589
5636
  return (index.h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
@@ -5592,7 +5639,7 @@ const EdsTable = class {
5592
5639
  return (index.h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col)));
5593
5640
  }
5594
5641
  return null;
5595
- }))), index.h("tbody", { key: 'da9286063f16a5c346ce8854361cb15573166a19' }, paginatedRows.map((row) => (index.h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
5642
+ }))), index.h("tbody", { key: '5cdb3697e6c84921a823b40714a497f02c82e360' }, paginatedRows.map((row) => (index.h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
5596
5643
  var _a;
5597
5644
  if (col === 'actions') {
5598
5645
  return (index.h("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${columnWidth - 4}px` } }, index.h("div", { role: "toolbar", "aria-label": "Row actions", onKeyDown: this.onActionKeyDown, style: {
@@ -5607,7 +5654,7 @@ const EdsTable = class {
5607
5654
  return (index.h("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.renderCell(row[col], col)));
5608
5655
  }
5609
5656
  return null;
5610
- }))))))), this.shouldEnablePagination() && (index.h("div", { key: 'b7e7991225cf9fb16ca882dc42c7adead202aac5', class: "mt-20" }, index.h("eds-pagination", { key: '011f209f89300357e6052ee4d118f353419d5a45', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
5657
+ }))))))), this.shouldEnablePagination() && (index.h("div", { key: 'f5af2cd6e65c3ed55ec2810ec4b1e3f891866271', class: "mt-20" }, index.h("eds-pagination", { key: '32965384707df502fb197712c73bb290e38ce040', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
5611
5658
  }
5612
5659
  get hostEl() { return index.getElement(this); }
5613
5660
  static get watchers() { return {
@@ -5782,12 +5829,12 @@ const EdsTabs = class {
5782
5829
  }
5783
5830
  }
5784
5831
  render() {
5785
- return (index.h("div", { key: 'e3bd802f08f460d5f3e89860669fefe2a8006e59', id: `${this.identifier}` }, index.h("div", { key: 'bcbd4afb8febec0520075c8e34269f184e2d9738', class: "scroller-x overflow-x-auto relative z-[1] mx-auto px-16 pt-8 lg:px-28 after:border-soft before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, index.h("nav", { key: '32e93b3ee6831918fd863fb23f1a5af1ae979201', role: "tablist", ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index$1) => {
5832
+ return (index.h("div", { key: '7cb51cf475d45ee3e43877ee4d42565f5930613a', id: `${this.identifier}` }, index.h("div", { key: '4f3c6d23f9084f07e5728b72310b96798d20b724', class: "scroller-x overflow-x-auto relative z-[1] mx-auto px-16 pt-8 lg:px-28 after:border-soft before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, index.h("nav", { key: '4d55e72e9f437cef8be06931445f619196a973a7', role: "tablist", ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index$1) => {
5786
5833
  const TabComponent = 'button';
5787
5834
  const tabProps = this.getTabOptions(tab.active, index$1);
5788
5835
  const isActive = index$1 === this.activeIndex;
5789
5836
  return (index.h(TabComponent, Object.assign({}, tabProps, { type: "button", role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabIndex: isActive ? 0 : -1, "aria-label": tab.ariaLabel || tab.label, "aria-controls": `panel-${index$1}`, id: `tab-${index$1}`, ref: (el) => this.setTabRef(el, index$1), onClick: () => this.handleTabClick(index$1, tab.label, true), onKeyDown: (e) => this.onKeyDown(e, index$1) }), tab.label || tab.ariaLabel));
5790
- }))), index.h("div", { key: 'ffe610574d342933121cbaca9bcb8fb483fde60b', class: "tab-panels" }, this.parsedTabs.map((_, index$1) => (index.h("div", { role: "tabpanel", id: `panel-${index$1}`, "aria-labelledby": `tab-${index$1}`, hidden: index$1 !== this.activeIndex, tabIndex: index$1 === this.activeIndex ? 0 : -1, class: "effect-focus" }, index.h("slot", { name: `panel-${index$1}` })))))));
5837
+ }))), index.h("div", { key: 'e75f877da39c25e912853fea5dc2438fc15c67b5', class: "tab-panels" }, this.parsedTabs.map((_, index$1) => (index.h("div", { role: "tabpanel", id: `panel-${index$1}`, "aria-labelledby": `tab-${index$1}`, hidden: index$1 !== this.activeIndex, tabIndex: index$1 === this.activeIndex ? 0 : -1, class: "effect-focus" }, index.h("slot", { name: `panel-${index$1}` })))))));
5791
5838
  }
5792
5839
  get el() { return index.getElement(this); }
5793
5840
  static get watchers() { return {
@@ -5832,7 +5879,7 @@ const EdsTag = class {
5832
5879
  }
5833
5880
  render() {
5834
5881
  const classes = tagStyles({ intent: this.intent, size: this.size });
5835
- return index.h("span", { key: '939fafa4bc525b747956931f49b27e6125ecbb34', class: classes }, this.label);
5882
+ return index.h("span", { key: 'e3fe041e8783a7d1bb5a281eb154e3c07851da38', class: classes }, this.label);
5836
5883
  }
5837
5884
  };
5838
5885
  EdsTag.style = EdsTagStyle0;
@@ -5908,13 +5955,48 @@ const EdsToast = class {
5908
5955
  };
5909
5956
  EdsToast.style = EdsToastStyle0;
5910
5957
 
5958
+ const edsTooltipCss = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.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)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{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-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))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.top-full{top:100%}.bottom-full{bottom:100%}.right-full{right:100%}.left-full{left:100%}.mr-2{margin-right:0.125rem}.ml-2{margin-left:0.125rem}.mt-2{margin-top:0.125rem}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}.max-w-\\[20rem\\]{max-width:20rem}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.w-full{width:100%}";
5959
+ const EdsTooltipStyle0 = edsTooltipCss;
5960
+
5961
+ const EdsTooltip = class {
5962
+ constructor(hostRef) {
5963
+ index.registerInstance(this, hostRef);
5964
+ this.content = undefined;
5965
+ this.position = 'top';
5966
+ }
5967
+ /** fire analytics on every hover */
5968
+ handleHover() {
5969
+ analytics.sendAnalytics({
5970
+ category: 'ui-component',
5971
+ tag: this.el.tagName.toLowerCase(),
5972
+ name: this.content.toLowerCase(),
5973
+ action: 'hover'
5974
+ });
5975
+ }
5976
+ render() {
5977
+ const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
5978
+ return (index.h("div", { key: '135df7d17db03fb3bb7bbcc50ad9ee5d84a2bca2', class: "relative w-full inline-block group" }, index.h("slot", { key: '4c12874eeb942e33f9c62ea6f1077fd051f683b6' }), index.h("div", { key: '8bb7173d16889b2ae550dc0269d9e47e1dae00ac', class: `absolute ${positionClass}
5979
+ rounded-xs bg-strongest text-inverse
5980
+ f-ui-03-light pointer-events-none
5981
+ z-10 px-4 opacity-0 transition-opacity duration-150 ease-in-out
5982
+ group-hover:opacity-100 whitespace-normal break-words`, role: "tooltip" }, this.content)));
5983
+ }
5984
+ get el() { return index.getElement(this); }
5985
+ };
5986
+ EdsTooltip.style = EdsTooltipStyle0;
5987
+
5911
5988
  const edsUserCss = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.text-default{color:var(--black)}.min-w-\\[280px\\]{min-width:280px}.p-8{padding:0.5rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.gap-y-8{row-gap:0.5rem}.pb-16{padding-bottom:1rem}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1 )}.max-w-full{max-width:100%}.w-full{width:100%}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-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)}.text-light{color:var(--grey-700)}.mt-4{margin-top:0.25rem}.mt-16{margin-top:1rem}";
5912
5989
  const EdsUserStyle0 = edsUserCss;
5913
5990
 
5914
5991
  const EdsUser = class {
5915
5992
  constructor(hostRef) {
5916
5993
  index.registerInstance(this, hostRef);
5994
+ this.handleDropdown = (e) => {
5995
+ this.expanded = e.detail.expanded;
5996
+ };
5917
5997
  this.user = undefined;
5998
+ this.intent = 'tertiary';
5999
+ this.expanded = false;
5918
6000
  }
5919
6001
  /**
5920
6002
  * Helper getter to ensure we work with a User object.
@@ -5940,7 +6022,8 @@ const EdsUser = class {
5940
6022
  }
5941
6023
  render() {
5942
6024
  const user = this.parsedUser;
5943
- return (index.h("div", { key: '8a1f10cc85d8e2707042c85bc597b76fb2d25da4', class: "block" }, index.h("div", { key: 'a744de3d113920b8ff0d01ce273672b2bff57c97', class: "flex items-center" }, index.h("eds-dropdown", { key: 'e9230372d79936a785050ebb3e41f40e73282a57', label: `Hi, ${user.preferred_username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, index.h("div", { key: '7d4bd0ee0985c840a18764cac784726ff1c987fb', class: "min-w-[280px] p-8" }, index.h("div", { key: '603d6807988dd79cd4e7827918ff8932d8463fc3', class: "flex gap-x-16" }, index.h("eds-avatar", { key: '65ba89139cb6e3b6cb90c2072eb68cc7dc1da49c', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "grey" }), index.h("div", { key: 'df35b758918ebccbdfe6630bd356e647522404e1', class: "max-w-full" }, user.name && index.h("p", { key: '7174f34445bb1a0b77a3c1b893421bd104832485', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && index.h("p", { key: '72d853f5014c03803dce7aa0a74d96847ed8c875', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && index.h("p", { key: 'e406e2f3ca8504220ee9586a1d176c15c7236502', class: "f-ui-03-light text-light mt-4" }, user.email))), index.h("div", { key: '8fd3b42ab4eb3d1d70a0b827e3a03af8503c55d1', class: "text-default flex w-full flex-col gap-y-8" }, index.h("slot", { key: '6a477155c256543b7793947d52feb3f5abb0df6e' })))))));
6025
+ const iconName = this.expanded ? 'chevron-down' : 'chevron-right';
6026
+ return (index.h("div", { key: '965387104c4bd6cd3223c08f16d90146c098594c', class: "block" }, index.h("div", { key: '37fe5539cb058112ebe0d910439acb55b5abccd8', class: "flex items-center" }, index.h("eds-dropdown", { key: '17afc8dbae191aec1202ba04d85c41ed656a8c5b', label: `Hi, ${user.preferred_username}`, intent: this.intent, "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: iconName, class: "text-default", onDropdown: this.handleDropdown }, index.h("div", { key: '0228c1728b0b73e2504d2608339f9be408be09b8', class: "min-w-[280px] p-8" }, index.h("div", { key: 'b83148ff8249bde91842b036da5506f9f5cbb145', class: "flex gap-x-16" }, index.h("eds-avatar", { key: '243a05bae2e4e592dc386b1897d824232d0bcfa6', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "black" }), index.h("div", { key: '6938f54621aa89e61aa6639e8c88af4e262e0fec', class: "max-w-full" }, user.name && index.h("p", { key: '224ce5cf6819a9dd0c3794410a94da30cc4213bf', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && index.h("p", { key: '096ac761149763ef4305ef5e9bf1f4b593a0fe4f', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && index.h("p", { key: '79f7da3c6c5efc1f521991c403184cf050b3d2e7', class: "f-ui-03-light text-light mt-4" }, user.email))), index.h("div", { key: '52ce98bcc290902605ebd427ee8ab72ac9af3d62', class: "text-default flex w-full flex-col gap-y-8" }, index.h("slot", { key: '88d1b250c434830347e0eb813214382ce899c485' })))))));
5944
6027
  }
5945
6028
  get hostEl() { return index.getElement(this); }
5946
6029
  };
@@ -5978,4 +6061,5 @@ exports.eds_table = EdsTable;
5978
6061
  exports.eds_tabs = EdsTabs;
5979
6062
  exports.eds_tag = EdsTag;
5980
6063
  exports.eds_toast = EdsToast;
6064
+ exports.eds_tooltip = EdsTooltip;
5981
6065
  exports.eds_user = EdsUser;