@ebrains/vue 0.2.0-alpha.0 → 0.4.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/{color-0ba8ed56-BVeDdJAE.js → color-bb472c37-CKu54kOY.js} +1 -1
  2. package/{color-0ba8ed56-D-UJpBQL.mjs → color-bb472c37-DDERsxdk.mjs} +6 -6
  3. package/color-primary-palette_6.entry-BB6740d4.js +1 -0
  4. package/{color-primary-palette_6.entry-CfqMCd3g.mjs → color-primary-palette_6.entry-CSDWEKLH.mjs} +17 -17
  5. package/correct-use-of-colors.entry-LuyuqIQ9.js +1 -0
  6. package/correct-use-of-colors.entry-hvZ1z3tc.mjs +59 -0
  7. package/{eds-alert_28.entry-DbTB72ow.mjs → eds-accordion_33.entry-DFgdjlJE.mjs} +709 -270
  8. package/{eds-alert_28.entry-Ctl9tHqr.js → eds-accordion_33.entry-DlnbmQ6R.js} +14 -11
  9. package/{eds-card-project.entry-XK15egnP.js → eds-card-project.entry-BQ-dH8vM.js} +1 -1
  10. package/{eds-card-project.entry-CKYhNPPH.mjs → eds-card-project.entry-C3eyu1U0.mjs} +2 -2
  11. package/{eds-card-section.entry-B7jR75ty.js → eds-card-section.entry-DU-1TB0I.js} +1 -1
  12. package/{eds-card-section.entry-x8CPk5NZ.mjs → eds-card-section.entry-Dxk-Ob_Y.mjs} +14 -8
  13. package/eds-card-tags.entry-CIu6lD0P.mjs +13 -0
  14. package/eds-card-tags.entry-YPPBWdFq.js +1 -0
  15. package/{eds-card-tool.entry-DFuXjfhh.mjs → eds-card-tool.entry-1_RNWh8n.mjs} +2 -2
  16. package/{eds-card-tool.entry-DZqHML8u.js → eds-card-tool.entry-DgBqQucY.js} +1 -1
  17. package/{eds-card-wrapper.entry-C_r0u0Fd.js → eds-card-wrapper.entry-BfCDGeFs.js} +1 -1
  18. package/{eds-card-wrapper.entry-DNnlCvMe.mjs → eds-card-wrapper.entry-C4pNRjIj.mjs} +2 -2
  19. package/{eds-code-block.entry-DwfHDe4j.mjs → eds-code-block.entry-B2xATQ7r.mjs} +87 -46
  20. package/{eds-code-block.entry-ClmjgThG.js → eds-code-block.entry-DQEDpAjn.js} +3 -3
  21. package/eds-components-section.entry-D08woahG.js +132 -0
  22. package/{eds-components-section.entry-BSRNSdwF.mjs → eds-components-section.entry-DR-984-3.mjs} +93 -42
  23. package/{eds-docs-palettes.entry-BlQEI2Bl.mjs → eds-docs-palettes.entry-B0yU2ZpL.mjs} +2 -2
  24. package/{eds-docs-palettes.entry-Gi9kzOYC.js → eds-docs-palettes.entry-qKOj3XU9.js} +1 -1
  25. package/{eds-docs-tokens.entry-Bxzd9uSz.mjs → eds-docs-tokens.entry-BVHiM7cK.mjs} +2 -2
  26. package/{eds-docs-tokens.entry-G6O1zRxS.js → eds-docs-tokens.entry-BtRXzjrp.js} +1 -1
  27. package/{eds-icon-arrow-diagonal.entry-C06V6TIW.js → eds-icon-arrow-diagonal.entry-DjDB--sU.js} +1 -1
  28. package/{eds-icon-arrow-diagonal.entry-Ky6NoFbS.mjs → eds-icon-arrow-diagonal.entry-E5xC3m8H.mjs} +1 -1
  29. package/{eds-icon-arrow-right.entry-BPHnm7pX.mjs → eds-icon-arrow-right.entry-DaXIkUew.mjs} +1 -1
  30. package/{eds-icon-arrow-right.entry-Dv17zi29.js → eds-icon-arrow-right.entry-odZ8U-W2.js} +1 -1
  31. package/{eds-icon-bluesky.entry-7_AzEVLl.mjs → eds-icon-bluesky.entry-B3yW2mUC.mjs} +1 -1
  32. package/{eds-icon-bluesky.entry-DQshm0EA.js → eds-icon-bluesky.entry-Dppj9cuC.js} +1 -1
  33. package/{eds-icon-chevron-down.entry-BlnVbI1I.js → eds-icon-chevron-down.entry-CidjiGQS.js} +1 -1
  34. package/{eds-icon-chevron-down.entry-DkcBkTRK.mjs → eds-icon-chevron-down.entry-xWODzTE-.mjs} +1 -1
  35. package/{eds-icon-chevron-left.entry-BwhZiPKE.mjs → eds-icon-chevron-left.entry-CJyHE01I.mjs} +1 -1
  36. package/{eds-icon-chevron-left.entry-BTxaVVnF.js → eds-icon-chevron-left.entry-DjJj-hmG.js} +1 -1
  37. package/{eds-icon-chevron-right.entry-c4irNhqS.js → eds-icon-chevron-right.entry-D8RyOADq.js} +1 -1
  38. package/{eds-icon-chevron-right.entry-BPKLFXW0.mjs → eds-icon-chevron-right.entry-iy6d6tux.mjs} +1 -1
  39. package/{eds-icon-chevron-up.entry-oja5yYhS.mjs → eds-icon-chevron-up.entry-TKCdY_T3.mjs} +1 -1
  40. package/{eds-icon-chevron-up.entry-CFiZyc6u.js → eds-icon-chevron-up.entry-ezV-v92v.js} +1 -1
  41. package/{eds-icon-close.entry-5BdzrFmk.mjs → eds-icon-close.entry-Brv3Uxu1.mjs} +1 -1
  42. package/{eds-icon-close.entry-DQD_dDo5.js → eds-icon-close.entry-CE-Nory7.js} +1 -1
  43. package/{eds-icon-copy.entry-CQ237xrq.js → eds-icon-copy.entry-Bpe3I5b6.js} +1 -1
  44. package/{eds-icon-copy.entry-jpUaAQ7k.mjs → eds-icon-copy.entry-DQioS3t7.mjs} +1 -1
  45. package/{eds-icon-eu.entry-CjCnJWwP.js → eds-icon-eu.entry-BzmYOiKL.js} +1 -1
  46. package/{eds-icon-eu.entry-gJ234Xni.mjs → eds-icon-eu.entry-KylDo55P.mjs} +1 -1
  47. package/{eds-icon-facebook.entry-BHUSe9LK.js → eds-icon-facebook.entry-DWZ02rD5.js} +1 -1
  48. package/{eds-icon-facebook.entry-Ch94iA-s.mjs → eds-icon-facebook.entry-DpS2m4v2.mjs} +1 -1
  49. package/{eds-icon-gitlab.entry-j6RBYOBc.js → eds-icon-gitlab.entry-D8PM12SK.js} +1 -1
  50. package/{eds-icon-gitlab.entry-B06LmNCU.mjs → eds-icon-gitlab.entry-JX-5azIw.mjs} +1 -1
  51. package/{eds-icon-linkedin.entry-CMW1rKpG.mjs → eds-icon-linkedin.entry-BylIVu8G.mjs} +1 -1
  52. package/{eds-icon-linkedin.entry-DouHzclR.js → eds-icon-linkedin.entry-CstoPbTS.js} +1 -1
  53. package/{eds-icon-loader.entry-BlGbpEzt.js → eds-icon-loader.entry-CaGFh0gM.js} +1 -1
  54. package/{eds-icon-loader.entry-Cx_ffiBq.mjs → eds-icon-loader.entry-DZyUa8Na.mjs} +1 -1
  55. package/{eds-icon-mastodon.entry-C4ITVPfN.mjs → eds-icon-mastodon.entry-BIckHn_q.mjs} +1 -1
  56. package/{eds-icon-mastodon.entry-Cpl3lSng.js → eds-icon-mastodon.entry-DxNG__-Y.js} +1 -1
  57. package/{eds-icon-menu.entry-DvQARmJU.mjs → eds-icon-menu.entry-C9N6s8Oa.mjs} +1 -1
  58. package/{eds-icon-menu.entry-BcPeEfV2.js → eds-icon-menu.entry-DwN-ZAWi.js} +1 -1
  59. package/{eds-icon-more.entry-m61loZHO.js → eds-icon-more.entry-68jT9AEw.js} +1 -1
  60. package/{eds-icon-more.entry-BoAVOpyT.mjs → eds-icon-more.entry-MUkUL_e2.mjs} +1 -1
  61. package/{eds-icon-search.entry-D-nQvhug.mjs → eds-icon-search.entry-CcwwFnns.mjs} +1 -1
  62. package/{eds-icon-search.entry-BJMtVlnR.js → eds-icon-search.entry-CrfMqbyi.js} +1 -1
  63. package/{eds-icon-success.entry-D8S7QlRm.mjs → eds-icon-success.entry-BUzsze9h.mjs} +1 -1
  64. package/{eds-icon-success.entry-DvIchNgX.js → eds-icon-success.entry-CACuZjP6.js} +1 -1
  65. package/{eds-icon-twitter.entry-DD48tnaV.mjs → eds-icon-twitter.entry-B1Iw69NW.mjs} +1 -1
  66. package/{eds-icon-twitter.entry-CD1nT3iI.js → eds-icon-twitter.entry-BbStwaGv.js} +1 -1
  67. package/{eds-icon-user.entry-DSPBBAZa.mjs → eds-icon-user.entry-CNo6pger.mjs} +1 -1
  68. package/{eds-icon-user.entry-DDRH46_Z.js → eds-icon-user.entry-vYVsxfK7.js} +1 -1
  69. package/{eds-icon-youtube.entry-BRyOsCV-.mjs → eds-icon-youtube.entry-CBU7Dvkh.mjs} +1 -1
  70. package/{eds-icon-youtube.entry-CfpQHgDF.js → eds-icon-youtube.entry-CmCAFp7D.js} +1 -1
  71. package/{eds-login.entry-CY0ZugpF.js → eds-login.entry-Bfztcsrc.js} +1 -1
  72. package/{eds-login.entry-bC6f6bvF.mjs → eds-login.entry-XqWPWCDL.mjs} +7 -7
  73. package/eds-logo-variations.entry-CUD-M_Fd.js +1 -0
  74. package/eds-logo-variations.entry-Cy_fbJLx.mjs +22 -0
  75. package/{eds-matomo-notice.entry-DanLI8VZ.js → eds-matomo-notice.entry-CytVSgYS.js} +1 -1
  76. package/{eds-matomo-notice.entry-DGHq-ICP.mjs → eds-matomo-notice.entry-kSuLDx9K.mjs} +2 -2
  77. package/{eds-navigator.entry-CUAf3hTM.js → eds-navigator.entry-BJTqtqld.js} +1 -1
  78. package/{eds-navigator.entry-D-fIKqub.mjs → eds-navigator.entry-DdzcXSRW.mjs} +1 -1
  79. package/eds-pagination_2.entry-B5PLo2Uu.mjs +249 -0
  80. package/eds-pagination_2.entry-DUsG8tcv.js +1 -0
  81. package/eds-progress-bar.entry-BBFsASiy.js +1 -0
  82. package/eds-progress-bar.entry-DdqH0plT.mjs +21 -0
  83. package/{eds-rating.entry-B2lhi19L.mjs → eds-rating.entry-CErokyKU.mjs} +6 -8
  84. package/{eds-rating.entry-BdE-bKae.js → eds-rating.entry-p9oWKCkQ.js} +1 -1
  85. package/{eds-section-core_2.entry-CqFyAWoq.mjs → eds-section-core_2.entry-D3HYngR_.mjs} +1 -1
  86. package/{eds-section-core_2.entry-BRNJshCh.js → eds-section-core_2.entry-D_nLUa29.js} +1 -1
  87. package/{eds-svg-repository.entry-qaL9fhLI.mjs → eds-svg-repository.entry-C-kayEdW.mjs} +71 -65
  88. package/{eds-svg-repository.entry-BdZya_DA.js → eds-svg-repository.entry-in72TP_1.js} +12 -12
  89. package/{eds-tab.entry-BqqMdTQv.mjs → eds-tab.entry-BKYSiEkl.mjs} +1 -1
  90. package/{eds-tab.entry-C6q7naM_.js → eds-tab.entry-BUzZWKac.js} +1 -1
  91. package/{eds-tabs-content.entry-D9b289Td.mjs → eds-tabs-content.entry-3cyCQAth.mjs} +4 -4
  92. package/{eds-tabs-content.entry-H__1SNbo.js → eds-tabs-content.entry-Cg7U8c5D.js} +1 -1
  93. package/{eds-tabs.entry-KsWwc6xS.mjs → eds-tabs.entry-B8q09in2.mjs} +24 -7
  94. package/eds-tabs.entry-DS6qBEo7.js +1 -0
  95. package/eds-timeline.entry-DEcov8mq.js +1 -0
  96. package/eds-timeline.entry-DhHSQScv.mjs +51 -0
  97. package/{eds-tooltip.entry-ByxJjA_6.mjs → eds-tooltip.entry-BTunlfGS.mjs} +14 -6
  98. package/eds-tooltip.entry-sjwuhdKF.js +1 -0
  99. package/eds-trl.entry-BHrlC_5O.js +1 -0
  100. package/eds-trl.entry-Bt28XH55.mjs +34 -0
  101. package/generated/components.d.ts +1 -0
  102. package/incorrect-use-of-colors.entry-DkY89xG1.mjs +42 -0
  103. package/incorrect-use-of-colors.entry-e4VhTVHS.js +1 -0
  104. package/index-D2H_BflF.js +21 -0
  105. package/{index-DQrtrXyM.mjs → index-I5Asbjce.mjs} +338 -363
  106. package/index.js +1 -1
  107. package/index.mjs +15 -14
  108. package/{logo-space.entry-DpgwdyOK.js → logo-space.entry-DsM5jXgX.js} +1 -1
  109. package/{logo-space.entry-OauRHmO8.mjs → logo-space.entry-GnVq-srD.mjs} +4 -4
  110. package/logo-variations-horizontal_2.entry-BeQ_r9Li.js +7 -0
  111. package/logo-variations-horizontal_2.entry-CC7tj8Hr.mjs +29 -0
  112. package/logo-wrong-usage.entry-Ct1Ae63m.mjs +14 -0
  113. package/logo-wrong-usage.entry-DkqcMaqp.js +1 -0
  114. package/package.json +1 -4
  115. package/{token-list_3.entry-Ca9muGhp.mjs → token-list_3.entry-CReCwFzO.mjs} +4 -4
  116. package/{token-list_3.entry-CVZDegic.js → token-list_3.entry-DaIOT7_R.js} +1 -1
  117. package/{token-ratios.entry-D3JWYlHy.mjs → token-ratios.entry-Dh8kvz8R.mjs} +2 -2
  118. package/{token-ratios.entry-DGMJ2vJj.js → token-ratios.entry-aBiRsmfr.js} +1 -1
  119. package/token-spacing.entry-C5HX4qPq.mjs +12 -0
  120. package/token-spacing.entry-DDiMRsNO.js +1 -0
  121. package/{token-typography.entry-DwUOTznz.mjs → token-typography.entry-CIETKadf.mjs} +2 -2
  122. package/{token-typography.entry-C8CdhyIM.js → token-typography.entry-DG-4k5gY.js} +1 -1
  123. package/color-primary-palette_6.entry-CoXWiKJ3.js +0 -1
  124. package/correct-use-of-colors.entry-CfXsWbhB.js +0 -1
  125. package/correct-use-of-colors.entry-CotQESQa.mjs +0 -59
  126. package/eds-accordion.entry-BsT7Ved4.mjs +0 -58
  127. package/eds-accordion.entry-BvDNoDvv.js +0 -4
  128. package/eds-block-break.entry-B8gP4ig9.mjs +0 -13
  129. package/eds-block-break.entry-L9LG-PtO.js +0 -1
  130. package/eds-breadcrumb.entry-C6mAAYNs.js +0 -1
  131. package/eds-breadcrumb.entry-Dio_2hx4.mjs +0 -114
  132. package/eds-card-tags.entry-Bvn8dDXI.mjs +0 -13
  133. package/eds-card-tags.entry-CndclGXB.js +0 -1
  134. package/eds-components-section.entry-8sEheaoX.js +0 -130
  135. package/eds-footer.entry-9xXgg22T.mjs +0 -29
  136. package/eds-footer.entry-DqnRHQ32.js +0 -1
  137. package/eds-frame.entry-Bz-23eT7.js +0 -1
  138. package/eds-frame.entry-YVbNIAAz.mjs +0 -74
  139. package/eds-fullscreen-menu.entry-4kxB1p-j.mjs +0 -74
  140. package/eds-fullscreen-menu.entry-DwOubHgX.js +0 -1
  141. package/eds-modal.entry-Bikh63fB.mjs +0 -65
  142. package/eds-modal.entry-TMxTmjgT.js +0 -1
  143. package/eds-pagination.entry-C8g4pxcm.js +0 -1
  144. package/eds-pagination.entry-D6iJH84k.mjs +0 -128
  145. package/eds-social-networks.entry-6VfWBLuR.js +0 -1
  146. package/eds-social-networks.entry-BgiRVGXx.mjs +0 -50
  147. package/eds-table.entry-BojRZdP2.mjs +0 -112
  148. package/eds-table.entry-ShWS4LWJ.js +0 -1
  149. package/eds-tabs.entry-DGHlnSwh.js +0 -1
  150. package/eds-tooltip.entry-BI1EvTiw.js +0 -1
  151. package/incorrect-use-of-colors.entry-C7xABbpE.js +0 -1
  152. package/incorrect-use-of-colors.entry-DNOV6p4p.mjs +0 -42
  153. package/index-BGGkUjck.js +0 -21
  154. package/logo-variations-horizontal.entry-BG8fM5Bs.js +0 -4
  155. package/logo-variations-horizontal.entry-BicKkgRN.mjs +0 -16
  156. package/logo-variations-vertical.entry-CXVFf9-0.mjs +0 -16
  157. package/logo-variations-vertical.entry-DJ-IpAyZ.js +0 -4
  158. package/logo-wrong-usage.entry-7MfyIkPp.js +0 -1
  159. package/logo-wrong-usage.entry-CH7JMqbI.mjs +0 -14
  160. package/token-spacing.entry-CdrdqAOb.js +0 -1
  161. package/token-spacing.entry-CjITQ8pH.mjs +0 -12
