@ebrains/vue 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 (168) hide show
  1. package/{color-primary-palette_6.entry-CfqMCd3g.mjs → color-primary-palette_6.entry-WwN9tuB9.mjs} +17 -17
  2. package/color-primary-palette_6.entry-_ANGnnBl.js +1 -0
  3. package/correct-use-of-colors.entry-B312hpv9.js +1 -0
  4. package/correct-use-of-colors.entry-BjxRVkfm.mjs +59 -0
  5. package/{eds-accordion.entry-BsT7Ved4.mjs → eds-accordion.entry-RvtdAQT0.mjs} +1 -1
  6. package/{eds-accordion.entry-BvDNoDvv.js → eds-accordion.entry-h9ApF51u.js} +1 -1
  7. package/eds-alert.entry-C6VZ3ss6.js +608 -0
  8. package/eds-alert.entry-D5o-ZjCb.mjs +688 -0
  9. package/eds-avatar_17.entry-08AUpBqo.mjs +15630 -0
  10. package/eds-avatar_17.entry-BQZz43q9.js +14540 -0
  11. package/eds-card-desc_3.entry-D7hiMZ09.mjs +87 -0
  12. package/eds-card-desc_3.entry-Dxs_izUN.js +1 -0
  13. package/eds-card-generic.entry-0IAAHjtS.mjs +63 -0
  14. package/eds-card-generic.entry-DZYZP5oa.js +1 -0
  15. package/{eds-card-project.entry-CKYhNPPH.mjs → eds-card-project.entry-Ckgpwy2Y.mjs} +1 -1
  16. package/{eds-card-project.entry-XK15egnP.js → eds-card-project.entry-D7P4K88F.js} +1 -1
  17. package/{eds-card-section.entry-B7jR75ty.js → eds-card-section.entry-B90kv8Pj.js} +1 -1
  18. package/{eds-card-section.entry-x8CPk5NZ.mjs → eds-card-section.entry-DnktDeDm.mjs} +15 -9
  19. package/{eds-card-tags.entry-CndclGXB.js → eds-card-tags.entry-CnHitp9l.js} +1 -1
  20. package/{eds-card-tags.entry-Bvn8dDXI.mjs → eds-card-tags.entry-XboLA5-P.mjs} +1 -1
  21. package/{eds-card-tool.entry-DZqHML8u.js → eds-card-tool.entry-CbreK2xg.js} +1 -1
  22. package/{eds-card-tool.entry-DFuXjfhh.mjs → eds-card-tool.entry-CmRu6pmc.mjs} +1 -1
  23. package/{eds-card-wrapper.entry-DNnlCvMe.mjs → eds-card-wrapper.entry-Buesg37A.mjs} +1 -1
  24. package/{eds-card-wrapper.entry-C_r0u0Fd.js → eds-card-wrapper.entry-rBHdbwzh.js} +1 -1
  25. package/{eds-code-block.entry-DwfHDe4j.mjs → eds-code-block.entry-DKnuVY85.mjs} +1 -1
  26. package/{eds-code-block.entry-ClmjgThG.js → eds-code-block.entry-M3x0FsRB.js} +1 -1
  27. package/{eds-components-section.entry-BSRNSdwF.mjs → eds-components-section.entry-BAWU9rKy.mjs} +93 -42
  28. package/eds-components-section.entry-BEBky2Me.js +132 -0
  29. package/{eds-docs-palettes.entry-Gi9kzOYC.js → eds-docs-palettes.entry-D3DdXkoo.js} +1 -1
  30. package/{eds-docs-palettes.entry-BlQEI2Bl.mjs → eds-docs-palettes.entry-etHagd2P.mjs} +2 -2
  31. package/{eds-docs-tokens.entry-G6O1zRxS.js → eds-docs-tokens.entry--gW4Z293.js} +1 -1
  32. package/{eds-docs-tokens.entry-Bxzd9uSz.mjs → eds-docs-tokens.entry-CIGNTs97.mjs} +2 -2
  33. package/eds-form.entry-D8FLPsaS.js +7153 -0
  34. package/eds-form.entry-zewjTpaa.mjs +7319 -0
  35. package/{eds-frame.entry-Bz-23eT7.js → eds-frame.entry-BlOnLCrI.js} +1 -1
  36. package/{eds-frame.entry-YVbNIAAz.mjs → eds-frame.entry-SCGm_pju.mjs} +1 -1
  37. package/{eds-icon-arrow-diagonal.entry-Ky6NoFbS.mjs → eds-icon-arrow-diagonal.entry-CEffhVkn.mjs} +1 -1
  38. package/{eds-icon-arrow-diagonal.entry-C06V6TIW.js → eds-icon-arrow-diagonal.entry-abxXXnCe.js} +1 -1
  39. package/{eds-icon-arrow-right.entry-Dv17zi29.js → eds-icon-arrow-right.entry-4zl098Gq.js} +1 -1
  40. package/{eds-icon-arrow-right.entry-BPHnm7pX.mjs → eds-icon-arrow-right.entry-DrA5pZ5q.mjs} +1 -1
  41. package/{eds-icon-bluesky.entry-DQshm0EA.js → eds-icon-bluesky.entry-BDD9os2p.js} +1 -1
  42. package/{eds-icon-bluesky.entry-7_AzEVLl.mjs → eds-icon-bluesky.entry-CRey5aEK.mjs} +1 -1
  43. package/{eds-icon-chevron-down.entry-BlnVbI1I.js → eds-icon-chevron-down.entry-DA_Mq25N.js} +1 -1
  44. package/{eds-icon-chevron-down.entry-DkcBkTRK.mjs → eds-icon-chevron-down.entry-DCd5FfEN.mjs} +1 -1
  45. package/{eds-icon-chevron-left.entry-BTxaVVnF.js → eds-icon-chevron-left.entry-CiGlPKup.js} +1 -1
  46. package/{eds-icon-chevron-left.entry-BwhZiPKE.mjs → eds-icon-chevron-left.entry-Lmfmw6QC.mjs} +1 -1
  47. package/{eds-icon-chevron-right.entry-BPKLFXW0.mjs → eds-icon-chevron-right.entry-B2HI3b59.mjs} +1 -1
  48. package/{eds-icon-chevron-right.entry-c4irNhqS.js → eds-icon-chevron-right.entry-DMwxsQGs.js} +1 -1
  49. package/{eds-icon-chevron-up.entry-oja5yYhS.mjs → eds-icon-chevron-up.entry-CwavCcA0.mjs} +1 -1
  50. package/{eds-icon-chevron-up.entry-CFiZyc6u.js → eds-icon-chevron-up.entry-D9pmuoVK.js} +1 -1
  51. package/{eds-icon-close.entry-DQD_dDo5.js → eds-icon-close.entry-JIzBTjIa.js} +1 -1
  52. package/{eds-icon-close.entry-5BdzrFmk.mjs → eds-icon-close.entry-pxvkbolY.mjs} +1 -1
  53. package/{eds-icon-copy.entry-jpUaAQ7k.mjs → eds-icon-copy.entry-Begn9c9I.mjs} +1 -1
  54. package/{eds-icon-copy.entry-CQ237xrq.js → eds-icon-copy.entry-Ccrvu27o.js} +1 -1
  55. package/{eds-icon-eu.entry-CjCnJWwP.js → eds-icon-eu.entry-C0ZIqXHV.js} +1 -1
  56. package/{eds-icon-eu.entry-gJ234Xni.mjs → eds-icon-eu.entry-CLI94rkv.mjs} +1 -1
  57. package/{eds-icon-facebook.entry-BHUSe9LK.js → eds-icon-facebook.entry-BIZwxPBr.js} +1 -1
  58. package/{eds-icon-facebook.entry-Ch94iA-s.mjs → eds-icon-facebook.entry-o2SylrAp.mjs} +1 -1
  59. package/{eds-icon-gitlab.entry-j6RBYOBc.js → eds-icon-gitlab.entry-BJi35Zov.js} +1 -1
  60. package/{eds-icon-gitlab.entry-B06LmNCU.mjs → eds-icon-gitlab.entry-BWfZkXKF.mjs} +1 -1
  61. package/{eds-icon-linkedin.entry-DouHzclR.js → eds-icon-linkedin.entry-B4ev6evD.js} +1 -1
  62. package/{eds-icon-linkedin.entry-CMW1rKpG.mjs → eds-icon-linkedin.entry-Z4gD9HGr.mjs} +1 -1
  63. package/{eds-icon-loader.entry-BlGbpEzt.js → eds-icon-loader.entry-BFeh0vtX.js} +1 -1
  64. package/{eds-icon-loader.entry-Cx_ffiBq.mjs → eds-icon-loader.entry-DgIgWpYk.mjs} +1 -1
  65. package/{eds-icon-mastodon.entry-Cpl3lSng.js → eds-icon-mastodon.entry-BLCaUfQY.js} +1 -1
  66. package/{eds-icon-mastodon.entry-C4ITVPfN.mjs → eds-icon-mastodon.entry-C_2paQis.mjs} +1 -1
  67. package/{eds-icon-menu.entry-DvQARmJU.mjs → eds-icon-menu.entry-CNtaXAOo.mjs} +1 -1
  68. package/{eds-icon-menu.entry-BcPeEfV2.js → eds-icon-menu.entry-CzF-GJXn.js} +1 -1
  69. package/{eds-icon-more.entry-BoAVOpyT.mjs → eds-icon-more.entry-4gqxzs_k.mjs} +1 -1
  70. package/{eds-icon-more.entry-m61loZHO.js → eds-icon-more.entry-C-v0Cjp9.js} +1 -1
  71. package/{eds-icon-search.entry-D-nQvhug.mjs → eds-icon-search.entry-D070uKfZ.mjs} +1 -1
  72. package/{eds-icon-search.entry-BJMtVlnR.js → eds-icon-search.entry-iLCAU3Et.js} +1 -1
  73. package/{eds-icon-success.entry-D8S7QlRm.mjs → eds-icon-success.entry-Ci0RTnP5.mjs} +1 -1
  74. package/{eds-icon-success.entry-DvIchNgX.js → eds-icon-success.entry-DSukl_w-.js} +1 -1
  75. package/{eds-icon-twitter.entry-DD48tnaV.mjs → eds-icon-twitter.entry-D6I83zuS.mjs} +1 -1
  76. package/{eds-icon-twitter.entry-CD1nT3iI.js → eds-icon-twitter.entry-I9FRjdSE.js} +1 -1
  77. package/{eds-icon-user.entry-DSPBBAZa.mjs → eds-icon-user.entry-BI7Uw3Pp.mjs} +1 -1
  78. package/{eds-icon-user.entry-DDRH46_Z.js → eds-icon-user.entry-DcLB78T6.js} +1 -1
  79. package/{eds-icon-youtube.entry-BRyOsCV-.mjs → eds-icon-youtube.entry-CR4ml_RW.mjs} +1 -1
  80. package/{eds-icon-youtube.entry-CfpQHgDF.js → eds-icon-youtube.entry-DAke-XDg.js} +1 -1
  81. package/eds-input_7.entry-BV0VagCj.js +7167 -0
  82. package/eds-input_7.entry-CRNkC-uR.mjs +7368 -0
  83. package/{eds-login.entry-CY0ZugpF.js → eds-login.entry-DOeyfoyM.js} +1 -1
  84. package/{eds-login.entry-bC6f6bvF.mjs → eds-login.entry-DmJw6ABI.mjs} +7 -7
  85. package/eds-logo-variations.entry-U65PDVhE.js +1 -0
  86. package/eds-logo-variations.entry-o4lyGmhR.mjs +22 -0
  87. package/{eds-matomo-notice.entry-DanLI8VZ.js → eds-matomo-notice.entry-tzuOtKT9.js} +1 -1
  88. package/{eds-matomo-notice.entry-DGHq-ICP.mjs → eds-matomo-notice.entry-y5SvHzsZ.mjs} +1 -1
  89. package/{eds-modal.entry-TMxTmjgT.js → eds-modal.entry-B7Ph4m3y.js} +1 -1
  90. package/{eds-modal.entry-Bikh63fB.mjs → eds-modal.entry-BW8crUoC.mjs} +1 -1
  91. package/{eds-navigator.entry-D-fIKqub.mjs → eds-navigator.entry-CvKDpQVM.mjs} +1 -1
  92. package/{eds-navigator.entry-CUAf3hTM.js → eds-navigator.entry-DixbL3UY.js} +1 -1
  93. package/eds-pagination_2.entry-CRrIKRa-.mjs +241 -0
  94. package/eds-pagination_2.entry-DoZ-NFBH.js +1 -0
  95. package/eds-progress-bar.entry-Bmjv2r3W.js +1 -0
  96. package/eds-progress-bar.entry-sdqDGSI3.mjs +21 -0
  97. package/{eds-rating.entry-B2lhi19L.mjs → eds-rating.entry-J5lQt6oj.mjs} +1 -1
  98. package/{eds-rating.entry-BdE-bKae.js → eds-rating.entry-dK5fopCq.js} +1 -1
  99. package/{eds-section-core_2.entry-BRNJshCh.js → eds-section-core_2.entry-DBjBQ_AT.js} +1 -1
  100. package/{eds-section-core_2.entry-CqFyAWoq.mjs → eds-section-core_2.entry-cwkrHET8.mjs} +1 -1
  101. package/{eds-svg-repository.entry-BdZya_DA.js → eds-svg-repository.entry-BEJBJ538.js} +12 -12
  102. package/{eds-svg-repository.entry-qaL9fhLI.mjs → eds-svg-repository.entry-UvAba6M3.mjs} +71 -65
  103. package/{eds-tab.entry-BqqMdTQv.mjs → eds-tab.entry-CR1nFyrH.mjs} +1 -1
  104. package/{eds-tab.entry-C6q7naM_.js → eds-tab.entry-uQka8MTr.js} +1 -1
  105. package/{eds-tabs-content.entry-D9b289Td.mjs → eds-tabs-content.entry-BKT7-iAV.mjs} +3 -3
  106. package/{eds-tabs-content.entry-H__1SNbo.js → eds-tabs-content.entry-CTM0EjTl.js} +1 -1
  107. package/{eds-tabs.entry-KsWwc6xS.mjs → eds-tabs.entry-BKx8xHJ8.mjs} +23 -6
  108. package/eds-tabs.entry-BWxSN8SV.js +1 -0
  109. package/eds-timeline.entry-B7jxBFA4.mjs +51 -0
  110. package/eds-timeline.entry-D9KWrb_r.js +1 -0
  111. package/{eds-tooltip.entry-BI1EvTiw.js → eds-tooltip.entry-CfhqHRxF.js} +1 -1
  112. package/{eds-tooltip.entry-ByxJjA_6.mjs → eds-tooltip.entry-DJqN6_P4.mjs} +1 -1
  113. package/eds-trl.entry-COK7rgVS.mjs +36 -0
  114. package/eds-trl.entry-CoySvAJL.js +1 -0
  115. package/generated/components.d.ts +2 -0
  116. package/incorrect-use-of-colors.entry-D7xAYXu2.js +1 -0
  117. package/incorrect-use-of-colors.entry-DsNEjuWo.mjs +42 -0
  118. package/{index-DQrtrXyM.mjs → index-Dg2DO7q4.mjs} +235 -206
  119. package/index-Dvww9rdy.js +21 -0
  120. package/index.js +1 -1
  121. package/index.mjs +21 -19
  122. package/{logo-space.entry-OauRHmO8.mjs → logo-space.entry-Cf-keXHv.mjs} +4 -4
  123. package/{logo-space.entry-DpgwdyOK.js → logo-space.entry-DC5fUroI.js} +1 -1
  124. package/logo-variations-horizontal_2.entry-BWau6qh4.js +7 -0
  125. package/logo-variations-horizontal_2.entry-xvJ8Iiu5.mjs +29 -0
  126. package/logo-wrong-usage.entry-RcSb8NIe.mjs +14 -0
  127. package/logo-wrong-usage.entry-sU8NISwX.js +1 -0
  128. package/package.json +2 -2
  129. package/{token-list_3.entry-CVZDegic.js → token-list_3.entry-BkOkChEb.js} +1 -1
  130. package/{token-list_3.entry-Ca9muGhp.mjs → token-list_3.entry-CheMK1r_.mjs} +4 -4
  131. package/{token-ratios.entry-DGMJ2vJj.js → token-ratios.entry-Dfz4q4qy.js} +1 -1
  132. package/{token-ratios.entry-D3JWYlHy.mjs → token-ratios.entry-rSMXHIix.mjs} +2 -2
  133. package/token-spacing.entry-ByzbVlGi.js +1 -0
  134. package/token-spacing.entry-DvopunO1.mjs +12 -0
  135. package/{token-typography.entry-C8CdhyIM.js → token-typography.entry-AjIHL4M4.js} +1 -1
  136. package/{token-typography.entry-DwUOTznz.mjs → token-typography.entry-CExckWkx.mjs} +2 -2
  137. package/color-primary-palette_6.entry-CoXWiKJ3.js +0 -1
  138. package/correct-use-of-colors.entry-CfXsWbhB.js +0 -1
  139. package/correct-use-of-colors.entry-CotQESQa.mjs +0 -59
  140. package/eds-alert_28.entry-Ctl9tHqr.js +0 -29465
  141. package/eds-alert_28.entry-DbTB72ow.mjs +0 -30921
  142. package/eds-block-break.entry-B8gP4ig9.mjs +0 -13
  143. package/eds-block-break.entry-L9LG-PtO.js +0 -1
  144. package/eds-breadcrumb.entry-C6mAAYNs.js +0 -1
  145. package/eds-breadcrumb.entry-Dio_2hx4.mjs +0 -114
  146. package/eds-components-section.entry-8sEheaoX.js +0 -130
  147. package/eds-footer.entry-9xXgg22T.mjs +0 -29
  148. package/eds-footer.entry-DqnRHQ32.js +0 -1
  149. package/eds-fullscreen-menu.entry-4kxB1p-j.mjs +0 -74
  150. package/eds-fullscreen-menu.entry-DwOubHgX.js +0 -1
  151. package/eds-pagination.entry-C8g4pxcm.js +0 -1
  152. package/eds-pagination.entry-D6iJH84k.mjs +0 -128
  153. package/eds-social-networks.entry-6VfWBLuR.js +0 -1
  154. package/eds-social-networks.entry-BgiRVGXx.mjs +0 -50
  155. package/eds-table.entry-BojRZdP2.mjs +0 -112
  156. package/eds-table.entry-ShWS4LWJ.js +0 -1
  157. package/eds-tabs.entry-DGHlnSwh.js +0 -1
  158. package/incorrect-use-of-colors.entry-C7xABbpE.js +0 -1
  159. package/incorrect-use-of-colors.entry-DNOV6p4p.mjs +0 -42
  160. package/index-BGGkUjck.js +0 -21
  161. package/logo-variations-horizontal.entry-BG8fM5Bs.js +0 -4
  162. package/logo-variations-horizontal.entry-BicKkgRN.mjs +0 -16
  163. package/logo-variations-vertical.entry-CXVFf9-0.mjs +0 -16
  164. package/logo-variations-vertical.entry-DJ-IpAyZ.js +0 -4
  165. package/logo-wrong-usage.entry-7MfyIkPp.js +0 -1
  166. package/logo-wrong-usage.entry-CH7JMqbI.mjs +0 -14
  167. package/token-spacing.entry-CdrdqAOb.js +0 -1
  168. package/token-spacing.entry-CjITQ8pH.mjs +0 -12
