@ebrains/components 0.0.1-alpha.0 → 0.3.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 (648) 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-alert.cjs.entry.js +10 -9
  7. package/dist/cjs/{eds-accordion_23.cjs.entry.js → eds-avatar_17.cjs.entry.js} +353 -785
  8. package/dist/cjs/eds-card-desc_3.cjs.entry.js +1 -1
  9. package/dist/cjs/eds-card-generic.cjs.entry.js +18 -6
  10. package/dist/cjs/eds-card-project.cjs.entry.js +5 -5
  11. package/dist/cjs/eds-card-section.cjs.entry.js +20 -8
  12. package/dist/cjs/eds-card-tags.cjs.entry.js +3 -2
  13. package/dist/cjs/eds-card-tool.cjs.entry.js +6 -5
  14. package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-code-block.cjs.entry.js +4 -34
  16. package/dist/cjs/eds-components-section.cjs.entry.js +45 -25
  17. package/dist/cjs/eds-docs-palettes.cjs.entry.js +2 -2
  18. package/dist/cjs/eds-docs-tokens.cjs.entry.js +2 -2
  19. package/dist/cjs/eds-form.cjs.entry.js +96 -23
  20. package/dist/cjs/eds-frame.cjs.entry.js +1 -1
  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-input-field.cjs.entry.js → eds-input_7.cjs.entry.js} +249 -5
  44. package/dist/cjs/eds-login.cjs.entry.js +3 -3
  45. package/dist/cjs/eds-logo-variations.cjs.entry.js +27 -0
  46. package/dist/cjs/eds-matomo-notice.cjs.entry.js +7 -6
  47. package/dist/cjs/eds-modal.cjs.entry.js +45 -5
  48. package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
  49. package/dist/cjs/{eds-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +160 -2
  50. package/dist/cjs/eds-progress-bar.cjs.entry.js +3 -2
  51. package/dist/cjs/eds-rating.cjs.entry.js +3 -2
  52. package/dist/cjs/eds-section-core_2.cjs.entry.js +1 -1
  53. package/dist/cjs/eds-svg-repository.cjs.entry.js +298 -4
  54. package/dist/cjs/eds-tab.cjs.entry.js +2 -2
  55. package/dist/cjs/eds-tabs-content.cjs.entry.js +6 -6
  56. package/dist/cjs/eds-tabs.cjs.entry.js +32 -10
  57. package/dist/cjs/eds-timeline.cjs.entry.js +76 -0
  58. package/dist/cjs/eds-tooltip.cjs.entry.js +4 -3
  59. package/dist/cjs/eds-trl.cjs.entry.js +52 -0
  60. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
  61. package/dist/cjs/{index-2cc3495f.js → index-f08e4f5c.js} +54 -37
  62. package/dist/cjs/{loader-5efe2c21.js → loader-72f9d178.js} +2 -5
  63. package/dist/cjs/loader.cjs.js +2 -2
  64. package/dist/cjs/logo-space.cjs.entry.js +5 -4
  65. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
  66. package/dist/cjs/logo-wrong-usage.cjs.entry.js +6 -5
  67. package/dist/cjs/token-list_3.cjs.entry.js +4 -4
  68. package/dist/cjs/token-ratios.cjs.entry.js +2 -2
  69. package/dist/cjs/token-spacing.cjs.entry.js +2 -2
  70. package/dist/cjs/token-typography.cjs.entry.js +2 -2
  71. package/dist/collection/collection-manifest.json +3 -0
  72. package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
  73. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +13 -12
  74. package/dist/collection/components/eds-button/eds-button.js +3 -3
  75. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +21 -1
  76. package/dist/collection/components/eds-form/eds-form.css +10 -0
  77. package/dist/collection/components/eds-form/eds-form.js +111 -20
  78. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +140 -15
  79. package/dist/collection/components/eds-input-field/eds-input-field.css +16 -6
  80. package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
  81. package/dist/collection/components/eds-modal/eds-modal.css +8 -0
  82. package/dist/collection/components/eds-modal/eds-modal.js +42 -2
  83. package/dist/collection/components/eds-table/eds-table.css +4 -0
  84. package/dist/collection/components/eds-table/eds-table.js +69 -11
  85. package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
  86. package/dist/collection/components/eds-timeline/eds-timeline.js +99 -0
  87. package/dist/collection/components/eds-timeline/eds-timeline.stories.js +35 -0
  88. package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
  89. package/dist/collection/components/eds-trl/eds-trl.js +69 -0
  90. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  91. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  92. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  93. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  94. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  95. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  96. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  97. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -5
  98. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  99. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  100. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  101. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  102. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  103. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  104. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +3 -6
  105. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
  106. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
  107. package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +44 -0
  108. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +7 -1
  109. package/dist/collection/eds-docs-ui/functional/angular.js +1 -1
  110. package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
  111. package/dist/collection/eds-docs-ui/functional/overview.js +1 -1
  112. package/dist/collection/eds-docs-ui/functional/react.js +1 -1
  113. package/dist/collection/eds-docs-ui/functional/vue.js +1 -1
  114. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  115. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +21 -1
  116. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +2 -54
  117. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +4 -13
  118. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +4 -0
  119. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  120. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +19 -8
  121. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +40 -7
  122. package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
  123. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +4 -3
  124. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
  125. package/dist/collection/shared-ui/eds-header/eds-header.js +10 -6
  126. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +16 -10
  127. package/dist/collection/shared-ui/eds-login/eds-login.js +3 -2
  128. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +4 -4
  129. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
  130. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +29 -8
  131. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +22 -4
  132. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
  133. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +48 -34
  134. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  135. package/dist/collection/shared-ui/eds-user/eds-user.js +12 -6
  136. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -11
  137. package/dist/components/analytics.js +6 -6
  138. package/dist/components/components.css +38 -0
  139. package/dist/components/components.esm.js +1 -47
  140. package/dist/components/correct-use-of-colors.js +1 -1
  141. package/dist/components/eds-accordion2.js +4 -3
  142. package/dist/components/eds-alert2.js +3 -2
  143. package/dist/components/eds-avatar2.js +3 -2
  144. package/dist/components/eds-block-break2.js +2 -1
  145. package/dist/components/eds-breadcrumb.js +15 -13
  146. package/dist/components/eds-button2.js +6 -4
  147. package/dist/components/eds-card-desc2.js +2 -1
  148. package/dist/components/eds-card-generic2.js +17 -4
  149. package/dist/components/eds-card-project.js +2 -1
  150. package/dist/components/eds-card-section.js +19 -7
  151. package/dist/components/eds-card-tags.js +2 -1
  152. package/dist/components/eds-card-title2.js +2 -1
  153. package/dist/components/eds-card-tool.js +4 -2
  154. package/dist/components/eds-code-block2.js +3 -33
  155. package/dist/components/eds-components-section.js +44 -24
  156. package/dist/components/eds-docs-palettes.js +1 -1
  157. package/dist/components/eds-docs-tokens.js +1 -1
  158. package/dist/components/eds-dropdown2.js +2 -1
  159. package/dist/components/eds-footer2.js +3 -2
  160. package/dist/components/eds-form.js +97 -22
  161. package/dist/components/eds-fullscreen-menu.js +2 -1
  162. package/dist/components/eds-header.js +9 -4
  163. package/dist/components/eds-icon-arrow-diagonal.js +1 -1
  164. package/dist/components/eds-icon-arrow-right.js +1 -1
  165. package/dist/components/eds-icon-bluesky.js +1 -1
  166. package/dist/components/eds-icon-chevron-down.js +1 -1
  167. package/dist/components/eds-icon-chevron-left.js +1 -1
  168. package/dist/components/eds-icon-chevron-right.js +1 -1
  169. package/dist/components/eds-icon-chevron-up.js +1 -1
  170. package/dist/components/eds-icon-close.js +1 -1
  171. package/dist/components/eds-icon-copy.js +1 -1
  172. package/dist/components/eds-icon-eu.js +1 -1
  173. package/dist/components/eds-icon-facebook.js +1 -1
  174. package/dist/components/eds-icon-gitlab.js +1 -1
  175. package/dist/components/eds-icon-linkedin.js +1 -1
  176. package/dist/components/eds-icon-loader.js +1 -1
  177. package/dist/components/eds-icon-mastodon.js +1 -1
  178. package/dist/components/eds-icon-menu.js +1 -1
  179. package/dist/components/eds-icon-more.js +1 -1
  180. package/dist/components/eds-icon-search.js +1 -1
  181. package/dist/components/eds-icon-success.js +1 -1
  182. package/dist/components/eds-icon-twitter.js +1 -1
  183. package/dist/components/eds-icon-user.js +1 -1
  184. package/dist/components/eds-icon-youtube.js +1 -1
  185. package/dist/components/eds-img2.js +2 -1
  186. package/dist/components/eds-input-field2.js +5 -4
  187. package/dist/components/eds-input-select2.js +70 -2
  188. package/dist/components/eds-link2.js +5 -3
  189. package/dist/components/eds-login.js +3 -2
  190. package/dist/components/eds-logo-variations.d.ts +11 -0
  191. package/dist/components/eds-logo-variations.js +60 -0
  192. package/dist/components/eds-logo2.js +6 -3
  193. package/dist/components/eds-matomo-notice.js +4 -2
  194. package/dist/components/eds-modal.js +44 -4
  195. package/dist/components/eds-pagination2.js +2 -1
  196. package/dist/components/eds-progress-bar.js +1 -40
  197. package/dist/components/{eds-progress-bar.entry.js → eds-progress-bar2.js} +26 -7
  198. package/dist/components/eds-rating.js +2 -1
  199. package/dist/components/eds-section-core2.js +2 -1
  200. package/dist/components/eds-social-networks.js +2 -2
  201. package/dist/components/eds-social-networks2.js +7 -6
  202. package/dist/components/eds-svg-repository.js +296 -2
  203. package/dist/components/eds-tab2.js +1 -1
  204. package/dist/components/eds-table2.js +38 -15
  205. package/dist/components/eds-tabs-content.js +5 -4
  206. package/dist/components/eds-tabs.js +31 -8
  207. package/dist/components/eds-tag2.js +3 -2
  208. package/dist/components/eds-timeline.d.ts +11 -0
  209. package/dist/components/eds-timeline.js +131 -0
  210. package/dist/components/eds-toast-manager.js +3 -2
  211. package/dist/components/eds-toast2.js +1 -1
  212. package/dist/components/eds-tooltip.js +3 -2
  213. package/dist/components/eds-trl.d.ts +11 -0
  214. package/dist/components/eds-trl.js +139 -0
  215. package/dist/components/eds-user-modal2.js +1 -4
  216. package/dist/components/eds-user2.js +12 -6
  217. package/dist/components/incorrect-use-of-colors.js +20 -2
  218. package/dist/components/index.esm.js +0 -1
  219. package/dist/components/index2.js +44 -399
  220. package/dist/components/keycloak.js +0 -10
  221. package/dist/components/loader.js +2 -5
  222. package/dist/components/logo-space.js +4 -3
  223. package/dist/components/logo-variations-horizontal.js +2 -49
  224. package/dist/components/logo-variations-horizontal2.js +37 -0
  225. package/dist/components/logo-variations-vertical.js +2 -49
  226. package/dist/components/logo-variations-vertical2.js +42 -0
  227. package/dist/components/logo-wrong-usage.js +5 -4
  228. package/dist/components/{p-9c05e349.entry.js → p-005de86f.entry.js} +1 -1
  229. package/dist/components/{p-877403df.entry.js → p-02e2a62f.entry.js} +1 -1
  230. package/dist/components/{p-3dbf2ac9.entry.js → p-0910d733.entry.js} +1 -1
  231. package/dist/components/{p-6bc00fad.entry.js → p-0c2e844e.entry.js} +1 -1
  232. package/dist/components/{p-378d371f.entry.js → p-145f13ad.entry.js} +1 -1
  233. package/dist/components/{p-0a195bfe.entry.js → p-16458a81.entry.js} +1 -1
  234. package/dist/components/p-2117611b.js +1 -0
  235. package/dist/components/{p-513bf756.entry.js → p-22762818.entry.js} +1 -1
  236. package/dist/components/{p-94b74ae8.entry.js → p-22e6d7d5.entry.js} +1 -1
  237. package/dist/components/p-22f9e720.js +1 -0
  238. package/dist/components/p-2851ff44.entry.js +1 -0
  239. package/dist/components/p-29648b47.entry.js +1 -0
  240. package/dist/components/p-297b2bc3.entry.js +1 -0
  241. package/dist/components/{p-4541cb5f.entry.js → p-2e8459ef.entry.js} +1 -1
  242. package/dist/components/p-32cddd94.entry.js +1 -0
  243. package/dist/components/{p-0611bbac.entry.js → p-32f282a9.entry.js} +1 -1
  244. package/dist/components/p-3617841d.entry.js +1 -0
  245. package/dist/components/p-373673ca.js +1 -0
  246. package/dist/components/{p-677f60bc.entry.js → p-388b4966.entry.js} +1 -1
  247. package/dist/components/p-3ff76976.entry.js +1 -0
  248. package/dist/components/{p-ff6b25a1.entry.js → p-4037ad48.entry.js} +1 -1
  249. package/dist/components/{p-c16b3c0c.entry.js → p-42b4ecff.entry.js} +1 -1
  250. package/dist/components/{p-fa1276cc.entry.js → p-435a14c1.entry.js} +1 -1
  251. package/dist/components/p-490ba155.entry.js +1 -0
  252. package/dist/components/p-4932aab2.entry.js +1 -0
  253. package/dist/components/p-4a24c2ce.entry.js +1 -0
  254. package/dist/components/p-52ac3456.entry.js +1 -0
  255. package/dist/components/{p-b544f216.entry.js → p-54c75346.entry.js} +1 -1
  256. package/dist/components/{p-11a4ef34.entry.js → p-57c964c5.entry.js} +1 -1
  257. package/dist/components/p-5a43503a.entry.js +1 -0
  258. package/dist/components/p-5aad9d3f.entry.js +1 -0
  259. package/dist/components/p-5afb626c.entry.js +1 -0
  260. package/dist/components/p-5d7af761.entry.js +1 -0
  261. package/dist/components/{p-2728a189.entry.js → p-5fc68438.entry.js} +1 -1
  262. package/dist/components/p-6378fb3e.entry.js +1 -0
  263. package/dist/components/p-673dce11.entry.js +1 -0
  264. package/dist/components/{p-c0afe524.entry.js → p-6fc62452.entry.js} +1 -1
  265. package/dist/components/p-7215789a.entry.js +1 -0
  266. package/dist/components/{p-36c0f3ee.entry.js → p-73bd0c97.entry.js} +1 -1
  267. package/dist/components/p-762c8c83.entry.js +1 -0
  268. package/dist/components/p-7802e966.entry.js +1 -0
  269. package/dist/components/p-79887c2c.entry.js +1 -0
  270. package/dist/components/{p-e9a1fb1e.js → p-7a8b9de5.js} +2 -2
  271. package/dist/components/p-846fc91c.entry.js +1 -0
  272. package/dist/components/p-84957b6d.entry.js +1 -0
  273. package/dist/components/{p-e69ff916.entry.js → p-87830085.entry.js} +1 -1
  274. package/dist/components/p-8c56e39a.entry.js +1 -0
  275. package/dist/components/p-96c4deda.entry.js +1 -0
  276. package/dist/components/p-a44a1abe.entry.js +1 -0
  277. package/dist/components/p-a4e9b68b.entry.js +1 -0
  278. package/dist/components/p-ac0112d5.entry.js +1 -0
  279. package/dist/components/p-acb16e1c.entry.js +1 -0
  280. package/dist/components/p-ae5dbd41.entry.js +1 -0
  281. package/dist/components/{p-6cb8c52d.entry.js → p-bdd86a3c.entry.js} +1 -1
  282. package/dist/components/{p-22ee5374.entry.js → p-be6c80da.entry.js} +1 -1
  283. package/dist/components/p-bf0f851d.entry.js +1 -0
  284. package/dist/components/{p-82453a66.entry.js → p-c2d369bc.entry.js} +1 -1
  285. package/dist/components/p-d1670eec.entry.js +1 -0
  286. package/dist/components/p-d1f6a722.entry.js +1 -0
  287. package/dist/components/p-d53b7a75.entry.js +1 -0
  288. package/dist/components/{p-c11d93cf.entry.js → p-d571d530.entry.js} +1 -1
  289. package/dist/components/{p-bad2a33a.entry.js → p-d6d86366.entry.js} +1 -1
  290. package/dist/components/p-d7a92efb.entry.js +1 -0
  291. package/dist/components/p-d9788b54.entry.js +1 -0
  292. package/dist/components/{p-606d8f86.entry.js → p-e20ed2c7.entry.js} +1 -1
  293. package/dist/components/{p-200ad980.entry.js → p-e6bfbf51.entry.js} +1 -1
  294. package/dist/components/{p-ddd005a3.entry.js → p-e74834bc.entry.js} +1 -1
  295. package/dist/components/{p-b94318f2.entry.js → p-f7a6ce69.entry.js} +1 -1
  296. package/dist/components/p-fd27e56c.entry.js +1 -0
  297. package/dist/components/primary.js +1 -1
  298. package/dist/components/primary2.js +1 -1
  299. package/dist/components/secondary.js +1 -1
  300. package/dist/components/secondary2.js +7 -7
  301. package/dist/components/support.js +1 -1
  302. package/dist/components/support2.js +3 -3
  303. package/dist/components/token-list2.js +1 -1
  304. package/dist/components/token-radii2.js +1 -1
  305. package/dist/components/token-ratios.js +1 -1
  306. package/dist/components/token-shadows2.js +1 -1
  307. package/dist/components/token-spacing.js +1 -1
  308. package/dist/components/token-typography.js +1 -1
  309. package/dist/esm/{color-49aa977d.js → color-0ba8ed56.js} +6 -6
  310. package/dist/esm/color-primary-palette_6.entry.js +15 -15
  311. package/dist/esm/components.js +4 -31
  312. package/dist/esm/correct-use-of-colors.entry.js +2 -2
  313. package/dist/esm/eds-accordion.entry.js +5 -4
  314. package/dist/esm/eds-alert.entry.js +4 -3
  315. package/dist/esm/{eds-accordion_23.entry.js → eds-avatar_17.entry.js} +348 -774
  316. package/dist/esm/eds-card-desc_3.entry.js +1 -1
  317. package/dist/esm/eds-card-generic.entry.js +17 -5
  318. package/dist/esm/eds-card-project.entry.js +3 -3
  319. package/dist/esm/eds-card-section.entry.js +20 -8
  320. package/dist/esm/eds-card-tags.entry.js +3 -2
  321. package/dist/esm/eds-card-tool.entry.js +5 -4
  322. package/dist/esm/eds-card-wrapper.entry.js +1 -1
  323. package/dist/esm/eds-code-block.entry.js +4 -34
  324. package/dist/esm/eds-components-section.entry.js +45 -25
  325. package/dist/esm/eds-docs-palettes.entry.js +2 -2
  326. package/dist/esm/eds-docs-tokens.entry.js +2 -2
  327. package/dist/esm/eds-form.entry.js +96 -23
  328. package/dist/esm/eds-frame.entry.js +1 -1
  329. package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
  330. package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
  331. package/dist/esm/eds-icon-bluesky.entry.js +2 -2
  332. package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
  333. package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
  334. package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
  335. package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
  336. package/dist/esm/eds-icon-close.entry.js +2 -2
  337. package/dist/esm/eds-icon-copy.entry.js +2 -2
  338. package/dist/esm/eds-icon-eu.entry.js +2 -2
  339. package/dist/esm/eds-icon-facebook.entry.js +2 -2
  340. package/dist/esm/eds-icon-gitlab.entry.js +2 -2
  341. package/dist/esm/eds-icon-linkedin.entry.js +2 -2
  342. package/dist/esm/eds-icon-loader.entry.js +2 -2
  343. package/dist/esm/eds-icon-mastodon.entry.js +2 -2
  344. package/dist/esm/eds-icon-menu.entry.js +2 -2
  345. package/dist/esm/eds-icon-more.entry.js +2 -2
  346. package/dist/esm/eds-icon-search.entry.js +2 -2
  347. package/dist/esm/eds-icon-success.entry.js +2 -2
  348. package/dist/esm/eds-icon-twitter.entry.js +2 -2
  349. package/dist/esm/eds-icon-user.entry.js +2 -2
  350. package/dist/esm/eds-icon-youtube.entry.js +2 -2
  351. package/dist/{components/eds-input-field.entry.js → esm/eds-input_7.entry.js} +244 -6
  352. package/dist/esm/eds-login.entry.js +3 -3
  353. package/dist/esm/eds-logo-variations.entry.js +23 -0
  354. package/dist/esm/eds-matomo-notice.entry.js +6 -5
  355. package/dist/esm/eds-modal.entry.js +45 -5
  356. package/dist/esm/eds-navigator.entry.js +1 -1
  357. package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +160 -3
  358. package/dist/esm/eds-progress-bar.entry.js +3 -2
  359. package/dist/esm/eds-rating.entry.js +3 -2
  360. package/dist/esm/eds-section-core_2.entry.js +1 -1
  361. package/dist/esm/eds-svg-repository.entry.js +297 -3
  362. package/dist/esm/eds-tab.entry.js +2 -2
  363. package/dist/esm/eds-tabs-content.entry.js +5 -5
  364. package/dist/esm/eds-tabs.entry.js +31 -9
  365. package/dist/esm/eds-timeline.entry.js +72 -0
  366. package/dist/esm/eds-tooltip.entry.js +4 -3
  367. package/dist/esm/eds-trl.entry.js +48 -0
  368. package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
  369. package/dist/esm/{index-f1426055.js → index-e96badea.js} +54 -37
  370. package/dist/esm/{loader-66341740.js → loader-c9628637.js} +2 -5
  371. package/dist/esm/loader.js +3 -3
  372. package/dist/esm/logo-space.entry.js +5 -4
  373. package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
  374. package/dist/esm/logo-wrong-usage.entry.js +6 -5
  375. package/dist/esm/token-list_3.entry.js +4 -4
  376. package/dist/esm/token-ratios.entry.js +2 -2
  377. package/dist/esm/token-spacing.entry.js +2 -2
  378. package/dist/esm/token-typography.entry.js +2 -2
  379. package/dist/hydrate/index.js +671 -223
  380. package/dist/hydrate/index.mjs +671 -223
  381. package/dist/stencil.config.js +4 -3
  382. package/dist/types/components/eds-accordion/eds-accordion.d.ts +2 -2
  383. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +1 -5
  384. package/dist/types/components/eds-button/eds-button.d.ts +2 -2
  385. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +2 -0
  386. package/dist/types/components/eds-form/eds-form.d.ts +8 -0
  387. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +106 -3
  388. package/dist/types/components/eds-modal/eds-modal.d.ts +16 -0
  389. package/dist/types/components/eds-table/eds-table.d.ts +9 -1
  390. package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -67
  391. package/dist/types/components/eds-timeline/eds-timeline.d.ts +26 -0
  392. package/dist/types/components/eds-timeline/eds-timeline.stories.d.ts +24 -0
  393. package/dist/types/components/eds-trl/eds-trl.d.ts +12 -0
  394. package/dist/types/components.d.ts +255 -32
  395. package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +0 -4
  396. package/dist/types/eds-docs-ui/eds-logo-variations/eds-logo-variations.d.ts +9 -0
  397. package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +2 -0
  398. package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +1 -7
  399. package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +1 -1
  400. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +6 -1
  401. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +20 -1
  402. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +8 -2
  403. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.d.ts +29 -0
  404. package/dist/types/shared-ui/eds-header/eds-header.d.ts +7 -1
  405. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +9 -1
  406. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
  407. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +13 -0
  408. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +18 -1
  409. package/dist/types/shared-ui/eds-user/eds-user.d.ts +1 -2
  410. package/package.json +3 -3
  411. package/dist/cjs/color-primary-palette.cjs.entry.js +0 -43
  412. package/dist/cjs/color-secondary-palette.cjs.entry.js +0 -68
  413. package/dist/cjs/color-support-palette.cjs.entry.js +0 -59
  414. package/dist/cjs/eds-avatar.cjs.entry.js +0 -73
  415. package/dist/cjs/eds-block-break.cjs.entry.js +0 -20
  416. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -152
  417. package/dist/cjs/eds-button.cjs.entry.js +0 -233
  418. package/dist/cjs/eds-card-desc.cjs.entry.js +0 -26
  419. package/dist/cjs/eds-card-title.cjs.entry.js +0 -56
  420. package/dist/cjs/eds-dropdown.cjs.entry.js +0 -129
  421. package/dist/cjs/eds-footer.cjs.entry.js +0 -49
  422. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -99
  423. package/dist/cjs/eds-header.cjs.entry.js +0 -96
  424. package/dist/cjs/eds-icon-wrapper.cjs.entry.js +0 -40
  425. package/dist/cjs/eds-img.cjs.entry.js +0 -57
  426. package/dist/cjs/eds-input-footer.cjs.entry.js +0 -21
  427. package/dist/cjs/eds-input-label.cjs.entry.js +0 -20
  428. package/dist/cjs/eds-input-range.cjs.entry.js +0 -39
  429. package/dist/cjs/eds-input-search.cjs.entry.js +0 -41
  430. package/dist/cjs/eds-input-select.cjs.entry.js +0 -30
  431. package/dist/cjs/eds-input.cjs.entry.js +0 -68
  432. package/dist/cjs/eds-link.cjs.entry.js +0 -211
  433. package/dist/cjs/eds-logo.cjs.entry.js +0 -76
  434. package/dist/cjs/eds-section-core.cjs.entry.js +0 -23
  435. package/dist/cjs/eds-section-heading.cjs.entry.js +0 -41
  436. package/dist/cjs/eds-social-networks.cjs.entry.js +0 -65
  437. package/dist/cjs/eds-table.cjs.entry.js +0 -142
  438. package/dist/cjs/eds-tag.cjs.entry.js +0 -44
  439. package/dist/cjs/eds-toast-manager.cjs.entry.js +0 -45
  440. package/dist/cjs/eds-toast.cjs.entry.js +0 -53
  441. package/dist/cjs/eds-user-modal.cjs.entry.js +0 -47
  442. package/dist/cjs/eds-user.cjs.entry.js +0 -90
  443. package/dist/cjs/gradient-primary-palette.cjs.entry.js +0 -45
  444. package/dist/cjs/gradient-secondary-palette.cjs.entry.js +0 -79
  445. package/dist/cjs/gradient-support-palette.cjs.entry.js +0 -63
  446. package/dist/cjs/index-1ff5f25c.js +0 -48
  447. package/dist/cjs/index-383d2951.js +0 -3449
  448. package/dist/cjs/index-96a4261e.js +0 -405
  449. package/dist/cjs/index-f62478aa.js +0 -1837
  450. package/dist/cjs/keycloak-940b83c1.js +0 -1910
  451. package/dist/cjs/logo-variations-horizontal.cjs.entry.js +0 -30
  452. package/dist/cjs/logo-variations-vertical.cjs.entry.js +0 -30
  453. package/dist/cjs/shadow-css-988e4292.js +0 -334
  454. package/dist/cjs/token-list.cjs.entry.js +0 -253
  455. package/dist/cjs/token-radii.cjs.entry.js +0 -25
  456. package/dist/cjs/token-shadows.cjs.entry.js +0 -34
  457. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
  458. package/dist/components/app-globals-0f993ce5.js +0 -3
  459. package/dist/components/color-primary-palette.entry.js +0 -39
  460. package/dist/components/color-secondary-palette.entry.js +0 -64
  461. package/dist/components/color-support-palette.entry.js +0 -55
  462. package/dist/components/correct-use-of-colors.entry.js +0 -64
  463. package/dist/components/eds-accordion.entry.js +0 -88
  464. package/dist/components/eds-alert.entry.js +0 -91
  465. package/dist/components/eds-avatar.entry.js +0 -69
  466. package/dist/components/eds-block-break.entry.js +0 -16
  467. package/dist/components/eds-breadcrumb.entry.js +0 -148
  468. package/dist/components/eds-button.entry.js +0 -229
  469. package/dist/components/eds-card-desc.entry.js +0 -22
  470. package/dist/components/eds-card-generic.entry.js +0 -89
  471. package/dist/components/eds-card-project.entry.js +0 -63
  472. package/dist/components/eds-card-section.entry.js +0 -39
  473. package/dist/components/eds-card-tags.entry.js +0 -17
  474. package/dist/components/eds-card-title.entry.js +0 -52
  475. package/dist/components/eds-card-tool.entry.js +0 -75
  476. package/dist/components/eds-card-wrapper.entry.js +0 -28
  477. package/dist/components/eds-code-block.entry.js +0 -2468
  478. package/dist/components/eds-components-section.entry.js +0 -92
  479. package/dist/components/eds-docs-palettes.entry.js +0 -23
  480. package/dist/components/eds-docs-tokens.entry.js +0 -31
  481. package/dist/components/eds-dropdown.entry.js +0 -125
  482. package/dist/components/eds-footer.entry.js +0 -45
  483. package/dist/components/eds-form.entry.js +0 -245
  484. package/dist/components/eds-frame.entry.js +0 -87
  485. package/dist/components/eds-fullscreen-menu.entry.js +0 -95
  486. package/dist/components/eds-header.entry.js +0 -92
  487. package/dist/components/eds-icon-arrow-diagonal.entry.js +0 -14
  488. package/dist/components/eds-icon-arrow-right.entry.js +0 -14
  489. package/dist/components/eds-icon-bluesky.entry.js +0 -14
  490. package/dist/components/eds-icon-chevron-down.entry.js +0 -14
  491. package/dist/components/eds-icon-chevron-left.entry.js +0 -14
  492. package/dist/components/eds-icon-chevron-right.entry.js +0 -14
  493. package/dist/components/eds-icon-chevron-up.entry.js +0 -14
  494. package/dist/components/eds-icon-close.entry.js +0 -14
  495. package/dist/components/eds-icon-copy.entry.js +0 -14
  496. package/dist/components/eds-icon-eu.entry.js +0 -14
  497. package/dist/components/eds-icon-facebook.entry.js +0 -14
  498. package/dist/components/eds-icon-gitlab.entry.js +0 -14
  499. package/dist/components/eds-icon-linkedin.entry.js +0 -14
  500. package/dist/components/eds-icon-loader.entry.js +0 -14
  501. package/dist/components/eds-icon-mastodon.entry.js +0 -14
  502. package/dist/components/eds-icon-menu.entry.js +0 -14
  503. package/dist/components/eds-icon-more.entry.js +0 -14
  504. package/dist/components/eds-icon-search.entry.js +0 -14
  505. package/dist/components/eds-icon-success.entry.js +0 -14
  506. package/dist/components/eds-icon-twitter.entry.js +0 -14
  507. package/dist/components/eds-icon-user.entry.js +0 -14
  508. package/dist/components/eds-icon-wrapper.entry.js +0 -36
  509. package/dist/components/eds-icon-youtube.entry.js +0 -14
  510. package/dist/components/eds-img.entry.js +0 -53
  511. package/dist/components/eds-input-footer.entry.js +0 -17
  512. package/dist/components/eds-input-label.entry.js +0 -16
  513. package/dist/components/eds-input-range.entry.js +0 -35
  514. package/dist/components/eds-input-search.entry.js +0 -37
  515. package/dist/components/eds-input-select.entry.js +0 -26
  516. package/dist/components/eds-input.entry.js +0 -64
  517. package/dist/components/eds-link.entry.js +0 -207
  518. package/dist/components/eds-login.entry.js +0 -68
  519. package/dist/components/eds-logo.entry.js +0 -72
  520. package/dist/components/eds-matomo-notice.entry.js +0 -105
  521. package/dist/components/eds-modal.entry.js +0 -42
  522. package/dist/components/eds-navigator.entry.js +0 -39
  523. package/dist/components/eds-pagination.entry.js +0 -207
  524. package/dist/components/eds-rating.entry.js +0 -53
  525. package/dist/components/eds-section-core.entry.js +0 -19
  526. package/dist/components/eds-section-heading.entry.js +0 -37
  527. package/dist/components/eds-social-networks.entry.js +0 -61
  528. package/dist/components/eds-svg-repository.entry.js +0 -28
  529. package/dist/components/eds-tab.entry.js +0 -36
  530. package/dist/components/eds-table.entry.js +0 -138
  531. package/dist/components/eds-tabs-content.entry.js +0 -129
  532. package/dist/components/eds-tabs.entry.js +0 -118
  533. package/dist/components/eds-tag.entry.js +0 -40
  534. package/dist/components/eds-toast-manager.entry.js +0 -41
  535. package/dist/components/eds-toast.entry.js +0 -49
  536. package/dist/components/eds-tooltip.entry.js +0 -95
  537. package/dist/components/eds-user-modal.entry.js +0 -43
  538. package/dist/components/eds-user.entry.js +0 -86
  539. package/dist/components/gradient-primary-palette.entry.js +0 -41
  540. package/dist/components/gradient-secondary-palette.entry.js +0 -75
  541. package/dist/components/gradient-support-palette.entry.js +0 -59
  542. package/dist/components/incorrect-use-of-colors.entry.js +0 -46
  543. package/dist/components/index-144c9ae8.js +0 -46
  544. package/dist/components/index-360dc790.js +0 -401
  545. package/dist/components/index-a9afa43f.js +0 -1802
  546. package/dist/components/index-b384416e.js +0 -3023
  547. package/dist/components/index3.js +0 -46
  548. package/dist/components/index4.js +0 -1802
  549. package/dist/components/keycloak-b647d452.js +0 -1903
  550. package/dist/components/logo-space.entry.js +0 -16
  551. package/dist/components/logo-variations-horizontal.entry.js +0 -26
  552. package/dist/components/logo-variations-vertical.entry.js +0 -26
  553. package/dist/components/logo-wrong-usage.entry.js +0 -16
  554. package/dist/components/p-0a6262b7.entry.js +0 -1
  555. package/dist/components/p-145d8e4d.entry.js +0 -1
  556. package/dist/components/p-1a1b8e28.entry.js +0 -1
  557. package/dist/components/p-1d94d663.entry.js +0 -1
  558. package/dist/components/p-219d9f68.entry.js +0 -1
  559. package/dist/components/p-25eb1801.entry.js +0 -1
  560. package/dist/components/p-2b14f03a.entry.js +0 -1
  561. package/dist/components/p-3048bdec.entry.js +0 -1
  562. package/dist/components/p-42dfb426.entry.js +0 -1
  563. package/dist/components/p-49a5eef5.entry.js +0 -1
  564. package/dist/components/p-52a487ee.entry.js +0 -1
  565. package/dist/components/p-55444767.entry.js +0 -1
  566. package/dist/components/p-5b900a2c.entry.js +0 -1
  567. package/dist/components/p-5edc806a.entry.js +0 -1
  568. package/dist/components/p-64d4a6e0.entry.js +0 -1
  569. package/dist/components/p-6f601454.entry.js +0 -1
  570. package/dist/components/p-763cbe2f.entry.js +0 -1
  571. package/dist/components/p-77a81dfa.entry.js +0 -1
  572. package/dist/components/p-7a2b35b4.entry.js +0 -1
  573. package/dist/components/p-81d2a9be.entry.js +0 -1
  574. package/dist/components/p-8c1be2b6.entry.js +0 -1
  575. package/dist/components/p-923e4d23.entry.js +0 -1
  576. package/dist/components/p-9c74a5dd.entry.js +0 -1
  577. package/dist/components/p-abcdf35f.js +0 -1
  578. package/dist/components/p-ac083317.entry.js +0 -1
  579. package/dist/components/p-ad79cc3c.entry.js +0 -1
  580. package/dist/components/p-b4055691.entry.js +0 -1
  581. package/dist/components/p-bfd2fdf1.entry.js +0 -1
  582. package/dist/components/p-c3c61db1.entry.js +0 -1
  583. package/dist/components/p-caf2af08.entry.js +0 -1
  584. package/dist/components/p-d80de13e.entry.js +0 -1
  585. package/dist/components/p-e04097a2.entry.js +0 -1
  586. package/dist/components/p-e2e715a2.entry.js +0 -1
  587. package/dist/components/p-e639818b.entry.js +0 -1
  588. package/dist/components/p-e80f4f24.js +0 -1
  589. package/dist/components/p-ec95188c.entry.js +0 -1
  590. package/dist/components/p-f04946a5.entry.js +0 -1
  591. package/dist/components/shadow-css-423dab2c.js +0 -332
  592. package/dist/components/token-list.entry.js +0 -249
  593. package/dist/components/token-radii.entry.js +0 -21
  594. package/dist/components/token-ratios.entry.js +0 -25
  595. package/dist/components/token-shadows.entry.js +0 -30
  596. package/dist/components/token-spacing.entry.js +0 -12
  597. package/dist/components/token-typography.entry.js +0 -226
  598. package/dist/esm/color-primary-palette.entry.js +0 -39
  599. package/dist/esm/color-secondary-palette.entry.js +0 -64
  600. package/dist/esm/color-support-palette.entry.js +0 -55
  601. package/dist/esm/eds-avatar.entry.js +0 -69
  602. package/dist/esm/eds-block-break.entry.js +0 -16
  603. package/dist/esm/eds-breadcrumb.entry.js +0 -148
  604. package/dist/esm/eds-button.entry.js +0 -229
  605. package/dist/esm/eds-card-desc.entry.js +0 -22
  606. package/dist/esm/eds-card-title.entry.js +0 -52
  607. package/dist/esm/eds-dropdown.entry.js +0 -125
  608. package/dist/esm/eds-footer.entry.js +0 -45
  609. package/dist/esm/eds-fullscreen-menu.entry.js +0 -95
  610. package/dist/esm/eds-header.entry.js +0 -92
  611. package/dist/esm/eds-icon-wrapper.entry.js +0 -36
  612. package/dist/esm/eds-img.entry.js +0 -53
  613. package/dist/esm/eds-input-field.entry.js +0 -68
  614. package/dist/esm/eds-input-footer.entry.js +0 -17
  615. package/dist/esm/eds-input-label.entry.js +0 -16
  616. package/dist/esm/eds-input-range.entry.js +0 -35
  617. package/dist/esm/eds-input-search.entry.js +0 -37
  618. package/dist/esm/eds-input-select.entry.js +0 -26
  619. package/dist/esm/eds-input.entry.js +0 -64
  620. package/dist/esm/eds-link.entry.js +0 -207
  621. package/dist/esm/eds-logo.entry.js +0 -72
  622. package/dist/esm/eds-section-core.entry.js +0 -19
  623. package/dist/esm/eds-section-heading.entry.js +0 -37
  624. package/dist/esm/eds-social-networks.entry.js +0 -61
  625. package/dist/esm/eds-table.entry.js +0 -138
  626. package/dist/esm/eds-tag.entry.js +0 -40
  627. package/dist/esm/eds-toast-manager.entry.js +0 -41
  628. package/dist/esm/eds-toast.entry.js +0 -49
  629. package/dist/esm/eds-user-modal.entry.js +0 -43
  630. package/dist/esm/eds-user.entry.js +0 -86
  631. package/dist/esm/gradient-primary-palette.entry.js +0 -41
  632. package/dist/esm/gradient-secondary-palette.entry.js +0 -75
  633. package/dist/esm/gradient-support-palette.entry.js +0 -59
  634. package/dist/esm/index-144c9ae8.js +0 -46
  635. package/dist/esm/index-360dc790.js +0 -401
  636. package/dist/esm/index-a9afa43f.js +0 -1802
  637. package/dist/esm/index-b384416e.js +0 -3416
  638. package/dist/esm/keycloak-b647d452.js +0 -1903
  639. package/dist/esm/logo-variations-horizontal.entry.js +0 -26
  640. package/dist/esm/logo-variations-vertical.entry.js +0 -26
  641. package/dist/esm/shadow-css-423dab2c.js +0 -332
  642. package/dist/esm/toastManager-b716afd8.js +0 -31
  643. package/dist/esm/token-list.entry.js +0 -249
  644. package/dist/esm/token-radii.entry.js +0 -21
  645. package/dist/esm/token-shadows.entry.js +0 -30
  646. /package/dist/cjs/{toastManager-1fb1a402.js → toastManager-4e9535f3.js} +0 -0
  647. /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
  648. /package/dist/{components/toastManager-b716afd8.js → esm/toastManager-d9eee791.js} +0 -0
@@ -18,7 +18,12 @@ export declare class EdsCardSection {
18
18
  * '[{"title": "Card Title", "description": "Description", "avatar": "/path/to/avatar.jpg", "url": "http://example.com"}]'
19
19
  * ```
20
20
  */
21
- cards: string;
21
+ cards: string | {
22
+ title: string;
23
+ description: string;
24
+ tags: string;
25
+ url: string;
26
+ }[];
22
27
  /**
23
28
  * Number of columns to span for each card in the grid layout.
24
29
  * This value sets the column span on medium (md) and larger screen sizes.
@@ -28,6 +28,25 @@ declare const _default: {
28
28
  parameters: {};
29
29
  };
30
30
  export default _default;
31
- export declare const Default: {
31
+ export declare const WithString: {
32
32
  render: (args: any) => string;
33
33
  };
34
+ export declare const WithObject: {
35
+ render: (args: any) => HTMLEdsCardSectionElement;
36
+ args: {
37
+ cards: {
38
+ title: string;
39
+ description: string;
40
+ tags: string;
41
+ url: string;
42
+ }[];
43
+ cols: number;
44
+ extraClass: string;
45
+ };
46
+ argTypes: {
47
+ cards: {
48
+ control: string;
49
+ description: string;
50
+ };
51
+ };
52
+ };
@@ -4,7 +4,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
4
4
  * It provides a responsive, full-window overlay menu with navigation links and additional options.
5
5
  * This component is suitable for mobile and small screens, where a fullscreen menu enhances user navigation.
6
6
  *
7
- * ## Key Features:
7
+ * ## Key Features
8
+ *
8
9
  * - **Links and Menu Links**: Allows configurable primary and secondary navigation links.
9
10
  * - **Event-Driven Open/Close**: Listens for a `toggleMenu` event to open or close the menu, emitted by the `eds-header` component.
10
11
  * - **Responsive Behavior**: Automatically closes the menu when the screen width is larger than a specified breakpoint (1024px).
@@ -15,7 +16,12 @@ export declare class EdsFullscreenMenu {
15
16
  * JSON string representing the links for primary navigation.
16
17
  * Each link should include `label`, `url`, and optionally an `icon`.
17
18
  */
18
- links: string;
19
+ links: string | {
20
+ label: string;
21
+ url: string;
22
+ icon?: string;
23
+ external?: boolean;
24
+ }[];
19
25
  /**
20
26
  * JSON string representing the extra menu links a user wants for smaill screens navigation.
21
27
  * Each link should include `label`, `url`.
@@ -0,0 +1,29 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ argTypes: {
5
+ menuEnabled: {
6
+ control: string;
7
+ description: string;
8
+ defaultValue: boolean;
9
+ };
10
+ headerLinks: {
11
+ control: string;
12
+ description: string;
13
+ defaultValue: {
14
+ label: string;
15
+ url: string;
16
+ }[];
17
+ };
18
+ menuLinks: {
19
+ control: string;
20
+ description: string;
21
+ defaultValue: {
22
+ label: string;
23
+ url: string;
24
+ }[];
25
+ };
26
+ };
27
+ };
28
+ export default _default;
29
+ export declare const Default: any;
@@ -22,7 +22,12 @@ export declare class EdsHeader {
22
22
  * JSON string representing the links for primary navigation.
23
23
  * Each link should include `label`, `url`, and optionally an `icon`.
24
24
  */
25
- links: string;
25
+ links: string | {
26
+ label: string;
27
+ url: string;
28
+ icon?: string;
29
+ external?: boolean;
30
+ }[];
26
31
  /**
27
32
  * Determines if the header is rendered in inverse style.
28
33
  * When true, the header applies styles suitable for a dark background.
@@ -36,6 +41,7 @@ export declare class EdsHeader {
36
41
  /**
37
42
  * Flag to enable or disable header menu toggle feature.
38
43
  * When true, displays the toggle in the header.
44
+ * Requires the <eds-fullscreen-menu> to properly work.
39
45
  */
40
46
  menuEnabled: boolean;
41
47
  /**
@@ -18,6 +18,10 @@ declare const _default: {
18
18
  control: string;
19
19
  description: string;
20
20
  };
21
+ menuEnabled: {
22
+ control: string;
23
+ description: string;
24
+ };
21
25
  inverseHeader: {
22
26
  control: string;
23
27
  description: string;
@@ -41,7 +45,11 @@ declare const _default: {
41
45
  };
42
46
  args: {
43
47
  homeUrl: string;
44
- links: string;
48
+ links: {
49
+ label: string;
50
+ url: string;
51
+ }[];
52
+ menuEnabled: boolean;
45
53
  inverseHeader: boolean;
46
54
  userFeature: boolean;
47
55
  keycloakUrl: string;
@@ -2,7 +2,7 @@
2
2
  * Component representing a list of social network links for EBRAINS.
3
3
  * Each link directs users to EBRAINS' profiles on various social networks.
4
4
  */
5
- export declare class EdsSocialNetwork {
5
+ export declare class EdsSocialNetworks {
6
6
  /**
7
7
  * Social Network custom title to display
8
8
  */
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ argTypes: {
5
+ title: {
6
+ control: string;
7
+ defaultValue: string;
8
+ };
9
+ };
10
+ };
11
+ export default _default;
12
+ export declare const Default: any;
13
+ export declare const CustomTitle: any;
@@ -15,7 +15,12 @@ export declare class EdsTabs {
15
15
  /** Aria label for the navigation */
16
16
  navAriaLabel: string;
17
17
  /** JSON string for tabs data */
18
- tabs: string;
18
+ tabs: string | {
19
+ label: string;
20
+ url: string;
21
+ active: boolean;
22
+ ariaLabel: string;
23
+ }[];
19
24
  /** State to store parsed tabs */
20
25
  parsedTabs: Array<{
21
26
  label: string;
@@ -32,6 +37,18 @@ export declare class EdsTabs {
32
37
  }>;
33
38
  tabContainer: HTMLElement;
34
39
  componentWillLoad(): void;
40
+ /**
41
+ * Parses the `links` prop into an array of link objects.
42
+ * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
43
+ *
44
+ * @returns {any[]} Array of parsed link objects
45
+ */
46
+ /**
47
+ * Parses the `links` prop into an array of link objects.
48
+ * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
49
+ *
50
+ * @returns {any[]} Array of parsed link objects
51
+ */
35
52
  parseTabs(): void;
36
53
  componentDidLoad(): void;
37
54
  private setActiveIndex;
@@ -38,8 +38,7 @@ export declare class EdsUser {
38
38
  */
39
39
  authenticated: boolean;
40
40
  /**
41
- * Indicates whether the user is authenticated.
42
- * This is set to `true` if the user is successfully authenticated with Keycloak.
41
+ * Indicates whether the Keycloak server is available.
43
42
  */
44
43
  serverAvailable: boolean;
45
44
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebrains/components",
3
- "version": "0.0.1-alpha.0",
3
+ "version": "0.3.0-alpha.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -14,7 +14,7 @@
14
14
  "loader/"
15
15
  ],
16
16
  "dependencies": {
17
- "@ebrains/assets":"0.0.1-alpha.0",
18
- "@ebrains/svgs":"0.0.1-alpha.0"
17
+ "@ebrains/assets":"0.3.0-alpha.0",
18
+ "@ebrains/svgs":"0.3.0-alpha.0"
19
19
  }
20
20
  }
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-383d2951.js');
6
-
7
- const ColorPrimaryPalette = class {
8
- constructor(hostRef) {
9
- index.registerInstance(this, hostRef);
10
- // Primary palette data
11
- this.colors = [
12
- {
13
- rgb: 'R156 G225 B66',
14
- cmyk: 'C52 M0 Y98 K0',
15
- hex: '#9CE142',
16
- pantoneC: 'PANTONE 367 C',
17
- pantoneU: 'PANTONE 374 U',
18
- background: '#9CE142'
19
- },
20
- {
21
- rgb: 'R0 G201 B89',
22
- cmyk: 'C75 M0 Y80 K0',
23
- hex: '#00C959',
24
- pantoneC: 'PANTONE 7480 C',
25
- pantoneU: 'PANTONE 7481 U',
26
- background: '#00C959'
27
- },
28
- {
29
- rgb: 'R0 G165 B149',
30
- cmyk: 'C78 M8 Y49 K0',
31
- hex: '#00A595',
32
- pantoneC: 'PANTONE 3272 C',
33
- pantoneU: 'PANTONE 3275 U',
34
- background: '#00A595'
35
- }
36
- ];
37
- }
38
- render() {
39
- return (index.h("ul", { key: '153e3c0f00db6f824cb0f43b420645bcbd66632f', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (index.h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, index.h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.rgb), index.h("span", { class: "f-body-02 w-full" }, color.cmyk), index.h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.pantoneC), index.h("span", { class: "f-body-02" }, color.pantoneU))))))));
40
- }
41
- };
42
-
43
- exports.color_primary_palette = ColorPrimaryPalette;
@@ -1,68 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-383d2951.js');
6
-
7
- const ColorSecondaryPalette = class {
8
- constructor(hostRef) {
9
- index.registerInstance(this, hostRef);
10
- // Secondary palette data
11
- this.colors = [
12
- {
13
- rgb: 'R63 G169 B245',
14
- cmyk: 'C68 M13 Y0 K0',
15
- hex: '#3FA9F5',
16
- pantoneC: 'PANTONE 298 C',
17
- pantoneU: 'PANTONE 298 U',
18
- background: '#3FA9F5'
19
- },
20
- {
21
- rgb: 'R6 G68 B244',
22
- cmyk: 'C92 M60 Y0 K0',
23
- hex: '#0644F4',
24
- pantoneC: 'PANTONE 2728 C',
25
- pantoneU: 'PANTONE 2935 U',
26
- background: '#0644F4'
27
- },
28
- {
29
- rgb: 'R196 G97 B255',
30
- cmyk: 'C52 M67 Y0 K0',
31
- hex: '#C461FF',
32
- pantoneC: 'PANTONE 252 C',
33
- pantoneU: 'PANTONE 252 U',
34
- background: '#C461FF'
35
- },
36
- {
37
- rgb: 'R93 G61 B249',
38
- cmyk: 'C83 M78 Y0 K0',
39
- hex: '#5D3DF9',
40
- pantoneC: 'PANTONE 266 C',
41
- pantoneU: 'PANTONE 2735 U',
42
- background: '#5D3DF9'
43
- },
44
- {
45
- rgb: 'R255 G165 B67',
46
- cmyk: 'C0 M43 Y76 K0',
47
- hex: '#FFA543',
48
- pantoneC: 'PANTONE 804 C',
49
- pantoneU: 'PANTONE 136 U',
50
- background: '#FFA543'
51
- },
52
- {
53
- rgb: 'R255 G77 B104',
54
- cmyk: 'C0 M81 Y42 K0',
55
- hex: '#FF4D68',
56
- pantoneC: 'PANTONE 1785 C',
57
- pantoneU: 'PANTONE 185 U',
58
- background: '#FF4D68'
59
- }
60
- ];
61
- this.show = undefined;
62
- }
63
- render() {
64
- return (index.h("ul", { key: 'b0af2cdf6524cf79ef8d28f37533d1f84812f174', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (index.h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, index.h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.rgb), index.h("span", { class: "f-body-02 w-full" }, color.cmyk), index.h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.pantoneC), index.h("span", { class: "f-body-02" }, color.pantoneU))))))));
65
- }
66
- };
67
-
68
- exports.color_secondary_palette = ColorSecondaryPalette;
@@ -1,59 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-383d2951.js');
6
-
7
- const ColorSupportPalette = class {
8
- constructor(hostRef) {
9
- index.registerInstance(this, hostRef);
10
- // Support palette data
11
- this.colors = [
12
- {
13
- rgb: 'R20 G20 B20',
14
- cmyk: 'C78 M69 Y61 K87',
15
- hex: '#141414',
16
- pantoneC: '',
17
- pantoneU: '',
18
- background: '#141414'
19
- },
20
- {
21
- rgb: 'R56 G56 B56',
22
- cmyk: 'C68 M58 Y55 K63',
23
- hex: '#383838',
24
- pantoneC: 'PANTONE 447 C',
25
- pantoneU: 'PANTONE Neutral Black U',
26
- background: '#383838'
27
- },
28
- {
29
- rgb: 'R204 G204 B204',
30
- cmyk: 'C23 M17 Y18 K0',
31
- hex: '#CCCCCC',
32
- pantoneC: 'PANTONE Cool Gray 2 C',
33
- pantoneU: 'PANTONE Cool Gray 2 U',
34
- background: '#CCCCCC'
35
- },
36
- {
37
- rgb: 'R230 G230 B230',
38
- cmyk: 'C12 M8 Y9 K0',
39
- hex: '#E6E6E6',
40
- pantoneC: 'PANTONE 663 C',
41
- pantoneU: 'PANTONE 649 U',
42
- background: '#E6E6E6'
43
- },
44
- {
45
- rgb: 'R255 G255 B255',
46
- cmyk: 'C0 M0 Y0 K0',
47
- hex: '#FFFFFF',
48
- pantoneC: '',
49
- pantoneU: '',
50
- background: '#FFFFFF'
51
- }
52
- ];
53
- }
54
- render() {
55
- return (index.h("ul", { key: 'c58041047c7d7993ac4e936051d40e1e8dda5263', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (index.h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, index.h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.rgb), index.h("span", { class: "f-body-02 w-full" }, color.cmyk), index.h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), index.h("div", { class: "grid" }, index.h("span", { class: "f-body-02" }, color.pantoneC || 'N/A'), index.h("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
56
- }
57
- };
58
-
59
- exports.color_support_palette = ColorSupportPalette;
@@ -1,73 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-383d2951.js');
6
- const index$1 = require('./index-96a4261e.js');
7
- require('./index-1ff5f25c.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
-
11
- const EdsAvatar = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- this.firstName = undefined;
15
- this.lastName = undefined;
16
- this.picture = undefined;
17
- this.initials = undefined;
18
- this.color = undefined;
19
- this.rounded = false;
20
- this.initialsStrong = false;
21
- }
22
- /**
23
- * Computed initials based on the provided `initials` prop or derived from `firstName` and `lastName`.
24
- * @returns {string | undefined} Initials for display in the avatar.
25
- */
26
- get computedInitials() {
27
- if (this.initials) {
28
- return (this.initials.match(/.{1,3}/g) || [])[0] || '';
29
- }
30
- else if (this.firstName && this.lastName) {
31
- return `${this.firstName.charAt(0)}${this.lastName.charAt(0)}`.toUpperCase();
32
- }
33
- return undefined;
34
- }
35
- /**
36
- * Computes the CSS classes for the avatar container based on provided props like `rounded`, `color`, and `picture`.
37
- * @returns {string} List of CSS classes to apply to the avatar container.
38
- */
39
- get containerClasses() {
40
- return [
41
- 'border-inside',
42
- 'aspect-1x1',
43
- 'flex',
44
- 'items-center',
45
- 'justify-center',
46
- 'overflow-hidden',
47
- this.picture ? '' : 'px-4',
48
- this.rounded ? 'rounded-pill border-inside-pill w-32' : 'w-[54px] rounded-sm',
49
- this.color ? 'border-inside-inverse' : '',
50
- this.color === 'grey'
51
- ? 'bg-dark'
52
- : this.color && !this.picture
53
- ? index$1.gradientBGColorVariants({
54
- color: this.color,
55
- direction: 'top',
56
- pseudo: false
57
- })
58
- : !this.picture
59
- ? 'bg-strongest text-accent'
60
- : ''
61
- ].join(' ');
62
- }
63
- /**
64
- * Renders the avatar component. Displays either an image using `eds-img` or initials depending on whether `picture` or `computedInitials` is set.
65
- * @returns {JSX.Element} The rendered avatar component.
66
- */
67
- render() {
68
- return (index.h("div", { key: '716279a35cc9235da991563d5f84d2dedbdae001', 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))));
69
- }
70
- };
71
- EdsAvatar.style = edsAvatarCss;
72
-
73
- exports.eds_avatar = EdsAvatar;
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-383d2951.js');
6
-
7
- const edsBlockBreakCss = ".border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-softest{border-color:rgba(0, 0, 0, .05)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.w-full{width:100%}.border-t-2{border-top-width:2px}";
8
-
9
- const EdsBlockBreak = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.extraClass = '';
13
- }
14
- render() {
15
- return index.h("hr", { key: '85b5253d4abb77072424452d2ff6a0d631e67652', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
16
- }
17
- };
18
- EdsBlockBreak.style = edsBlockBreakCss;
19
-
20
- exports.eds_block_break = EdsBlockBreak;
@@ -1,152 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-383d2951.js');
6
-
7
- const edsBreadcrumbCss = "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}.hidden{display:none}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.125rem * var(--tw-space-x-reverse));margin-left:calc(0.125rem * calc(1 - var(--tw-space-x-reverse)))}.px-2{padding-left:0.125rem;padding-right:0.125rem}.w-20{width:1.25rem}.w-28{width:1.75rem}.w-32{width:2rem}.w-44{width:2.75rem}.h-20{height:1.25rem}.h-24{height:1.5rem}.h-28{height:1.75rem}.h-32{height:2rem}@media (min-width: 750px){.md\\:block{display:block}}";
8
-
9
- const EdsBreadcrumb = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- /**
13
- * Updates the maximum number of visible items and tracks if the screen is small.
14
- */
15
- this.updateScreenSize = () => {
16
- const width = window.innerWidth;
17
- if (width < 769) {
18
- this.maxVisibleItems = 3;
19
- this.isSmallScreen = true;
20
- }
21
- else if (width <= 1024) {
22
- this.maxVisibleItems = 4;
23
- this.isSmallScreen = true;
24
- }
25
- else {
26
- this.maxVisibleItems = 6;
27
- this.isSmallScreen = false;
28
- }
29
- };
30
- this.items = [];
31
- this.intent = 'ghost';
32
- this.parsedItems = [];
33
- this.isSmallScreen = false;
34
- this.maxVisibleItems = 6;
35
- }
36
- /**
37
- * Watch for changes to the `items` prop and parse it when it changes.
38
- * Converts the `items` string into an array of objects if it is a JSON string.
39
- * If the format is invalid, it logs an error and sets an empty array.
40
- *
41
- * @param newValue - The new value for the `items` prop.
42
- */
43
- parseItems(newValue) {
44
- try {
45
- if (typeof newValue === 'string') {
46
- this.parsedItems = JSON.parse(newValue);
47
- }
48
- else {
49
- this.parsedItems = newValue;
50
- }
51
- }
52
- catch (e) {
53
- this.parsedItems = [];
54
- }
55
- }
56
- /**
57
- * Lifecycle method that runs when the component is about to be loaded.
58
- * It parses the initial `items` prop value.
59
- */
60
- componentWillLoad() {
61
- this.parseItems(this.items);
62
- this.updateScreenSize();
63
- window.addEventListener('resize', this.updateScreenSize);
64
- }
65
- disconnectedCallback() {
66
- window.removeEventListener('resize', this.updateScreenSize);
67
- }
68
- /**
69
- * Lifecycle method that runs when the component has fully loaded.
70
- * It emits a custom event for each `eds-link` element contained within the breadcrumb.
71
- */
72
- componentDidLoad() {
73
- // Emit context for each eds-link element after the component is fully loaded
74
- const links = this.el.shadowRoot.querySelectorAll('eds-link');
75
- links.forEach((link) => {
76
- this.emitContext(link);
77
- });
78
- }
79
- /**
80
- * Emits a custom event called `parentContext` for a given link element.
81
- * This event provides context information about the breadcrumb component.
82
- *
83
- * @param linkElement - The link element to which the event will be dispatched.
84
- */
85
- emitContext(linkElement) {
86
- const event = new CustomEvent('parentContext', {
87
- detail: {
88
- componentName: this.el.tagName.toLowerCase(),
89
- identifier: null
90
- }
91
- });
92
- linkElement.dispatchEvent(event);
93
- }
94
- /**
95
- * Truncates breadcrumb items based on the maxVisibleItems value.
96
- * Truncates `label` to 10 characters if `isSmallScreen` is true, except for the last label.
97
- */
98
- getTruncatedItems() {
99
- const totalItems = this.parsedItems.length;
100
- if (totalItems > this.maxVisibleItems) {
101
- const firstItem = this.parsedItems[0];
102
- const lastItems = this.parsedItems.slice(-2);
103
- const ellipsis = { label: '...', url: '', isHidden: true };
104
- if (this.maxVisibleItems === 3) {
105
- return [
106
- this.truncateLabel(firstItem),
107
- ellipsis,
108
- ...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
109
- ];
110
- }
111
- else if (this.maxVisibleItems === 4) {
112
- const middleItem = this.parsedItems[Math.floor(totalItems / 2)];
113
- return [
114
- this.truncateLabel(firstItem),
115
- this.truncateLabel(middleItem),
116
- ellipsis,
117
- ...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
118
- ];
119
- }
120
- }
121
- return this.parsedItems.map((item, index) => index === this.parsedItems.length - 1 ? item : this.truncateLabel(item));
122
- }
123
- /**
124
- * Truncates the label of a breadcrumb item to a maximum of 10 characters
125
- * if the screen is small.
126
- */
127
- truncateLabel(item) {
128
- if (item.label.length > 15) {
129
- return Object.assign(Object.assign({}, item), { label: `${item.label.slice(0, 15)}...` });
130
- }
131
- return item;
132
- }
133
- /**
134
- * Render method for the breadcrumb component.
135
- * It creates a navigation element with an ordered list of breadcrumb links.
136
- * The last link is disabled and marked as the current page.
137
- */
138
- render() {
139
- const itemsToRender = this.getTruncatedItems();
140
- return (index.h("nav", { key: 'b3f515670374a7451981638d658f8e37f07ab10c', "aria-label": "Breadcrumb" }, index.h("ol", { key: '999b2035f3c996016e753be3826881a11054e184', class: "flex items-center space-x-2" }, itemsToRender.map((item, index$1) => {
141
- const isLast = index$1 === itemsToRender.length - 1;
142
- return (index.h("li", { class: "flex items-center" }, !item.isHidden ? (index.h("eds-link", { label: item.label, url: item.url, intent: this.intent, current: isLast, "aria-label": item.label, size: "small", "icon-small": "false" })) : (index.h("span", { class: "truncate px-2 ", "aria-hidden": "true" }, "...")), !isLast && !item.isHidden && (index.h("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }))));
143
- }))));
144
- }
145
- get el() { return index.getElement(this); }
146
- static get watchers() { return {
147
- "items": ["parseItems"]
148
- }; }
149
- };
150
- EdsBreadcrumb.style = edsBreadcrumbCss;
151
-
152
- exports.eds_breadcrumb = EdsBreadcrumb;