@ebrains/vue 0.9.2-beta → 1.0.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 (248) hide show
  1. package/README.md +4 -4
  2. package/analytics-d99780e3-Bay18Oil.mjs +28 -0
  3. package/analytics-d99780e3-DgvAss6l.js +1 -0
  4. package/arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs +4 -0
  5. package/arrow-diagonal-black-8f0494c3-DqsB6ni-.js +1 -0
  6. package/arrow-right-9322ba8a-DBcxNU_p.js +3 -0
  7. package/arrow-right-9322ba8a-DHq-_PPe.mjs +6 -0
  8. package/bluesky-cc5edd2d-DaFQc-pr.js +12 -0
  9. package/bluesky-cc5edd2d-DfuDDO5h.mjs +15 -0
  10. package/bookmark-c200037c-CIcZ51ZQ.js +14 -0
  11. package/bookmark-c200037c-ClkCtyRY.mjs +17 -0
  12. package/chevron-down-6144c823-DWGlv9eV.mjs +13 -0
  13. package/chevron-down-6144c823-D_8976Ke.js +10 -0
  14. package/chevron-left-ca6c66e1-DANhLw_T.mjs +12 -0
  15. package/chevron-left-ca6c66e1-uCH5SUhm.js +9 -0
  16. package/chevron-right-b88ed2d4-C7dkTMvP.js +3 -0
  17. package/chevron-right-b88ed2d4-CgEZBvy7.mjs +6 -0
  18. package/chevron-up-c66bd477-ByW7R48t.js +10 -0
  19. package/chevron-up-c66bd477-CETJkshq.mjs +13 -0
  20. package/close-87fc0d63-Cbd-ScJr.js +3 -0
  21. package/close-87fc0d63-DtDU2HIU.mjs +6 -0
  22. package/color-primary-palette_6.entry-CfNmHzNO.mjs +300 -0
  23. package/color-primary-palette_6.entry-c48Fqrz0.js +1 -0
  24. package/components-section.entry-3yJF6nRH.js +162 -0
  25. package/components-section.entry-oQTYayXm.mjs +360 -0
  26. package/copy-03b72cb6-B_WCNQrG.mjs +6 -0
  27. package/copy-03b72cb6-CZAFAegx.js +3 -0
  28. package/correct-use-of-colors.entry-7fOSokhJ.mjs +59 -0
  29. package/correct-use-of-colors.entry-DEdyB_h5.js +1 -0
  30. package/docs-palettes.entry-6ekOz4GT.js +1 -0
  31. package/docs-palettes.entry-Bz96UO-K.mjs +22 -0
  32. package/docs-tokens.entry-D-hRYpqk.mjs +30 -0
  33. package/docs-tokens.entry-DjHB8v2C.js +1 -0
  34. package/eds-accordion.entry-Czj2ZwpQ.js +4 -0
  35. package/eds-accordion.entry-D1L8fv2r.mjs +48 -0
  36. package/eds-alert.entry-BqEeR0Xw.js +165 -0
  37. package/eds-alert.entry-DAeVRXua.mjs +251 -0
  38. package/eds-app-root.entry-BBbgNK8b.mjs +25 -0
  39. package/eds-app-root.entry-BrJeEAVb.js +1 -0
  40. package/eds-avatar_34.entry-1U84FvGQ.mjs +12120 -0
  41. package/eds-avatar_34.entry-iuvkwQW_.js +10209 -0
  42. package/eds-card-project.entry-Cd7tP9g4.mjs +170 -0
  43. package/eds-card-project.entry-CewRPvW7.js +1 -0
  44. package/eds-card-section.entry-BU4fC9y5.js +1 -0
  45. package/eds-card-section.entry-CQLG4D0D.mjs +30 -0
  46. package/eds-card-tags.entry-BKuk3O8k.mjs +13 -0
  47. package/eds-card-tags.entry-DOV6K1FD.js +1 -0
  48. package/eds-card-tool.entry-DpfInwr3.mjs +56 -0
  49. package/eds-card-tool.entry-LSjtu5k_.js +1 -0
  50. package/eds-code-block.entry-Bz1Pbg4W.mjs +1623 -0
  51. package/eds-code-block.entry-DG1tMA_4.js +9 -0
  52. package/eds-cookies-preference.entry-0J8XlEDN.js +1 -0
  53. package/eds-cookies-preference.entry-DgP6pxkr.mjs +20 -0
  54. package/eds-feedback.entry-Cmn3G5sR.js +1 -0
  55. package/eds-feedback.entry-CxyxT-OD.mjs +54 -0
  56. package/eds-frame.entry-Dh_T8O60.mjs +67 -0
  57. package/eds-frame.entry-LDVXpjkU.js +1 -0
  58. package/eds-icon-arrow-diagonal.entry-C6AHMuMB.js +1 -0
  59. package/eds-icon-arrow-diagonal.entry-C75xEcUs.mjs +13 -0
  60. package/eds-icon-arrow-right.entry-DOsVz4oP.mjs +13 -0
  61. package/eds-icon-arrow-right.entry-VMROpz2J.js +1 -0
  62. package/eds-icon-bluesky.entry-BmSl31Ky.js +1 -0
  63. package/eds-icon-bluesky.entry-C9skxio2.mjs +13 -0
  64. package/eds-icon-bookmark.entry-DdUP23Uu.js +1 -0
  65. package/eds-icon-bookmark.entry-xWgHPpg-.mjs +13 -0
  66. package/eds-icon-chevron-down.entry-DNY1bk_l.js +1 -0
  67. package/eds-icon-chevron-down.entry-ut52sjbR.mjs +13 -0
  68. package/eds-icon-chevron-left.entry-Bi82EnZL.mjs +13 -0
  69. package/eds-icon-chevron-left.entry-nzi05fTd.js +1 -0
  70. package/eds-icon-chevron-right.entry-CBW3L3p8.js +1 -0
  71. package/eds-icon-chevron-right.entry-Dc_uRypg.mjs +13 -0
  72. package/eds-icon-chevron-up.entry-CO7nzD9J.mjs +13 -0
  73. package/eds-icon-chevron-up.entry-Cc10e7Ce.js +1 -0
  74. package/eds-icon-close.entry-CvXUDttz.mjs +13 -0
  75. package/eds-icon-close.entry-Dw7ZUnkQ.js +1 -0
  76. package/eds-icon-copy.entry-DV4qtIA7.mjs +13 -0
  77. package/eds-icon-copy.entry-x46asO9P.js +1 -0
  78. package/eds-icon-eu.entry-BaEbXLNS.mjs +13 -0
  79. package/eds-icon-eu.entry-D2CoGoAF.js +1 -0
  80. package/eds-icon-external.entry-C0Zm0isI.js +1 -0
  81. package/eds-icon-external.entry-CckFcmA1.mjs +13 -0
  82. package/eds-icon-facebook.entry-CIiiUf27.mjs +13 -0
  83. package/eds-icon-facebook.entry-DwUcANz7.js +1 -0
  84. package/eds-icon-gitlab.entry-CuKUR41Q.js +1 -0
  85. package/eds-icon-gitlab.entry-PCSE_PYe.mjs +13 -0
  86. package/eds-icon-linkedin.entry-Bpoynapn.js +1 -0
  87. package/eds-icon-linkedin.entry-C9xqBwJ1.mjs +13 -0
  88. package/eds-icon-loader.entry-CkIiBDsV.mjs +13 -0
  89. package/eds-icon-loader.entry-dxgwIFD3.js +1 -0
  90. package/eds-icon-mastodon.entry-7CmZhvNG.js +1 -0
  91. package/eds-icon-mastodon.entry-k86mWfUp.mjs +13 -0
  92. package/eds-icon-menu.entry-7zPtmR24.mjs +13 -0
  93. package/eds-icon-menu.entry-CFIbaI5j.js +1 -0
  94. package/eds-icon-minus.entry-B4ntnZW_.js +1 -0
  95. package/eds-icon-minus.entry-fPsoVmGR.mjs +13 -0
  96. package/eds-icon-more.entry-D_HCuwKk.js +1 -0
  97. package/eds-icon-more.entry-DyH3sCa4.mjs +13 -0
  98. package/eds-icon-paper.entry-BQlPnCrf.mjs +13 -0
  99. package/eds-icon-paper.entry-CHAw7mqA.js +1 -0
  100. package/eds-icon-plus.entry-QOVehJoq.js +1 -0
  101. package/eds-icon-plus.entry-zTfrWeuu.mjs +13 -0
  102. package/eds-icon-portal.entry-CbJqS4OZ.js +1 -0
  103. package/eds-icon-portal.entry-SlgbRrHY.mjs +13 -0
  104. package/eds-icon-private.entry-DSIHrQEv.js +1 -0
  105. package/eds-icon-private.entry-uHBGM_wp.mjs +13 -0
  106. package/eds-icon-public.entry-Cj1hddsF.js +1 -0
  107. package/eds-icon-public.entry-_sTE1w2W.mjs +13 -0
  108. package/eds-icon-search.entry-CXVkIZak.js +1 -0
  109. package/eds-icon-search.entry-DIww9BJF.mjs +13 -0
  110. package/eds-icon-star.entry-B3WySZM_.mjs +13 -0
  111. package/eds-icon-star.entry-B464U0ht.js +1 -0
  112. package/eds-icon-success.entry-BhRuLH3J.js +1 -0
  113. package/eds-icon-success.entry-HesFgi8E.mjs +13 -0
  114. package/eds-icon-thumbs-down.entry-CbL3623r.mjs +13 -0
  115. package/eds-icon-thumbs-down.entry-DVK5ACMh.js +1 -0
  116. package/eds-icon-thumbs-up.entry-C2QZ3OSz.mjs +13 -0
  117. package/eds-icon-thumbs-up.entry-MDqpoPcO.js +1 -0
  118. package/eds-icon-tutorial.entry-DRB27GWh.mjs +13 -0
  119. package/eds-icon-tutorial.entry-xaf63POz.js +1 -0
  120. package/eds-icon-twitter.entry-CYCIFfgj.mjs +13 -0
  121. package/eds-icon-twitter.entry-CcpEPKUu.js +1 -0
  122. package/eds-icon-unknown.entry-kYRE4en_.js +1 -0
  123. package/eds-icon-unknown.entry-ksugYL8s.mjs +13 -0
  124. package/eds-icon-updown.entry-3_UTqXet.js +1 -0
  125. package/eds-icon-updown.entry-DrW4QdWY.mjs +13 -0
  126. package/eds-icon-user.entry-BimbLh7T.js +1 -0
  127. package/eds-icon-user.entry-CMjrRV4a.mjs +13 -0
  128. package/eds-icon-youtube.entry-BepDLIVw.js +1 -0
  129. package/eds-icon-youtube.entry-CGXXdMzx.mjs +13 -0
  130. package/eds-matomo-notice.entry-BnbhjXrV.js +1 -0
  131. package/eds-matomo-notice.entry-DQLfTEH4.mjs +92 -0
  132. package/eds-pagination_2.entry-BK--gyZ0.mjs +258 -0
  133. package/eds-pagination_2.entry-De883ILy.js +1 -0
  134. package/eds-progress-bar.entry-CnzFrS-7.js +1 -0
  135. package/eds-progress-bar.entry-UWeq2B4o.mjs +39 -0
  136. package/eds-rating.entry-D48_hoBw.js +1 -0
  137. package/eds-rating.entry-ScrHbfrp.mjs +61 -0
  138. package/eds-section-core_2.entry-D3FNm7II.mjs +39 -0
  139. package/eds-section-core_2.entry-DshZ38Q9.js +1 -0
  140. package/eds-spinner.entry-CAKA3YkP.js +1 -0
  141. package/eds-spinner.entry-KZWQRAHb.mjs +36 -0
  142. package/eds-splash-screen.entry-B7f2rbAn.mjs +39 -0
  143. package/eds-splash-screen.entry-YJ_mGQYU.js +1 -0
  144. package/eds-switch.entry-CKv4fbm-.js +1 -0
  145. package/eds-switch.entry-DbBUxVI8.mjs +29 -0
  146. package/eds-timeline.entry-BE-6PK5Q.js +1 -0
  147. package/eds-timeline.entry-uFV4mRmh.mjs +46 -0
  148. package/eds-toast-manager.entry-BKIf0Xw3.js +1 -0
  149. package/eds-toast-manager.entry-CXL8sMaG.mjs +61 -0
  150. package/eds-toast.entry-a-RIjL18.js +3 -0
  151. package/eds-toast.entry-oZ1Juhqm.mjs +61 -0
  152. package/eds-trl.entry-Bw8w42hZ.mjs +34 -0
  153. package/eds-trl.entry-DmSx4bnn.js +1 -0
  154. package/eu-9ddde93a-BFtIQw9B.js +28 -0
  155. package/eu-9ddde93a-ft4szvR5.mjs +31 -0
  156. package/facebook-9cb5c17f-BcUhbrj6.mjs +15 -0
  157. package/facebook-9cb5c17f-Y_gvQ682.js +12 -0
  158. package/generated/components.d.ts +40 -0
  159. package/generated/vue-component-lib/utils.d.ts +16 -0
  160. package/incorrect-use-of-colors.entry-BlDQxmUQ.mjs +42 -0
  161. package/incorrect-use-of-colors.entry-CglkFNGU.js +1 -0
  162. package/index-39c58238-BwYCDOHZ.mjs +44 -0
  163. package/index-39c58238-SQ-JC-LH.js +1 -0
  164. package/index-BvZ-fq9l.mjs +3486 -0
  165. package/index-CJvr9v3B.js +21 -0
  166. package/index.d.ts +1 -0
  167. package/index.js +1 -0
  168. package/index.mjs +42 -0
  169. package/linkedin-e8650abb-BkDrkjzY.js +26 -0
  170. package/linkedin-e8650abb-DYMdsale.mjs +29 -0
  171. package/loader-c9628637-ChpnbJkv.mjs +31 -0
  172. package/loader-c9628637-Vj8Wt1e8.js +28 -0
  173. package/logo-color-7f1fd803-CFgbXdt8.mjs +116 -0
  174. package/logo-color-7f1fd803-DRD3vZVn.js +113 -0
  175. package/logo-color-margins-ff8ce71b-B9nMsY9Q.mjs +119 -0
  176. package/logo-color-margins-ff8ce71b-Dk06zr1Z.js +116 -0
  177. package/logo-space.entry-D1gv5Jv7.mjs +19 -0
  178. package/logo-space.entry-d5Tx6GSR.js +6 -0
  179. package/logo-variations-horizontal_2.entry-CiMlktdv.js +7 -0
  180. package/logo-variations-horizontal_2.entry-DPHzlUCt.mjs +29 -0
  181. package/logo-variations-tabs.entry-BYi6NRAo.mjs +22 -0
  182. package/logo-variations-tabs.entry-CcSRDFWV.js +1 -0
  183. package/logo-white-no-bg-f382f86f-DXYn3NwV.js +1011 -0
  184. package/logo-white-no-bg-f382f86f-YhfmNmGG.mjs +1022 -0
  185. package/logo-wrong-usage.entry-9iDssoCI.mjs +14 -0
  186. package/logo-wrong-usage.entry-gsDvZ1sn.js +1 -0
  187. package/mastodon-3703ec61-C7iI4Hk0.mjs +15 -0
  188. package/mastodon-3703ec61-C9v6Olc-.js +12 -0
  189. package/menu-340ea948-BpnYX3gY.mjs +12 -0
  190. package/menu-340ea948-ZdelWVw3.js +9 -0
  191. package/minus-b30a7c71-BPAvqHzH.mjs +12 -0
  192. package/minus-b30a7c71-DqCTe6Qh.js +9 -0
  193. package/mono-53f70232-DGi2XDlR.mjs +12 -0
  194. package/mono-53f70232-DgAsWvoQ.js +9 -0
  195. package/more-4449d549-D4HA1cRq.js +11 -0
  196. package/more-4449d549-rI9hOpEp.mjs +14 -0
  197. package/package.json +1 -1
  198. package/paper-8e74ea31-BvGrc1Vo.mjs +16 -0
  199. package/paper-8e74ea31-C4CV6tlB.js +13 -0
  200. package/plus-89c07be2-BTXnjg5K.js +10 -0
  201. package/plus-89c07be2-DyT9I4-L.mjs +13 -0
  202. package/portal-d6c8ce56-Cj61ldo8.mjs +19 -0
  203. package/portal-d6c8ce56-NpSrdNZ_.js +16 -0
  204. package/private-1c25ff8e-D3Fo36q6.js +23 -0
  205. package/private-1c25ff8e-Dz82_Xf8.mjs +26 -0
  206. package/public-d4d8c585-BJKDD5F6.mjs +17 -0
  207. package/public-d4d8c585-lV6QxdPw.js +14 -0
  208. package/search-fbcd79c2-BMxCaeEk.js +10 -0
  209. package/search-fbcd79c2-rfV0PlHP.mjs +13 -0
  210. package/sharedUtils-a550989c-Ci3Tx3jc.mjs +15 -0
  211. package/sharedUtils-a550989c-m4pF1Vqy.js +1 -0
  212. package/star-0da9b5e9-B3-jr0yE.js +3 -0
  213. package/star-0da9b5e9-DX8_iFmu.mjs +6 -0
  214. package/success-443809da-BD23vltm.mjs +19 -0
  215. package/success-443809da-BUEhLsAD.js +16 -0
  216. package/svg-repository.entry-BtksDklW.mjs +301 -0
  217. package/svg-repository.entry-_-HISW99.js +173 -0
  218. package/thumbs-down-a18fd049-CzuBAj99.mjs +6 -0
  219. package/thumbs-down-a18fd049-DTNIbYbm.js +3 -0
  220. package/thumbs-up-c19a71bc-CjLv5Wgw.mjs +7 -0
  221. package/thumbs-up-c19a71bc-w8Z8gegt.js +4 -0
  222. package/token-list_3.entry-CNkWD89P.mjs +247 -0
  223. package/token-list_3.entry-CRZq4och.js +1 -0
  224. package/token-ratios.entry-CL40j9gF.js +1 -0
  225. package/token-ratios.entry-D4aHLsX-.mjs +25 -0
  226. package/token-typography.entry-D17oZHbh.js +2 -0
  227. package/token-typography.entry-ayRMMiOe.mjs +213 -0
  228. package/tutotial-150ee1fd-DFdyoHVA.mjs +28 -0
  229. package/tutotial-150ee1fd-DjN_JBL5.js +25 -0
  230. package/twitter-ac21b505-CGWVGWM9.mjs +15 -0
  231. package/twitter-ac21b505-DDdHS4hB.js +12 -0
  232. package/unknown-ed01a24c-B0AcMuip.js +20 -0
  233. package/unknown-ed01a24c-DonOUpIC.mjs +23 -0
  234. package/up-and-down-d747abee-CWoZjUyq.js +10 -0
  235. package/up-and-down-d747abee-D7g6H0T0.mjs +13 -0
  236. package/user-71ebdc15-BBKQbcQD.js +14 -0
  237. package/user-71ebdc15-CoHlCtJg.mjs +17 -0
  238. package/youtube-efbfbdc4-BLTH1Jl9.js +12 -0
  239. package/youtube-efbfbdc4-BfySbfjR.mjs +15 -0
  240. package/.eslintrc.json +0 -18
  241. package/project.json +0 -9
  242. package/src/generated/components.ts +0 -374
  243. package/src/generated/vue-component-lib/utils.ts +0 -236
  244. package/src/index.ts +0 -1
  245. package/src/vue-shims.d.ts +0 -5
  246. package/tsconfig.json +0 -18
  247. package/tsconfig.lib.json +0 -27
  248. package/vite.config.ts +0 -71
