@ebrains/react 1.4.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/bin-37cad2f0.esm.js +3 -0
  2. package/color-primary-palette_6.entry.esm.js +106 -106
  3. package/components-section.entry.esm.js +1 -1
  4. package/correct-use-of-colors.entry.esm.js +33 -33
  5. package/docs-palettes.entry.esm.js +1 -1
  6. package/docs-tokens.entry.esm.js +1 -1
  7. package/draft-dd5dada2.esm.js +3 -0
  8. package/edit-1dc8d11b.esm.js +3 -0
  9. package/eds-accordion.entry.esm.js +11 -10
  10. package/eds-app-root.entry.esm.js +4 -4
  11. package/{eds-avatar_29.entry.esm.js → eds-avatar_26.entry.esm.js} +305 -556
  12. package/eds-card-generic.entry.esm.js +4 -5
  13. package/eds-card-project.entry.esm.js +10 -11
  14. package/eds-cookies-preference.entry.esm.js +2 -2
  15. package/eds-feedback.entry.esm.js +5 -5
  16. package/eds-footer.entry.esm.js +129 -0
  17. package/eds-frame.entry.esm.js +4 -4
  18. package/eds-fullscreen-menu.entry.esm.js +124 -0
  19. package/eds-icon-bin.entry.esm.js +21 -0
  20. package/eds-icon-bluesky.entry.esm.js +1 -1
  21. package/eds-icon-bookmark.entry.esm.js +1 -1
  22. package/eds-icon-close.entry.esm.js +1 -1
  23. package/eds-icon-copy.entry.esm.js +1 -1
  24. package/eds-icon-draft.entry.esm.js +21 -0
  25. package/eds-icon-edit.entry.esm.js +21 -0
  26. package/eds-icon-eu.entry.esm.js +1 -1
  27. package/eds-icon-external.entry.esm.js +1 -1
  28. package/eds-icon-facebook.entry.esm.js +1 -1
  29. package/eds-icon-gitlab.entry.esm.js +1 -1
  30. package/eds-icon-linkedin.entry.esm.js +1 -1
  31. package/eds-icon-loader.entry.esm.js +1 -1
  32. package/eds-icon-mastodon.entry.esm.js +1 -1
  33. package/eds-icon-menu.entry.esm.js +1 -1
  34. package/eds-icon-minus.entry.esm.js +1 -1
  35. package/eds-icon-more.entry.esm.js +1 -1
  36. package/eds-icon-paper.entry.esm.js +1 -1
  37. package/eds-icon-plus.entry.esm.js +1 -1
  38. package/eds-icon-portal.entry.esm.js +1 -1
  39. package/eds-icon-private.entry.esm.js +1 -1
  40. package/eds-icon-public.entry.esm.js +1 -1
  41. package/eds-icon-search.entry.esm.js +1 -1
  42. package/eds-icon-star.entry.esm.js +1 -1
  43. package/eds-icon-start.entry.esm.js +21 -0
  44. package/eds-icon-success.entry.esm.js +1 -1
  45. package/eds-icon-thumbs-down.entry.esm.js +1 -1
  46. package/eds-icon-thumbs-up.entry.esm.js +1 -1
  47. package/eds-icon-tutorial.entry.esm.js +1 -1
  48. package/eds-icon-twitter.entry.esm.js +1 -1
  49. package/eds-icon-unknown.entry.esm.js +1 -1
  50. package/eds-icon-updown.entry.esm.js +1 -1
  51. package/eds-icon-user.entry.esm.js +1 -1
  52. package/eds-icon-youtube.entry.esm.js +1 -1
  53. package/eds-modal.entry.esm.js +150 -0
  54. package/eds-progress-bar.entry.esm.js +4 -4
  55. package/eds-section-core_2.entry.esm.js +5 -5
  56. package/eds-social-networks.entry.esm.js +74 -0
  57. package/eds-spinner.entry.esm.js +51 -14
  58. package/eds-splash-screen.entry.esm.js +1 -4
  59. package/eds-switch.entry.esm.js +8 -6
  60. package/eds-timeline.entry.esm.js +4 -4
  61. package/eds-toast-manager.entry.esm.js +1 -1
  62. package/eds-tooltip.entry.esm.js +12 -6
  63. package/eds-trl.entry.esm.js +2 -2
  64. package/incorrect-use-of-colors.entry.esm.js +8 -8
  65. package/index.esm2.js +27 -6
  66. package/logo-space.entry.esm.js +9 -9
  67. package/logo-variations-horizontal_2.entry.esm.js +28 -28
  68. package/logo-variations-tabs.entry.esm.js +1 -1
  69. package/logo-wrong-usage.entry.esm.js +25 -25
  70. package/package.json +1 -1
  71. package/start-65126a4f.esm.js +3 -0
  72. package/svg-repository.entry.esm.js +11 -3
  73. package/token-list_3.entry.esm.js +5 -5
  74. package/token-ratios.entry.esm.js +3 -3
  75. package/token-spacing.entry.esm.js +26 -26
  76. package/token-typography.entry.esm.js +2 -2
  77. package/eds-rating.entry.esm.js +0 -79
