@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
@@ -56,13 +56,11 @@ export class EdsFooter {
56
56
  * Renders the footer component with optional sections and elements,
57
57
  * including social network links, a Horizon Europe funding acknowledgment, and
58
58
  * legal links such as "Cookies Preferences" and copyright information.
59
- *
60
- * @returns {JSX.Element} The rendered JSX for the footer component.
61
59
  */
62
60
  render() {
63
- return (h("footer", { key: '4912d7994a636d5159d863339f0119e7b6bb1bc3' }, this.social ? (h("div", { class: "border-softest border-t-2 pt-20 md:pt-28" }, h("div", { class: "container pb-20" }, h("div", { class: "grid-layout" }, h("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, h("eds-social-networks", { class: "mt-28" })))))) : null, h("div", { key: 'fb1db2c19f29a0fd1474565759992be78c404251', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, h("div", { key: 'c7c6c6eb43f2ccb00df8b05247120763b3f665d3', class: "container flex items-center gap-20 lg:flex-nowrap" }, h("div", { key: '45a29c7988edbf99ef5573dc77c9cc9a22faa666', class: "flex items-center gap-x-12" }, h("a", { key: '0fbc8e7d275a07af6da8b520bddf62f4c13aecac', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en", "aria-label": "Learn about Horizon Europe funding" }, h("eds-img", { key: 'ec9e972f19d34cb13ea2022ab09ab6373d54be27', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), h("div", { key: '0281a7e09166bbd2e02913467fe3235585d0bf0a' }, h("div", { key: '97b96a7f6718cbc79ff98874e5dc90d6e1ed614e', class: "f-ui-04 text-light" }, h("p", { key: '810b11a720bdcb92ce587a125ac8d026f31e9872' }, this.fundedBy), h("div", { key: '2973f13cc831fa3d1131b182958fa425b94897fd', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, h("span", { key: 'b4cb01b0601c8117ae427fc5ab9c43c20edc6536', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4" }, "\u00A9 ", this.rightsReserved), this.enableCookiesSettings ? (h("eds-link", { label: this.cookiesPreferences, intent: "underline", "extra-class": "f-ui-04", onClick: () => {
61
+ return (h("footer", { key: '844c47f7e5119a577b03d1bf4bb598e891d7f8c7' }, this.social ? (h("div", { class: "border-softest border-t-2 pt-20 md:pt-28" }, h("div", { class: "container pb-20" }, h("div", { class: "grid-layout" }, h("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, h("eds-social-networks", { class: "mt-28" })))))) : null, h("div", { key: '0a6f03f13cf5513758740ce6f3d3357cac413826', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, h("div", { key: '1751d052c529e46de47bbe09ef24621b546b1514', class: "container flex items-center gap-20 lg:flex-nowrap" }, h("div", { key: '86b3c5fac384d1ae0f310d43f9a4492ce96866cf', class: "flex items-center gap-x-12" }, h("a", { key: '7fed16c8a7bb7c15ea59438427987303a5a0ae14', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en", "aria-label": "Learn about Horizon Europe funding" }, h("eds-img", { key: '491b2691d011359df1dc24a2408347574a893ca8', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), h("div", { key: '50e5d853ee86066c932dd5fa3f04706d21b0d3aa' }, h("div", { key: 'ba36e26f29e1aee7d7da4cd91235419b18ab813a', class: "f-ui-04 text-light" }, h("p", { key: '120302d9cdad309da91bcd9f82e81f707f5f5b48' }, this.fundedBy), h("div", { key: '222a27fb7f085750312654c11d03793f02e29676', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, h("span", { key: '56db11dc4295c21c5e9d54cbc5568c5889f2dbb9', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4" }, "\u00A9 ", this.rightsReserved), this.enableCookiesSettings ? (h("eds-link", { label: this.cookiesPreferences, intent: "underline", "extra-class": "f-ui-04", onClick: () => {
64
62
  this.toggleCookiesConsent();
65
- } })) : null))), h("div", { key: 'd0b26e1911f55b44fb8a5253bab62b8db9141411', class: "ml-auto pl-12" }, this.enableScrollTop ? (h("div", { id: "toTop", class: "transition-all transition duration-75 opacity-0" }, h("eds-button", { id: "backToTop", "aria-label": this.backToTopAriaLabel, intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop, tabindex: "-1" }))) : null)))));
63
+ } })) : null))), h("div", { key: '221f15b6c92e91835dcc2efa3d2247b055690a22', class: "ml-auto pl-12" }, this.enableScrollTop ? (h("div", { id: "toTop", class: "transition-all transition duration-75 opacity-0" }, h("eds-button", { id: "backToTop", "aria-label": this.backToTopAriaLabel, intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop, tabindex: "-1" }))) : null)))));
66
64
  }
67
65
  static get is() { return "eds-footer"; }
68
66
  static get encapsulation() { return "shadow"; }
@@ -194,8 +192,11 @@ export class EdsFooter {
194
192
  "required": false,
195
193
  "optional": false,
196
194
  "docs": {
197
- "tags": [],
198
- "text": ""
195
+ "tags": [{
196
+ "name": "type",
197
+ "text": "{string}"
198
+ }],
199
+ "text": "Controls the display of the \"Cookies preferences\" link."
199
200
  },
200
201
  "attribute": "enable-cookies-settings",
201
202
  "reflect": false,
@@ -25,6 +25,14 @@
25
25
  letter-spacing: var(--f-body-01-letterSpacing);
26
26
  }
27
27
 
28
+ .f-body-02 {
29
+ font-family: var(--f-body-02-fontFamily);
30
+ font-weight: var(--f-body-02-fontWeight);
31
+ font-size: var(--f-body-02-fontSize);
32
+ line-height: var(--f-body-02-lineHeight);
33
+ letter-spacing: var(--f-body-02-letterSpacing);
34
+ }
35
+
28
36
  .f-body-01 b, .f-body-01 strong {
29
37
  font-weight: var(--f-body-01---bold-weight, bold);
30
38
  }
@@ -41,6 +49,18 @@
41
49
  letter-spacing: var(--f-heading-04-letterSpacing);
42
50
  }
43
51
 
52
+ .f-heading-05 {
53
+ font-family: var(--f-heading-05-fontFamily);
54
+ font-weight: var(--f-heading-05-fontWeight);
55
+ font-size: var(--f-heading-05-fontSize);
56
+ line-height: var(--f-heading-05-lineHeight);
57
+ letter-spacing: var(--f-heading-05-letterSpacing);
58
+ }
59
+
60
+ .text-light {
61
+ color: var(--grey-700);
62
+ }
63
+
44
64
  .rounded-sm {
45
65
  border-radius: 8px;
46
66
  }
@@ -96,4 +116,56 @@
96
116
  .border-group {
97
117
  border-left: 1px solid var(--soft-color, #ddd);
98
118
  padding-left: 1rem;
119
+ }
120
+
121
+ .bg-inverse {
122
+ background-color: var(--white);
123
+ }
124
+
125
+ .effect-shadow {
126
+ transition-property: box-shadow;
127
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
128
+ transition-duration: 300ms;
129
+ transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
130
+ }
131
+
132
+ .shadow-hover {
133
+ --tw-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);
134
+ --tw-shadow-colored: 0px 0px 16px var(--tw-shadow-color);
135
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
136
+ }
137
+
138
+ .cursor-pointer {
139
+ cursor: pointer;
140
+ }
141
+
142
+ .effect-focus-within {
143
+ outline-width: 3px;
144
+ outline-offset: 2px;
145
+ outline-color: var(--green-500);
146
+ }
147
+
148
+ .effect-focus-within:focus-within {
149
+ outline-style: solid;
150
+ }
151
+
152
+ .relative {
153
+ position: relative;
154
+ }
155
+
156
+ .rounded-lg {
157
+ border-radius: 16px;
158
+ }
159
+
160
+ .px-16 {
161
+ padding-left: 1rem;
162
+ padding-right: 1rem;
163
+ }
164
+
165
+ .pb-16 {
166
+ padding-bottom: 1rem;
167
+ }
168
+
169
+ .p-32 {
170
+ padding: 2rem;
99
171
  }
@@ -19,13 +19,17 @@ import { getFormInitData } from "../../utils/eds-form/formUtils";
19
19
  export class EdsForm {
20
20
  constructor() {
21
21
  this.name = 'eds-form';
22
+ this.title = undefined;
23
+ this.description = undefined;
22
24
  this.setFormUrl = true;
23
25
  this.formBtn = true;
24
26
  this.formBtnLabel = 'Submit';
27
+ this.buttonIntent = 'primary';
25
28
  this.errorMessage = 'Some fields in your form are incorrect.';
26
29
  this.fields = [];
27
30
  this.groups = [];
28
31
  this.initData = {};
32
+ this.formStyle = 'default';
29
33
  this.values = {};
30
34
  this.isSubmitting = false;
31
35
  this.hasError = false;
@@ -323,10 +327,15 @@ export class EdsForm {
323
327
  }
324
328
  get groupedFields() {
325
329
  const map = {};
326
- // initialize buckets for each group
330
+ // initialize buckets for each declared group
327
331
  this.parsedGroups.forEach((g) => (map[g.id] = []));
332
+ // always keep an ungrouped bucket
328
333
  map['__ungrouped'] = [];
334
+ // only bucket fields that are currently visible
329
335
  this.parsedFields.forEach((f) => {
336
+ if (!this.isFieldVisible(f)) {
337
+ return;
338
+ }
330
339
  const gid = f.groupId || '__ungrouped';
331
340
  if (!map[gid]) {
332
341
  map[gid] = [];
@@ -347,7 +356,7 @@ export class EdsForm {
347
356
  return (h("div", { class: "form-group rating-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `rating-${field.name}`, label: field.label, disabled: field.disabled, required: field.required }))), h("eds-rating", { id: `rating-${field.name}`, "rating-type": field.ratingType, "rating-count": field.ratingCount, "selected-rating": val, onRating: (e) => this.handleRating(e, field) }), h("div", { class: "mt-6" }, 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 }))));
348
357
  }
349
358
  else if (field.type === 'nps') {
350
- return (h("div", { class: "form-group nps-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), h("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), h("div", { class: "mt-6" }, 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 }))));
359
+ return (h("div", { class: "form-group nps-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), h("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), h("div", { class: "mt-6" }, 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] }))));
351
360
  }
352
361
  return (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) }));
353
362
  }
@@ -358,9 +367,13 @@ export class EdsForm {
358
367
  const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
359
368
  //const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
360
369
  const buckets = this.groupedFields;
361
- return (h("form", { key: 'a66997f39b5be347a4d502f77bcd1da9d1a274ac', ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, h("div", { key: 'f8800d2ebe64b3279234ab8ebe20e535dc822872' }, h("slot", { key: 'b4194073b281dec35a79a6cc974fdf7476a67807' }), hiddenFields.map((field, index) => (h("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
370
+ // build the shadow/bg classes if formStyle="shadow"
371
+ const styleClasses = this.formStyle === 'shadow'
372
+ ? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
373
+ : '';
374
+ return (h("form", { key: 'ecf49eb81f18b444d059d3bdea4600f4ae594ea9', class: styleClasses, ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, h("div", { key: '65137fb770f274431c7906326cdf49e0fee73b18', class: "flex flex-col gap-y-24" }, this.title && (h("span", { key: 'e4c5b4a7883c4569a657cc234f18f995480ec8df', role: "heading", class: "f-heading-04" }, this.title)), this.description && h("span", { key: '65528e4600127f1cff4ce0e5be6f8a6bddc4c864', class: "f-body-02 text-light" }, this.description), h("slot", { key: '6230035a050386763723c2b60bd5e81b912762d7' })), hiddenFields.map((field, index) => (h("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
362
375
  .filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
363
- .map((g) => (h("div", { class: "container mt-20", key: g.id }, h("span", { class: "f-body-02" }, h("b", null, g.title)), h("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), h("div", { key: '2fc83ebb6b0a472f6853618602c37ee83adae9ff', class: "flex flex-col mt-20 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f)))), this.formBtn && (h("div", { key: '91b569b1a4513945f3228c374ae45b52ea17f91d', class: "mt-32" }, h("eds-button", { key: '1a8feaecd5a7f292f8aeae3db900700b4f7fb8d4', intent: "primary", label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
376
+ .map((g) => (h("div", { class: "container mt-32", key: g.id }, h("span", { class: "f-body-02" }, h("b", null, g.title)), h("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), h("div", { key: '8116d30248f8461a842365470da9915200531028', class: "flex flex-col mt-32 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f))), this.formBtn && (h("div", { key: 'e2f1d3ca6a9f6a3b44c45e576150505c49e41dd1', class: "mt-32" }, h("eds-button", { key: 'e312bf08b5db526c00497fafaa9476a225919aaf', intent: this.buttonIntent, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
364
377
  }
365
378
  static get is() { return "eds-form"; }
366
379
  static get encapsulation() { return "shadow"; }
@@ -394,6 +407,40 @@ export class EdsForm {
394
407
  "reflect": false,
395
408
  "defaultValue": "'eds-form'"
396
409
  },
410
+ "title": {
411
+ "type": "string",
412
+ "mutable": false,
413
+ "complexType": {
414
+ "original": "string",
415
+ "resolved": "string",
416
+ "references": {}
417
+ },
418
+ "required": false,
419
+ "optional": true,
420
+ "docs": {
421
+ "tags": [],
422
+ "text": "The title displayed above the form."
423
+ },
424
+ "attribute": "title",
425
+ "reflect": false
426
+ },
427
+ "description": {
428
+ "type": "string",
429
+ "mutable": false,
430
+ "complexType": {
431
+ "original": "string",
432
+ "resolved": "string",
433
+ "references": {}
434
+ },
435
+ "required": false,
436
+ "optional": true,
437
+ "docs": {
438
+ "tags": [],
439
+ "text": "The description displayed below the title."
440
+ },
441
+ "attribute": "description",
442
+ "reflect": false
443
+ },
397
444
  "setFormUrl": {
398
445
  "type": "boolean",
399
446
  "mutable": false,
@@ -448,6 +495,24 @@ export class EdsForm {
448
495
  "reflect": false,
449
496
  "defaultValue": "'Submit'"
450
497
  },
498
+ "buttonIntent": {
499
+ "type": "string",
500
+ "mutable": false,
501
+ "complexType": {
502
+ "original": "'primary' | 'secondary' | 'tertiary' | 'ghost'",
503
+ "resolved": "\"ghost\" | \"primary\" | \"secondary\" | \"tertiary\"",
504
+ "references": {}
505
+ },
506
+ "required": false,
507
+ "optional": true,
508
+ "docs": {
509
+ "tags": [],
510
+ "text": "Variant/style intent for the submit button (e.g., primary, secondary, tertiary, ghost)."
511
+ },
512
+ "attribute": "button-intent",
513
+ "reflect": false,
514
+ "defaultValue": "'primary'"
515
+ },
451
516
  "errorMessage": {
452
517
  "type": "string",
453
518
  "mutable": false,
@@ -517,6 +582,24 @@ export class EdsForm {
517
582
  "text": "The init data the form will attempt to populate in the provided fields."
518
583
  },
519
584
  "defaultValue": "{}"
585
+ },
586
+ "formStyle": {
587
+ "type": "string",
588
+ "mutable": false,
589
+ "complexType": {
590
+ "original": "'default' | 'shadow'",
591
+ "resolved": "\"default\" | \"shadow\"",
592
+ "references": {}
593
+ },
594
+ "required": false,
595
+ "optional": false,
596
+ "docs": {
597
+ "tags": [],
598
+ "text": "Choose between default layout or an always-shadow style.\nWhen \"shadow\", the form gets the same effect-shadow + shadow-hover classes"
599
+ },
600
+ "attribute": "form-style",
601
+ "reflect": false,
602
+ "defaultValue": "'default'"
520
603
  }
521
604
  };
522
605
  }
@@ -4,6 +4,8 @@ export default {
4
4
  component: 'eds-form',
5
5
  argTypes: {
6
6
  name: { control: 'text', description: 'Form name', defaultValue: 'extended-form' },
7
+ title: { control: 'text', description: 'Form title displayed above the form' },
8
+ description: { control: 'text', description: 'Form description displayed below the title' },
7
9
  fields: {
8
10
  control: 'object',
9
11
  description: 'Form fields as JSON array'
@@ -21,23 +23,38 @@ export default {
21
23
  control: 'text',
22
24
  description: 'Form button Label',
23
25
  defaultValue: 'Validate'
26
+ },
27
+ buttonIntent: {
28
+ control: { type: 'select' },
29
+ options: ['primary', 'secondary', 'tertiary', 'ghost'],
30
+ description: 'Variant/style intent for the submit button'
31
+ },
32
+ formStyle: {
33
+ control: 'select',
34
+ options: ['default', 'shadow']
24
35
  }
25
36
  }
26
37
  };
27
38
  const Template = (args) => html `
28
39
  <eds-form
29
40
  name="${args.name}"
41
+ title="${args.title}"
42
+ description="${args.description}"
30
43
  .fields=${args.fields}
31
44
  .groups=${args.groups}
32
45
  .initData=${args.initData}
33
46
  .setFormUrl=${args.setFormUrl}
34
47
  form-btn="${args.formBtn}"
35
48
  form-btn-label="${args.formBtnLabel}"
49
+ button-intent="${args.buttonIntent}"
50
+ form-style="${args.formStyle}"
36
51
  ></eds-form>
37
52
  `;
38
53
  export const Default = Template.bind({});
39
54
  Default.args = {
40
55
  name: 'extended-form',
56
+ title: 'User Details',
57
+ description: 'Please fill out the form below.',
41
58
  fields: [
42
59
  { name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10, placeholder: 'Username' },
43
60
  { name: 'email', label: 'Email', type: 'email', required: true },
@@ -91,12 +108,17 @@ Default.args = {
91
108
  disabled: true
92
109
  }
93
110
  ],
111
+ setFormUrl: true,
94
112
  formBtn: true,
95
- formBtnLabel: 'Validate'
113
+ formBtnLabel: 'Validate',
114
+ buttonIntent: 'primary',
115
+ formStyle: 'default'
96
116
  };
97
117
  export const WithGroups = Template.bind({});
98
118
  WithGroups.args = {
99
119
  name: 'grouped-form',
120
+ title: 'Grouped Form',
121
+ description: 'Form with grouped fields',
100
122
  fields: [
101
123
  { name: 'firstName', label: 'First Name', type: 'text', required: true, groupId: 'personal' },
102
124
  { name: 'lastName', label: 'Last Name', type: 'text', required: true, groupId: 'personal' },
@@ -106,12 +128,17 @@ WithGroups.args = {
106
128
  { id: 'personal', title: 'Personal Info' },
107
129
  { id: 'comments', title: 'Comments' }
108
130
  ],
131
+ setFormUrl: true,
109
132
  formBtn: true,
110
- formBtnLabel: 'Submit'
133
+ formBtnLabel: 'Submit',
134
+ buttonIntent: 'secondary',
135
+ formStyle: 'default'
111
136
  };
112
137
  export const WithInitData = Template.bind({});
113
138
  WithInitData.args = {
114
139
  name: 'prefill-form',
140
+ title: 'Prefilled Form',
141
+ description: 'Form with initial values',
115
142
  fields: [
116
143
  { name: 'username', label: 'Username', type: 'text', required: true },
117
144
  { name: 'email', label: 'Email', type: 'email', required: true }
@@ -123,5 +150,7 @@ WithInitData.args = {
123
150
  },
124
151
  setFormUrl: false,
125
152
  formBtn: true,
126
- formBtnLabel: 'Save'
153
+ formBtnLabel: 'Save',
154
+ buttonIntent: 'ghost',
155
+ formStyle: 'default'
127
156
  };
@@ -84,7 +84,7 @@ export class EdsFrame {
84
84
  }
85
85
  }
86
86
  render() {
87
- return (h("div", { key: '9f5b6280292996b66fb3380678fae7748aba8cb3', class: this.articleClasses() }, h("div", { key: '6e4f6e0ce9b44fe94ff4622285258747503d9034', class: "effect-height flex items-center justify-between py-8 px-12" }, h("span", { key: '36bb5a7b005b4c23a7042e5cf06769efe29b07db', class: "f-ui-02" }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? (h("eds-link", { label: this.urlLabel, url: this.url, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), h("div", { key: '9d64e26eaa9e79d68e13d6a0faf67c8ca68d2097', class: "border-softer" }, this.iframeError ? (h("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (h("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
87
+ return (h("div", { key: '665bc189cd905a55a9c6ac31eb2ec82853552f34', class: this.articleClasses() }, h("div", { key: '6ad6183a94cd0cb26d3e5641c5e584e8afc652d7', class: "effect-height flex items-center justify-between py-8 px-12" }, h("span", { key: '85bd9a7a4475ca3664cadf17ef1e729643c758f6', class: "f-ui-02" }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? (h("eds-link", { label: this.urlLabel, url: this.url, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), h("div", { key: '4799d59442cabb05f3bfea26a02db22a429266e6', class: "border-softer" }, this.iframeError ? (h("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (h("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
88
88
  }
89
89
  static get is() { return "eds-frame"; }
90
90
  static get encapsulation() { return "shadow"; }
@@ -21,11 +21,16 @@ export class EdsFullscreenMenu {
21
21
  this.isMenuOpen = false;
22
22
  }
23
23
  /**
24
- * Listens for the toggleMenu event to open or close the menu.
25
- * This event is emitted by the eds-header component.
24
+ * Listens on `body` for `toggleheadermenu` to open/close the menu.
25
+ * The event detail should be a boolean (`true` = open, `false` = close).
26
+ *
27
+ * @example
28
+ * ```js
29
+ * document.body.dispatchEvent(new CustomEvent('toggleheadermenu', { detail: true }));
30
+ * ```
26
31
  */
27
32
  handleToggleMenu(event) {
28
- this.isMenuOpen = event.detail; // Set isMenuOpen based on the event payload
33
+ this.isMenuOpen = !!event.detail;
29
34
  }
30
35
  /** Opens the menu */
31
36
  openMenu() {
@@ -89,15 +94,23 @@ export class EdsFullscreenMenu {
89
94
  "type": "string",
90
95
  "mutable": false,
91
96
  "complexType": {
92
- "original": "string | { label: string; url: string; icon?: string; external?: boolean }[]",
93
- "resolved": "string | { label: string; url: string; icon?: string; external?: boolean; }[]",
94
- "references": {}
97
+ "original": "string | LinkItem[]",
98
+ "resolved": "LinkItem[] | string",
99
+ "references": {
100
+ "LinkItem": {
101
+ "location": "global",
102
+ "id": "global::LinkItem"
103
+ }
104
+ }
95
105
  },
96
106
  "required": false,
97
107
  "optional": false,
98
108
  "docs": {
99
- "tags": [],
100
- "text": "JSON string representing the links for primary navigation.\nEach link should include `label`, `url`, and optionally an `icon`."
109
+ "tags": [{
110
+ "name": "example",
111
+ "text": "links='[{\"label\":\"Home\",\"url\":\"/\"},{\"label\":\"Docs\",\"url\":\"/docs\",\"icon\":\"book\"}]'"
112
+ }],
113
+ "text": "Primary navigation links.\nAccepts a JSON string or array of objects `{ label, url, icon?, external? }`."
101
114
  },
102
115
  "attribute": "links",
103
116
  "reflect": false
@@ -113,8 +126,14 @@ export class EdsFullscreenMenu {
113
126
  "required": false,
114
127
  "optional": false,
115
128
  "docs": {
116
- "tags": [],
117
- "text": "JSON string representing the extra menu links a user wants for smaill screens navigation.\nEach link should include `label`, `url`."
129
+ "tags": [{
130
+ "name": "example",
131
+ "text": "menu-links='[{\"label\":\"Help\",\"url\":\"/help\"},{\"label\":\"Contact\",\"url\":\"/contact\"}]'"
132
+ }, {
133
+ "name": "attr",
134
+ "text": "menu-links"
135
+ }],
136
+ "text": "Secondary navigation links (extra menu items for small screens).\nAccepts a JSON string or array of objects `{ label, url }`."
118
137
  },
119
138
  "attribute": "menu-links",
120
139
  "reflect": false
@@ -130,8 +149,14 @@ export class EdsFullscreenMenu {
130
149
  "required": false,
131
150
  "optional": false,
132
151
  "docs": {
133
- "tags": [],
134
- "text": ""
152
+ "tags": [{
153
+ "name": "default",
154
+ "text": "\"/\""
155
+ }, {
156
+ "name": "attr",
157
+ "text": "home-url"
158
+ }],
159
+ "text": "URL for the logo link in the header."
135
160
  },
136
161
  "attribute": "home-url",
137
162
  "reflect": false,
@@ -148,8 +173,14 @@ export class EdsFullscreenMenu {
148
173
  "required": false,
149
174
  "optional": false,
150
175
  "docs": {
151
- "tags": [],
152
- "text": ""
176
+ "tags": [{
177
+ "name": "default",
178
+ "text": "false"
179
+ }, {
180
+ "name": "attr",
181
+ "text": "inverse-header"
182
+ }],
183
+ "text": "When true, uses an inverse (dark) header background."
153
184
  },
154
185
  "attribute": "inverse-header",
155
186
  "reflect": false,
@@ -170,8 +201,11 @@ export class EdsFullscreenMenu {
170
201
  "cancelable": true,
171
202
  "composed": true,
172
203
  "docs": {
173
- "tags": [],
174
- "text": "Event to signal menu open/close actions"
204
+ "tags": [{
205
+ "name": "event",
206
+ "text": "menuClose"
207
+ }],
208
+ "text": "Emitted when the menu is closed (via UI or resize)."
175
209
  },
176
210
  "complexType": {
177
211
  "original": "void",
@@ -56,7 +56,7 @@ export class EdsHeader {
56
56
  const classes = variantClasses[this.headerVariant] || variantClasses.default;
57
57
  // Logo color variant: default and inverse use 'color', strong uses 'color-white'
58
58
  const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
59
- return (h("header", { key: '812ad4427cbb3f4b0ca9e305870c35d63487dc59', class: `flex items-center justify-between relative z-10 ${classes}` }, h("div", { key: '531acdceb12ca45fea125091dee4d8a0ff39a10b', class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { key: 'bb2708b3c8eacc575117bfed404b7c9db4fd05e2', type: logoType, href: this.homeUrl })), this.parsedLinks && (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" }, h("ul", { key: 'fae258c468367837a9738bcbe2442709fdc601a0', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (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" })))))), h("slot", { key: '9588ef20e19fda76115074c39d902eebead3c845' }), this.menuEnabled && (h("div", { key: 'ce2e43645a1c33ca7d6495acd820ad0a93cefdf9', class: "md:hidden flex overflow-hidden px-16" }, h("eds-button", { key: 'ed73c7e7a6544f60eea9dbf43379ffe4967c0dbd', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
59
+ return (h("header", { key: 'a0f5bb7d9e850e9414db804019674d6bcbc8ea0b', class: `flex items-center justify-between relative z-10 ${classes}` }, h("div", { key: '678d5b1583e6fa47c0eac8ce734e8ec34cd76ad9', class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { key: '12ce9c42b266bbddfd75d2a8f0097708480a2490', type: logoType, href: this.homeUrl })), this.parsedLinks && (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" }, h("ul", { key: 'c3f8689bb257166c50dd678287c8ad4f54eb315a', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (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" })))))), h("slot", { key: '3f689a811a60052393a795937a908cf7d0604cc6' }), this.menuEnabled && (h("div", { key: '506b953b455b72085d83bdaafc6855992075ddbe', class: "md:hidden flex overflow-hidden px-16" }, h("eds-button", { key: '5b526affd813549a6142efab255d6486a5e2dd66', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
60
60
  }
61
61
  static get is() { return "eds-header"; }
62
62
  static get encapsulation() { return "shadow"; }
@@ -133,8 +133,11 @@ export class EdsMatomoNotice {
133
133
  "required": false,
134
134
  "optional": false,
135
135
  "docs": {
136
- "tags": [],
137
- "text": "The title displayed in the notice."
136
+ "tags": [{
137
+ "name": "default",
138
+ "text": "\"Analytics Consent\""
139
+ }],
140
+ "text": "The title displayed in the notice accordion."
138
141
  },
139
142
  "attribute": "title",
140
143
  "reflect": false,
@@ -151,8 +154,11 @@ export class EdsMatomoNotice {
151
154
  "required": false,
152
155
  "optional": false,
153
156
  "docs": {
154
- "tags": [],
155
- "text": "The description displayed in the notice."
157
+ "tags": [{
158
+ "name": "default",
159
+ "text": "\"We use anonymous analytics...\""
160
+ }],
161
+ "text": "The description displayed when the user has not yet opted in to analytics."
156
162
  },
157
163
  "attribute": "description",
158
164
  "reflect": false,
@@ -169,8 +175,11 @@ export class EdsMatomoNotice {
169
175
  "required": false,
170
176
  "optional": false,
171
177
  "docs": {
172
- "tags": [],
173
- "text": ""
178
+ "tags": [{
179
+ "name": "default",
180
+ "text": "\"You are already part of our community...\""
181
+ }],
182
+ "text": "The description displayed when the user has already opted in to analytics."
174
183
  },
175
184
  "attribute": "opt-out-message",
176
185
  "reflect": false,
@@ -187,8 +196,11 @@ export class EdsMatomoNotice {
187
196
  "required": false,
188
197
  "optional": false,
189
198
  "docs": {
190
- "tags": [],
191
- "text": "When true, the notice is forced to show regardless of cookies/session."
199
+ "tags": [{
200
+ "name": "default",
201
+ "text": "false"
202
+ }],
203
+ "text": "When true, the notice is forced to show regardless of cookies or session storage state.\nUseful for testing or forcing the consent UI."
192
204
  },
193
205
  "attribute": "force-show",
194
206
  "reflect": false,
@@ -42,30 +42,10 @@ menu {
42
42
  letter-spacing: var(--f-ui-02-letterSpacing);
43
43
  }
44
44
 
45
- .f-ui-02-light {
46
- font-family: var(--f-ui-02-light-fontFamily);
47
- font-weight: var(--f-ui-02-light-fontWeight);
48
- font-size: var(--f-ui-02-light-fontSize);
49
- line-height: var(--f-ui-02-light-lineHeight);
50
- letter-spacing: var(--f-ui-02-light-letterSpacing);
51
- }
52
-
53
- .f-ui-03 {
54
- font-family: var(--f-ui-03-fontFamily);
55
- font-weight: var(--f-ui-03-fontWeight);
56
- font-size: var(--f-ui-03-fontSize);
57
- line-height: var(--f-ui-03-lineHeight);
58
- letter-spacing: var(--f-ui-03-letterSpacing);
59
- }
60
-
61
45
  .mt-12 {
62
46
  margin-top: 0.75rem;
63
47
  }
64
48
 
65
- .mt-16 {
66
- margin-top: 1rem;
67
- }
68
-
69
49
  .inline {
70
50
  display: inline;
71
51
  }
@@ -49,11 +49,9 @@ export class EdsSocialNetworks {
49
49
  /**
50
50
  * Renders the component's HTML structure with links to EBRAINS social profiles.
51
51
  * Each social network link uses the `eds-link` component with specific classes and styles.
52
- *
53
- * @returns {JSX.Element} The rendered JSX for the component.
54
52
  */
55
53
  render() {
56
- return (h("div", { key: '7241de6d0a20687523e17a4455dff1dfac59a191' }, h("p", { key: '8292c0dde1b3518ada53dddc2ea0134ff3035e83', class: "f-ui-02" }, this.heading), h("ul", { key: 'b30922e6d1f51a52300c889464824fafad775f74', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (h("li", { key: index }, h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
54
+ return (h("nav", { key: '62692c53f820ff5d6569e42af692063ad8918cdd', "aria-label": "Social media" }, h("p", { key: 'a571612ba3c1b669e0145484bec4d480b17c1979', class: "f-ui-02" }, this.heading), h("ul", { key: 'c0cc02cd5eebf16130f7b09fb8f11319695fdccb', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (h("li", { key: index }, h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": `EBRAINS on ${network.label}`, url: network.url, icon: network.icon, intent: "strong" })))))));
57
55
  }
58
56
  static get is() { return "eds-social-networks"; }
59
57
  static get encapsulation() { return "shadow"; }
@@ -4,18 +4,17 @@ export default {
4
4
  argTypes: {
5
5
  title: {
6
6
  control: 'text',
7
- defaultValue: 'Follow EBRAINS to keep up-to-date'
7
+ defaultValue: 'Follow EBRAINS to keep up-to-date',
8
+ description: 'Custom title to display above the social network links'
8
9
  }
9
10
  }
10
11
  };
11
12
  const Template = (args) => `
12
- <eds-social-networks title="${args.title}"></eds-social-networks>
13
- `;
13
+ <eds-social-networks
14
+ title="${args.title}"
15
+ ></eds-social-networks>
16
+ `;
14
17
  export const Default = Template.bind({});
15
18
  Default.args = {
16
19
  title: 'Follow EBRAINS to keep up-to-date'
17
20
  };
18
- export const CustomTitle = Template.bind({});
19
- CustomTitle.args = {
20
- title: 'Stay Connected with EBRAINS!'
21
- };