@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
@@ -2,22 +2,13 @@ import { h } from "@stencil/core";
2
2
  /**
3
3
  * @internal
4
4
  */
5
- export class LogoVariations {
5
+ export class LogoVariationsVertical {
6
6
  constructor() {
7
- this.orientation = 'horizontal';
7
+ this.orientation = 'vertical';
8
8
  this.type = undefined;
9
9
  }
10
10
  render() {
11
- if (this.type === 'coloured') {
12
- return (h("div", { class: "container my-16" }, h("div", { class: "coloured w-[200px]" }, h("eds-logo", { orientation: "vertical", type: "no-bg", href: "#" }))));
13
- }
14
- if (this.type === 'black') {
15
- return (h("div", { class: "container my-16" }, h("div", { class: "bg-default w-[200px]" }, h("eds-logo", { orientation: "vertical", type: "black", href: "#" }))));
16
- }
17
- if (this.type === 'color-white') {
18
- return (h("div", { class: "container my-16" }, h("div", { class: "w-[200px]" }, h("eds-logo", { orientation: "vertical", type: "color-white", href: "#" }))));
19
- }
20
- return null;
11
+ return (h("div", { key: '70bc4a46031bb4456ba28bef27efbbfe5e7cf6f2' }, h("div", { key: '84ab774067350c75982d41b6d97500e19d3fe5e5', class: "container my-16" }, h("h3", { key: 'c080f9b4cfa18a3a48fb703f749c62531a322267', class: "f-heading03" }, "Coloured Background"), h("div", { key: 'a9a871769d76e97c879f49437187ca553a633dd2', class: "coloured w-[200px]" }, h("eds-logo", { key: '668f2607e0394ab1b25ddfbef4cd3e3880e1b4f9', orientation: "vertical", type: "no-bg", href: "#" }))), h("div", { key: 'd1674061f47b242930599337d605b51831214d7a', class: "container my-16" }, h("h3", { key: '8b1470587ad99fdf379c0c4b4646098d14f087e8', class: "f-heading03" }, "Black and White Background"), h("div", { key: 'bbb9997369a93ce84450a7d289948049fcfa5bf6', class: "bg-default w-[200px]" }, h("eds-logo", { key: '4f3dc6ad9f9db6f605d54df3c8adecea051cf34e', orientation: "vertical", type: "black", href: "#" }))), h("div", { key: '0f54fde04fbef65477809b45371ac15914b1433b', class: "container my-16" }, h("h3", { key: '5c46f1d7b09bf3e113e2733531611943ad21be4e', class: "f-heading03" }, "Dark Background "), h("div", { key: '88609875109aae85cb5333426a3bc270314d9fb5', class: "w-[200px]" }, h("eds-logo", { key: '0eeeba0006e25a8a4f0c4fb5c0d38b089e0a22f4', orientation: "vertical", type: "color-white", href: "#" })))));
21
12
  }
22
13
  static get is() { return "logo-variations-vertical"; }
23
14
  static get encapsulation() { return "shadow"; }
@@ -49,7 +40,7 @@ export class LogoVariations {
49
40
  },
50
41
  "attribute": "orientation",
51
42
  "reflect": false,
52
- "defaultValue": "'horizontal'"
43
+ "defaultValue": "'vertical'"
53
44
  },
54
45
  "type": {
55
46
  "type": "string",
@@ -127,6 +127,10 @@
127
127
  grid-template-columns: repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);
128
128
  grid-gap: var(--inner-gutter);
129
129
  }
130
+ .grid-col-span-12 {
131
+ --container-grid-columns: 12;
132
+ grid-column: span 12 / span 12;
133
+ }
130
134
 