@@ -47,7 +47,6 @@ const EdsCardGeneric = class {
47
47
  // Ignore the event if it's not targeted at this specific instance
48
48
  return;
49
49
  }
50
- //console.log(event.detail);
51
50
  this.parentContext = event.detail;
52
51
  event.stopPropagation();
53
52
  }
@@ -75,18 +74,18 @@ const EdsCardGeneric = class {
75
74
  }
76
75
  render() {
77
76
  return h("article", {
78
- key: '440a448c841370838c0c66610bd1266b46f66541',
77
+ key: '0d0a2bfb5ab1f08cdada2180977ff7bd77594030',
79
78
  class: this.articleClasses(),
80
79
  onClick: () => this.handleClick()
81
80
  }, h("eds-card-title", {
82
- key: '292d93a9a993c6dcbfd276097a21d3984b1794c4',
81
+ key: '4c262de23e15ee9112b8562d22fb5a35cf59938f',
83
82
  "heading-level": this.headingLevel,
84
83
  titleClass: this.image ? 'f-ui-01' : undefined,
85
84
  "card-title": this.cardTitle,
86
85
  url: this.url,
87
86
  hierarchy: this.hierarchy
88
87
  }), this.description && h("eds-card-desc", {
89
- key: '4b304cc3c65a42b3b1bcbebd9968c45e79cdabf7',
88
+ key: '867cbc0ee0b24aa3acbfed5d7efbffc11ea85ccd',
90
89
  class: "mt-8",
91
90
  "truncate-lines": "3",
92
91
  description: this.description
@@ -97,7 +96,7 @@ const EdsCardGeneric = class {
97
96
  picture: this.avatar,
98
97
  initials: this.shortAbbreviation
99
98
  }) : null, h("div", {
100
- key: '40388913b1abb9308f42469956342efdbb48d508',
99
+ key: '66fe518e05e4fcaf99ea815b0c2f3d525a2a9989',
101
100
  class: "flex flex-wrap gap-y-4 gap-x-1"
102
101
  }, this.parsedTags.map((tag, index) => h("eds-tag", {
103
102
  key: index,
@@ -142,7 +142,6 @@ const EdsCardProject = class {
142
142
  if (this.image) {
143
143
  try {
144
144
  this.parsedImage = JSON.parse(this.image);
145
- //console.log(this.parsedImage);
146
145
  } catch (error) {
147
146
  //console.error('Error parsing image prop:', error);
148
147
  }
@@ -167,38 +166,38 @@ const EdsCardProject = class {
167
166
  }) : 'bg-default', this.bgOnHover && this.color ? 'effect-background bg-default focus-within:bg-transparent hover:bg-transparent' : 'effect-background hover:bg-default', this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'].join(' ');
168
167
  const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
169
168
  return h("article", {
170
- key: '8b4707ad7689824c50db3112b5844e28beb31533',
169
+ key: '021f5e4d88bb987811ea169880cd327e996e36e9',
171
170
  class: cardClasses,
172
171
  onClick: event => this.handleClick(event)
173
172
  }, h("div", {
174
- key: '5cb7673378ab23826202b34034247145b7289bda',
173
+ key: '5f1a3d00b03e6cc19023ee437a7bd2bf6b52d77a',
175
174
  class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}`
176
175
  }, h("div", {
177
- key: '8111b523840c8b363bbb422c1f314ce07057ea92',
176
+ key: '6e42bcbdbe5ba666eae942a7c4e354627f019c6a',
178
177
  class: "lg:max-w-[720px]"
179
178
  }, h("eds-card-title", {
180
- key: 'a326e1384873edb9bfc86c33e3abeb95064cc8db',
179
+ key: '12884d77432d8cc6021f9432538f1beacf3190f3',
181
180
  "heading-level": this.headingLevel,
182
181
  titleClass: this.image ? 'f-ui-01' : undefined,
183
182
  "card-title": this.titleProject,
184
183
  url: this.url
185
184
  }), this.editorialTitle && h("span", {
186
- key: '5e2de62642363533a950f3e923e3f4dfc64c56c1',
185
+ key: '4f604d61c3a1a2405bfaf6407a893015c68f6f35',
187
186
  class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}`
188
187
  }, this.editorialTitle)), this.categoryTitle && h("div", {
189
- key: '424fed86ec4e714dc5f3644d85e5670d8be56d7f',
188
+ key: '8d767d7ac9c069412b64869a03eae8ccf4b513ad',
190
189
  class: "mt-auto flex items-center gap-x-12 pt-12"
191
190
  }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && h("eds-tag", {
192
- key: 'b6961cc23835a9b3d1abae47e1c4224a29255164',
191
+ key: '2a488d291c1f3e10b8ed36aa61e04ecf5299b320',
193
192
  label: this.categoryTitle
194
193
  }))), this.parsedImage && h("div", {
195
- key: '69564e0c65f6422a6ccc3957a8080e7e494461bb',
194
+ key: '9d4fa14e0e56d8db8c1747b477cd77e4b7281f8c',
196
195
  class: imageClasses
197
196
  }, h("div", {
198
- key: 'e47a21a5356459936b6f528a3aba50240851fcf2',
197
+ key: '627f549786c9a1674349b851704690fdb597391e',
199
198
  class: "aspect-1x1 w-full"
200
199
  }, h("eds-img", Object.assign({
201
- key: 'f64af6387cdef28619aa8a0465d4a50ec3a95007',
200
+ key: 'a4eeb6a0d7f725d8c706e98c57f492e94c9c7b4b',
202
201
  sizes: this.vertical ? this.parsedImage.sizes || '' : '192px'
203
202
  }, this.parsedImage)))));
204
203
  }
@@ -29,9 +29,9 @@ const EdsCookiesPreference = class {
29
29
  }
30
30
  render() {
31
31
  return h("div", {
32
- key: '4563e11542b6cab4f509ec25646a0e1f8380af6c'
32
+ key: 'b16a1d29fe09e09fdcfc24b06430e6f99a69a81a'
33
33
  }, h("eds-link", {
34
- key: '24185ecd7818920490c1ca5c742e0f1a884f27da',
34
+ key: 'ee2192e1368a50fe3c80da277e97e614dd7e457f',
35
35
  size: "small",
36
36
  intent: this.intent,
37
37
  label: this.buttonText,
@@ -61,20 +61,20 @@ const EdsFeedback = class {
61
61
  const levelNum = this.headingLevel.replace('h', '');
62
62
  const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
63
63
  return h("div", {
64
- key: 'b51bb78eea70babd1b1ca98ed5e657184d8e459f',
64
+ key: '997deecc8a62be9bc1dda142c26df1aeb8b4ac41',
65
65
  class: "grid inline"
66
66
  }, h(HeadingTag, {
67
- key: 'eb84cce3a03aec99d0980ecd3c4aa4338f8d14e2',
67
+ key: '3ae9bd1c1cb1e1d6f452f7f101ee8032db90328d',
68
68
  class: headingClass
69
69
  }, this.label), h("p", {
70
- key: '5923739b4a7e73dc1c83710fe1535d51d6289b02',
70
+ key: '1788790da082ec33d4c4d637be0c872ddf7303e3',
71
71
  class: "f-body-01 text-light"
72
72
  }, this.description), h("eds-rating", {
73
- key: '08d4b80838bc758cfdcf6f909f4bb41ae00d4c40',
73
+ key: '763f72d5376075c765c4309c607f3591467bb377',
74
74
  "rating-type": this.type,
75
75
  "rating-count": this.count
76
76
  }), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && h("span", {
77
- key: '849014d7a3c2ebf78b1de434d7ad92549c0ae2de',
77
+ key: '4c0e09faa967965e6cca47775d076e1e317b7948',
78
78
  class: "f-ui-04 text-lighter"
79
79
  }, this.parsedMappings[this.selectedRating - 1]));
80
80
  }
@@ -0,0 +1,129 @@
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index.esm2.js';
2
+ import 'react';
3
+ import 'react/jsx-runtime';
4
+ import 'react-dom';
5
+
6
+ const edsFooterCss = "p{margin:0}.cursor-pointer{cursor:pointer}.ml-4{margin-left:0.25rem}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-darker{background-color:var(--grey-400)}.border-softest{border-color:rgba(0, 0, 0, .05)}.border-t-2{border-top-width:2px}.pt-20{padding-top:1.25rem}.pb-28{padding-bottom:1.75rem}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.grid-col-span-12{--container-grid-columns:12;grid-column:span 12 / span 12}.mt-28{margin-top:1.75rem}.gap-y-12{row-gap:0.75rem}.gap-x-12{-moz-column-gap:0.75rem;column-gap:0.75rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-20{gap:1.25rem}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.focus-visible\\:rounded-xs:focus-visible{border-radius:4px}.flex{display:flex}.w-\\[54px\\]{width:54px}.ml-0{margin-left:0rem}.order-last{order:9999}.w-full{width:100%}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-700)}.mt-4{margin-top:0.25rem}.mr-4{margin-right:0.25rem}.gap-12{gap:0.75rem}.inline-block{display:inline-block}.\\!no-underline{text-decoration-line:none !important}.decoration-2{text-decoration-thickness:2px}.underline-offset-4{text-underline-offset:4px}.hover\\:\\!underline:hover{text-decoration-line:underline !important}.ml-auto{margin-left:auto}.pl-12{padding-left:0.75rem}.opacity-0{opacity:0}@media (min-width: 750px){.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:grid-col-span-5{--container-grid-columns:5;grid-column:span 5 / span 5}.lg\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}.lg\\:grid-col-start-7{grid-column-start:7}.lg\\:mt-0{margin-top:0rem}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:order-none{order:0}.lg\\:w-auto{width:auto}}@media (min-width: 1024px){.xl\\:pb-40{padding-bottom:2.5rem}}";
7
+ const EdsFooterStyle0 = edsFooterCss;
8
+ const EdsFooter = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.cookies = createEvent(this, "cookies", 7);
12
+ /**
13
+ * Scrolls the page smoothly back to the top.
14
+ * Called when the "Back to top" button is clicked.
15
+ * @private
16
+ */
17
+ this.backToTop = () => {
18
+ window.scrollTo({
19
+ top: 0,
20
+ behavior: 'smooth'
21
+ });
22
+ };
23
+ this.social = false;
24
+ this.enableScrollTop = false;
25
+ this.fundedBy = 'EBRAINS is funded by the Horizon Europe Framework Programme.';
26
+ this.rightsReserved = `${new Date().getFullYear()} EBRAINS. All rights reserved.`;
27
+ this.cookiesPreferences = 'Cookies preferences';
28
+ this.enableCookiesSettings = false;
29
+ this.backToTopAriaLabel = 'Back to Top';
30
+ this.showMatomoNotice = false;
31
+ }
32
+ componentDidLoad() {
33
+ var _a;
34
+ this.backBtn = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('#toTop');
35
+ }
36
+ handleScroll() {
37
+ if (!this.backBtn) {
38
+ return;
39
+ }
40
+ const shouldShow = window.scrollY > 100 && document.body.scrollHeight > window.innerHeight;
41
+ this.backBtn.style.opacity = shouldShow ? '1' : '0';
42
+ }
43
+ toggleCookiesConsent() {
44
+ this.cookies.emit('toggle');
45
+ }
46
+ /**
47
+ * Renders the footer component with optional sections and elements,
48
+ * including social network links, a Horizon Europe funding acknowledgment, and
49
+ * legal links such as "Cookies Preferences" and copyright information.
50
+ *
51
+ * @returns {JSX.Element} The rendered JSX for the footer component.
52
+ */
53
+ render() {
54
+ return h("footer", {
55
+ key: '7b9fd367d8ab6581854f2b2fd3ffea0fee47d871'
56
+ }, this.social ? h("div", {
57
+ class: "border-softest border-t-2 pt-20 md:pt-28"
58
+ }, h("div", {
59
+ class: "container pb-20"
60
+ }, h("div", {
61
+ class: "grid-layout"
62
+ }, h("div", {
63
+ class: "grid-col-span-12 lg:grid-col-span-5"
64
+ }, h("eds-social-networks", {
65
+ class: "mt-28"
66
+ }))))) : null, h("div", {
67
+ key: 'd01c96c60e4fc43175d7e2e1c238284e6a9540a1',
68
+ class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28`
69
+ }, h("div", {
70
+ key: '76e2468ca9fed5d1438d71a147d1861f537e77b4',
71
+ class: "container flex items-center gap-20 lg:flex-nowrap"
72
+ }, h("div", {
73
+ key: 'd944e079008523980a5adadc7e7fbd308ad9c7b8',
74
+ class: "flex items-center gap-x-12"
75
+ }, h("a", {
76
+ key: '0841e38c0b4ad9adacd59f6a43ddf3931903af07',
77
+ target: "_blank",
78
+ rel: "noopener noreferrer",
79
+ class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0",
80
+ href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en",
81
+ "aria-label": "Learn about Horizon Europe funding"
82
+ }, h("eds-img", {
83
+ key: '6cfe4051c471215e2919efde9436c7827f7cde5a',
84
+ width: 54,
85
+ height: 41,
86
+ src: "https://www.ebrains.eu/flags/4x3/eu.svg",
87
+ alt: "European Union Flag"
88
+ }))), h("div", {
89
+ key: 'dbb3471bc25444418423c5f2148af22ef7beb77f'
90
+ }, h("div", {
91
+ key: 'c70bd75c802b6c2b61b627db52566f639362f90d',
92
+ class: "f-ui-04 text-light"
93
+ }, h("p", {
94
+ key: 'dc0dfaf8d16b53b0dbac78e693adf9dc26620d7a'
95
+ }, this.fundedBy), h("div", {
96
+ key: '121fe9d4d74392a02e13c6f54ba94ef8cb008e8e',
97
+ class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block"
98
+ }, h("span", {
99
+ key: 'ab733d143a6113080e28e2af36034c0d41b4a297',
100
+ class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4"
101
+ }, "\u00A9 ", this.rightsReserved), this.enableCookiesSettings ? h("eds-link", {
102
+ label: this.cookiesPreferences,
103
+ intent: "underline",
104
+ "extra-class": "f-ui-04",
105
+ onClick: () => {
106
+ this.toggleCookiesConsent();
107
+ }
108
+ }) : null))), h("div", {
109
+ key: 'ccdcbd5967e74cb305f18b961ad747b8e4da004f',
110
+ class: "ml-auto pl-12"
111
+ }, this.enableScrollTop ? h("div", {
112
+ id: "toTop",
113
+ class: "transition-all transition duration-75 opacity-0"
114
+ }, h("eds-button", {
115
+ id: "backToTop",
116
+ "aria-hidden": "true",
117
+ "aria-label": this.backToTopAriaLabel,
118
+ intent: "ghostInverse",
119
+ icon: "chevron-up",
120
+ onClick: this.backToTop
121
+ })) : null))));
122
+ }
123
+ get el() {
124
+ return getElement(this);
125
+ }
126
+ };
127
+ EdsFooter.style = EdsFooterStyle0;
128
+
129
+ export { EdsFooter as eds_footer };
@@ -73,13 +73,13 @@ const EdsFrame = class {
73
73
  }
74
74
  render() {
75
75
  return h("div", {
76
- key: 'acfa57c701b5c683b3ff48ac2ff6a7c782977cd4',
76
+ key: '7544fb993c0e18ca62fd0bb2bcc75088645163d9',
77
77
  class: this.articleClasses()
78
78
  }, h("div", {
79
- key: 'd62b6f7f67e41a6c8f0948c9d94e991d83dbe273',
79
+ key: '3c8c254255056515de9496bd35dd9f0f43cab505',
80
80
  class: "effect-height flex items-center justify-between py-8 px-12"
81
81
  }, h("span", {
82
- key: '40618b0353599888578e08a5422da754f97455d0',
82
+ key: 'fc9bdb15d9d4ac15c8b3e572b4e755cdcfa436b0',
83
83
  class: "f-ui-02"
84
84
  }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? h("eds-link", {
85
85
  label: this.urlLabel,
@@ -90,7 +90,7 @@ const EdsFrame = class {
90
90
  disabled: false,
91
91
  icon: "arrow-diagonal"
92
92
  }) : null), h("div", {
93
- key: '96656482b2732aa766d1bcb45f28189991adb493',
93
+ key: '65c233f9ec7c616cf23350a2b91b2095de0db0b2',
94
94
  class: "border-softer"
95
95
  }, this.iframeError ? h("div", {
96
96
  class: "container ml-8 mr-8 mt-16"
@@ -0,0 +1,124 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index.esm2.js';
2
+ import { p as parseData } from './sharedUtils-a550989c.esm.js';
3
+ import 'react';
4
+ import 'react/jsx-runtime';
5
+ import 'react-dom';
6
+
7
+ const edsFullscreenMenuCss = ".bg-default{background-color:var(--grey-200)}.bg-darker{background-color:var(--grey-400)}.bg-inverse{background-color:var(--white)}.bg-strongest{background-color:var(--black)}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0rem}.z-\\[999999\\]{z-index:999999}.overflow-y-scroll{overflow-y:scroll}.flex{display:flex}.inline-flex{display:inline-flex}.min-h-full{min-height:100%}.flex-col{flex-direction:column}.w-full{width:100%}.top-0{top:0rem}.mx-auto{margin-left:auto;margin-right:auto}.mt-auto{margin-top:auto}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.px-16{padding-left:1rem;padding-right:1rem}.py-16{padding-top:1rem;padding-bottom:1rem}.mt-28{margin-top:1.75rem}.gap-y-8{row-gap:0.5rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.rounded-xs{border-radius:4px}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.hover\\:text-lighter:hover{color:var(--grey-600)}.w-fit{width:-moz-fit-content;width:fit-content}";
8
+ const EdsFullscreenMenuStyle0 = edsFullscreenMenuCss;
9
+ const EdsFullscreenMenu = class {
10
+ constructor(hostRef) {
11
+ registerInstance(this, hostRef);
12
+ this.menuClose = createEvent(this, "menuClose", 7);
13
+ this.links = undefined;
14
+ this.menuLinks = undefined;
15
+ this.homeUrl = '/';
16
+ this.inverseHeader = false;
17
+ this.isMenuOpen = false;
18
+ }
19
+ /**
20
+ * Listens for the toggleMenu event to open or close the menu.
21
+ * This event is emitted by the eds-header component.
22
+ */
23
+ handleToggleMenu(event) {
24
+ this.isMenuOpen = event.detail; // Set isMenuOpen based on the event payload
25
+ }
26
+ /** Opens the menu */
27
+ openMenu() {
28
+ this.isMenuOpen = true;
29
+ }
30
+ /** Closes the menu */
31
+ closeMenu() {
32
+ this.isMenuOpen = false;
33
+ this.menuClose.emit();
34
+ }
35
+ // Lifecycle method to add the resize event listener when component loads
36
+ componentDidLoad() {
37
+ window.addEventListener('resize', this.handleResize.bind(this));
38
+ }
39
+ // Lifecycle method to remove the resize event listener when component unloads
40
+ disconnectedCallback() {
41
+ window.removeEventListener('resize', this.handleResize.bind(this));
42
+ }
43
+ // Function to close the menu if screen width is larger than a defined breakpoint (1024px)
44
+ handleResize() {
45
+ if (window.innerWidth >= 1024) {
46
+ this.isMenuOpen = false;
47
+ }
48
+ }
49
+ /**
50
+ * Parses the `links` prop into an array of link objects.
51
+ * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
52
+ *
53
+ * @returns {any[]} Array of parsed link objects
54
+ */
55
+ get parsedLinks() {
56
+ return parseData(this.links);
57
+ }
58
+ /**
59
+ * Parses the `menuLinks` prop into an array of link objects.
60
+ * Returns an empty array if parsing fails or if `menuLinks` is not a valid JSON string or object.
61
+ *
62
+ * @returns {any[]} Array of parsed menu link objects
63
+ */
64
+ get parsedMenuLinks() {
65
+ return parseData(this.menuLinks);
66
+ }
67
+ render() {
68
+ return this.isMenuOpen ? h("div", {
69
+ class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll"
70
+ }, h("div", {
71
+ class: "flex min-h-full flex-col"
72
+ }, h("div", {
73
+ class: `w-full sticky top-0 ${this.inverseHeader ? 'bg-strongest' : 'bg-default'}`
74
+ }, h("div", {
75
+ class: "mx-auto flex items-center justify-between"
76
+ }, h("div", {
77
+ class: "mr-auto w-[200px] h-[85px]"
78
+ }, h("eds-logo", {
79
+ type: this.inverseHeader ? 'color-white' : 'color',
80
+ href: this.homeUrl
81
+ })), h("div", {
82
+ class: "px-16"
83
+ }, h("eds-button", {
84
+ "aria-label": "Close menu",
85
+ intent: "ghostInverse",
86
+ icon: "close",
87
+ onClick: () => this.closeMenu()
88
+ })))), h("div", {
89
+ class: "py-16 px-16"
90
+ }, h("nav", {
91
+ class: "mt-28 flex flex-col gap-y-8"
92
+ }, this.parsedLinks.map((link, index) => h("eds-link", {
93
+ label: link.label,
94
+ key: index,
95
+ url: link.url,
96
+ intent: "tertiary",
97
+ size: "large",
98
+ class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit",
99
+ onClick: () => this.closeMenu(),
100
+ icon: "arrow-right"
101
+ }))), h("eds-block-break", null), h("nav", {
102
+ class: "mt-28 flex flex-col gap-y-8"
103
+ }, this.parsedMenuLinks.map((link, index) => h("eds-link", {
104
+ label: link.label,
105
+ key: index,
106
+ url: link.url,
107
+ intent: "tertiary",
108
+ size: "large",
109
+ class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit",
110
+ onClick: () => this.closeMenu(),
111
+ icon: "chevron-right"
112
+ }))), h("nav", {
113
+ class: "mt-28 flex flex-col gap-y-8"
114
+ }, h("slot", null))), h("div", {
115
+ class: "mt-auto"
116
+ }, h("eds-footer", {
117
+ social: true,
118
+ "extra-class": "bg-darker"
119
+ })))) : null;
120
+ }
121
+ };
122
+ EdsFullscreenMenu.style = EdsFullscreenMenuStyle0;
123
+
124
+ export { EdsFullscreenMenu as eds_fullscreen_menu };
@@ -0,0 +1,21 @@
1
+ import { r as registerInstance, h } from './index.esm2.js';
2
+ import { b as bin } from './bin-37cad2f0.esm.js';
3
+ import 'react';
4
+ import 'react/jsx-runtime';
5
+ import 'react-dom';
6
+
7
+ const EdsIconBin = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.class = '';
11
+ }
12
+ render() {
13
+ return h("span", {
14
+ key: '03c42ca4aa5cb15952f58adb016924fdb5f006ef',
15
+ class: this.class,
16
+ innerHTML: bin
17
+ });
18
+ }
19
+ };
20
+
21
+ export { EdsIconBin as eds_icon_bin };
@@ -11,7 +11,7 @@ const EdsIconBluesky = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '68917ac759cd684a6f3f3f67cb174d7291841070',
14
+ key: 'c2ee643b5da517a53bd97ec6263161927ad229a7',
15
15
  class: this.class,
16
16
  innerHTML: bluesky
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconBookmark = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '61dd6e752db1c28d082d80aba71267f4e971492d',
14
+ key: '789b6624c429ae6bffdec4b264a94a2a97cd1962',
15
15
  class: this.class,
16
16
  innerHTML: bookmark
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconClose = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '8e4dedef0fe684fdd6078db8005661e49207da55',
14
+ key: '3343580d13358aa90c00dae55b6821c461ba5183',
15
15
  class: this.class,
16
16
  innerHTML: close
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconCopy = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'ff014a9761d8380a9fd8c97d3dd483b8d6fc786c',
14
+ key: '9d15be28017eb074a69846a2a639861de997130b',
15
15
  class: this.class,
16
16
  innerHTML: copy
17
17
  });
@@ -0,0 +1,21 @@
1
+ import { r as registerInstance, h } from './index.esm2.js';
2
+ import { d as draft } from './draft-dd5dada2.esm.js';
3
+ import 'react';
4
+ import 'react/jsx-runtime';
5
+ import 'react-dom';
6
+
7
+ const EdsIconDraft = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.class = '';
11
+ }
12
+ render() {
13
+ return h("span", {
14
+ key: 'ebbda9e150151cc6e6d2677307287f2d2f1ab4db',
15
+ class: this.class,
16
+ innerHTML: draft
17
+ });
18
+ }
19
+ };
20
+
21
+ export { EdsIconDraft as eds_icon_draft };
@@ -0,0 +1,21 @@
1
+ import { r as registerInstance, h } from './index.esm2.js';
2
+ import { e as edit } from './edit-1dc8d11b.esm.js';
3
+ import 'react';
4
+ import 'react/jsx-runtime';
5
+ import 'react-dom';
6
+
7
+ const EdsIconEdit = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.class = '';
11
+ }
12
+ render() {
13
+ return h("span", {
14
+ key: 'c1ff641313e9c0d7160464d7497a2d27de5cbef4',
15
+ class: this.class,
16
+ innerHTML: edit
17
+ });
18
+ }
19
+ };
20
+
21
+ export { EdsIconEdit as eds_icon_edit };
@@ -11,7 +11,7 @@ const EdsIconEu = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '3888f0338df2496c334d95dbcb52a0e39906362d',
14
+ key: 'f285a58f6160d72d82781e80c710ac262af20b89',
15
15
  class: this.class,
16
16
  innerHTML: euSvg
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconExternal = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '58d51f84a7b6326ef117a905f2c50d4fff6369c5',
14
+ key: 'd1cee641d0c95e84d9dc805b46aa8d83874b87ee',
15
15
  class: this.class,
16
16
  innerHTML: arrowDiagonal
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconFacebook = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '3ea80799436c93b1c02ad177bd48910409aebf51',
14
+ key: 'b8c843449dec1ab159280e66e009311735ec8895',
15
15
  class: this.class,
16
16
  innerHTML: facebook
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconGitlab = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'a2f423ed9227463e27c0c698e6b4bba44cdc6263',
14
+ key: '5366b40ab629556c1c68128a216aec5a0bdf6974',
15
15
  class: this.class,
16
16
  innerHTML: gitlabBlack
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconLinkedin = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '88852ca054a7e637efc7fe5b01f343a9b1798e41',
14
+ key: 'e9f71cb0a1a20d87a617df568bdc37d248a1cdc8',
15
15
  class: this.class,
16
16
  innerHTML: linkedin
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconLoader = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '283c8842f0f755074521fdcbae46969d87b86312',
14
+ key: '85bcc5308536901f4892e1bba6238be45f7036bf',
15
15
  class: this.class,
16
16
  innerHTML: loader
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconMastodon = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '5a5a90094c1f974dc7932654e97de04975e675bb',
14
+ key: 'f5c6dcd896a1daa487ef1b05f3854157d9015b67',
15
15
  class: this.class,
16
16
  innerHTML: mastodon
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconMenu = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'dc06f1a54b9542cb2c0165fb3bdff960ecd81cc0',
14
+ key: 'c510b51f8d67e1a94a56cd6482cc1af5d4b6b117',
15
15
  class: this.class,
16
16
  innerHTML: menu
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconMinus = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'e76f56aaba4a67096e6314e61d53bc2512941552',
14
+ key: 'b6b9e5dd993f9a6b475674cf7d952d68841a1f0c',
15
15
  class: this.class,
16
16
  innerHTML: minus
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconMore = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'cb31d12146ff577195650b502f51005092404a30',
14
+ key: 'aac0251ad6695296eb383d05e4d3fdb953ac2b82',
15
15
  class: this.class,
16
16
  innerHTML: more
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconPaper = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: 'abc728a23571f7cc24f6d9d1dc5c72c397983aa3',
14
+ key: '27d2b36f47c4a58e90a4148fbb8568f81eaeb07c',
15
15
  class: this.class,
16
16
  innerHTML: paper
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconPlus = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '35d8e069fbb1bdb01ae6f068c28edd19d299c7c3',
14
+ key: '9c4eca2f6cd5919b07694d8ae209d568da9ee8c2',
15
15
  class: this.class,
16
16
  innerHTML: plus
17
17
  });
@@ -11,7 +11,7 @@ const EdsIconPortal = class {
11
11
  }
12
12
  render() {
13
13
  return h("span", {
14
- key: '9383784da3e52d22395288f8eba5b6f4ee826aa5',
14
+ key: '7ab9673d6effd4caa728276e2d6927e3a08e2e9a',
15
15
  class: this.class,
16
16
  innerHTML: portal
17
17
  });