@@ -1,58 +0,0 @@
1
- import { r as n, c as o, h as e, g as a } from "./index-DQrtrXyM.mjs";
2
- const r = "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-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.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}.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}.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-20{padding-top:1.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}", d = r, s = class {
3
- constructor(t) {
4
- n(this, t), this.accordionChange = o(this, "accordionChange", 7), this.handleClick = () => {
5
- this.isExpanded = !this.isExpanded, this.accordionChange.emit(this.isExpanded), this.setPanelHeight();
6
- }, this.setPanelHeight = () => {
7
- 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);
8
- }, this.title = void 0, this.description = void 0, this.switchBg = !0, this.expanded = !1, this.clampText = !0, this.minHeightContent = !1, this.isExpanded = this.expanded, this.panelHeight = 0, this.shortContent = !1;
9
- }
10
- /**
11
- * Lifecycle method that sets up the initial panel height and adds a resize event listener
12
- * to recalculate height on window resize.
13
- */
14
- componentDidLoad() {
15
- this.setPanelHeight();
16
- const t = this.el.shadowRoot.querySelector("eds-button");
17
- this.emitContext(t), window.addEventListener("resize", this.setPanelHeight);
18
- }
19
- /**
20
- * Emits a custom event called `parentContext` for a given link element.
21
- * This event provides context information about the breadcrumb component.
22
- *
23
- * @param linkElement - The link element to which the event will be dispatched.
24
- */
25
- emitContext(t) {
26
- const i = new CustomEvent("parentContext", {
27
- detail: {
28
- componentName: this.el.tagName.toLowerCase(),
29
- identifier: null
30
- }
31
- });
32
- t.dispatchEvent(i);
33
- }
34
- /**
35
- * Lifecycle method that cleans up the resize event listener when the component is removed.
36
- */
37
- disconnectedCallback() {
38
- window.removeEventListener("resize", this.setPanelHeight);
39
- }
40
- /**
41
- * Renders the accordion structure, including header, content, description, and any slotted content.
42
- * Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
43
- */
44
- render() {
45
- const t = this.minHeightContent ? "min-h-56" : "";
46
- return e("div", { key: "1f8ea188c4b39f6d1a8d10cdbf43d3df88d1281f", ref: (i) => this.wrapperRef = i, class: `container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
47
- ${this.switchBg && this.isExpanded ? "bg-inverse" : "bg-default"}
48
- ${this.switchBg ? "hover:bg-inverse" : ""}
49
- ${t}` }, e("h3", { key: "4490bdc1a18b99850e8db8ae1c38fcb37912ec0d", class: "mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1" }, this.title), e("div", { key: "82df433a9cc6805a735300fd1bb52f41c639c992", class: "ml-auto" }, e("eds-button", { key: "9965d5eecfa02fbea08c23c44d325417767f6495", id: "accordionId", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-controls": "accordionId", 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: "7ab8d2d07d55fa05c5e5647d1d00d1165f0d40ce", class: "w-full" }, this.description ? e("span", { class: `text-light ${!this.isExpanded && this.clampText ? "line-clamp-1" : ""}` }, this.description) : null, e("section", { key: "cb122dd5433d7012cba6f3769f79e92a155c45d7", id: "sectionId", "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: "0c2e1d9b38f21f0cb7f50aa3923edcc448418e3f", ref: (i) => this.childContentRef = i, class: "accordion-content effect-color pt-20", "aria-hidden": !this.isExpanded }, e("span", { key: "d119c88d54e8d5e83d4cc3d4d16d1cd53d689bc7", class: `${!this.isExpanded && this.clampText ? "line-clamp-2" : ""}` }, e("slot", { key: "b2a6917ec65bc808389a2d1c77cd1183f00cbaa1" }))))));
50
- }
51
- get el() {
52
- return a(this);
53
- }
54
- };
55
- s.style = d;
56
- export {
57
- s as eds_accordion
58
- };
@@ -1,4 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BGGkUjck.js"),o="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-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.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}.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}.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-20{padding-top:1.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=o,n=class{constructor(t){e.registerInstance(this,t),this.accordionChange=e.createEvent(this,"accordionChange",7),this.handleClick=()=>{this.isExpanded=!this.isExpanded,this.accordionChange.emit(this.isExpanded),this.setPanelHeight()},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.title=void 0,this.description=void 0,this.switchBg=!0,this.expanded=!1,this.clampText=!0,this.minHeightContent=!1,this.isExpanded=this.expanded,this.panelHeight=0,this.shortContent=!1}componentDidLoad(){this.setPanelHeight();const t=this.el.shadowRoot.querySelector("eds-button");this.emitContext(t),window.addEventListener("resize",this.setPanelHeight)}emitContext(t){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(i)}disconnectedCallback(){window.removeEventListener("resize",this.setPanelHeight)}render(){const t=this.minHeightContent?"min-h-56":"";return e.h("div",{key:"1f8ea188c4b39f6d1a8d10cdbf43d3df88d1281f",ref:i=>this.wrapperRef=i,class:`container 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
- ${t}`},e.h("h3",{key:"4490bdc1a18b99850e8db8ae1c38fcb37912ec0d",class:"mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1"},this.title),e.h("div",{key:"82df433a9cc6805a735300fd1bb52f41c639c992",class:"ml-auto"},e.h("eds-button",{key:"9965d5eecfa02fbea08c23c44d325417767f6495",id:"accordionId",intent:"tertiary","aria-expanded":this.isExpanded||this.shortContent,"aria-controls":"accordionId",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:"7ab8d2d07d55fa05c5e5647d1d00d1165f0d40ce",class:"w-full"},this.description?e.h("span",{class:`text-light ${!this.isExpanded&&this.clampText?"line-clamp-1":""}`},this.description):null,e.h("section",{key:"cb122dd5433d7012cba6f3769f79e92a155c45d7",id:"sectionId","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:"0c2e1d9b38f21f0cb7f50aa3923edcc448418e3f",ref:i=>this.childContentRef=i,class:"accordion-content effect-color pt-20","aria-hidden":!this.isExpanded},e.h("span",{key:"d119c88d54e8d5e83d4cc3d4d16d1cd53d689bc7",class:`${!this.isExpanded&&this.clampText?"line-clamp-2":""}`},e.h("slot",{key:"b2a6917ec65bc808389a2d1c77cd1183f00cbaa1"}))))))}get el(){return e.getElement(this)}};n.style=r;exports.eds_accordion=n;
@@ -1,13 +0,0 @@
1
- import { r as e, h as o } from "./index-DQrtrXyM.mjs";
2
- const l = ".border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-softest{border-color:rgba(0, 0, 0, .05)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.w-full{width:100%}.border-t-2{border-top-width:2px}", s = l, t = class {
3
- constructor(r) {
4
- e(this, r), this.extraClass = "";
5
- }
6
- render() {
7
- return o("hr", { key: "85b5253d4abb77072424452d2ff6a0d631e67652", class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
8
- }
9
- };
10
- t.style = s;
11
- export {
12
- t as eds_block_break
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-BGGkUjck.js"),l=".border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-softest{border-color:rgba(0, 0, 0, .05)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.w-full{width:100%}.border-t-2{border-top-width:2px}",t=l,e=class{constructor(o){r.registerInstance(this,o),this.extraClass=""}render(){return r.h("hr",{key:"85b5253d4abb77072424452d2ff6a0d631e67652",class:`border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}`})}};e.style=t;exports.eds_block_break=e;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-BGGkUjck.js"),h="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}.hidden{display:none}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.125rem * var(--tw-space-x-reverse));margin-left:calc(0.125rem * calc(1 - var(--tw-space-x-reverse)))}.px-2{padding-left:0.125rem;padding-right:0.125rem}.w-20{width:1.25rem}.w-28{width:1.75rem}.w-32{width:2rem}.w-44{width:2.75rem}.h-20{height:1.25rem}.h-24{height:1.5rem}.h-28{height:1.75rem}.h-32{height:2rem}@media (min-width: 750px){.md\\:block{display:block}}",d=h,l=class{constructor(e){i.registerInstance(this,e),this.updateScreenSize=()=>{const t=window.innerWidth;t<769?(this.maxVisibleItems=3,this.isSmallScreen=!0):t<=1024?(this.maxVisibleItems=4,this.isSmallScreen=!0):(this.maxVisibleItems=6,this.isSmallScreen=!1)},this.items=[],this.intent="ghost",this.parsedItems=[],this.isSmallScreen=!1,this.maxVisibleItems=6}parseItems(e){try{typeof e=="string"?this.parsedItems=JSON.parse(e):this.parsedItems=e}catch{this.parsedItems=[]}}componentWillLoad(){this.parseItems(this.items),this.updateScreenSize(),window.addEventListener("resize",this.updateScreenSize)}disconnectedCallback(){window.removeEventListener("resize",this.updateScreenSize)}componentDidLoad(){this.el.shadowRoot.querySelectorAll("eds-link").forEach(t=>{this.emitContext(t)})}emitContext(e){const t=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});e.dispatchEvent(t)}getTruncatedItems(){const e=this.parsedItems.length;if(e>this.maxVisibleItems){const t=this.parsedItems[0],s=this.parsedItems.slice(-2),n={label:"...",url:"",isHidden:!0};if(this.maxVisibleItems===3)return[this.truncateLabel(t),n,...s.map((r,a)=>a===s.length-1?r:this.truncateLabel(r))];if(this.maxVisibleItems===4){const r=this.parsedItems[Math.floor(e/2)];return[this.truncateLabel(t),this.truncateLabel(r),n,...s.map((a,c)=>c===s.length-1?a:this.truncateLabel(a))]}}return this.parsedItems.map((t,s)=>s===this.parsedItems.length-1?t:this.truncateLabel(t))}truncateLabel(e){return e.label.length>15?Object.assign(Object.assign({},e),{label:`${e.label.slice(0,15)}...`}):e}render(){const e=this.getTruncatedItems();return i.h("nav",{key:"b3f515670374a7451981638d658f8e37f07ab10c","aria-label":"Breadcrumb"},i.h("ol",{key:"999b2035f3c996016e753be3826881a11054e184",class:"flex items-center space-x-2"},e.map((t,s)=>{const n=s===e.length-1;return i.h("li",{class:"flex items-center"},t.isHidden?i.h("span",{class:"truncate px-2 ","aria-hidden":"true"},"..."):i.h("eds-link",{label:t.label,url:t.url,intent:this.intent,current:n,"aria-label":t.label,size:"small","icon-small":"false"}),!n&&!t.isHidden&&i.h("eds-icon-wrapper",{icon:"chevron-right",class:"w-20 h-20"}))})))}get el(){return i.getElement(this)}static get watchers(){return{items:["parseItems"]}}};l.style=d;exports.eds_breadcrumb=l;
@@ -1,114 +0,0 @@
1
- import { r as c, h as i, g as d } from "./index-DQrtrXyM.mjs";
2
- const h = "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}.hidden{display:none}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.125rem * var(--tw-space-x-reverse));margin-left:calc(0.125rem * calc(1 - var(--tw-space-x-reverse)))}.px-2{padding-left:0.125rem;padding-right:0.125rem}.w-20{width:1.25rem}.w-28{width:1.75rem}.w-32{width:2rem}.w-44{width:2.75rem}.h-20{height:1.25rem}.h-24{height:1.5rem}.h-28{height:1.75rem}.h-32{height:2rem}@media (min-width: 750px){.md\\:block{display:block}}", m = h, o = class {
3
- constructor(e) {
4
- c(this, e), this.updateScreenSize = () => {
5
- const t = window.innerWidth;
6
- t < 769 ? (this.maxVisibleItems = 3, this.isSmallScreen = !0) : t <= 1024 ? (this.maxVisibleItems = 4, this.isSmallScreen = !0) : (this.maxVisibleItems = 6, this.isSmallScreen = !1);
7
- }, this.items = [], this.intent = "ghost", this.parsedItems = [], this.isSmallScreen = !1, this.maxVisibleItems = 6;
8
- }
9
- /**
10
- * Watch for changes to the `items` prop and parse it when it changes.
11
- * Converts the `items` string into an array of objects if it is a JSON string.
12
- * If the format is invalid, it logs an error and sets an empty array.
13
- *
14
- * @param newValue - The new value for the `items` prop.
15
- */
16
- parseItems(e) {
17
- try {
18
- typeof e == "string" ? this.parsedItems = JSON.parse(e) : this.parsedItems = e;
19
- } catch {
20
- this.parsedItems = [];
21
- }
22
- }
23
- /**
24
- * Lifecycle method that runs when the component is about to be loaded.
25
- * It parses the initial `items` prop value.
26
- */
27
- componentWillLoad() {
28
- this.parseItems(this.items), this.updateScreenSize(), window.addEventListener("resize", this.updateScreenSize);
29
- }
30
- disconnectedCallback() {
31
- window.removeEventListener("resize", this.updateScreenSize);
32
- }
33
- /**
34
- * Lifecycle method that runs when the component has fully loaded.
35
- * It emits a custom event for each `eds-link` element contained within the breadcrumb.
36
- */
37
- componentDidLoad() {
38
- this.el.shadowRoot.querySelectorAll("eds-link").forEach((t) => {
39
- this.emitContext(t);
40
- });
41
- }
42
- /**
43
- * Emits a custom event called `parentContext` for a given link element.
44
- * This event provides context information about the breadcrumb component.
45
- *
46
- * @param linkElement - The link element to which the event will be dispatched.
47
- */
48
- emitContext(e) {
49
- const t = new CustomEvent("parentContext", {
50
- detail: {
51
- componentName: this.el.tagName.toLowerCase(),
52
- identifier: null
53
- }
54
- });
55
- e.dispatchEvent(t);
56
- }
57
- /**
58
- * Truncates breadcrumb items based on the maxVisibleItems value.
59
- * Truncates `label` to 10 characters if `isSmallScreen` is true, except for the last label.
60
- */
61
- getTruncatedItems() {
62
- const e = this.parsedItems.length;
63
- if (e > this.maxVisibleItems) {
64
- const t = this.parsedItems[0], s = this.parsedItems.slice(-2), n = { label: "...", url: "", isHidden: !0 };
65
- if (this.maxVisibleItems === 3)
66
- return [
67
- this.truncateLabel(t),
68
- n,
69
- ...s.map((r, a) => a === s.length - 1 ? r : this.truncateLabel(r))
70
- ];
71
- if (this.maxVisibleItems === 4) {
72
- const r = this.parsedItems[Math.floor(e / 2)];
73
- return [
74
- this.truncateLabel(t),
75
- this.truncateLabel(r),
76
- n,
77
- ...s.map((a, l) => l === s.length - 1 ? a : this.truncateLabel(a))
78
- ];
79
- }
80
- }
81
- return this.parsedItems.map((t, s) => s === this.parsedItems.length - 1 ? t : this.truncateLabel(t));
82
- }
83
- /**
84
- * Truncates the label of a breadcrumb item to a maximum of 10 characters
85
- * if the screen is small.
86
- */
87
- truncateLabel(e) {
88
- return e.label.length > 15 ? Object.assign(Object.assign({}, e), { label: `${e.label.slice(0, 15)}...` }) : e;
89
- }
90
- /**
91
- * Render method for the breadcrumb component.
92
- * It creates a navigation element with an ordered list of breadcrumb links.
93
- * The last link is disabled and marked as the current page.
94
- */
95
- render() {
96
- const e = this.getTruncatedItems();
97
- return i("nav", { key: "b3f515670374a7451981638d658f8e37f07ab10c", "aria-label": "Breadcrumb" }, i("ol", { key: "999b2035f3c996016e753be3826881a11054e184", class: "flex items-center space-x-2" }, e.map((t, s) => {
98
- const n = s === e.length - 1;
99
- return i("li", { class: "flex items-center" }, t.isHidden ? i("span", { class: "truncate px-2 ", "aria-hidden": "true" }, "...") : i("eds-link", { label: t.label, url: t.url, intent: this.intent, current: n, "aria-label": t.label, size: "small", "icon-small": "false" }), !n && !t.isHidden && i("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }));
100
- })));
101
- }
102
- get el() {
103
- return d(this);
104
- }
105
- static get watchers() {
106
- return {
107
- items: ["parseItems"]
108
- };
109
- }
110
- };
111
- o.style = m;
112
- export {
113
- o as eds_breadcrumb
114
- };
@@ -1,13 +0,0 @@
1
- import { r as t, h as a } from "./index-DQrtrXyM.mjs";
2
- const r = ".flex{display:flex}.flex-wrap{flex-wrap:wrap}.gap-y-4{row-gap:0.25rem}", c = r, d = class {
3
- constructor(s) {
4
- t(this, s), this.accent = !1, this.tags = [];
5
- }
6
- render() {
7
- return a("div", { key: "b201dc6df5e809d828a055fb5f01fe798e228361", class: "flex flex-wrap gap-y-4" }, this.tags.map((s, e) => a("eds-tag", { key: e, intent: this.accent ? "accent" : "default", label: s })));
8
- }
9
- };
10
- d.style = c;
11
- export {
12
- d as eds_card_tags
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-BGGkUjck.js"),r=".flex{display:flex}.flex-wrap{flex-wrap:wrap}.gap-y-4{row-gap:0.25rem}",c=r,a=class{constructor(e){s.registerInstance(this,e),this.accent=!1,this.tags=[]}render(){return s.h("div",{key:"b201dc6df5e809d828a055fb5f01fe798e228361",class:"flex flex-wrap gap-y-4"},this.tags.map((e,t)=>s.h("eds-tag",{key:t,intent:this.accent?"accent":"default",label:e})))}};a.style=c;exports.eds_card_tags=a;
@@ -1,130 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BGGkUjck.js"),t=()=>e.h("div",{class:"static-content container"},e.h("eds-alert",{message:`EBRAINS Design System makes it easy to implement and use its components across any framework or no framework at all. We
2
- accomplish this by using standardized web platform APIs and Web Components.`,intent:"default"}),e.h("h2",null,"Load the module"),e.h("p",null,"Integrating EDSs components to a project without a JavaScript framework is straight forward. If you’re working on a simple HTML page, you can start using the components immediately by adding the tags below to the"," ",e.h("code",null,"head"),"."),e.h("eds-code-block",{code:'<script type="module" href="https://unpkg.com/@ebrains/components@0.0.1/loader"/><\/script>',language:"javascript","copy-label":"Copy Code"}),e.h("h2",null,"Load the styles"),e.h("p",null,"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the"," ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/output.css"/>',language:"css","copy-label":"Copy Code"}),e.h("h2",null,"Load the fonts"),e.h("p",null,"To load the correct webfonts as well, add either one of these tags to the ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>',language:"css","copy-label":"Copy Code"}),e.h("h2",null,"Component Usage"),e.h("p",null,"Once included, components can be used in your markup like any other regular HTML elements:"),e.h("eds-code-block",{code:'<eds-button label="my bytton" intent="primary"></eds-button>',language:"html","copy-label":"Copy Code"})),a=()=>e.h("div",null,e.h("p",null,"To start using the EBRAINS Design System, include the following scripts and styles in your project. You can also install it via npm for use with modern build tools."),e.h("eds-code-block",{code:"npm install @ebrains/components",language:"html","copy-label":"Copy Code"}),e.h("p",null,"TBD")),s=()=>e.h("div",null,e.h("h1",null,"Usage with basic HTML "),e.h("p",null,"TBD")),o=()=>e.h("div",null,e.h("h2",null,"React Wrappers"),e.h("p",null,"Learn how to use our components in a React Application."),"Simple install the package below and check out the examples",e.h("eds-code-block",{code:"npm install @ebrains/react",language:"javascript","copy-label":"Copy Code"}),e.h("eds-section-core",{"section-title":"Example React App","heading-level":"h3"},e.h("eds-code-block",{code:`
3
- import { EdsHeader } from "@ebrains/react";
4
-
5
- interface User {
6
- firstname: string;
7
- lastname: string;
8
- // Add any other properties your user object might have
9
- }
10
-
11
- interface AuthStatus {
12
- authenticated: boolean;
13
- user: User | null;
14
- }
15
-
16
- import { useEffect, useState } from "react";
17
-
18
- export function App() {
19
-
20
- const [authStatus, setAuthStatus] = useState<AuthStatus>({
21
- authenticated: false,
22
- user: null,
23
- });
24
-
25
- const [activeTabIndex, setActiveTabIndex] = useState<number>(0);
26
-
27
- // Use useEffect to render Stencil components dynamically after the component mounts
28
- useEffect(() => {
29
-
30
- const handleAuthStatusChange = (event: CustomEvent) => {
31
- console.log(event.detail);
32
- setAuthStatus(event.detail); // Set the entire object
33
- };
34
-
35
- const handleTabChange = (
36
- event: CustomEvent<{ index: number; name: string }>,
37
- ) => {
38
- console.log(event.detail);
39
- setActiveTabIndex(event.detail.index);
40
- };
41
-
42
- document.addEventListener(
43
- "authStatusChanged",
44
- handleAuthStatusChange as EventListener,
45
- );
46
- document.addEventListener("tabChange", handleTabChange as EventListener);
47
-
48
- return () => {
49
- document.removeEventListener(
50
- "authStatusChanged",
51
- handleAuthStatusChange as EventListener,
52
- );
53
- document.removeEventListener(
54
- "tabChange",
55
- handleTabChange as EventListener,
56
- );
57
- };
58
- }, []); // Empty dependency array ensures this runs only once after mounting
59
-
60
- return (
61
- <div id="main">
62
- <EdsHeader
63
- home-url="/"
64
- user-feature={false}
65
- keycloak-url="http://localhost:8080"
66
- keycloak-realm="nigeor-realm"
67
- keycloak-client-id="stencil-app"
68
- links="[
69
- { "label": "About", "url": "/about" },
70
- { "label": "Focus Areas", "url": "/focus-areas" },
71
- { "label": "News & Events", "url": "/news-and-events" },
72
- { "label": "Contact", "url": "/contact" }
73
- ]"
74
- ></EdsHeader>
75
-
76
- <div>
77
- User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}
78
- </div>
79
- {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}
80
- </div>
81
- </div>
82
- );
83
- }
84
-
85
- export default App;
86
- `,language:"javascript","copy-label":"Copy Code"}))),l=()=>e.h("div",null,e.h("h2",null,"Vue Wrappers"),e.h("p",null,"Learn how to use our components in a Vue Application."),e.h("eds-code-block",{code:"npm install @ebrains/vue",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';
87
- defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("eds-section-core",{"section-title":"Example Vue App","heading-level":"h3"},e.h("eds-code-block",{code:`
88
- <template>
89
- <h1 className="f-heading-02">Vue App</h1>
90
-
91
- <EdsHeader
92
- home-url="/"
93
- user-feature=false
94
- keycloak-url="http://localhost:8080"
95
- keycloak-realm="nigeor-realm"
96
- keycloak-client-id="stencil-app"
97
- links="[
98
- { "label": "About", "url": "/about" },
99
- { "label": "Focus Areas", "url": "/focus-areas" },
100
- { "label": "News & Events", "url": "/news-and-events" },
101
- { "label": "Contact", "url": "/contact" }
102
- ]">
103
- </EdsHeader>
104
-
105
- </template>
106
-
107
- <script>
108
-
109
- import { EdsHeader } from "@ebrains/vue";
110
-
111
- export default {
112
- name: "App",
113
- components: {
114
- EdsHeader,
115
- }
116
- };
117
- <\/script>
118
- `,language:"javascript","copy-label":"Copy Code"}))),c=()=>e.h("div",null,e.h("h2",null,"Angular Wrappers"),e.h("p",null,"Learn how to use our components in a Angular Application."),e.h("eds-code-block",{code:"npm install @ebrains/angular",language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Define the custom elements"),e.h("eds-code-block",{code:`import { defineCustomElements } from '@ebrains/components/loader';
119
- defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Angular Custom Elements Schema"),e.h("eds-code-block",{code:'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";',language:"javascript","copy-label":"Copy Code"}),e.h("eds-section-core",{"section-title":"Example Angular App","heading-level":"h3"},e.h("eds-code-block",{code:`
120
- <div class="container">
121
- <h1 class="f-heading-01">{{ title }}</h1>
122
- <eds-breadcrumb
123
- intent="tertiary"
124
- items="[
125
- { "label": "Home", "url": "#" },
126
- { "label": "Products", "url": "#" },
127
- ]">
128
- </eds-breadcrumb>
129
- <eds-footer></eds-footer>
130
- </div>`,language:"javascript","copy-label":"Copy Code"}))),r=class{constructor(n){e.registerInstance(this,n),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h(t,null);case 1:return e.h(a,null);case 2:return e.h(s,null);case 3:return e.h(o,null);case 4:return e.h(l,null);case 5:return e.h(c,null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"faa14dc7bb5d966ea1328f60d8ca88b3c406ad51",class:"container"},this.renderContent())}};exports.eds_components_section=r;
@@ -1,29 +0,0 @@
1
- import { r as o, h as e } from "./index-DQrtrXyM.mjs";
2
- const a = "", t = a, r = class {
3
- constructor(s) {
4
- o(this, s), this.backToTop = () => {
5
- window.scrollTo({ top: 0, behavior: "smooth" });
6
- }, this.extraClass = "", this.social = !1, this.hasCookiesSetUp = !1, this.enableScrollTop = !1, this.fundedBy = "EBRAINS is funded by the Horizon Europe Framework Programme.", this.rightsReserved = `${(/* @__PURE__ */ new Date()).getFullYear()} EBRAINS. All rights reserved.`, this.cookiesPreference = "Cookies Preferences";
7
- }
8
- /**
9
- * Toggles the cookie preferences popup, if available.
10
- * The actual implementation for handling cookie preferences should be defined here.
11
- * @private
12
- */
13
- toggleCookiesPopup() {
14
- }
15
- /**
16
- * Renders the footer component with optional sections and elements,
17
- * including social network links, a Horizon Europe funding acknowledgment, and
18
- * legal links such as "Cookies Preferences" and copyright information.
19
- *
20
- * @returns {JSX.Element} The rendered JSX for the footer component.
21
- */
22
- render() {
23
- return e("footer", { key: "efffa9b96cc2a094255fcb6d08ec45c7c7f09ec4", class: `${this.extraClass} pb-banner` }, this.social ? e("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, e("div", { class: "container pb-20 xl:pb-40 " }, e("div", { class: "grid-layout" }, e("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, e("eds-social-networks", { class: "mt-28" })), e("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" })))) : null, e("div", { key: "c3942c635dff3dc8cb47a21f20aca52acfaa3e18", class: `border-softest ${this.social ? "border-t-2" : ""} pt-20 pb-28 md:pt-28` }, e("div", { key: "57e963272659ce2e63294c969f3724a03aef667e", class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, e("div", { key: "c3e5cfe07fe9eb90450f7a87be1b95ed00ef38ce", class: "flex items-center gap-x-12" }, e("a", { key: "b0d0c65115b611f78d2b468559c16eb60f538907", target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en" }, e("eds-img", { key: "6cb5d067f07b456a8d828f3f42f2730e3e5374e0", width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), e("div", { key: "e5b768b0fb96fcdcb786d33fc808368005935491", class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, e("p", { key: "777263c2f4bde43d38690f41391eaf8e51d945fa" }, this.fundedBy), e("div", { key: "a415687d08edf8f3e03a6edce9c45f58662c8595", class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, e("span", { key: "c0b6498ad4f5e1f4f1945ebb971f9dd81cc74c77", class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "© ", this.rightsReserved), this.hasCookiesSetUp && e("button", { key: "10133d180bfb0d8a6354ea2cbea318a2c46fc463", class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference))), e("div", { key: "917d0980f91a8c42a75bae301b0a18e3777dd021", class: "ml-auto pl-12" }, this.enableScrollTop ? e("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop }) : null))));
24
- }
25
- };
26
- r.style = t;
27
- export {
28
- r as eds_footer
29
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BGGkUjck.js"),a="",t=a,s=class{constructor(o){e.registerInstance(this,o),this.backToTop=()=>{window.scrollTo({top:0,behavior:"smooth"})},this.extraClass="",this.social=!1,this.hasCookiesSetUp=!1,this.enableScrollTop=!1,this.fundedBy="EBRAINS is funded by the Horizon Europe Framework Programme.",this.rightsReserved=`${new Date().getFullYear()} EBRAINS. All rights reserved.`,this.cookiesPreference="Cookies Preferences"}toggleCookiesPopup(){}render(){return e.h("footer",{key:"efffa9b96cc2a094255fcb6d08ec45c7c7f09ec4",class:`${this.extraClass} pb-banner`},this.social?e.h("div",{class:"border-softest border-t-2 pt-20 pb-28 md:pt-28"},e.h("div",{class:"container pb-20 xl:pb-40 "},e.h("div",{class:"grid-layout"},e.h("div",{class:"grid-col-span-12 lg:grid-col-span-5"},e.h("eds-social-networks",{class:"mt-28"})),e.h("nav",{"aria-label":"Secondary nav",class:"grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0"})))):null,e.h("div",{key:"c3942c635dff3dc8cb47a21f20aca52acfaa3e18",class:`border-softest ${this.social?"border-t-2":""} pt-20 pb-28 md:pt-28`},e.h("div",{key:"57e963272659ce2e63294c969f3724a03aef667e",class:"container flex flex-wrap items-center gap-20 lg:flex-nowrap"},e.h("div",{key:"c3e5cfe07fe9eb90450f7a87be1b95ed00ef38ce",class:"flex items-center gap-x-12"},e.h("a",{key:"b0d0c65115b611f78d2b468559c16eb60f538907",target:"_blank",rel:"noopener noreferrer",class:"effect-focus focus-visible:rounded-xs flex w-[54px] ml-0",href:"https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en"},e.h("eds-img",{key:"6cb5d067f07b456a8d828f3f42f2730e3e5374e0",width:54,height:41,src:"https://www.ebrains.eu/flags/4x3/eu.svg"}))),e.h("div",{key:"e5b768b0fb96fcdcb786d33fc808368005935491",class:"f-ui-04 text-light order-last w-full lg:order-none lg:w-auto"},e.h("p",{key:"777263c2f4bde43d38690f41391eaf8e51d945fa"},this.fundedBy),e.h("div",{key:"a415687d08edf8f3e03a6edce9c45f58662c8595",class:"mt-4 flex flex-wrap gap-12 lg:flex-nowrap"},e.h("span",{key:"c0b6498ad4f5e1f4f1945ebb971f9dd81cc74c77",class:"effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline"},"© ",this.rightsReserved),this.hasCookiesSetUp&&e.h("button",{key:"10133d180bfb0d8a6354ea2cbea318a2c46fc463",class:"effect-focus !no-underline underline-offset-4 hover:!underline",onClick:()=>this.toggleCookiesPopup()},this.cookiesPreference))),e.h("div",{key:"917d0980f91a8c42a75bae301b0a18e3777dd021",class:"ml-auto pl-12"},this.enableScrollTop?e.h("eds-button",{"aria-label":"Back to top",intent:"ghostInverse",icon:"chevron-up",onClick:this.backToTop}):null))))}};s.style=t;exports.eds_footer=s;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BGGkUjck.js"),s=class{constructor(t){e.registerInstance(this,t),this.frameLabel=void 0,this.urlLabel="Open in Storybook",this.errorMessage="Could not load the requested Storybook content. Please check the URL or try again later.",this.storybookUrl=void 0,this.storyPath=void 0,this.intent="strong",this.tiny=!1,this.size="auto",this.bg=!0,this.iframeError=!1}articleClasses(){return[this.tiny?"min-h-120":"min-h-156",this.bg?"bg-inverse":"bg-default","rounded border-softer effect-focus-within relative flex grow flex-col border-2","w-full h-full"].join(" ")}getFrameHeight(){switch(this.size){case"sm":return"100px";case"md":return"200px";case"lg":return"400px";case"xl":return"700px";default:return"auto"}}async checkIframeAvailability(){try{if(!(await fetch(this.frameSrc,{method:"GET"})).ok)throw new Error("Failed to load")}catch{this.iframeError=!0}}componentWillLoad(){this.checkIframeAvailability()}componentDidLoad(){this.el.querySelectorAll("eds-link").forEach(r=>{this.emitContext(r)})}emitContext(t){const r=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:this.frameLabel}});t.dispatchEvent(r)}get storyLink(){return`${this.storybookUrl}/?path=/story/${this.storyPath}`}get frameSrc(){return`${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`}render(){return e.h("div",{key:"0c3a43efc1a125af5999af88c4eb071b5c3bc6c5",class:this.articleClasses()},e.h("div",{key:"32303d5e2c2f3b01efe1ceaf828346f873bea6b6",class:"effect-height flex items-center justify-between py-8 px-12"},e.h("span",{key:"75f7f6750413dad4af2ea62c12ffb994491d5d01",class:"f-ui-02"},this.frameLabel),this.iframeError?null:e.h("eds-link",{label:this.urlLabel,url:this.storyLink,intent:this.intent,class:"ml-auto",external:!0,disabled:!1,icon:"arrow-diagonal"})),e.h("div",{key:"1fd99f6eda026814910b0cd93635616b7d3ffe09",class:"border-softer border-t-2"},this.iframeError?e.h("div",{class:"container ml-8 mr-8 mt-16"},this.errorMessage):e.h("iframe",{src:this.frameSrc,width:"100%",height:this.getFrameHeight(),title:this.frameLabel,frameBorder:"0",allowFullScreen:!0})))}get el(){return e.getElement(this)}};exports.eds_frame=s;
@@ -1,74 +0,0 @@
1
- import { r as s, h as e, g as i } from "./index-DQrtrXyM.mjs";
2
- const o = class {
3
- constructor(t) {
4
- s(this, t), this.frameLabel = void 0, this.urlLabel = "Open in Storybook", this.errorMessage = "Could not load the requested Storybook content. Please check the URL or try again later.", this.storybookUrl = void 0, this.storyPath = void 0, this.intent = "strong", this.tiny = !1, this.size = "auto", this.bg = !0, this.iframeError = !1;
5
- }
6
- articleClasses() {
7
- return [
8
- this.tiny ? "min-h-120" : "min-h-156",
9
- this.bg ? "bg-inverse" : "bg-default",
10
- "rounded border-softer effect-focus-within relative flex grow flex-col border-2",
11
- "w-full h-full"
12
- ].join(" ");
13
- }
14
- getFrameHeight() {
15
- switch (this.size) {
16
- case "sm":
17
- return "100px";
18
- case "md":
19
- return "200px";
20
- case "lg":
21
- return "400px";
22
- case "xl":
23
- return "700px";
24
- default:
25
- return "auto";
26
- }
27
- }
28
- async checkIframeAvailability() {
29
- try {
30
- if (!(await fetch(this.frameSrc, { method: "GET" })).ok)
31
- throw new Error("Failed to load");
32
- } catch {
33
- this.iframeError = !0;
34
- }
35
- }
36
- componentWillLoad() {
37
- this.checkIframeAvailability();
38
- }
39
- componentDidLoad() {
40
- this.el.querySelectorAll("eds-link").forEach((r) => {
41
- this.emitContext(r);
42
- });
43
- }
44
- /**
45
- * Emits a custom event called `parentContext` for a given link element.
46
- * This event provides context information about the breadcrumb component.
47
- *
48
- * @param linkElement - The link element to which the event will be dispatched.
49
- */
50
- emitContext(t) {
51
- const r = new CustomEvent("parentContext", {
52
- detail: {
53
- componentName: this.el.tagName.toLowerCase(),
54
- identifier: this.frameLabel
55
- }
56
- });
57
- t.dispatchEvent(r);
58
- }
59
- get storyLink() {
60
- return `${this.storybookUrl}/?path=/story/${this.storyPath}`;
61
- }
62
- get frameSrc() {
63
- return `${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`;
64
- }
65
- render() {
66
- return e("div", { key: "0c3a43efc1a125af5999af88c4eb071b5c3bc6c5", class: this.articleClasses() }, e("div", { key: "32303d5e2c2f3b01efe1ceaf828346f873bea6b6", class: "effect-height flex items-center justify-between py-8 px-12" }, e("span", { key: "75f7f6750413dad4af2ea62c12ffb994491d5d01", class: "f-ui-02" }, this.frameLabel), this.iframeError ? null : e("eds-link", { label: this.urlLabel, url: this.storyLink, intent: this.intent, class: "ml-auto", external: !0, disabled: !1, icon: "arrow-diagonal" })), e("div", { key: "1fd99f6eda026814910b0cd93635616b7d3ffe09", class: "border-softer border-t-2" }, this.iframeError ? e("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage) : e("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: !0 })));
67
- }
68
- get el() {
69
- return i(this);
70
- }
71
- };
72
- export {
73
- o as eds_frame
74
- };
@@ -1,74 +0,0 @@
1
- import { r as t, c as i, h as e } from "./index-DQrtrXyM.mjs";
2
- const r = "", l = r, o = class {
3
- constructor(s) {
4
- t(this, s), this.menuClose = i(this, "menuClose", 7), this.links = void 0, this.menuLinks = void 0, this.homeUrl = "/", this.inverseHeader = !1, this.isMenuOpen = !1;
5
- }
6
- /**
7
- * Listens for the toggleMenu event to open or close the menu.
8
- * This event is emitted by the eds-header component.
9
- */
10
- handleToggleMenu(s) {
11
- this.isMenuOpen = s.detail;
12
- }
13
- /** Opens the menu */
14
- openMenu() {
15
- this.isMenuOpen = !0;
16
- }
17
- /** Closes the menu */
18
- closeMenu() {
19
- this.isMenuOpen = !1, this.menuClose.emit();
20
- }
21
- // Lifecycle method to add the resize event listener when component loads
22
- componentDidLoad() {
23
- window.addEventListener("resize", this.handleResize.bind(this));
24
- }
25
- // Lifecycle method to remove the resize event listener when component unloads
26
- disconnectedCallback() {
27
- window.removeEventListener("resize", this.handleResize.bind(this));
28
- }
29
- // Function to close the menu if screen width is larger than a defined breakpoint (1024px)
30
- handleResize() {
31
- window.innerWidth >= 1024 && (this.isMenuOpen = !1);
32
- }
33
- /**
34
- * Parses the `links` prop into an array of link objects.
35
- * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
36
- *
37
- * @returns {any[]} Array of parsed link objects
38
- */
39
- get parsedLinks() {
40
- if (typeof this.links == "object")
41
- return this.links;
42
- if (typeof this.links == "string")
43
- try {
44
- return JSON.parse(this.links);
45
- } catch (s) {
46
- return console.error("Error parsing links prop:", s), [];
47
- }
48
- return [];
49
- }
50
- /**
51
- * Parses the `menuLinks` prop into an array of link objects.
52
- * Returns an empty array if parsing fails or if `menuLinks` is not a valid JSON string or object.
53
- *
54
- * @returns {any[]} Array of parsed menu link objects
55
- */
56
- get parsedMenuLinks() {
57
- if (typeof this.menuLinks == "object")
58
- return this.menuLinks;
59
- if (typeof this.menuLinks == "string")
60
- try {
61
- return JSON.parse(this.menuLinks);
62
- } catch (s) {
63
- return console.error("Error parsing menuLinks prop:", s), [];
64
- }
65
- return [];
66
- }
67
- render() {
68
- return this.isMenuOpen ? e("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, e("div", { class: "flex min-h-full flex-col" }, e("div", { class: `bg-default w-full sticky top-0 ${this.inverseHeader ? "bg-strongest" : "bg-default"}` }, e("div", { class: "mx-auto flex items-center justify-between" }, e("div", { class: "mr-auto w-[200px] h-[85px]" }, e("eds-logo", { type: this.inverseHeader ? "color-white" : "color", href: this.homeUrl })), e("div", { class: "px-16" }, e("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), e("div", { class: "py-16 px-16" }, e("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((s, n) => e("eds-link", { label: s.label, key: n, url: s.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" }))), e("eds-block-break", null), e("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((s, n) => e("eds-link", { label: s.label, key: n, url: s.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" })))), e("div", { class: "mt-auto" }, e("eds-footer", { social: !0, "extra-class": "bg-darker" })))) : null;
69
- }
70
- };
71
- o.style = l;
72
- export {
73
- o as eds_fullscreen_menu
74
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BGGkUjck.js"),i="",r=i,t=class{constructor(s){e.registerInstance(this,s),this.menuClose=e.createEvent(this,"menuClose",7),this.links=void 0,this.menuLinks=void 0,this.homeUrl="/",this.inverseHeader=!1,this.isMenuOpen=!1}handleToggleMenu(s){this.isMenuOpen=s.detail}openMenu(){this.isMenuOpen=!0}closeMenu(){this.isMenuOpen=!1,this.menuClose.emit()}componentDidLoad(){window.addEventListener("resize",this.handleResize.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.handleResize.bind(this))}handleResize(){window.innerWidth>=1024&&(this.isMenuOpen=!1)}get parsedLinks(){if(typeof this.links=="object")return this.links;if(typeof this.links=="string")try{return JSON.parse(this.links)}catch(s){return console.error("Error parsing links prop:",s),[]}return[]}get parsedMenuLinks(){if(typeof this.menuLinks=="object")return this.menuLinks;if(typeof this.menuLinks=="string")try{return JSON.parse(this.menuLinks)}catch(s){return console.error("Error parsing menuLinks prop:",s),[]}return[]}render(){return this.isMenuOpen?e.h("div",{class:"eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll"},e.h("div",{class:"flex min-h-full flex-col"},e.h("div",{class:`bg-default w-full sticky top-0 ${this.inverseHeader?"bg-strongest":"bg-default"}`},e.h("div",{class:"mx-auto flex items-center justify-between"},e.h("div",{class:"mr-auto w-[200px] h-[85px]"},e.h("eds-logo",{type:this.inverseHeader?"color-white":"color",href:this.homeUrl})),e.h("div",{class:"px-16"},e.h("eds-button",{"aria-label":"Close menu",intent:"ghostInverse",icon:"close",onClick:()=>this.closeMenu()})))),e.h("div",{class:"py-16 px-16"},e.h("nav",{class:"mt-28 flex flex-col gap-y-8"},this.parsedLinks.map((s,n)=>e.h("eds-link",{label:s.label,key:n,url:s.url,intent:"tertiary",size:"large",class:"effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit",onClick:()=>this.closeMenu(),icon:"arrow-right"}))),e.h("eds-block-break",null),e.h("nav",{class:"mt-28 flex flex-col gap-y-8"},this.parsedMenuLinks.map((s,n)=>e.h("eds-link",{label:s.label,key:n,url:s.url,intent:"tertiary",size:"large",class:"effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit",onClick:()=>this.closeMenu(),icon:"chevron-right"})))),e.h("div",{class:"mt-auto"},e.h("eds-footer",{social:!0,"extra-class":"bg-darker"})))):null}};t.style=r;exports.eds_fullscreen_menu=t;