131
135
  .gap-y-8 {
132
136
  row-gap: 0.5rem;
@@ -5,7 +5,7 @@ import { hLogoColor } from "../../../../../../../../packages/svgs/src/index";
5
5
  */
6
6
  export class LogoWrongUsage {
7
7
  render() {
8
- return (h("ul", { key: '9aa8a3f496e779f561e54a6ee656528b2e55a500', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("span", { key: '735e61f1189decb4fef74b5f9f481f94f51c304e', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '8d8859bef157051ca9493bac1fd35e0db80414c0', class: "example" }, h("div", { key: '6ee9ce679339e1189439239889a60d8cba39c4b1', class: "bg-dark " }, h("div", { key: '492054f20250a9572ac3c641d05bbb955c050be4', class: "no-other-bg-color logo", innerHTML: hLogoColor })), h("p", { key: 'c9f49c3c44fb7446e6e4e02c1f79ac15827633ba', class: "f-ui-02" }, "Do not use with backgrounds that make legibility difficult"))), h("span", { key: 'd5cbda2472d3396f08fdb600676852708991ce0f', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: 'dacbf3bcf4dd4914b4332a663a81732a196457f4', class: "example" }, h("div", { key: '9f9bb9b86a840658cf7311a2b035dbadd6a3e0af', class: "no-other-color p-16" }, h("div", { key: '9e96d60f66801638898c12b190640ae0dcc18d24', class: "logo non-brand-color", innerHTML: hLogoColor })), h("p", { key: '5e0470cb9f81e4bba14104746715704fed2fddeb', class: "f-ui-02" }, "Do not apply other colors"))), h("span", { key: '5e9e1943ab5d4cda7d6b4cb51b76f9da4370a50b', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '9821754465969edcf1ea98aa7a353ff04140612f', class: "example" }, h("div", { key: '513bb5879746d5979cf7f5360ea60c97196e5379', class: "bg-light p-16" }, h("div", { key: '25f615bf82c51f8601960cb705fa5983667a4943', class: "logo distorted", innerHTML: hLogoColor })), h("p", { key: '636efd5a54620ca8248b5e1adbf453a7d5292d0f', class: "f-ui-02" }, "Do not deform the logo"))), h("span", { key: 'a006b91c704b1df8f7adf1cad1d0033bd11378d8', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '6a494fdace1e6a2ff48e02a6a8a79f31ca101e02', class: "example" }, h("div", { key: '09ea335ac52cb395cc3173263b4a956aba59cc4e', class: "bg-white p-16" }, h("div", { key: '9acf37c882acb0a04fddc5754b8e91e6789f36ee', class: "logo effects", innerHTML: hLogoColor })), h("p", { key: 'f648aefe81578e9768c24de085e53e2484c1bb7b', class: "f-ui-02" }, "Do not apply effects"))), h("span", { key: '70f90abc0d6a3292101e29bdfc311ebb0192a585', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '9eb3aa4276d7b0a9f7c5e76ffa9fefe7f3def0a3', class: "example" }, h("div", { key: '5a38e80d567d2c2faf08fbcb66a62c24973c3fea', class: "bg-white p-16" }, h("div", { key: '7edbadc8850a9babefea43be9c5f9697021712d5', class: "logo rotated", innerHTML: hLogoColor })), h("p", { key: '96d30acd52838a03f33fd6c8dcf89a72417ce925', class: "f-ui-02" }, "Do not rotate the logo"))), h("span", { key: '41d476bd66b39e796f03c669945024720771216f', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '3fd7f690559195125d633097b578b1cc2ff4ccc1', class: "example" }, h("div", { key: '684387318cfffdfbc5592486095a28a923e5af07', class: "bg-light p-16" }, h("div", { key: '7593acd61c1ea52ce613a1f3395c8769a09f9aed', class: "logo outlined", innerHTML: hLogoColor })), h("p", { key: '51d6d974c005a0b5059cd002dff682dc50cfb19a', class: "f-ui-02" }, "Do not apply outlines"))), h("span", { key: '605db4b33b7aab4d0e81e30f658f639689a433b6', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }), h("span", { key: '1dc1e6be701572fb7d31b435f8b25dbaf0bf30c8', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '30b239799a7d8acf93eba73d3d5dba3cc7117fb5', class: "example" }, h("div", { key: '16a146193f1ec233f37a9472dfe5fa92de10864d', class: "bg-accent p-16" }, h("div", { key: 'cc5924ad51847399ec52c2ece993bdd22305892f', class: "text-inverse", innerHTML: hLogoColor })), h("p", { key: 'bdcd59e968000ecd459b65aaa42e75fa9e06f8ef', class: "f-ui-02" }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones")))));
8
+ return (h("ul", { key: 'e2fbd7802c153f970a457011a5dcaf3163d6290f', class: "container grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("span", { key: '07d6a5b930dd8ae652e63310c4232e8c3e6858b2', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '5d3dd01a67f41f839e79aa3d449ba319dcc0209c', class: "example" }, h("div", { key: '6b51ea71b6b4072ec6c66223a4f92c1232e8691a', class: "bg-dark " }, h("div", { key: '03a476635bc1112f1ea2d4ed10df0415ead7f0f8', class: "no-other-bg-color logo", innerHTML: hLogoColor })), h("p", { key: '084116335e9f8ed4c9d2a04a9551097dc2a53c4a', class: "f-ui-02" }, "Do not use with backgrounds that make legibility difficult"))), h("span", { key: 'e67f1bdeee28928f4f6f8fb5d1e0b59160edd949', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: 'b0e909eb57a6771b32a93dd0932ef5b848a19ff2', class: "example" }, h("div", { key: '19bc9f29ddbffd1c308cb429100f0af3d58237a1', class: "no-other-color p-16" }, h("div", { key: '301c5cb926b9ad167f1ba096f99a874577617fb1', class: "logo non-brand-color", innerHTML: hLogoColor })), h("p", { key: 'b41ab53c2af9efeafb46d41a515eba2f801d49e4', class: "f-ui-02" }, "Do not apply other colors"))), h("span", { key: '826ae54f62c5a3880adf1833dbc19bbb9e1ec6f2', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '092d5fc3176845532ecf577c66d6e3a349ebfe45', class: "example" }, h("div", { key: '1d1d3cc86e728fc21f898c59ff1511c5fa728f9f', class: "bg-light p-16" }, h("div", { key: 'df05102398d3de9916a23d0998529d8ca8a66257', class: "logo distorted", innerHTML: hLogoColor })), h("p", { key: '377e38a762855d563d087eb275481de6a17ddbbb', class: "f-ui-02" }, "Do not deform the logo"))), h("span", { key: '766c4ea568c8bf2fa1efa207ff5f602e5128aef3', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: 'cf4e883370c0ee284167bea7f2c0c603932d1682', class: "example" }, h("div", { key: 'de160646456f91316bf966db6568c20ff382dd3b', class: "bg-white p-16" }, h("div", { key: '5aa03093e5e483547919eaeca58643e54a286405', class: "logo effects", innerHTML: hLogoColor })), h("p", { key: 'aa65e295008001d6fe2b2168d8f7f43a770ec8e3', class: "f-ui-02" }, "Do not apply effects"))), h("span", { key: 'd0eb2536e430b6e9fdb9a37d638d5c31ee81e205', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '43ec87b4632c2709404aff9d3e7bbcb2910426ca', class: "example" }, h("div", { key: '36cd6dc2b23070e5c7fdfc09444d3ccbb8681216', class: "bg-white p-16" }, h("div", { key: 'a1077b322d113220e05ee3edce627c60547cb49a', class: "logo rotated", innerHTML: hLogoColor })), h("p", { key: '86c384f5cf362d16bd6ac5ac8448e3e0d591fa18', class: "f-ui-02" }, "Do not rotate the logo"))), h("span", { key: 'b267f6024a4e7bad6348d323606922888db5264b', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '0bd0c5d62e454ce133a187e7d3917afc0c26c551', class: "example" }, h("div", { key: '71e4c1681cfbb64970237b410e0925a0f22e1141', class: "bg-light p-16" }, h("div", { key: '01ab5d75102b9f476fecebcc31c975f6d4720c12', class: "logo outlined", innerHTML: hLogoColor })), h("p", { key: '0734a049d710d1f6406989668f60da1249e29c7b', class: "f-ui-02" }, "Do not apply outlines"))), h("span", { key: '830b7b2a8cdf6dfc7f395dc92db42fbe626a7ae4', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }), h("span", { key: 'ca40bb4ea839eacf62e93f7fbec41f076f7b12a6', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, h("div", { key: '641a963ba81294eefe8fc00dd0a3bdca91af94a2', class: "example" }, h("div", { key: '70691be08e9081899fb2928d5d287aaebef3b399', class: "bg-accent p-16" }, h("div", { key: '556135fd6596b530bf959bb9984641f185cd9f96', class: "text-inverse", innerHTML: hLogoColor })), h("p", { key: '7eaded302e41fc1d04f2033add829dfaba6e8012', class: "f-ui-02" }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones")))));
9
9
  }
