@ebrains/components 0.4.0-alpha.0 → 0.5.0-alpha.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 (516) hide show
  1. package/dist/cjs/analytics-223ea8e5.js +51 -0
  2. package/dist/cjs/color-c00146a8.js +134 -0
  3. package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
  4. package/dist/cjs/components.cjs.js +1 -1
  5. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  6. package/dist/cjs/eds-accordion.cjs.entry.js +84 -0
  7. package/dist/cjs/eds-alert_17.cjs.entry.js +1392 -0
  8. package/dist/cjs/eds-avatar_4.cjs.entry.js +187 -0
  9. package/dist/cjs/eds-card-generic.cjs.entry.js +104 -0
  10. package/dist/cjs/eds-card-project.cjs.entry.js +4 -3
  11. package/dist/cjs/eds-card-section.cjs.entry.js +1 -1
  12. package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
  13. package/dist/cjs/eds-card-tool.cjs.entry.js +3 -4
  14. package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-code-block.cjs.entry.js +2 -2
  16. package/dist/cjs/eds-components-section.cjs.entry.js +7 -3
  17. package/dist/cjs/eds-docs-palettes.cjs.entry.js +1 -1
  18. package/dist/cjs/eds-docs-tokens.cjs.entry.js +1 -1
  19. package/dist/cjs/eds-dropdown_2.cjs.entry.js +158 -0
  20. package/dist/cjs/eds-form.cjs.entry.js +361 -0
  21. package/dist/cjs/eds-frame.cjs.entry.js +91 -0
  22. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +1 -1
  23. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
  24. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
  25. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +1 -1
  26. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +1 -1
  27. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +1 -1
  28. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +1 -1
  29. package/dist/cjs/eds-icon-close.cjs.entry.js +1 -1
  30. package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
  31. package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
  32. package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
  33. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
  34. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
  35. package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
  36. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
  37. package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
  38. package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
  39. package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
  40. package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
  41. package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
  42. package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
  43. package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
  44. package/dist/cjs/eds-input_7.cjs.entry.js +324 -0
  45. package/dist/cjs/eds-login.cjs.entry.js +60 -41
  46. package/dist/cjs/eds-logo-variations.cjs.entry.js +1 -1
  47. package/dist/cjs/eds-matomo-notice.cjs.entry.js +2 -3
  48. package/dist/cjs/eds-modal.cjs.entry.js +97 -0
  49. package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
  50. package/dist/cjs/eds-pagination_2.cjs.entry.js +9 -10
  51. package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
  52. package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
  53. package/dist/cjs/eds-svg-repository.cjs.entry.js +1 -1
  54. package/dist/cjs/eds-tab.cjs.entry.js +1 -1
  55. package/dist/cjs/eds-tabs-content.cjs.entry.js +4 -4
  56. package/dist/cjs/eds-tabs.cjs.entry.js +3 -3
  57. package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
  58. package/dist/cjs/eds-tooltip.cjs.entry.js +3 -4
  59. package/dist/cjs/eds-trl.cjs.entry.js +1 -1
  60. package/dist/cjs/eds-user.cjs.entry.js +99 -0
  61. package/dist/cjs/eds-vertical-stepper.cjs.entry.js +45 -0
  62. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  63. package/dist/cjs/index-f08e4f5c.js +42 -6
  64. package/dist/cjs/{keycloak-5aaa21af.js → keycloak-93fc0315.js} +225 -170
  65. package/dist/cjs/loader.cjs.js +1 -1
  66. package/dist/cjs/logo-space.cjs.entry.js +1 -1
  67. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
  68. package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
  69. package/dist/cjs/token-list_3.cjs.entry.js +3 -3
  70. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  71. package/dist/cjs/token-spacing.cjs.entry.js +1 -1
  72. package/dist/cjs/token-typography.cjs.entry.js +1 -1
  73. package/dist/collection/collection-manifest.json +4 -1
  74. package/dist/collection/components/eds-accordion/eds-accordion.js +3 -3
  75. package/dist/collection/components/eds-alert/eds-alert.js +8 -5
  76. package/dist/collection/components/eds-avatar/eds-avatar.js +8 -6
  77. package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
  78. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +23 -29
  79. package/dist/collection/components/eds-button/eds-button.js +20 -25
  80. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
  81. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
  82. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
  83. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +1 -1
  84. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +2 -2
  85. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +3 -2
  86. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +2 -2
  87. package/dist/collection/components/eds-code-block/eds-code-block.js +3 -3
  88. package/dist/collection/components/eds-dropdown/eds-dropdown.js +3 -3
  89. package/dist/collection/components/eds-form/eds-form.js +32 -16
  90. package/dist/collection/components/eds-frame/eds-frame.js +1 -1
  91. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
  92. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
  93. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
  94. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
  95. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
  96. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
  97. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
  98. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
  99. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  100. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  101. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  102. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  103. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  104. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  105. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  106. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
  107. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
  108. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
  109. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
  110. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
  111. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
  112. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
  113. package/dist/collection/components/eds-img/eds-img.js +13 -7
  114. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
  115. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
  116. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
  117. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +2 -2
  118. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
  119. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +11 -2
  120. package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
  121. package/dist/collection/components/eds-link/eds-link.js +6 -3
  122. package/dist/collection/components/eds-logo/eds-logo.js +21 -2
  123. package/dist/collection/components/eds-modal/eds-modal.js +19 -24
  124. package/dist/collection/components/eds-navigator/eds-navigator.js +1 -1
  125. package/dist/collection/components/eds-pagination/eds-pagination.js +1 -1
  126. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  127. package/dist/collection/components/eds-rating/eds-rating.css +48 -0
  128. package/dist/collection/components/eds-rating/eds-rating.js +10 -8
  129. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  130. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  131. package/dist/collection/components/eds-steps/eds-steps.css +71 -0
  132. package/dist/collection/components/eds-steps/eds-steps.js +132 -0
  133. package/dist/collection/components/eds-steps/eds-steps.stories.js +35 -0
  134. package/dist/collection/components/eds-steps/eds-vertical-stepper.css +78 -0
  135. package/dist/collection/components/eds-steps/eds-vertical-stepper.js +72 -0
  136. package/dist/collection/components/eds-switch/eds-switch.css +59 -0
  137. package/dist/collection/components/eds-switch/eds-switch.js +131 -0
  138. package/dist/collection/components/eds-switch/eds-switch.stories.js +38 -0
  139. package/dist/collection/components/eds-tab/eds-tab.js +1 -1
  140. package/dist/collection/components/eds-table/eds-table.js +8 -8
  141. package/dist/collection/components/eds-tag/eds-tag.js +22 -1
  142. package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
  143. package/dist/collection/components/eds-toast/eds-toast.js +1 -1
  144. package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
  145. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  146. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  147. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  148. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  149. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  150. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  151. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  152. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  153. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  154. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  155. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  156. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  157. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  158. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  159. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  160. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +1 -1
  161. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
  162. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
  163. package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +1 -1
  164. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +1 -1
  165. package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
  166. package/dist/collection/eds-docs-ui/functional/react.js +1 -1
  167. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  168. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  169. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  170. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  171. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +10 -4
  172. package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
  173. package/dist/collection/shared-ui/eds-header/eds-header.js +2 -75
  174. package/dist/collection/shared-ui/eds-login/eds-login.js +66 -58
  175. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +1 -1
  176. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
  177. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +2 -2
  178. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +3 -3
  179. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  180. package/dist/collection/shared-ui/eds-user/eds-user.js +27 -24
  181. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -1
  182. package/dist/collection/utils/analytics.js +85 -0
  183. package/dist/collection/utils/color.js +129 -0
  184. package/dist/collection/utils/global.js +8 -0
  185. package/dist/collection/utils/keycloak.js +11 -5
  186. package/dist/components/analytics.js +6 -1
  187. package/dist/components/color.js +0 -164
  188. package/dist/components/components.css +51 -0
  189. package/dist/components/components.esm.js +1 -1
  190. package/dist/components/correct-use-of-colors.js +1 -1
  191. package/dist/components/eds-accordion2.js +2 -3
  192. package/dist/components/eds-alert2.js +8 -5
  193. package/dist/components/eds-avatar2.js +3 -3
  194. package/dist/components/eds-block-break2.js +1 -1
  195. package/dist/components/eds-breadcrumb.js +23 -29
  196. package/dist/components/eds-button2.js +16 -14
  197. package/dist/components/eds-card-desc2.js +1 -1
  198. package/dist/components/eds-card-generic2.js +1 -2
  199. package/dist/components/eds-card-project.js +2 -2
  200. package/dist/components/eds-card-section.js +1 -1
  201. package/dist/components/eds-card-tags.js +1 -1
  202. package/dist/components/eds-card-title2.js +1 -1
  203. package/dist/components/eds-card-tool.js +1 -2
  204. package/dist/components/eds-card-wrapper.js +1 -1
  205. package/dist/components/eds-code-block2.js +2 -2
  206. package/dist/components/eds-components-section.js +7 -3
  207. package/dist/components/eds-docs-palettes.js +1 -1
  208. package/dist/components/eds-docs-tokens.js +1 -1
  209. package/dist/components/eds-dropdown2.js +2 -3
  210. package/dist/components/eds-footer2.js +1 -1
  211. package/dist/components/eds-form.js +32 -16
  212. package/dist/components/eds-frame.js +1 -1
  213. package/dist/components/eds-header.js +10 -48
  214. package/dist/components/eds-icon-arrow-diagonal.js +1 -1
  215. package/dist/components/eds-icon-arrow-right.js +1 -1
  216. package/dist/components/eds-icon-bluesky.js +1 -1
  217. package/dist/components/eds-icon-chevron-down.js +1 -1
  218. package/dist/components/eds-icon-chevron-left.js +1 -1
  219. package/dist/components/eds-icon-chevron-right.js +1 -1
  220. package/dist/components/eds-icon-chevron-up.js +1 -1
  221. package/dist/components/eds-icon-close.js +1 -1
  222. package/dist/components/eds-icon-copy.js +1 -1
  223. package/dist/components/eds-icon-eu.js +1 -1
  224. package/dist/components/eds-icon-facebook.js +1 -1
  225. package/dist/components/eds-icon-gitlab.js +1 -1
  226. package/dist/components/eds-icon-linkedin.js +1 -1
  227. package/dist/components/eds-icon-loader.js +1 -1
  228. package/dist/components/eds-icon-mastodon.js +1 -1
  229. package/dist/components/eds-icon-menu.js +1 -1
  230. package/dist/components/eds-icon-more.js +1 -1
  231. package/dist/components/eds-icon-search.js +1 -1
  232. package/dist/components/eds-icon-success.js +1 -1
  233. package/dist/components/eds-icon-twitter.js +1 -1
  234. package/dist/components/eds-icon-user.js +1 -1
  235. package/dist/components/eds-icon-youtube.js +1 -1
  236. package/dist/components/eds-img2.js +9 -4
  237. package/dist/components/eds-input-field2.js +2 -2
  238. package/dist/components/eds-input-footer2.js +1 -1
  239. package/dist/components/eds-input-label2.js +1 -1
  240. package/dist/components/eds-input-range2.js +2 -2
  241. package/dist/components/eds-input-search2.js +1 -1
  242. package/dist/components/eds-input-select2.js +11 -2
  243. package/dist/components/eds-input2.js +2 -2
  244. package/dist/components/eds-link2.js +5 -3
  245. package/dist/components/eds-login.js +60 -41
  246. package/dist/components/eds-logo-variations.js +1 -1
  247. package/dist/components/eds-logo2.js +4 -3
  248. package/dist/components/eds-matomo-notice.js +0 -1
  249. package/dist/components/eds-modal.js +10 -24
  250. package/dist/components/eds-navigator.js +1 -1
  251. package/dist/components/eds-pagination2.js +1 -1
  252. package/dist/components/eds-progress-bar2.js +1 -1
  253. package/dist/components/eds-rating.js +23 -9
  254. package/dist/components/eds-section-core2.js +1 -1
  255. package/dist/components/eds-section-heading2.js +2 -2
  256. package/dist/components/eds-social-networks2.js +1 -1
  257. package/dist/components/eds-steps.d.ts +11 -0
  258. package/dist/components/eds-steps.js +106 -0
  259. package/dist/components/eds-svg-repository.js +1 -1
  260. package/dist/components/eds-switch.d.ts +11 -0
  261. package/dist/components/eds-switch.js +57 -0
  262. package/dist/components/eds-tab2.js +1 -1
  263. package/dist/components/eds-table2.js +6 -7
  264. package/dist/components/eds-tabs-content.js +2 -3
  265. package/dist/components/eds-tabs.js +1 -2
  266. package/dist/components/eds-tag2.js +5 -1
  267. package/dist/components/eds-timeline.js +1 -1
  268. package/dist/components/eds-toast-manager.js +1 -1
  269. package/dist/components/eds-toast2.js +1 -1
  270. package/dist/components/eds-tooltip.js +1 -2
  271. package/dist/components/eds-trl.js +1 -1
  272. package/dist/components/eds-user-modal2.js +1 -1
  273. package/dist/components/eds-user.js +157 -1
  274. package/dist/components/eds-vertical-stepper.d.ts +11 -0
  275. package/dist/components/eds-vertical-stepper.js +86 -0
  276. package/dist/components/incorrect-use-of-colors.js +1 -1
  277. package/dist/components/keycloak.js +225 -170
  278. package/dist/components/logo-space.js +1 -1
  279. package/dist/components/logo-variations-horizontal2.js +1 -1
  280. package/dist/components/logo-variations-vertical2.js +1 -1
  281. package/dist/components/logo-wrong-usage.js +1 -1
  282. package/dist/components/p-030f67c1.entry.js +1 -0
  283. package/dist/components/p-06299762.entry.js +1 -0
  284. package/dist/components/p-0ab85eee.entry.js +1 -0
  285. package/dist/components/{p-b04eff31.entry.js → p-0bafc5ae.entry.js} +1 -1
  286. package/dist/components/p-0e0e1815.entry.js +1 -0
  287. package/dist/components/p-0e7bdd2c.entry.js +1 -0
  288. package/dist/components/p-1ed3fdb7.entry.js +1 -0
  289. package/dist/components/p-209fa119.entry.js +1 -0
  290. package/dist/components/p-2831a9d5.entry.js +1 -0
  291. package/dist/components/p-2c00bd76.entry.js +1 -0
  292. package/dist/components/p-38d70586.entry.js +1 -0
  293. package/dist/components/p-3babd772.entry.js +1 -0
  294. package/dist/components/p-4a12a131.entry.js +1 -0
  295. package/dist/components/p-505ddcda.entry.js +1 -0
  296. package/dist/components/{p-8ddc67a1.entry.js → p-59405ecf.entry.js} +1 -1
  297. package/dist/components/p-5980a142.entry.js +1 -0
  298. package/dist/components/p-599c7b97.entry.js +1 -0
  299. package/dist/components/{p-22762818.entry.js → p-65703520.entry.js} +1 -1
  300. package/dist/components/p-6af40c33.entry.js +1 -0
  301. package/dist/components/p-6df9db15.entry.js +1 -0
  302. package/dist/components/p-72b42d77.entry.js +1 -0
  303. package/dist/components/p-75795b05.entry.js +1 -0
  304. package/dist/components/{p-435a14c1.entry.js → p-759b2640.entry.js} +1 -1
  305. package/dist/components/p-80a185ba.entry.js +1 -0
  306. package/dist/components/p-81942665.entry.js +1 -0
  307. package/dist/components/p-86fbc239.entry.js +1 -0
  308. package/dist/components/p-89227919.js +1 -0
  309. package/dist/components/{p-c3b294a0.entry.js → p-89f600a3.entry.js} +1 -1
  310. package/dist/components/{p-ba6bafef.entry.js → p-8b583210.entry.js} +1 -1
  311. package/dist/components/p-8c4a0fc9.entry.js +1 -0
  312. package/dist/components/p-8d19a05b.entry.js +1 -0
  313. package/dist/components/p-8eab748d.js +1 -0
  314. package/dist/components/p-911d9b37.entry.js +1 -0
  315. package/dist/components/p-92e16cc9.entry.js +1 -0
  316. package/dist/components/p-96fe2267.entry.js +1 -0
  317. package/dist/components/p-9739def5.entry.js +1 -0
  318. package/dist/components/p-9826acae.entry.js +1 -0
  319. package/dist/components/{p-87830085.entry.js → p-9b441a1f.entry.js} +1 -1
  320. package/dist/components/{p-c72c8fb0.entry.js → p-a2621d66.entry.js} +1 -1
  321. package/dist/components/p-a535838c.entry.js +1 -0
  322. package/dist/components/p-a5b7d72d.entry.js +1 -0
  323. package/dist/components/p-a5d00633.entry.js +1 -0
  324. package/dist/components/p-a63bd0c9.entry.js +1 -0
  325. package/dist/components/{p-762c8c83.entry.js → p-a846dbca.entry.js} +1 -1
  326. package/dist/components/p-a927a455.entry.js +1 -0
  327. package/dist/components/p-aec9b8e1.entry.js +1 -0
  328. package/dist/components/{p-5398d652.entry.js → p-b1af5000.entry.js} +1 -1
  329. package/dist/components/{p-d571d530.entry.js → p-b1de9a6c.entry.js} +1 -1
  330. package/dist/components/{p-0910d733.entry.js → p-b3c1aef5.entry.js} +1 -1
  331. package/dist/components/p-b60ed774.entry.js +1 -0
  332. package/dist/components/p-b67aafe7.entry.js +1 -0
  333. package/dist/components/p-b79999d5.entry.js +1 -0
  334. package/dist/components/p-b80457ed.entry.js +1 -0
  335. package/dist/components/p-b860b4aa.entry.js +1 -0
  336. package/dist/components/p-c034c395.entry.js +1 -0
  337. package/dist/components/p-c5fa170d.entry.js +1 -0
  338. package/dist/components/p-d69ef196.entry.js +1 -0
  339. package/dist/components/p-de12396f.entry.js +1 -0
  340. package/dist/components/p-de2fbcfc.entry.js +1 -0
  341. package/dist/components/p-def72462.entry.js +1 -0
  342. package/dist/components/p-e2c250c5.entry.js +1 -0
  343. package/dist/components/p-eb0b93d5.js +1 -0
  344. package/dist/components/p-eeeb0d83.entry.js +1 -0
  345. package/dist/components/p-f08eac56.entry.js +1 -0
  346. package/dist/components/p-f1cd83da.entry.js +1 -0
  347. package/dist/components/{p-22e6d7d5.entry.js → p-f36f2aeb.entry.js} +1 -1
  348. package/dist/components/p-f5dafbc8.entry.js +1 -0
  349. package/dist/components/p-f7493f41.entry.js +1 -0
  350. package/dist/components/{p-dd6daa96.entry.js → p-fce25541.entry.js} +1 -1
  351. package/dist/components/primary.js +1 -1
  352. package/dist/components/primary2.js +1 -1
  353. package/dist/components/secondary.js +1 -1
  354. package/dist/components/secondary2.js +7 -7
  355. package/dist/components/support.js +1 -1
  356. package/dist/components/support2.js +3 -3
  357. package/dist/components/token-list2.js +1 -1
  358. package/dist/components/token-radii2.js +1 -1
  359. package/dist/components/token-ratios.js +1 -1
  360. package/dist/components/token-shadows2.js +1 -1
  361. package/dist/components/token-spacing.js +1 -1
  362. package/dist/components/token-typography.js +1 -1
  363. package/dist/esm/analytics-1cde8e4a.js +48 -0
  364. package/dist/esm/color-2554aad6.js +132 -0
  365. package/dist/esm/color-primary-palette_6.entry.js +14 -14
  366. package/dist/esm/components.js +1 -1
  367. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  368. package/dist/esm/eds-accordion.entry.js +80 -0
  369. package/dist/esm/eds-alert_17.entry.js +1372 -0
  370. package/dist/esm/eds-avatar_4.entry.js +180 -0
  371. package/dist/esm/eds-card-generic.entry.js +100 -0
  372. package/dist/esm/eds-card-project.entry.js +3 -2
  373. package/dist/esm/eds-card-section.entry.js +1 -1
  374. package/dist/esm/eds-card-tags.entry.js +1 -1
  375. package/dist/esm/eds-card-tool.entry.js +2 -3
  376. package/dist/esm/eds-card-wrapper.entry.js +1 -1
  377. package/dist/esm/eds-code-block.entry.js +2 -2
  378. package/dist/esm/eds-components-section.entry.js +7 -3
  379. package/dist/esm/eds-docs-palettes.entry.js +1 -1
  380. package/dist/esm/eds-docs-tokens.entry.js +1 -1
  381. package/dist/esm/eds-dropdown_2.entry.js +153 -0
  382. package/dist/esm/eds-form.entry.js +357 -0
  383. package/dist/esm/eds-frame.entry.js +87 -0
  384. package/dist/esm/eds-icon-arrow-diagonal.entry.js +1 -1
  385. package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
  386. package/dist/esm/eds-icon-bluesky.entry.js +1 -1
  387. package/dist/esm/eds-icon-chevron-down.entry.js +1 -1
  388. package/dist/esm/eds-icon-chevron-left.entry.js +1 -1
  389. package/dist/esm/eds-icon-chevron-right.entry.js +1 -1
  390. package/dist/esm/eds-icon-chevron-up.entry.js +1 -1
  391. package/dist/esm/eds-icon-close.entry.js +1 -1
  392. package/dist/esm/eds-icon-copy.entry.js +1 -1
  393. package/dist/esm/eds-icon-eu.entry.js +1 -1
  394. package/dist/esm/eds-icon-facebook.entry.js +1 -1
  395. package/dist/esm/eds-icon-gitlab.entry.js +1 -1
  396. package/dist/esm/eds-icon-linkedin.entry.js +1 -1
  397. package/dist/esm/eds-icon-loader.entry.js +1 -1
  398. package/dist/esm/eds-icon-mastodon.entry.js +1 -1
  399. package/dist/esm/eds-icon-menu.entry.js +1 -1
  400. package/dist/esm/eds-icon-more.entry.js +1 -1
  401. package/dist/esm/eds-icon-search.entry.js +1 -1
  402. package/dist/esm/eds-icon-success.entry.js +1 -1
  403. package/dist/esm/eds-icon-twitter.entry.js +1 -1
  404. package/dist/esm/eds-icon-user.entry.js +1 -1
  405. package/dist/esm/eds-icon-youtube.entry.js +1 -1
  406. package/dist/esm/eds-input_7.entry.js +314 -0
  407. package/dist/esm/eds-login.entry.js +60 -41
  408. package/dist/esm/eds-logo-variations.entry.js +1 -1
  409. package/dist/esm/eds-matomo-notice.entry.js +1 -2
  410. package/dist/esm/eds-modal.entry.js +93 -0
  411. package/dist/esm/eds-navigator.entry.js +1 -1
  412. package/dist/esm/eds-pagination_2.entry.js +8 -9
  413. package/dist/esm/eds-progress-bar.entry.js +1 -1
  414. package/dist/esm/eds-section-core_2.entry.js +3 -3
  415. package/dist/esm/eds-svg-repository.entry.js +1 -1
  416. package/dist/esm/eds-tab.entry.js +1 -1
  417. package/dist/esm/eds-tabs-content.entry.js +3 -3
  418. package/dist/esm/eds-tabs.entry.js +2 -2
  419. package/dist/esm/eds-timeline.entry.js +1 -1
  420. package/dist/esm/eds-tooltip.entry.js +2 -3
  421. package/dist/esm/eds-trl.entry.js +1 -1
  422. package/dist/esm/eds-user.entry.js +95 -0
  423. package/dist/esm/eds-vertical-stepper.entry.js +41 -0
  424. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  425. package/dist/esm/index-e96badea.js +42 -6
  426. package/dist/esm/{keycloak-13893af6.js → keycloak-d502ec16.js} +225 -170
  427. package/dist/esm/loader.js +1 -1
  428. package/dist/esm/logo-space.entry.js +1 -1
  429. package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
  430. package/dist/esm/logo-wrong-usage.entry.js +1 -1
  431. package/dist/esm/token-list_3.entry.js +3 -3
  432. package/dist/esm/token-ratios.entry.js +1 -1
  433. package/dist/esm/token-spacing.entry.js +1 -1
  434. package/dist/esm/token-typography.entry.js +1 -1
  435. package/dist/hydrate/index.js +900 -804
  436. package/dist/hydrate/index.mjs +900 -804
  437. package/dist/types/components/eds-alert/eds-alert.d.ts +1 -1
  438. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +9 -8
  439. package/dist/types/components/eds-button/eds-button.d.ts +2 -3
  440. package/dist/types/components/eds-form/eds-form.d.ts +0 -1
  441. package/dist/types/components/eds-img/eds-img.d.ts +3 -1
  442. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +6 -0
  443. package/dist/types/components/eds-logo/eds-logo.d.ts +1 -0
  444. package/dist/types/components/eds-modal/eds-modal.d.ts +2 -7
  445. package/dist/types/components/eds-rating/eds-rating.d.ts +1 -2
  446. package/dist/types/components/eds-steps/eds-steps.d.ts +39 -0
  447. package/dist/types/components/eds-steps/eds-steps.stories.d.ts +34 -0
  448. package/dist/types/components/eds-steps/eds-vertical-stepper.d.ts +22 -0
  449. package/dist/types/components/eds-switch/eds-switch.d.ts +25 -0
  450. package/dist/types/components/eds-switch/eds-switch.stories.d.ts +32 -0
  451. package/dist/types/components/eds-tag/eds-tag.d.ts +5 -0
  452. package/dist/types/components.d.ts +163 -82
  453. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +28 -1
  454. package/dist/types/shared-ui/eds-header/eds-header.d.ts +0 -20
  455. package/dist/types/shared-ui/eds-login/eds-login.d.ts +21 -18
  456. package/dist/types/shared-ui/eds-user/eds-user.d.ts +5 -5
  457. package/dist/types/utils/global.d.ts +1 -0
  458. package/dist/types/utils/keycloak.d.ts +2 -2
  459. package/package.json +1 -1
  460. package/dist/cjs/color-88793e49.js +0 -342
  461. package/dist/cjs/eds-accordion_33.cjs.entry.js +0 -2670
  462. package/dist/cjs/eds-rating.cjs.entry.js +0 -56
  463. package/dist/components/eds-user2.js +0 -156
  464. package/dist/components/p-005de86f.entry.js +0 -1
  465. package/dist/components/p-0c2e844e.entry.js +0 -1
  466. package/dist/components/p-145f13ad.entry.js +0 -1
  467. package/dist/components/p-16458a81.entry.js +0 -1
  468. package/dist/components/p-2851ff44.entry.js +0 -1
  469. package/dist/components/p-29648b47.entry.js +0 -1
  470. package/dist/components/p-297b2bc3.entry.js +0 -1
  471. package/dist/components/p-2dda1ec4.entry.js +0 -1
  472. package/dist/components/p-32cddd94.entry.js +0 -1
  473. package/dist/components/p-35ec730b.entry.js +0 -1
  474. package/dist/components/p-388b4966.entry.js +0 -1
  475. package/dist/components/p-4037ad48.entry.js +0 -1
  476. package/dist/components/p-490ba155.entry.js +0 -1
  477. package/dist/components/p-4932aab2.entry.js +0 -1
  478. package/dist/components/p-4a24c2ce.entry.js +0 -1
  479. package/dist/components/p-57c964c5.entry.js +0 -1
  480. package/dist/components/p-5a43503a.entry.js +0 -1
  481. package/dist/components/p-5aad9d3f.entry.js +0 -1
  482. package/dist/components/p-5fc68438.entry.js +0 -1
  483. package/dist/components/p-610db2b2.entry.js +0 -1
  484. package/dist/components/p-6378fb3e.entry.js +0 -1
  485. package/dist/components/p-673dce11.entry.js +0 -1
  486. package/dist/components/p-7802e966.entry.js +0 -1
  487. package/dist/components/p-832dc95a.entry.js +0 -1
  488. package/dist/components/p-846fc91c.entry.js +0 -1
  489. package/dist/components/p-855aa1a3.entry.js +0 -1
  490. package/dist/components/p-8c56e39a.entry.js +0 -1
  491. package/dist/components/p-a44a1abe.entry.js +0 -1
  492. package/dist/components/p-a4e9b68b.entry.js +0 -1
  493. package/dist/components/p-ab32b3fc.entry.js +0 -1
  494. package/dist/components/p-ac0112d5.entry.js +0 -1
  495. package/dist/components/p-acb16e1c.entry.js +0 -1
  496. package/dist/components/p-ae5dbd41.entry.js +0 -1
  497. package/dist/components/p-b86a4985.js +0 -1
  498. package/dist/components/p-bdd86a3c.entry.js +0 -1
  499. package/dist/components/p-bf0f851d.entry.js +0 -1
  500. package/dist/components/p-c2d369bc.entry.js +0 -1
  501. package/dist/components/p-c6038449.entry.js +0 -1
  502. package/dist/components/p-c9c417de.js +0 -1
  503. package/dist/components/p-d1670eec.entry.js +0 -1
  504. package/dist/components/p-d53b7a75.entry.js +0 -1
  505. package/dist/components/p-d6d86366.entry.js +0 -1
  506. package/dist/components/p-df94285c.entry.js +0 -1
  507. package/dist/components/p-e74834bc.entry.js +0 -1
  508. package/dist/components/p-f7a6ce69.entry.js +0 -1
  509. package/dist/esm/color-bb472c37.js +0 -338
  510. package/dist/esm/eds-accordion_33.entry.js +0 -2634
  511. package/dist/esm/eds-rating.entry.js +0 -52
  512. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/index.d.ts +0 -3
  513. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/keycloak.d.ts +0 -30
  514. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/render.d.ts +0 -8
  515. /package/dist/types/{Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib → utils}/analytics.d.ts +0 -0
  516. /package/dist/types/{Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib → utils}/color.d.ts +0 -0
