@ebrains/components 0.2.0-alpha.0 → 0.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
  2. package/dist/cjs/components.cjs.js +1 -1
  3. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  4. package/dist/cjs/eds-alert.cjs.entry.js +96 -0
  5. package/dist/cjs/eds-avatar_17.cjs.entry.js +1454 -0
  6. package/dist/cjs/eds-card-desc_3.cjs.entry.js +117 -0
  7. package/dist/cjs/eds-card-generic.cjs.entry.js +105 -0
  8. package/dist/cjs/eds-card-section.cjs.entry.js +17 -6
  9. package/dist/cjs/eds-components-section.cjs.entry.js +44 -24
  10. package/dist/cjs/eds-docs-palettes.cjs.entry.js +1 -1
  11. package/dist/cjs/eds-docs-tokens.cjs.entry.js +1 -1
  12. package/dist/cjs/eds-form.cjs.entry.js +322 -0
  13. package/dist/cjs/eds-input_7.cjs.entry.js +316 -0
  14. package/dist/cjs/eds-login.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-logo-variations.cjs.entry.js +27 -0
  16. package/dist/cjs/{eds-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +157 -0
  17. package/dist/cjs/eds-progress-bar.cjs.entry.js +29 -0
  18. package/dist/cjs/eds-svg-repository.cjs.entry.js +7 -1
  19. package/dist/cjs/eds-tabs-content.cjs.entry.js +2 -2
  20. package/dist/cjs/eds-tabs.cjs.entry.js +26 -5
  21. package/dist/cjs/eds-timeline.cjs.entry.js +76 -0
  22. package/dist/cjs/eds-trl.cjs.entry.js +52 -0
  23. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  24. package/dist/cjs/index-f08e4f5c.js +38 -30
  25. package/dist/cjs/loader.cjs.js +1 -1
  26. package/dist/cjs/logo-space.cjs.entry.js +1 -1
  27. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
  28. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  29. package/dist/cjs/token-list_3.cjs.entry.js +3 -3
  30. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  31. package/dist/cjs/token-spacing.cjs.entry.js +1 -1
  32. package/dist/cjs/token-typography.cjs.entry.js +1 -1
  33. package/dist/collection/collection-manifest.json +1 -0
  34. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +13 -12
  35. package/dist/collection/components/eds-button/eds-button.js +3 -3
  36. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +140 -15
  37. package/dist/collection/components/eds-table/eds-table.css +4 -0
  38. package/dist/collection/components/eds-table/eds-table.js +69 -11
  39. package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
  40. package/dist/collection/components/eds-timeline/eds-timeline.js +26 -16
  41. package/dist/collection/components/eds-trl/eds-trl.js +30 -22
  42. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  43. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  44. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  45. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  46. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  47. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  48. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  49. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -5
  50. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  51. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  52. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  53. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  54. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  55. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  56. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +3 -6
  57. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
  58. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
  59. package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +44 -0
  60. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +7 -1
  61. package/dist/collection/eds-docs-ui/functional/angular.js +1 -1
  62. package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
  63. package/dist/collection/eds-docs-ui/functional/overview.js +1 -1
  64. package/dist/collection/eds-docs-ui/functional/react.js +1 -1
  65. package/dist/collection/eds-docs-ui/functional/vue.js +1 -1
  66. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  67. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +21 -1
  68. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +2 -54
  69. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +4 -13
  70. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +4 -0
  71. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  72. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +19 -8
  73. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +40 -7
  74. package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
  75. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +4 -3
  76. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
  77. package/dist/collection/shared-ui/eds-header/eds-header.js +9 -5
  78. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +16 -10
  79. package/dist/collection/shared-ui/eds-login/eds-login.js +3 -2
  80. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +4 -4
  81. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
  82. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +29 -8
  83. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +22 -4
  84. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
  85. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +48 -34
  86. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  87. package/dist/collection/shared-ui/eds-user/eds-user.js +12 -6
  88. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -11
  89. package/dist/components/components.css +17 -10
  90. package/dist/components/components.esm.js +1 -1
  91. package/dist/components/correct-use-of-colors.js +1 -1
  92. package/dist/components/eds-breadcrumb.js +13 -12
  93. package/dist/components/eds-button2.js +1 -1
  94. package/dist/components/eds-card-section.js +17 -6
  95. package/dist/components/eds-components-section.js +44 -24
  96. package/dist/components/eds-docs-palettes.js +1 -1
  97. package/dist/components/eds-docs-tokens.js +1 -1
  98. package/dist/components/eds-footer2.js +1 -1
  99. package/dist/components/eds-header.js +6 -2
  100. package/dist/components/eds-input-select2.js +70 -2
  101. package/dist/components/eds-login.js +3 -2
  102. package/dist/components/eds-logo-variations.d.ts +11 -0
  103. package/dist/components/eds-logo-variations.js +60 -0
  104. package/dist/components/eds-social-networks.js +2 -2
  105. package/dist/components/eds-social-networks2.js +6 -6
  106. package/dist/components/eds-svg-repository.js +7 -1
  107. package/dist/components/eds-table2.js +36 -14
  108. package/dist/components/eds-tabs-content.js +2 -2
  109. package/dist/components/eds-tabs.js +26 -5
  110. package/dist/components/eds-timeline.js +23 -10
  111. package/dist/components/eds-toast-manager.js +1 -1
  112. package/dist/components/eds-trl.js +95 -15
  113. package/dist/components/eds-user-modal2.js +1 -5
  114. package/dist/components/eds-user2.js +12 -6
  115. package/dist/components/incorrect-use-of-colors.js +20 -2
  116. package/dist/components/logo-space.js +1 -1
  117. package/dist/components/logo-variations-horizontal.js +2 -50
  118. package/dist/components/logo-variations-horizontal2.js +37 -0
  119. package/dist/components/logo-variations-vertical.js +2 -50
  120. package/dist/components/logo-variations-vertical2.js +42 -0
  121. package/dist/components/logo-wrong-usage.js +2 -2
  122. package/dist/components/p-005de86f.entry.js +1 -0
  123. package/dist/components/{p-5eb32f03.entry.js → p-0910d733.entry.js} +1 -1
  124. package/dist/components/{p-c9c3cc49.entry.js → p-22e6d7d5.entry.js} +1 -1
  125. package/dist/components/p-2851ff44.entry.js +1 -0
  126. package/dist/components/p-29648b47.entry.js +1 -0
  127. package/dist/components/{p-9722811d.entry.js → p-2e8459ef.entry.js} +1 -1
  128. package/dist/components/p-3617841d.entry.js +1 -0
  129. package/dist/components/p-3ff76976.entry.js +1 -0
  130. package/dist/components/{p-bb60412b.entry.js → p-435a14c1.entry.js} +1 -1
  131. package/dist/components/p-52ac3456.entry.js +1 -0
  132. package/dist/components/p-57c964c5.entry.js +1 -0
  133. package/dist/components/p-5a43503a.entry.js +1 -0
  134. package/dist/components/p-5afb626c.entry.js +1 -0
  135. package/dist/components/p-5d7af761.entry.js +1 -0
  136. package/dist/components/p-6378fb3e.entry.js +1 -0
  137. package/dist/components/p-7215789a.entry.js +1 -0
  138. package/dist/components/p-762c8c83.entry.js +1 -0
  139. package/dist/components/p-7802e966.entry.js +1 -0
  140. package/dist/components/p-84957b6d.entry.js +1 -0
  141. package/dist/components/{p-1bcfbaf1.entry.js → p-87830085.entry.js} +1 -1
  142. package/dist/components/p-ac0112d5.entry.js +1 -0
  143. package/dist/components/p-acb16e1c.entry.js +1 -0
  144. package/dist/components/p-ae5dbd41.entry.js +1 -0
  145. package/dist/components/p-be6c80da.entry.js +1 -0
  146. package/dist/components/p-d1f6a722.entry.js +1 -0
  147. package/dist/components/p-d53b7a75.entry.js +1 -0
  148. package/dist/components/{p-b717f95a.entry.js → p-d571d530.entry.js} +1 -1
  149. package/dist/components/p-d7a92efb.entry.js +1 -0
  150. package/dist/components/p-fd27e56c.entry.js +1 -0
  151. package/dist/components/primary.js +1 -1
  152. package/dist/components/primary2.js +1 -1
  153. package/dist/components/secondary.js +1 -1
  154. package/dist/components/secondary2.js +7 -7
  155. package/dist/components/support.js +1 -1
  156. package/dist/components/support2.js +3 -3
  157. package/dist/components/token-list2.js +1 -1
  158. package/dist/components/token-radii2.js +1 -1
  159. package/dist/components/token-ratios.js +1 -1
  160. package/dist/components/token-shadows2.js +1 -1
  161. package/dist/components/token-spacing.js +1 -1
  162. package/dist/components/token-typography.js +1 -1
  163. package/dist/esm/color-primary-palette_6.entry.js +14 -14
  164. package/dist/esm/components.js +1 -1
  165. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  166. package/dist/esm/eds-alert.entry.js +92 -0
  167. package/dist/esm/eds-avatar_17.entry.js +1434 -0
  168. package/dist/esm/eds-card-desc_3.entry.js +111 -0
  169. package/dist/esm/eds-card-generic.entry.js +101 -0
  170. package/dist/esm/eds-card-section.entry.js +17 -6
  171. package/dist/esm/eds-components-section.entry.js +44 -24
  172. package/dist/esm/eds-docs-palettes.entry.js +1 -1
  173. package/dist/esm/eds-docs-tokens.entry.js +1 -1
  174. package/dist/esm/eds-form.entry.js +318 -0
  175. package/dist/esm/eds-input_7.entry.js +306 -0
  176. package/dist/esm/eds-login.entry.js +1 -1
  177. package/dist/esm/eds-logo-variations.entry.js +23 -0
  178. package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +157 -1
  179. package/dist/esm/eds-progress-bar.entry.js +25 -0
  180. package/dist/esm/eds-svg-repository.entry.js +8 -2
  181. package/dist/esm/eds-tabs-content.entry.js +2 -2
  182. package/dist/esm/eds-tabs.entry.js +26 -5
  183. package/dist/esm/eds-timeline.entry.js +72 -0
  184. package/dist/esm/eds-trl.entry.js +48 -0
  185. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  186. package/dist/esm/index-e96badea.js +38 -30
  187. package/dist/esm/loader.js +1 -1
  188. package/dist/esm/logo-space.entry.js +1 -1
  189. package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
  190. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  191. package/dist/esm/token-list_3.entry.js +3 -3
  192. package/dist/esm/token-ratios.entry.js +1 -1
  193. package/dist/esm/token-spacing.entry.js +1 -1
  194. package/dist/esm/token-typography.entry.js +1 -1
  195. package/dist/hydrate/index.js +378 -178
  196. package/dist/hydrate/index.mjs +378 -178
  197. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +1 -5
  198. package/dist/types/components/eds-button/eds-button.d.ts +2 -2
  199. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +106 -3
  200. package/dist/types/components/eds-table/eds-table.d.ts +9 -1
  201. package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -67
  202. package/dist/types/components/eds-timeline/eds-timeline.d.ts +9 -12
  203. package/dist/types/components/eds-trl/eds-trl.d.ts +4 -1
  204. package/dist/types/components.d.ts +217 -38
  205. package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +0 -4
  206. package/dist/types/eds-docs-ui/eds-logo-variations/eds-logo-variations.d.ts +9 -0
  207. package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +2 -0
  208. package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +1 -7
  209. package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +1 -1
  210. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +6 -1
  211. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +20 -1
  212. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +8 -2
  213. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.d.ts +29 -0
  214. package/dist/types/shared-ui/eds-header/eds-header.d.ts +7 -1
  215. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +9 -1
  216. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
  217. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +13 -0
  218. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +18 -1
  219. package/dist/types/shared-ui/eds-user/eds-user.d.ts +1 -2
  220. package/package.json +3 -3
  221. package/dist/cjs/eds-alert_28.cjs.entry.js +0 -2059
  222. package/dist/cjs/eds-block-break.cjs.entry.js +0 -21
  223. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -153
  224. package/dist/cjs/eds-footer.cjs.entry.js +0 -50
  225. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -100
  226. package/dist/cjs/eds-social-networks.cjs.entry.js +0 -66
  227. package/dist/cjs/eds-table.cjs.entry.js +0 -143
  228. package/dist/cjs/logo-variations-horizontal.cjs.entry.js +0 -31
  229. package/dist/cjs/logo-variations-vertical.cjs.entry.js +0 -31
  230. package/dist/collection/components/eds-trl/eds-trl.css +0 -0
  231. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
  232. package/dist/components/p-04e47e04.entry.js +0 -1
  233. package/dist/components/p-0a3b2576.entry.js +0 -1
  234. package/dist/components/p-0c99ef81.entry.js +0 -1
  235. package/dist/components/p-272d249f.entry.js +0 -1
  236. package/dist/components/p-2d8508cd.entry.js +0 -1
  237. package/dist/components/p-3a2e8ef3.entry.js +0 -1
  238. package/dist/components/p-3afafa59.entry.js +0 -1
  239. package/dist/components/p-3b40559e.entry.js +0 -1
  240. package/dist/components/p-49958f77.entry.js +0 -1
  241. package/dist/components/p-551c0b58.entry.js +0 -1
  242. package/dist/components/p-559b6ec9.entry.js +0 -1
  243. package/dist/components/p-5ae9722b.entry.js +0 -1
  244. package/dist/components/p-9000b245.entry.js +0 -1
  245. package/dist/components/p-b14ef448.entry.js +0 -1
  246. package/dist/components/p-b203eb1b.entry.js +0 -1
  247. package/dist/components/p-b33941a0.entry.js +0 -1
  248. package/dist/components/p-bca40434.entry.js +0 -1
  249. package/dist/components/p-df93db96.entry.js +0 -1
  250. package/dist/components/p-ebed87b8.entry.js +0 -1
  251. package/dist/components/p-ff5de62c.entry.js +0 -1
  252. package/dist/components/p-ffec8755.entry.js +0 -1
  253. package/dist/esm/eds-alert_28.entry.js +0 -2028
  254. package/dist/esm/eds-block-break.entry.js +0 -17
  255. package/dist/esm/eds-breadcrumb.entry.js +0 -149
  256. package/dist/esm/eds-footer.entry.js +0 -46
  257. package/dist/esm/eds-fullscreen-menu.entry.js +0 -96
  258. package/dist/esm/eds-social-networks.entry.js +0 -62
  259. package/dist/esm/eds-table.entry.js +0 -139
  260. package/dist/esm/logo-variations-horizontal.entry.js +0 -27
  261. package/dist/esm/logo-variations-vertical.entry.js +0 -27
  262. /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
@@ -1 +0,0 @@
1
- import{r as e,c as s,h as t}from"./p-7a8b9de5.js";const i=class{constructor(t){e(this,t),this.menuClose=s(this,"menuClose",7),this.links=void 0,this.menuLinks=void 0,this.homeUrl="/",this.inverseHeader=!1,this.isMenuOpen=!1}handleToggleMenu(e){this.isMenuOpen=e.detail}openMenu(){this.isMenuOpen=!0}closeMenu(){this.isMenuOpen=!1,this.menuClose.emit()}componentDidLoad(){window.addEventListener("resize",this.handleResize.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.handleResize.bind(this))}handleResize(){window.innerWidth>=1024&&(this.isMenuOpen=!1)}get parsedLinks(){if("object"==typeof this.links)return this.links;if("string"==typeof this.links)try{return JSON.parse(this.links)}catch(e){return console.error("Error parsing links prop:",e),[]}return[]}get parsedMenuLinks(){if("object"==typeof this.menuLinks)return this.menuLinks;if("string"==typeof this.menuLinks)try{return JSON.parse(this.menuLinks)}catch(e){return console.error("Error parsing menuLinks prop:",e),[]}return[]}render(){return this.isMenuOpen?t("div",{class:"eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll"},t("div",{class:"flex min-h-full flex-col"},t("div",{class:"bg-default w-full sticky top-0 "+(this.inverseHeader?"bg-strongest":"bg-default")},t("div",{class:"mx-auto flex items-center justify-between"},t("div",{class:"mr-auto w-[200px] h-[85px]"},t("eds-logo",{type:this.inverseHeader?"color-white":"color",href:this.homeUrl})),t("div",{class:"px-16"},t("eds-button",{"aria-label":"Close menu",intent:"ghostInverse",icon:"close",onClick:()=>this.closeMenu()})))),t("div",{class:"py-16 px-16"},t("nav",{class:"mt-28 flex flex-col gap-y-8"},this.parsedLinks.map(((e,s)=>t("eds-link",{label:e.label,key:s,url:e.url,intent:"tertiary",size:"large",class:"effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit",onClick:()=>this.closeMenu(),icon:"arrow-right"})))),t("eds-block-break",null),t("nav",{class:"mt-28 flex flex-col gap-y-8"},this.parsedMenuLinks.map(((e,s)=>t("eds-link",{label:e.label,key:s,url:e.url,intent:"tertiary",size:"large",class:"effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit",onClick:()=>this.closeMenu(),icon:"chevron-right"}))))),t("div",{class:"mt-auto"},t("eds-footer",{social:!0,"extra-class":"bg-darker"})))):null}};i.style="";export{i as eds_fullscreen_menu}
@@ -1 +0,0 @@
1
- import{h as e,r as n}from"./p-7a8b9de5.js";const t=()=>e("div",{class:"static-content container"},e("eds-alert",{message:"EBRAINS Design System makes it easy to implement and use its components across any framework or no framework at all. We\n accomplish this by using standardized web platform APIs and Web Components.",intent:"default"}),e("h2",null,"Load the module"),e("p",null,"Integrating EDSs components to a project without a JavaScript framework is straight forward. If you’re working on a simple HTML page, you can start using the components immediately by adding the tags below to the"," ",e("code",null,"head"),"."),e("eds-code-block",{code:'<script type="module" href="https://unpkg.com/@ebrains/components@0.0.1/loader"/><\/script>',language:"javascript","copy-label":"Copy Code"}),e("h2",null,"Load the styles"),e("p",null,"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the"," ",e("code",null,"head")),e("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/output.css"/>',language:"css","copy-label":"Copy Code"}),e("h2",null,"Load the fonts"),e("p",null,"To load the correct webfonts as well, add either one of these tags to the ",e("code",null,"head")),e("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>',language:"css","copy-label":"Copy Code"}),e("h2",null,"Component Usage"),e("p",null,"Once included, components can be used in your markup like any other regular HTML elements:"),e("eds-code-block",{code:'<eds-button label="my bytton" intent="primary"></eds-button>',language:"html","copy-label":"Copy Code"})),a=()=>e("div",null,e("p",null,"To start using the EBRAINS Design System, include the following scripts and styles in your project. You can also install it via npm for use with modern build tools."),e("eds-code-block",{code:"npm install @ebrains/components",language:"html","copy-label":"Copy Code"}),e("p",null,"TBD")),l=()=>e("div",null,e("h1",null,"Usage with basic HTML "),e("p",null,"TBD")),o=()=>e("div",null,e("h2",null,"React Wrappers"),e("p",null,"Learn how to use our components in a React Application."),"Simple install the package below and check out the examples",e("eds-code-block",{code:"npm install @ebrains/react",language:"javascript","copy-label":"Copy Code"}),e("eds-section-core",{"section-title":"Example React App","heading-level":"h3"},e("eds-code-block",{code:'\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n // Add any other properties your user object might have\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n \n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n \n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n const handleTabChange = (\n event: CustomEvent<{ index: number; name: string }>,\n ) => {\n console.log(event.detail);\n setActiveTabIndex(event.detail.index);\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.addEventListener("tabChange", handleTabChange as EventListener);\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.removeEventListener(\n "tabChange",\n handleTabChange as EventListener,\n );\n };\n }, []); // Empty dependency array ensures this runs only once after mounting\n\n return (\n <div id="main">\n <EdsHeader\n home-url="/"\n user-feature={false}\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n links="[\n { "label": "About", "url": "/about" },\n { "label": "Focus Areas", "url": "/focus-areas" },\n { "label": "News & Events", "url": "/news-and-events" },\n { "label": "Contact", "url": "/contact" }\n ]"\n ></EdsHeader>\n\n <div> \n User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n </div>\n </div>\n );\n}\n\nexport default App;\n',language:"javascript","copy-label":"Copy Code"}))),s=()=>e("div",null,e("h2",null,"Vue Wrappers"),e("p",null,"Learn how to use our components in a Vue Application."),e("eds-code-block",{code:"npm install @ebrains/vue",language:"javascript","copy-label":"Copy Code"}),e("p",null,"Define the custom elements"),e("eds-code-block",{code:"import { defineCustomElements } from '@ebrains/components/loader';\ndefineCustomElements();",language:"javascript","copy-label":"Copy Code"}),e("eds-section-core",{"section-title":"Example Vue App","heading-level":"h3"},e("eds-code-block",{code:'\n<template>\n <h1 className="f-heading-02">Vue App</h1>\n\n <EdsHeader \n home-url="/" \n user-feature=false \n keycloak-url="http://localhost:8080" \n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app" \n links="[\n { "label": "About", "url": "/about" },\n { "label": "Focus Areas", "url": "/focus-areas" },\n { "label": "News & Events", "url": "/news-and-events" },\n { "label": "Contact", "url": "/contact" }\n ]">\n </EdsHeader>\n\n</template>\n\n<script>\n\nimport { EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: {\n EdsHeader,\n }\n};\n<\/script>\n',language:"javascript","copy-label":"Copy Code"}))),r=()=>e("div",null,e("h2",null,"Angular Wrappers"),e("p",null,"Learn how to use our components in a Angular Application."),e("eds-code-block",{code:"npm install @ebrains/angular",language:"javascript","copy-label":"Copy Code"}),e("p",null,"Define the custom elements"),e("eds-code-block",{code:"import { defineCustomElements } from '@ebrains/components/loader';\ndefineCustomElements();",language:"javascript","copy-label":"Copy Code"}),e("p",null,"Angular Custom Elements Schema"),e("eds-code-block",{code:'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";',language:"javascript","copy-label":"Copy Code"}),e("eds-section-core",{"section-title":"Example Angular App","heading-level":"h3"},e("eds-code-block",{code:'\n<div class="container">\n <h1 class="f-heading-01">{{ title }}</h1>\n <eds-breadcrumb\n intent="tertiary"\n items="[\n { "label": "Home", "url": "#" },\n { "label": "Products", "url": "#" },\n ]">\n </eds-breadcrumb>\n <eds-footer></eds-footer>\n</div>',language:"javascript","copy-label":"Copy Code"}))),c=class{constructor(e){n(this,e),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e(t,null);case 1:return e(a,null);case 2:return e(l,null);case 3:return e(o,null);case 4:return e(s,null);case 5:return e(r,null);default:return e("p",null,"Content not available.")}}render(){return e("div",{key:"faa14dc7bb5d966ea1328f60d8ca88b3c406ad51",class:"container"},this.renderContent())}};export{c as eds_components_section}
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-7a8b9de5.js";const i=class{constructor(t){e(this,t),this.socialNetworks=[{label:"Twitter",url:"https://twitter.com/ebrains_eu",icon:"twitter"},{label:"Linkedin",url:"https://www.linkedin.com/company/ebrains-eu/about/",icon:"linkedin"},{label:"Facebook",url:"https://www.facebook.com/people/Ebrains_eu/100046659909324/",icon:"facebook"},{label:"Youtube",url:"https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ",icon:"youtube"},{label:"Mastodon",url:"https://mastodon.social/@ebrains",icon:"mastodon"},{label:"Bluesky",url:"https://bsky.app/profile/ebrains.bsky.social",icon:"bluesky"}],this.title="Follow EBRAINS to keep up-to-date"}render(){return t("div",{key:"6169559327b728fd0f3a51a2b8a6439f80fba8fc"},t("p",{key:"df2e008500097af1b85660fe8b3fac122f5018a4",class:"f-ui-02"},this.title),t("ul",{key:"df01a2802412c4db4e5442fdfc0b6ef3f15c4109",class:"mt-12 flex gap-4"},this.socialNetworks.map(((e,i)=>t("li",{key:i},t("eds-link",{"extra-class":"effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm",external:!0,"aria-label":e.label,url:e.url,icon:e.icon,intent:"strong"}))))))}};i.style="blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";export{i as eds_social_networks}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-7a8b9de5.js";const c=class{constructor(a){e(this,a)}render(){return a("div",{key:"ae388def4474fbd6e9766c2e04eb382ac9022bb8",class:"w-full"},a("ul",{key:"a2a51b9494dbd1bbb8b8d454117bc254e9602938",class:"gap-y-8 md:gap-y-12 lg:gap-y-16"},a("li",{key:"9e48e3551369f35ae6ec72d493ae888ebee3cceb",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},a("div",{key:"65b5b1192cdfef841bd4beed6eedf0068393ba8d",class:"container p-8 item-center border-2 border-soft"},a("div",{key:"770870c171999d004aba77b6058fe32525b1703e",class:"spacing-sample m-32 bg-darker"},a("span",{key:"fdba92dbc2c78e55481277c2858de4ea220b2397",class:"text-white"},"Margin: 2rem / m-32")))),a("li",{key:"9420b6110f30e9f3cff94d409362627d32782023",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},a("div",{key:"2e438e9ee4291d1326acb2630ccb55f981acfeaa",class:"container p-8 item-center border-2 border-soft"},a("div",{key:"b199e19274f23490485347d2ef102741f583b612",class:"spacing-sample ml-64 bg-darker"},a("span",{key:"2cde99dd7d0bb469b7f69b852f20abc4f61d6a01",class:"text-white"},"Margin Left: 4rem / ml-64")))),a("li",{key:"b8cdd7b7245cd3e7c8fe59297b76f2e9e20a1c2e",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},a("div",{key:"0f9cf988220669a2ebe2e93d33d904ee045af74a",class:"container p-8 item-center border-2 border-soft"},a("div",{key:"88f5a191b1f9878ae6012efd5ec7365cf2f28da4",class:"spacing-sample mt-32 bg-darker"},a("span",{key:"af8f876d8cdc7620af861620173ea32fc706378f",class:"text-white"},"Margin Top: 2rem / mt-32")))),a("li",{key:"e65780c7ecfc9685791c40970350ba511e888283",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},a("div",{key:"c1a8e22fde087ac9f5e69602e23c8b7f429c0e3e",class:"container p-8 item-center border-2 border-soft"},a("div",{key:"19aaa0273c1c818f1f6d57a0fd41d9be14aa4d1b",class:"spacing-sample p-32 bg-darker"},a("span",{key:"18cbdee711f04e90e663d93bd8b752ec0d0b33ee",class:"text-white"},"Padding: 2rem / p-32")))),a("li",{key:"f2831db3170703786946a12a5b0c0e188c4f944a",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},a("div",{key:"68ac92294defd683a3c49e38ce0f4366a8b91208",class:"container p-8 item-center border-2 border-soft"},a("div",{key:"6bfd849d0f841d6fefb39d91a4be49ae1db8d43f",class:"spacing-sample pt-32 bg-darker"},a("span",{key:"7f3b5868baf86913d172b07347b15ca1e8901d21",class:"text-white"},"Padding Top: 2rem / pt-32")))),a("li",{key:"f3608f5562949c9fb82d987719753bc0b59ba999",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},a("div",{key:"fe9d90cf206906742000da310a53873ecefaa77c",class:"container p-8 item-center border-2 border-soft"},a("div",{key:"d6590820496db0ba1009deea6a4b56c9195814e6",class:"spacing-sample pl-32 bg-darker"},a("span",{key:"c65179e127861a66ca1c0d6ff429b07bc0d88945",class:"text-white"},"Padding Left: 2rem / pl-32"))))))}};export{c as token_spacing}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-7a8b9de5.js";import{h as c}from"./p-2692f93d.js";const d=class{constructor(a){e(this,a)}render(){return a("ul",{key:"9aa8a3f496e779f561e54a6ee656528b2e55a500",class:"grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16"},a("span",{key:"735e61f1189decb4fef74b5f9f481f94f51c304e",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},a("div",{key:"8d8859bef157051ca9493bac1fd35e0db80414c0",class:"example"},a("div",{key:"6ee9ce679339e1189439239889a60d8cba39c4b1",class:"bg-dark "},a("div",{key:"492054f20250a9572ac3c641d05bbb955c050be4",class:"no-other-bg-color logo",innerHTML:c})),a("p",{key:"c9f49c3c44fb7446e6e4e02c1f79ac15827633ba",class:"f-ui-02"},"Do not use with backgrounds that make legibility difficult"))),a("span",{key:"d5cbda2472d3396f08fdb600676852708991ce0f",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},a("div",{key:"dacbf3bcf4dd4914b4332a663a81732a196457f4",class:"example"},a("div",{key:"9f9bb9b86a840658cf7311a2b035dbadd6a3e0af",class:"no-other-color p-16"},a("div",{key:"9e96d60f66801638898c12b190640ae0dcc18d24",class:"logo non-brand-color",innerHTML:c})),a("p",{key:"5e0470cb9f81e4bba14104746715704fed2fddeb",class:"f-ui-02"},"Do not apply other colors"))),a("span",{key:"5e9e1943ab5d4cda7d6b4cb51b76f9da4370a50b",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},a("div",{key:"9821754465969edcf1ea98aa7a353ff04140612f",class:"example"},a("div",{key:"513bb5879746d5979cf7f5360ea60c97196e5379",class:"bg-light p-16"},a("div",{key:"25f615bf82c51f8601960cb705fa5983667a4943",class:"logo distorted",innerHTML:c})),a("p",{key:"636efd5a54620ca8248b5e1adbf453a7d5292d0f",class:"f-ui-02"},"Do not deform the logo"))),a("span",{key:"a006b91c704b1df8f7adf1cad1d0033bd11378d8",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},a("div",{key:"6a494fdace1e6a2ff48e02a6a8a79f31ca101e02",class:"example"},a("div",{key:"09ea335ac52cb395cc3173263b4a956aba59cc4e",class:"bg-white p-16"},a("div",{key:"9acf37c882acb0a04fddc5754b8e91e6789f36ee",class:"logo effects",innerHTML:c})),a("p",{key:"f648aefe81578e9768c24de085e53e2484c1bb7b",class:"f-ui-02"},"Do not apply effects"))),a("span",{key:"70f90abc0d6a3292101e29bdfc311ebb0192a585",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},a("div",{key:"9eb3aa4276d7b0a9f7c5e76ffa9fefe7f3def0a3",class:"example"},a("div",{key:"5a38e80d567d2c2faf08fbcb66a62c24973c3fea",class:"bg-white p-16"},a("div",{key:"7edbadc8850a9babefea43be9c5f9697021712d5",class:"logo rotated",innerHTML:c})),a("p",{key:"96d30acd52838a03f33fd6c8dcf89a72417ce925",class:"f-ui-02"},"Do not rotate the logo"))),a("span",{key:"41d476bd66b39e796f03c669945024720771216f",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},a("div",{key:"3fd7f690559195125d633097b578b1cc2ff4ccc1",class:"example"},a("div",{key:"684387318cfffdfbc5592486095a28a923e5af07",class:"bg-light p-16"},a("div",{key:"7593acd61c1ea52ce613a1f3395c8769a09f9aed",class:"logo outlined",innerHTML:c})),a("p",{key:"51d6d974c005a0b5059cd002dff682dc50cfb19a",class:"f-ui-02"},"Do not apply outlines"))),a("span",{key:"605db4b33b7aab4d0e81e30f658f639689a433b6",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"}),a("span",{key:"1dc1e6be701572fb7d31b435f8b25dbaf0bf30c8",class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},a("div",{key:"30b239799a7d8acf93eba73d3d5dba3cc7117fb5",class:"example"},a("div",{key:"16a146193f1ec233f37a9472dfe5fa92de10864d",class:"bg-accent p-16"},a("div",{key:"cc5924ad51847399ec52c2ece993bdd22305892f",class:"text-inverse",innerHTML:c})),a("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"))))}};d.style=".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}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.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-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.container{display:flex;flex-wrap:wrap;gap:16px}.example{width:200px;text-align:center;font-size:14px}.logo{width:100%;height:auto}.bg-dark{background-color:#333}.bg-light{background-color:#f3f3f3}.bg-white{background-color:white}.non-brand-color{fill:purple;}.distorted{transform:scaleX(1.5)}.effects{filter:drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5))}.rotated{transform:rotate(15deg)}.no-other-bg-color{background-color:var(--purple-200)}.no-other-color{color:var(--red-700)}.outlined{stroke:red;stroke-width:2px;fill:none;}.custom-font{font-family:'Comic Sans MS', cursive;font-size:20px;color:#333;}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.gap-y-8{row-gap:0.5rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:gap-y-12{row-gap:0.75rem}.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:order-last{order:9999}.lg\\:order-none{order:0}.lg\\:mt-0{margin-top:0rem}.lg\\:flex{display:flex}.lg\\:w-\\[150px\\]{width:150px}.lg\\:w-auto{width:auto}.lg\\:max-w-\\[720px\\]{max-width:720px}.lg\\:flex-row{flex-direction:row}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:gap-y-16{row-gap:1rem}.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}.lg\\:\\!pl-12{padding-left:0.75rem !important}.lg\\:\\!pr-12{padding-right:0.75rem !important}}@media (min-width: 750px){.md\\:grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.md\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}}.flex-col{flex-direction:column}";export{d as logo_wrong_usage}