@ebrains/components 0.0.1-alpha.0 → 0.2.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 (575) hide show
  1. package/dist/cjs/{color-ac51ccf7.js → color-3ffe3072.js} +6 -6
  2. package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
  3. package/dist/cjs/components.cjs.js +3 -30
  4. package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
  5. package/dist/cjs/eds-accordion.cjs.entry.js +5 -4
  6. package/dist/cjs/{eds-accordion_23.cjs.entry.js → eds-alert_28.cjs.entry.js} +394 -221
  7. package/dist/cjs/eds-block-break.cjs.entry.js +3 -2
  8. package/dist/cjs/eds-breadcrumb.cjs.entry.js +3 -2
  9. package/dist/cjs/eds-card-project.cjs.entry.js +5 -5
  10. package/dist/cjs/eds-card-section.cjs.entry.js +4 -3
  11. package/dist/cjs/eds-card-tags.cjs.entry.js +3 -2
  12. package/dist/cjs/eds-card-tool.cjs.entry.js +6 -5
  13. package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
  14. package/dist/cjs/eds-code-block.cjs.entry.js +4 -34
  15. package/dist/cjs/eds-components-section.cjs.entry.js +2 -2
  16. package/dist/cjs/eds-docs-palettes.cjs.entry.js +2 -2
  17. package/dist/cjs/eds-docs-tokens.cjs.entry.js +2 -2
  18. package/dist/cjs/eds-footer.cjs.entry.js +4 -3
  19. package/dist/cjs/eds-frame.cjs.entry.js +1 -1
  20. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +3 -2
  21. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +3 -3
  22. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +3 -3
  23. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +3 -3
  24. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +3 -3
  25. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +3 -3
  26. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +3 -3
  27. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +3 -3
  28. package/dist/cjs/eds-icon-close.cjs.entry.js +3 -3
  29. package/dist/cjs/eds-icon-copy.cjs.entry.js +3 -3
  30. package/dist/cjs/eds-icon-eu.cjs.entry.js +3 -3
  31. package/dist/cjs/eds-icon-facebook.cjs.entry.js +3 -3
  32. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +3 -3
  33. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +3 -3
  34. package/dist/cjs/eds-icon-loader.cjs.entry.js +3 -3
  35. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +3 -3
  36. package/dist/cjs/eds-icon-menu.cjs.entry.js +3 -3
  37. package/dist/cjs/eds-icon-more.cjs.entry.js +3 -3
  38. package/dist/cjs/eds-icon-search.cjs.entry.js +3 -3
  39. package/dist/cjs/eds-icon-success.cjs.entry.js +3 -3
  40. package/dist/cjs/eds-icon-twitter.cjs.entry.js +3 -3
  41. package/dist/cjs/eds-icon-user.cjs.entry.js +3 -3
  42. package/dist/cjs/eds-icon-youtube.cjs.entry.js +3 -3
  43. package/dist/cjs/eds-login.cjs.entry.js +3 -3
  44. package/dist/cjs/eds-matomo-notice.cjs.entry.js +7 -6
  45. package/dist/cjs/eds-modal.cjs.entry.js +45 -5
  46. package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
  47. package/dist/cjs/eds-pagination.cjs.entry.js +3 -2
  48. package/dist/cjs/eds-rating.cjs.entry.js +3 -2
  49. package/dist/cjs/eds-section-core_2.cjs.entry.js +1 -1
  50. package/dist/cjs/eds-social-networks.cjs.entry.js +4 -3
  51. package/dist/cjs/eds-svg-repository.cjs.entry.js +292 -4
  52. package/dist/cjs/eds-tab.cjs.entry.js +2 -2
  53. package/dist/cjs/eds-table.cjs.entry.js +3 -2
  54. package/dist/cjs/eds-tabs-content.cjs.entry.js +6 -6
  55. package/dist/cjs/eds-tabs.cjs.entry.js +7 -6
  56. package/dist/cjs/eds-tooltip.cjs.entry.js +4 -3
  57. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
  58. package/dist/cjs/{index-2cc3495f.js → index-f08e4f5c.js} +22 -13
  59. package/dist/cjs/{loader-5efe2c21.js → loader-72f9d178.js} +2 -5
  60. package/dist/cjs/loader.cjs.js +2 -2
  61. package/dist/cjs/logo-space.cjs.entry.js +5 -4
  62. package/dist/cjs/logo-variations-horizontal.cjs.entry.js +3 -2
  63. package/dist/cjs/logo-variations-vertical.cjs.entry.js +3 -2
  64. package/dist/cjs/logo-wrong-usage.cjs.entry.js +5 -4
  65. package/dist/cjs/token-list_3.cjs.entry.js +4 -4
  66. package/dist/cjs/token-ratios.cjs.entry.js +2 -2
  67. package/dist/cjs/token-spacing.cjs.entry.js +2 -2
  68. package/dist/cjs/token-typography.cjs.entry.js +2 -2
  69. package/dist/collection/collection-manifest.json +2 -0
  70. package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
  71. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +21 -1
  72. package/dist/collection/components/eds-form/eds-form.css +10 -0
  73. package/dist/collection/components/eds-form/eds-form.js +111 -20
  74. package/dist/collection/components/eds-input-field/eds-input-field.css +16 -6
  75. package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
  76. package/dist/collection/components/eds-modal/eds-modal.css +8 -0
  77. package/dist/collection/components/eds-modal/eds-modal.js +42 -2
  78. package/dist/collection/components/eds-timeline/eds-timeline.js +89 -0
  79. package/dist/collection/components/eds-timeline/eds-timeline.stories.js +35 -0
  80. package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
  81. package/dist/collection/components/eds-trl/eds-trl.css +0 -0
  82. package/dist/collection/components/eds-trl/eds-trl.js +61 -0
  83. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  84. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  85. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  86. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  87. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  88. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  89. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  90. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  91. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  92. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  93. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  94. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  95. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  96. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  97. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +1 -1
  98. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
  99. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
  100. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +1 -1
  101. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  102. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  103. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +1 -1
  104. package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
  105. package/dist/collection/shared-ui/eds-header/eds-header.js +3 -3
  106. package/dist/collection/shared-ui/eds-login/eds-login.js +1 -1
  107. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
  108. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +1 -1
  109. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
  110. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  111. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -1
  112. package/dist/components/analytics.js +6 -6
  113. package/dist/components/components.css +31 -0
  114. package/dist/components/components.esm.js +1 -47
  115. package/dist/components/correct-use-of-colors.js +1 -1
  116. package/dist/components/eds-accordion2.js +4 -3
  117. package/dist/components/eds-alert2.js +3 -2
  118. package/dist/components/eds-avatar2.js +3 -2
  119. package/dist/components/eds-block-break2.js +2 -1
  120. package/dist/components/eds-breadcrumb.js +2 -1
  121. package/dist/components/eds-button2.js +5 -3
  122. package/dist/components/eds-card-desc2.js +2 -1
  123. package/dist/components/eds-card-generic2.js +17 -4
  124. package/dist/components/eds-card-project.js +2 -1
  125. package/dist/components/eds-card-section.js +3 -2
  126. package/dist/components/eds-card-tags.js +2 -1
  127. package/dist/components/eds-card-title2.js +2 -1
  128. package/dist/components/eds-card-tool.js +4 -2
  129. package/dist/components/eds-code-block2.js +3 -33
  130. package/dist/components/eds-components-section.js +1 -1
  131. package/dist/components/eds-docs-palettes.js +1 -1
  132. package/dist/components/eds-docs-tokens.js +1 -1
  133. package/dist/components/eds-dropdown2.js +2 -1
  134. package/dist/components/eds-footer2.js +3 -2
  135. package/dist/components/eds-form.js +97 -22
  136. package/dist/components/eds-fullscreen-menu.js +2 -1
  137. package/dist/components/eds-header.js +5 -4
  138. package/dist/components/eds-icon-arrow-diagonal.js +1 -1
  139. package/dist/components/eds-icon-arrow-right.js +1 -1
  140. package/dist/components/eds-icon-bluesky.js +1 -1
  141. package/dist/components/eds-icon-chevron-down.js +1 -1
  142. package/dist/components/eds-icon-chevron-left.js +1 -1
  143. package/dist/components/eds-icon-chevron-right.js +1 -1
  144. package/dist/components/eds-icon-chevron-up.js +1 -1
  145. package/dist/components/eds-icon-close.js +1 -1
  146. package/dist/components/eds-icon-copy.js +1 -1
  147. package/dist/components/eds-icon-eu.js +1 -1
  148. package/dist/components/eds-icon-facebook.js +1 -1
  149. package/dist/components/eds-icon-gitlab.js +1 -1
  150. package/dist/components/eds-icon-linkedin.js +1 -1
  151. package/dist/components/eds-icon-loader.js +1 -1
  152. package/dist/components/eds-icon-mastodon.js +1 -1
  153. package/dist/components/eds-icon-menu.js +1 -1
  154. package/dist/components/eds-icon-more.js +1 -1
  155. package/dist/components/eds-icon-search.js +1 -1
  156. package/dist/components/eds-icon-success.js +1 -1
  157. package/dist/components/eds-icon-twitter.js +1 -1
  158. package/dist/components/eds-icon-user.js +1 -1
  159. package/dist/components/eds-icon-youtube.js +1 -1
  160. package/dist/components/eds-img2.js +2 -1
  161. package/dist/components/eds-input-field2.js +5 -4
  162. package/dist/components/eds-link2.js +5 -3
  163. package/dist/components/eds-login.js +1 -1
  164. package/dist/components/eds-logo2.js +6 -3
  165. package/dist/components/eds-matomo-notice.js +4 -2
  166. package/dist/components/eds-modal.js +44 -4
  167. package/dist/components/eds-pagination2.js +2 -1
  168. package/dist/components/eds-progress-bar.js +1 -40
  169. package/dist/{esm/eds-progress-bar.entry.js → components/eds-progress-bar2.js} +26 -7
  170. package/dist/components/eds-rating.js +2 -1
  171. package/dist/components/eds-section-core2.js +2 -1
  172. package/dist/components/eds-social-networks2.js +3 -2
  173. package/dist/components/eds-svg-repository.js +290 -2
  174. package/dist/components/eds-tab2.js +1 -1
  175. package/dist/components/eds-table2.js +2 -1
  176. package/dist/components/eds-tabs-content.js +5 -4
  177. package/dist/components/eds-tabs.js +6 -4
  178. package/dist/components/eds-tag2.js +3 -2
  179. package/dist/components/eds-timeline.d.ts +11 -0
  180. package/dist/components/eds-timeline.js +118 -0
  181. package/dist/components/eds-toast-manager.js +3 -2
  182. package/dist/components/eds-toast2.js +1 -1
  183. package/dist/components/eds-tooltip.js +3 -2
  184. package/dist/components/eds-trl.d.ts +11 -0
  185. package/dist/components/eds-trl.js +59 -0
  186. package/dist/components/eds-user-modal2.js +3 -2
  187. package/dist/components/incorrect-use-of-colors.js +1 -1
  188. package/dist/components/index.esm.js +0 -1
  189. package/dist/components/index2.js +44 -399
  190. package/dist/components/keycloak.js +0 -10
  191. package/dist/components/loader.js +2 -5
  192. package/dist/components/logo-space.js +4 -3
  193. package/dist/components/logo-variations-horizontal.js +2 -1
  194. package/dist/components/logo-variations-vertical.js +2 -1
  195. package/dist/components/logo-wrong-usage.js +4 -3
  196. package/dist/components/{p-877403df.entry.js → p-02e2a62f.entry.js} +1 -1
  197. package/dist/components/{p-e2e715a2.entry.js → p-04e47e04.entry.js} +1 -1
  198. package/dist/components/{p-e639818b.entry.js → p-0a3b2576.entry.js} +1 -1
  199. package/dist/components/{p-6bc00fad.entry.js → p-0c2e844e.entry.js} +1 -1
  200. package/dist/components/{p-1d94d663.entry.js → p-0c99ef81.entry.js} +1 -1
  201. package/dist/components/{p-378d371f.entry.js → p-145f13ad.entry.js} +1 -1
  202. package/dist/components/{p-0a195bfe.entry.js → p-16458a81.entry.js} +1 -1
  203. package/dist/components/{p-e69ff916.entry.js → p-1bcfbaf1.entry.js} +1 -1
  204. package/dist/components/p-2117611b.js +1 -0
  205. package/dist/components/{p-513bf756.entry.js → p-22762818.entry.js} +1 -1
  206. package/dist/components/p-22f9e720.js +1 -0
  207. package/dist/components/{p-e04097a2.entry.js → p-272d249f.entry.js} +1 -1
  208. package/dist/components/p-297b2bc3.entry.js +1 -0
  209. package/dist/components/p-2d8508cd.entry.js +1 -0
  210. package/dist/components/p-32cddd94.entry.js +1 -0
  211. package/dist/components/{p-0611bbac.entry.js → p-32f282a9.entry.js} +1 -1
  212. package/dist/components/p-373673ca.js +1 -0
  213. package/dist/components/{p-677f60bc.entry.js → p-388b4966.entry.js} +1 -1
  214. package/dist/components/p-3a2e8ef3.entry.js +1 -0
  215. package/dist/components/p-3afafa59.entry.js +1 -0
  216. package/dist/components/p-3b40559e.entry.js +1 -0
  217. package/dist/components/{p-ff6b25a1.entry.js → p-4037ad48.entry.js} +1 -1
  218. package/dist/components/{p-c16b3c0c.entry.js → p-42b4ecff.entry.js} +1 -1
  219. package/dist/components/p-490ba155.entry.js +1 -0
  220. package/dist/components/p-4932aab2.entry.js +1 -0
  221. package/dist/components/p-49958f77.entry.js +1 -0
  222. package/dist/components/p-4a24c2ce.entry.js +1 -0
  223. package/dist/components/{p-b544f216.entry.js → p-54c75346.entry.js} +1 -1
  224. package/dist/components/{p-42dfb426.entry.js → p-551c0b58.entry.js} +1 -1
  225. package/dist/components/{p-6f601454.entry.js → p-559b6ec9.entry.js} +1 -1
  226. package/dist/components/p-5aad9d3f.entry.js +1 -0
  227. package/dist/components/{p-9c74a5dd.entry.js → p-5ae9722b.entry.js} +1 -1
  228. package/dist/components/{p-3dbf2ac9.entry.js → p-5eb32f03.entry.js} +1 -1
  229. package/dist/components/{p-2728a189.entry.js → p-5fc68438.entry.js} +1 -1
  230. package/dist/components/p-673dce11.entry.js +1 -0
  231. package/dist/components/{p-c0afe524.entry.js → p-6fc62452.entry.js} +1 -1
  232. package/dist/components/{p-36c0f3ee.entry.js → p-73bd0c97.entry.js} +1 -1
  233. package/dist/components/p-79887c2c.entry.js +1 -0
  234. package/dist/components/{p-e9a1fb1e.js → p-7a8b9de5.js} +2 -2
  235. package/dist/components/p-846fc91c.entry.js +1 -0
  236. package/dist/components/p-8c56e39a.entry.js +1 -0
  237. package/dist/components/{p-caf2af08.entry.js → p-9000b245.entry.js} +1 -1
  238. package/dist/components/p-96c4deda.entry.js +1 -0
  239. package/dist/components/{p-4541cb5f.entry.js → p-9722811d.entry.js} +1 -1
  240. package/dist/components/p-a44a1abe.entry.js +1 -0
  241. package/dist/components/p-a4e9b68b.entry.js +1 -0
  242. package/dist/components/{p-55444767.entry.js → p-b14ef448.entry.js} +1 -1
  243. package/dist/components/{p-25eb1801.entry.js → p-b203eb1b.entry.js} +1 -1
  244. package/dist/components/{p-49a5eef5.entry.js → p-b33941a0.entry.js} +1 -1
  245. package/dist/components/{p-c11d93cf.entry.js → p-b717f95a.entry.js} +1 -1
  246. package/dist/components/{p-fa1276cc.entry.js → p-bb60412b.entry.js} +1 -1
  247. package/dist/components/{p-7a2b35b4.entry.js → p-bca40434.entry.js} +1 -1
  248. package/dist/components/{p-6cb8c52d.entry.js → p-bdd86a3c.entry.js} +1 -1
  249. package/dist/components/p-bf0f851d.entry.js +1 -0
  250. package/dist/components/{p-82453a66.entry.js → p-c2d369bc.entry.js} +1 -1
  251. package/dist/components/{p-94b74ae8.entry.js → p-c9c3cc49.entry.js} +1 -1
  252. package/dist/components/p-d1670eec.entry.js +1 -0
  253. package/dist/components/{p-bad2a33a.entry.js → p-d6d86366.entry.js} +1 -1
  254. package/dist/components/p-d9788b54.entry.js +1 -0
  255. package/dist/components/{p-64d4a6e0.entry.js → p-df93db96.entry.js} +1 -1
  256. package/dist/components/{p-606d8f86.entry.js → p-e20ed2c7.entry.js} +1 -1
  257. package/dist/components/{p-200ad980.entry.js → p-e6bfbf51.entry.js} +1 -1
  258. package/dist/components/{p-ddd005a3.entry.js → p-e74834bc.entry.js} +1 -1
  259. package/dist/components/p-ebed87b8.entry.js +1 -0
  260. package/dist/components/{p-b94318f2.entry.js → p-f7a6ce69.entry.js} +1 -1
  261. package/dist/components/{p-1a1b8e28.entry.js → p-ff5de62c.entry.js} +1 -1
  262. package/dist/components/p-ffec8755.entry.js +1 -0
  263. package/dist/components/primary.js +1 -1
  264. package/dist/components/primary2.js +1 -1
  265. package/dist/components/secondary.js +1 -1
  266. package/dist/components/secondary2.js +7 -7
  267. package/dist/components/support.js +1 -1
  268. package/dist/components/support2.js +3 -3
  269. package/dist/components/token-list2.js +1 -1
  270. package/dist/components/token-radii2.js +1 -1
  271. package/dist/components/token-ratios.js +1 -1
  272. package/dist/components/token-shadows2.js +1 -1
  273. package/dist/components/token-spacing.js +1 -1
  274. package/dist/components/token-typography.js +1 -1
  275. package/dist/esm/{color-49aa977d.js → color-0ba8ed56.js} +6 -6
  276. package/dist/esm/color-primary-palette_6.entry.js +15 -15
  277. package/dist/esm/components.js +4 -31
  278. package/dist/esm/correct-use-of-colors.entry.js +2 -2
  279. package/dist/esm/eds-accordion.entry.js +5 -4
  280. package/dist/esm/{eds-accordion_23.entry.js → eds-alert_28.entry.js} +385 -217
  281. package/dist/esm/eds-block-break.entry.js +3 -2
  282. package/dist/esm/eds-breadcrumb.entry.js +3 -2
  283. package/dist/esm/eds-card-project.entry.js +3 -3
  284. package/dist/esm/eds-card-section.entry.js +4 -3
  285. package/dist/esm/eds-card-tags.entry.js +3 -2
  286. package/dist/esm/eds-card-tool.entry.js +5 -4
  287. package/dist/esm/eds-card-wrapper.entry.js +1 -1
  288. package/dist/esm/eds-code-block.entry.js +4 -34
  289. package/dist/esm/eds-components-section.entry.js +2 -2
  290. package/dist/esm/eds-docs-palettes.entry.js +2 -2
  291. package/dist/esm/eds-docs-tokens.entry.js +2 -2
  292. package/dist/esm/eds-footer.entry.js +4 -3
  293. package/dist/esm/eds-frame.entry.js +1 -1
  294. package/dist/esm/eds-fullscreen-menu.entry.js +3 -2
  295. package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
  296. package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
  297. package/dist/esm/eds-icon-bluesky.entry.js +2 -2
  298. package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
  299. package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
  300. package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
  301. package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
  302. package/dist/esm/eds-icon-close.entry.js +2 -2
  303. package/dist/esm/eds-icon-copy.entry.js +2 -2
  304. package/dist/esm/eds-icon-eu.entry.js +2 -2
  305. package/dist/esm/eds-icon-facebook.entry.js +2 -2
  306. package/dist/esm/eds-icon-gitlab.entry.js +2 -2
  307. package/dist/esm/eds-icon-linkedin.entry.js +2 -2
  308. package/dist/esm/eds-icon-loader.entry.js +2 -2
  309. package/dist/esm/eds-icon-mastodon.entry.js +2 -2
  310. package/dist/esm/eds-icon-menu.entry.js +2 -2
  311. package/dist/esm/eds-icon-more.entry.js +2 -2
  312. package/dist/esm/eds-icon-search.entry.js +2 -2
  313. package/dist/esm/eds-icon-success.entry.js +2 -2
  314. package/dist/esm/eds-icon-twitter.entry.js +2 -2
  315. package/dist/esm/eds-icon-user.entry.js +2 -2
  316. package/dist/esm/eds-icon-youtube.entry.js +2 -2
  317. package/dist/esm/eds-login.entry.js +3 -3
  318. package/dist/esm/eds-matomo-notice.entry.js +6 -5
  319. package/dist/esm/eds-modal.entry.js +45 -5
  320. package/dist/esm/eds-navigator.entry.js +1 -1
  321. package/dist/esm/eds-pagination.entry.js +3 -2
  322. package/dist/esm/eds-rating.entry.js +3 -2
  323. package/dist/esm/eds-section-core_2.entry.js +1 -1
  324. package/dist/esm/eds-social-networks.entry.js +4 -3
  325. package/dist/esm/eds-svg-repository.entry.js +291 -3
  326. package/dist/esm/eds-tab.entry.js +2 -2
  327. package/dist/esm/eds-table.entry.js +3 -2
  328. package/dist/esm/eds-tabs-content.entry.js +5 -5
  329. package/dist/esm/eds-tabs.entry.js +6 -5
  330. package/dist/esm/eds-tooltip.entry.js +4 -3
  331. package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
  332. package/dist/esm/{index-f1426055.js → index-e96badea.js} +22 -13
  333. package/dist/esm/{loader-66341740.js → loader-c9628637.js} +2 -5
  334. package/dist/esm/loader.js +3 -3
  335. package/dist/esm/logo-space.entry.js +5 -4
  336. package/dist/esm/logo-variations-horizontal.entry.js +3 -2
  337. package/dist/esm/logo-variations-vertical.entry.js +3 -2
  338. package/dist/esm/logo-wrong-usage.entry.js +5 -4
  339. package/dist/esm/token-list_3.entry.js +4 -4
  340. package/dist/esm/token-ratios.entry.js +2 -2
  341. package/dist/esm/token-spacing.entry.js +2 -2
  342. package/dist/esm/token-typography.entry.js +2 -2
  343. package/dist/hydrate/index.js +363 -115
  344. package/dist/hydrate/index.mjs +363 -115
  345. package/dist/stencil.config.js +4 -3
  346. package/dist/types/components/eds-accordion/eds-accordion.d.ts +2 -2
  347. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +2 -0
  348. package/dist/types/components/eds-form/eds-form.d.ts +8 -0
  349. package/dist/types/components/eds-modal/eds-modal.d.ts +16 -0
  350. package/dist/types/components/eds-timeline/eds-timeline.d.ts +29 -0
  351. package/dist/types/components/eds-timeline/eds-timeline.stories.d.ts +24 -0
  352. package/dist/types/components/eds-trl/eds-trl.d.ts +9 -0
  353. package/dist/types/components.d.ts +44 -0
  354. package/package.json +3 -3
  355. package/dist/cjs/color-primary-palette.cjs.entry.js +0 -43
  356. package/dist/cjs/color-secondary-palette.cjs.entry.js +0 -68
  357. package/dist/cjs/color-support-palette.cjs.entry.js +0 -59
  358. package/dist/cjs/eds-alert.cjs.entry.js +0 -95
  359. package/dist/cjs/eds-avatar.cjs.entry.js +0 -73
  360. package/dist/cjs/eds-button.cjs.entry.js +0 -233
  361. package/dist/cjs/eds-card-desc.cjs.entry.js +0 -26
  362. package/dist/cjs/eds-card-desc_3.cjs.entry.js +0 -117
  363. package/dist/cjs/eds-card-generic.cjs.entry.js +0 -93
  364. package/dist/cjs/eds-card-title.cjs.entry.js +0 -56
  365. package/dist/cjs/eds-dropdown.cjs.entry.js +0 -129
  366. package/dist/cjs/eds-form.cjs.entry.js +0 -249
  367. package/dist/cjs/eds-header.cjs.entry.js +0 -96
  368. package/dist/cjs/eds-icon-wrapper.cjs.entry.js +0 -40
  369. package/dist/cjs/eds-img.cjs.entry.js +0 -57
  370. package/dist/cjs/eds-input-field.cjs.entry.js +0 -72
  371. package/dist/cjs/eds-input-footer.cjs.entry.js +0 -21
  372. package/dist/cjs/eds-input-label.cjs.entry.js +0 -20
  373. package/dist/cjs/eds-input-range.cjs.entry.js +0 -39
  374. package/dist/cjs/eds-input-search.cjs.entry.js +0 -41
  375. package/dist/cjs/eds-input-select.cjs.entry.js +0 -30
  376. package/dist/cjs/eds-input.cjs.entry.js +0 -68
  377. package/dist/cjs/eds-link.cjs.entry.js +0 -211
  378. package/dist/cjs/eds-logo.cjs.entry.js +0 -76
  379. package/dist/cjs/eds-progress-bar.cjs.entry.js +0 -28
  380. package/dist/cjs/eds-section-core.cjs.entry.js +0 -23
  381. package/dist/cjs/eds-section-heading.cjs.entry.js +0 -41
  382. package/dist/cjs/eds-tag.cjs.entry.js +0 -44
  383. package/dist/cjs/eds-toast-manager.cjs.entry.js +0 -45
  384. package/dist/cjs/eds-toast.cjs.entry.js +0 -53
  385. package/dist/cjs/eds-user-modal.cjs.entry.js +0 -47
  386. package/dist/cjs/eds-user.cjs.entry.js +0 -90
  387. package/dist/cjs/gradient-primary-palette.cjs.entry.js +0 -45
  388. package/dist/cjs/gradient-secondary-palette.cjs.entry.js +0 -79
  389. package/dist/cjs/gradient-support-palette.cjs.entry.js +0 -63
  390. package/dist/cjs/index-1ff5f25c.js +0 -48
  391. package/dist/cjs/index-383d2951.js +0 -3449
  392. package/dist/cjs/index-96a4261e.js +0 -405
  393. package/dist/cjs/index-f62478aa.js +0 -1837
  394. package/dist/cjs/keycloak-940b83c1.js +0 -1910
  395. package/dist/cjs/shadow-css-988e4292.js +0 -334
  396. package/dist/cjs/token-list.cjs.entry.js +0 -253
  397. package/dist/cjs/token-radii.cjs.entry.js +0 -25
  398. package/dist/cjs/token-shadows.cjs.entry.js +0 -34
  399. package/dist/components/app-globals-0f993ce5.js +0 -3
  400. package/dist/components/color-primary-palette.entry.js +0 -39
  401. package/dist/components/color-secondary-palette.entry.js +0 -64
  402. package/dist/components/color-support-palette.entry.js +0 -55
  403. package/dist/components/correct-use-of-colors.entry.js +0 -64
  404. package/dist/components/eds-accordion.entry.js +0 -88
  405. package/dist/components/eds-alert.entry.js +0 -91
  406. package/dist/components/eds-avatar.entry.js +0 -69
  407. package/dist/components/eds-block-break.entry.js +0 -16
  408. package/dist/components/eds-breadcrumb.entry.js +0 -148
  409. package/dist/components/eds-button.entry.js +0 -229
  410. package/dist/components/eds-card-desc.entry.js +0 -22
  411. package/dist/components/eds-card-generic.entry.js +0 -89
  412. package/dist/components/eds-card-project.entry.js +0 -63
  413. package/dist/components/eds-card-section.entry.js +0 -39
  414. package/dist/components/eds-card-tags.entry.js +0 -17
  415. package/dist/components/eds-card-title.entry.js +0 -52
  416. package/dist/components/eds-card-tool.entry.js +0 -75
  417. package/dist/components/eds-card-wrapper.entry.js +0 -28
  418. package/dist/components/eds-code-block.entry.js +0 -2468
  419. package/dist/components/eds-components-section.entry.js +0 -92
  420. package/dist/components/eds-docs-palettes.entry.js +0 -23
  421. package/dist/components/eds-docs-tokens.entry.js +0 -31
  422. package/dist/components/eds-dropdown.entry.js +0 -125
  423. package/dist/components/eds-footer.entry.js +0 -45
  424. package/dist/components/eds-form.entry.js +0 -245
  425. package/dist/components/eds-frame.entry.js +0 -87
  426. package/dist/components/eds-fullscreen-menu.entry.js +0 -95
  427. package/dist/components/eds-header.entry.js +0 -92
  428. package/dist/components/eds-icon-arrow-diagonal.entry.js +0 -14
  429. package/dist/components/eds-icon-arrow-right.entry.js +0 -14
  430. package/dist/components/eds-icon-bluesky.entry.js +0 -14
  431. package/dist/components/eds-icon-chevron-down.entry.js +0 -14
  432. package/dist/components/eds-icon-chevron-left.entry.js +0 -14
  433. package/dist/components/eds-icon-chevron-right.entry.js +0 -14
  434. package/dist/components/eds-icon-chevron-up.entry.js +0 -14
  435. package/dist/components/eds-icon-close.entry.js +0 -14
  436. package/dist/components/eds-icon-copy.entry.js +0 -14
  437. package/dist/components/eds-icon-eu.entry.js +0 -14
  438. package/dist/components/eds-icon-facebook.entry.js +0 -14
  439. package/dist/components/eds-icon-gitlab.entry.js +0 -14
  440. package/dist/components/eds-icon-linkedin.entry.js +0 -14
  441. package/dist/components/eds-icon-loader.entry.js +0 -14
  442. package/dist/components/eds-icon-mastodon.entry.js +0 -14
  443. package/dist/components/eds-icon-menu.entry.js +0 -14
  444. package/dist/components/eds-icon-more.entry.js +0 -14
  445. package/dist/components/eds-icon-search.entry.js +0 -14
  446. package/dist/components/eds-icon-success.entry.js +0 -14
  447. package/dist/components/eds-icon-twitter.entry.js +0 -14
  448. package/dist/components/eds-icon-user.entry.js +0 -14
  449. package/dist/components/eds-icon-wrapper.entry.js +0 -36
  450. package/dist/components/eds-icon-youtube.entry.js +0 -14
  451. package/dist/components/eds-img.entry.js +0 -53
  452. package/dist/components/eds-input-field.entry.js +0 -68
  453. package/dist/components/eds-input-footer.entry.js +0 -17
  454. package/dist/components/eds-input-label.entry.js +0 -16
  455. package/dist/components/eds-input-range.entry.js +0 -35
  456. package/dist/components/eds-input-search.entry.js +0 -37
  457. package/dist/components/eds-input-select.entry.js +0 -26
  458. package/dist/components/eds-input.entry.js +0 -64
  459. package/dist/components/eds-link.entry.js +0 -207
  460. package/dist/components/eds-login.entry.js +0 -68
  461. package/dist/components/eds-logo.entry.js +0 -72
  462. package/dist/components/eds-matomo-notice.entry.js +0 -105
  463. package/dist/components/eds-modal.entry.js +0 -42
  464. package/dist/components/eds-navigator.entry.js +0 -39
  465. package/dist/components/eds-pagination.entry.js +0 -207
  466. package/dist/components/eds-progress-bar.entry.js +0 -24
  467. package/dist/components/eds-rating.entry.js +0 -53
  468. package/dist/components/eds-section-core.entry.js +0 -19
  469. package/dist/components/eds-section-heading.entry.js +0 -37
  470. package/dist/components/eds-social-networks.entry.js +0 -61
  471. package/dist/components/eds-svg-repository.entry.js +0 -28
  472. package/dist/components/eds-tab.entry.js +0 -36
  473. package/dist/components/eds-table.entry.js +0 -138
  474. package/dist/components/eds-tabs-content.entry.js +0 -129
  475. package/dist/components/eds-tabs.entry.js +0 -118
  476. package/dist/components/eds-tag.entry.js +0 -40
  477. package/dist/components/eds-toast-manager.entry.js +0 -41
  478. package/dist/components/eds-toast.entry.js +0 -49
  479. package/dist/components/eds-tooltip.entry.js +0 -95
  480. package/dist/components/eds-user-modal.entry.js +0 -43
  481. package/dist/components/eds-user.entry.js +0 -86
  482. package/dist/components/gradient-primary-palette.entry.js +0 -41
  483. package/dist/components/gradient-secondary-palette.entry.js +0 -75
  484. package/dist/components/gradient-support-palette.entry.js +0 -59
  485. package/dist/components/incorrect-use-of-colors.entry.js +0 -46
  486. package/dist/components/index-144c9ae8.js +0 -46
  487. package/dist/components/index-360dc790.js +0 -401
  488. package/dist/components/index-a9afa43f.js +0 -1802
  489. package/dist/components/index-b384416e.js +0 -3023
  490. package/dist/components/index3.js +0 -46
  491. package/dist/components/index4.js +0 -1802
  492. package/dist/components/keycloak-b647d452.js +0 -1903
  493. package/dist/components/logo-space.entry.js +0 -16
  494. package/dist/components/logo-variations-horizontal.entry.js +0 -26
  495. package/dist/components/logo-variations-vertical.entry.js +0 -26
  496. package/dist/components/logo-wrong-usage.entry.js +0 -16
  497. package/dist/components/p-0a6262b7.entry.js +0 -1
  498. package/dist/components/p-11a4ef34.entry.js +0 -1
  499. package/dist/components/p-145d8e4d.entry.js +0 -1
  500. package/dist/components/p-219d9f68.entry.js +0 -1
  501. package/dist/components/p-22ee5374.entry.js +0 -1
  502. package/dist/components/p-2b14f03a.entry.js +0 -1
  503. package/dist/components/p-3048bdec.entry.js +0 -1
  504. package/dist/components/p-52a487ee.entry.js +0 -1
  505. package/dist/components/p-5b900a2c.entry.js +0 -1
  506. package/dist/components/p-5edc806a.entry.js +0 -1
  507. package/dist/components/p-763cbe2f.entry.js +0 -1
  508. package/dist/components/p-77a81dfa.entry.js +0 -1
  509. package/dist/components/p-81d2a9be.entry.js +0 -1
  510. package/dist/components/p-8c1be2b6.entry.js +0 -1
  511. package/dist/components/p-923e4d23.entry.js +0 -1
  512. package/dist/components/p-9c05e349.entry.js +0 -1
  513. package/dist/components/p-abcdf35f.js +0 -1
  514. package/dist/components/p-ac083317.entry.js +0 -1
  515. package/dist/components/p-ad79cc3c.entry.js +0 -1
  516. package/dist/components/p-b4055691.entry.js +0 -1
  517. package/dist/components/p-bfd2fdf1.entry.js +0 -1
  518. package/dist/components/p-c3c61db1.entry.js +0 -1
  519. package/dist/components/p-d80de13e.entry.js +0 -1
  520. package/dist/components/p-e80f4f24.js +0 -1
  521. package/dist/components/p-ec95188c.entry.js +0 -1
  522. package/dist/components/p-f04946a5.entry.js +0 -1
  523. package/dist/components/shadow-css-423dab2c.js +0 -332
  524. package/dist/components/token-list.entry.js +0 -249
  525. package/dist/components/token-radii.entry.js +0 -21
  526. package/dist/components/token-ratios.entry.js +0 -25
  527. package/dist/components/token-shadows.entry.js +0 -30
  528. package/dist/components/token-spacing.entry.js +0 -12
  529. package/dist/components/token-typography.entry.js +0 -226
  530. package/dist/esm/color-primary-palette.entry.js +0 -39
  531. package/dist/esm/color-secondary-palette.entry.js +0 -64
  532. package/dist/esm/color-support-palette.entry.js +0 -55
  533. package/dist/esm/eds-alert.entry.js +0 -91
  534. package/dist/esm/eds-avatar.entry.js +0 -69
  535. package/dist/esm/eds-button.entry.js +0 -229
  536. package/dist/esm/eds-card-desc.entry.js +0 -22
  537. package/dist/esm/eds-card-desc_3.entry.js +0 -111
  538. package/dist/esm/eds-card-generic.entry.js +0 -89
  539. package/dist/esm/eds-card-title.entry.js +0 -52
  540. package/dist/esm/eds-dropdown.entry.js +0 -125
  541. package/dist/esm/eds-form.entry.js +0 -245
  542. package/dist/esm/eds-header.entry.js +0 -92
  543. package/dist/esm/eds-icon-wrapper.entry.js +0 -36
  544. package/dist/esm/eds-img.entry.js +0 -53
  545. package/dist/esm/eds-input-field.entry.js +0 -68
  546. package/dist/esm/eds-input-footer.entry.js +0 -17
  547. package/dist/esm/eds-input-label.entry.js +0 -16
  548. package/dist/esm/eds-input-range.entry.js +0 -35
  549. package/dist/esm/eds-input-search.entry.js +0 -37
  550. package/dist/esm/eds-input-select.entry.js +0 -26
  551. package/dist/esm/eds-input.entry.js +0 -64
  552. package/dist/esm/eds-link.entry.js +0 -207
  553. package/dist/esm/eds-logo.entry.js +0 -72
  554. package/dist/esm/eds-section-core.entry.js +0 -19
  555. package/dist/esm/eds-section-heading.entry.js +0 -37
  556. package/dist/esm/eds-tag.entry.js +0 -40
  557. package/dist/esm/eds-toast-manager.entry.js +0 -41
  558. package/dist/esm/eds-toast.entry.js +0 -49
  559. package/dist/esm/eds-user-modal.entry.js +0 -43
  560. package/dist/esm/eds-user.entry.js +0 -86
  561. package/dist/esm/gradient-primary-palette.entry.js +0 -41
  562. package/dist/esm/gradient-secondary-palette.entry.js +0 -75
  563. package/dist/esm/gradient-support-palette.entry.js +0 -59
  564. package/dist/esm/index-144c9ae8.js +0 -46
  565. package/dist/esm/index-360dc790.js +0 -401
  566. package/dist/esm/index-a9afa43f.js +0 -1802
  567. package/dist/esm/index-b384416e.js +0 -3416
  568. package/dist/esm/keycloak-b647d452.js +0 -1903
  569. package/dist/esm/shadow-css-423dab2c.js +0 -332
  570. package/dist/esm/toastManager-b716afd8.js +0 -31
  571. package/dist/esm/token-list.entry.js +0 -249
  572. package/dist/esm/token-radii.entry.js +0 -21
  573. package/dist/esm/token-shadows.entry.js +0 -30
  574. /package/dist/cjs/{toastManager-1fb1a402.js → toastManager-4e9535f3.js} +0 -0
  575. /package/dist/{components/toastManager-b716afd8.js → esm/toastManager-d9eee791.js} +0 -0
