@ebrains/react 2.3.0 → 2.3.1
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/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/eds-accordion_36.entry.esm.js +29 -23
- package/eds-card-section.entry.esm.js +2 -2
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-feedback.entry.esm.js +5 -5
- package/eds-footer.entry.esm.js +15 -13
- package/eds-frame.entry.esm.js +4 -4
- package/eds-fullscreen-menu.entry.esm.js +12 -0
- package/eds-icon-arrow-diagonal.entry.esm.js +1 -1
- package/eds-icon-arrow-right.entry.esm.js +1 -1
- package/eds-icon-bin.entry.esm.js +1 -1
- package/eds-icon-bluesky.entry.esm.js +1 -1
- package/eds-icon-bookmark.entry.esm.js +1 -1
- package/eds-icon-chevron-down.entry.esm.js +1 -1
- package/eds-icon-chevron-left.entry.esm.js +1 -1
- package/eds-icon-chevron-right.entry.esm.js +1 -1
- package/eds-icon-chevron-up.entry.esm.js +1 -1
- package/eds-icon-clone.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-download.entry.esm.js +1 -1
- package/eds-icon-draft.entry.esm.js +1 -1
- package/eds-icon-edit.entry.esm.js +1 -1
- 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 +1 -1
- 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-view.entry.esm.js +1 -1
- package/eds-icon-youtube.entry.esm.js +1 -1
- package/eds-modal.entry.esm.js +8 -8
- 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 +3 -3
- package/eds-timeline.entry.esm.js +4 -4
- package/eds-toast-manager.entry.esm.js +1 -1
- package/eds-trl.entry.esm.js +2 -2
- package/incorrect-use-of-colors.entry.esm.js +8 -8
- package/index.esm2.js +1 -1
- 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/svg-repository.entry.esm.js +2 -2
- 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
|
@@ -30,10 +30,10 @@ const EdsCardSection = class {
|
|
|
30
30
|
*/
|
|
31
31
|
render() {
|
|
32
32
|
return h("section", {
|
|
33
|
-
key: '
|
|
33
|
+
key: '4b30b9eb2585350196efa901f5b36d903e43af4d',
|
|
34
34
|
class: "w-full"
|
|
35
35
|
}, h("ul", {
|
|
36
|
-
key: '
|
|
36
|
+
key: 'ab51c67c0f4095e70be1b1c2fdf9975726b50760',
|
|
37
37
|
class: "grid-layout grid-cols-4 gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
38
38
|
}, this.parsedCards.map(card => h("li", {
|
|
39
39
|
class: `grid-col-span-4 md:grid-col-span-${this.occupyCols} flex flex-col`
|
|
@@ -29,9 +29,9 @@ const EdsCookiesPreference = class {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
return h("div", {
|
|
32
|
-
key: '
|
|
32
|
+
key: '778879d8a4552e7dd55ac77b60d90e0bae97522c'
|
|
33
33
|
}, h("eds-link", {
|
|
34
|
-
key: '
|
|
34
|
+
key: '832d45be8a294f90fc81b45c6604aec61c8f8174',
|
|
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: 'ddf3974682322578e0fe0b0405ac4ebf2e0f25c1',
|
|
65
65
|
class: "grid inline"
|
|
66
66
|
}, h(HeadingTag, {
|
|
67
|
-
key: '
|
|
67
|
+
key: '64ef135208df2903c342a8feaafa49d27eb22250',
|
|
68
68
|
class: headingClass
|
|
69
69
|
}, this.label), h("p", {
|
|
70
|
-
key: '
|
|
70
|
+
key: '95d46d464035e393d80ae259f4232bebf47453ce',
|
|
71
71
|
class: "f-body-01 text-light"
|
|
72
72
|
}, this.description), h("eds-rating", {
|
|
73
|
-
key: '
|
|
73
|
+
key: 'd390733041689a17937f31dbf07050571997ced2',
|
|
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: '61cedb8ba0a5269ac0112dc9a6d91b92e1f0b200',
|
|
78
78
|
class: "f-ui-04 text-lighter"
|
|
79
79
|
}, this.parsedMappings[this.selectedRating - 1]));
|
|
80
80
|
}
|
package/eds-footer.entry.esm.js
CHANGED
|
@@ -55,8 +55,10 @@ const EdsFooter = class {
|
|
|
55
55
|
* legal links such as "Cookies Preferences" and copyright information.
|
|
56
56
|
*/
|
|
57
57
|
render() {
|
|
58
|
+
const year = new Date().getFullYear();
|
|
59
|
+
const rights = this.rightsReserved || `${year} EBRAINS. All rights reserved.`;
|
|
58
60
|
return h("footer", {
|
|
59
|
-
key: '
|
|
61
|
+
key: 'b1c8481183fb67cb8b0a97c4ecb56cbd68b8d5f2'
|
|
60
62
|
}, this.social ? h("div", {
|
|
61
63
|
class: "border-softest border-t-2 pt-20 md:pt-28"
|
|
62
64
|
}, h("div", {
|
|
@@ -68,41 +70,41 @@ const EdsFooter = class {
|
|
|
68
70
|
}, h("eds-social-networks", {
|
|
69
71
|
class: "mt-28"
|
|
70
72
|
}))))) : null, h("div", {
|
|
71
|
-
key: '
|
|
73
|
+
key: 'bfe4a641c968c7c8db656eb15ae4b20994f289f9',
|
|
72
74
|
class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28`
|
|
73
75
|
}, h("div", {
|
|
74
|
-
key: '
|
|
76
|
+
key: '5a65394e8899cf62ac1bed4ac363bee86f9f17ad',
|
|
75
77
|
class: "container flex items-center gap-20 lg:flex-nowrap"
|
|
76
78
|
}, h("div", {
|
|
77
|
-
key: '
|
|
79
|
+
key: '00163d1e6c4f1021997b910935859a8bb97c18ba',
|
|
78
80
|
class: "flex items-center gap-x-12"
|
|
79
81
|
}, h("a", {
|
|
80
|
-
key: '
|
|
82
|
+
key: '12cc17423f3988f3f98b9ba9d5ce4a18a486021b',
|
|
81
83
|
target: "_blank",
|
|
82
84
|
rel: "noopener noreferrer",
|
|
83
85
|
class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0",
|
|
84
86
|
href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en",
|
|
85
87
|
"aria-label": "Learn about Horizon Europe funding"
|
|
86
88
|
}, h("eds-img", {
|
|
87
|
-
key: '
|
|
89
|
+
key: '2448154fd301959d09ae0d4a2bc575ebddef0646',
|
|
88
90
|
width: 54,
|
|
89
91
|
height: 41,
|
|
90
92
|
src: "https://www.ebrains.eu/flags/4x3/eu.svg",
|
|
91
93
|
alt: "European Union Flag"
|
|
92
94
|
}))), h("div", {
|
|
93
|
-
key: '
|
|
95
|
+
key: '640d25df8ad2a7d5271c22b979a6198f6f7aa2aa'
|
|
94
96
|
}, h("div", {
|
|
95
|
-
key: '
|
|
97
|
+
key: '6a4256e03d37e93b41bbc5f22db44fcf56f35548',
|
|
96
98
|
class: "f-ui-04 text-light"
|
|
97
99
|
}, h("p", {
|
|
98
|
-
key: '
|
|
100
|
+
key: 'd2227c0d2f297a995006aa810d889e679f1ef1e2'
|
|
99
101
|
}, this.fundedBy), h("div", {
|
|
100
|
-
key: '
|
|
102
|
+
key: 'd3a56fc0695308fe5547109fb735e64bc4297b5e',
|
|
101
103
|
class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block"
|
|
102
104
|
}, h("span", {
|
|
103
|
-
key: '
|
|
105
|
+
key: '5f0a5db7ea735b373fc6106b6fc8f4bc25ba6f27',
|
|
104
106
|
class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4"
|
|
105
|
-
}, "\u00A9 ",
|
|
107
|
+
}, "\u00A9 ", rights), this.enableCookiesSettings ? h("eds-link", {
|
|
106
108
|
label: this.cookiesPreferences,
|
|
107
109
|
intent: "underline",
|
|
108
110
|
"extra-class": "f-ui-04",
|
|
@@ -110,7 +112,7 @@ const EdsFooter = class {
|
|
|
110
112
|
this.toggleCookiesConsent();
|
|
111
113
|
}
|
|
112
114
|
}) : null))), h("div", {
|
|
113
|
-
key: '
|
|
115
|
+
key: 'e853a0ee1b2d3e4627ccc4b80aba566a9c7a2350',
|
|
114
116
|
class: "ml-auto pl-12"
|
|
115
117
|
}, this.enableScrollTop ? h("div", {
|
|
116
118
|
id: "toTop",
|
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: '919f5de224a556016a2ccf7bdfc20a4885afa3f5',
|
|
77
77
|
class: this.articleClasses()
|
|
78
78
|
}, h("div", {
|
|
79
|
-
key: '
|
|
79
|
+
key: '13f6c97cd99ddc7a15bed69efed236f44266d9ab',
|
|
80
80
|
class: "effect-height flex items-center justify-between py-8 px-12"
|
|
81
81
|
}, h("span", {
|
|
82
|
-
key: '
|
|
82
|
+
key: 'a1b912042dbf197dd7044016582412980c9a177b',
|
|
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: '186fa28cc18e183318f94ccfd2d557ee800f43b7',
|
|
94
94
|
class: "border-softer"
|
|
95
95
|
}, this.iframeError ? h("div", {
|
|
96
96
|
class: "container ml-8 mr-8 mt-16"
|
|
@@ -28,6 +28,9 @@ const EdsFullscreenMenu = class {
|
|
|
28
28
|
handleToggleMenu(event) {
|
|
29
29
|
this.isMenuOpen = !!event.detail;
|
|
30
30
|
}
|
|
31
|
+
onKeydown(e) {
|
|
32
|
+
if (e.key === 'Escape' && this.isMenuOpen) this.closeMenu();
|
|
33
|
+
}
|
|
31
34
|
/** Opens the menu */
|
|
32
35
|
openMenu() {
|
|
33
36
|
this.isMenuOpen = true;
|
|
@@ -37,6 +40,12 @@ const EdsFullscreenMenu = class {
|
|
|
37
40
|
this.isMenuOpen = false;
|
|
38
41
|
this.menuClose.emit();
|
|
39
42
|
}
|
|
43
|
+
async open() {
|
|
44
|
+
this.isMenuOpen = true;
|
|
45
|
+
}
|
|
46
|
+
async close() {
|
|
47
|
+
this.closeMenu();
|
|
48
|
+
}
|
|
40
49
|
// Lifecycle method to add the resize event listener when component loads
|
|
41
50
|
componentDidLoad() {
|
|
42
51
|
window.addEventListener('resize', this.handleResize.bind(this));
|
|
@@ -71,6 +80,9 @@ const EdsFullscreenMenu = class {
|
|
|
71
80
|
}
|
|
72
81
|
render() {
|
|
73
82
|
return this.isMenuOpen ? h("div", {
|
|
83
|
+
role: "dialog",
|
|
84
|
+
"aria-modal": "true",
|
|
85
|
+
"aria-label": "Main menu",
|
|
74
86
|
class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll"
|
|
75
87
|
}, h("div", {
|
|
76
88
|
class: "flex min-h-full flex-col"
|
package/eds-icon-eu.entry.esm.js
CHANGED