@ebrains/react 2.2.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_34.entry.esm.js → eds-accordion_36.entry.esm.js} +71 -43
- 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 +15 -13
- package/eds-frame.entry.esm.js +4 -4
- package/eds-fullscreen-menu.entry.esm.js +12 -0
- 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 +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 +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 +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.esm.js +1 -1
- package/index.esm2.js +7 -8
- 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 +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
- package/eds-spinner.entry.esm.js +0 -104
|
@@ -9,82 +9,82 @@ const TokenSpacing = class {
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
return h("div", {
|
|
12
|
-
key: '
|
|
12
|
+
key: 'e6d23c9b0eecdbb9551da827e84b536c237c3fa2',
|
|
13
13
|
class: "w-full"
|
|
14
14
|
}, h("ul", {
|
|
15
|
-
key: '
|
|
15
|
+
key: 'f8c8ea13fd5f36050858e813f3300c12c9ed8a93',
|
|
16
16
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
17
17
|
}, h("li", {
|
|
18
|
-
key: '
|
|
18
|
+
key: '9473a1f844d1d6e4cfd2aaf6e8ec8587ebbc8f46',
|
|
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: '86f5d11b9f24a78c2d000a487402ea203663472d',
|
|
22
22
|
class: "container p-8 item-center border-2 border-soft"
|
|
23
23
|
}, h("div", {
|
|
24
|
-
key: '
|
|
24
|
+
key: '2aa3f316b2a8b9f75403bc148f1e0f2c5b008760',
|
|
25
25
|
class: "spacing-sample m-16 bg-strong"
|
|
26
26
|
}, h("span", {
|
|
27
|
-
key: '
|
|
27
|
+
key: '178bcea91ee96b6ba7d7f35d3129ba0365103a51',
|
|
28
28
|
class: "f-body-01 text-inverse"
|
|
29
29
|
}, "Margin: 1rem / m-16")))), h("li", {
|
|
30
|
-
key: '
|
|
30
|
+
key: '3bea85f0dabe95c77f1f7efa20868e05dbe8ac29',
|
|
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: '5500ec5a1b8a408ace5f6b74a09af135953508b9',
|
|
34
34
|
class: "container p-8 item-center border-2 border-soft"
|
|
35
35
|
}, h("div", {
|
|
36
|
-
key: '
|
|
36
|
+
key: '4fe620bb9f4e246aac4093a3bceeb504a91f7347',
|
|
37
37
|
class: "spacing-sample ml-64 bg-strong"
|
|
38
38
|
}, h("span", {
|
|
39
|
-
key: '
|
|
39
|
+
key: '8043e928ce06e7eb4f9a980523b85bc1aeacce23',
|
|
40
40
|
class: "f-body-01 text-inverse"
|
|
41
41
|
}, "Margin Left: 4rem / ml-64")))), h("li", {
|
|
42
|
-
key: '
|
|
42
|
+
key: '3909330218202d18909ece6bb6c24209cdf89737',
|
|
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: 'eddaed5ba95dcff41b807123719b86a2e109f199',
|
|
46
46
|
class: "container p-8 item-center border-2 border-soft"
|
|
47
47
|
}, h("div", {
|
|
48
|
-
key: '
|
|
48
|
+
key: '9d4ab0bce204ed45ec8a35079213a3663dff2e70',
|
|
49
49
|
class: "spacing-sample mt-32 bg-strong"
|
|
50
50
|
}, h("span", {
|
|
51
|
-
key: '
|
|
51
|
+
key: '95a3e2eddf9d5b5659ee455de56815e83c873d22',
|
|
52
52
|
class: "f-body-01 text-inverse"
|
|
53
53
|
}, "Margin Top: 2rem / mt-32")))), h("li", {
|
|
54
|
-
key: '
|
|
54
|
+
key: '3dfe973b5081f9c209386a0b090703c5d9ee9286',
|
|
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: 'a82ec5b68b327c2d6c73109170babaa42866a7bb',
|
|
58
58
|
class: "container p-8 item-center border-2 border-soft"
|
|
59
59
|
}, h("div", {
|
|
60
|
-
key: '
|
|
60
|
+
key: 'bf446dc3468e554be2419cd4f86a9e015f36e027',
|
|
61
61
|
class: "spacing-sample p-32 bg-strong"
|
|
62
62
|
}, h("span", {
|
|
63
|
-
key: '
|
|
63
|
+
key: '5569dc17bfd58e125651fa8bb7ff3c510e5a11c8',
|
|
64
64
|
class: "f-body-01 text-inverse"
|
|
65
65
|
}, "Padding: 2rem / p-32")))), h("li", {
|
|
66
|
-
key: '
|
|
66
|
+
key: '2bd50606ad35620c512c764008e1ebae74b7eb5a',
|
|
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: '6d3172e3d9db2aca2d44112795e030cbe8764327',
|
|
70
70
|
class: "container p-8 item-center border-2 border-soft"
|
|
71
71
|
}, h("div", {
|
|
72
|
-
key: '
|
|
72
|
+
key: '7abece54dfbf26fa0f441079192e3de3d1924897',
|
|
73
73
|
class: "spacing-sample pt-32 bg-strong"
|
|
74
74
|
}, h("span", {
|
|
75
|
-
key: '
|
|
75
|
+
key: 'dce98a63280c8b9e8a691074e7727a02c8683290',
|
|
76
76
|
class: "f-body-01 text-inverse"
|
|
77
77
|
}, "Padding Top: 2rem / pt-32")))), h("li", {
|
|
78
|
-
key: '
|
|
78
|
+
key: '2330aed59c3748951cd1b99bec3324554b81f51b',
|
|
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: 'f17b856f30a3ddaabc9d7dcc4438cde42f49956d',
|
|
82
82
|
class: "container p-8 item-center border-2 border-soft"
|
|
83
83
|
}, h("div", {
|
|
84
|
-
key: '
|
|
84
|
+
key: 'fb0907d427077e137a878adcb54b1e9b0cdf368e',
|
|
85
85
|
class: "spacing-sample pl-32 bg-strong"
|
|
86
86
|
}, h("span", {
|
|
87
|
-
key: '
|
|
87
|
+
key: 'e5f919cc44e91ce7eb887bc0419f998039c95fa6',
|
|
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: '234d2f000995c4dbd180a2c80d4ead037c8f76ad',
|
|
206
206
|
class: "w-full"
|
|
207
207
|
}, h("ul", {
|
|
208
|
-
key: '
|
|
208
|
+
key: '7a4b29e3ecbb07c04c401fdbb473a4b122440e24',
|
|
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: 'b10a5d28d0b06e7b36276fb814e3b8b57b767094'
|
|
88
|
-
}, h("div", {
|
|
89
|
-
key: '8f2205bb74775c16660d35f80bf880ac9c39d725',
|
|
90
|
-
class: "spinner-overlay",
|
|
91
|
-
style: overlayStyle
|
|
92
|
-
}, h("span", {
|
|
93
|
-
key: 'f681700791c6c10ea63473f34719a873757bcf5e',
|
|
94
|
-
class: "spinner",
|
|
95
|
-
style: spinnerStyle
|
|
96
|
-
}), this.message && h("p", {
|
|
97
|
-
key: 'b0afdd60a6c74fd740626cb7da3402a9a5075e34',
|
|
98
|
-
class: "f-body-01"
|
|
99
|
-
}, this.message)));
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
EdsSpinner.style = EdsSpinnerStyle0;
|
|
103
|
-
|
|
104
|
-
export { EdsSpinner as eds_spinner };
|