@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.
Files changed (51) hide show
  1. package/README.md +3 -3
  2. package/{analytics-44b1416b.esm.js → analytics-d99780e3.esm.js} +2 -2
  3. package/color-primary-palette_6.entry.esm.js +106 -106
  4. package/components-section.entry.esm.js +22 -16
  5. package/correct-use-of-colors.entry.esm.js +33 -33
  6. package/docs-palettes.entry.esm.js +1 -1
  7. package/docs-tokens.entry.esm.js +1 -1
  8. package/eds-accordion.entry.esm.js +2 -2
  9. package/eds-alert.entry.esm.js +1 -1
  10. package/eds-app-root.entry.esm.js +4 -4
  11. package/eds-avatar_34.entry.esm.js +3594 -0
  12. package/eds-card-project.entry.esm.js +130 -13
  13. package/eds-card-tool.entry.esm.js +5 -5
  14. package/eds-cookies-preference.entry.esm.js +2 -2
  15. package/eds-feedback.entry.esm.js +12 -7
  16. package/eds-frame.entry.esm.js +6 -6
  17. package/eds-matomo-notice.entry.esm.js +5 -8
  18. package/eds-pagination_2.entry.esm.js +10 -10
  19. package/eds-progress-bar.entry.esm.js +19 -8
  20. package/eds-rating.entry.esm.js +1 -1
  21. package/eds-section-core_2.entry.esm.js +5 -5
  22. package/eds-spinner.entry.esm.js +3 -3
  23. package/eds-splash-screen.entry.esm.js +87 -0
  24. package/eds-switch.entry.esm.js +21 -11
  25. package/eds-timeline.entry.esm.js +5 -5
  26. package/eds-toast-manager.entry.esm.js +33 -2
  27. package/eds-toast.entry.esm.js +4 -3
  28. package/eds-trl.entry.esm.js +2 -2
  29. package/incorrect-use-of-colors.entry.esm.js +11 -8
  30. package/index.esm.js +1 -1
  31. package/index.esm2.js +39 -314
  32. package/logo-space.entry.esm.js +9 -9
  33. package/logo-variations-horizontal_2.entry.esm.js +28 -28
  34. package/logo-variations-tabs.entry.esm.js +1 -1
  35. package/logo-wrong-usage.entry.esm.js +25 -25
  36. package/package.json +1 -1
  37. package/src/components.d.ts +2 -2
  38. package/src/generated/components.d.ts +1 -1
  39. package/svg-repository.entry.esm.js +2 -2
  40. package/token-list_3.entry.esm.js +5 -5
  41. package/token-ratios.entry.esm.js +3 -3
  42. package/token-typography.entry.esm.js +2 -2
  43. package/color-2554aad6.esm.js +0 -122
  44. package/eds-avatar_27.entry.esm.js +0 -332
  45. package/eds-card-desc_2.entry.esm.js +0 -86
  46. package/eds-card-generic.entry.esm.js +0 -114
  47. package/eds-card-wrapper.entry.esm.js +0 -39
  48. package/eds-login_2.entry.esm.js +0 -1828
  49. package/eds-tabs.entry.esm.js +0 -143
  50. package/eds-tooltip.entry.esm.js +0 -125
  51. 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-44b1416b.esm.js';
3
- import { g as gradientBGColorVariants } from './color-2554aad6.esm.js';
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: '1ffb83f3e694811d5f3d4c8235c50591bca4dec5',
170
+ key: '7a69b9f5fc30ce389267a064e82aa2cf78b676d1',
54
171
  class: cardClasses,
55
172
  onClick: event => this.handleClick(event)
