@ebrains/react 0.6.0-alpha.0 → 0.8.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.
- package/color-primary-palette_6.entry.esm.js +106 -106
- package/correct-use-of-colors.entry.esm.js +33 -33
- package/eds-accordion_17.entry.esm.js +196 -0
- package/eds-alert.entry.esm.js +14 -6
- package/eds-app-root.entry.esm.js +53 -0
- package/eds-breadcrumb.entry.esm.js +8 -16
- package/eds-card-desc_3.entry.esm.js +125 -0
- package/eds-card-generic.entry.esm.js +114 -0
- package/eds-card-project.entry.esm.js +10 -10
- package/eds-card-section.entry.esm.js +56 -0
- package/eds-card-tags.entry.esm.js +1 -1
- package/eds-card-tool.entry.esm.js +4 -4
- package/eds-card-wrapper.entry.esm.js +4 -4
- package/eds-code-block.entry.esm.js +7 -7
- package/eds-components-section.entry.esm.js +27 -24
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-docs-palettes.entry.esm.js +1 -1
- package/eds-docs-tokens.entry.esm.js +1 -1
- package/eds-feedback.entry.esm.js +82 -0
- package/eds-form.entry.esm.js +339 -276
- package/eds-frame.entry.esm.js +34 -33
- package/eds-icon-arrow-diagonal.entry.esm.js +3 -3
- package/eds-icon-arrow-right.entry.esm.js +1 -1
- package/eds-icon-bluesky.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-close.entry.esm.js +1 -1
- package/eds-icon-copy.entry.esm.js +1 -1
- package/eds-icon-eu.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-more.entry.esm.js +1 -1
- package/eds-icon-search.entry.esm.js +1 -1
- package/eds-icon-star.entry.esm.js +21 -0
- package/eds-icon-success.entry.esm.js +1 -1
- package/eds-icon-thumbs-down.entry.esm.js +21 -0
- package/eds-icon-thumbs-up.entry.esm.js +21 -0
- package/eds-icon-twitter.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-input_7.entry.esm.js +77 -37
- package/{keycloak-d502ec16.esm.js → eds-login_2.entry.esm.js} +172 -1
- package/eds-logo-variations.entry.esm.js +1 -1
- package/eds-modal.entry.esm.js +22 -9
- package/eds-pagination_2.entry.esm.js +49 -28
- package/eds-progress-bar.entry.esm.js +2 -2
- package/eds-rating.entry.esm.js +37 -37
- package/eds-section-core_2.entry.esm.js +6 -6
- package/eds-spinner.entry.esm.js +67 -0
- package/eds-svg-repository.entry.esm.js +18 -7
- package/eds-switch.entry.esm.js +5 -5
- package/eds-tabs.entry.esm.js +14 -26
- package/eds-timeline.entry.esm.js +9 -23
- package/eds-toast-manager.entry.esm.js +62 -0
- package/eds-toast.entry.esm.js +92 -0
- package/eds-tooltip.entry.esm.js +3 -3
- package/eds-trl.entry.esm.js +3 -3
- package/incorrect-use-of-colors.entry.esm.js +7 -7
- package/index.esm.js +1 -1
- package/index.esm2.js +47 -55
- package/logo-space.entry.esm.js +4 -4
- package/logo-variations-horizontal_2.entry.esm.js +26 -26
- package/logo-wrong-usage.entry.esm.js +37 -37
- package/package.json +1 -1
- package/sharedUtils-a550989c.esm.js +17 -0
- package/src/components.d.ts +4 -3
- package/star-0da9b5e9.esm.js +5 -0
- package/thumbs-down-a18fd049.esm.js +5 -0
- package/thumbs-up-c19a71bc.esm.js +6 -0
- 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/README.md +0 -7
- package/eds-accordion_13.entry.esm.js +0 -1064
- package/eds-block-break.entry.esm.js +0 -22
- package/eds-dropdown_2.entry.esm.js +0 -235
- package/eds-footer.entry.esm.js +0 -102
- package/eds-fullscreen-menu.entry.esm.js +0 -143
- package/eds-header.entry.esm.js +0 -130
- package/eds-link.entry.esm.js +0 -204
- package/eds-login.entry.esm.js +0 -97
- package/eds-logo.entry.esm.js +0 -87
- package/eds-navigator.entry.esm.js +0 -72
- package/eds-social-networks.entry.esm.js +0 -74
- package/eds-steps.entry.esm.js +0 -98
- package/eds-tab.entry.esm.js +0 -41
- package/eds-tabs-content.entry.esm.js +0 -145
- package/eds-user.entry.esm.js +0 -118
- package/eds-vertical-stepper.entry.esm.js +0 -81
package/eds-frame.entry.esm.js
CHANGED
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom';
|
|
5
5
|
|
|
6
|
+
const edsFrameCss = ".bg-inverse{background-color:var(--white)}.min-h-156{min-height:156px}.rounded{border-radius:0.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:16px}.rounded-md{border-radius:12px}.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 )}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.relative{position:relative}.flex{display:flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.border-2{border-width:2px}.w-full{width:100%}.h-full{height:100%}.h-auto{height:auto}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.items-center{align-items:center}.justify-between{justify-content:space-between}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.px-12{padding-left:0.75rem;padding-right:0.75rem}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.ml-auto{margin-left:auto}.border-t-2{border-top-width:2px}.border{border:1px solid rgba(0, 0, 0, .1 )}.border-2{border:1px solid rgba(0, 0, 0, .1 )}.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}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}.mt-16{margin-top:1rem}";
|
|
7
|
+
const EdsFrameStyle0 = edsFrameCss;
|
|
6
8
|
const EdsFrame = class {
|
|
7
9
|
constructor(hostRef) {
|
|
8
10
|
registerInstance(this, hostRef);
|
|
@@ -12,13 +14,36 @@ const EdsFrame = class {
|
|
|
12
14
|
this.storybookUrl = undefined;
|
|
13
15
|
this.storyPath = undefined;
|
|
14
16
|
this.intent = 'strong';
|
|
15
|
-
this.tiny = false;
|
|
16
17
|
this.size = 'auto';
|
|
17
|
-
this.bg = true;
|
|
18
18
|
this.iframeError = false;
|
|
19
19
|
}
|
|
20
|
+
componentWillLoad() {
|
|
21
|
+
this.checkIframeAvailability();
|
|
22
|
+
}
|
|
23
|
+
componentDidLoad() {
|
|
24
|
+
// Emit context for each eds-link element after the component is fully loaded
|
|
25
|
+
const links = this.el.querySelectorAll('eds-link');
|
|
26
|
+
links.forEach(link => {
|
|
27
|
+
this.emitContext(link);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
32
|
+
* This event provides context information about the breadcrumb component.
|
|
33
|
+
*
|
|
34
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
35
|
+
*/
|
|
36
|
+
emitContext(linkElement) {
|
|
37
|
+
const event = new CustomEvent('parentContext', {
|
|
38
|
+
detail: {
|
|
39
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
40
|
+
identifier: this.frameLabel
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
linkElement.dispatchEvent(event);
|
|
44
|
+
}
|
|
20
45
|
articleClasses() {
|
|
21
|
-
return [
|
|
46
|
+
return ['bg-inverse min-h-156 rounded border-softer effect-focus-within relative flex grow flex-col border-2', 'w-full h-auto'].join(' ');
|
|
22
47
|
}
|
|
23
48
|
getFrameHeight() {
|
|
24
49
|
switch (this.size) {
|
|
@@ -46,31 +71,6 @@ const EdsFrame = class {
|
|
|
46
71
|
this.iframeError = true;
|
|
47
72
|
}
|
|
48
73
|
}
|
|
49
|
-
componentWillLoad() {
|
|
50
|
-
this.checkIframeAvailability();
|
|
51
|
-
}
|
|
52
|
-
componentDidLoad() {
|
|
53
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
54
|
-
const links = this.el.querySelectorAll('eds-link');
|
|
55
|
-
links.forEach(link => {
|
|
56
|
-
this.emitContext(link);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
61
|
-
* This event provides context information about the breadcrumb component.
|
|
62
|
-
*
|
|
63
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
64
|
-
*/
|
|
65
|
-
emitContext(linkElement) {
|
|
66
|
-
const event = new CustomEvent('parentContext', {
|
|
67
|
-
detail: {
|
|
68
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
69
|
-
identifier: this.frameLabel
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
linkElement.dispatchEvent(event);
|
|
73
|
-
}
|
|
74
74
|
get storyLink() {
|
|
75
75
|
return `${this.storybookUrl}/?path=/story/${this.storyPath}`;
|
|
76
76
|
}
|
|
@@ -79,13 +79,13 @@ const EdsFrame = class {
|
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
81
|
return h("div", {
|
|
82
|
-
key: '
|
|
82
|
+
key: '387b8a4cb8f300a5a6b82287369f123b33613616',
|
|
83
83
|
class: this.articleClasses()
|
|
84
84
|
}, h("div", {
|
|
85
|
-
key: '
|
|
85
|
+
key: '8db6b1b5aecdaf2722786db85b2d3cf5b4bccac4',
|
|
86
86
|
class: "effect-height flex items-center justify-between py-8 px-12"
|
|
87
87
|
}, h("span", {
|
|
88
|
-
key: '
|
|
88
|
+
key: '696cb266ffbaeb8325c274c646668ba0d8beb751',
|
|
89
89
|
class: "f-ui-02"
|
|
90
90
|
}, this.frameLabel), !this.iframeError ? h("eds-link", {
|
|
91
91
|
label: this.urlLabel,
|
|
@@ -96,8 +96,8 @@ const EdsFrame = class {
|
|
|
96
96
|
disabled: false,
|
|
97
97
|
icon: "arrow-diagonal"
|
|
98
98
|
}) : null), h("div", {
|
|
99
|
-
key: '
|
|
100
|
-
class: "border-softer
|
|
99
|
+
key: '9841812873efe999746eb008dd5e606e89efdb71',
|
|
100
|
+
class: "border-softer"
|
|
101
101
|
}, this.iframeError ? h("div", {
|
|
102
102
|
class: "container ml-8 mr-8 mt-16"
|
|
103
103
|
}, this.errorMessage) : h("iframe", {
|
|
@@ -113,5 +113,6 @@ const EdsFrame = class {
|
|
|
113
113
|
return getElement(this);
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
|
+
EdsFrame.style = EdsFrameStyle0;
|
|
116
117
|
|
|
117
118
|
export { EdsFrame as eds_frame };
|
|
@@ -7,12 +7,12 @@ import 'react-dom';
|
|
|
7
7
|
const EdsIconArrowDiagonal = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
|
-
this.
|
|
10
|
+
this.class = '';
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
return h("span", {
|
|
14
|
-
key: '
|
|
15
|
-
class: this.
|
|
14
|
+
key: 'd19f08d99908a8e47198e49b91a213aadb1dd619',
|
|
15
|
+
class: this.class,
|
|
16
16
|
innerHTML: arrowDiagonal
|
|
17
17
|
});
|
|
18
18
|
}
|
package/eds-icon-eu.entry.esm.js
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index.esm2.js';
|
|
2
|
+
import { s as star } from './star-0da9b5e9.esm.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'react-dom';
|
|
6
|
+
|
|
7
|
+
const EdsIconStar = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.class = '';
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return h("span", {
|
|
14
|
+
key: 'f9dcfa2e4c9cc938f3fd994ca3637c80f0495028',
|
|
15
|
+
class: this.class,
|
|
16
|
+
innerHTML: star
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { EdsIconStar as eds_icon_star };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index.esm2.js';
|
|
2
|
+
import { t as thumbsDown } from './thumbs-down-a18fd049.esm.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'react-dom';
|
|
6
|
+
|
|
7
|
+
const EdsIconThumbsDown = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.class = '';
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return h("span", {
|
|
14
|
+
key: 'c46717d76f06b3d3a52d5072b85f5886aa75d321',
|
|
15
|
+
class: this.class,
|
|
16
|
+
innerHTML: thumbsDown
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { EdsIconThumbsDown as eds_icon_thumbs_down };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index.esm2.js';
|
|
2
|
+
import { t as thumbsUp } from './thumbs-up-c19a71bc.esm.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'react-dom';
|
|
6
|
+
|
|
7
|
+
const EdsIconThumbsUp = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.class = '';
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return h("span", {
|
|
14
|
+
key: 'ddfcfc0690d869c16402c265219faa73e1f324b2',
|
|
15
|
+
class: this.class,
|
|
16
|
+
innerHTML: thumbsUp
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { EdsIconThumbsUp as eds_icon_thumbs_up };
|