@ebrains/react 0.9.0-beta → 0.9.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +5 -1
- package/eds-accordion.entry.esm.js +12 -12
- package/{eds-avatar_24.entry.esm.js → eds-avatar_26.entry.esm.js} +38 -7
- package/{eds-card-desc_3.entry.esm.js → eds-card-desc_2.entry.esm.js} +1 -40
- package/eds-card-generic.entry.esm.js +3 -3
- package/eds-matomo-notice.entry.esm.js +2 -2
- package/eds-modal.entry.esm.js +12 -12
- package/eds-section-core_2.entry.esm.js +2 -2
- package/eds-switch.entry.esm.js +2 -2
- package/eds-tabs.entry.esm.js +8 -8
- package/eds-timeline.entry.esm.js +1 -1
- package/index.esm.js +1 -1
- package/index.esm2.js +6 -10
- package/package.json +1 -1
- package/src/components.d.ts +0 -1
- package/eds-breadcrumb.entry.esm.js +0 -174
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index.esm2.js';
|
|
2
|
-
import { c as cva } from './index-39c58238.esm.js';
|
|
3
2
|
import 'react';
|
|
4
3
|
import 'react/jsx-runtime';
|
|
5
4
|
import 'react-dom';
|
|
@@ -83,43 +82,5 @@ const EdsCardTitle = class {
|
|
|
83
82
|
}
|
|
84
83
|
};
|
|
85
84
|
EdsCardTitle.style = EdsCardTitleStyle0;
|
|
86
|
-
const edsTagCss = ".f-ui-05{font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing)}.py-1{padding-top:0.0625rem;padding-bottom:0.0625rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.border-2{border-width:2px}.rounded-pill{border-radius:100px}.border-default{border:2px solid var(--black)}.text-inverse{color:var(--white)}.bg-strongest{background-color:var(--black)}.text-\\[\\#0034CB\\]{--tw-text-opacity:1;color:rgb(0 52 203 / var(--tw-text-opacity))}.border-\\[\\#0034CB\\]{--tw-border-opacity:1;border:2px solid rgb(0 52 203 / var(--tw-border-opacity))}.text-light{color:var(--grey-700)}.bg-strongest-soft{background-color:rgba(0, 0, 0, .05)}.border-transparent{border-color:var(--transparent)}.border-inverse{border-color:var(--white)}.bg-inverse{background-color:var(--white)}.text-lighter{color:var(--grey-600)}";
|
|
87
|
-
const EdsTagStyle0 = edsTagCss;
|
|
88
85
|
|
|
89
|
-
|
|
90
|
-
const tagStyles = cva(['f-ui-05 py-1 px-4 border-2 rounded-pill'],
|
|
91
|
-
// Base classes
|
|
92
|
-
{
|
|
93
|
-
variants: {
|
|
94
|
-
intent: {
|
|
95
|
-
default: 'border-default',
|
|
96
|
-
strong: 'text-inverse bg-strongest border-default',
|
|
97
|
-
accent: 'text-[#0034CB] border-[#0034CB]',
|
|
98
|
-
weak: 'text-light bg-strongest-soft border-transparent',
|
|
99
|
-
inverse: 'border-inverse text-inverse',
|
|
100
|
-
'inverse-strong': 'bg-inverse border-inverse text-lighter'
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
defaultVariants: {
|
|
104
|
-
intent: 'default'
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
const EdsTag = class {
|
|
108
|
-
constructor(hostRef) {
|
|
109
|
-
registerInstance(this, hostRef);
|
|
110
|
-
this.label = undefined;
|
|
111
|
-
this.intent = 'default';
|
|
112
|
-
}
|
|
113
|
-
render() {
|
|
114
|
-
const classes = tagStyles({
|
|
115
|
-
intent: this.intent
|
|
116
|
-
});
|
|
117
|
-
return h("span", {
|
|
118
|
-
key: '55a6039b040436e5dded9aaf1007668b97091ba3',
|
|
119
|
-
class: classes
|
|
120
|
-
}, this.label);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
EdsTag.style = EdsTagStyle0;
|
|
124
|
-
|
|
125
|
-
export { EdsCardDesc as eds_card_desc, EdsCardTitle as eds_card_title, EdsTag as eds_tag };
|
|
86
|
+
export { EdsCardDesc as eds_card_desc, EdsCardTitle as eds_card_title };
|
|
@@ -5,7 +5,7 @@ import 'react';
|
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
|
|
8
|
-
const edsCardGenericCss = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:shadow-hover:hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";
|
|
8
|
+
const edsCardGenericCss = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:shadow-hover:hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-x-1{-moz-column-gap:0.0625rem;column-gap:0.0625rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";
|
|
9
9
|
const EdsCardGenericStyle0 = edsCardGenericCss;
|
|
10
10
|
const EdsCardGeneric = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -97,8 +97,8 @@ const EdsCardGeneric = class {
|
|
|
97
97
|
picture: this.avatar,
|
|
98
98
|
initials: this.shortAbbreviation
|
|
99
99
|
}) : null, h("div", {
|
|
100
|
-
key: '
|
|
101
|
-
class: "flex flex-wrap gap-y-4"
|
|
100
|
+
key: '8bdcbbe2982a450843e9ada727e3f6eb62872ae1',
|
|
101
|
+
class: "flex flex-wrap gap-y-4 gap-x-1"
|
|
102
102
|
}, this.parsedTags.map((tag, index) => h("eds-tag", {
|
|
103
103
|
key: index,
|
|
104
104
|
intent: tag.style,
|
|
@@ -10,7 +10,7 @@ const EdsMatomoNotice = class {
|
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
registerInstance(this, hostRef);
|
|
12
12
|
this.consent = createEvent(this, "consent", 7);
|
|
13
|
-
this.
|
|
13
|
+
this.heading = 'Analytics Consent';
|
|
14
14
|
this.description = "We use anonymous analytics to improve our services. No data is collected unless you give your consent. If you don't wish to send data right now, you can always re-enable analytics later by clicking the Cookies Preference button in the footer. However, by opting in today, you're joining a community that shapes our product's future—all while keeping your data completely anonymous.";
|
|
15
15
|
this.optOutMessage = "You are already part of our community, and your anonymous data helps shape our product's future! Rest assured, your privacy is fully protected.";
|
|
16
16
|
this.forceShow = false;
|
|
@@ -113,7 +113,7 @@ const EdsMatomoNotice = class {
|
|
|
113
113
|
return h("div", {
|
|
114
114
|
class: "fixed bottom-0 p-8 z-[999999] grow md:left-1/2 md:-translate-x-1/2 md:-translate-y-1/2 justify-center"
|
|
115
115
|
}, h("eds-accordion", {
|
|
116
|
-
title: this.
|
|
116
|
+
title: this.heading,
|
|
117
117
|
description: this.hasCookieConsent() ? this.optOutMessage : this.description,
|
|
118
118
|
switchBg: true,
|
|
119
119
|
expanded: true
|
package/eds-modal.entry.esm.js
CHANGED
|
@@ -10,7 +10,7 @@ const EdsModal = class {
|
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
registerInstance(this, hostRef);
|
|
12
12
|
this.isOpen = false;
|
|
13
|
-
this.
|
|
13
|
+
this.heading = '';
|
|
14
14
|
this.truncate = true;
|
|
15
15
|
this.truncateLines = '1';
|
|
16
16
|
this.position = 'middle';
|
|
@@ -49,7 +49,7 @@ const EdsModal = class {
|
|
|
49
49
|
category: 'ui-component',
|
|
50
50
|
parentContext: null,
|
|
51
51
|
tag: this.el.tagName.toLowerCase(),
|
|
52
|
-
name: ((_a = this.
|
|
52
|
+
name: ((_a = this.heading) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
53
53
|
action: 'opened'
|
|
54
54
|
});
|
|
55
55
|
}
|
|
@@ -63,7 +63,7 @@ const EdsModal = class {
|
|
|
63
63
|
category: 'ui-component',
|
|
64
64
|
parentContext: null,
|
|
65
65
|
tag: this.el.tagName.toLowerCase(),
|
|
66
|
-
name: ((_a = this.
|
|
66
|
+
name: ((_a = this.heading) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
67
67
|
action: 'closed'
|
|
68
68
|
});
|
|
69
69
|
}
|
|
@@ -97,40 +97,40 @@ const EdsModal = class {
|
|
|
97
97
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
98
98
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
99
99
|
return h("div", {
|
|
100
|
-
key: '
|
|
100
|
+
key: '3965b74182a1015d34ebc0d5692ab89de44774e6',
|
|
101
101
|
id: "eds-modal",
|
|
102
102
|
class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999999 flex`,
|
|
103
103
|
role: "dialog",
|
|
104
104
|
"aria-modal": "true",
|
|
105
105
|
"aria-labelledby": titleId
|
|
106
106
|
}, this.isOpen && h("div", {
|
|
107
|
-
key: '
|
|
107
|
+
key: 'c0df46234deb0945ba266e8f36a0b3944bd6d7bd',
|
|
108
108
|
class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
109
109
|
,
|
|
110
110
|
|
|
111
111
|
onClick: () => this.close()
|
|
112
112
|
}), h("div", {
|
|
113
|
-
key: '
|
|
113
|
+
key: '7fd65a4651ca67101b3a3e08ffd439070ccb8a96',
|
|
114
114
|
class: `container max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center`
|
|
115
115
|
}, h("div", {
|
|
116
|
-
key: '
|
|
116
|
+
key: '80102734c692934c486fd2e2d707286dd5660c69',
|
|
117
117
|
class: "flex justify-between items-center border-b-2 border-softer pb-8"
|
|
118
118
|
}, h("span", {
|
|
119
|
-
key: '
|
|
119
|
+
key: 'b98138881f6eb4ee1fad3614eda4c91e5349b563',
|
|
120
120
|
id: titleId,
|
|
121
121
|
class: `f-heading-04 text-lighter ${this.getTruncateClass()}`
|
|
122
|
-
}, this.
|
|
123
|
-
key: '
|
|
122
|
+
}, this.heading), h("eds-button", {
|
|
123
|
+
key: '82f08e8ec6cbcb291c5d984ae97622d364bff5d0',
|
|
124
124
|
intent: "tertiary",
|
|
125
125
|
icon: "close",
|
|
126
126
|
"aria-label": "Close modal",
|
|
127
127
|
onClick: () => this.close(),
|
|
128
128
|
"extra-class": "ml-8"
|
|
129
129
|
})), h("div", {
|
|
130
|
-
key: '
|
|
130
|
+
key: '2ea2fc21a8b734c40b1de4a20025a50f7369d375',
|
|
131
131
|
class: "pt-8"
|
|
132
132
|
}, h("slot", {
|
|
133
|
-
key: '
|
|
133
|
+
key: 'ca0fa40b4076af9eea37c6b088d26751173e815c'
|
|
134
134
|
}))));
|
|
135
135
|
}
|
|
136
136
|
get el() {
|
|
@@ -52,7 +52,7 @@ const EdsSectionHeading = class {
|
|
|
52
52
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
53
53
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
54
54
|
return h(TagType, {
|
|
55
|
-
key: '
|
|
55
|
+
key: '346654c0118e056276162b42723c6c163712ab4f',
|
|
56
56
|
class: {
|
|
57
57
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
58
58
|
container: this.withContainer,
|
|
@@ -60,7 +60,7 @@ const EdsSectionHeading = class {
|
|
|
60
60
|
'pt-28': !this.spacingLarge
|
|
61
61
|
}
|
|
62
62
|
}, h(HeadingTag, {
|
|
63
|
-
key: '
|
|
63
|
+
key: 'c7d17fc22b3926495c799da0bc8bde7dc949e46a',
|
|
64
64
|
class: this.getHeadingClass()
|
|
65
65
|
}, this.sectionTitle));
|
|
66
66
|
}
|
package/eds-switch.entry.esm.js
CHANGED
|
@@ -8,13 +8,13 @@ const EdsSwitchStyle0 = edsSwitchCss;
|
|
|
8
8
|
const EdsSwitch = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
registerInstance(this, hostRef);
|
|
11
|
-
this.
|
|
11
|
+
this.toggle = createEvent(this, "toggle", 7);
|
|
12
12
|
this.toggleSwitch = () => {
|
|
13
13
|
if (this.disabled) {
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
this.checked = !this.checked;
|
|
17
|
-
this.
|
|
17
|
+
this.toggle.emit(this.checked);
|
|
18
18
|
};
|
|
19
19
|
this.checked = false;
|
|
20
20
|
this.disabled = false;
|