56
173
  }, h("div", {
57
- key: 'e8d7f04e95722dc8ec8bcb7f90b2b8495b8c13ef',
174
+ key: '8495c7b6655418741b1d208f06f003d4ec2eaf79',
58
175
  class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}`
59
176
  }, h("div", {
60
- key: '5ab94ee81425c5f7a143e7f1eb7981da6508e307',
177
+ key: '803b274d099072e055c484e818732a48ff27ebab',
61
178
  class: "lg:max-w-[720px]"
62
179
  }, h("eds-card-title", {
63
- key: 'd303425849c5df81c0b72e096313a96031d1c435',
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: '3d4c6b9422d02e4d40d29d7875e3fc651d2f7bd4',
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: '2b14dee584d20e90dac0da3b93dff1dbc6f36470',
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: 'cd02551d76731563ebdad89a141f70cbce5bca76',
192
+ key: 'c1136aef565b3a35bee7d7c254434b6c06f3cf65',
76
193
  label: this.categoryTitle
77
194
  }))), this.parsedImage && h("div", {
78
- key: '5b5cae3820ab870a7588d801151390be494d5c7e',
195
+ key: '531cb24eafadd52397a138735436e0501b45cf76',
79
196
  class: imageClasses
80
197
  }, h("div", {
81
- key: 'e7bb9f3b090f5497b315a4d2495592cfbe5a4aa0',
198
+ key: 'c692a10bfa0032d4e43fe35090e38dde3e0401f3',
82
199
  class: "aspect-1x1 w-full"
83
200
  }, h("eds-img", Object.assign({
84
- key: '8fdecaed876c671a08067fdb272f4932b67ae406',
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-44b1416b.esm.js';
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: '92103cb449fbdfd41adaeb29053746fb652a5203',
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: '8aebade7b0cfe5ac529ff552113509314ffa4061',
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: '38abb7a59054c6fce836322c26eab77bb508845f',
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: '99158cab0d83e64bf9c45e00c06572efe7328516',
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: 'ce716958892ee4d324efeb2399885c13d63ff0bb'
32
+ key: '37a817a2c1cccb58a7445c399f20ce5fb97653b8'
33
33
  }, h("eds-link", {
34
- key: 'de191023658c2f4c59144d334075d8e1f4fa6133',
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: 'a8cf97bdcd7957b98dfca11e178361acf667c23c',
64
+ key: 'f1bec91df97ff2a54a8ec8284e88f572b3bf0081',
60
65
  class: "grid inline"
61
- }, h("h1", {
62
- key: '231bb9f49dc6084045a392b1d93c9b4454bbf268',
63
- class: "f-heading-01 my-4"
66
+ }, h(HeadingTag, {
67
+ key: '8051043d5ec79a1f972fd732ef8a716487ed51d2',
68
+ class: headingClass
64
69
  }, this.label), h("p", {
65
- key: 'a70274de05139c8ab40b5a4a2e599dc14b3d3a9f',
70
+ key: '55f319e89376372f13c2bb96b9a94ceed6a6565b',
66
71
  class: "f-body-01 text-light"
67
72
  }, this.description), h("eds-rating", {
68
- key: '5353b7616112591240819e4b762790224a1b7cc7',
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: 'e5f8f10fb052a6de080b61cf78c309a55d081576',
77
+ key: 'e3ea621a035ecd6da07803478d202b2326997416',
73
78
  class: "f-ui-04 text-lighter"
74
79
  }, this.parsedMappings[this.selectedRating - 1]));
75
80
  }
@@ -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 )}.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}";
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: '69d47526ffca56defb1e9da214c46822fa963c14',
76
+ key: '61c401d6e021418e3d705cc9a4418b4f54f6bcf1',
77
77
  class: this.articleClasses()
78
78
  }, h("div", {
79
- key: 'cab7cd55b15afaa77a4f4b713c55a6776dcb6a2d',
79
+ key: '3fe7284c2ce4057d6c953c02e03489c0ef75f43d',
80
80
  class: "effect-height flex items-center justify-between py-8 px-12"
81
81
  }, h("span", {
82
- key: '99b5499c4bf992cc7101d6ea6812000283a34968',
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: '275490ec93896eafe8a7042b86769b1f96e8bc8f',
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-44b1416b.esm.js';
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-44b1416b.esm.js';
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: '9ac7ad4f02237c02eaf5d3b351ded21bce29bd6c'
427
+ key: '81735ac374853c8c92b3f50e26263ff9d71b326c'
428
428
  }, this.searchEnabled && h("div", {
429
- key: '1cecf9a9089391c3bce72dd53a6f5ffa92692661'
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: '435bbfd0a4dd3ddd0a7766863cdd8c2eaf41eb8f',
439
+ key: 'eb3eebe6fb124d4e1983b2fb7e636707817d36bd',
440
440
  class: "mt-20"
441
441
  }, h("table", {
442
- key: '4785490532015b7069be068e80135220f37c3955',
442
+ key: '03b312ac20bdec28843a46907a3cc4fba69f62ae',
443
443
  class: "block overflow-x-auto mt-6 p-0"
444
444
  }, h("thead", {
445
- key: '8a99a961cf350bca26b1f73b8ffd6c8e1c48378f'
445
+ key: 'ccab58dc46ae765df28da97ded6b1dd14d45d7f1'
446
446
  }, h("tr", {
447
- key: 'a4ee04e342687830e905a3bd5217e53e513f0167',
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: '3c764ac7137d1b21f45003c6df5324e7d0db749f'
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: '98a1179b45fbc1b2f079825c899410ef4faf8c45',
470
+ key: '2a248cbbe81ac8c1ad4dfbb49a9615f15931bac6',
471
471
  class: "mt-20"
472
472
  }, h("eds-pagination", {
473
- key: '662c479139658ea7f3d2a3955c77e24d44dd6e74',
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 )}.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)}";
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 value between 0 and 100
19
+ this.value = Math.min(100, Math.max(0, newValue)); // Clamp 0100
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: '0f47fedbf9d44887f65b399e184215f0937b1df1',
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: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden"
34
+ class: outerClasses
30
35
  }, h("div", {
31
- key: 'a2d095d778842c969832ea6b1ba7f7ef917d1390',
32
- class: `inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02`,
36
+ key: '06165b69fe7e170f4f61d9f95b5a44342d4ee67a',
37
+ class: fillClasses,
33
38
  style: {
34
39
  width: `${progressValue}%`
35
40
  }
36
- }, progressValue, "%"));
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;
@@ -48,7 +48,7 @@ const EdsRating = class {
48
48
  }
49
49
  render() {
50
50
  return h("div", {
51
- key: 'd1650c37f02bf467f888d0afd0a025198bc0eedc',
51
+ key: '685ac01e4db577b07d00030b0c25e10b9b0defa8',
52
52
  role: "radiogroup",
53
53
  class: "stars flex space-x-1 my-8"
54
54
  }, Array.from({
@@ -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: 'f07162204271dca0f1ec8a3d309ab9d38a9fff4f'
18
+ key: 'ff0b28dffb8aca2ad0ac1ee3eea7ebda75078f96'
19
19
  }, h("eds-section-heading", {
20
- key: 'c4db2a67151fcec22306f624b071725518292e65',
20
+ key: '23e9bb2b084c6b8a534dd310fbe10e0de0211187',
21
21
  headingLevel: this.headingLevel,
22
22
  sectionTitle: this.sectionTitle
23
23
  }), h("slot", {
24
- key: 'e610f4777f1b334e20482862504085f5317a63df'
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: 'efa6dd7e228db2b86961efdff9b5dd9729a1a24b',
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: 'dd50f0fe3baf084c71dc4c8fa745484645a58f76',
63
+ key: '0cd8ea8aada58e30675579c82ba130b40257c7c6',
64
64
  class: this.getHeadingClass()
65
65
  }, this.sectionTitle));
66
66
  }
@@ -50,13 +50,13 @@ const EdsSpinner = class {
50
50
  justifyContent: 'center'
51
51
  };
52
52
  return h(Host, {
53
- key: '77f17386e37b3dae21c2893dab53ef046d74b8fb'
53
+ key: '214876a56949c147e74c1a7072406234c2fb1a02'
54
54
  }, h("div", {
55
- key: 'c9420f866d61331901df7d6d681d09f75e31846c',
55
+ key: 'b75b639fa38aafaf13e1eb727e28c5e67f3edafe',
56
56
  class: "spinner-overlay",
57
57
  style: overlayStyle
58
58
  }, h("span", {
59
- key: '83497de6228b75fad77225a1b6fee9a614d68fe4',
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 };