@ebrains/react 0.9.3-beta → 1.0.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/README.md +3 -3
- package/{analytics-44b1416b.esm.js → analytics-d99780e3.esm.js} +2 -2
- package/color-primary-palette_6.entry.esm.js +106 -106
- package/components-section.entry.esm.js +22 -16
- 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.entry.esm.js +2 -2
- package/eds-alert.entry.esm.js +1 -1
- package/eds-app-root.entry.esm.js +4 -4
- package/eds-avatar_34.entry.esm.js +3594 -0
- package/eds-card-project.entry.esm.js +130 -13
- package/eds-card-tool.entry.esm.js +5 -5
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-feedback.entry.esm.js +12 -7
- package/eds-frame.entry.esm.js +6 -6
- package/eds-matomo-notice.entry.esm.js +5 -8
- package/eds-pagination_2.entry.esm.js +10 -10
- package/eds-progress-bar.entry.esm.js +19 -8
- package/eds-rating.entry.esm.js +1 -1
- package/eds-section-core_2.entry.esm.js +5 -5
- package/eds-spinner.entry.esm.js +3 -3
- package/eds-splash-screen.entry.esm.js +87 -0
- package/eds-switch.entry.esm.js +21 -11
- package/eds-timeline.entry.esm.js +5 -5
- package/eds-toast-manager.entry.esm.js +33 -2
- package/eds-toast.entry.esm.js +4 -3
- package/eds-trl.entry.esm.js +2 -2
- package/incorrect-use-of-colors.entry.esm.js +11 -8
- package/index.esm.js +1 -1
- package/index.esm2.js +39 -314
- 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 +2 -2
- package/src/generated/components.d.ts +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-typography.entry.esm.js +2 -2
- package/color-2554aad6.esm.js +0 -122
- package/eds-avatar_27.entry.esm.js +0 -332
- package/eds-card-desc_2.entry.esm.js +0 -86
- package/eds-card-generic.entry.esm.js +0 -114
- package/eds-card-wrapper.entry.esm.js +0 -39
- package/eds-login_2.entry.esm.js +0 -1828
- package/eds-tabs.entry.esm.js +0 -143
- package/eds-tooltip.entry.esm.js +0 -125
- package/toastManager-d9eee791.esm.js +0 -34
|
@@ -1,11 +1,128 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index.esm2.js';
|
|
2
|
-
import { s as sendAnalytics } from './analytics-
|
|
3
|
-
import {
|
|
2
|
+
import { s as sendAnalytics } from './analytics-d99780e3.esm.js';
|
|
3
|
+
import { c as cva } from './index-39c58238.esm.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'react-dom';
|
|
7
|
-
import './index-39c58238.esm.js';
|
|
8
7
|
|
|
8
|
+
const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
|
|
9
|
+
const gradientBGColorVariants = cva([], {
|
|
10
|
+
variants: {
|
|
11
|
+
color: GRADIANT_TOKENS.reduce((acc, token) => Object.assign(Object.assign({}, acc), {
|
|
12
|
+
[token]: ''
|
|
13
|
+
}), {}),
|
|
14
|
+
direction: {
|
|
15
|
+
top: '',
|
|
16
|
+
bottom: ''
|
|
17
|
+
},
|
|
18
|
+
pseudo: {
|
|
19
|
+
true: 'before:effect-opacity effect-bg-behind',
|
|
20
|
+
false: ''
|
|
21
|
+
},
|
|
22
|
+
hover: {
|
|
23
|
+
true: 'before:opacity-0 hover:before:opacity-100',
|
|
24
|
+
false: ''
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
compoundVariants: [
|
|
28
|
+
// region GREEN
|
|
29
|
+
{
|
|
30
|
+
color: 'green',
|
|
31
|
+
direction: 'top',
|
|
32
|
+
pseudo: true,
|
|
33
|
+
class: 'before:bg-gradient-01-top'
|
|
34
|
+
}, {
|
|
35
|
+
color: 'green',
|
|
36
|
+
pseudo: true,
|
|
37
|
+
direction: 'bottom',
|
|
38
|
+
class: 'before:bg-gradient-01-bottom'
|
|
39
|
+
}, {
|
|
40
|
+
color: 'green',
|
|
41
|
+
direction: 'top',
|
|
42
|
+
pseudo: false,
|
|
43
|
+
class: 'bg-gradient-01-top'
|
|
44
|
+
}, {
|
|
45
|
+
color: 'green',
|
|
46
|
+
pseudo: false,
|
|
47
|
+
direction: 'bottom',
|
|
48
|
+
class: 'bg-gradient-01-bottom'
|
|
49
|
+
},
|
|
50
|
+
// endregion
|
|
51
|
+
// region YELLOW
|
|
52
|
+
{
|
|
53
|
+
color: 'yellow',
|
|
54
|
+
direction: 'top',
|
|
55
|
+
pseudo: true,
|
|
56
|
+
class: 'before:bg-gradient-02-top'
|
|
57
|
+
}, {
|
|
58
|
+
color: 'yellow',
|
|
59
|
+
direction: 'bottom',
|
|
60
|
+
pseudo: true,
|
|
61
|
+
class: 'before:bg-gradient-02-bottom'
|
|
62
|
+
}, {
|
|
63
|
+
color: 'yellow',
|
|
64
|
+
direction: 'top',
|
|
65
|
+
pseudo: false,
|
|
66
|
+
class: 'bg-gradient-02-top'
|
|
67
|
+
}, {
|
|
68
|
+
color: 'yellow',
|
|
69
|
+
direction: 'bottom',
|
|
70
|
+
pseudo: false,
|
|
71
|
+
class: 'bg-gradient-02-bottom'
|
|
72
|
+
},
|
|
73
|
+
// endregion
|
|
74
|
+
// region PURPLE
|
|
75
|
+
{
|
|
76
|
+
color: 'purple',
|
|
77
|
+
direction: 'top',
|
|
78
|
+
pseudo: true,
|
|
79
|
+
class: 'before:bg-gradient-03-top'
|
|
80
|
+
}, {
|
|
81
|
+
color: 'purple',
|
|
82
|
+
direction: 'bottom',
|
|
83
|
+
pseudo: true,
|
|
84
|
+
class: 'before:bg-gradient-03-bottom'
|
|
85
|
+
}, {
|
|
86
|
+
color: 'purple',
|
|
87
|
+
direction: 'top',
|
|
88
|
+
pseudo: false,
|
|
89
|
+
class: 'bg-gradient-03-top'
|
|
90
|
+
}, {
|
|
91
|
+
color: 'purple',
|
|
92
|
+
direction: 'bottom',
|
|
93
|
+
pseudo: false,
|
|
94
|
+
class: 'bg-gradient-03-bottom'
|
|
95
|
+
},
|
|
96
|
+
// endregion
|
|
97
|
+
// region AMONG-BLUE
|
|
98
|
+
{
|
|
99
|
+
color: 'among-blue',
|
|
100
|
+
direction: 'top',
|
|
101
|
+
pseudo: true,
|
|
102
|
+
class: 'before:bg-gradient-04-top'
|
|
103
|
+
}, {
|
|
104
|
+
color: 'among-blue',
|
|
105
|
+
direction: 'bottom',
|
|
106
|
+
pseudo: true,
|
|
107
|
+
class: 'before:bg-gradient-04-bottom'
|
|
108
|
+
}, {
|
|
109
|
+
color: 'among-blue',
|
|
110
|
+
direction: 'top',
|
|
111
|
+
pseudo: false,
|
|
112
|
+
class: 'bg-gradient-04-top'
|
|
113
|
+
}, {
|
|
114
|
+
color: 'among-blue',
|
|
115
|
+
direction: 'bottom',
|
|
116
|
+
pseudo: false,
|
|
117
|
+
class: 'bg-gradient-04-bottom'
|
|
118
|
+
}
|
|
119
|
+
// endregion
|
|
120
|
+
],
|
|
121
|
+
defaultVariants: {
|
|
122
|
+
direction: 'top',
|
|
123
|
+
pseudo: true
|
|
124
|
+
}
|
|
125
|
+
});
|
|
9
126
|
const EdsCardProject = class {
|
|
10
127
|
constructor(hostRef) {
|
|
11
128
|
registerInstance(this, hostRef);
|
|
@@ -50,38 +167,38 @@ const EdsCardProject = class {
|
|
|
50
167
|
}) : 'bg-default', this.bgOnHover && this.color ? 'effect-background bg-default focus-within:bg-transparent hover:bg-transparent' : 'effect-background hover:bg-default', this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'].join(' ');
|
|
51
168
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
52
169
|
return h("article", {
|
|
53
|
-
key: '
|
|
170
|
+
key: '7a69b9f5fc30ce389267a064e82aa2cf78b676d1',
|
|
54
171
|
class: cardClasses,
|
|
55
172
|
onClick: event => this.handleClick(event)
|
|
56
173
|
}, h("div", {
|
|
57
|
-
key: '
|
|
174
|
+
key: '8495c7b6655418741b1d208f06f003d4ec2eaf79',
|
|
58
175
|
class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}`
|
|
59
176
|
}, h("div", {
|
|
60
|
-
key: '
|
|
177
|
+
key: '803b274d099072e055c484e818732a48ff27ebab',
|
|
61
178
|
class: "lg:max-w-[720px]"
|
|
62
179
|
}, h("eds-card-title", {
|
|
63
|
-
key: '
|
|
180
|
+
key: '18b1d058c9d92e3df264c5f60cec0adc8f14f19e',
|
|
64
181
|
"heading-level": this.headingLevel,
|
|
65
182
|
titleClass: this.image ? 'f-ui-01' : undefined,
|
|
66
183
|
"card-title": this.titleProject,
|
|
67
184
|
url: this.url
|
|
68
185
|
}), this.editorialTitle && h("span", {
|
|
69
|
-
key: '
|
|
186
|
+
key: '1854001686cae69c50a97ed50534ae4329d3017a',
|
|
70
187
|
class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}`
|
|
71
188
|
}, this.editorialTitle)), this.categoryTitle && h("div", {
|
|
72
|
-
key: '
|
|
189
|
+
key: 'a5e741ce22ace338988a1a0d6f0d5c2740eb685b',
|
|
73
190
|
class: "mt-auto flex items-center gap-x-12 pt-12"
|
|
74
191
|
}, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && h("eds-tag", {
|
|
75
|
-
key: '
|
|
192
|
+
key: 'c1136aef565b3a35bee7d7c254434b6c06f3cf65',
|
|
76
193
|
label: this.categoryTitle
|
|
77
194
|
}))), this.parsedImage && h("div", {
|
|
78
|
-
key: '
|
|
195
|
+
key: '531cb24eafadd52397a138735436e0501b45cf76',
|
|
79
196
|
class: imageClasses
|
|
80
197
|
}, h("div", {
|
|
81
|
-
key: '
|
|
198
|
+
key: 'c692a10bfa0032d4e43fe35090e38dde3e0401f3',
|
|
82
199
|
class: "aspect-1x1 w-full"
|
|
83
200
|
}, h("eds-img", Object.assign({
|
|
84
|
-
key: '
|
|
201
|
+
key: '490983736b4cd9de3b2cfbafe11be15802746afe',
|
|
85
202
|
sizes: this.vertical ? this.parsedImage.sizes || '' : '192px'
|
|
86
203
|
}, this.parsedImage)))));
|
|
87
204
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index.esm2.js';
|
|
2
|
-
import { s as sendAnalytics } from './analytics-
|
|
2
|
+
import { s as sendAnalytics } from './analytics-d99780e3.esm.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom';
|
|
@@ -62,11 +62,11 @@ const EdsCardTool = class {
|
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
64
|
return h("article", {
|
|
65
|
-
key: '
|
|
65
|
+
key: 'b3f0c0f3588304fb36f1c395b69b723edbfa8c95',
|
|
66
66
|
class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`,
|
|
67
67
|
onClick: () => this.handleClick()
|
|
68
68
|
}, h("eds-card-title", {
|
|
69
|
-
key: '
|
|
69
|
+
key: '12f9d1363b3d171912eb00117d99056065fbcb33',
|
|
70
70
|
"heading-level": this.headingLevel,
|
|
71
71
|
titleClass: this.image ? 'f-ui-01' : undefined,
|
|
72
72
|
"card-title": this.cardTitle,
|
|
@@ -74,7 +74,7 @@ const EdsCardTool = class {
|
|
|
74
74
|
"external-link": this.external,
|
|
75
75
|
hierarchy: this.hierarchy
|
|
76
76
|
}), this.description && h("eds-card-desc", {
|
|
77
|
-
key: '
|
|
77
|
+
key: '780c4b035e0fff1911ee4b8b04a0729cd182d877',
|
|
78
78
|
class: "mt-8",
|
|
79
79
|
"truncate-lines": "3",
|
|
80
80
|
description: this.description
|
|
@@ -88,7 +88,7 @@ const EdsCardTool = class {
|
|
|
88
88
|
picture: this.avatar,
|
|
89
89
|
initials: this.shortAbbreviation
|
|
90
90
|
}) : null, h("div", {
|
|
91
|
-
key: '
|
|
91
|
+
key: 'a6878ba6bb2086a334282b10750234f4251c6334',
|
|
92
92
|
class: "flex flex-wrap gap-y-4"
|
|
93
93
|
}, this.parsedTags.map((tag, index) => h("eds-tag", {
|
|
94
94
|
key: index,
|
|
@@ -29,9 +29,9 @@ const EdsCookiesPreference = class {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
return h("div", {
|
|
32
|
-
key: '
|
|
32
|
+
key: '37a817a2c1cccb58a7445c399f20ce5fb97653b8'
|
|
33
33
|
}, h("eds-link", {
|
|
34
|
-
key: '
|
|
34
|
+
key: '9bf85d4fe82d7a525bae6f765da7dea9a3913494',
|
|
35
35
|
size: "small",
|
|
36
36
|
intent: this.intent,
|
|
37
37
|
label: this.buttonText,
|
|
@@ -10,6 +10,7 @@ const EdsFeedback = class {
|
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
registerInstance(this, hostRef);
|
|
12
12
|
this.rating = createEvent(this, "rating", 7);
|
|
13
|
+
this.headingLevel = 'h1';
|
|
13
14
|
this.type = 'star';
|
|
14
15
|
this.count = 5;
|
|
15
16
|
this.label = 'Rate your Experience!';
|
|
@@ -55,21 +56,25 @@ const EdsFeedback = class {
|
|
|
55
56
|
this.selectedRating = e.detail;
|
|
56
57
|
}
|
|
57
58
|
render() {
|
|
59
|
+
// Determine the heading tag and CSS class
|
|
60
|
+
const HeadingTag = this.headingLevel;
|
|
61
|
+
const levelNum = this.headingLevel.replace('h', '');
|
|
62
|
+
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
58
63
|
return h("div", {
|
|
59
|
-
key: '
|
|
64
|
+
key: 'f1bec91df97ff2a54a8ec8284e88f572b3bf0081',
|
|
60
65
|
class: "grid inline"
|
|
61
|
-
}, h(
|
|
62
|
-
key: '
|
|
63
|
-
class:
|
|
66
|
+
}, h(HeadingTag, {
|
|
67
|
+
key: '8051043d5ec79a1f972fd732ef8a716487ed51d2',
|
|
68
|
+
class: headingClass
|
|
64
69
|
}, this.label), h("p", {
|
|
65
|
-
key: '
|
|
70
|
+
key: '55f319e89376372f13c2bb96b9a94ceed6a6565b',
|
|
66
71
|
class: "f-body-01 text-light"
|
|
67
72
|
}, this.description), h("eds-rating", {
|
|
68
|
-
key: '
|
|
73
|
+
key: 'c9c725d4a1ae65eb6b773178f6435d239c434034',
|
|
69
74
|
"rating-type": this.type,
|
|
70
75
|
"rating-count": this.count
|
|
71
76
|
}), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && h("span", {
|
|
72
|
-
key: '
|
|
77
|
+
key: 'e3ea621a035ecd6da07803478d202b2326997416',
|
|
73
78
|
class: "f-ui-04 text-lighter"
|
|
74
79
|
}, this.parsedMappings[this.selectedRating - 1]));
|
|
75
80
|
}
|
package/eds-frame.entry.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ 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
|
|
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
7
|
const EdsFrameStyle0 = edsFrameCss;
|
|
8
8
|
const EdsFrame = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -73,15 +73,15 @@ const EdsFrame = class {
|
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
75
|
return h("div", {
|
|
76
|
-
key: '
|
|
76
|
+
key: '61c401d6e021418e3d705cc9a4418b4f54f6bcf1',
|
|
77
77
|
class: this.articleClasses()
|
|
78
78
|
}, h("div", {
|
|
79
|
-
key: '
|
|
79
|
+
key: '3fe7284c2ce4057d6c953c02e03489c0ef75f43d',
|
|
80
80
|
class: "effect-height flex items-center justify-between py-8 px-12"
|
|
81
81
|
}, h("span", {
|
|
82
|
-
key: '
|
|
82
|
+
key: 'a0efaa70d4ab2484c76d38e309c0bf9800edf569',
|
|
83
83
|
class: "f-ui-02"
|
|
84
|
-
}, this.frameLabel), !this.iframeError ? h("eds-link", {
|
|
84
|
+
}, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? h("eds-link", {
|
|
85
85
|
label: this.urlLabel,
|
|
86
86
|
url: this.url,
|
|
87
87
|
intent: this.intent,
|
|
@@ -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: 'e99188447abb78659865758afe3226a7ade7f8f2',
|
|
94
94
|
class: "border-softer"
|
|
95
95
|
}, this.iframeError ? h("div", {
|
|
96
96
|
class: "container ml-8 mr-8 mt-16"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index.esm2.js';
|
|
2
|
-
import { m as matomoOptIn, a as matomoOptOut } from './analytics-
|
|
2
|
+
import { m as matomoOptIn, a as matomoOptOut } from './analytics-d99780e3.esm.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom';
|
|
@@ -92,14 +92,16 @@ const EdsMatomoNotice = class {
|
|
|
92
92
|
this.consent.emit('out');
|
|
93
93
|
}
|
|
94
94
|
noThanks() {
|
|
95
|
+
matomoOptOut();
|
|
95
96
|
localStorage.setItem(`${window.location.host}-matomo-consent-given`, 'out');
|
|
96
97
|
this.hideNotice();
|
|
98
|
+
this.consent.emit('out');
|
|
97
99
|
}
|
|
98
|
-
deferDecision() {
|
|
100
|
+
/*private deferDecision() {
|
|
99
101
|
sessionStorage.setItem(this.getStorageKey(), 'true');
|
|
100
102
|
this.hideNotice();
|
|
101
103
|
this.consent.emit('defer');
|
|
102
|
-
}
|
|
104
|
+
}*/
|
|
103
105
|
keepMeIn() {
|
|
104
106
|
this.hideNotice();
|
|
105
107
|
}
|
|
@@ -146,11 +148,6 @@ const EdsMatomoNotice = class {
|
|
|
146
148
|
label: "No, thanks",
|
|
147
149
|
"aria-label": "Opt-out from analytics",
|
|
148
150
|
onClick: () => this.noThanks()
|
|
149
|
-
}), h("eds-button", {
|
|
150
|
-
intent: "ghost",
|
|
151
|
-
label: "Ask me later",
|
|
152
|
-
"aria-label": "Defer analytics decision",
|
|
153
|
-
onClick: () => this.deferDecision()
|
|
154
151
|
}))));
|
|
155
152
|
}
|
|
156
153
|
get el() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index.esm2.js';
|
|
2
|
-
import { s as sendAnalytics } from './analytics-
|
|
2
|
+
import { s as sendAnalytics } from './analytics-d99780e3.esm.js';
|
|
3
3
|
import { p as parseData } from './sharedUtils-a550989c.esm.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
@@ -424,9 +424,9 @@ const EdsTable = class {
|
|
|
424
424
|
const paginatedRows = this.getPaginatedRows();
|
|
425
425
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
426
426
|
return h("div", {
|
|
427
|
-
key: '
|
|
427
|
+
key: '81735ac374853c8c92b3f50e26263ff9d71b326c'
|
|
428
428
|
}, this.searchEnabled && h("div", {
|
|
429
|
-
key: '
|
|
429
|
+
key: '0b2ab8dbb343033f605e2028890bd963cd650998'
|
|
430
430
|
}, h("eds-input-field", {
|
|
431
431
|
key: 1,
|
|
432
432
|
name: "search",
|
|
@@ -436,15 +436,15 @@ const EdsTable = class {
|
|
|
436
436
|
// @ts-ignore
|
|
437
437
|
onInput: event => this.handleSearch(event)
|
|
438
438
|
})), h("div", {
|
|
439
|
-
key: '
|
|
439
|
+
key: 'eb3eebe6fb124d4e1983b2fb7e636707817d36bd',
|
|
440
440
|
class: "mt-20"
|
|
441
441
|
}, h("table", {
|
|
442
|
-
key: '
|
|
442
|
+
key: '03b312ac20bdec28843a46907a3cc4fba69f62ae',
|
|
443
443
|
class: "block overflow-x-auto mt-6 p-0"
|
|
444
444
|
}, h("thead", {
|
|
445
|
-
key: '
|
|
445
|
+
key: 'ccab58dc46ae765df28da97ded6b1dd14d45d7f1'
|
|
446
446
|
}, h("tr", {
|
|
447
|
-
key: '
|
|
447
|
+
key: '904a125aad610cebe42b0bce46615be38f0ee17a',
|
|
448
448
|
class: "m-0 p-0 border border-softer even:bg-inverse-softer"
|
|
449
449
|
}, this.columns.map(column => {
|
|
450
450
|
var _a;
|
|
@@ -455,7 +455,7 @@ const EdsTable = class {
|
|
|
455
455
|
}
|
|
456
456
|
}, column);
|
|
457
457
|
}))), h("tbody", {
|
|
458
|
-
key: '
|
|
458
|
+
key: 'a4c54c9c89d15546020dbb684e5486decde33f30'
|
|
459
459
|
}, paginatedRows.map(row => h("tr", {
|
|
460
460
|
class: "m-0 p-0 border border-softer even:bg-inverse-softer"
|
|
461
461
|
}, this.columns.map(column => {
|
|
@@ -467,10 +467,10 @@ const EdsTable = class {
|
|
|
467
467
|
}
|
|
468
468
|
}, this.renderCell(row[column], column));
|
|
469
469
|
})))))), this.shouldEnablePagination() && h("div", {
|
|
470
|
-
key: '
|
|
470
|
+
key: '2a248cbbe81ac8c1ad4dfbb49a9615f15931bac6',
|
|
471
471
|
class: "mt-20"
|
|
472
472
|
}, h("eds-pagination", {
|
|
473
|
-
key: '
|
|
473
|
+
key: '11701d81922ca4c8b36fe82be32316a175eddbcd',
|
|
474
474
|
currentPage: this.currentPage,
|
|
475
475
|
lastPage: lastPage,
|
|
476
476
|
perPage: this.rowsPerPage,
|
|
@@ -3,37 +3,48 @@ import 'react';
|
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom';
|
|
5
5
|
|
|
6
|
-
const edsProgressBarCss = ".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1
|
|
6
|
+
const edsProgressBarCss = ".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.overflow-hidden{overflow:hidden}.bg-accent{background-color:var(--green-500)}.bg-\\[\\#0034CB\\]{--tw-text-opacity:1;background-color:rgb(0 52 203 / var(--tw-text-opacity))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-300{transition-duration:300ms}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.absolute{position:absolute}.relative{position:relative}.z-0{z-index:0}.z-10{z-index:10}.inset-0{inset:0rem}.pointer-events-none{pointer-events:none}";
|
|
7
7
|
const EdsProgressBarStyle0 = edsProgressBarCss;
|
|
8
8
|
const EdsProgressBar = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
registerInstance(this, hostRef);
|
|
11
11
|
this.value = 0;
|
|
12
|
+
this.rounded = true;
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* Method to update the progress value externally.
|
|
15
16
|
* @param newValue The new progress value (0-100).
|
|
16
17
|
*/
|
|
17
18
|
async updateValue(newValue) {
|
|
18
|
-
this.value = Math.min(100, Math.max(0, newValue)); // Clamp
|
|
19
|
+
this.value = Math.min(100, Math.max(0, newValue)); // Clamp 0–100
|
|
19
20
|
}
|
|
20
21
|
render() {
|
|
21
|
-
const progressValue = this.value;
|
|
22
|
+
const progressValue = Math.min(100, Math.max(0, this.value));
|
|
23
|
+
// Outer container classes (conditionally rounded)
|
|
24
|
+
const outerClasses = ['outer', 'w-full', 'h-24', 'bg-default', 'border', 'border-softer', 'overflow-hidden', this.rounded ? 'rounded-lg' : '', 'relative'].filter(Boolean).join(' ');
|
|
25
|
+
// Fill bar classes (conditionally rounded only when >0)
|
|
26
|
+
const fillClasses = ['inner', 'h-full', 'transition-all', 'duration-300', 'bg-accent', progressValue > 0 && this.rounded ? 'rounded-lg' : '', 'z-0'].filter(Boolean).join(' ');
|
|
22
27
|
return h("div", {
|
|
23
|
-
key: '
|
|
28
|
+
key: '8760afff9f85f05fec52b0a7fb668661e49dc06f',
|
|
24
29
|
role: "progressbar",
|
|
25
30
|
"aria-valuemin": "0",
|
|
26
31
|
"aria-valuemax": "100",
|
|
27
32
|
"aria-valuenow": progressValue,
|
|
28
33
|
"aria-valuetext": `${progressValue}%`,
|
|
29
|
-
class:
|
|
34
|
+
class: outerClasses
|
|
30
35
|
}, h("div", {
|
|
31
|
-
key: '
|
|
32
|
-
class:
|
|
36
|
+
key: '06165b69fe7e170f4f61d9f95b5a44342d4ee67a',
|
|
37
|
+
class: fillClasses,
|
|
33
38
|
style: {
|
|
34
39
|
width: `${progressValue}%`
|
|
35
40
|
}
|
|
36
|
-
},
|
|
41
|
+
}), h("div", {
|
|
42
|
+
key: '0c48e65c5a6cb0b4dff7a7e3e248052cdc29957d',
|
|
43
|
+
class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10"
|
|
44
|
+
}, h("span", {
|
|
45
|
+
key: 'fc6f7396cf741ba18d1b5d065bdd1b7bfff12abe',
|
|
46
|
+
class: "text-default f-body-02"
|
|
47
|
+
}, progressValue, "%")));
|
|
37
48
|
}
|
|
38
49
|
};
|
|
39
50
|
EdsProgressBar.style = EdsProgressBarStyle0;
|
package/eds-rating.entry.esm.js
CHANGED
|
@@ -15,13 +15,13 @@ const EdsSectionCore = class {
|
|
|
15
15
|
render() {
|
|
16
16
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
17
17
|
return h(TagType, {
|
|
18
|
-
key: '
|
|
18
|
+
key: 'ff0b28dffb8aca2ad0ac1ee3eea7ebda75078f96'
|
|
19
19
|
}, h("eds-section-heading", {
|
|
20
|
-
key: '
|
|
20
|
+
key: '23e9bb2b084c6b8a534dd310fbe10e0de0211187',
|
|
21
21
|
headingLevel: this.headingLevel,
|
|
22
22
|
sectionTitle: this.sectionTitle
|
|
23
23
|
}), h("slot", {
|
|
24
|
-
key: '
|
|
24
|
+
key: '9cae6378bdb5304191d393967025570f94fdcdb2'
|
|
25
25
|
}));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
@@ -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: 'bb32f87fd944ebf08ebcde3980c18cd4bed18783',
|
|
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: '0cd8ea8aada58e30675579c82ba130b40257c7c6',
|
|
64
64
|
class: this.getHeadingClass()
|
|
65
65
|
}, this.sectionTitle));
|
|
66
66
|
}
|
package/eds-spinner.entry.esm.js
CHANGED
|
@@ -50,13 +50,13 @@ const EdsSpinner = class {
|
|
|
50
50
|
justifyContent: 'center'
|
|
51
51
|
};
|
|
52
52
|
return h(Host, {
|
|
53
|
-
key: '
|
|
53
|
+
key: '214876a56949c147e74c1a7072406234c2fb1a02'
|
|
54
54
|
}, h("div", {
|
|
55
|
-
key: '
|
|
55
|
+
key: 'b75b639fa38aafaf13e1eb727e28c5e67f3edafe',
|
|
56
56
|
class: "spinner-overlay",
|
|
57
57
|
style: overlayStyle
|
|
58
58
|
}, h("span", {
|
|
59
|
-
key: '
|
|
59
|
+
key: '87ba2ef7e1e9601ac0ae8132e9c891b4149a20b5',
|
|
60
60
|
class: "spinner",
|
|
61
61
|
style: spinnerStyle
|
|
62
62
|
})));
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index.esm2.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
|
|
6
|
+
const edsSplashScreenCss = ".splash-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999999;background-color:var(--grey-200);display:flex;flex-direction:column;align-items:center;justify-content:center}.logo-container{width:200px;height:200px;margin-bottom:1rem}.content-container{position:relative;width:5rem;height:5rem;display:flex;align-items:center;justify-content:center}";
|
|
7
|
+
const EdsSplashScreenStyle0 = edsSplashScreenCss;
|
|
8
|
+
const EdsSplashScreen = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.splash = createEvent(this, "splash", 7);
|
|
12
|
+
this.inverse = false;
|
|
13
|
+
this.initPromise = undefined;
|
|
14
|
+
this.isVisible = true;
|
|
15
|
+
}
|
|
16
|
+
// When the component loads, check if there is a promise.
|
|
17
|
+
componentWillLoad() {
|
|
18
|
+
if (this.initPromise) {
|
|
19
|
+
this.handleInitPromise(this.initPromise);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
// Watch for changes on initPromise.
|
|
23
|
+
async watchInitPromise(newPromise) {
|
|
24
|
+
if (newPromise) {
|
|
25
|
+
this.handleInitPromise(newPromise);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
async handleInitPromise(promise) {
|
|
29
|
+
try {
|
|
30
|
+
await promise;
|
|
31
|
+
//console.log('Promises resolved');
|
|
32
|
+
this.hideSplash();
|
|
33
|
+
} catch (error) {
|
|
34
|
+
//console.error('Initialization error:', error);
|
|
35
|
+
this.splash.emit({
|
|
36
|
+
type: 'error',
|
|
37
|
+
message: error.message || 'Unknown error'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
handleHideSplash() {
|
|
42
|
+
this.hideSplash();
|
|
43
|
+
}
|
|
44
|
+
hideSplash() {
|
|
45
|
+
this.isVisible = false;
|
|
46
|
+
this.splash.emit({
|
|
47
|
+
type: 'hidden',
|
|
48
|
+
message: 'Splash screen hidden successfully'
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
if (!this.isVisible) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return h(Host, null, h("div", {
|
|
56
|
+
class: "splash-overlay",
|
|
57
|
+
style: {
|
|
58
|
+
background: this.inverse ? 'black' : 'var(--grey-200)'
|
|
59
|
+
}
|
|
60
|
+
}, h("div", {
|
|
61
|
+
class: "logo-container"
|
|
62
|
+
}, this.inverse ? h("eds-logo", {
|
|
63
|
+
orientation: "vertical",
|
|
64
|
+
type: "color-white"
|
|
65
|
+
}) : h("eds-logo", {
|
|
66
|
+
orientation: "vertical",
|
|
67
|
+
type: "color"
|
|
68
|
+
})), h("div", {
|
|
69
|
+
class: "content-container"
|
|
70
|
+
}, h("eds-spinner", {
|
|
71
|
+
size: "1rem",
|
|
72
|
+
thickness: "3px",
|
|
73
|
+
"border-color": "var(--grey-400)",
|
|
74
|
+
"bottom-color": "var(--grey-900)",
|
|
75
|
+
background: "none",
|
|
76
|
+
fullscreen: false
|
|
77
|
+
}))));
|
|
78
|
+
}
|
|
79
|
+
static get watchers() {
|
|
80
|
+
return {
|
|
81
|
+
"initPromise": ["watchInitPromise"]
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
EdsSplashScreen.style = EdsSplashScreenStyle0;
|
|
86
|
+
|
|
87
|
+
export { EdsSplashScreen as eds_splash_screen };
|