@ebrains/vue 0.9.0-beta → 0.9.2-beta

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 (267) hide show
  1. package/.eslintrc.json +18 -0
  2. package/LICENSE +21 -0
  3. package/README.md +5 -1
  4. package/package.json +1 -1
  5. package/project.json +9 -0
  6. package/src/generated/components.ts +374 -0
  7. package/src/generated/vue-component-lib/utils.ts +236 -0
  8. package/src/index.ts +1 -0
  9. package/src/vue-shims.d.ts +5 -0
  10. package/tsconfig.json +18 -0
  11. package/tsconfig.lib.json +27 -0
  12. package/vite.config.ts +71 -0
  13. package/analytics-44b1416b-3vYuu4Xs.mjs +0 -28
  14. package/analytics-44b1416b-ol77SdQE.js +0 -1
  15. package/arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs +0 -4
  16. package/arrow-diagonal-black-8f0494c3-DqsB6ni-.js +0 -1
  17. package/arrow-right-9322ba8a-DBcxNU_p.js +0 -3
  18. package/arrow-right-9322ba8a-DHq-_PPe.mjs +0 -6
  19. package/bluesky-cc5edd2d-DaFQc-pr.js +0 -12
  20. package/bluesky-cc5edd2d-DfuDDO5h.mjs +0 -15
  21. package/bookmark-c200037c-CIcZ51ZQ.js +0 -14
  22. package/bookmark-c200037c-ClkCtyRY.mjs +0 -17
  23. package/chevron-down-6144c823-DWGlv9eV.mjs +0 -13
  24. package/chevron-down-6144c823-D_8976Ke.js +0 -10
  25. package/chevron-left-ca6c66e1-DANhLw_T.mjs +0 -12
  26. package/chevron-left-ca6c66e1-uCH5SUhm.js +0 -9
  27. package/chevron-right-b88ed2d4-C7dkTMvP.js +0 -3
  28. package/chevron-right-b88ed2d4-CgEZBvy7.mjs +0 -6
  29. package/chevron-up-c66bd477-ByW7R48t.js +0 -10
  30. package/chevron-up-c66bd477-CETJkshq.mjs +0 -13
  31. package/close-87fc0d63-Cbd-ScJr.js +0 -3
  32. package/close-87fc0d63-DtDU2HIU.mjs +0 -6
  33. package/color-2554aad6-CCcV5UJZ.mjs +0 -131
  34. package/color-2554aad6-D1hFGX4H.js +0 -1
  35. package/color-primary-palette_6.entry-B00J5gKq.js +0 -1
  36. package/color-primary-palette_6.entry-DJl4iXuX.mjs +0 -300
  37. package/components-section.entry-Bp5Ot0Sn.js +0 -162
  38. package/components-section.entry-CMHPm3bn.mjs +0 -351
  39. package/copy-03b72cb6-B_WCNQrG.mjs +0 -6
  40. package/copy-03b72cb6-CZAFAegx.js +0 -3
  41. package/correct-use-of-colors.entry-BRM7osKs.js +0 -1
  42. package/correct-use-of-colors.entry-BcZ8MzKb.mjs +0 -59
  43. package/docs-palettes.entry-BoEjXr5K.js +0 -1
  44. package/docs-palettes.entry-CkVHcQbL.mjs +0 -22
  45. package/docs-tokens.entry-C22LSw0P.js +0 -1
  46. package/docs-tokens.entry-D38mtdPC.mjs +0 -30
  47. package/eds-accordion.entry-B25YfdGD.js +0 -4
  48. package/eds-accordion.entry-ivh1zjpt.mjs +0 -48
  49. package/eds-alert.entry-C0p3qeqh.js +0 -739
  50. package/eds-alert.entry-DOCbYqvG.mjs +0 -825
  51. package/eds-app-root.entry-AYVIYcb1.mjs +0 -25
  52. package/eds-app-root.entry-DfPrDdc_.js +0 -1
  53. package/eds-avatar_24.entry-BcY_4aZT.mjs +0 -33279
  54. package/eds-avatar_24.entry-DBYYqNco.js +0 -31821
  55. package/eds-breadcrumb.entry-BTYLNHlm.mjs +0 -104
  56. package/eds-breadcrumb.entry-Drb48V7S.js +0 -1
  57. package/eds-card-desc_3.entry-BlQBUPMR.js +0 -1
  58. package/eds-card-desc_3.entry-DtsrKQS6.mjs +0 -83
  59. package/eds-card-generic.entry-Dtfs4XKl.mjs +0 -56
  60. package/eds-card-generic.entry-w0E2hhjp.js +0 -1
  61. package/eds-card-project.entry-Cek2GMTn.js +0 -1
  62. package/eds-card-project.entry-Cy_NC5av.mjs +0 -44
  63. package/eds-card-section.entry-D1yKOTXz.mjs +0 -30
  64. package/eds-card-section.entry-DLE2WAV_.js +0 -1
  65. package/eds-card-tags.entry-CmRv-oB4.js +0 -1
  66. package/eds-card-tags.entry-Q9xxbeAG.mjs +0 -13
  67. package/eds-card-tool.entry-DF_jWDUL.js +0 -1
  68. package/eds-card-tool.entry-Dgi1G1RH.mjs +0 -56
  69. package/eds-card-wrapper.entry-DZZOVhcJ.js +0 -1
  70. package/eds-card-wrapper.entry-k-aNj4Ms.mjs +0 -24
  71. package/eds-code-block.entry-BjrDmUCm.mjs +0 -1623
  72. package/eds-code-block.entry-DoUacOW1.js +0 -9
  73. package/eds-cookies-preference.entry-B7gp0J-S.js +0 -1
  74. package/eds-cookies-preference.entry-DkA2HKmI.mjs +0 -20
  75. package/eds-feedback.entry-C9Ir38bt.mjs +0 -53
  76. package/eds-feedback.entry-GNZz9ODR.js +0 -1
  77. package/eds-frame.entry-CcmLaVze.mjs +0 -67
  78. package/eds-frame.entry-XyeUo6pB.js +0 -1
  79. package/eds-icon-arrow-diagonal.entry-B0dxbX_o.mjs +0 -13
  80. package/eds-icon-arrow-diagonal.entry-o5Ev_oO7.js +0 -1
  81. package/eds-icon-arrow-right.entry-DUHmdP-V.js +0 -1
  82. package/eds-icon-arrow-right.entry-DpdjX5aS.mjs +0 -13
  83. package/eds-icon-bluesky.entry-Bv0-EDnj.js +0 -1
  84. package/eds-icon-bluesky.entry-DkSAjnck.mjs +0 -13
  85. package/eds-icon-bookmark.entry-Bjzq8uze.js +0 -1
  86. package/eds-icon-bookmark.entry-C_0B6YJU.mjs +0 -13
  87. package/eds-icon-chevron-down.entry-BERHGaTB.js +0 -1
  88. package/eds-icon-chevron-down.entry-DnKTBqKv.mjs +0 -13
  89. package/eds-icon-chevron-left.entry-Bo8LqkIz.js +0 -1
  90. package/eds-icon-chevron-left.entry-DT2At_f6.mjs +0 -13
  91. package/eds-icon-chevron-right.entry-BFoMlLTp.mjs +0 -13
  92. package/eds-icon-chevron-right.entry-DyqeLE1B.js +0 -1
  93. package/eds-icon-chevron-up.entry-Bpy8lbif.js +0 -1
  94. package/eds-icon-chevron-up.entry-JSrFaEET.mjs +0 -13
  95. package/eds-icon-close.entry-CzIoe2p3.mjs +0 -13
  96. package/eds-icon-close.entry-cabdCuVg.js +0 -1
  97. package/eds-icon-copy.entry-C08qTrZl.mjs +0 -13
  98. package/eds-icon-copy.entry-CvpG2Kxo.js +0 -1
  99. package/eds-icon-eu.entry-ChZ09s02.mjs +0 -13
  100. package/eds-icon-eu.entry-H2skG2J6.js +0 -1
  101. package/eds-icon-external.entry-DKbmbXLG.mjs +0 -13
  102. package/eds-icon-external.entry-DVlEoMZl.js +0 -1
  103. package/eds-icon-facebook.entry-4bvKyXXu.mjs +0 -13
  104. package/eds-icon-facebook.entry-COSHMM4W.js +0 -1
  105. package/eds-icon-gitlab.entry-BXLfky5G.mjs +0 -13
  106. package/eds-icon-gitlab.entry-D_zX1Jsy.js +0 -1
  107. package/eds-icon-linkedin.entry-CjXcA0DQ.js +0 -1
  108. package/eds-icon-linkedin.entry-_3H4M1ch.mjs +0 -13
  109. package/eds-icon-loader.entry-BA-W8oxC.js +0 -1
  110. package/eds-icon-loader.entry-Cp3B6C_B.mjs +0 -13
  111. package/eds-icon-mastodon.entry-Bmb_O0hs.mjs +0 -13
  112. package/eds-icon-mastodon.entry-DUFdG1dJ.js +0 -1
  113. package/eds-icon-menu.entry-DOdmibhy.mjs +0 -13
  114. package/eds-icon-menu.entry-Qg4r_OkP.js +0 -1
  115. package/eds-icon-minus.entry-8htg5ASo.mjs +0 -13
  116. package/eds-icon-minus.entry-Diem-PL4.js +0 -1
  117. package/eds-icon-more.entry-BY-mI4ec.js +0 -1
  118. package/eds-icon-more.entry-DyWgD7vJ.mjs +0 -13
  119. package/eds-icon-paper.entry-BI3DMxCS.mjs +0 -13
  120. package/eds-icon-paper.entry-D2mmnsXf.js +0 -1
  121. package/eds-icon-plus.entry-B8KAaEGT.js +0 -1
  122. package/eds-icon-plus.entry-Ccr7jseH.mjs +0 -13
  123. package/eds-icon-portal.entry-BLhT9_Nz.js +0 -1
  124. package/eds-icon-portal.entry-D2iNYdZW.mjs +0 -13
  125. package/eds-icon-private.entry-CK2gzDym.mjs +0 -13
  126. package/eds-icon-private.entry-ToYtRpET.js +0 -1
  127. package/eds-icon-public.entry-BOnTLyd7.js +0 -1
  128. package/eds-icon-public.entry-N8tks7_E.mjs +0 -13
  129. package/eds-icon-search.entry-C9tMq1XC.js +0 -1
  130. package/eds-icon-search.entry-DuG-zesK.mjs +0 -13
  131. package/eds-icon-star.entry-B-PeifnZ.mjs +0 -13
  132. package/eds-icon-star.entry-CHoursjw.js +0 -1
  133. package/eds-icon-success.entry-BJm--l5m.mjs +0 -13
  134. package/eds-icon-success.entry-ED6eDDgi.js +0 -1
  135. package/eds-icon-thumbs-down.entry-BzEfZ1AX.mjs +0 -13
  136. package/eds-icon-thumbs-down.entry-zjkeVdJJ.js +0 -1
  137. package/eds-icon-thumbs-up.entry-CZJlAqFh.js +0 -1
  138. package/eds-icon-thumbs-up.entry-DutZ0Kki.mjs +0 -13
  139. package/eds-icon-tutorial.entry-DRMLIdl4.mjs +0 -13
  140. package/eds-icon-tutorial.entry-D_9AQ-6-.js +0 -1
  141. package/eds-icon-twitter.entry-CJhiAxNu.mjs +0 -13
  142. package/eds-icon-twitter.entry-DDsRqP6N.js +0 -1
  143. package/eds-icon-unknown.entry-57uXdegM.mjs +0 -13
  144. package/eds-icon-unknown.entry-7Mmqc2BG.js +0 -1
  145. package/eds-icon-updown.entry-BwdgdGgR.mjs +0 -13
  146. package/eds-icon-updown.entry-b0BvWM4f.js +0 -1
  147. package/eds-icon-user.entry-BJ7Wi5JO.mjs +0 -13
  148. package/eds-icon-user.entry-czB7LMt8.js +0 -1
  149. package/eds-icon-youtube.entry-BWP1dBVD.mjs +0 -13
  150. package/eds-icon-youtube.entry-v007UjBQ.js +0 -1
  151. package/eds-login_2.entry-BfzeZBGw.mjs +0 -981
  152. package/eds-login_2.entry-DmBDAFIz.js +0 -9
  153. package/eds-matomo-notice.entry-B-MlwGCp.mjs +0 -90
  154. package/eds-matomo-notice.entry-CCiq7z7U.js +0 -1
  155. package/eds-modal.entry-DU5qpx-i.js +0 -1
  156. package/eds-modal.entry-puAN0sn-.mjs +0 -96
  157. package/eds-pagination_2.entry-CuaStxZg.js +0 -1
  158. package/eds-pagination_2.entry-DWzfLRgF.mjs +0 -258
  159. package/eds-progress-bar.entry-BRTtAttw.mjs +0 -21
  160. package/eds-progress-bar.entry-qScp3MQj.js +0 -1
  161. package/eds-rating.entry-CEI0zBir.mjs +0 -61
  162. package/eds-rating.entry-DOTYJZZ6.js +0 -1
  163. package/eds-section-core_2.entry-BZpOdGAA.mjs +0 -39
  164. package/eds-section-core_2.entry-Cmly0OqW.js +0 -1
  165. package/eds-spinner.entry-C_3hil-u.js +0 -1
  166. package/eds-spinner.entry-DLqey9r7.mjs +0 -36
  167. package/eds-switch.entry-BPHya25S.mjs +0 -20
  168. package/eds-switch.entry-IoOUDh10.js +0 -1
  169. package/eds-tabs.entry-DEOntaY1.mjs +0 -7880
  170. package/eds-tabs.entry-lqdai_rD.js +0 -7777
  171. package/eds-timeline.entry-CC0zKwha.js +0 -7777
  172. package/eds-timeline.entry-c1YpsWVJ.mjs +0 -7822
  173. package/eds-toast-manager.entry-BvunvxZX.mjs +0 -36
  174. package/eds-toast-manager.entry-DMZSCFoE.js +0 -1
  175. package/eds-toast.entry-DW3toqwW.mjs +0 -61
  176. package/eds-toast.entry-rudQ7nhp.js +0 -3
  177. package/eds-tooltip.entry-CcGgCRMO.js +0 -1
  178. package/eds-tooltip.entry-CoHV78jm.mjs +0 -77
  179. package/eds-trl.entry-CQOb5dk-.mjs +0 -34
  180. package/eds-trl.entry-L0XqQYCq.js +0 -1
  181. package/eu-9ddde93a-BFtIQw9B.js +0 -28
  182. package/eu-9ddde93a-ft4szvR5.mjs +0 -31
  183. package/facebook-9cb5c17f-BcUhbrj6.mjs +0 -15
  184. package/facebook-9cb5c17f-Y_gvQ682.js +0 -12
  185. package/generated/components.d.ts +0 -41
  186. package/generated/vue-component-lib/utils.d.ts +0 -16
  187. package/incorrect-use-of-colors.entry-C1QG9658.js +0 -1
  188. package/incorrect-use-of-colors.entry-C3Qt3gSE.mjs +0 -42
  189. package/index-39c58238-BwYCDOHZ.mjs +0 -44
  190. package/index-39c58238-SQ-JC-LH.js +0 -1
  191. package/index-cHrGUVDM.js +0 -21
  192. package/index-xVeSZU9j.mjs +0 -3633
  193. package/index.d.ts +0 -1
  194. package/index.js +0 -1
  195. package/index.mjs +0 -43
  196. package/linkedin-e8650abb-BkDrkjzY.js +0 -26
  197. package/linkedin-e8650abb-DYMdsale.mjs +0 -29
  198. package/loader-c9628637-ChpnbJkv.mjs +0 -31
  199. package/loader-c9628637-Vj8Wt1e8.js +0 -28
  200. package/logo-color-7f1fd803-CFgbXdt8.mjs +0 -116
  201. package/logo-color-7f1fd803-DRD3vZVn.js +0 -113
  202. package/logo-color-margins-ff8ce71b-B9nMsY9Q.mjs +0 -119
  203. package/logo-color-margins-ff8ce71b-Dk06zr1Z.js +0 -116
  204. package/logo-space.entry-H3itdzkq.mjs +0 -19
  205. package/logo-space.entry-epl_-703.js +0 -6
  206. package/logo-variations-horizontal_2.entry-CKLOzzOx.mjs +0 -29
  207. package/logo-variations-horizontal_2.entry-k6KqYji6.js +0 -7
  208. package/logo-variations-tabs.entry-BpYl8Gpo.js +0 -1
  209. package/logo-variations-tabs.entry-Df5DuYk-.mjs +0 -22
  210. package/logo-white-no-bg-f382f86f-DXYn3NwV.js +0 -1011
  211. package/logo-white-no-bg-f382f86f-YhfmNmGG.mjs +0 -1022
  212. package/logo-wrong-usage.entry-Bkg9gp3h.mjs +0 -14
  213. package/logo-wrong-usage.entry-DhlWm8es.js +0 -1
  214. package/mastodon-3703ec61-C7iI4Hk0.mjs +0 -15
  215. package/mastodon-3703ec61-C9v6Olc-.js +0 -12
  216. package/menu-340ea948-BpnYX3gY.mjs +0 -12
  217. package/menu-340ea948-ZdelWVw3.js +0 -9
  218. package/minus-b30a7c71-BPAvqHzH.mjs +0 -12
  219. package/minus-b30a7c71-DqCTe6Qh.js +0 -9
  220. package/mono-53f70232-DGi2XDlR.mjs +0 -12
  221. package/mono-53f70232-DgAsWvoQ.js +0 -9
  222. package/more-4449d549-D4HA1cRq.js +0 -11
  223. package/more-4449d549-rI9hOpEp.mjs +0 -14
  224. package/paper-8e74ea31-BvGrc1Vo.mjs +0 -16
  225. package/paper-8e74ea31-C4CV6tlB.js +0 -13
  226. package/plus-89c07be2-BTXnjg5K.js +0 -10
  227. package/plus-89c07be2-DyT9I4-L.mjs +0 -13
  228. package/portal-d6c8ce56-Cj61ldo8.mjs +0 -19
  229. package/portal-d6c8ce56-NpSrdNZ_.js +0 -16
  230. package/private-1c25ff8e-D3Fo36q6.js +0 -23
  231. package/private-1c25ff8e-Dz82_Xf8.mjs +0 -26
  232. package/public-d4d8c585-BJKDD5F6.mjs +0 -17
  233. package/public-d4d8c585-lV6QxdPw.js +0 -14
  234. package/search-fbcd79c2-BMxCaeEk.js +0 -10
  235. package/search-fbcd79c2-rfV0PlHP.mjs +0 -13
  236. package/sharedUtils-a550989c-Ci3Tx3jc.mjs +0 -15
  237. package/sharedUtils-a550989c-m4pF1Vqy.js +0 -1
  238. package/star-0da9b5e9-B3-jr0yE.js +0 -3
  239. package/star-0da9b5e9-DX8_iFmu.mjs +0 -6
  240. package/success-443809da-BD23vltm.mjs +0 -19
  241. package/success-443809da-BUEhLsAD.js +0 -16
  242. package/svg-repository.entry-C1TKYvU7.mjs +0 -301
  243. package/svg-repository.entry-DxVwTMCv.js +0 -173
  244. package/thumbs-down-a18fd049-CzuBAj99.mjs +0 -6
  245. package/thumbs-down-a18fd049-DTNIbYbm.js +0 -3
  246. package/thumbs-up-c19a71bc-CjLv5Wgw.mjs +0 -7
  247. package/thumbs-up-c19a71bc-w8Z8gegt.js +0 -4
  248. package/toastManager-d9eee791-CEYNwx25.mjs +0 -30
  249. package/toastManager-d9eee791-DvR_vUPI.js +0 -1
  250. package/token-list_3.entry-CABw7-9O.mjs +0 -247
  251. package/token-list_3.entry-CawIyAia.js +0 -1
  252. package/token-ratios.entry-BGWJSHfY.mjs +0 -25
  253. package/token-ratios.entry-B_FOHsNq.js +0 -1
  254. package/token-typography.entry-BHvTpH4i.mjs +0 -213
  255. package/token-typography.entry-FXRD_KVv.js +0 -2
  256. package/tutotial-150ee1fd-DFdyoHVA.mjs +0 -28
  257. package/tutotial-150ee1fd-DjN_JBL5.js +0 -25
  258. package/twitter-ac21b505-CGWVGWM9.mjs +0 -15
  259. package/twitter-ac21b505-DDdHS4hB.js +0 -12
  260. package/unknown-ed01a24c-B0AcMuip.js +0 -20
  261. package/unknown-ed01a24c-DonOUpIC.mjs +0 -23
  262. package/up-and-down-d747abee-CWoZjUyq.js +0 -10
  263. package/up-and-down-d747abee-D7g6H0T0.mjs +0 -13
  264. package/user-71ebdc15-BBKQbcQD.js +0 -14
  265. package/user-71ebdc15-CoHlCtJg.mjs +0 -17
  266. package/youtube-efbfbdc4-BLTH1Jl9.js +0 -12
  267. package/youtube-efbfbdc4-BfySbfjR.mjs +0 -15