@@ -0,0 +1,162 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),t=()=>e.h("div",{class:"static-content container"},e.h("h2",null,"Load the module"),e.h("p",null,"Integrating the EBRAINS UI Components to a project ",e.h("b",null,"with or 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("p",null,"This snippet is part of the Stencil component loader system. Under the hood, it does the following:"),e.h("eds-steps",{steps:[{title:"Import the Loader Module",content:"The script imports the defineCustomElements function from the Stencil-generated loader module hosted at a CDN. This module contains the registration logic for all your custom components."},{title:"Register Custom Elements",content:"Calling defineCustomElements(window) loops through the available components and registers each one with the browser using customElements.define(). This makes your custom elements available in the DOM."},{title:"Lazy Loading in Action",content:"Although all components are registered on startup, their implementation code is lazy-loaded. This means a component's code is only fetched when it is first used, optimizing the initial load time."},{title:"Optimized Performance",content:"By registering components early and lazy-loading their implementations, the script helps maintain a fast startup while ensuring that all custom elements are ready for use when needed."}]}),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"}),e.h("h2",null,"Load the variables and styles"),e.h("p",null,"To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the"," ",e.h("code",null,"head"),". This approach is recommended when you’re working solely with the web components and want minimal integration. That said, the components are configured to require only these CSS variables and nothing more."),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/vars.css"/>',language:"css","copy-label":"Copy Code"}),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"),". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to css configurations."),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("p",null,"Note that, loading either the variables or the predefined CSS framework above,"," ",e.h("b",null,"automatically loads the fonts so you can skip loading them separately"),". If you wish, however, to load the fonts, 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/base/fonts.css"/>',language:"css","copy-label":"Copy Code"})),s=()=>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/react",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/angular",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/svgs",language:"html","copy-label":"Copy Code"}))),o=()=>e.h("div",null,e.h("h2",null,"React Wrappers"),e.h("p",null,"To use the EBRAINS web components in a React Application, simple install the package below and check out the examples"),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("p",null,"This code displays a Stencil-based splash screen that stays visible until an initialization promise resolves (or errors), then hides itself and reveals the main React app content."),e.h("eds-code-block",{code:`
9
+ import React, { useMemo, useState } from 'react';
10
+ import {
11
+ EdsHeader
12
+ EdsSplashScreen,
13
+ EdsMatomoNotice,
14
+ EdsSteps
15
+ } from '@ebrains/react';
16
+ import './app.css';
17
+
18
+ // simulate 2s
19
+ function fakeInit(): Promise<void> {
20
+ return new Promise(resolve => setTimeout(resolve, 2000));
21
+ }
22
+
23
+ export function App() {
24
+ // 1) create init promise
25
+ const initPromise = useMemo(() => fakeInit(), []);
26
+
27
+ // 2) is splash still visible
28
+ const [splashVisible, setSplashVisible] = useState(true);
29
+ const [initError, setInitError] = useState<string | null>(null);
30
+
31
+ // 3) show the UI after the splash has hidden
32
+ const showApp = !splashVisible && !initError;
33
+
34
+ return (
35
+ <div>
36
+ {splashVisible && (
37
+ <EdsSplashScreen
38
+ inverse={false}
39
+ initPromise={initPromise}
40
+ onSplash={(e: CustomEvent) => {
41
+ if (e.detail.type === 'hidden') {
42
+ setSplashVisible(false);
43
+ } else if (e.detail.type === 'error') {
44
+ setInitError(e.detail.message);
45
+ setSplashVisible(false);
46
+ }
47
+ }}
48
+ />
49
+ )}
50
+
51
+ {initError && (
52
+ <div className='error'>
53
+ Failed to initialize: {initError}
54
+ </div>
55
+ )}
56
+
57
+ {/* Show App only when ready */}
58
+ {showApp && (
59
+ <>
60
+ <EdsHeader></EdsHeader>
61
+ <EdsSteps
62
+ steps={[
63
+ {
64
+ title: 'Introduction',
65
+ content: 'Begin by familiarizing yourself with the overall process.'
66
+ },
67
+ {
68
+ title: 'Process Overview',
69
+ content: 'Review the detailed steps and understand the workflow.'
70
+ }
71
+ ]}
72
+ type='linear'
73
+ />
74
+
75
+ <EdsMatomoNotice />
76
+
77
+ <div id='root'></div>
78
+ </>
79
+ )}
80
+ </div>
81
+ );
82
+ }
83
+ export default App;
84
+ `,language:"javascript","copy-label":"Copy Code"}))),a=()=>e.h("div",null,e.h("h2",null,"Vue Wrappers"),e.h("p",null,"To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),e.h("eds-code-block",{code:"npm install @ebrains/vue",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:"my-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
85
+ message="This is a default informational alert."
86
+ intent="default"
87
+ :pressableLabel="Press Me"
88
+ :pressableUrl="https://ebrains.eu"
89
+ ></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("div",{class:"my-8"},e.h("eds-alert",{message:"Use the .prop modifier to ensure properties are passed correctly.",intent:"default"})),e.h("eds-code-block",{code:`<EdsAlert
90
+ message="This is a default informational alert."
91
+ intent="default"
92
+ :pressableLabel.prop="Press Me"
93
+ :pressableUrl.prop="https://ebrains.eu"
94
+ ></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:`
95
+ <template>
96
+ <div>
97
+ <EdsHeader></EdsHeader>
98
+ <!-- render the splash until we manually hide it -->
99
+ <EdsSplashScreen inverse="false" />
100
+
101
+ <!-- then show main UI -->
102
+ <div v-if="!splashVisible" class="container my-16">
103
+ <EdsSteps
104
+ :steps="JSON.stringify(stepsdata)"
105
+ type="linear"
106
+ />
107
+ </div>
108
+ </div>
109
+ </template>
110
+
111
+ <script>
112
+ import { EdsSplashScreen, EdsSteps, EdsHeader } from "@ebrains/vue";
113
+
114
+ export default {
115
+ name: "App",
116
+ components: { EdsHeader, EdsSplashScreen, EdsSteps },
117
+ data() {
118
+ return {
119
+ stepsdata: [
120
+ { title: "Introduction", content: "Begin by familiarizing yourself with the overall process." },
121
+ { title: "Process Overview", content: "Review the detailed steps and understand the workflow." }
122
+ ],
123
+ splashVisible: true
124
+ };
125
+ },
126
+ methods: {
127
+ delay(ms) {
128
+ return new Promise(resolve => setTimeout(resolve, ms));
129
+ },
130
+ async initialize() {
131
+ try {
132
+ // simulate your init work
133
+ await this.delay(2000);
134
+
135
+ // fire the built-in event that EdsSplashScreen listens for
136
+ window.dispatchEvent(new Event("hideSplash"));
137
+ } catch (e) {
138
+ console.error("Init error", e);
139
+ window.dispatchEvent(new Event("hideSplash"));
140
+ } finally {
141
+ // show the rest of the app
142
+ this.splashVisible = false;
143
+ }
144
+ }
145
+ },
146
+ mounted() {
147
+ this.initialize();
148
+ }
149
+ };
150
+ <\/script>
151
+ `,language:"javascript","copy-label":"Copy Code"}))),l=()=>e.h("div",null,e.h("h2",null,"Angular Wrappers"),e.h("p",null,"To use the EBRAINS web components in an Angular Application, simple install the package below and check out the examples. The Angular Stencil output type used for this package = `standalone`."),e.h("eds-code-block",{code:"npm install @ebrains/angular",language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Install the components dependency as this important for the angular package to work properly."),e.h("eds-code-block",{code:"npm install @ebrains/components",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';
152
+ defineCustomElements();`,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:`
153
+ <div class="container">
154
+ <eds-breadcrumb
155
+ intent="tertiary"
156
+ items="[
157
+ { "label": "Home", "url": "#" },
158
+ { "label": "Products", "url": "#" },
159
+ ]">
160
+ </eds-breadcrumb>
161
+ <eds-footer></eds-footer>
162
+ </div>`,language:"javascript","copy-label":"Copy Code"}))),i=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(s,null);case 2:return e.h(o,null);case 3:return e.h(a,null);case 4:return e.h(l,null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"d68c9ede251456d88ef2a033691927c87c8ec163",class:"container"},this.renderContent())}};exports.components_section=i;
@@ -0,0 +1,360 @@
1
+ import { r as t, h as e } from "./index-BvZ-fq9l.mjs";
2
+ const s = () => e(
3
+ "div",
4
+ { class: "static-content container" },
5
+ e("h2", null, "Load the module"),
6
+ e(
7
+ "p",
8
+ null,
9
+ "Integrating the EBRAINS UI Components to a project ",
10
+ e("b", null, "with or without a JavaScript framework"),
11
+ " 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 ",
12
+ e("code", null, "head"),
13
+ "."
14
+ ),
15
+ e("eds-code-block", { code: `<script type='module'>
16
+ import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js';
17
+ // Define custom elements
18
+ defineCustomElements(window);
19
+ <\/script>`, language: "javascript", "copy-label": "Copy Code" }),
20
+ e("p", null, "This snippet is part of the Stencil component loader system. Under the hood, it does the following:"),
21
+ e("eds-steps", { steps: [
22
+ {
23
+ title: "Import the Loader Module",
24
+ content: "The script imports the defineCustomElements function from the Stencil-generated loader module hosted at a CDN. This module contains the registration logic for all your custom components."
25
+ },
26
+ {
27
+ title: "Register Custom Elements",
28
+ content: "Calling defineCustomElements(window) loops through the available components and registers each one with the browser using customElements.define(). This makes your custom elements available in the DOM."
29
+ },
30
+ {
31
+ title: "Lazy Loading in Action",
32
+ content: "Although all components are registered on startup, their implementation code is lazy-loaded. This means a component's code is only fetched when it is first used, optimizing the initial load time."
33
+ },
34
+ {
35
+ title: "Optimized Performance",
36
+ content: "By registering components early and lazy-loading their implementations, the script helps maintain a fast startup while ensuring that all custom elements are ready for use when needed."
37
+ }
38
+ ] }),
39
+ e("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
40
+ e("eds-code-block", { code: `<eds-button
41
+ label="my bytton"
42
+ intent="primary">
43
+ </eds-button>`, language: "html", "copy-label": "Copy Code" }),
44
+ e("h2", null, "Load the variables and styles"),
45
+ e(
46
+ "p",
47
+ null,
48
+ "To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the",
49
+ " ",
50
+ e("code", null, "head"),
51
+ ". This approach is recommended when you’re working solely with the web components and want minimal integration. That said, the components are configured to require only these CSS variables and nothing more."
52
+ ),
53
+ e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/vars.css"/>', language: "css", "copy-label": "Copy Code" }),
54
+ e(
55
+ "p",
56
+ null,
57
+ "To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
58
+ " ",
59
+ e("code", null, "head"),
60
+ ". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to css configurations."
61
+ ),
62
+ e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
63
+ e(
64
+ "p",
65
+ null,
66
+ "Note that, loading either the variables or the predefined CSS framework above,",
67
+ " ",
68
+ e("b", null, "automatically loads the fonts so you can skip loading them separately"),
69
+ ". If you wish, however, to load the fonts, add the tag below to the ",
70
+ e("code", null, "head")
71
+ ),
72
+ e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" })
73
+ ), o = () => e(
74
+ "div",
75
+ null,
76
+ e("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."),
77
+ e(
78
+ "div",
79
+ { class: "my-8" },
80
+ e("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" })
81
+ ),
82
+ e(
83
+ "div",
84
+ { class: "my-8" },
85
+ e("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" })
86
+ ),
87
+ e(
88
+ "div",
89
+ { class: "my-8" },
90
+ e("eds-code-block", { code: "npm install @ebrains/vue", language: "html", "copy-label": "Copy Code" })
91
+ ),
92
+ e(
93
+ "div",
94
+ { class: "my-8" },
95
+ e("eds-code-block", { code: "npm install @ebrains/angular", language: "html", "copy-label": "Copy Code" })
96
+ ),
97
+ e(
98
+ "div",
99
+ { class: "my-8" },
100
+ e("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })
101
+ ),
102
+ e(
103
+ "div",
104
+ { class: "my-8" },
105
+ e("eds-code-block", { code: "npm install @ebrains/svgs", language: "html", "copy-label": "Copy Code" })
106
+ )
107
+ ), a = () => e(
108
+ "div",
109
+ null,
110
+ e("h2", null, "React Wrappers"),
111
+ e("p", null, "To use the EBRAINS web components in a React Application, simple install the package below and check out the examples"),
112
+ e("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" }),
113
+ e(
114
+ "eds-section-core",
115
+ { "section-title": "Example React App", "heading-level": "h3" },
116
+ e("p", null, "This code displays a Stencil-based splash screen that stays visible until an initialization promise resolves (or errors), then hides itself and reveals the main React app content."),
117
+ e("eds-code-block", { code: `
118
+ import React, { useMemo, useState } from 'react';
119
+ import {
120
+ EdsHeader
121
+ EdsSplashScreen,
122
+ EdsMatomoNotice,
123
+ EdsSteps
124
+ } from '@ebrains/react';
125
+ import './app.css';
126
+
127
+ // simulate 2s
128
+ function fakeInit(): Promise<void> {
129
+ return new Promise(resolve => setTimeout(resolve, 2000));
130
+ }
131
+
132
+ export function App() {
133
+ // 1) create init promise
134
+ const initPromise = useMemo(() => fakeInit(), []);
135
+
136
+ // 2) is splash still visible
137
+ const [splashVisible, setSplashVisible] = useState(true);
138
+ const [initError, setInitError] = useState<string | null>(null);
139
+
140
+ // 3) show the UI after the splash has hidden
141
+ const showApp = !splashVisible && !initError;
142
+
143
+ return (
144
+ <div>
145
+ {splashVisible && (
146
+ <EdsSplashScreen
147
+ inverse={false}
148
+ initPromise={initPromise}
149
+ onSplash={(e: CustomEvent) => {
150
+ if (e.detail.type === 'hidden') {
151
+ setSplashVisible(false);
152
+ } else if (e.detail.type === 'error') {
153
+ setInitError(e.detail.message);
154
+ setSplashVisible(false);
155
+ }
156
+ }}
157
+ />
158
+ )}
159
+
160
+ {initError && (
161
+ <div className='error'>
162
+ Failed to initialize: {initError}
163
+ </div>
164
+ )}
165
+
166
+ {/* Show App only when ready */}
167
+ {showApp && (
168
+ <>
169
+ <EdsHeader></EdsHeader>
170
+ <EdsSteps
171
+ steps={[
172
+ {
173
+ title: 'Introduction',
174
+ content: 'Begin by familiarizing yourself with the overall process.'
175
+ },
176
+ {
177
+ title: 'Process Overview',
178
+ content: 'Review the detailed steps and understand the workflow.'
179
+ }
180
+ ]}
181
+ type='linear'
182
+ />
183
+
184
+ <EdsMatomoNotice />
185
+
186
+ <div id='root'></div>
187
+ </>
188
+ )}
189
+ </div>
190
+ );
191
+ }
192
+ export default App;
193
+ `, language: "javascript", "copy-label": "Copy Code" })
194
+ )
195
+ ), l = () => e(
196
+ "div",
197
+ null,
198
+ e("h2", null, "Vue Wrappers"),
199
+ e("p", null, "To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),
200
+ e("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
201
+ e(
202
+ "h2",
203
+ null,
204
+ "Passing Properties to Custom Elements Using the ",
205
+ e("b", null, ".prop"),
206
+ " Modifier in Vue Wrappers"
207
+ ),
208
+ e("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."),
209
+ e(
210
+ "h3",
211
+ null,
212
+ "How to Use the ",
213
+ e("b", null, ".prop"),
214
+ " Modifier"
215
+ ),
216
+ e("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:"),
217
+ e(
218
+ "div",
219
+ { class: "my-8" },
220
+ e("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })
221
+ ),
222
+ e("eds-code-block", { code: `<EdsAlert
223
+ message="This is a default informational alert."
224
+ intent="default"
225
+ :pressableLabel="Press Me"
226
+ :pressableUrl="https://ebrains.eu"
227
+ ></EdsAlert>`, language: "javascript", "copy-label": "Copy Code" }),
228
+ e(
229
+ "div",
230
+ { class: "my-8" },
231
+ e("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "default" })
232
+ ),
233
+ e("eds-code-block", { code: `<EdsAlert
234
+ message="This is a default informational alert."
235
+ intent="default"
236
+ :pressableLabel.prop="Press Me"
237
+ :pressableUrl.prop="https://ebrains.eu"
238
+ ></EdsAlert>`, language: "javascript", "copy-label": "Copy Code" }),
239
+ e(
240
+ "p",
241
+ null,
242
+ "Using the ",
243
+ e("b", null, ".prop"),
244
+ " 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."
245
+ ),
246
+ e(
247
+ "eds-section-core",
248
+ { "section-title": "Example Vue App", "heading-level": "h3" },
249
+ e("eds-code-block", { code: `
250
+ <template>
251
+ <div>
252
+ <EdsHeader></EdsHeader>
253
+ <!-- render the splash until we manually hide it -->
254
+ <EdsSplashScreen inverse="false" />
255
+
256
+ <!-- then show main UI -->
257
+ <div v-if="!splashVisible" class="container my-16">
258
+ <EdsSteps
259
+ :steps="JSON.stringify(stepsdata)"
260
+ type="linear"
261
+ />
262
+ </div>
263
+ </div>
264
+ </template>
265
+
266
+ <script>
267
+ import { EdsSplashScreen, EdsSteps, EdsHeader } from "@ebrains/vue";
268
+
269
+ export default {
270
+ name: "App",
271
+ components: { EdsHeader, EdsSplashScreen, EdsSteps },
272
+ data() {
273
+ return {
274
+ stepsdata: [
275
+ { title: "Introduction", content: "Begin by familiarizing yourself with the overall process." },
276
+ { title: "Process Overview", content: "Review the detailed steps and understand the workflow." }
277
+ ],
278
+ splashVisible: true
279
+ };
280
+ },
281
+ methods: {
282
+ delay(ms) {
283
+ return new Promise(resolve => setTimeout(resolve, ms));
284
+ },
285
+ async initialize() {
286
+ try {
287
+ // simulate your init work
288
+ await this.delay(2000);
289
+
290
+ // fire the built-in event that EdsSplashScreen listens for
291
+ window.dispatchEvent(new Event("hideSplash"));
292
+ } catch (e) {
293
+ console.error("Init error", e);
294
+ window.dispatchEvent(new Event("hideSplash"));
295
+ } finally {
296
+ // show the rest of the app
297
+ this.splashVisible = false;
298
+ }
299
+ }
300
+ },
301
+ mounted() {
302
+ this.initialize();
303
+ }
304
+ };
305
+ <\/script>
306
+ `, language: "javascript", "copy-label": "Copy Code" })
307
+ )
308
+ ), i = () => e(
309
+ "div",
310
+ null,
311
+ e("h2", null, "Angular Wrappers"),
312
+ e("p", null, "To use the EBRAINS web components in an Angular Application, simple install the package below and check out the examples. The Angular Stencil output type used for this package = `standalone`."),
313
+ e("eds-code-block", { code: "npm install @ebrains/angular", language: "javascript", "copy-label": "Copy Code" }),
314
+ e("p", null, "Install the components dependency as this important for the angular package to work properly."),
315
+ e("eds-code-block", { code: "npm install @ebrains/components", language: "javascript", "copy-label": "Copy Code" }),
316
+ e("p", null, "Define the custom elements"),
317
+ e("eds-code-block", { code: `import { defineCustomElements } from '@ebrains/components/loader';
318
+ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
319
+ e(
320
+ "eds-section-core",
321
+ { "section-title": "Example Angular App", "heading-level": "h3" },
322
+ e("eds-code-block", { code: `
323
+ <div class="container">
324
+ <eds-breadcrumb
325
+ intent="tertiary"
326
+ items="[
327
+ { "label": "Home", "url": "#" },
328
+ { "label": "Products", "url": "#" },
329
+ ]">
330
+ </eds-breadcrumb>
331
+ <eds-footer></eds-footer>
332
+ </div>`, language: "javascript", "copy-label": "Copy Code" })
333
+ )
334
+ ), d = class {
335
+ constructor(n) {
336
+ t(this, n), this.tabIndex = void 0;
337
+ }
338
+ renderContent() {
339
+ switch (this.tabIndex) {
340
+ case 0:
341
+ return e(s, null);
342
+ case 1:
343
+ return e(o, null);
344
+ case 2:
345
+ return e(a, null);
346
+ case 3:
347
+ return e(l, null);
348
+ case 4:
349
+ return e(i, null);
350
+ default:
351
+ return e("p", null, "Content not available.");
352
+ }
353
+ }
354
+ render() {
355
+ return e("div", { key: "d68c9ede251456d88ef2a033691927c87c8ec163", class: "container" }, this.renderContent());
356
+ }
357
+ };
358
+ export {
359
+ d as components_section
360
+ };
@@ -0,0 +1,6 @@
1
+ const o = `<svg width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path>
3
+ </svg>`;
4
+ export {
5
+ o as c
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";const o=`<svg width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path>
3
+ </svg>`;exports.copy=o;
@@ -0,0 +1,59 @@
1
+ import { r as c, h as e } from "./index-BvZ-fq9l.mjs";
2
+ const s = [
3
+ {
4
+ background: "#9CE142"
5
+ },
6
+ {
7
+ background: "#00C959"
8
+ },
9
+ {
10
+ background: "#00A595"
11
+ }
12
+ ], a = [
13
+ {
14
+ background: "#141414"
15
+ },
16
+ {
17
+ background: "#383838"
18
+ },
19
+ {
20
+ background: "#CCCCCC"
21
+ },
22
+ {
23
+ background: "#E6E6E6"
24
+ },
25
+ {
26
+ background: "#FFFFFF"
27
+ }
28
+ ], d = [
29
+ {
30
+ background: "#3FA9F5"
31
+ },
32
+ {
33
+ background: "#0644F4"
34
+ }
35
+ ], t = [
36
+ {
37
+ background: "#C461FF"
38
+ },
39
+ {
40
+ background: "#5D3DF9"
41
+ }
42
+ ], o = [
43
+ {
44
+ background: "#FFA543"
45
+ },
46
+ {
47
+ background: "#FF4D68"
48
+ }
49
+ ], n = class {
50
+ constructor(l) {
51
+ c(this, l);
52
+ }
53
+ render() {
54
+ return e("div", { key: "eb7fe8a13ba44aa0b8327fd042177817577aa9ca", class: "container" }, e("p", { key: "b9e731a3184cc72a0dd4c31bc207185789b1c747", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "9ac1f24993a47743b62504a9ac5cfaa67ea94867", label: "primary", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", e("eds-link", { key: "82eb7946b881f69719a7785ded23355e34aa3023", label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), e("div", { key: "a1bde4ba25a05fdc3a43bd008748f0ae74224142", class: "flex" }, e("div", { key: "e6399a78c1d41e79041ad0e91356468e9e94a004", class: "w-full" }, e("ul", { key: "438acfe268f49ca5b77c20af74213283ac68e851", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, s.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } }))))), e("div", { key: "41cf8ea398e273788e32889e705debd21f102a9f", class: "w-full" }, e("ul", { key: "b200fe46847e64efee26fb863151f08e2a175220", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, a.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } })))))), e("p", { key: "9fe567482bfbad7fc0bc4083756622259fd83e45", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "bd26b1b4c4ac1082eef246f9d1b6b13245b1d69f", label: "purple", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", e("eds-link", { key: "b3a9897628cdcb7086397d7f7662591da4debdd4", label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), e("div", { key: "fc54b467ddd6faa62e81fe56170f0ed43fccd52e", class: "flex" }, e("div", { key: "930d475074e002439847f152d95ed1f764536791", class: "w-full" }, e("ul", { key: "ad8085fd5a4dcc8cd4cc2a4c0d6522673b0f69c3", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, t.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } }))))), e("div", { key: "c9d7c736f8248fa7f1b689ec7a8eed24853de384", class: "w-full" }, e("ul", { key: "9191d41ef9f3947f91420e925f4ae5029aaf0e73", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, a.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } })))))), e("p", { key: "ed9e3ebc14a1ecd0744d8adf6b58df54a325565f", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "5104e373031bc9381db7e274fba47f3d36d8fc14", label: "blue", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", e("eds-link", { key: "2d0ff6d98eaf2b195725eb87b1cf8c264071787c", label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), e("div", { key: "a660e8df517ab4c1b4b47fa777bd0e5c06156161", class: "flex" }, e("div", { key: "7346d762b781cf27fdf784a1100608b74a28eaca", class: "w-full" }, e("ul", { key: "91a7f50ffb513045c7d52987ecd33f3707332083", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, d.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } }))))), e("div", { key: "e4d61bb10342c7c27e19a5fc43a3823e2ac36db7", class: "w-full" }, e("ul", { key: "ab40fb356845c3c15255a591299d3aa3a4bcd415", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, a.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } })))))), e("p", { key: "15c61baa18cac41eefdfd631e6e62d8ad665fd00", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "8abd1e309700248f865906e667ffdb2db172c923", label: "redish", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", e("eds-link", { key: "9cc22cdc51c4e6b5ea28afd62e5b7fe10b6f57bf", label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), e("div", { key: "8cb15f36de63b4425be410d395b56829427a2b13", class: "flex" }, e("div", { key: "e47f595ad0af29333fdb3090eae08b65b908e87d", class: "w-full" }, e("ul", { key: "27b7f0ee1650d169f17bee8a776ced534c2f8b37", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, o.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } }))))), e("div", { key: "40ed8de907089964f83ce2ebd2734b00ba378847", class: "w-full" }, e("ul", { key: "8b1bdd17aa9e0c60484120b58e67ec3d09ddc533", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, a.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } })))))));
55
+ }
56
+ };
57
+ export {
58
+ n as correct_use_of_colors
59
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),c=[{background:"#9CE142"},{background:"#00C959"},{background:"#00A595"}],a=[{background:"#141414"},{background:"#383838"},{background:"#CCCCCC"},{background:"#E6E6E6"},{background:"#FFFFFF"}],s=[{background:"#3FA9F5"},{background:"#0644F4"}],d=[{background:"#C461FF"},{background:"#5D3DF9"}],t=[{background:"#FFA543"},{background:"#FF4D68"}],o=class{constructor(l){e.registerInstance(this,l)}render(){return e.h("div",{key:"eb7fe8a13ba44aa0b8327fd042177817577aa9ca",class:"container"},e.h("p",{key:"b9e731a3184cc72a0dd4c31bc207185789b1c747",class:"f-body-01"},"This guide demonstrates the correct usage of the",e.h("eds-link",{key:"9ac1f24993a47743b62504a9ac5cfaa67ea94867",label:"primary",size:"small",intent:"underline",icon:"chevron-right",url:"../color-palette/#primary-palette","extra-class":"inline-block ml-4"}),"and",e.h("eds-link",{key:"82eb7946b881f69719a7785ded23355e34aa3023",label:"support",size:"small",intent:"underline",icon:"chevron-right",url:"../color-palette/#support-palette","extra-class":"inline-block ml-4"}),"color palettes."),e.h("div",{key:"a1bde4ba25a05fdc3a43bd008748f0ae74224142",class:"flex"},e.h("div",{key:"e6399a78c1d41e79041ad0e91356468e9e94a004",class:"w-full"},e.h("ul",{key:"438acfe268f49ca5b77c20af74213283ac68e851",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},c.map(l=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[150px] effect-height flex items-center justify-between p-16",style:{backgroundColor:l.background}}))))),e.h("div",{key:"41cf8ea398e273788e32889e705debd21f102a9f",class:"w-full"},e.h("ul",{key:"b200fe46847e64efee26fb863151f08e2a175220",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},a.map(l=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[90px] effect-height flex items-center justify-between p-16",style:{backgroundColor:l.background}})))))),e.h("p",{key:"9fe567482bfbad7fc0bc4083756622259fd83e45",class:"f-body-01"},"This guide demonstrates the correct usage of the",e.h("eds-link",{key:"bd26b1b4c4ac1082eef246f9d1b6b13245b1d69f",label:"purple",size:"small",intent:"underline",icon:"chevron-right",url:"../color-palette/#primary-palette","extra-class":"inline-block ml-4"}),"and",e.h("eds-link",{key:"b3a9897628cdcb7086397d7f7662591da4debdd4",label:"support",size:"small",intent:"underline",icon:"chevron-right",url:"../color-palette/#support-palette","extra-class":"inline-block ml-4"}),"color palettes."),e.h("div",{key:"fc54b467ddd6faa62e81fe56170f0ed43fccd52e",class:"flex"},e.h("div",{key:"930d475074e002439847f152d95ed1f764536791",class:"w-full"},e.h("ul",{key:"ad8085fd5a4dcc8cd4cc2a4c0d6522673b0f69c3",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},d.map(l=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[225px] effect-height flex items-center justify-between p-16",style:{backgroundColor:l.background}}))))),e.h("div",{key:"c9d7c736f8248fa7f1b689ec7a8eed24853de384",class:"w-full"},e.h("ul",{key:"9191d41ef9f3947f91420e925f4ae5029aaf0e73",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},a.map(l=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[90px] effect-height flex items-center justify-between p-16",style:{backgroundColor:l.background}})))))),e.h("p",{key:"ed9e3ebc14a1ecd0744d8adf6b58df54a325565f",class:"f-body-01"},"This guide demonstrates the correct usage of the",e.h("eds-link",{key:"5104e373031bc9381db7e274fba47f3d36d8fc14",label:"blue",size:"small",intent:"underline",icon:"chevron-right",url:"../color-palette/#primary-palette","extra-class":"inline-block ml-4"}),"and",e.h("eds-link",{key:"2d0ff6d98eaf2b195725eb87b1cf8c264071787c",label:"support",size:"small",intent:"underline",icon:"chevron-right",url:"../color-palette/#support-palette","extra-class":"inline-block ml-4"}),"color palettes."),e.h("div",{key:"a660e8df517ab4c1b4b47fa777bd0e5c06156161",class:"flex"},e.h("div",{key:"7346d762b781cf27fdf784a1100608b74a28eaca",class:"w-full"},e.h("ul",{key:"91a7f50ffb513045c7d52987ecd33f3707332083",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},s.map(l=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[225px] effect-height flex items-center justify-between p-16",style:{backgroundColor:l.background}}))))),e.h("div",{key:"e4d61bb10342c7c27e19a5fc43a3823e2ac36db7",class:"w-full"},e.h("ul",{key:"ab40fb356845c3c15255a591299d3aa3a4bcd415",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},a.map(l=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[90px] effect-height flex items-center justify-between p-16",style:{backgroundColor:l.background}})))))),e.h("p",{key:"15c61baa18cac41eefdfd631e6e62d8ad665fd00",class:"f-body-01"},"This guide demonstrates the correct usage of the",e.h("eds-link",{key:"8abd1e309700248f865906e667ffdb2db172c923",label:"redish",size:"small",intent:"underline",icon:"chevron-right",url:"../color-palette/#primary-palette","extra-class":"inline-block ml-4"}),"and",e.h("eds-link",{key:"9cc22cdc51c4e6b5ea28afd62e5b7fe10b6f57bf",label:"support",size:"small",intent:"underline",icon:"chevron-right",url:"../color-palette/#support-palette","extra-class":"inline-block ml-4"}),"color palettes."),e.h("div",{key:"8cb15f36de63b4425be410d395b56829427a2b13",class:"flex"},e.h("div",{key:"e47f595ad0af29333fdb3090eae08b65b908e87d",class:"w-full"},e.h("ul",{key:"27b7f0ee1650d169f17bee8a776ced534c2f8b37",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},t.map(l=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[225px] effect-height flex items-center justify-between p-16",style:{backgroundColor:l.background}}))))),e.h("div",{key:"40ed8de907089964f83ce2ebd2734b00ba378847",class:"w-full"},e.h("ul",{key:"8b1bdd17aa9e0c60484120b58e67ec3d09ddc533",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},a.map(l=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[90px] effect-height flex items-center justify-between p-16",style:{backgroundColor:l.background}})))))))}};exports.correct_use_of_colors=o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.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:"638d6345ed0e32bda5d350f7ee8e54055d7fe770",class:"container"},this.renderContent())}};exports.docs_palettes=l;