@ebrains/components 0.2.0-alpha.0 → 0.4.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 (347) hide show
  1. package/dist/cjs/{color-3ffe3072.js → color-88793e49.js} +2 -2
  2. package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
  3. package/dist/cjs/components.cjs.js +1 -1
  4. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  5. package/dist/cjs/{eds-alert_28.cjs.entry.js → eds-accordion_33.cjs.entry.js} +773 -162
  6. package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
  7. package/dist/cjs/eds-card-section.cjs.entry.js +18 -7
  8. package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
  9. package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
  10. package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
  11. package/dist/cjs/eds-code-block.cjs.entry.js +48 -1
  12. package/dist/cjs/eds-components-section.cjs.entry.js +44 -24
  13. package/dist/cjs/eds-docs-palettes.cjs.entry.js +1 -1
  14. package/dist/cjs/eds-docs-tokens.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-login.cjs.entry.js +1 -1
  16. package/dist/cjs/eds-logo-variations.cjs.entry.js +27 -0
  17. package/dist/cjs/eds-matomo-notice.cjs.entry.js +1 -1
  18. package/dist/cjs/{eds-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +184 -9
  19. package/dist/cjs/eds-progress-bar.cjs.entry.js +29 -0
  20. package/dist/cjs/eds-rating.cjs.entry.js +5 -7
  21. package/dist/cjs/eds-svg-repository.cjs.entry.js +7 -1
  22. package/dist/cjs/eds-tabs-content.cjs.entry.js +3 -3
  23. package/dist/cjs/eds-tabs.cjs.entry.js +27 -6
  24. package/dist/cjs/eds-timeline.cjs.entry.js +77 -0
  25. package/dist/cjs/eds-tooltip.cjs.entry.js +11 -1
  26. package/dist/cjs/eds-trl.cjs.entry.js +51 -0
  27. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  28. package/dist/cjs/index-f08e4f5c.js +20 -44
  29. package/dist/cjs/loader.cjs.js +1 -1
  30. package/dist/cjs/logo-space.cjs.entry.js +1 -1
  31. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
  32. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  33. package/dist/cjs/token-list_3.cjs.entry.js +3 -3
  34. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  35. package/dist/cjs/token-spacing.cjs.entry.js +1 -1
  36. package/dist/cjs/token-typography.cjs.entry.js +1 -1
  37. package/dist/collection/collection-manifest.json +2 -1
  38. package/dist/collection/components/eds-accordion/eds-accordion.js +11 -20
  39. package/dist/collection/components/eds-alert/eds-alert.js +5 -7
  40. package/dist/collection/components/eds-alert/eds-alert.stories.js +4 -4
  41. package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
  42. package/dist/collection/components/eds-avatar/eds-avatar.stories.js +24 -22
  43. package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
  44. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +14 -12
  45. package/dist/collection/components/eds-button/eds-button.js +3 -3
  46. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +9 -1
  47. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
  48. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
  49. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +1 -1
  50. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +14 -8
  51. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +1 -1
  52. package/dist/collection/components/eds-code-block/eds-code-block.js +57 -2
  53. package/dist/collection/components/eds-code-block/eds-code-block.stories.js +78 -0
  54. package/dist/collection/components/eds-dropdown/eds-dropdown.js +11 -21
  55. package/dist/collection/components/eds-form/eds-form.js +41 -31
  56. package/dist/collection/components/eds-form/eds-form.stories.js +0 -3
  57. package/dist/collection/components/eds-frame/eds-frame.stories.js +19 -18
  58. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +142 -14
  59. package/dist/collection/components/eds-link/eds-link.js +3 -4
  60. package/dist/collection/components/eds-modal/eds-modal.css +16 -0
  61. package/dist/collection/components/eds-modal/eds-modal.js +71 -29
  62. package/dist/collection/components/eds-modal/eds-modal.stories.js +34 -18
  63. package/dist/collection/components/eds-pagination/eds-pagination.js +13 -9
  64. package/dist/collection/components/eds-rating/eds-rating.js +8 -10
  65. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +12 -11
  66. package/dist/collection/components/eds-table/eds-table.css +4 -0
  67. package/dist/collection/components/eds-table/eds-table.js +83 -12
  68. package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
  69. package/dist/collection/components/eds-timeline/eds-timeline.js +27 -16
  70. package/dist/collection/components/eds-toast/eds-toast.js +21 -0
  71. package/dist/collection/components/eds-tooltip/eds-tooltip.js +10 -1
  72. package/dist/collection/components/eds-trl/eds-trl.js +29 -22
  73. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  74. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  75. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  76. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  77. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  78. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  79. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  80. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -5
  81. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  82. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  83. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  84. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  85. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  86. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  87. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +3 -6
  88. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
  89. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
  90. package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +44 -0
  91. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +7 -1
  92. package/dist/collection/eds-docs-ui/functional/angular.js +1 -1
  93. package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
  94. package/dist/collection/eds-docs-ui/functional/overview.js +1 -1
  95. package/dist/collection/eds-docs-ui/functional/react.js +1 -1
  96. package/dist/collection/eds-docs-ui/functional/vue.js +1 -1
  97. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  98. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +21 -1
  99. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +2 -54
  100. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +4 -13
  101. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +4 -0
  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 +22 -10
  104. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +13 -11
  105. package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
  106. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +4 -3
  107. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
  108. package/dist/collection/shared-ui/eds-header/eds-header.js +9 -5
  109. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +16 -10
  110. package/dist/collection/shared-ui/eds-login/eds-login.js +3 -2
  111. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +4 -4
  112. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
  113. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +29 -8
  114. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +22 -4
  115. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
  116. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +48 -34
  117. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  118. package/dist/collection/shared-ui/eds-user/eds-user.js +12 -6
  119. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -11
  120. package/dist/components/analytics.js +2 -2
  121. package/dist/components/components.css +29 -10
  122. package/dist/components/components.esm.js +1 -1
  123. package/dist/components/correct-use-of-colors.js +1 -1
  124. package/dist/components/eds-accordion2.js +12 -20
  125. package/dist/components/eds-alert2.js +5 -7
  126. package/dist/components/eds-avatar2.js +1 -1
  127. package/dist/components/eds-block-break2.js +1 -1
  128. package/dist/components/eds-breadcrumb.js +14 -12
  129. package/dist/components/eds-button2.js +1 -1
  130. package/dist/components/eds-card-desc2.js +1 -1
  131. package/dist/components/eds-card-generic2.js +3 -3
  132. package/dist/components/eds-card-section.js +18 -7
  133. package/dist/components/eds-card-tags.js +1 -1
  134. package/dist/components/eds-card-title2.js +1 -1
  135. package/dist/components/eds-card-wrapper.js +1 -1
  136. package/dist/components/eds-code-block2.js +48 -1
  137. package/dist/components/eds-components-section.js +44 -24
  138. package/dist/components/eds-docs-palettes.js +1 -1
  139. package/dist/components/eds-docs-tokens.js +1 -1
  140. package/dist/components/eds-dropdown2.js +12 -21
  141. package/dist/components/eds-footer2.js +1 -1
  142. package/dist/components/eds-form.js +37 -12
  143. package/dist/components/eds-header.js +6 -2
  144. package/dist/components/eds-input-select2.js +70 -2
  145. package/dist/components/eds-link2.js +3 -4
  146. package/dist/components/eds-login.js +3 -2
  147. package/dist/components/eds-logo-variations.d.ts +11 -0
  148. package/dist/components/eds-logo-variations.js +60 -0
  149. package/dist/components/eds-modal.js +56 -30
  150. package/dist/components/eds-pagination2.js +13 -9
  151. package/dist/components/eds-rating.js +6 -8
  152. package/dist/components/eds-social-networks.js +2 -2
  153. package/dist/components/eds-social-networks2.js +6 -6
  154. package/dist/components/eds-svg-repository.js +7 -1
  155. package/dist/components/eds-table2.js +50 -14
  156. package/dist/components/eds-tabs-content.js +2 -2
  157. package/dist/components/eds-tabs.js +26 -5
  158. package/dist/components/eds-timeline.js +24 -10
  159. package/dist/components/eds-toast-manager.js +1 -1
  160. package/dist/components/eds-toast2.js +21 -0
  161. package/dist/components/eds-tooltip.js +11 -1
  162. package/dist/components/eds-trl.js +94 -15
  163. package/dist/components/eds-user-modal2.js +1 -5
  164. package/dist/components/eds-user2.js +12 -6
  165. package/dist/components/incorrect-use-of-colors.js +20 -2
  166. package/dist/components/logo-space.js +1 -1
  167. package/dist/components/logo-variations-horizontal.js +2 -50
  168. package/dist/components/logo-variations-horizontal2.js +37 -0
  169. package/dist/components/logo-variations-vertical.js +2 -50
  170. package/dist/components/logo-variations-vertical2.js +42 -0
  171. package/dist/components/logo-wrong-usage.js +2 -2
  172. package/dist/components/p-005de86f.entry.js +1 -0
  173. package/dist/components/{p-5eb32f03.entry.js → p-0910d733.entry.js} +1 -1
  174. package/dist/components/{p-c9c3cc49.entry.js → p-22e6d7d5.entry.js} +1 -1
  175. package/dist/components/p-2851ff44.entry.js +1 -0
  176. package/dist/components/p-29648b47.entry.js +1 -0
  177. package/dist/components/p-2dda1ec4.entry.js +1 -0
  178. package/dist/components/{p-d9788b54.entry.js → p-35ec730b.entry.js} +1 -1
  179. package/dist/components/{p-bb60412b.entry.js → p-435a14c1.entry.js} +1 -1
  180. package/dist/components/{p-e6bfbf51.entry.js → p-5398d652.entry.js} +2 -2
  181. package/dist/components/p-57c964c5.entry.js +1 -0
  182. package/dist/components/p-5a43503a.entry.js +1 -0
  183. package/dist/components/{p-e20ed2c7.entry.js → p-610db2b2.entry.js} +1 -1
  184. package/dist/components/p-6378fb3e.entry.js +1 -0
  185. package/dist/components/p-762c8c83.entry.js +1 -0
  186. package/dist/components/p-7802e966.entry.js +1 -0
  187. package/dist/components/p-832dc95a.entry.js +1 -0
  188. package/dist/components/p-855aa1a3.entry.js +1 -0
  189. package/dist/components/{p-1bcfbaf1.entry.js → p-87830085.entry.js} +1 -1
  190. package/dist/components/p-8ddc67a1.entry.js +1 -0
  191. package/dist/components/p-ab32b3fc.entry.js +1 -0
  192. package/dist/components/p-ac0112d5.entry.js +1 -0
  193. package/dist/components/p-acb16e1c.entry.js +1 -0
  194. package/dist/components/p-ae5dbd41.entry.js +1 -0
  195. package/dist/components/p-b04eff31.entry.js +1 -0
  196. package/dist/components/p-b86a4985.js +1 -0
  197. package/dist/components/{p-9722811d.entry.js → p-ba6bafef.entry.js} +1 -1
  198. package/dist/components/{p-6fc62452.entry.js → p-c3b294a0.entry.js} +1 -1
  199. package/dist/components/p-c6038449.entry.js +1 -0
  200. package/dist/components/p-c72c8fb0.entry.js +1 -0
  201. package/dist/components/p-d53b7a75.entry.js +1 -0
  202. package/dist/components/{p-b717f95a.entry.js → p-d571d530.entry.js} +1 -1
  203. package/dist/components/p-dd6daa96.entry.js +1 -0
  204. package/dist/components/{p-73bd0c97.entry.js → p-df94285c.entry.js} +1 -1
  205. package/dist/components/primary.js +1 -1
  206. package/dist/components/primary2.js +1 -1
  207. package/dist/components/secondary.js +1 -1
  208. package/dist/components/secondary2.js +7 -7
  209. package/dist/components/support.js +1 -1
  210. package/dist/components/support2.js +3 -3
  211. package/dist/components/token-list2.js +1 -1
  212. package/dist/components/token-radii2.js +1 -1
  213. package/dist/components/token-ratios.js +1 -1
  214. package/dist/components/token-shadows2.js +1 -1
  215. package/dist/components/token-spacing.js +1 -1
  216. package/dist/components/token-typography.js +1 -1
  217. package/dist/esm/{color-0ba8ed56.js → color-bb472c37.js} +2 -2
  218. package/dist/esm/color-primary-palette_6.entry.js +14 -14
  219. package/dist/esm/components.js +1 -1
  220. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  221. package/dist/esm/{eds-alert_28.entry.js → eds-accordion_33.entry.js} +767 -161
  222. package/dist/esm/eds-card-project.entry.js +1 -1
  223. package/dist/esm/eds-card-section.entry.js +18 -7
  224. package/dist/esm/eds-card-tags.entry.js +1 -1
  225. package/dist/esm/eds-card-tool.entry.js +1 -1
  226. package/dist/esm/eds-card-wrapper.entry.js +1 -1
  227. package/dist/esm/eds-code-block.entry.js +49 -2
  228. package/dist/esm/eds-components-section.entry.js +44 -24
  229. package/dist/esm/eds-docs-palettes.entry.js +1 -1
  230. package/dist/esm/eds-docs-tokens.entry.js +1 -1
  231. package/dist/esm/eds-login.entry.js +1 -1
  232. package/dist/esm/eds-logo-variations.entry.js +23 -0
  233. package/dist/esm/eds-matomo-notice.entry.js +1 -1
  234. package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +184 -10
  235. package/dist/esm/eds-progress-bar.entry.js +25 -0
  236. package/dist/esm/eds-rating.entry.js +5 -7
  237. package/dist/esm/eds-svg-repository.entry.js +8 -2
  238. package/dist/esm/eds-tabs-content.entry.js +3 -3
  239. package/dist/esm/eds-tabs.entry.js +27 -6
  240. package/dist/esm/eds-timeline.entry.js +73 -0
  241. package/dist/esm/eds-tooltip.entry.js +11 -1
  242. package/dist/esm/eds-trl.entry.js +47 -0
  243. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  244. package/dist/esm/index-e96badea.js +20 -44
  245. package/dist/esm/loader.js +1 -1
  246. package/dist/esm/logo-space.entry.js +1 -1
  247. package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
  248. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  249. package/dist/esm/token-list_3.entry.js +3 -3
  250. package/dist/esm/token-ratios.entry.js +1 -1
  251. package/dist/esm/token-spacing.entry.js +1 -1
  252. package/dist/esm/token-typography.entry.js +1 -1
  253. package/dist/hydrate/index.js +1116 -783
  254. package/dist/hydrate/index.mjs +1116 -783
  255. package/dist/types/components/eds-accordion/eds-accordion.d.ts +5 -12
  256. package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +0 -18
  257. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +1 -5
  258. package/dist/types/components/eds-button/eds-button.d.ts +2 -2
  259. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +8 -0
  260. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +6 -2
  261. package/dist/types/components/eds-code-block/eds-code-block.d.ts +43 -3
  262. package/dist/types/components/eds-code-block/eds-code-block.stories.d.ts +54 -0
  263. package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +0 -7
  264. package/dist/types/components/eds-form/eds-form.d.ts +3 -6
  265. package/dist/types/components/eds-form/eds-form.stories.d.ts +0 -5
  266. package/dist/types/components/eds-frame/eds-frame.stories.d.ts +0 -2
  267. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +108 -2
  268. package/dist/types/components/eds-link/eds-link.d.ts +1 -1
  269. package/dist/types/components/eds-modal/eds-modal.d.ts +18 -3
  270. package/dist/types/components/eds-modal/eds-modal.stories.d.ts +9 -0
  271. package/dist/types/components/eds-rating/eds-rating.d.ts +4 -6
  272. package/dist/types/components/eds-section/eds-section-core/eds-section-core.stories.d.ts +0 -1
  273. package/dist/types/components/eds-table/eds-table.d.ts +9 -1
  274. package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -67
  275. package/dist/types/components/eds-timeline/eds-timeline.d.ts +9 -12
  276. package/dist/types/components/eds-toast/eds-toast.d.ts +9 -0
  277. package/dist/types/components/eds-trl/eds-trl.d.ts +4 -1
  278. package/dist/types/components.d.ts +217 -56
  279. package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +0 -4
  280. package/dist/types/eds-docs-ui/eds-logo-variations/eds-logo-variations.d.ts +9 -0
  281. package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +2 -0
  282. package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +1 -7
  283. package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +1 -1
  284. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +1 -1
  285. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +42 -2
  286. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +8 -2
  287. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.d.ts +29 -0
  288. package/dist/types/shared-ui/eds-header/eds-header.d.ts +7 -1
  289. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +9 -1
  290. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
  291. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +13 -0
  292. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +18 -1
  293. package/dist/types/shared-ui/eds-user/eds-user.d.ts +1 -2
  294. package/package.json +3 -3
  295. package/dist/cjs/eds-accordion.cjs.entry.js +0 -93
  296. package/dist/cjs/eds-block-break.cjs.entry.js +0 -21
  297. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -153
  298. package/dist/cjs/eds-footer.cjs.entry.js +0 -50
  299. package/dist/cjs/eds-frame.cjs.entry.js +0 -91
  300. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -100
  301. package/dist/cjs/eds-modal.cjs.entry.js +0 -86
  302. package/dist/cjs/eds-social-networks.cjs.entry.js +0 -66
  303. package/dist/cjs/eds-table.cjs.entry.js +0 -143
  304. package/dist/cjs/logo-variations-horizontal.cjs.entry.js +0 -31
  305. package/dist/cjs/logo-variations-vertical.cjs.entry.js +0 -31
  306. package/dist/collection/components/eds-trl/eds-trl.css +0 -0
  307. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
  308. package/dist/components/p-02e2a62f.entry.js +0 -1
  309. package/dist/components/p-04e47e04.entry.js +0 -1
  310. package/dist/components/p-0a3b2576.entry.js +0 -1
  311. package/dist/components/p-0c99ef81.entry.js +0 -1
  312. package/dist/components/p-272d249f.entry.js +0 -1
  313. package/dist/components/p-2d8508cd.entry.js +0 -1
  314. package/dist/components/p-32f282a9.entry.js +0 -1
  315. package/dist/components/p-373673ca.js +0 -1
  316. package/dist/components/p-3a2e8ef3.entry.js +0 -1
  317. package/dist/components/p-3afafa59.entry.js +0 -1
  318. package/dist/components/p-3b40559e.entry.js +0 -1
  319. package/dist/components/p-42b4ecff.entry.js +0 -1
  320. package/dist/components/p-49958f77.entry.js +0 -1
  321. package/dist/components/p-54c75346.entry.js +0 -1
  322. package/dist/components/p-551c0b58.entry.js +0 -1
  323. package/dist/components/p-559b6ec9.entry.js +0 -1
  324. package/dist/components/p-5ae9722b.entry.js +0 -1
  325. package/dist/components/p-79887c2c.entry.js +0 -1
  326. package/dist/components/p-9000b245.entry.js +0 -1
  327. package/dist/components/p-96c4deda.entry.js +0 -1
  328. package/dist/components/p-b14ef448.entry.js +0 -1
  329. package/dist/components/p-b203eb1b.entry.js +0 -1
  330. package/dist/components/p-b33941a0.entry.js +0 -1
  331. package/dist/components/p-bca40434.entry.js +0 -1
  332. package/dist/components/p-df93db96.entry.js +0 -1
  333. package/dist/components/p-ebed87b8.entry.js +0 -1
  334. package/dist/components/p-ff5de62c.entry.js +0 -1
  335. package/dist/components/p-ffec8755.entry.js +0 -1
  336. package/dist/esm/eds-accordion.entry.js +0 -89
  337. package/dist/esm/eds-block-break.entry.js +0 -17
  338. package/dist/esm/eds-breadcrumb.entry.js +0 -149
  339. package/dist/esm/eds-footer.entry.js +0 -46
  340. package/dist/esm/eds-frame.entry.js +0 -87
  341. package/dist/esm/eds-fullscreen-menu.entry.js +0 -96
  342. package/dist/esm/eds-modal.entry.js +0 -82
  343. package/dist/esm/eds-social-networks.entry.js +0 -62
  344. package/dist/esm/eds-table.entry.js +0 -139
  345. package/dist/esm/logo-variations-horizontal.entry.js +0 -27
  346. package/dist/esm/logo-variations-vertical.entry.js +0 -27
  347. /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare class EdsLogoVariations {
5
+ /** Active tab index to determine the content to display */
6
+ tabIndex: number;
7
+ renderContent(): any;
8
+ render(): any;
9
+ }
@@ -2,6 +2,8 @@
2
2
  * @internal
3
3
  */
4
4
  export declare class EdsSvgRepository {
5
+ hostEl: HTMLElement;
5
6
  private getSvgData;
7
+ get hostWidth(): number;
6
8
  render(): any;
7
9
  }
@@ -1,12 +1,6 @@
1
1
  /**
2
2
  * @internal
3
3
  */
4
- export declare class LogoVariations {
5
- orientation: 'horizontal' | 'vertical';
6
- /**
7
- * The type of logo variation to display.
8
- * Available options: "coloured", "mono", "dark".
9
- */
10
- type: 'coloured' | 'black' | 'color-white';
4
+ export declare class LogoVariationsHorizontal {
11
5
  render(): any;
12
6
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @internal
3
3
  */
4
- export declare class LogoVariations {
4
+ export declare class LogoVariationsVertical {
5
5
  orientation: 'horizontal' | 'vertical';
6
6
  /**
7
7
  * The type of logo variation to display.
@@ -18,7 +18,7 @@ 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
22
  /**
23
23
  * Number of columns to span for each card in the grid layout.
24
24
  * This value sets the column span on medium (md) and larger screen sizes.
@@ -21,7 +21,47 @@ declare const _default: {
21
21
  };
22
22
  };
23
23
  args: {
24
- cards: string;
24
+ cards: ({
25
+ title: string;
26
+ description: string;
27
+ url: string;
28
+ avatar: string;
29
+ shortAbbreviation: string;
30
+ headingLevel: string;
31
+ tags: string;
32
+ tiny: boolean;
33
+ bg: boolean;
34
+ withHover: boolean;
35
+ image: {
36
+ src: string;
37
+ alt: string;
38
+ srcset: string;
39
+ sizes: string;
40
+ width: number;
41
+ height: number;
42
+ lazyload: boolean;
43
+ };
44
+ } | {
45
+ title: string;
46
+ description: string;
47
+ url: string;
48
+ avatar: string;
49
+ shortAbbreviation: string;
50
+ headingLevel: string;
51
+ tags: string;
52
+ tiny: boolean;
53
+ bg: boolean;
54
+ withHover: boolean;
55
+ image: {
56
+ src: string;
57
+ alt: string;
58
+ width: number;
59
+ height: number;
60
+ lazyload: boolean;
61
+ srcset?: undefined;
62
+ sizes?: undefined;
63
+ };
64
+ })[];
25
65
  cols: number;
26
66
  extraClass: string;
27
67
  };
@@ -29,5 +69,5 @@ declare const _default: {
29
69
  };
30
70
  export default _default;
31
71
  export declare const Default: {
32
- render: (args: any) => string;
72
+ render: (args: any) => HTMLEdsCardSectionElement;
33
73
  };
@@ -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.2.0-alpha.0",
3
+ "version": "0.4.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.2.0-alpha.0",
18
- "@ebrains/svgs":"0.2.0-alpha.0"
17
+ "@ebrains/assets":"0.3.0-alpha.0",
18
+ "@ebrains/svgs":"0.3.0-alpha.0"
19
19
  }
20
20
  }
@@ -1,93 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-f08e4f5c.js');
6
-
7
- const edsAccordionCss = "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}.min-h-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.min-h-56{min-height:3.5rem}.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}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.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)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-20{padding-top:1.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}";
8
- const EdsAccordionStyle0 = edsAccordionCss;
9
-
10
- const EdsAccordion = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.accordionChange = index.createEvent(this, "accordionChange", 7);
14
- /**
15
- * Handles the click event on the accordion header to toggle expansion.
16
- * Toggles the `isExpanded` state and emits the `accordionChange` event.
17
- */
18
- this.handleClick = () => {
19
- this.isExpanded = !this.isExpanded;
20
- this.accordionChange.emit(this.isExpanded);
21
- this.setPanelHeight();
22
- };
23
- /**
24
- * Calculates and sets the panel height based on the content height
25
- * and adjusts based on the `shortContent` and `isExpanded` states.
26
- */
27
- this.setPanelHeight = () => {
28
- if (this.childContentRef) {
29
- this.shortContent =
30
- this.wrapperRef.scrollWidth > 830 && !this.description
31
- ? this.childContentRef.scrollHeight <= 80
32
- : this.childContentRef.scrollHeight <= 20;
33
- this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0;
34
- }
35
- };
36
- this.title = undefined;
37
- this.description = undefined;
38
- this.switchBg = true;
39
- this.expanded = false;
40
- this.clampText = true;
41
- this.minHeightContent = false;
42
- this.isExpanded = this.expanded;
43
- this.panelHeight = 0;
44
- this.shortContent = false;
45
- }
46
- /**
47
- * Lifecycle method that sets up the initial panel height and adds a resize event listener
48
- * to recalculate height on window resize.
49
- */
50
- componentDidLoad() {
51
- this.setPanelHeight();
52
- // Emit context for each eds-link element after the component is fully loaded
53
- const btn = this.el.shadowRoot.querySelector('eds-button');
54
- this.emitContext(btn);
55
- window.addEventListener('resize', this.setPanelHeight);
56
- }
57
- /**
58
- * Emits a custom event called `parentContext` for a given link element.
59
- * This event provides context information about the breadcrumb component.
60
- *
61
- * @param linkElement - The link element to which the event will be dispatched.
62
- */
63
- emitContext(linkElement) {
64
- const event = new CustomEvent('parentContext', {
65
- detail: {
66
- componentName: this.el.tagName.toLowerCase(),
67
- identifier: null
68
- }
69
- });
70
- linkElement.dispatchEvent(event);
71
- }
72
- /**
73
- * Lifecycle method that cleans up the resize event listener when the component is removed.
74
- */
75
- disconnectedCallback() {
76
- window.removeEventListener('resize', this.setPanelHeight);
77
- }
78
- /**
79
- * Renders the accordion structure, including header, content, description, and any slotted content.
80
- * Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
81
- */
82
- render() {
83
- const minHeightContentClass = this.minHeightContent ? 'min-h-56' : '';
84
- return (index.h("div", { key: '1f8ea188c4b39f6d1a8d10cdbf43d3df88d1281f', ref: (el) => (this.wrapperRef = el), class: `container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
85
- ${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
86
- ${this.switchBg ? 'hover:bg-inverse' : ''}
87
- ${minHeightContentClass}` }, index.h("h3", { key: '4490bdc1a18b99850e8db8ae1c38fcb37912ec0d', class: "mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1" }, this.title), index.h("div", { key: '82df433a9cc6805a735300fd1bb52f41c639c992', class: "ml-auto" }, index.h("eds-button", { key: '9965d5eecfa02fbea08c23c44d325417767f6495', id: "accordionId", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-controls": "accordionId", class: `effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none`, onClick: this.handleClick, icon: "chevron-down" })), index.h("div", { key: '7ab8d2d07d55fa05c5e5647d1d00d1165f0d40ce', class: `w-full` }, this.description ? (index.h("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, index.h("section", { key: 'cb122dd5433d7012cba6f3769f79e92a155c45d7', id: "sectionId", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, index.h("div", { key: '0c2e1d9b38f21f0cb7f50aa3923edcc448418e3f', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-20`, "aria-hidden": !this.isExpanded }, index.h("span", { key: 'd119c88d54e8d5e83d4cc3d4d16d1cd53d689bc7', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, index.h("slot", { key: 'b2a6917ec65bc808389a2d1c77cd1183f00cbaa1' })))))));
88
- }
89
- get el() { return index.getElement(this); }
90
- };
91
- EdsAccordion.style = EdsAccordionStyle0;
92
-
93
- exports.eds_accordion = EdsAccordion;
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-f08e4f5c.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
- const EdsBlockBreakStyle0 = edsBlockBreakCss;
9
-
10
- const EdsBlockBreak = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.extraClass = '';
14
- }
15
- render() {
16
- return index.h("hr", { key: '85b5253d4abb77072424452d2ff6a0d631e67652', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
17
- }
18
- };
19
- EdsBlockBreak.style = EdsBlockBreakStyle0;
20
-
21
- exports.eds_block_break = EdsBlockBreak;
@@ -1,153 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-f08e4f5c.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
- const EdsBreadcrumbStyle0 = edsBreadcrumbCss;
9
-
10
- const EdsBreadcrumb = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- /**
14
- * Updates the maximum number of visible items and tracks if the screen is small.
15
- */
16
- this.updateScreenSize = () => {
17
- const width = window.innerWidth;
18
- if (width < 769) {
19
- this.maxVisibleItems = 3;
20
- this.isSmallScreen = true;
21
- }
22
- else if (width <= 1024) {
23
- this.maxVisibleItems = 4;
24
- this.isSmallScreen = true;
25
- }
26
- else {
27
- this.maxVisibleItems = 6;
28
- this.isSmallScreen = false;
29
- }
30
- };
31
- this.items = [];
32
- this.intent = 'ghost';
33
- this.parsedItems = [];
34
- this.isSmallScreen = false;
35
- this.maxVisibleItems = 6;
36
- }
37
- /**
38
- * Watch for changes to the `items` prop and parse it when it changes.
39
- * Converts the `items` string into an array of objects if it is a JSON string.
40
- * If the format is invalid, it logs an error and sets an empty array.
41
- *
42
- * @param newValue - The new value for the `items` prop.
43
- */
44
- parseItems(newValue) {
45
- try {
46
- if (typeof newValue === 'string') {
47
- this.parsedItems = JSON.parse(newValue);
48
- }
49
- else {
50
- this.parsedItems = newValue;
51
- }
52
- }
53
- catch (e) {
54
- this.parsedItems = [];
55
- }
56
- }
57
- /**
58
- * Lifecycle method that runs when the component is about to be loaded.
59
- * It parses the initial `items` prop value.
60
- */
61
- componentWillLoad() {
62
- this.parseItems(this.items);
63
- this.updateScreenSize();
64
- window.addEventListener('resize', this.updateScreenSize);
65
- }
66
- disconnectedCallback() {
67
- window.removeEventListener('resize', this.updateScreenSize);
68
- }
69
- /**
70
- * Lifecycle method that runs when the component has fully loaded.
71
- * It emits a custom event for each `eds-link` element contained within the breadcrumb.
72
- */
73
- componentDidLoad() {
74
- // Emit context for each eds-link element after the component is fully loaded
75
- const links = this.el.shadowRoot.querySelectorAll('eds-link');
76
- links.forEach((link) => {
77
- this.emitContext(link);
78
- });
79
- }
80
- /**
81
- * Emits a custom event called `parentContext` for a given link element.
82
- * This event provides context information about the breadcrumb component.
83
- *
84
- * @param linkElement - The link element to which the event will be dispatched.
85
- */
86
- emitContext(linkElement) {
87
- const event = new CustomEvent('parentContext', {
88
- detail: {
89
- componentName: this.el.tagName.toLowerCase(),
90
- identifier: null
91
- }
92
- });
93
- linkElement.dispatchEvent(event);
94
- }
95
- /**
96
- * Truncates breadcrumb items based on the maxVisibleItems value.
97
- * Truncates `label` to 10 characters if `isSmallScreen` is true, except for the last label.
98
- */
99
- getTruncatedItems() {
100
- const totalItems = this.parsedItems.length;
101
- if (totalItems > this.maxVisibleItems) {
102
- const firstItem = this.parsedItems[0];
103
- const lastItems = this.parsedItems.slice(-2);
104
- const ellipsis = { label: '...', url: '', isHidden: true };
105
- if (this.maxVisibleItems === 3) {
106
- return [
107
- this.truncateLabel(firstItem),
108
- ellipsis,
109
- ...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
110
- ];
111
- }
112
- else if (this.maxVisibleItems === 4) {
113
- const middleItem = this.parsedItems[Math.floor(totalItems / 2)];
114
- return [
115
- this.truncateLabel(firstItem),
116
- this.truncateLabel(middleItem),
117
- ellipsis,
118
- ...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
119
- ];
120
- }
121
- }
122
- return this.parsedItems.map((item, index) => index === this.parsedItems.length - 1 ? item : this.truncateLabel(item));
123
- }
124
- /**
125
- * Truncates the label of a breadcrumb item to a maximum of 10 characters
126
- * if the screen is small.
127
- */
128
- truncateLabel(item) {
129
- if (item.label.length > 15) {
130
- return Object.assign(Object.assign({}, item), { label: `${item.label.slice(0, 15)}...` });
131
- }
132
- return item;
133
- }
134
- /**
135
- * Render method for the breadcrumb component.
136
- * It creates a navigation element with an ordered list of breadcrumb links.
137
- * The last link is disabled and marked as the current page.
138
- */
139
- render() {
140
- const itemsToRender = this.getTruncatedItems();
141
- 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) => {
142
- const isLast = index$1 === itemsToRender.length - 1;
143
- 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" }))));
144
- }))));
145
- }
146
- get el() { return index.getElement(this); }
147
- static get watchers() { return {
148
- "items": ["parseItems"]
149
- }; }
150
- };
151
- EdsBreadcrumb.style = EdsBreadcrumbStyle0;
152
-
153
- exports.eds_breadcrumb = EdsBreadcrumb;
@@ -1,50 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-f08e4f5c.js');
6
-
7
- const edsFooterCss = "";
8
- const EdsFooterStyle0 = edsFooterCss;
9
-
10
- const EdsFooter = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- /**
14
- * Scrolls the page smoothly back to the top.
15
- * Called when the "Back to top" button is clicked.
16
- * @private
17
- */
18
- this.backToTop = () => {
19
- window.scrollTo({ top: 0, behavior: 'smooth' });
20
- };
21
- this.extraClass = '';
22
- this.social = false;
23
- this.hasCookiesSetUp = false;
24
- this.enableScrollTop = false;
25
- this.fundedBy = 'EBRAINS is funded by the Horizon Europe Framework Programme.';
26
- this.rightsReserved = `${new Date().getFullYear()} EBRAINS. All rights reserved.`;
27
- this.cookiesPreference = 'Cookies Preferences';
28
- }
29
- /**
30
- * Toggles the cookie preferences popup, if available.
31
- * The actual implementation for handling cookie preferences should be defined here.
32
- * @private
33
- */
34
- toggleCookiesPopup() {
35
- // Implement logic for handling cookie preferences
36
- }
37
- /**
38
- * Renders the footer component with optional sections and elements,
39
- * including social network links, a Horizon Europe funding acknowledgment, and
40
- * legal links such as "Cookies Preferences" and copyright information.
41
- *
42
- * @returns {JSX.Element} The rendered JSX for the footer component.
43
- */
44
- render() {
45
- return (index.h("footer", { key: 'efffa9b96cc2a094255fcb6d08ec45c7c7f09ec4', class: `${this.extraClass} pb-banner` }, this.social ? (index.h("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, index.h("div", { class: "container pb-20 xl:pb-40 " }, index.h("div", { class: "grid-layout" }, index.h("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, index.h("eds-social-networks", { class: "mt-28" })), index.h("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" }))))) : null, index.h("div", { key: 'c3942c635dff3dc8cb47a21f20aca52acfaa3e18', class: `border-softest ${this.social ? 'border-t-2' : ''} pt-20 pb-28 md:pt-28` }, index.h("div", { key: '57e963272659ce2e63294c969f3724a03aef667e', class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, index.h("div", { key: 'c3e5cfe07fe9eb90450f7a87be1b95ed00ef38ce', class: "flex items-center gap-x-12" }, index.h("a", { key: 'b0d0c65115b611f78d2b468559c16eb60f538907', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en" }, index.h("eds-img", { key: '6cb5d067f07b456a8d828f3f42f2730e3e5374e0', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), index.h("div", { key: 'e5b768b0fb96fcdcb786d33fc808368005935491', class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, index.h("p", { key: '777263c2f4bde43d38690f41391eaf8e51d945fa' }, this.fundedBy), index.h("div", { key: 'a415687d08edf8f3e03a6edce9c45f58662c8595', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, index.h("span", { key: 'c0b6498ad4f5e1f4f1945ebb971f9dd81cc74c77', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "\u00A9 ", this.rightsReserved), this.hasCookiesSetUp && (index.h("button", { key: '10133d180bfb0d8a6354ea2cbea318a2c46fc463', class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference)))), index.h("div", { key: '917d0980f91a8c42a75bae301b0a18e3777dd021', class: "ml-auto pl-12" }, this.enableScrollTop ? (index.h("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop })) : null)))));
46
- }
47
- };
48
- EdsFooter.style = EdsFooterStyle0;
49
-
50
- exports.eds_footer = EdsFooter;