@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.
- package/bin-37cad2f0.esm.js +3 -0
- package/color-primary-palette_6.entry.esm.js +106 -106
- package/components-section.entry.esm.js +1 -1
- package/correct-use-of-colors.entry.esm.js +33 -33
- package/docs-palettes.entry.esm.js +1 -1
- package/docs-tokens.entry.esm.js +1 -1
- package/draft-dd5dada2.esm.js +3 -0
- package/edit-1dc8d11b.esm.js +3 -0
- package/eds-accordion.entry.esm.js +11 -10
- package/eds-app-root.entry.esm.js +4 -4
- package/{eds-avatar_29.entry.esm.js → eds-avatar_26.entry.esm.js} +305 -556
- package/eds-card-generic.entry.esm.js +4 -5
- package/eds-card-project.entry.esm.js +10 -11
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-feedback.entry.esm.js +5 -5
- package/eds-footer.entry.esm.js +129 -0
- package/eds-frame.entry.esm.js +4 -4
- package/eds-fullscreen-menu.entry.esm.js +124 -0
- package/eds-icon-bin.entry.esm.js +21 -0
- package/eds-icon-bluesky.entry.esm.js +1 -1
- package/eds-icon-bookmark.entry.esm.js +1 -1
- package/eds-icon-close.entry.esm.js +1 -1
- package/eds-icon-copy.entry.esm.js +1 -1
- package/eds-icon-draft.entry.esm.js +21 -0
- package/eds-icon-edit.entry.esm.js +21 -0
- package/eds-icon-eu.entry.esm.js +1 -1
- package/eds-icon-external.entry.esm.js +1 -1
- package/eds-icon-facebook.entry.esm.js +1 -1
- package/eds-icon-gitlab.entry.esm.js +1 -1
- package/eds-icon-linkedin.entry.esm.js +1 -1
- package/eds-icon-loader.entry.esm.js +1 -1
- package/eds-icon-mastodon.entry.esm.js +1 -1
- package/eds-icon-menu.entry.esm.js +1 -1
- package/eds-icon-minus.entry.esm.js +1 -1
- package/eds-icon-more.entry.esm.js +1 -1
- package/eds-icon-paper.entry.esm.js +1 -1
- package/eds-icon-plus.entry.esm.js +1 -1
- package/eds-icon-portal.entry.esm.js +1 -1
- package/eds-icon-private.entry.esm.js +1 -1
- package/eds-icon-public.entry.esm.js +1 -1
- package/eds-icon-search.entry.esm.js +1 -1
- package/eds-icon-star.entry.esm.js +1 -1
- package/eds-icon-start.entry.esm.js +21 -0
- package/eds-icon-success.entry.esm.js +1 -1
- package/eds-icon-thumbs-down.entry.esm.js +1 -1
- package/eds-icon-thumbs-up.entry.esm.js +1 -1
- package/eds-icon-tutorial.entry.esm.js +1 -1
- package/eds-icon-twitter.entry.esm.js +1 -1
- package/eds-icon-unknown.entry.esm.js +1 -1
- package/eds-icon-updown.entry.esm.js +1 -1
- package/eds-icon-user.entry.esm.js +1 -1
- package/eds-icon-youtube.entry.esm.js +1 -1
- package/eds-modal.entry.esm.js +150 -0
- package/eds-progress-bar.entry.esm.js +4 -4
- package/eds-section-core_2.entry.esm.js +5 -5
- package/eds-social-networks.entry.esm.js +74 -0
- package/eds-spinner.entry.esm.js +51 -14
- package/eds-splash-screen.entry.esm.js +1 -4
- package/eds-switch.entry.esm.js +8 -6
- package/eds-timeline.entry.esm.js +4 -4
- package/eds-toast-manager.entry.esm.js +1 -1
- package/eds-tooltip.entry.esm.js +12 -6
- package/eds-trl.entry.esm.js +2 -2
- package/incorrect-use-of-colors.entry.esm.js +8 -8
- package/index.esm2.js +27 -6
- package/logo-space.entry.esm.js +9 -9
- package/logo-variations-horizontal_2.entry.esm.js +28 -28
- package/logo-variations-tabs.entry.esm.js +1 -1
- package/logo-wrong-usage.entry.esm.js +25 -25
- package/package.json +1 -1
- package/start-65126a4f.esm.js +3 -0
- package/svg-repository.entry.esm.js +11 -3
- package/token-list_3.entry.esm.js +5 -5
- package/token-ratios.entry.esm.js +3 -3
- package/token-spacing.entry.esm.js +26 -26
- package/token-typography.entry.esm.js +2 -2
- 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: '
|
|
77
|
+
key: '0d0a2bfb5ab1f08cdada2180977ff7bd77594030',
|
|
79
78
|
class: this.articleClasses(),
|
|
80
79
|
onClick: () => this.handleClick()
|
|
81
80
|
}, h("eds-card-title", {
|
|
82
|
-
key: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
169
|
+
key: '021f5e4d88bb987811ea169880cd327e996e36e9',
|
|
171
170
|
class: cardClasses,
|
|
172
171
|
onClick: event => this.handleClick(event)
|
|
173
172
|
}, h("div", {
|
|
174
|
-
key: '
|
|
173
|
+
key: '5f1a3d00b03e6cc19023ee437a7bd2bf6b52d77a',
|
|
175
174
|
class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}`
|
|
176
175
|
}, h("div", {
|
|
177
|
-
key: '
|
|
176
|
+
key: '6e42bcbdbe5ba666eae942a7c4e354627f019c6a',
|
|
178
177
|
class: "lg:max-w-[720px]"
|
|
179
178
|
}, h("eds-card-title", {
|
|
180
|
-
key: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
191
|
+
key: '2a488d291c1f3e10b8ed36aa61e04ecf5299b320',
|
|
193
192
|
label: this.categoryTitle
|
|
194
193
|
}))), this.parsedImage && h("div", {
|
|
195
|
-
key: '
|
|
194
|
+
key: '9d4fa14e0e56d8db8c1747b477cd77e4b7281f8c',
|
|
196
195
|
class: imageClasses
|
|
197
196
|
}, h("div", {
|
|
198
|
-
key: '
|
|
197
|
+
key: '627f549786c9a1674349b851704690fdb597391e',
|
|
199
198
|
class: "aspect-1x1 w-full"
|
|
200
199
|
}, h("eds-img", Object.assign({
|
|
201
|
-
key: '
|
|
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: '
|
|
32
|
+
key: 'b16a1d29fe09e09fdcfc24b06430e6f99a69a81a'
|
|
33
33
|
}, h("eds-link", {
|
|
34
|
-
key: '
|
|
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: '
|
|
64
|
+
key: '997deecc8a62be9bc1dda142c26df1aeb8b4ac41',
|
|
65
65
|
class: "grid inline"
|
|
66
66
|
}, h(HeadingTag, {
|
|
67
|
-
key: '
|
|
67
|
+
key: '3ae9bd1c1cb1e1d6f452f7f101ee8032db90328d',
|
|
68
68
|
class: headingClass
|
|
69
69
|
}, this.label), h("p", {
|
|
70
|
-
key: '
|
|
70
|
+
key: '1788790da082ec33d4c4d637be0c872ddf7303e3',
|
|
71
71
|
class: "f-body-01 text-light"
|
|
72
72
|
}, this.description), h("eds-rating", {
|
|
73
|
-
key: '
|
|
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: '
|
|
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 };
|
package/eds-frame.entry.esm.js
CHANGED
|
@@ -73,13 +73,13 @@ const EdsFrame = class {
|
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
75
|
return h("div", {
|
|
76
|
-
key: '
|
|
76
|
+
key: '7544fb993c0e18ca62fd0bb2bcc75088645163d9',
|
|
77
77
|
class: this.articleClasses()
|
|
78
78
|
}, h("div", {
|
|
79
|
-
key: '
|
|
79
|
+
key: '3c8c254255056515de9496bd35dd9f0f43cab505',
|
|
80
80
|
class: "effect-height flex items-center justify-between py-8 px-12"
|
|
81
81
|
}, h("span", {
|
|
82
|
-
key: '
|
|
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: '
|
|
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 };
|
|
@@ -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 };
|
package/eds-icon-eu.entry.esm.js
CHANGED