10
10
  static get is() { return "logo-wrong-usage"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -11,7 +11,7 @@ import { h } from "@stencil/core";
11
11
  */
12
12
  export class EdsCardSection {
13
13
  constructor() {
14
- this.cards = undefined;
14
+ this.cards = [];
15
15
  this.cols = 4;
16
16
  }
17
17
  /**
@@ -21,13 +21,24 @@ export class EdsCardSection {
21
21
  * @returns {any[]} An array of parsed card objects.
22
22
  */
23
23
  get parsedCards() {
24
- try {
25
- return JSON.parse(this.cards);
24
+ // If it's already an array, return it immediately.
25
+ if (Array.isArray(this.cards)) {
26
+ return this.cards;
26
27
  }
27
- catch (e) {
28
- //console.error('Error parsing links JSON', e);
29
- return [];
28
+ if (typeof this.cards === 'object') {
29
+ return this.cards;
30
30
  }
31
+ else if (typeof this.cards === 'string') {
32
+ try {
33
+ return JSON.parse(this.cards);
34
+ }
35
+ catch (e) {
36
+ // eslint-disable-next-line
37
+ console.error('Error parsing cards prop:', e);
38
+ return [];
39
+ }
40
+ }
41
+ return [];
31
42
  }
32
43
  /**
33
44
  * Renders the card section as a grid layout.
@@ -37,7 +48,7 @@ export class EdsCardSection {
37
48
  * @returns {JSX.Element} The rendered section containing a list of cards.
38
49
  */
39
50
  render() {
40
- return (h("section", { key: 'f8e6a03e37677623fad3c53327f6260920a5e914', class: "w-full" }, h("ul", { key: '1da1bc3a5aecadd52b4d025d7d02dc252e47b34a', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (h("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, h("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
51
+ return (h("section", { key: 'da139da167230819e494a6426c2431f209a2e557', class: "w-full" }, h("ul", { key: '3e8affe5c9aee91c4487480c72c437339265101a', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (h("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, h("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
41
52
  }
42
53
  static get is() { return "eds-card-section"; }
43
54
  static get encapsulation() { return "shadow"; }
@@ -57,8 +68,8 @@ export class EdsCardSection {
57
68
  "type": "string",
58
69
  "mutable": false,
59
70
  "complexType": {
60
- "original": "string",
61
- "resolved": "string",
71
+ "original": "string | []",
72
+ "resolved": "[] | string",
62
73
  "references": {}
63
74
  },
64
75
  "required": false,
@@ -68,7 +79,8 @@ export class EdsCardSection {
68
79
  "text": "JSON string representing an array of card objects.\nEach card object can contain properties like `title`, `description`, `avatar`, `headingLevel`, `tags`, `url`, `bg`, `tiny`, and `image`.\n\nExample:\n```json\n'[{\"title\": \"Card Title\", \"description\": \"Description\", \"avatar\": \"/path/to/avatar.jpg\", \"url\": \"http://example.com\"}]'\n```"
69
80
  },
70
81
  "attribute": "cards",
71
- "reflect": false
82
+ "reflect": false,
83
+ "defaultValue": "[]"
72
84
  },
73
85
  "cols": {
74
86
  "type": "number",
@@ -3,8 +3,8 @@ export default {
3
3
  component: 'eds-card-section',
4
4
  argTypes: {
5
5
  cards: {
6
- control: 'text',
7
- description: 'JSON string representing an array of card objects, each with properties like title, description, avatar, image, etc.'
6
+ control: 'object',
7
+ description: 'Representing an array of card objects, each with properties like title, description, avatar, image, etc.'
8
8
  },
9
9
  cols: {
10
10
  control: { type: 'number', min: 1, max: 12, step: 1 },
@@ -16,7 +16,7 @@ export default {
16
16
  }
17
17
  },
18
18
  args: {
19
- cards: JSON.stringify([
19
+ cards: [
20
20
  {
21
21
  title: 'The Future of AI in Healthcare',
22
22
  description: 'Explore how AI is transforming the healthcare industry with cutting-edge technologies and research.',
@@ -57,18 +57,20 @@ export default {
57
57
  lazyload: true
58
58
  }
59
59
  }
60
- // Additional cards can be added here
61
- ]),
60
+ ],
62
61
  cols: 4,
63
62
  extraClass: ''
64
63
  },
65
64
  parameters: {}
66
65
  };
66
+ // Variant: Passing cards as an array of objects via property binding
67
67
  export const Default = {
68
- render: (args) => `
69
- <eds-card-section
70
- cards='${args.cards}'
71
- cols="${args.cols}"
72
- class="${args.extraClass}"
73
- ></eds-card-section>`
68
+ render: (args) => {
69
+ const cardSection = document.createElement('eds-card-section');
70
+ // Pass the array and other args as properties
71
+ cardSection.cards = args.cards;
72
+ cardSection.cols = args.cols;
73
+ cardSection.className = args.extraClass;
74
+ return cardSection;
75
+ }
74
76
  };
@@ -47,7 +47,7 @@ export class EdsFooter {
47
47
  * @returns {JSX.Element} The rendered JSX for the footer component.
48
48
  */
49
49
  render() {
50
- return (h("footer", { key: 'efffa9b96cc2a094255fcb6d08ec45c7c7f09ec4', class: `${this.extraClass} pb-banner` }, this.social ? (h("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, h("div", { class: "container pb-20 xl:pb-40 " }, h("div", { class: "grid-layout" }, h("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, h("eds-social-networks", { class: "mt-28" })), 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, h("div", { key: 'c3942c635dff3dc8cb47a21f20aca52acfaa3e18', class: `border-softest ${this.social ? 'border-t-2' : ''} pt-20 pb-28 md:pt-28` }, h("div", { key: '57e963272659ce2e63294c969f3724a03aef667e', class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, h("div", { key: 'c3e5cfe07fe9eb90450f7a87be1b95ed00ef38ce', class: "flex items-center gap-x-12" }, 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" }, h("eds-img", { key: '6cb5d067f07b456a8d828f3f42f2730e3e5374e0', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), h("div", { key: 'e5b768b0fb96fcdcb786d33fc808368005935491', class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, h("p", { key: '777263c2f4bde43d38690f41391eaf8e51d945fa' }, this.fundedBy), h("div", { key: 'a415687d08edf8f3e03a6edce9c45f58662c8595', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, h("span", { key: 'c0b6498ad4f5e1f4f1945ebb971f9dd81cc74c77', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "\u00A9 ", this.rightsReserved), this.hasCookiesSetUp && (h("button", { key: '10133d180bfb0d8a6354ea2cbea318a2c46fc463', class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference)))), h("div", { key: '917d0980f91a8c42a75bae301b0a18e3777dd021', class: "ml-auto pl-12" }, this.enableScrollTop ? (h("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop })) : null)))));
50
+ return (h("footer", { key: '8d3d1b5d2acd76f56b2bc12539cb7d277b4dcd7f', class: `${this.extraClass} pb-banner` }, this.social ? (h("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, h("div", { class: "container pb-20 xl:pb-40 " }, h("div", { class: "grid-layout" }, h("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, h("eds-social-networks", { class: "mt-28" })), 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, h("div", { key: '7d6e3a414ec8e8f8e2b795faf639948f8819f5cb', class: `border-softest ${this.social ? 'border-t-2' : ''} pt-20 pb-28 md:pt-28` }, h("div", { key: '9a475fd146ac0e1bc78c43940ee24ec31212fcb9', class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, h("div", { key: '4b465113cdb882f919fba15e944eb56edbe3c570', class: "flex items-center gap-x-12" }, h("a", { key: '1a8ad1ee5f4dfb77da036b03d0770cba8e5d725e', 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" }, h("eds-img", { key: '4714ea1a01b7b7eef8b3af0c04ffe793d51c4d5e', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), h("div", { key: 'c4db6bab70e570e337c82136a0d9d6dad01c1039', class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, h("p", { key: '0b030a92c12a3a96fe2baacc13ac21f5bd708a50' }, this.fundedBy), h("div", { key: '4714d0ccf0e3912ae330a6f39ed3607caf2b51a4', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, h("span", { key: 'b4bc2d45871c7d1f9de1d6090959b12fd5246f01', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "\u00A9 ", this.rightsReserved), this.hasCookiesSetUp && (h("button", { key: '98b56eee7be6bc1558821933cebf2853b3bb68fc', class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference)))), h("div", { key: 'f4bf4a0c99f3be920dd15f68e6f7e390cd85ecce', class: "ml-auto pl-12" }, this.enableScrollTop ? (h("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop })) : null)))));
51
51
  }
52
52
  static get is() { return "eds-footer"; }
53
53
  static get originalStyleUrls() {
@@ -4,7 +4,8 @@ import { h } from "@stencil/core";
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).
@@ -112,8 +113,8 @@ export class EdsFullscreenMenu {
112
113
  "type": "string",
113
114
  "mutable": false,
114
115
  "complexType": {
115
- "original": "string",
116
- "resolved": "string",
116
+ "original": "string | { label: string; url: string; icon?: string; external?: boolean }[]",
117
+ "resolved": "string | { label: string; url: string; icon?: string; external?: boolean; }[]",
117
118
  "references": {}
118
119
  },
119
120
  "required": false,
@@ -0,0 +1,77 @@
1
+ export default {
2
+ title: 'Shared UI/Header/Fullscreen Menu',
3
+ // We set a primary component here for documentation purposes.
4
+ // (Note: The story renders both eds-header and eds-fullscreen-menu.)
5
+ component: 'eds-fullscreen-menu',
6
+ argTypes: {
7
+ menuEnabled: {
8
+ control: 'boolean',
9
+ description: 'Enable menu toggle in the header',
10
+ defaultValue: true
11
+ },
12
+ headerLinks: {
13
+ control: 'object',
14
+ description: 'An array of link objects for the header navigation',
15
+ defaultValue: [
16
+ { label: 'About', url: '#' },
17
+ { label: 'Focus Areas', url: '#' },
18
+ { label: 'News & Events', url: '#' },
19
+ { label: 'Contact', url: '#' }
20
+ ]
21
+ },
22
+ menuLinks: {
23
+ control: 'object',
24
+ description: 'An array of link objects for the fullscreen menu',
25
+ defaultValue: [
26
+ { label: 'About', url: '#' },
27
+ { label: 'Focus Areas', url: '#' },
28
+ { label: 'News & Events', url: '#' },
29
+ { label: 'Contact', url: '#' }
30
+ ]
31
+ }
32
+ }
33
+ };
34
+ const Template = (args) => {
35
+ // Create a container element to host both components
36
+ const container = document.createElement('div');
37
+ container.style.position = 'relative'; // ensure proper stacking context
38
+ // Create an informational paragraph
39
+ const infoMessage = document.createElement('p');
40
+ infoMessage.textContent = 'Change the window width to see the menu burger. Then click on it to see the content';
41
+ infoMessage.style.fontFamily = 'sans-serif';
42
+ infoMessage.style.margin = '1rem 0';
43
+ infoMessage.style.fontWeight = 'bold';
44
+ // Append the info message to the container
45
+ container.appendChild(infoMessage);
46
+ // Render the header using property binding for the links by passing a JSON string.
47
+ // (You can update your components to also accept objects directly if desired.)
48
+ container.innerHTML += `
49
+ <eds-header
50
+ menu-enabled="${args.menuEnabled}"
51
+ links='${JSON.stringify(args.headerLinks)}'
52
+ ></eds-header>
53
+ <eds-fullscreen-menu
54
+ links='${JSON.stringify(args.menuLinks)}'
55
+ ></eds-fullscreen-menu>
56
+ `;
57
+ // Optionally, you might add some inline styling or scripts to simulate the header’s menu toggle behavior.
58
+ // For example, if your header emits an event when the menu toggle is clicked, you can listen for that event
59
+ // and programmatically show/hide the fullscreen menu. That logic would be implemented in your component.
60
+ return container;
61
+ };
62
+ export const Default = Template.bind({});
63
+ Default.args = {
64
+ menuEnabled: true,
65
+ headerLinks: [
66
+ { label: 'About', url: '#' },
67
+ { label: 'Focus Areas', url: '#' },
68
+ { label: 'News & Events', url: '#' },
69
+ { label: 'Contact', url: '#' }
70
+ ],
71
+ menuLinks: [
72
+ { label: 'About', url: '#' },
73
+ { label: 'Focus Areas', url: '#' },
74
+ { label: 'News & Events', url: '#' },
75
+ { label: 'Contact', url: '#' }
76
+ ]
77
+ };
@@ -74,6 +74,10 @@ export class EdsHeader {
74
74
  * @returns {any[]} Array of parsed link objects
75
75
  */
76
76
  get parsedLinks() {
77
+ // If it's already an array, return it immediately.
78
+ if (Array.isArray(this.links)) {
79
+ return this.links;
80
+ }
77
81
  if (typeof this.links === 'object') {
78
82
  return this.links;
79
83
  }
@@ -90,8 +94,8 @@ export class EdsHeader {
90
94
  return [];
91
95
  }
92
96
  render() {
93
- return (h("header", { key: 'bd3056a3d8ca0e8472e154eb3da9ba1aca6d1fa1', class: `flex items-center justify-between relative z-10
94
- ${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, h("div", { key: '55db7995eab812785789ecc8441079ee5e07af76', class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { key: '0464d045dc59d0f78a021a14ffa0254579052529', type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), this.parsedLinks && (h("nav", { key: '7ab1b2c20cf9d934a29480bd29736ced42ff5a20', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, h("ul", { key: '7dca9e2715f3831ee806b0e354c19b65deac1490', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "small", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), h("slot", { key: 'd49985a1074f2daed9cab42fa5af8b0ec8cb6ec9' }), this.userFeature ? (h("div", { class: "px-16" }, h("eds-user", { "keycloak-url": this.keycloakUrl, "keycloak-realm": this.keycloakRealm, "keycloak-client-id": this.keycloakClientId }))) : null, this.menuEnabled ? (h("div", { class: "md:hidden flex overflow-hidden px-16" }, h("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() }))) : null));
97
+ return (h("header", { key: 'b16e5e84ba7565ebf4ea5892a9a1af84fc94769d', class: `flex items-center justify-between relative z-10
98
+ ${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, h("div", { key: '00206a2714dedfe205151002cc10c430e75814fb', class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { key: '25fc6207d61bb4cc06877dd0b15bf56392b50255', type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), this.parsedLinks && (h("nav", { key: '8d1ee2947db26e5acb556da845fe1b811a8d18b2', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, h("ul", { key: '5c70e48f3a617a6abe402659b37741e657440cbc', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "small", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), h("slot", { key: '773b60e90ecfe336fede86ea6e3b0ec2fd10bd72' }), this.userFeature ? (h("div", { class: "px-16" }, h("eds-user", { "keycloak-url": this.keycloakUrl, "keycloak-realm": this.keycloakRealm, "keycloak-client-id": this.keycloakClientId }))) : null, this.menuEnabled ? (h("div", { class: "md:hidden flex overflow-hidden px-16" }, h("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() }))) : null));
95
99
  }
96
100
  static get is() { return "eds-header"; }
97
101
  static get originalStyleUrls() {
@@ -128,8 +132,8 @@ export class EdsHeader {
128
132
  "type": "string",
129
133
  "mutable": false,
130
134
  "complexType": {
131
- "original": "string",
132
- "resolved": "string",
135
+ "original": "string | { label: string; url: string; icon?: string; external?: boolean }[]",
136
+ "resolved": "string | { label: string; url: string; icon?: string; external?: boolean; }[]",
133
137
  "references": {}
134
138
  },
135
139
  "required": false,
@@ -189,7 +193,7 @@ export class EdsHeader {
189
193
  "optional": false,
190
194
  "docs": {
191
195
  "tags": [],
192
- "text": "Flag to enable or disable header menu toggle feature.\nWhen true, displays the toggle in the header."
196
+ "text": "Flag to enable or disable header menu toggle feature.\nWhen true, displays the toggle in the header.\nRequires the <eds-fullscreen-menu> to properly work."
193
197
  },
194
198
  "attribute": "menu-enabled",
195
199
  "reflect": false,
@@ -1,5 +1,5 @@
1
1
  export default {
2
- title: 'Shared Ui/Header',
2
+ title: 'Shared Ui/Header/Main',
3
3
  component: 'eds-header',
4
4
  argTypes: {
5
5
  homeUrl: {
@@ -7,8 +7,8 @@ export default {
7
7
  description: 'URL for the home logo link.'
8
8
  },
9
9
  links: {
10
- control: 'text',
11
- description: 'JSON string representing the primary navigation links, each containing `label`, `url`, and optionally `icon`.'
10
+ control: 'object',
11
+ description: 'An array of link objects for the header navigation'
12
12
  },
13
13
  menuLinks: {
14
14
  control: 'text',
@@ -18,6 +18,10 @@ export default {
18
18
  control: 'text',
19
19
  description: 'URL for the dashboard page.'
20
20
  },
21
+ menuEnabled: {
22
+ control: 'boolean',
23
+ description: 'Shows/hides burger menu on small screens.'
24
+ },
21
25
  inverseHeader: {
22
26
  control: 'boolean',
23
27
  description: 'Determines if the header is rendered in inverse style (dark background).'
@@ -41,12 +45,13 @@ export default {
41
45
  },
42
46
  args: {
43
47
  homeUrl: '/',
44
- links: JSON.stringify([
45
- { label: 'Home', url: '/', icon: '' },
46
- { label: 'About', url: '/about' },
47
- { label: 'Services', url: '/services' },
48
- { label: 'Contact', url: '/contact' }
49
- ]),
48
+ links: [
49
+ { label: 'About', url: '#' },
50
+ { label: 'Focus Areas', url: '#' },
51
+ { label: 'News & Events', url: '#' },
52
+ { label: 'Contact', url: '#' }
53
+ ],
54
+ menuEnabled: false,
50
55
  inverseHeader: false,
51
56
  userFeature: false,
52
57
  keycloakUrl: 'http://localhost:8080',
@@ -58,9 +63,10 @@ export const Default = (args) => `
58
63
  <eds-toast-manager />
59
64
  <eds-header
60
65
  home-url="${args.homeUrl}"
61
- links='${args.links}'
66
+ links='${JSON.stringify(args.links)}'
62
67
  menu-links='${args.menuLinks}'
63
68
  dashboard-url="${args.dashboardUrl}"
69
+ menu-enabled="${args.menuEnabled}"
64
70
  inverse-header="${args.inverseHeader}"
65
71
  user-feature="${args.userFeature}"
66
72
  keycloak-url="${args.keycloakUrl}"
@@ -66,9 +66,10 @@ export class EdsLogin {
66
66
  return this.authenticated ? 'Logout' : 'Login';
67
67
  }
68
68
  render() {
69
- return (h("div", { key: '3e9fdf8fa303948f00da83a1c8c1efc35e2c3c1a' }, h("eds-button", { key: '452b1c6ba9dda0ae5570accedf5e61b8391aeadb', label: this.getBtnLabel(), intent: "primary", loading: false, disabled: false, pill: false, icon: "arrow-diagonal", size: "small", "icon-pos": "right", "aria-label": this.getBtnLabel(), "element-type": "button", triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) })));
69
+ return (h("eds-button", { key: '35f298ecf951d5b1087f988262ae7d312c5e2d38', label: this.getBtnLabel(), intent: "primary", "extra-class": "text-default", "aria-label": this.getBtnLabel(), triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) }));
70
70
  }
71
71
  static get is() { return "eds-login"; }
72
+ static get encapsulation() { return "shadow"; }
72
73
  static get properties() {
73
74
  return {
74
75
  "keycloakUrl": {
@@ -145,7 +146,7 @@ export class EdsLogin {
145
146
  "text": "Event emitted when the authentication status changes.\nIt emits a boolean value indicating the new authentication status."
146
147
  },
147
148
  "complexType": {
148
- "original": "{ authenticated: boolean; user: any }",
149
+ "original": "{\n authenticated: boolean;\n user: any;\n }",
149
150
  "resolved": "{ authenticated: boolean; user: any; }",
150
151
  "references": {}
151
152
  }
@@ -3,7 +3,7 @@ import { h } from "@stencil/core";
3
3
  * Component representing a list of social network links for EBRAINS.
4
4
  * Each link directs users to EBRAINS' profiles on various social networks.
5
5
  */
6
- export class EdsSocialNetwork {
6
+ export class EdsSocialNetworks {
7
7
  constructor() {
8
8
  /**
9
9
  * Array of social network objects, each containing label, URL, and icon.
@@ -53,18 +53,18 @@ export class EdsSocialNetwork {
53
53
  * @returns {JSX.Element} The rendered JSX for the component.
54
54
  */
55
55
  render() {
56
- return (h("div", { key: '6169559327b728fd0f3a51a2b8a6439f80fba8fc' }, h("p", { key: 'df2e008500097af1b85660fe8b3fac122f5018a4', class: "f-ui-02" }, this.title), h("ul", { key: 'df01a2802412c4db4e5442fdfc0b6ef3f15c4109', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (h("li", { key: index }, h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
56
+ return (h("div", { key: 'a6a3e2084eb01def71f6fee67ebe8c5f4f613c89' }, h("p", { key: '43b92e9c33f8abef6070a6a3cd77f7573e2ab454', class: "f-ui-02" }, this.title), h("ul", { key: 'c0e0dfdeff373885f62250c8bf4385268410406c', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (h("li", { key: index }, h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
57
57
  }
58
58
  static get is() { return "eds-social-networks"; }
59
59
  static get encapsulation() { return "shadow"; }
60
60
  static get originalStyleUrls() {
61
61
  return {
62
- "$": ["eds-social-network.css"]
62
+ "$": ["eds-social-networks.css"]
63
63
  };
64
64
  }
65
65
  static get styleUrls() {
66
66
  return {
67
- "$": ["eds-social-network.css"]
67
+ "$": ["eds-social-networks.css"]
68
68
  };
69
69
  }
70
70
  static get properties() {
@@ -0,0 +1,21 @@
1
+ export default {
2
+ title: 'Shared Ui/Social Networks',
3
+ component: 'eds-social-networks',
4
+ argTypes: {
5
+ title: {
6
+ control: 'text',
7
+ defaultValue: 'Follow EBRAINS to keep up-to-date'
8
+ }
9
+ }
10
+ };
11
+ const Template = (args) => `
12
+ <eds-social-networks title="${args.title}"></eds-social-networks>
13
+ `;
14
+ export const Default = Template.bind({});
15
+ Default.args = {
16
+ title: 'Follow EBRAINS to keep up-to-date'
17
+ };
18
+ export const CustomTitle = Template.bind({});
19
+ CustomTitle.args = {
20
+ title: 'Stay Connected with EBRAINS!'
21
+ };
@@ -51,12 +51,33 @@ export class EdsTabs {
51
51
  this.setActiveIndex();
52
52
  this.tabChange.emit({ tabId: this.id, index: 0 });
53
53
  }
54
+ /**
55
+ * Parses the `links` prop into an array of link objects.
56
+ * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
57
+ *
58
+ * @returns {any[]} Array of parsed link objects
59
+ */
60
+ /**
61
+ * Parses the `links` prop into an array of link objects.
62
+ * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
63
+ *
64
+ * @returns {any[]} Array of parsed link objects
65
+ */
54
66
  parseTabs() {
55
- try {
56
- this.parsedTabs = JSON.parse(this.tabs);
67
+ if (Array.isArray(this.tabs)) {
68
+ this.parsedTabs = this.tabs;
57
69
  }
58
- catch (error) {
59
- //console.error('Invalid JSON format for tabs:', error);
70
+ else if (typeof this.tabs === 'string') {
71
+ try {
72
+ this.parsedTabs = JSON.parse(this.tabs);
73
+ }
74
+ catch (e) {
75
+ //console.error('Error parsing tabs prop:', e);
76
+ this.parsedTabs = [];
77
+ }
78
+ }
79
+ else {
80
+ // If the type is not an array or string, assume an empty array.
60
81
  this.parsedTabs = [];
61
82
  }
62
83
  }
@@ -106,7 +127,7 @@ export class EdsTabs {
106
127
  });
107
128
  }
108
129
  render() {
109
- return (h("div", { key: '25078703609dbdaa2025013d0e266b169c880c50', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("div", { key: '8aa1b4ab1f15692c912db3ee39486a59d634c6a5', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: '33728823ca0f039e1037a691da90b295cbe3f3ac', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
130
+ return (h("div", { key: '540bb667084b36ae2151ec39ef6b54a9ac6a4c4a', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("div", { key: 'f0266d39c943b82725ded757cce0b35fb85fa874', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: 'fcedf94e6f6c14635291d9c8e6d672efc8055433', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
110
131
  //const TabComponent = tab.active ? 'span' : 'a';
111
132
  const tabProps = this.getTabOptions(tab.active, index);
112
133
  return (h("eds-tab", Object.assign({}, tabProps, { label: tab.label || tab.ariaLabel, url: tab.url, active: index === this.activeIndex, onClick: () => this.handleTabClick(index, tab.label) })));
@@ -164,8 +185,8 @@ export class EdsTabs {
164
185
  "type": "string",
165
186
  "mutable": false,
166
187
  "complexType": {
167
- "original": "string",
168
- "resolved": "string",
188
+ "original": "string | { label: string; url: string; active: boolean; ariaLabel: string }[]",
189
+ "resolved": "string | { label: string; url: string; active: boolean; ariaLabel: string; }[]",
169
190
  "references": {}
170
191
  },
171
192
  "required": false,
@@ -197,7 +218,7 @@ export class EdsTabs {
197
218
  "text": ""
198
219
  },
199
220
  "complexType": {
200
- "original": "{ tabId: string; index: number; name?: string }",
221
+ "original": "{\n tabId: string;\n index: number;\n name?: string;\n }",
201
222
  "resolved": "{ tabId: string; index: number; name?: string; }",
202
223
  "references": {}
203
224
  }
@@ -17,11 +17,29 @@ export default {
17
17
  }
18
18
  }
19
19
  };
20
- const Template = (args) => `
21
- <eds-tabs
22
- tabs='${args.tabs}'
23
- ></eds-tabs>
20
+ const Template = (args) => {
21
+ // Create a container element
22
+ const container = document.createElement('div');
23
+ // Insert the eds-tabs element and an output element for dynamic updates.
24
+ container.innerHTML = `
25
+ <eds-tabs tabs='${args.tabs}'></eds-tabs>
26
+ <p id="active-tab-output" style="margin-top: 16px; font-family: sans-serif; font-weight: bold;"></p>
24
27
  `;
28
+ // Query the eds-tabs element and the output element after the content is rendered.
29
+ // We use setTimeout to ensure that the custom element has upgraded.
30
+ setTimeout(() => {
31
+ const edsTabs = container.querySelector('eds-tabs');
32
+ const output = container.querySelector('#active-tab-output');
33
+ if (edsTabs) {
34
+ // Listen for the "tabChange" event
35
+ edsTabs.addEventListener('tabChange', (event) => {
36
+ // Update the output text dynamically
37
+ output.textContent = `Active Tab Index: ${event.detail.index}, Tab Name: ${event.detail.name}`;
38
+ });
39
+ }
40
+ }, 0);
41
+ return container;
42
+ };
25
43
  export const Default = Template.bind({});
26
44
  Default.args = {
27
45
  tabs: JSON.stringify([
@@ -114,11 +114,11 @@ export class EdsTabsContent {
114
114
  });
115
115
  }
116
116
  render() {
117
- return (h("div", { key: 'b1bfb55fbdee21a10fcc600d4c3ce2842684c519', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("div", { key: '1d1aeb094b6c350355abec1bf74928561a1c0f2d', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: '5d5b04ddf5ddb60c2a9b49d19f4efe026cc2557d', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
117
+ return (h("div", { key: '7bc954d9251bd15b5e3a49d5c74b83805f802b07', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("div", { key: '1bfda380604f1eae1cc5be147a5e3e6b537e0396', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: 'b2ed26b52fd629ec99b01c7dc8e612eae4f3886d', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
118
118
  //const TabComponent = tab.active ? 'span' : 'a';
119
119
  const tabProps = this.getTabOptions(tab.active, index);
120
120
  return (h("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index, tab.label) })));
121
- })), h("slot", { key: '58e9281516d0a4485ba0779f9b79c0fa5e989166' }))));
121
+ })), h("slot", { key: '5072b877786a23358d540d6d242d5fbdb3c63d7f' }))));
122
122
  }
123
123
  static get is() { return "eds-tabs-content"; }
124
124
  static get properties() {