@@ -1,37 +0,0 @@
1
- import { r as registerInstance, h } from './index-b384416e.js';
2
-
3
- const EdsSectionHeading = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.sectionTitle = undefined;
7
- this.withContainer = true;
8
- this.headingLevel = 'h2';
9
- this.tag = 'div';
10
- this.spacingLarge = false;
11
- }
12
- getHeadingClass() {
13
- // Map heading levels to their respective classes
14
- const headingClasses = {
15
- h1: 'f-heading-01',
16
- h2: 'f-heading-02',
17
- h3: 'f-heading-03',
18
- h4: 'f-heading-04',
19
- h5: 'f-heading-05',
20
- h6: 'f-heading-06'
21
- };
22
- // Return the class based on the heading level
23
- return headingClasses[this.headingLevel];
24
- }
25
- render() {
26
- const TagType = this.tag; // Dynamically set tag type for the container
27
- const HeadingTag = this.headingLevel; // Dynamically set heading level
28
- return (h(TagType, { key: '2c6466c0a02bf8598153c18eafb37affc3dac395', class: {
29
- 'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20': true,
30
- container: this.withContainer,
31
- 'pt-48': this.spacingLarge,
32
- 'pt-28': !this.spacingLarge
33
- } }, h(HeadingTag, { key: 'fc7f0f09e02e8c63697e46811c465792497126e0', class: this.getHeadingClass() }, this.sectionTitle)));
34
- }
35
- };
36
-
37
- export { EdsSectionHeading as eds_section_heading };
@@ -1,61 +0,0 @@
1
- import { r as registerInstance, h } from './index-b384416e.js';
2
-
3
- const edsSocialNetworkCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
4
-
5
- const EdsSocialNetwork = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- /**
9
- * Array of social network objects, each containing label, URL, and icon.
10
- * These are used to render the social network links.
11
- *
12
- * @private
13
- * @type {SocialNetworks[]}
14
- */
15
- this.socialNetworks = [
16
- {
17
- label: 'Twitter',
18
- url: 'https://twitter.com/ebrains_eu',
19
- icon: 'twitter'
20
- },
21
- {
22
- label: 'Linkedin',
23
- url: 'https://www.linkedin.com/company/ebrains-eu/about/',
24
- icon: 'linkedin'
25
- },
26
- {
27
- label: 'Facebook',
28
- url: 'https://www.facebook.com/people/Ebrains_eu/100046659909324/',
29
- icon: 'facebook'
30
- },
31
- {
32
- label: 'Youtube',
33
- url: 'https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ',
34
- icon: 'youtube'
35
- },
36
- {
37
- label: 'Mastodon',
38
- url: 'https://mastodon.social/@ebrains',
39
- icon: 'mastodon'
40
- },
41
- {
42
- label: 'Bluesky',
43
- url: 'https://bsky.app/profile/ebrains.bsky.social',
44
- icon: 'bluesky'
45
- }
46
- ];
47
- this.title = 'Follow EBRAINS to keep up-to-date';
48
- }
49
- /**
50
- * Renders the component's HTML structure with links to EBRAINS social profiles.
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
- */
55
- render() {
56
- return (h("div", { key: 'f9096e036107d0b61ac3351194dbcb1747637707' }, h("p", { key: 'c40797bdc36e4e9349005e0e6de2ee0a49c511a4', class: "f-ui-02" }, this.title), h("ul", { key: '62eb31dc0ce98e3c536985d193472443275f3129', 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" })))))));
57
- }
58
- };
59
- EdsSocialNetwork.style = edsSocialNetworkCss;
60
-
61
- export { EdsSocialNetwork as eds_social_networks };
@@ -1,28 +0,0 @@
1
- import { r as registerInstance, h } from './index-b384416e.js';
2
- import { v as svgs } from './index-a9afa43f.js';
3
-
4
- const EdsSvgRepository = class {
5
- constructor(hostRef) {
6
- registerInstance(this, hostRef);
7
- }
8
- // Convert SVG data to a format usable by `eds-table`
9
- getSvgData() {
10
- return Object.entries(svgs)
11
- .filter(([name]) => !name.toLowerCase().includes('logo') && !name.toLowerCase().includes('eu')) // Exclude names containing "logo" or "eu"
12
- .map(([name, svgContent]) => ({
13
- name,
14
- icon: svgContent // Pass SVG content as innerHTML
15
- }));
16
- }
17
- render() {
18
- const svgData = this.getSvgData();
19
- // Define table configuration
20
- const tableConfig = {
21
- icon: { format: 'svg' },
22
- name: { format: 'bold' }
23
- };
24
- return (h("eds-table", { key: 'a13e24877de433c40b536cb5b74af4c0706aeecf', data: JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true }));
25
- }
26
- };
27
-
28
- export { EdsSvgRepository as eds_svg_repository };
@@ -1,36 +0,0 @@
1
- import { r as registerInstance, h } from './index-b384416e.js';
2
- import { c as cva } from './index-144c9ae8.js';
3
-
4
- const EdsTab = class {
5
- constructor(hostRef) {
6
- registerInstance(this, hostRef);
7
- this.tabCva = cva([
8
- 'cursor-pointer',
9
- //'px-16 py-12',
10
- //'border-b-2',
11
- 'text-gray-700',
12
- 'hover:text-black',
13
- 'focus:outline-none',
14
- 'focus-visible:ring'
15
- ], {
16
- variants: {
17
- active: {
18
- true: 'border-blue-500 font-bold text-blue-600',
19
- false: 'border-transparent'
20
- }
21
- },
22
- defaultVariants: {
23
- active: false
24
- }
25
- });
26
- this.label = undefined;
27
- this.url = undefined;
28
- this.active = false;
29
- this.ariaLabel = undefined;
30
- }
31
- render() {
32
- return (h("a", { key: 'ba4c995637d8d305249f018a0451775f45907716', "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label));
33
- }
34
- };
35
-
36
- export { EdsTab as eds_tab };
@@ -1,138 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index-b384416e.js';
2
-
3
- const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}";
4
-
5
- const EdsTable = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.minWidth = 400; // Minimum width for components in px
9
- this.data = null;
10
- this.endpoint = null;
11
- this.config = {};
12
- this.rowsPerPage = 10;
13
- this.paginationEnabled = true;
14
- this.searchEnabled = false;
15
- this.tableData = [];
16
- this.columns = [];
17
- this.currentPage = 1;
18
- this.parsedConfig = {};
19
- this.totalRows = 0;
20
- this.searchQuery = '';
21
- }
22
- handleDataChange() {
23
- this.parseData();
24
- }
25
- handleConfigChange() {
26
- this.parseConfig();
27
- }
28
- componentWillLoad() {
29
- this.parseConfig();
30
- this.data ? this.parseData() : this.endpoint && this.fetchData();
31
- }
32
- componentDidLoad() {
33
- this.setupPaginationListener();
34
- }
35
- componentDidUpdate() {
36
- this.setupPaginationListener();
37
- }
38
- parseData() {
39
- try {
40
- this.tableData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
41
- this.totalRows = this.tableData.length;
42
- this.updateColumns();
43
- this.currentPage = 1;
44
- }
45
- catch (error) {
46
- // eslint-disable-next-line
47
- console.error('Failed to parse data:', error);
48
- this.tableData = [];
49
- }
50
- }
51
- parseConfig() {
52
- try {
53
- this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
54
- }
55
- catch (error) {
56
- // eslint-disable-next-line
57
- console.error('Failed to parse config:', error);
58
- this.parsedConfig = {};
59
- }
60
- }
61
- async fetchData() {
62
- try {
63
- const response = await fetch(this.endpoint);
64
- const data = await response.json();
65
- this.data = data;
66
- }
67
- catch (error) {
68
- // eslint-disable-next-line
69
- console.error('Failed to fetch data:', error);
70
- }
71
- }
72
- setupPaginationListener() {
73
- if (!this.shouldEnablePagination()) {
74
- return;
75
- }
76
- const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
77
- if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
78
- paginationEl.addEventListener('pageChange', (event) => this.handlePageChange(event.detail));
79
- paginationEl.setAttribute('listener-attached', 'true');
80
- }
81
- }
82
- getFilteredRows() {
83
- return this.tableData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
84
- }
85
- getPaginatedRows() {
86
- const filteredRows = this.getFilteredRows();
87
- this.totalRows = filteredRows.length;
88
- const start = (this.currentPage - 1) * this.rowsPerPage;
89
- return filteredRows.slice(start, start + this.rowsPerPage);
90
- }
91
- handlePageChange(newPage) {
92
- this.currentPage = newPage;
93
- }
94
- handleSearch(event) {
95
- this.searchQuery = event.target.value;
96
- this.currentPage = 1;
97
- }
98
- renderCell(value, column) {
99
- var _a;
100
- const format = (_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.format;
101
- return format === 'uppercase' ? (value === null || value === void 0 ? void 0 : value.toString().toUpperCase()) : format === 'svg' ? (h("div", { innerHTML: value })) : format === 'bold' ? (h("strong", null, value)) : format === 'code' ? (h("code", null, value)) : (value);
102
- }
103
- shouldEnablePagination() {
104
- return this.paginationEnabled && this.totalRows > this.rowsPerPage;
105
- }
106
- updateColumns() {
107
- this.columns = this.tableData.length > 0 ? Object.keys(this.tableData[0]) : [];
108
- }
109
- getVisibleColumnsCount() {
110
- return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
111
- }
112
- render() {
113
- const paginatedRows = this.getPaginatedRows();
114
- const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
115
- // Calculate column width based on minWidth and number of columns
116
- //const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
117
- // Use the visible column count to calculate the column width
118
- const visibleColumnsCount = this.getVisibleColumnsCount();
119
- const columnWidth = visibleColumnsCount > 0 ? Math.max(this.minWidth / visibleColumnsCount, 100) : 100;
120
- return (h("div", { key: 'c5e50673eb1ed5cf00e0294885bf9cd6d13f9366', class: "container", style: { minWidth: `${this.minWidth}px` } }, h("div", { key: '0e0814a8cb5ae1e11538a26cba630e59d39dde74' }, this.searchEnabled && (h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
121
- // @ts-ignore
122
- onInput: (event) => this.handleSearch(event) }))), h("div", { key: '65e0c9057c313f220655ecd7692a83c932f441b3', class: "mt-20" }, h("table", { key: '9e77153c2e0983f7598a21ef55ebcf3107655e09', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: '38e5ac67ffae80d896c29357615d19b5dfcc52d3' }, h("tr", { key: '526c5b30da0a2aa97bb90f5b473b3e9ea41dde6b', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
123
- var _a;
124
- return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("th", { class: "m-0 px-20 py-8 border border-softer f-ui-02", style: { minWidth: `${columnWidth}px` } }, column));
125
- }))), h("tbody", { key: '5a10525ed86eac82291746be4c6cce5f65942d2d' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
126
- var _a;
127
- return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("td", { class: "text-center border border-softer m-0 px-20 py-8 f-ui-2", style: { minWidth: `${columnWidth}px` } }, this.renderCell(row[column], column)));
128
- }))))))), h("div", { key: 'af1183fd3e635c7d7ac982231adfdd9d892f6979', class: "mt-20" }, this.shouldEnablePagination() && (h("eds-pagination", { key: 'a5de7f25054c2d67f0788bfd2bc37d07f46de02c', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
129
- }
130
- get hostEl() { return getElement(this); }
131
- static get watchers() { return {
132
- "data": ["handleDataChange"],
133
- "config": ["handleConfigChange"]
134
- }; }
135
- };
136
- EdsTable.style = edsTableCss;
137
-
138
- export { EdsTable as eds_table };
@@ -1,129 +0,0 @@
1
- import { r as registerInstance, a as createEvent, h, g as getElement } from './index-b384416e.js';
2
- import { s as sendAnalytics } from './index-360dc790.js';
3
- import { c as cva } from './index-144c9ae8.js';
4
-
5
- const EdsTabsContent = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.tabContentChange = createEvent(this, "tabContentChange", 7);
9
- // cva configuration
10
- this.tabCva = cva([
11
- 'relative px-16 py-12',
12
- 'f-ui-03 whitespace-nowrap',
13
- 'effect-color',
14
- 'focus-visible:text-default hover:text-default',
15
- 'border-2',
16
- "after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:border-3 after:border-accent after:opacity-0",
17
- 'outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100'
18
- ], {
19
- variants: {
20
- position: {
21
- left: 'rounded-tl-lg border-r-0 pr-28 -mr-16 after:right-16',
22
- right: 'rounded-tr-lg border-l-0 pl-28 -ml-16 after:left-16',
23
- center: '',
24
- first: 'rounded-t-lg'
25
- },
26
- active: {
27
- false: 'text-lighter bg-dark hover:bg-darker border-softest',
28
- true: [
29
- 'bg-default text-default z-99',
30
- 'rounded-t-lg',
31
- "before:content-[''] before:absolute before:-bottom-2 z-1 before:inset-x-0 before:h-3 before:bg-default",
32
- 'border-[#d2d2d2]'
33
- ]
34
- }
35
- }
36
- });
37
- this.navAriaLabel = 'Tabs';
38
- this.tabs = undefined;
39
- this.parsedTabs = [];
40
- this.activeIndex = -1;
41
- }
42
- componentWillLoad() {
43
- this.parseTabs();
44
- this.setActiveIndex();
45
- }
46
- parseTabs() {
47
- try {
48
- this.parsedTabs = JSON.parse(this.tabs);
49
- }
50
- catch (error) {
51
- //console.error('Invalid JSON format for tabs:', error);
52
- this.parsedTabs = [];
53
- }
54
- }
55
- componentDidLoad() {
56
- this.initializeTabContentVisibility();
57
- this.el.addEventListener('tabContentChange', (e) => {
58
- this.updateTabContentVisibility(e.detail.index);
59
- });
60
- this.scrollToActiveTab();
61
- }
62
- initializeTabContentVisibility() {
63
- const allContent = this.el.querySelectorAll('.tab-content');
64
- allContent.forEach((content, index) => {
65
- content.setAttribute('style', `display: ${index === this.activeIndex ? 'block' : 'none'}`);
66
- });
67
- }
68
- updateTabContentVisibility(index) {
69
- const allContent = this.el.querySelectorAll('.tab-content');
70
- allContent.forEach((content, contentIndex) => {
71
- content.setAttribute('style', `display: ${contentIndex === index ? 'block' : 'none'}`);
72
- });
73
- }
74
- setActiveIndex() {
75
- this.activeIndex = this.parsedTabs.findIndex((tab) => tab.active);
76
- }
77
- scrollToActiveTab() {
78
- var _a;
79
- const activeTab = (_a = this.tabContainer) === null || _a === void 0 ? void 0 : _a.querySelector('[data-tab-active]');
80
- if (activeTab) {
81
- setTimeout(() => {
82
- activeTab.scrollIntoView({
83
- inline: 'center',
84
- block: 'nearest'
85
- });
86
- }, 316);
87
- }
88
- }
89
- getTabOptions(active, index) {
90
- const position = active
91
- ? 'center'
92
- : this.activeIndex === -1 && index === 0
93
- ? 'first'
94
- : index < this.activeIndex
95
- ? 'left'
96
- : 'right';
97
- return Object.assign({ class: this.tabCva({
98
- active,
99
- position
100
- }), style: {
101
- zIndex: `${active ? this.parsedTabs.length + 99 : position === 'left' ? index : this.parsedTabs.length + 1 - index}`
102
- } }, (active ? { 'data-tab-active': 'true' } : {}));
103
- }
104
- handleTabClick(index, tabLabel) {
105
- // Update the active index and set all tabs' active state accordingly
106
- this.activeIndex = index;
107
- this.parsedTabs = this.parsedTabs.map((tab, tabIndex) => (Object.assign(Object.assign({}, tab), { active: tabIndex === index })));
108
- this.tabContentChange.emit({ index: index, name: tabLabel });
109
- sendAnalytics({
110
- category: 'ui-component',
111
- tag: this.el.tagName.toLowerCase(),
112
- name: (tabLabel === null || tabLabel === void 0 ? void 0 : tabLabel.toLowerCase()) || '',
113
- action: 'click'
114
- });
115
- }
116
- render() {
117
- return (h("div", { key: '6e28a10b490f22edee3516ab1d0ec37248f1216a', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("div", { key: '62300b2980120504a5fc2e32e283552252a36344', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: 'e0dbe930935f080bec4f2869ec640e89197b541d', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
118
- //const TabComponent = tab.active ? 'span' : 'a';
119
- const tabProps = this.getTabOptions(tab.active, index);
120
- return (h("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index, tab.label) })));
121
- })), h("slot", { key: '5ba55e25a79886beafa6f25b2e80cc42b5f2abee' }))));
122
- }
123
- get el() { return getElement(this); }
124
- static get watchers() { return {
125
- "tabs": ["parseTabs"]
126
- }; }
127
- };
128
-
129
- export { EdsTabsContent as eds_tabs_content };
@@ -1,118 +0,0 @@
1
- import { r as registerInstance, a as createEvent, h, g as getElement } from './index-b384416e.js';
2
- import { s as sendAnalytics } from './index-360dc790.js';
3
- import { c as cva } from './index-144c9ae8.js';
4
-
5
- const edsTabsCss = "";
6
-
7
- const EdsTabs = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- this.tabChange = createEvent(this, "tabChange", 7);
11
- // cva configuration
12
- this.tabCva = cva([
13
- 'relative px-16 py-12',
14
- 'f-ui-03 whitespace-nowrap',
15
- 'effect-color',
16
- 'focus-visible:text-default hover:text-default',
17
- 'border-2',
18
- "after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:border-3 after:border-accent after:opacity-0",
19
- 'outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100'
20
- ], {
21
- variants: {
22
- position: {
23
- left: 'rounded-tl-lg border-r-0 pr-28 -mr-16 after:right-16',
24
- right: 'rounded-tr-lg border-l-0 pl-28 -ml-16 after:left-16',
25
- center: '',
26
- first: 'rounded-t-lg'
27
- },
28
- active: {
29
- false: 'text-lighter bg-dark hover:bg-darker border-softest',
30
- true: [
31
- 'bg-default text-default z-99',
32
- 'rounded-t-lg',
33
- "before:content-[''] before:absolute before:-bottom-2 z-1 before:inset-x-0 before:h-3 before:bg-default",
34
- 'border-[#d2d2d2]'
35
- ]
36
- }
37
- }
38
- });
39
- this.id = undefined;
40
- this.navAriaLabel = 'Tabs';
41
- this.tabs = undefined;
42
- this.parsedTabs = [];
43
- this.activeIndex = -1;
44
- }
45
- componentWillLoad() {
46
- this.parseTabs();
47
- this.setActiveIndex();
48
- this.tabChange.emit({ tabId: this.id, index: 0 });
49
- }
50
- parseTabs() {
51
- try {
52
- this.parsedTabs = JSON.parse(this.tabs);
53
- }
54
- catch (error) {
55
- //console.error('Invalid JSON format for tabs:', error);
56
- this.parsedTabs = [];
57
- }
58
- }
59
- componentDidLoad() {
60
- this.scrollToActiveTab();
61
- }
62
- setActiveIndex() {
63
- this.activeIndex = this.parsedTabs.findIndex((tab) => tab.active);
64
- }
65
- scrollToActiveTab() {
66
- var _a;
67
- const activeTab = (_a = this.tabContainer) === null || _a === void 0 ? void 0 : _a.querySelector('[data-tab-active]');
68
- if (activeTab) {
69
- setTimeout(() => {
70
- activeTab.scrollIntoView({
71
- inline: 'center',
72
- block: 'nearest'
73
- });
74
- }, 316);
75
- }
76
- }
77
- getTabOptions(active, index) {
78
- const position = active
79
- ? 'center'
80
- : this.activeIndex === -1 && index === 0
81
- ? 'first'
82
- : index < this.activeIndex
83
- ? 'left'
84
- : 'right';
85
- return Object.assign({ class: this.tabCva({
86
- active,
87
- position
88
- }), style: {
89
- zIndex: `${active ? this.parsedTabs.length + 99 : position === 'left' ? index : this.parsedTabs.length + 1 - index}`
90
- } }, (active ? { 'data-tab-active': 'true' } : {}));
91
- }
92
- handleTabClick(index, tabLabel) {
93
- // Update the active index and set all tabs' active state accordingly
94
- this.activeIndex = index;
95
- this.parsedTabs = this.parsedTabs.map((tab, tabIndex) => (Object.assign(Object.assign({}, tab), { active: tabIndex === index })));
96
- this.tabChange.emit({ tabId: this.id, index: index, name: tabLabel });
97
- sendAnalytics({
98
- category: 'ui-component',
99
- tag: this.el.tagName.toLowerCase(),
100
- name: (tabLabel === null || tabLabel === void 0 ? void 0 : tabLabel.toLowerCase()) || '',
101
- action: 'click'
102
- });
103
- }
104
- render() {
105
- return (h("div", { key: '826fb378cc685039ef3dad47d927ec0398606c9b', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("div", { key: '7065bfd5e3dad0386af8bf5741a6517c5cf73db4', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: '41b08427b7c265c70ad506e87733592b28addeda', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
106
- //const TabComponent = tab.active ? 'span' : 'a';
107
- const tabProps = this.getTabOptions(tab.active, index);
108
- return (h("eds-tab", Object.assign({}, tabProps, { label: tab.label || tab.ariaLabel, url: tab.url, active: index === this.activeIndex, onClick: () => this.handleTabClick(index, tab.label) })));
109
- })))));
110
- }
111
- get el() { return getElement(this); }
112
- static get watchers() { return {
113
- "tabs": ["parseTabs"]
114
- }; }
115
- };
116
- EdsTabs.style = edsTabsCss;
117
-
118
- export { EdsTabs as eds_tabs };
@@ -1,40 +0,0 @@
1
- import { r as registerInstance, h } from './index-b384416e.js';
2
- import { c as cva } from './index-144c9ae8.js';
3
-
4
- 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)}";
5
-
6
- // Define the CVA for the tag styles
7
- const tagStyles = cva(['f-ui-05 py-1 px-4 border-2 rounded-pill'], // Base classes
8
- {
9
- variants: {
10
- intent: {
11
- default: 'border-default',
12
- strong: 'text-inverse bg-strongest border-default',
13
- accent: 'text-[#0034CB] border-[#0034CB]',
14
- weak: 'text-light bg-strongest-soft border-transparent',
15
- inverse: 'border-inverse text-inverse',
16
- 'inverse-strong': 'bg-inverse border-inverse text-lighter'
17
- }
18
- },
19
- defaultVariants: {
20
- intent: 'default'
21
- }
22
- });
23
- const EdsTag = class {
24
- constructor(hostRef) {
25
- registerInstance(this, hostRef);
26
- this.label = undefined;
27
- this.intent = 'default';
28
- }
29
- /**
30
- * Render the component.
31
- * @returns The rendered HTML for the tag component with the applied styles and label.
32
- */
33
- render() {
34
- const classes = tagStyles({ intent: this.intent });
35
- return h("span", { key: '546bd7eb2c78760edc12cd7bb3ede5f6ab9099f3', class: classes }, this.label);
36
- }
37
- };
38
- EdsTag.style = edsTagCss;
39
-
40
- export { EdsTag as eds_tag };
@@ -1,41 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index-b384416e.js';
2
- import { t as toast } from './toastManager-b716afd8.js';
3
-
4
- const edsToastManagerCss = ".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:50;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:36rem;}.toast-wrapper{width:100%;padding:0 1rem;}.eds-toast{box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);border-radius:0.5rem;animation:fade-in 0.3s ease-out;}@keyframes fade-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}";
5
-
6
- const EdsToastManager = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.toastId = 0;
10
- this.toasts = [];
11
- }
12
- connectedCallback() {
13
- // Initialize the ToastManager singleton with this element
14
- toast.init(this.hostElement);
15
- // Listen for custom events
16
- this.hostElement.addEventListener('show-toast', (event) => {
17
- const { message, intent } = event.detail;
18
- this.addToast(message, intent);
19
- });
20
- }
21
- /**
22
- * Adds a new toast.
23
- */
24
- addToast(message, intent) {
25
- const id = this.toastId++;
26
- this.toasts = [...this.toasts, { id, message, intent }];
27
- }
28
- /**
29
- * Removes a toast by ID.
30
- */
31
- removeToast(id) {
32
- this.toasts = this.toasts.filter((t) => t.id !== id);
33
- }
34
- render() {
35
- return (h("div", { key: '91104e9dfd85e638a5482d22c70506ce06989bbd', class: "toast-container" }, this.toasts.map((t) => (h("div", { key: t.id }, h("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
36
- }
37
- get hostElement() { return getElement(this); }
38
- };
39
- EdsToastManager.style = edsToastManagerCss;
40
-
41
- export { EdsToastManager as eds_toast_manager };