@@ -1,351 +0,0 @@
1
- import { r as t, h as e } from "./index-xVeSZU9j.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 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",
10
- " ",
11
- e("code", null, "head"),
12
- "."
13
- ),
14
- e("eds-code-block", { code: `<script type='module'>
15
- import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js';
16
- // Define custom elements
17
- defineCustomElements(window);
18
- <\/script>`, language: "javascript", "copy-label": "Copy Code" }),
19
- e("p", null, "This snippet is part of the Stencil component loader system. Under the hood, it does the following:"),
20
- e("eds-steps", { steps: [
21
- {
22
- title: "Import the Loader Module",
23
- 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."
24
- },
25
- {
26
- title: "Register Custom Elements",
27
- 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."
28
- },
29
- {
30
- title: "Lazy Loading in Action",
31
- 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."
32
- },
33
- {
34
- title: "Optimized Performance",
35
- 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."
36
- }
37
- ] }),
38
- e("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
39
- e("eds-code-block", { code: `<eds-button
40
- label="my bytton"
41
- intent="primary">
42
- </eds-button>`, language: "html", "copy-label": "Copy Code" }),
43
- e("h2", null, "Load the styles"),
44
- e(
45
- "p",
46
- null,
47
- "To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
48
- " ",
49
- e("code", null, "head")
50
- ),
51
- e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
52
- e(
53
- "p",
54
- null,
55
- "To directly use only the produced variables add the tag below to the ",
56
- e("code", null, "head")
57
- ),
58
- e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/vars.css"/>', language: "css", "copy-label": "Copy Code" }),
59
- e(
60
- "p",
61
- null,
62
- "Note that, loading the predefined CSS framework above,",
63
- " ",
64
- e("b", null, "automatically loads the fonts so you can skip loading them separately"),
65
- ". If you wish, however, to load the fonts, add the tag below to the ",
66
- e("code", null, "head")
67
- ),
68
- 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" })
69
- ), o = () => e(
70
- "div",
71
- null,
72
- 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."),
73
- e(
74
- "div",
75
- { class: "my-8" },
76
- e("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" })
77
- ),
78
- e(
79
- "div",
80
- { class: "my-8" },
81
- e("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })
82
- ),
83
- e(
84
- "div",
85
- { class: "my-8" },
86
- e("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" })
87
- ),
88
- e(
89
- "div",
90
- { class: "my-8" },
91
- e("eds-code-block", { code: "npm install @ebrains/vue", language: "html", "copy-label": "Copy Code" })
92
- ),
93
- e(
94
- "div",
95
- { class: "my-8" },
96
- e("eds-code-block", { code: "npm install @ebrains/angular", language: "html", "copy-label": "Copy Code" })
97
- )
98
- ), a = () => e(
99
- "div",
100
- null,
101
- e("h2", null, "React Wrappers"),
102
- e("p", null, "To use the EBRAINS web components in a React Application, simple install the package below and check out the examples"),
103
- e("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" }),
104
- e(
105
- "eds-section-core",
106
- { "section-title": "Example React App", "heading-level": "h3" },
107
- 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."),
108
- e("eds-code-block", { code: `
109
- import React, { useMemo, useState } from 'react';
110
- import {
111
- EdsHeader
112
- EdsSplashScreen,
113
- EdsMatomoNotice,
114
- EdsSteps
115
- } from '@ebrains/react';
116
- import './app.css';
117
-
118
- // simulate 2s
119
- function fakeInit(): Promise<void> {
120
- return new Promise(resolve => setTimeout(resolve, 2000));
121
- }
122
-
123
- export function App() {
124
- // 1) create init promise
125
- const initPromise = useMemo(() => fakeInit(), []);
126
-
127
- // 2) is splash still visible
128
- const [splashVisible, setSplashVisible] = useState(true);
129
- const [initError, setInitError] = useState<string | null>(null);
130
-
131
- // 3) show the UI after the splash has hidden
132
- const showApp = !splashVisible && !initError;
133
-
134
- return (
135
- <div>
136
- {splashVisible && (
137
- <EdsSplashScreen
138
- inverse={false}
139
- initPromise={initPromise}
140
- onSplash={(e: CustomEvent) => {
141
- if (e.detail.type === 'hidden') {
142
- setSplashVisible(false);
143
- } else if (e.detail.type === 'error') {
144
- setInitError(e.detail.message);
145
- setSplashVisible(false);
146
- }
147
- }}
148
- />
149
- )}
150
-
151
- {initError && (
152
- <div className='error'>
153
- Failed to initialize: {initError}
154
- </div>
155
- )}
156
-
157
- {/* Show App only when ready */}
158
- {showApp && (
159
- <>
160
- <EdsHeader></EdsHeader>
161
- <EdsSteps
162
- steps={[
163
- {
164
- title: 'Introduction',
165
- content: 'Begin by familiarizing yourself with the overall process.'
166
- },
167
- {
168
- title: 'Process Overview',
169
- content: 'Review the detailed steps and understand the workflow.'
170
- }
171
- ]}
172
- type='linear'
173
- />
174
-
175
- <EdsMatomoNotice />
176
-
177
- <div id='root'></div>
178
- </>
179
- )}
180
- </div>
181
- );
182
- }
183
- export default App;
184
- `, language: "javascript", "copy-label": "Copy Code" })
185
- )
186
- ), l = () => e(
187
- "div",
188
- null,
189
- e("h2", null, "Vue Wrappers"),
190
- e("p", null, "To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),
191
- e("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
192
- e(
193
- "h2",
194
- null,
195
- "Passing Properties to Custom Elements Using the ",
196
- e("b", null, ".prop"),
197
- " Modifier in Vue Wrappers"
198
- ),
199
- 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."),
200
- e(
201
- "h3",
202
- null,
203
- "How to Use the ",
204
- e("b", null, ".prop"),
205
- " Modifier"
206
- ),
207
- 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:"),
208
- e(
209
- "div",
210
- { class: "my-8" },
211
- e("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })
212
- ),
213
- e("eds-code-block", { code: `<EdsAlert
214
- message="This is a default informational alert."
215
- intent="default"
216
- :pressableLabel="Press Me"
217
- :pressableUrl="https://ebrains.eu"
218
- ></EdsAlert>`, language: "javascript", "copy-label": "Copy Code" }),
219
- e(
220
- "div",
221
- { class: "my-8" },
222
- e("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "default" })
223
- ),
224
- e("eds-code-block", { code: `<EdsAlert
225
- message="This is a default informational alert."
226
- intent="default"
227
- :pressableLabel.prop="Press Me"
228
- :pressableUrl.prop="https://ebrains.eu"
229
- ></EdsAlert>`, language: "javascript", "copy-label": "Copy Code" }),
230
- e(
231
- "p",
232
- null,
233
- "Using the ",
234
- e("b", null, ".prop"),
235
- " 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."
236
- ),
237
- e(
238
- "eds-section-core",
239
- { "section-title": "Example Vue App", "heading-level": "h3" },
240
- e("eds-code-block", { code: `
241
- <template>
242
- <div>
243
- <EdsHeader></EdsHeader>
244
- <!-- render the splash until we manually hide it -->
245
- <EdsSplashScreen inverse="false" />
246
-
247
- <!-- then show main UI -->
248
- <div v-if="!splashVisible" class="container my-16">
249
- <EdsSteps
250
- :steps="JSON.stringify(stepsdata)"
251
- type="linear"
252
- />
253
- </div>
254
- </div>
255
- </template>
256
-
257
- <script>
258
- import { EdsSplashScreen, EdsSteps, EdsHeader } from "@ebrains/vue";
259
-
260
- export default {
261
- name: "App",
262
- components: { EdsHeader, EdsSplashScreen, EdsSteps },
263
- data() {
264
- return {
265
- stepsdata: [
266
- { title: "Introduction", content: "Begin by familiarizing yourself with the overall process." },
267
- { title: "Process Overview", content: "Review the detailed steps and understand the workflow." }
268
- ],
269
- splashVisible: true
270
- };
271
- },
272
- methods: {
273
- delay(ms) {
274
- return new Promise(resolve => setTimeout(resolve, ms));
275
- },
276
- async initialize() {
277
- try {
278
- // simulate your init work
279
- await this.delay(2000);
280
-
281
- // fire the built-in event that EdsSplashScreen listens for
282
- window.dispatchEvent(new Event("hideSplash"));
283
- } catch (e) {
284
- console.error("Init error", e);
285
- window.dispatchEvent(new Event("hideSplash"));
286
- } finally {
287
- // show the rest of the app
288
- this.splashVisible = false;
289
- }
290
- }
291
- },
292
- mounted() {
293
- this.initialize();
294
- }
295
- };
296
- <\/script>
297
- `, language: "javascript", "copy-label": "Copy Code" })
298
- )
299
- ), i = () => e(
300
- "div",
301
- null,
302
- e("h2", null, "Angular Wrappers"),
303
- e("p", null, "To use the EBRAINS web components in an Angular Application, simple install the package below and check out the examples."),
304
- e("eds-code-block", { code: "npm install @ebrains/angular", language: "javascript", "copy-label": "Copy Code" }),
305
- e("p", null, "Define the custom elements"),
306
- e("eds-code-block", { code: `import { defineCustomElements } from '@ebrains/components/loader';
307
- defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
308
- e("p", null, "Angular Custom Elements Schema"),
309
- e("eds-code-block", { code: 'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";', language: "javascript", "copy-label": "Copy Code" }),
310
- e(
311
- "eds-section-core",
312
- { "section-title": "Example Angular App", "heading-level": "h3" },
313
- e("eds-code-block", { code: `
314
- <div class="container">
315
- <eds-breadcrumb
316
- intent="tertiary"
317
- items="[
318
- { "label": "Home", "url": "#" },
319
- { "label": "Products", "url": "#" },
320
- ]">
321
- </eds-breadcrumb>
322
- <eds-footer></eds-footer>
323
- </div>`, language: "javascript", "copy-label": "Copy Code" })
324
- )
325
- ), d = class {
326
- constructor(n) {
327
- t(this, n), this.tabIndex = void 0;
328
- }
329
- renderContent() {
330
- switch (this.tabIndex) {
331
- case 0:
332
- return e(s, null);
333
- case 1:
334
- return e(o, null);
335
- case 2:
336
- return e(a, null);
337
- case 3:
338
- return e(l, null);
339
- case 4:
340
- return e(i, null);
341
- default:
342
- return e("p", null, "Content not available.");
343
- }
344
- }
345
- render() {
346
- return e("div", { key: "ee8facfaad3786770fd3ea39f1db7922a67ffd3e", class: "container" }, this.renderContent());
347
- }
348
- };
349
- export {
350
- d as components_section
351
- };
@@ -1,6 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
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;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-cHrGUVDM.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:"966cb542b868e89c3f2538548e8a1ca8e20ea8d8",class:"container"},e.h("p",{key:"3c595ffa9a2de45b681924354486309004d4ceaf",class:"f-body-01"},"This guide demonstrates the correct usage of the",e.h("eds-link",{key:"1d1fded0f8cf78cec9e364e5b6844598b55f3f86",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:"abae691bb80eca1019f97375997b1aa6a577ba8b",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:"251e6d8ad16d70974b67fa044d53abd1be79ccac",class:"flex"},e.h("div",{key:"de5b9b6720aababb693421663c52db85cee1b5fc",class:"w-full"},e.h("ul",{key:"a61f669f45c2f9d3b53d87bacc222a4274f93d34",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:"e7787d0ae843d7767ecac3267f11325dcfecf948",class:"w-full"},e.h("ul",{key:"0d740ad8178c88175939d32a4f84d518f587e43a",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:"6c59b2c574f5039baafd91a2939fbbb307732500",class:"f-body-01"},"This guide demonstrates the correct usage of the",e.h("eds-link",{key:"03e9ca7b0831c2b1d1908001324a38147ecea835",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:"021affd3b5db00ccb5ef0d51de4552c5d3a11f44",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:"b7a5c4c10adab099c57ed70c0d2186d791aa70ec",class:"flex"},e.h("div",{key:"3732c49a47158c206e1b40fc5425e555487ec757",class:"w-full"},e.h("ul",{key:"54a5d35510bd77397d1418aa2638cf310534e986",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:"048de44bd69a7b6ecefe3188d76821e4d5145620",class:"w-full"},e.h("ul",{key:"e3f8cadce4b9a575e1d844958cfccf20a19db681",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:"14d7f9c88ae769d6feb2a8344f8b45b40d4ae095",class:"f-body-01"},"This guide demonstrates the correct usage of the",e.h("eds-link",{key:"810bdfa6fd175f9d483129b70bbae469051e0e0d",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:"fb8a9712f8e1ae1cffbb85c79f7e9c2657f867db",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:"1df0919bb4c75ee251d7f5c8cf95bb2e2e990242",class:"flex"},e.h("div",{key:"5a898462aa680267f4ac35aefb98e60b7f486c63",class:"w-full"},e.h("ul",{key:"ad6f3e6ccde7d225be344efbc176064fc89aa796",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:"8dd6e01b989c8589be6b553c85f0512c268ac369",class:"w-full"},e.h("ul",{key:"c36937d99efd585c4e8a37b80de5bce82374186c",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:"452c68d1c797de34e531d7c734d350fcc36ae2f2",class:"f-body-01"},"This guide demonstrates the correct usage of the",e.h("eds-link",{key:"17453c9d78c20583c989281672c0f41bbe8d036f",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:"3e78eb924b6a857674d50d4a209e4843f76e5fc3",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:"ae3e2a703633013f632df3a75f45ec932ce5e13b",class:"flex"},e.h("div",{key:"4a0f256fa355dcbd6d6fc0e95e81a6c2821c917d",class:"w-full"},e.h("ul",{key:"8aaf611ed9b87b86d0c1b47b1e37cb01989838b2",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:"112e50da1627a671fbca843111becf51cd02ebc5",class:"w-full"},e.h("ul",{key:"14033bd08a9d16bd0b6cfe8b87acc2a841c48a29",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;
@@ -1,59 +0,0 @@
1
- import { r as c, h as e } from "./index-xVeSZU9j.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: "966cb542b868e89c3f2538548e8a1ca8e20ea8d8", class: "container" }, e("p", { key: "3c595ffa9a2de45b681924354486309004d4ceaf", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "1d1fded0f8cf78cec9e364e5b6844598b55f3f86", 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: "abae691bb80eca1019f97375997b1aa6a577ba8b", 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: "251e6d8ad16d70974b67fa044d53abd1be79ccac", class: "flex" }, e("div", { key: "de5b9b6720aababb693421663c52db85cee1b5fc", class: "w-full" }, e("ul", { key: "a61f669f45c2f9d3b53d87bacc222a4274f93d34", 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: "e7787d0ae843d7767ecac3267f11325dcfecf948", class: "w-full" }, e("ul", { key: "0d740ad8178c88175939d32a4f84d518f587e43a", 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: "6c59b2c574f5039baafd91a2939fbbb307732500", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "03e9ca7b0831c2b1d1908001324a38147ecea835", 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: "021affd3b5db00ccb5ef0d51de4552c5d3a11f44", 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: "b7a5c4c10adab099c57ed70c0d2186d791aa70ec", class: "flex" }, e("div", { key: "3732c49a47158c206e1b40fc5425e555487ec757", class: "w-full" }, e("ul", { key: "54a5d35510bd77397d1418aa2638cf310534e986", 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: "048de44bd69a7b6ecefe3188d76821e4d5145620", class: "w-full" }, e("ul", { key: "e3f8cadce4b9a575e1d844958cfccf20a19db681", 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: "14d7f9c88ae769d6feb2a8344f8b45b40d4ae095", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "810bdfa6fd175f9d483129b70bbae469051e0e0d", 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: "fb8a9712f8e1ae1cffbb85c79f7e9c2657f867db", 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: "1df0919bb4c75ee251d7f5c8cf95bb2e2e990242", class: "flex" }, e("div", { key: "5a898462aa680267f4ac35aefb98e60b7f486c63", class: "w-full" }, e("ul", { key: "ad6f3e6ccde7d225be344efbc176064fc89aa796", 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: "8dd6e01b989c8589be6b553c85f0512c268ac369", class: "w-full" }, e("ul", { key: "c36937d99efd585c4e8a37b80de5bce82374186c", 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: "452c68d1c797de34e531d7c734d350fcc36ae2f2", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "17453c9d78c20583c989281672c0f41bbe8d036f", 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: "3e78eb924b6a857674d50d4a209e4843f76e5fc3", 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: "ae3e2a703633013f632df3a75f45ec932ce5e13b", class: "flex" }, e("div", { key: "4a0f256fa355dcbd6d6fc0e95e81a6c2821c917d", class: "w-full" }, e("ul", { key: "8aaf611ed9b87b86d0c1b47b1e37cb01989838b2", 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: "112e50da1627a671fbca843111becf51cd02ebc5", class: "w-full" }, e("ul", { key: "14033bd08a9d16bd0b6cfe8b87acc2a841c48a29", 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
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-cHrGUVDM.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:"f985628b9ea3f02a511e2facbda99b54f0723acf",class:"container"},this.renderContent())}};exports.docs_palettes=l;
@@ -1,22 +0,0 @@
1
- import { r as l, h as e } from "./index-xVeSZU9j.mjs";
2
- const r = class {
3
- constructor(t) {
4
- l(this, t), this.tabIndex = void 0;
5
- }
6
- renderContent() {
7
- switch (this.tabIndex) {
8
- case 0:
9
- return e("div", null, e("h2", null, "Primary Palette"), e("color-primary-palette", null), e("h2", null, "Secondary Palette"), e("color-secondary-palette", null), e("h2", null, "Support Palette"), e("color-support-palette", null));
10
- case 1:
11
- return e("div", null, e("h2", null, "Primary Palette"), e("gradient-primary-palette", null), e("h2", null, "Secondary Palette"), e("gradient-secondary-palette", null), e("h2", null, "Support Palette"), e("gradient-support-palette", null));
12
- default:
13
- return e("p", null, "Content not available.");
14
- }
15
- }
16
- render() {
17
- return e("div", { key: "f985628b9ea3f02a511e2facbda99b54f0723acf", class: "container" }, this.renderContent());
18
- }
19
- };
20
- export {
21
- r as docs_palettes
22
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-cHrGUVDM.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:"29810a0ace60d2e5a0fc84d6715fc2fc89d6187f",class:"container"},this.renderContent())}};exports.docs_tokens=n;
@@ -1,30 +0,0 @@
1
- import { r as n, h as e } from "./index-xVeSZU9j.mjs";
2
- const s = class {
3
- constructor(t) {
4
- n(this, t), this.tabIndex = void 0;
5
- }
6
- renderContent() {
7
- switch (this.tabIndex) {
8
- case 0:
9
- return e("token-list", { show: "background" });
10
- case 1:
11
- return e("token-list", { show: "text" });
12
- case 2:
13
- return e("token-list", { show: "border" });
14
- case 3:
15
- return e("token-radii", null);
16
- case 4:
17
- return e("token-list", { show: "outline" });
18
- case 5:
19
- return e("token-shadows", null);
20
- default:
21
- return e("p", null, "Content not available.");
22
- }
23
- }
24
- render() {
25
- return e("div", { key: "29810a0ace60d2e5a0fc84d6715fc2fc89d6187f", class: "container" }, this.renderContent());
26
- }
27
- };
28
- export {
29
- s as docs_tokens
30
- };
@@ -1,4 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-cHrGUVDM.js"),o=require("./analytics-44b1416b-ol77SdQE.js"),a="blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-56{min-height:3.5rem}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.break-words{overflow-wrap:break-word}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.pr-32{padding-right:2rem}.pr-36{padding-right:2.25rem}.pr-40{padding-right:2.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-4{padding-top:0.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}",r=a,n=class{constructor(t){e.registerInstance(this,t),this.accordion=e.createEvent(this,"accordion",7),this.handleClick=()=>{var i;this.isExpanded=!this.isExpanded,this.accordion.emit(this.isExpanded),this.setPanelHeight(),o.sendAnalytics({category:"ui-component",parentContext:null,tag:this.el.tagName.toLowerCase(),name:((i=this.title)===null||i===void 0?void 0:i.toLowerCase())||"",action:this.isExpanded?"expanded":"collapsed"})},this.setPanelHeight=()=>{this.childContentRef&&(this.shortContent=this.wrapperRef.scrollWidth>830&&!this.description?this.childContentRef.scrollHeight<=80:this.childContentRef.scrollHeight<=20,this.panelHeight=this.isExpanded&&!this.shortContent?this.childContentRef.scrollHeight:0),this.headerRef&&(this.headerHeight=this.headerRef.scrollHeight-30)},this.title=void 0,this.description=void 0,this.switchBg=!0,this.expanded=!1,this.clampText=!0,this.isExpanded=this.expanded,this.panelHeight=0,this.shortContent=!1,this.headerHeight=0}componentDidLoad(){this.setPanelHeight(),window.addEventListener("resize",this.setPanelHeight)}disconnectedCallback(){window.removeEventListener("resize",this.setPanelHeight)}render(){return e.h("div",{key:"db04fa9db1f53e95a7ac758656b32e75281f5749",ref:t=>this.wrapperRef=t,class:`flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
2
- ${this.switchBg&&this.isExpanded?"bg-inverse":"bg-default"}
3
- ${this.switchBg?"hover:bg-inverse":""}
4
- ${this.description?"min-h-56":""}`},e.h("h3",{key:"a6fc54388e0eab3ddfb81dfb5907c55a1d6d40e1",ref:t=>this.headerRef=t,class:"mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40"},this.title),e.h("div",{key:"96a1e4ae2849300e6cd3c737357a7e6e9a0439d5",class:"ml-auto"},e.h("eds-button",{key:"ca53eed446f9bc7a96182da9e9e3a45b1c63dba2",id:"toggleAccordion",intent:"tertiary","aria-expanded":this.isExpanded||this.shortContent,"aria-label":"Toggle accordion","aria-controls":"accordionSection",class:"effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none",onClick:this.handleClick,icon:"chevron-down"})),e.h("div",{key:"2e1c52759fa07ecf63fed47f79c0384a79cd81c6",class:"w-full",style:Number.isFinite(this.headerHeight)?{marginTop:`${this.headerHeight}px`}:{}},this.description?e.h("span",{class:`text-light ${!this.isExpanded&&this.clampText?"line-clamp-1":""}`},this.description):null,e.h("section",{key:"6ca819b2d9cb989f0942b98f32cd7243771b6ae9",id:"accordionSection",role:"region","aria-labelledby":"accordionHeader","aria-hidden":!this.isExpanded,class:`z-1 effect-height relative h-0 w-full ${!this.isExpanded&&this.clampText?"overflow-hidden":""}`,style:{height:this.isExpanded?"auto":"0"}},e.h("div",{key:"aa33297747aca21c3b3ed33eb3eabc2998192aeb",ref:t=>this.childContentRef=t,class:"accordion-content effect-color pt-4","aria-hidden":!this.isExpanded},e.h("span",{key:"af5b6e2218419a3c95e21e7e432696b073b7752b",class:`${!this.isExpanded&&this.clampText?"line-clamp-2":""}`},e.h("slot",{key:"2a9d1ef2d2537c831b28fbecb02a6125a1412019"}))))))}get el(){return e.getElement(this)}};n.style=r;exports.eds_accordion=n;
@@ -1,48 +0,0 @@
1
- import { r as n, c as a, h as e, g as o } from "./index-xVeSZU9j.mjs";
2
- import { s as r } from "./analytics-44b1416b-3vYuu4Xs.mjs";
3
- const d = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-56{min-height:3.5rem}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.break-words{overflow-wrap:break-word}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.pr-32{padding-right:2rem}.pr-36{padding-right:2.25rem}.pr-40{padding-right:2.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-4{padding-top:0.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}", s = d, l = class {
4
- constructor(i) {
5
- n(this, i), this.accordion = a(this, "accordion", 7), this.handleClick = () => {
6
- var t;
7
- this.isExpanded = !this.isExpanded, this.accordion.emit(this.isExpanded), this.setPanelHeight(), r({
8
- category: "ui-component",
9
- parentContext: null,
10
- tag: this.el.tagName.toLowerCase(),
11
- name: ((t = this.title) === null || t === void 0 ? void 0 : t.toLowerCase()) || "",
12
- action: this.isExpanded ? "expanded" : "collapsed"
13
- });
14
- }, this.setPanelHeight = () => {
15
- this.childContentRef && (this.shortContent = this.wrapperRef.scrollWidth > 830 && !this.description ? this.childContentRef.scrollHeight <= 80 : this.childContentRef.scrollHeight <= 20, this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0), this.headerRef && (this.headerHeight = this.headerRef.scrollHeight - 30);
16
- }, this.title = void 0, this.description = void 0, this.switchBg = !0, this.expanded = !1, this.clampText = !0, this.isExpanded = this.expanded, this.panelHeight = 0, this.shortContent = !1, this.headerHeight = 0;
17
- }
18
- /**
19
- * Lifecycle method that sets up the initial panel height and adds a resize event listener
20
- * to recalculate height on window resize.
21
- */
22
- componentDidLoad() {
23
- this.setPanelHeight(), window.addEventListener("resize", this.setPanelHeight);
24
- }
25
- /**
26
- * Lifecycle method that cleans up the resize event listener when the component is removed.
27
- */
28
- disconnectedCallback() {
29
- window.removeEventListener("resize", this.setPanelHeight);
30
- }
31
- /**
32
- * Renders the accordion structure, including header, content, description, and any slotted content.
33
- * Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
34
- */
35
- render() {
36
- return e("div", { key: "db04fa9db1f53e95a7ac758656b32e75281f5749", ref: (i) => this.wrapperRef = i, class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
37
- ${this.switchBg && this.isExpanded ? "bg-inverse" : "bg-default"}
38
- ${this.switchBg ? "hover:bg-inverse" : ""}
39
- ${this.description ? "min-h-56" : ""}` }, e("h3", { key: "a6fc54388e0eab3ddfb81dfb5907c55a1d6d40e1", ref: (i) => this.headerRef = i, class: "mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40" }, this.title), e("div", { key: "96a1e4ae2849300e6cd3c737357a7e6e9a0439d5", class: "ml-auto" }, e("eds-button", { key: "ca53eed446f9bc7a96182da9e9e3a45b1c63dba2", id: "toggleAccordion", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: "effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none", onClick: this.handleClick, icon: "chevron-down" })), e("div", { key: "2e1c52759fa07ecf63fed47f79c0384a79cd81c6", class: "w-full", style: Number.isFinite(this.headerHeight) ? { marginTop: `${this.headerHeight}px` } : {} }, this.description ? e("span", { class: `text-light ${!this.isExpanded && this.clampText ? "line-clamp-1" : ""}` }, this.description) : null, e("section", { key: "6ca819b2d9cb989f0942b98f32cd7243771b6ae9", id: "accordionSection", role: "region", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? "overflow-hidden" : ""}`, style: { height: this.isExpanded ? "auto" : "0" } }, e("div", { key: "aa33297747aca21c3b3ed33eb3eabc2998192aeb", ref: (i) => this.childContentRef = i, class: "accordion-content effect-color pt-4", "aria-hidden": !this.isExpanded }, e("span", { key: "af5b6e2218419a3c95e21e7e432696b073b7752b", class: `${!this.isExpanded && this.clampText ? "line-clamp-2" : ""}` }, e("slot", { key: "2a9d1ef2d2537c831b28fbecb02a6125a1412019" }))))));
40
- }
41
- get el() {
42
- return o(this);
43
- }
44
- };
45
- l.style = s;
46
- export {
47
- l as eds_accordion
48
- };