@ebrains/react 2.1.0 → 2.3.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/components-section.entry.esm.js +3 -7
- 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/download-47746956.esm.js +18 -0
- package/{eds-accordion_33.entry.esm.js → eds-accordion_36.entry.esm.js} +84 -59
- package/eds-app-root.entry.esm.js +4 -4
- package/eds-card-desc_2.entry.esm.js +4 -4
- package/eds-card-generic.entry.esm.js +12 -9
- package/eds-card-project.entry.esm.js +10 -10
- package/eds-card-section.entry.esm.js +2 -2
- package/eds-card-tags.entry.esm.js +1 -1
- package/eds-card-tool.entry.esm.js +4 -4
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-feedback.entry.esm.js +5 -5
- package/eds-footer.entry.esm.js +12 -14
- package/eds-frame.entry.esm.js +4 -4
- package/eds-fullscreen-menu.entry.esm.js +8 -3
- package/eds-gauge.entry.esm.js +4 -4
- 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 +21 -0
- 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 +10 -10
- 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 +7 -8
- 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.esm.js +1 -1
- package/index.esm2.js +10 -11
- 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/src/components.d.ts +1 -0
- package/src/generated/components.d.ts +0 -1
- package/svg-repository.entry.esm.js +3 -18
- 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-spinner.entry.esm.js +0 -104
- package/eds-tooltip.entry.esm.js +0 -47
|
@@ -9,82 +9,82 @@ const TokenSpacing = class {
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
return h("div", {
|
|
12
|
-
key: '
|
|
12
|
+
key: '46cb6fe655e9f8b8688f44e2351f3992e8011b2a',
|
|
13
13
|
class: "w-full"
|
|
14
14
|
}, h("ul", {
|
|
15
|
-
key: '
|
|
15
|
+
key: '9d7205ee2e0b3b0386284dc282fcc5375c43ec26',
|
|
16
16
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
17
17
|
}, h("li", {
|
|
18
|
-
key: '
|
|
18
|
+
key: 'b3e9d62bb934c1b413712b182cfdf015484db525',
|
|
19
19
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
20
20
|
}, h("div", {
|
|
21
|
-
key: '
|
|
21
|
+
key: '78c8a23dcacfd216a6159da8af3809607ef29702',
|
|
22
22
|
class: "container p-8 item-center border-2 border-soft"
|
|
23
23
|
}, h("div", {
|
|
24
|
-
key: '
|
|
24
|
+
key: '92a2938c5bdcb38456d96077f78993c711bc789f',
|
|
25
25
|
class: "spacing-sample m-16 bg-strong"
|
|
26
26
|
}, h("span", {
|
|
27
|
-
key: '
|
|
27
|
+
key: '7738363bee7cc25863bec922f55224044af61b6e',
|
|
28
28
|
class: "f-body-01 text-inverse"
|
|
29
29
|
}, "Margin: 1rem / m-16")))), h("li", {
|
|
30
|
-
key: '
|
|
30
|
+
key: '96c1f622b7e4136cebd53862b79bbc17ad484a25',
|
|
31
31
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
32
32
|
}, h("div", {
|
|
33
|
-
key: '
|
|
33
|
+
key: 'ff4357650e10f9e7a61903c3c9f6a4f4d60d8c73',
|
|
34
34
|
class: "container p-8 item-center border-2 border-soft"
|
|
35
35
|
}, h("div", {
|
|
36
|
-
key: '
|
|
36
|
+
key: 'cd07be06a51604f81f2868786028066f834cd87d',
|
|
37
37
|
class: "spacing-sample ml-64 bg-strong"
|
|
38
38
|
}, h("span", {
|
|
39
|
-
key: '
|
|
39
|
+
key: 'ded579013d8765c7802862b57cf2bf7ae03f1b99',
|
|
40
40
|
class: "f-body-01 text-inverse"
|
|
41
41
|
}, "Margin Left: 4rem / ml-64")))), h("li", {
|
|
42
|
-
key: '
|
|
42
|
+
key: 'a8e244c95f027993755fa567d900ff88ed08669b',
|
|
43
43
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
44
44
|
}, h("div", {
|
|
45
|
-
key: '
|
|
45
|
+
key: 'e3662c064d089089ebb796aadede38bbd7ebe69d',
|
|
46
46
|
class: "container p-8 item-center border-2 border-soft"
|
|
47
47
|
}, h("div", {
|
|
48
|
-
key: '
|
|
48
|
+
key: 'f168cbeaec417b0eccd66ed60f2776bdffdb7bfb',
|
|
49
49
|
class: "spacing-sample mt-32 bg-strong"
|
|
50
50
|
}, h("span", {
|
|
51
|
-
key: '
|
|
51
|
+
key: '696ec848f217896ae3fc06bf07546fe735d6ccd8',
|
|
52
52
|
class: "f-body-01 text-inverse"
|
|
53
53
|
}, "Margin Top: 2rem / mt-32")))), h("li", {
|
|
54
|
-
key: '
|
|
54
|
+
key: '5e5d4a63fd7e28114a87dfa5789f5213b6c057f3',
|
|
55
55
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
56
56
|
}, h("div", {
|
|
57
|
-
key: '
|
|
57
|
+
key: '14cb262cc18f340e72a922dc793244c17fa9fb05',
|
|
58
58
|
class: "container p-8 item-center border-2 border-soft"
|
|
59
59
|
}, h("div", {
|
|
60
|
-
key: '
|
|
60
|
+
key: '791781717dc851f2e174277c557212e7e5c15b7a',
|
|
61
61
|
class: "spacing-sample p-32 bg-strong"
|
|
62
62
|
}, h("span", {
|
|
63
|
-
key: '
|
|
63
|
+
key: 'd1df2d8f2520746e49ec9c85d8e17cf5569c4bc5',
|
|
64
64
|
class: "f-body-01 text-inverse"
|
|
65
65
|
}, "Padding: 2rem / p-32")))), h("li", {
|
|
66
|
-
key: '
|
|
66
|
+
key: '312e2c71672a05cc54cd492297a1cdcb2b11a395',
|
|
67
67
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
68
68
|
}, h("div", {
|
|
69
|
-
key: '
|
|
69
|
+
key: '8cd16bfafd2345b68e50a46c08c7a8f2430ee6ef',
|
|
70
70
|
class: "container p-8 item-center border-2 border-soft"
|
|
71
71
|
}, h("div", {
|
|
72
|
-
key: '
|
|
72
|
+
key: '8f7e910d8fc43b596b35f3e72a48646e9550e8ba',
|
|
73
73
|
class: "spacing-sample pt-32 bg-strong"
|
|
74
74
|
}, h("span", {
|
|
75
|
-
key: '
|
|
75
|
+
key: '509c712085a239a435fc11f8ea7a6c9c788be60c',
|
|
76
76
|
class: "f-body-01 text-inverse"
|
|
77
77
|
}, "Padding Top: 2rem / pt-32")))), h("li", {
|
|
78
|
-
key: '
|
|
78
|
+
key: 'b99c86cd7dd23e7c091dd2c70ec42133d9d2e2ef',
|
|
79
79
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
80
80
|
}, h("div", {
|
|
81
|
-
key: '
|
|
81
|
+
key: '0e61fb5d7bf779eddc16c9627d6ca0ff6cf702e1',
|
|
82
82
|
class: "container p-8 item-center border-2 border-soft"
|
|
83
83
|
}, h("div", {
|
|
84
|
-
key: '
|
|
84
|
+
key: 'e65eb20ca88e563ae43eb0c208feacf7e310870f',
|
|
85
85
|
class: "spacing-sample pl-32 bg-strong"
|
|
86
86
|
}, h("span", {
|
|
87
|
-
key: '
|
|
87
|
+
key: '2a40e6977caccb37173f60de613c1a72b02f6d3e',
|
|
88
88
|
class: "f-body-01 text-inverse"
|
|
89
89
|
}, "Padding Left: 2rem / pl-32"))))));
|
|
90
90
|
}
|
|
@@ -202,10 +202,10 @@ const TokenTypography = class {
|
|
|
202
202
|
}
|
|
203
203
|
render() {
|
|
204
204
|
return h("section", {
|
|
205
|
-
key: '
|
|
205
|
+
key: 'ff15f73114d16107a766fe6fe8342315cf2fa542',
|
|
206
206
|
class: "w-full"
|
|
207
207
|
}, h("ul", {
|
|
208
|
-
key: '
|
|
208
|
+
key: '22e8e89e792fee03f1957e5705fca1938771b9ac',
|
|
209
209
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
210
210
|
}, Object.entries(typography.typesets).filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
211
211
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => h("li", {
|
package/eds-spinner.entry.esm.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index.esm2.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
import 'react-dom';
|
|
5
|
-
|
|
6
|
-
const edsSpinnerCss = ":host{display:block}.spinner{box-sizing:border-box;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}";
|
|
7
|
-
const EdsSpinnerStyle0 = edsSpinnerCss;
|
|
8
|
-
const EdsSpinner = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.size = 'md';
|
|
12
|
-
this.variant = 'secondary';
|
|
13
|
-
this.message = undefined;
|
|
14
|
-
this.background = 'var(--grey-200)';
|
|
15
|
-
this.fullscreen = false;
|
|
16
|
-
}
|
|
17
|
-
get spinnerSize() {
|
|
18
|
-
switch (this.size) {
|
|
19
|
-
case 'xs':
|
|
20
|
-
return '1rem';
|
|
21
|
-
case 'sm':
|
|
22
|
-
return '4rem';
|
|
23
|
-
case 'lg':
|
|
24
|
-
return '8rem';
|
|
25
|
-
case 'xl':
|
|
26
|
-
return '10rem';
|
|
27
|
-
case 'md':
|
|
28
|
-
default:
|
|
29
|
-
return '6rem';
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
get spinnerThickness() {
|
|
33
|
-
switch (this.size) {
|
|
34
|
-
case 'xs':
|
|
35
|
-
return '4px';
|
|
36
|
-
case 'sm':
|
|
37
|
-
return '8px';
|
|
38
|
-
case 'lg':
|
|
39
|
-
return '16px';
|
|
40
|
-
case 'xl':
|
|
41
|
-
return '20px';
|
|
42
|
-
case 'md':
|
|
43
|
-
default:
|
|
44
|
-
return '12px';
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
render() {
|
|
48
|
-
// derive colors from variant
|
|
49
|
-
const borderColor = this.variant === 'primary' ? 'var(--grey-900)' : 'var(--grey-400)';
|
|
50
|
-
const bottomColor = this.variant === 'primary' ? 'var(--green-400)' : 'var(--grey-900)';
|
|
51
|
-
const spinnerStyle = Object.assign({
|
|
52
|
-
width: this.spinnerSize,
|
|
53
|
-
height: this.spinnerSize,
|
|
54
|
-
border: `${this.spinnerThickness} solid ${borderColor}`,
|
|
55
|
-
borderBottomColor: bottomColor
|
|
56
|
-
}, !this.fullscreen && {
|
|
57
|
-
display: 'inline-block'
|
|
58
|
-
});
|
|
59
|
-
// Overlay style: use fixed positioning for fullscreen,
|
|
60
|
-
// and absolute positioning for inline mode.
|
|
61
|
-
const overlayStyle = this.fullscreen ? {
|
|
62
|
-
position: 'fixed',
|
|
63
|
-
top: '0',
|
|
64
|
-
left: '0',
|
|
65
|
-
width: '100vw',
|
|
66
|
-
height: '100vh',
|
|
67
|
-
zIndex: '9999999',
|
|
68
|
-
backgroundColor: this.background,
|
|
69
|
-
display: 'flex',
|
|
70
|
-
flexDirection: 'column',
|
|
71
|
-
alignItems: 'center',
|
|
72
|
-
justifyContent: 'center'
|
|
73
|
-
} : {
|
|
74
|
-
position: 'absolute',
|
|
75
|
-
top: '0',
|
|
76
|
-
left: '0',
|
|
77
|
-
width: '100%',
|
|
78
|
-
height: '100%',
|
|
79
|
-
//zIndex: '1000',
|
|
80
|
-
backgroundColor: this.background,
|
|
81
|
-
display: 'flex',
|
|
82
|
-
flexDirection: 'column',
|
|
83
|
-
alignItems: 'center',
|
|
84
|
-
justifyContent: 'center'
|
|
85
|
-
};
|
|
86
|
-
return h(Host, {
|
|
87
|
-
key: 'cbf9cead7c7c6bc5314c074f7249c920eb60d326'
|
|
88
|
-
}, h("div", {
|
|
89
|
-
key: 'd22c71a76af3f53c649e547538e0f1627cd9ecd0',
|
|
90
|
-
class: "spinner-overlay",
|
|
91
|
-
style: overlayStyle
|
|
92
|
-
}, h("span", {
|
|
93
|
-
key: '83b42f7ee9ba4d356bd82097989b8be1db8a8ef9',
|
|
94
|
-
class: "spinner",
|
|
95
|
-
style: spinnerStyle
|
|
96
|
-
}), this.message && h("p", {
|
|
97
|
-
key: '0a2c4efe46b8f86a037d29de699534441bf7585e',
|
|
98
|
-
class: "f-body-01"
|
|
99
|
-
}, this.message)));
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
EdsSpinner.style = EdsSpinnerStyle0;
|
|
103
|
-
|
|
104
|
-
export { EdsSpinner as eds_spinner };
|
package/eds-tooltip.entry.esm.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index.esm2.js';
|
|
2
|
-
import { s as sendAnalytics } from './analytics-d99780e3.esm.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react/jsx-runtime';
|
|
5
|
-
import 'react-dom';
|
|
6
|
-
|
|
7
|
-
const edsTooltipCss = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.top-full{top:100%}.bottom-full{bottom:100%}.right-full{right:100%}.left-full{left:100%}.mr-2{margin-right:0.125rem}.ml-2{margin-left:0.125rem}.mt-2{margin-top:0.125rem}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}.max-w-\\[20rem\\]{max-width:20rem}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.w-full{width:100%}";
|
|
8
|
-
const EdsTooltipStyle0 = edsTooltipCss;
|
|
9
|
-
const EdsTooltip = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
registerInstance(this, hostRef);
|
|
12
|
-
this.content = undefined;
|
|
13
|
-
this.position = 'top';
|
|
14
|
-
}
|
|
15
|
-
/** fire analytics on every hover */
|
|
16
|
-
handleHover() {
|
|
17
|
-
sendAnalytics({
|
|
18
|
-
category: 'ui-component',
|
|
19
|
-
tag: this.el.tagName.toLowerCase(),
|
|
20
|
-
name: this.content.toLowerCase(),
|
|
21
|
-
action: 'hover'
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
26
|
-
return h("div", {
|
|
27
|
-
key: 'ee76b787881bdaef986b73fb2775c900a8c33d05',
|
|
28
|
-
class: "relative w-full inline-block group"
|
|
29
|
-
}, h("slot", {
|
|
30
|
-
key: 'a5f9ade50e829efab02ef28ecff3edeedae9d469'
|
|
31
|
-
}), h("div", {
|
|
32
|
-
key: '31bdc63d6263090578f6600ae32027c2b050b2bf',
|
|
33
|
-
class: `absolute ${positionClass}
|
|
34
|
-
rounded-xs bg-strongest text-inverse
|
|
35
|
-
f-ui-03-light pointer-events-none
|
|
36
|
-
z-10 p-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
37
|
-
group-hover:opacity-100 whitespace-normal break-words`,
|
|
38
|
-
role: "tooltip"
|
|
39
|
-
}, this.content));
|
|
40
|
-
}
|
|
41
|
-
get el() {
|
|
42
|
-
return getElement(this);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
EdsTooltip.style = EdsTooltipStyle0;
|
|
46
|
-
|
|
47
|
-
export { EdsTooltip as eds_tooltip };
|