@@ -0,0 +1,132 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dvww9rdy.js"),t=()=>e.h("div",{class:"static-content container"},e.h("h2",null,"Load the module"),e.h("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.h("code",null,"head"),"."),e.h("eds-code-block",{code:`<script type='module'>
2
+ import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js';
3
+ // Define custom elements
4
+ defineCustomElements(window);
5
+ <\/script>`,language:"javascript","copy-label":"Copy Code"}),e.h("h2",null,"Load the styles"),e.h("p",null,"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the"," ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>',language:"css","copy-label":"Copy Code"}),e.h("div",{class:"my-4"},e.h("eds-alert",{message:"Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.",intent:"warning"})),e.h("h2",null,"Load the fonts"),e.h("p",null,"To load the webfonts, add the tag below to the ",e.h("code",null,"head")),e.h("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.h("h2",null,"Component Usage"),e.h("p",null,"Once included, components can be used in your markup like any other regular HTML elements:"),e.h("eds-code-block",{code:`<eds-button
6
+ label="my bytton"
7
+ intent="primary">
8
+ </eds-button>`,language:"html","copy-label":"Copy Code"})),a=()=>e.h("div",null,e.h("p",null,"Before proceeding, ensure that Node.js is installed on your machine—you can download the latest version from the official website. If your project doesn’t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/components",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/assets",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/react",language:"html","copy-label":"Copy Code"}))),s=()=>e.h("div",null,e.h("h2",null,"React Wrappers"),e.h("p",null,"Learn how to use our components in a React Application.Simple install the package below and check out the examples"),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/react",language:"javascript","copy-label":"Copy Code"})),e.h("eds-section-core",{"section-title":"Example React App","heading-level":"h3"},e.h("eds-code-block",{code:`
9
+ import { EdsHeader } from "@ebrains/react";
10
+
11
+ interface User {
12
+ firstname: string;
13
+ lastname: string;
14
+ }
15
+
16
+ interface AuthStatus {
17
+ authenticated: boolean;
18
+ user: User | null;
19
+ }
20
+
21
+ import { useEffect, useState } from "react";
22
+
23
+ export function App() {
24
+
25
+ const [authStatus, setAuthStatus] = useState<AuthStatus>({
26
+ authenticated: false,
27
+ user: null,
28
+ });
29
+
30
+ const [activeTabIndex, setActiveTabIndex] = useState<number>(0);
31
+
32
+ // Use useEffect to render Stencil components dynamically after the component mounts
33
+ useEffect(() => {
34
+
35
+ const handleAuthStatusChange = (event: CustomEvent) => {
36
+ console.log(event.detail);
37
+ setAuthStatus(event.detail); // Set the entire object
38
+ };
39
+
40
+ const handleTabChange = (
41
+ event: CustomEvent<{ index: number; name: string }>,
42
+ ) => {
43
+ console.log(event.detail);
44
+ setActiveTabIndex(event.detail.index);
45
+ };
46
+
47
+ document.addEventListener(
48
+ "authStatusChanged",
49
+ handleAuthStatusChange as EventListener,
50
+ );
51
+ document.addEventListener("tabChange", handleTabChange as EventListener);
52
+
53
+ return () => {
54
+ document.removeEventListener(
55
+ "authStatusChanged",
56
+ handleAuthStatusChange as EventListener,
57
+ );
58
+ document.removeEventListener(
59
+ "tabChange",
60
+ handleTabChange as EventListener,
61
+ );
62
+ };
63
+ }, []); // Empty dependency array ensures this runs only once after mounting
64
+
65
+ return (
66
+ <div id="main">
67
+ <EdsHeader
68
+ home-url="/"
69
+ user-feature={false}
70
+ keycloak-url="http://localhost:8080"
71
+ keycloak-realm="nigeor-realm"
72
+ keycloak-client-id="stencil-app"
73
+ links="[
74
+ { "label": "About", "url": "/about" },
75
+ { "label": "Focus Areas", "url": "/focus-areas" },
76
+ { "label": "News & Events", "url": "/news-and-events" },
77
+ { "label": "Contact", "url": "/contact" }
78
+ ]"
79
+ ></EdsHeader>
80
+
81
+ <div>
82
+ User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}
83
+ </div>
84
+ {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}
85
+ </div>
86
+ </div>
87
+ );
88
+ }
89
+
90
+ export default App;
91
+ `,language:"javascript","copy-label":"Copy Code"}))),o=()=>e.h("div",null,e.h("h2",null,"Vue Wrappers"),e.h("p",null,"Learn how to use our components in a Vue Application."),e.h("p",null,"Simply install the latest version of our NPM package."),e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"javascript","copy-label":"Copy Code"}),e.h("p",null,'Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your "main.ts" file.'),e.h("eds-code-block",{code:`import { defineCustomElements } from '@ebrains/components/loader';
92
+ defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("h2",null,"Passing Properties to Custom Elements Using the ",e.h("b",null,".prop")," Modifier in Vue Wrappers"),e.h("p",null,"When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML’s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),e.h("h3",null,"How to Use the ",e.h("b",null,".prop")," Modifier"),e.h("p",null,"When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here’s an example of how to do it:"),e.h("div",{class:"mt-8"},e.h("eds-alert",{message:"This may lead to issues because Vue binds these as attributes .",intent:"error"})),e.h("eds-code-block",{code:`<EdsAlert
93
+ message="This is a default informational alert."
94
+ intent="default"
95
+ :pressableLabel="Press Me"
96
+ :pressableUrl="https://ebrains.eu"
97
+ ></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("div",{class:"mt-8"},e.h("eds-alert",{message:"Use the .prop modifier to ensure properties are passed correctly.",intent:"success"})),e.h("eds-code-block",{code:`<EdsAlert
98
+ message="This is a default informational alert."
99
+ intent="default"
100
+ :pressableLabel.prop="Press Me"
101
+ :pressableUrl.prop="https://ebrains.eu"
102
+ ></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Using the ",e.h("b",null,".prop")," modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),e.h("eds-section-core",{"section-title":"Example Vue App","heading-level":"h3"},e.h("eds-code-block",{code:`
103
+ <template>
104
+ <EdsHeader
105
+ :inverseHeader.prop="true"
106
+ :menuEnabled.prop="true">
107
+ </EdsHeader>
108
+ </template>
109
+
110
+ <script>
111
+
112
+ import { EdsHeader } from "@ebrains/vue";
113
+
114
+ export default {
115
+ name: "App",
116
+ components: {
117
+ EdsHeader,
118
+ }
119
+ };
120
+ <\/script>
121
+ `,language:"javascript","copy-label":"Copy Code"}))),l=()=>e.h("div",null,e.h("h2",null,"Angular Wrappers"),e.h("p",null,"Learn how to use our components in a Angular Application."),e.h("eds-code-block",{code:"npm install @ebrains/angular",language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Define the custom elements"),e.h("eds-code-block",{code:`import { defineCustomElements } from '@ebrains/components/loader';
122
+ defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Angular Custom Elements Schema"),e.h("eds-code-block",{code:'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";',language:"javascript","copy-label":"Copy Code"}),e.h("eds-section-core",{"section-title":"Example Angular App","heading-level":"h3"},e.h("eds-code-block",{code:`
123
+ <div class="container">
124
+ <eds-breadcrumb
125
+ intent="tertiary"
126
+ items="[
127
+ { "label": "Home", "url": "#" },
128
+ { "label": "Products", "url": "#" },
129
+ ]">
130
+ </eds-breadcrumb>
131
+ <eds-footer></eds-footer>
132
+ </div>`,language:"javascript","copy-label":"Copy Code"}))),r=class{constructor(n){e.registerInstance(this,n),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h(t,null);case 1:return e.h(a,null);case 2:return e.h(s,null);case 3:return e.h(o,null);case 4:return e.h(l,null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"ce34514ab73daa5baa011bda56a13d6197f8bfd0",class:"container"},this.renderContent())}};exports.eds_components_section=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BGGkUjck.js"),l=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("color-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("color-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("color-support-palette",null));case 1:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("gradient-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("gradient-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("gradient-support-palette",null));default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"c11e0de66c41770e7ebca46d3fb7ab11b454511e",class:"container"},this.renderContent())}};exports.eds_docs_palettes=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dvww9rdy.js"),l=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("color-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("color-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("color-support-palette",null));case 1:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("gradient-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("gradient-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("gradient-support-palette",null));default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"42f0a4598c64661d98054522e88366ec591a2cb3",class:"container"},this.renderContent())}};exports.eds_docs_palettes=l;
@@ -1,4 +1,4 @@
1
- import { r as l, h as e } from "./index-DQrtrXyM.mjs";
1
+ import { r as l, h as e } from "./index-Dg2DO7q4.mjs";
2
2
  const r = class {
3
3
  constructor(t) {
4
4
  l(this, t), this.tabIndex = void 0;
@@ -14,7 +14,7 @@ const r = class {
14
14
  }
15
15
  }
16
16
  render() {
17
- return e("div", { key: "c11e0de66c41770e7ebca46d3fb7ab11b454511e", class: "container" }, this.renderContent());
17
+ return e("div", { key: "42f0a4598c64661d98054522e88366ec591a2cb3", class: "container" }, this.renderContent());
18
18
  }
19
19
  };
20
20
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BGGkUjck.js"),n=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("token-list",{show:"background"});case 1:return e.h("token-list",{show:"text"});case 2:return e.h("token-list",{show:"border"});case 3:return e.h("token-radii",null);case 4:return e.h("token-list",{show:"outline"});case 5:return e.h("token-shadows",null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"ef9cf093af7bc730b73f3561b36187f70aea29a7",class:"container"},this.renderContent())}};exports.eds_docs_tokens=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dvww9rdy.js"),n=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("token-list",{show:"background"});case 1:return e.h("token-list",{show:"text"});case 2:return e.h("token-list",{show:"border"});case 3:return e.h("token-radii",null);case 4:return e.h("token-list",{show:"outline"});case 5:return e.h("token-shadows",null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"10708d591c4077e4e1fe94073322f01121253bdb",class:"container"},this.renderContent())}};exports.eds_docs_tokens=n;
@@ -1,4 +1,4 @@
1
- import { r as n, h as e } from "./index-DQrtrXyM.mjs";
1
+ import { r as n, h as e } from "./index-Dg2DO7q4.mjs";
2
2
  const r = class {
3
3
  constructor(t) {
4
4
  n(this, t), this.tabIndex = void 0;
@@ -22,7 +22,7 @@ const r = class {
22
22
  }
23
23
  }
24
24
  render() {
25
- return e("div", { key: "ef9cf093af7bc730b73f3561b36187f70aea29a7", class: "container" }, this.renderContent());
25
+ return e("div", { key: "10708d591c4077e4e1fe94073322f01121253bdb", class: "container" }, this.renderContent());
26
26
  }
27
27
  };
28
28
  export {