@@ -0,0 +1,187 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-f08e4f5c.js');
6
+ const color = require('./color-c00146a8.js');
7
+ const index$1 = require('./index-ab9fbefe.js');
8
+
9
+ const edsAvatarCss = ".border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border: 2px solid rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-pill {\n &::after {\n border-radius: 100px;\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-inverse {\n &::after {\n border: 2px solid rgba(255, 255, 255, 0.3);\n }\n\n &::after {\n content: '';\n }\n}\n\n.aspect-1x1 {\n aspect-ratio: 1/1;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.px-4 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.rounded-pill {\n border-radius: 100px;\n}\n\n.rounded-sm {\n border-radius: 8px;\n}\n\n.rounded-xs {\n border-radius: 4px;\n}\n\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-darker {\n background-color: var(--grey-400);\n}\n\n.bg-stronger {\n background-color: var(--grey-900);\n}\n\n.bg-strongest {\n background-color: var(--black);\n}\n\n.text-accent {\n color: var(--green-500);\n}\n\n.text-default {\n color: var(--black);\n}\n\n.\\!no-underline {\n text-decoration-line: none !important;\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.w-32 {\n width: 2rem;\n}\n\n.w-44 {\n width: 2.75rem;\n}\n\n.w-\\[54px\\] {\n width: 54px;\n}";
10
+ const EdsAvatarStyle0 = edsAvatarCss;
11
+
12
+ const EdsAvatar = class {
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ this.firstName = 'User';
16
+ this.lastName = 'Avatar';
17
+ this.picture = undefined;
18
+ this.initials = undefined;
19
+ this.color = undefined;
20
+ this.rounded = false;
21
+ this.initialsStrong = false;
22
+ }
23
+ /**
24
+ * Computed initials based on the provided `initials` prop or derived from `firstName` and `lastName`.
25
+ * @returns {string | undefined} Initials for display in the avatar.
26
+ */
27
+ get computedInitials() {
28
+ if (this.initials) {
29
+ return (this.initials.match(/.{1,3}/g) || [])[0] || '';
30
+ }
31
+ else if (this.firstName && this.lastName) {
32
+ return `${this.firstName.charAt(0)}${this.lastName.charAt(0)}`.toUpperCase();
33
+ }
34
+ return undefined;
35
+ }
36
+ /**
37
+ * Computes the CSS classes for the avatar container based on provided props like `rounded`, `color`, and `picture`.
38
+ * @returns {string} List of CSS classes to apply to the avatar container.
39
+ */
40
+ get containerClasses() {
41
+ return [
42
+ 'border-inside',
43
+ 'aspect-1x1',
44
+ 'flex',
45
+ 'items-center',
46
+ 'justify-center',
47
+ 'overflow-hidden',
48
+ this.picture ? '' : 'px-4',
49
+ this.rounded ? 'rounded-pill border-inside-pill w-32' : 'w-[54px] rounded-sm',
50
+ this.color ? 'border-inside-inverse' : '',
51
+ this.color === 'grey'
52
+ ? 'bg-dark'
53
+ : this.color && !this.picture
54
+ ? color.gradientBGColorVariants({
55
+ color: this.color,
56
+ direction: 'top',
57
+ pseudo: false
58
+ })
59
+ : !this.picture
60
+ ? 'bg-strongest text-accent'
61
+ : ''
62
+ ].join(' ');
63
+ }
64
+ /**
65
+ * Renders the avatar component. Displays either an image using `eds-img` or initials depending on whether `picture` or `computedInitials` is set.
66
+ * @returns {JSX.Element} The rendered avatar component.
67
+ */
68
+ render() {
69
+ return (index.h("div", { key: '47ee5ffd12c0f90c536dea77b3ffa9120d67f37f', class: this.containerClasses }, this.picture ? (index.h("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (index.h("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
70
+ }
71
+ };
72
+ EdsAvatar.style = EdsAvatarStyle0;
73
+
74
+ const edsCardDescCss = ".f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03-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)}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
75
+ const EdsCardDescStyle0 = edsCardDescCss;
76
+
77
+ const EdsCardDesc = class {
78
+ constructor(hostRef) {
79
+ index.registerInstance(this, hostRef);
80
+ this.description = undefined;
81
+ this.descClass = 'f-ui-03-light';
82
+ this.truncate = true;
83
+ this.truncateLines = '3';
84
+ }
85
+ getTruncateClass() {
86
+ return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
87
+ }
88
+ render() {
89
+ return (index.h("p", { key: '71495cbd6ef4e7d66c4c22a37f8120624ecf57fb', class: `text-light ${this.descClass}` }, index.h("span", { key: '8708178f7b48cc1f31aac749f50fe92b72c39ab8', class: this.getTruncateClass() }, this.description)));
90
+ }
91
+ };
92
+ EdsCardDesc.style = EdsCardDescStyle0;
93
+
94
+ const edsCardTitleCss = "a{all:unset;display:inline;color:inherit;text-decoration:none;cursor:pointer}h1,h2,h3,h4,h5,h6{margin:0}.f-heading-01{font-family:var(--f-heading-01-fontFamily);font-weight:var(--f-heading-01-fontWeight);font-size:var(--f-heading-01-fontSize);line-height:var(--f-heading-01-lineHeight);letter-spacing:var(--f-heading-01-letterSpacing)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.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)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.break-words{overflow-wrap:break-word}.after\\:absolute::after{position:absolute}.after\\:inset-0::after{inset:0rem}.after\\:z-10::after{z-index:10}.after\\:content-\\[\\'\\'\\]::after{--tw-content:'';content:var(--tw-content)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}";
95
+ const EdsCardTitleStyle0 = edsCardTitleCss;
96
+
97
+ const EdsCardTitle = class {
98
+ constructor(hostRef) {
99
+ index.registerInstance(this, hostRef);
100
+ this.url = undefined;
101
+ this.titleClass = undefined;
102
+ this.headingLevel = 'h3';
103
+ this.externalLink = false;
104
+ this.cardTitle = undefined;
105
+ this.hierarchy = true;
106
+ }
107
+ /**
108
+ * Dynamically generate the title class based on the heading level.
109
+ */
110
+ getTitleClass() {
111
+ const levelMap = this.hierarchy
112
+ ? {
113
+ h1: '05',
114
+ h2: '05',
115
+ h3: '05',
116
+ h4: '05',
117
+ h5: '05',
118
+ h6: '06'
119
+ }
120
+ : {
121
+ h1: '01',
122
+ h2: '02',
123
+ h3: '03',
124
+ h4: '04',
125
+ h5: '05',
126
+ h6: '06'
127
+ };
128
+ return `f-heading-${levelMap[this.headingLevel]}`;
129
+ }
130
+ /*private getTag() {
131
+ if (this.url) {
132
+ return 'a';
133
+ }
134
+ return 'span';
135
+ }*/
136
+ render() {
137
+ //const Tag = this.getTag();
138
+ const Heading = this.headingLevel;
139
+ return (index.h(Heading, { key: 'bb97dc6dd53adda14ef251b2ec32952791438986', class: this.getTitleClass() }, index.h("a", { key: '37b6ac0668257d27fb3f03a6225a2d48e1fd1f79', class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? '_blank' : undefined, rel: this.externalLink ? 'noopener noreferrer' : undefined }, this.cardTitle)));
140
+ }
141
+ };
142
+ EdsCardTitle.style = EdsCardTitleStyle0;
143
+
144
+ const edsTagCss = ".f-ui-05{font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing)}.py-1{padding-top:0.0625rem;padding-bottom:0.0625rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.border-2{border-width:2px}.rounded-pill{border-radius:100px}.border-default{border:2px solid var(--black)}.text-inverse{color:var(--white)}.bg-strongest{background-color:var(--black)}.text-\\[\\#0034CB\\]{--tw-text-opacity:1;color:rgb(0 52 203 / var(--tw-text-opacity))}.border-\\[\\#0034CB\\]{--tw-border-opacity:1;border:2px solid rgb(0 52 203 / var(--tw-border-opacity))}.text-light{color:var(--grey-700)}.bg-strongest-soft{background-color:rgba(0, 0, 0, .05)}.border-transparent{border-color:var(--transparent)}.border-inverse{border-color:var(--white)}.bg-inverse{background-color:var(--white)}.text-lighter{color:var(--grey-600)}";
145
+ const EdsTagStyle0 = edsTagCss;
146
+
147
+ // Define the CVA for the tag styles
148
+ const tagStyles = index$1.cva(['f-ui-05 py-1 px-4 border-2 rounded-pill'], // Base classes
149
+ {
150
+ variants: {
151
+ intent: {
152
+ default: 'border-default',
153
+ strong: 'text-inverse bg-strongest border-default',
154
+ accent: 'text-[#0034CB] border-[#0034CB]',
155
+ weak: 'text-light bg-strongest-soft border-transparent',
156
+ inverse: 'border-inverse text-inverse',
157
+ 'inverse-strong': 'bg-inverse border-inverse text-lighter'
158
+ }
159
+ },
160
+ defaultVariants: {
161
+ intent: 'default'
162
+ }
163
+ });
164
+ const EdsTag = class {
165
+ constructor(hostRef) {
166
+ index.registerInstance(this, hostRef);
167
+ this.label = undefined;
168
+ this.ariaLabel = '';
169
+ this.intent = 'default';
170
+ }
171
+ /**
172
+ * Render the component.
173
+ * @returns The rendered HTML for the tag component with the applied styles and label.
174
+ */
175
+ render() {
176
+ var _a;
177
+ const classes = tagStyles({ intent: this.intent });
178
+ const accessibleLabel = ((_a = this.ariaLabel) === null || _a === void 0 ? void 0 : _a.length) ? this.ariaLabel : this.label;
179
+ return (index.h("span", { key: '6a517f42aeb641c95d96ecd6c3090a317a3195c6', class: classes, "aria-label": accessibleLabel }, this.label));
180
+ }
181
+ };
182
+ EdsTag.style = EdsTagStyle0;
183
+
184
+ exports.eds_avatar = EdsAvatar;
185
+ exports.eds_card_desc = EdsCardDesc;
186
+ exports.eds_card_title = EdsCardTitle;
187
+ exports.eds_tag = EdsTag;
@@ -0,0 +1,104 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-f08e4f5c.js');
6
+ const analytics = require('./analytics-223ea8e5.js');
7
+
8
+ const edsCardGenericCss = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.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)}.hover\\:shadow-hover: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}.border-soft{border-color:rgba(0, 0, 0, .15 )}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";
9
+ const EdsCardGenericStyle0 = edsCardGenericCss;
10
+
11
+ const EdsCardGeneric = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.parentContext = null; // Accepts the entire event detail or null
15
+ this.cardTitle = undefined;
16
+ this.url = undefined;
17
+ this.description = undefined;
18
+ this.image = undefined;
19
+ this.avatar = undefined;
20
+ this.shortAbbreviation = undefined;
21
+ this.headingLevel = 'h3';
22
+ this.tags = [];
23
+ this.tiny = false;
24
+ this.bg = true;
25
+ this.withHover = true;
26
+ this.hierarchy = true;
27
+ this.parsedImage = null;
28
+ }
29
+ componentWillLoad() {
30
+ if (this.image) {
31
+ try {
32
+ if (typeof this.image === 'object') {
33
+ // If image is already an object, assign it directly
34
+ this.parsedImage = this.image;
35
+ }
36
+ else if (typeof this.image === 'string') {
37
+ // If image is a string, try to parse it
38
+ this.parsedImage = JSON.parse(this.image);
39
+ }
40
+ }
41
+ catch (error) {
42
+ // eslint-disable-next-line
43
+ console.error('Error parsing image prop:', error);
44
+ this.parsedImage = {}; // Assign a fallback empty object in case of an error
45
+ }
46
+ }
47
+ }
48
+ handleParentContext(event) {
49
+ if (event.target !== this.el) {
50
+ // Ignore the event if it's not targeted at this specific instance
51
+ return;
52
+ }
53
+ //console.log(event.detail);
54
+ this.parentContext = event.detail;
55
+ event.stopPropagation();
56
+ }
57
+ /**
58
+ * Parses the `tags` prop into an array of link objects.
59
+ * Returns an empty array if parsing fails or if `tags` is not a valid JSON string or object.
60
+ *
61
+ * @returns {any[]} Array of parsed link objects
62
+ */
63
+ get parsedTags() {
64
+ if (typeof this.tags === 'object') {
65
+ return this.tags;
66
+ }
67
+ else if (typeof this.tags === 'string') {
68
+ try {
69
+ return JSON.parse(this.tags);
70
+ }
71
+ catch (e) {
72
+ // eslint-disable-next-line
73
+ console.error('Error parsing tags prop:', e);
74
+ return [];
75
+ }
76
+ }
77
+ return [];
78
+ }
79
+ articleClasses() {
80
+ return [
81
+ this.description ? (this.tiny ? 'min-h-120' : 'min-h-156') : 'h-auto',
82
+ this.bg ? 'bg-inverse' : 'bg-default',
83
+ this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
84
+ 'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
85
+ ].join(' ');
86
+ }
87
+ handleClick() {
88
+ var _a;
89
+ analytics.sendAnalytics({
90
+ category: 'ui-component',
91
+ parentContext: this.parentContext,
92
+ tag: this.el.tagName.toLowerCase(),
93
+ name: ((_a = this.cardTitle) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
94
+ action: 'click'
95
+ });
96
+ }
97
+ render() {
98
+ return (index.h("article", { key: 'dcb7cea87bfb52f8886f7ee3dbc3484d615bc00c', class: this.articleClasses(), onClick: () => this.handleClick() }, index.h("eds-card-title", { key: '94dd6ff2679ce9ac4d25ec921cd1162b1584e4fd', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), this.description && (index.h("eds-card-desc", { key: '433c4fe3a518153d89d48af54455286fa415a688', class: "mt-8", "truncate-lines": "3", description: this.description })), this.parsedImage ? (index.h("eds-img", Object.assign({ class: "mt-8" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (index.h("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, index.h("div", { key: '97b75afb4b8de1183d4b212054ff556ba3db8fcb', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index$1) => (index.h("eds-tag", { key: index$1, intent: tag.style, label: tag.label })))), ' '));
99
+ }
100
+ get el() { return index.getElement(this); }
101
+ };
102
+ EdsCardGeneric.style = EdsCardGenericStyle0;
103
+
104
+ exports.eds_card_generic = EdsCardGeneric;
@@ -3,7 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f08e4f5c.js');
6
- const color = require('./color-88793e49.js');
6
+ const analytics = require('./analytics-223ea8e5.js');
7
+ const color = require('./color-c00146a8.js');
7
8
  require('./index-ab9fbefe.js');
8
9
 
9
10
  const EdsCardProject = class {
@@ -35,7 +36,7 @@ const EdsCardProject = class {
35
36
  handleClick(event) {
36
37
  var _a;
37
38
  event.preventDefault();
38
- color.sendAnalytics({
39
+ analytics.sendAnalytics({
39
40
  category: 'ui-component',
40
41
  tag: this.el.tagName.toLowerCase(),
41
42
  name: ((_a = this.titleProject) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
@@ -59,7 +60,7 @@ const EdsCardProject = class {
59
60
  this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
60
61
  ].join(' ');
61
62
  const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
62
- return (index.h("article", { key: '6af49754300ded8748ac3f40175e262480054969', class: cardClasses, onClick: (event) => this.handleClick(event) }, index.h("div", { key: '91e8501312957c44d9dc075f2ec3a9e5a5d425cb', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, index.h("div", { key: '44e3cf2d67255bb5669b6c721741ed060ba599e7', class: "lg:max-w-[720px]" }, index.h("eds-card-title", { key: '0cf1d124b975e4d7223bab58db0d5861d348ceb2', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (index.h("span", { key: '85e1158691ae876bc0f3c6d0c5557f394ae935cb', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (index.h("div", { key: '9ffdc9f14709600b623c3a5f878b2700864ced79', class: "mt-auto flex items-center gap-x-12 pt-12" }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && index.h("eds-tag", { key: 'ecc5e55430df355c13420add9969855d1d54c27f', label: this.categoryTitle })))), this.parsedImage && (index.h("div", { key: '97de7a06a13d9843cb18fe4eb19303f436e2ce16', class: imageClasses }, index.h("div", { key: '532d3c8252316a68976b4587c3d5b63167c0c598', class: "aspect-1x1 w-full" }, index.h("eds-img", Object.assign({ key: '37ee3dbbc99ec8c9139b0a89f9c725768eac5f6d', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
63
+ return (index.h("article", { key: '98c5dbd033ec05d08965559e00f32d9fe18698ef', class: cardClasses, onClick: (event) => this.handleClick(event) }, index.h("div", { key: 'e083c43e38c3c24fcd996a90267f7cd92d3651b3', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, index.h("div", { key: '37de1e46023b533fd8595a3077c4e68c11fb01af', class: "lg:max-w-[720px]" }, index.h("eds-card-title", { key: 'ee31ae2804d2c17c82e8f4c0c3269ac8254331df', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (index.h("span", { key: 'c6f74ba9b5b522f713e25d3339f541efa68cdddd', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (index.h("div", { key: 'ab18e55046777cf4a4f58ebd057641db9b9e0328', class: "mt-auto flex items-center gap-x-12 pt-12" }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && index.h("eds-tag", { key: '3714ee86a74dce7f33a8f953fd726db349ba9271', label: this.categoryTitle })))), this.parsedImage && (index.h("div", { key: '2818d15f7ab671b7b2dfb34ec3085b390150f38d', class: imageClasses }, index.h("div", { key: '5166feef3674631298f699449b956655f38f0db9', class: "aspect-1x1 w-full" }, index.h("eds-img", Object.assign({ key: '86555a43491da5b2aa3b287e539e603a2c2adaf3', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
63
64
  }
64
65
  get el() { return index.getElement(this); }
65
66
  };
@@ -47,7 +47,7 @@ const EdsCardSection = class {
47
47
  * @returns {JSX.Element} The rendered section containing a list of cards.
48
48
  */
49
49
  render() {
50
- return (index.h("section", { key: 'da139da167230819e494a6426c2431f209a2e557', class: "w-full" }, index.h("ul", { key: '3e8affe5c9aee91c4487480c72c437339265101a', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (index.h("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, index.h("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
50
+ return (index.h("section", { key: '1f221e1ec7c3cdd0e3aed18f6f930c2c5456c64b', class: "w-full" }, index.h("ul", { key: '36f984994bb2dc247475c20422f7e6e7da7d058d', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (index.h("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, index.h("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
51
51
  }
52
52
  };
53
53
  EdsCardSection.style = EdsCardSectionStyle0;
@@ -14,7 +14,7 @@ const EdsCardTags = class {
14
14
  this.tags = [];
15
15
  }
16
16
  render() {
17
- return (index.h("div", { key: '60a129de62d45736eba0884cc24c9738f3a0f55c', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index$1) => (index.h("eds-tag", { key: index$1, intent: this.accent ? 'accent' : 'default', label: tag })))));
17
+ return (index.h("div", { key: '272d53abb9be9086881cb2f8e99f7fb7aae1bb59', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index$1) => (index.h("eds-tag", { key: index$1, intent: this.accent ? 'accent' : 'default', label: tag })))));
18
18
  }
19
19
  };
20
20
  EdsCardTags.style = EdsCardTagsStyle0;
@@ -3,8 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f08e4f5c.js');
6
- const color = require('./color-88793e49.js');
7
- require('./index-ab9fbefe.js');
6
+ const analytics = require('./analytics-223ea8e5.js');
8
7
 
9
8
  const edsCardToolCss = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.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)}.hover\\:shadow-hover: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}.border-soft{border-color:rgba(0, 0, 0, .15 )}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";
10
9
  const EdsCardToolStyle0 = edsCardToolCss;
@@ -63,7 +62,7 @@ const EdsCardTool = class {
63
62
  handleClick() {
64
63
  var _a;
65
64
  //event.preventDefault();
66
- color.sendAnalytics({
65
+ analytics.sendAnalytics({
67
66
  category: 'ui-component',
68
67
  tag: this.el.tagName.toLowerCase(),
69
68
  name: ((_a = this.cardTitle) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
@@ -71,7 +70,7 @@ const EdsCardTool = class {
71
70
  });
72
71
  }
73
72
  render() {
74
- return (index.h("article", { key: 'b46c0464688e45ab29f5b58b6cd2e22ed28e1034', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, index.h("eds-card-title", { key: 'a4da791280db14754b445b1a52e33cc9a25f765e', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, "external-link": this.external, hierarchy: this.hierarchy }), this.description && (index.h("eds-card-desc", { key: '86f7c6c80b83f244ba7d07d820d5793e1dda2933', class: "mt-8", "truncate-lines": "3", description: this.description })), this.image ? (index.h("eds-img", { src: this.image, alt: "Sample Image", width: 200, height: 150 })) : this.avatar || this.shortAbbreviation ? (index.h("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, index.h("div", { key: '46307b57160f908aa7066b2a636c4db38e0e7a8e', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index$1) => (index.h("eds-tag", { key: index$1, intent: tag.style, label: tag.label }))))));
73
+ return (index.h("article", { key: 'da61b384e966b148cd1f77eec59671bc4d92e259', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, index.h("eds-card-title", { key: '00702d032bc25f52b2a2c98255ceb60a1d314f4d', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, "external-link": this.external, hierarchy: this.hierarchy }), this.description && (index.h("eds-card-desc", { key: 'd2b135ed422fb64f142af71330dc666e2f0c2b1f', class: "mt-8", "truncate-lines": "3", description: this.description })), this.image ? (index.h("eds-img", { src: this.image, alt: "Sample Image", width: 200, height: 150 })) : this.avatar || this.shortAbbreviation ? (index.h("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, index.h("div", { key: '54111e90175754cb0c1f2eb339e86926914ca0e7', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index$1) => (index.h("eds-tag", { key: index$1, intent: tag.style, label: tag.label }))))));
75
74
  }
76
75
  get el() { return index.getElement(this); }
77
76
  };
@@ -24,7 +24,7 @@ const EdsCardWrapper = class {
24
24
  this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
25
25
  'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
26
26
  ].join(' ');
27
- return (index.h("article", { key: '7c12b1d147f061e189b5dda5d517ec4eae0c3691', class: articleClasses }, index.h("slot", { key: 'f506bad73ed38ae36931f88f7d7c5f5d94705e4f' }), this.hasSlot('footer') && (index.h("div", { key: '783f480be269e4a2f61aa8d4396e757fe41bfcc6', class: "mt-auto" }, index.h("slot", { key: 'f07ddaa2d930518a5c8ac82efab3cb0dd6647bdd', name: "footer" })))));
27
+ return (index.h("article", { key: 'f21cc9703011026652765b399e2b87b1ef80d220', class: articleClasses }, index.h("slot", { key: '9a37adad73d2d49edcc9ca9222d5b188202c5612' }), this.hasSlot('footer') && (index.h("div", { key: '87addfc052ed4ae33736724fbd8fbc8aca873b4d', class: "mt-auto" }, index.h("slot", { key: '2e48677f42ac2aa951bc1a82afa9291fea3ddd72', name: "footer" })))));
28
28
  }
29
29
  get el() { return index.getElement(this); }
30
30
  };
@@ -2476,11 +2476,11 @@ const EdsCodeBlock = class {
2476
2476
  return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
2477
2477
  }
2478
2478
  // eslint-disable-next-line
2479
- console.warn(`Unsupported or missing language: ${this.language}`);
2479
+ //console.warn(`Unsupported or missing language: ${this.language}`);
2480
2480
  return this.code; // Fallback if language is not provided or unsupported
2481
2481
  }
2482
2482
  render() {
2483
- return (index.h("div", { key: '00eba9265ee17605f699d1e5606013b68e900b29', class: "relative bg-stronger rounded-sm" }, index.h("div", { key: '1192584f04de5ff74e91c88597a3360b92053456', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (index.h("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (index.h("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, index.h("code", { innerHTML: this.getHighlightedCode() }))), index.h("span", { key: '3666b6529a16a8cc64f448527db4ddee08f977a3', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, index.h("eds-icon-wrapper", { key: 'f222d95a2e548429f6c4de96a7646e3cef1f360f', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), index.h("span", { key: '8c539deda773909c01a41eb04ee51380c0a9c4bb', class: "sr-only" }, "Copy Code")), this.language && (index.h("pre", { key: '99541dedb32c543da5e780ffee4460333fbb3724', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, index.h("code", { key: '4e6ae6fcfae3de8c1fe5ad9d22309e0c8bee0c2c', innerHTML: this.getHighlightedCode() })))));
2483
+ return (index.h("div", { key: 'cb379e82bcf71345945b0b88397650ecd4992770', class: "relative bg-stronger rounded-sm" }, index.h("div", { key: '945046d4fd747cd64a83155b421a897e380cc612', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (index.h("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (index.h("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, index.h("code", { innerHTML: this.getHighlightedCode() }))), index.h("span", { key: '3f6c7e996101f0bb83fb8c9e6991a205a0b268c8', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, index.h("eds-icon-wrapper", { key: '8ad9beb61058f29e688f6777233c61f7fb3ccfe8', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), index.h("span", { key: 'a4f9a07906e1c2d9febb7ae789a3eed76dc422e9', class: "sr-only" }, "Copy Code")), this.language && (index.h("pre", { key: 'e31339126dd3cc885511aaa2bdf6f06f3a113c74', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, index.h("code", { key: '7efacd276f26a00f0f61793f6b8748259e1614b5', innerHTML: this.getHighlightedCode() })))));
2484
2484
  }
2485
2485
  get el() { return index.getElement(this); }
2486
2486
  };
@@ -36,7 +36,11 @@ const EdsDocsInstallation = () => (index.h("div", null,
36
36
  index.h("div", { class: "my-8" },
37
37
  index.h("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
38
38
  index.h("div", { class: "my-8" },
39
- index.h("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))));
39
+ index.h("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" })),
40
+ index.h("div", { class: "my-8" },
41
+ index.h("eds-code-block", { code: "npm install @ebrains/vue", language: "html", "copy-label": "Copy Code" })),
42
+ index.h("div", { class: "my-8" },
43
+ index.h("eds-code-block", { code: "npm install @ebrains/angular", language: "html", "copy-label": "Copy Code" }))));
40
44
 
41
45
  const EdsDocsReact = () => (index.h("div", null,
42
46
  index.h("h2", null, "React Wrappers"),
@@ -44,7 +48,7 @@ const EdsDocsReact = () => (index.h("div", null,
44
48
  index.h("div", { class: "my-8" },
45
49
  index.h("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
46
50
  index.h("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
47
- index.h("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n \n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n \n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n const handleTabChange = (\n event: CustomEvent<{ index: number; name: string }>,\n ) => {\n console.log(event.detail);\n setActiveTabIndex(event.detail.index);\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.addEventListener("tabChange", handleTabChange as EventListener);\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.removeEventListener(\n "tabChange",\n handleTabChange as EventListener,\n );\n };\n }, []); // Empty dependency array ensures this runs only once after mounting\n\n return (\n <div id="main">\n <EdsHeader\n home-url="/"\n user-feature={false}\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n links="[\n { "label": "About", "url": "/about" },\n { "label": "Focus Areas", "url": "/focus-areas" },\n { "label": "News & Events", "url": "/news-and-events" },\n { "label": "Contact", "url": "/contact" }\n ]"\n ></EdsHeader>\n\n <div> \n User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n </div>\n </div>\n );\n}\n\nexport default App;\n', language: "javascript", "copy-label": "Copy Code" }))));
51
+ index.h("eds-code-block", { code: '\nimport {\n EdsHeader,\n EdsFullscreenMenu,\n EdsUser\n} from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n // Add any other properties your user object might have\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n };\n }, []);\n\n return (\n <div>\n <EdsHeader\n homeUrl="/"\n menuEnabled={true}\n inverseHeader={false}\n links={[\n { label: "About", url: "#" },\n { label: "Focus Areas", url: "#" },\n { label: "News & Events", url: "#" },\n { label: "Contact", url: "#" }\n ]}\n >\n <div className="px-16">\n <EdsUser\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n ></EdsUser>\n </div>\n </EdsHeader>\n\n <EdsFullscreenMenu\n home-url="/"\n links={[\n { label: "About", url: "#" },\n { label: "Focus Areas", url: "#" },\n { label: "News & Events", url: "#" },\n { label: "Contact", url: "#" }\n ]}\n ></EdsFullscreenMenu>\n \n <div>\n User is{" "}\n {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n\n <div id="main"></div>\n </div>\n );\n}\n\nexport default App;\n\n', language: "javascript", "copy-label": "Copy Code" }))));
48
52
 
49
53
  const EdsDocsVue = () => (index.h("div", null,
50
54
  index.h("h2", null, "Vue Wrappers"),
@@ -109,7 +113,7 @@ const EdsComponentsSection = class {
109
113
  }
110
114
  }
111
115
  render() {
112
- return index.h("div", { key: 'ce34514ab73daa5baa011bda56a13d6197f8bfd0', class: "container" }, this.renderContent());
116
+ return index.h("div", { key: '7e582a0eeafc2687229454532b5a7f66f91c1856', class: "container" }, this.renderContent());
113
117
  }
114
118
  };
115
119
 
@@ -20,7 +20,7 @@ const EdsDocsPalettes = class {
20
20
  }
21
21
  }
22
22
  render() {
23
- return index.h("div", { key: '42f0a4598c64661d98054522e88366ec591a2cb3', class: "container" }, this.renderContent());
23
+ return index.h("div", { key: 'e8cd71caa7b23cc4dc28c694ecb9f13e3fd4170a', class: "container" }, this.renderContent());
24
24
  }
25
25
  };
26
26
 
@@ -28,7 +28,7 @@ const EdsDocsContent = class {
28
28
  }
29
29
  }
30
30
  render() {
31
- return index.h("div", { key: '10708d591c4077e4e1fe94073322f01121253bdb', class: "container" }, this.renderContent());
31
+ return index.h("div", { key: 'b140f7650e5e01711dc0778b04af83f9d004efc7', class: "container" }, this.renderContent());
32
32
  }
33
33
  };
34
34