@ebrains/react 3.0.0 → 3.1.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 +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_52.entry.esm.js → eds-accordion_53.entry.esm.js} +221 -78
- package/eds-app-root.entry.esm.js +4 -4
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-feedback.entry.esm.js +5 -5
- package/eds-frame.entry.esm.js +4 -4
- package/eds-gauge.entry.esm.js +4 -4
- package/eds-gitlab-contributors.entry.esm.js +16 -6
- package/eds-icon-bluesky.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-mastodon.entry.esm.js +1 -1
- package/eds-icon-twitter.entry.esm.js +1 -1
- package/eds-icon-youtube.entry.esm.js +1 -1
- package/eds-input-search.entry.esm.js +96 -0
- package/eds-section-core_2.entry.esm.js +5 -5
- package/eds-timeline.entry.esm.js +4 -4
- package/eds-toast-manager.entry.esm.js +1 -1
- package/eds-trl-badge.entry.esm.js +186 -0
- package/incorrect-use-of-colors.entry.esm.js +8 -8
- package/index.esm.js +1 -1
- package/index.esm2.js +13 -4
- package/logo-space.entry.esm.js +22 -22
- package/logo-variations-horizontal_2.entry.esm.js +20 -20
- 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 +3 -0
- 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
|
@@ -34,18 +34,18 @@ const EdsAppRoot = class {
|
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
36
|
return h("div", {
|
|
37
|
-
key: '
|
|
37
|
+
key: 'c9192fb7e315fa8fe41c9ee512f4573951865208'
|
|
38
38
|
}, h("eds-splash-screen", {
|
|
39
|
-
key: '
|
|
39
|
+
key: 'e3d413597cc370692c593abd4017d97e1c172219',
|
|
40
40
|
inverse: true,
|
|
41
41
|
initPromise: this.combinedInitPromise
|
|
42
42
|
}), h("eds-login", {
|
|
43
|
-
key: '
|
|
43
|
+
key: '2821e64738053db4809663aa918f98c4df358201',
|
|
44
44
|
"keycloak-url": "http://localhost:8080",
|
|
45
45
|
"keycloak-realm": "nigeor-realm",
|
|
46
46
|
"keycloak-client-id": "stencil-app"
|
|
47
47
|
}), h("main", {
|
|
48
|
-
key: '
|
|
48
|
+
key: '4680b74ec0f74b8060b020f726f6696b41b43a9e'
|
|
49
49
|
}, this.isAuthenticated ? h("h1", null, "Welcome, authenticated user!") : h("h1", null, "Please log in.")));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
@@ -29,9 +29,9 @@ const EdsCookiesPreference = class {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
return h("div", {
|
|
32
|
-
key: '
|
|
32
|
+
key: '0a1f75fe95820dd8f994193f86b52b684f5fd240'
|
|
33
33
|
}, h("eds-link", {
|
|
34
|
-
key: '
|
|
34
|
+
key: 'd3b5740fa53b30a39296b23cd95da1ad2d8d730d',
|
|
35
35
|
size: "small",
|
|
36
36
|
intent: this.intent,
|
|
37
37
|
label: this.buttonText,
|
|
@@ -61,20 +61,20 @@ const EdsFeedback = class {
|
|
|
61
61
|
const levelNum = this.headingLevel.replace('h', '');
|
|
62
62
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
63
63
|
return h("div", {
|
|
64
|
-
key: '
|
|
64
|
+
key: '5eddbd664389530e209698e5e435c853c8f50b9f',
|
|
65
65
|
class: "grid inline"
|
|
66
66
|
}, h(HeadingTag, {
|
|
67
|
-
key: '
|
|
67
|
+
key: '22d1d4a44a116f78bbfa66946d8b7a9f95779524',
|
|
68
68
|
class: headingClass
|
|
69
69
|
}, this.label), h("p", {
|
|
70
|
-
key: '
|
|
70
|
+
key: 'd3e5abefa5d0e1e32281b5088251fb9c304b8d2a',
|
|
71
71
|
class: "f-body-01 text-light"
|
|
72
72
|
}, this.description), h("eds-rating", {
|
|
73
|
-
key: '
|
|
73
|
+
key: '65f1e772ac885d20f46e147aedeb55ab2ec871fe',
|
|
74
74
|
"rating-type": this.type,
|
|
75
75
|
"rating-count": this.count
|
|
76
76
|
}), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && h("span", {
|
|
77
|
-
key: '
|
|
77
|
+
key: 'f660ceb9889d560ec1687c6f17bdbbe6a89f90ee',
|
|
78
78
|
class: "f-ui-04 text-lighter"
|
|
79
79
|
}, this.parsedMappings[this.selectedRating - 1]));
|
|
80
80
|
}
|
package/eds-frame.entry.esm.js
CHANGED
|
@@ -73,13 +73,13 @@ const EdsFrame = class {
|
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
75
|
return h("div", {
|
|
76
|
-
key: '
|
|
76
|
+
key: 'ddbc978054f645eb990cde6bdd26647bd01eeb1a',
|
|
77
77
|
class: this.articleClasses()
|
|
78
78
|
}, h("div", {
|
|
79
|
-
key: '
|
|
79
|
+
key: '0a16fbd950742b8a75428b3705deaa03ef785a5b',
|
|
80
80
|
class: "effect-height flex items-center justify-between py-8 px-12"
|
|
81
81
|
}, h("span", {
|
|
82
|
-
key: '
|
|
82
|
+
key: '0c2a84cae101ec1e5352ed7be7b874b6ec45f37d',
|
|
83
83
|
class: "f-ui-02"
|
|
84
84
|
}, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? h("eds-link", {
|
|
85
85
|
label: this.urlLabel,
|
|
@@ -90,7 +90,7 @@ const EdsFrame = class {
|
|
|
90
90
|
disabled: false,
|
|
91
91
|
icon: "arrow-up-right"
|
|
92
92
|
}) : null), h("div", {
|
|
93
|
-
key: '
|
|
93
|
+
key: 'c001f1b33c5136820155b0299e83b6dc49fbbd43',
|
|
94
94
|
class: "border-softer"
|
|
95
95
|
}, this.iframeError ? h("div", {
|
|
96
96
|
class: "container ml-8 mr-8 mt-16"
|
package/eds-gauge.entry.esm.js
CHANGED
|
@@ -50,7 +50,7 @@ const EdsGauge = class {
|
|
|
50
50
|
fontSize: `${fontSize}px`
|
|
51
51
|
};
|
|
52
52
|
return h("div", {
|
|
53
|
-
key: '
|
|
53
|
+
key: '5629f8adbc6f144aad49062883cb85ecf24fc16c',
|
|
54
54
|
role: "progressbar",
|
|
55
55
|
"aria-valuemin": this.valueMin,
|
|
56
56
|
"aria-valuemax": this.valueMax,
|
|
@@ -59,14 +59,14 @@ const EdsGauge = class {
|
|
|
59
59
|
class: "relative inline-block rounded-full overflow-hidden",
|
|
60
60
|
style: containerStyle
|
|
61
61
|
}, h("div", {
|
|
62
|
-
key: '
|
|
62
|
+
key: 'd668b54b0a5f4bf260a2f1153781c59741bd8694',
|
|
63
63
|
class: "absolute bg-inverse rounded-full",
|
|
64
64
|
style: maskStyle
|
|
65
65
|
}), h("div", {
|
|
66
|
-
key: '
|
|
66
|
+
key: 'f08feba97d30ed893a72a7e07e412aa82ea8cd3d',
|
|
67
67
|
class: "absolute inset-0 flex items-center justify-center"
|
|
68
68
|
}, h("span", {
|
|
69
|
-
key: '
|
|
69
|
+
key: '2a8dccde44677d4a4b742cd992144d6cf399ee9b',
|
|
70
70
|
class: "f-body-01 text-default",
|
|
71
71
|
style: textStyle
|
|
72
72
|
}, clamped)));
|
|
@@ -3,7 +3,7 @@ import 'react';
|
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-dom';
|
|
5
5
|
|
|
6
|
-
const edsGitlabContributorsCss = ".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}.flex{display:flex}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.grid{display:grid}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.gap-2{gap:0.5rem;}.gap-4{gap:1rem;}.gap-6{gap:1.5rem;}.p-5{padding:1.25rem;}.p-12{padding:3rem;}.pb-2{padding-bottom:0.25rem;}.pb-4{padding-bottom:1rem;}.mb-6{margin-bottom:1.5rem;}.m-0{margin:0}.mt-auto{margin-top:auto}.w-full{width:100%}.min-w-0{min-width:0}.text-xs{font-size:0.75rem;line-height:1rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.font-semibold{font-weight:600}.whitespace-nowrap{white-space:nowrap}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.no-underline{text-decoration:none}.text-gray-600{color:var(--eds-color-gray-600, #4b5563)}.text-gray-900{color:var(--eds-color-gray-900, #111827)}.border-gray-200{border-color:var(--eds-color-gray-200, #e5e7eb)}.bg-white{background-color:var(--eds-color-white, #ffffff)}.text-primary-600{color:var(--eds-color-primary-600, #2563eb)}.hover\\:text-primary-600:hover{color:var(--eds-color-primary-600, #2563eb)}.border-primary-300{border-color:var(--eds-color-primary-300, #93c5fd)}.hover\\:border-primary-300:hover{border-color:var(--eds-color-primary-300, #93c5fd)}.text-success-600{color:var(--eds-color-success-600, #16a34a)}.text-error-600{color:var(--eds-color-error-600, #dc2626)}.border{border-width:1px}.border-b{border-bottom-width:1px}.rounded-lg{border-radius:var(--eds-radius-lg, 0.5rem);}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-200{transition-duration:200ms}.shadow-md{box-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)}.hover\\:shadow-md:hover{box-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)}.-translate-y-0\\.5{transform:translateY(-0.125rem);}.hover\\:-translate-y-0\\.5:hover{transform:translateY(-0.125rem)}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}@media (min-width: 640px){.sm\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media (min-width: 768px){.md\\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-4{grid-template-columns:repeat(4, minmax(0, 1fr))}.lg\\:grid-cols-5{grid-template-columns:repeat(5, minmax(0, 1fr))}}.contributor-card{will-change:transform, box-shadow, border-color}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.text-default{color:var(--black)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}";
|
|
6
|
+
const edsGitlabContributorsCss = ".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}.flex{display:flex}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.grid{display:grid}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.gap-2{gap:0.5rem;}.gap-4{gap:1rem;}.gap-6{gap:1.5rem;}.p-5{padding:1.25rem;}.p-12{padding:3rem;}.pb-2{padding-bottom:0.25rem;}.pb-4{padding-bottom:1rem;}.mb-6{margin-bottom:1.5rem;}.m-0{margin:0}.mt-auto{margin-top:auto}.w-full{width:100%}.min-w-0{min-width:0}.text-xs{font-size:0.75rem;line-height:1rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.font-semibold{font-weight:600}.whitespace-nowrap{white-space:nowrap}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.no-underline{text-decoration:none}.text-gray-600{color:var(--eds-color-gray-600, #4b5563)}.text-gray-900{color:var(--eds-color-gray-900, #111827)}.border-gray-200{border-color:var(--eds-color-gray-200, #e5e7eb)}.bg-white{background-color:var(--eds-color-white, #ffffff)}.text-primary-600{color:var(--eds-color-primary-600, #2563eb)}.hover\\:text-primary-600:hover{color:var(--eds-color-primary-600, #2563eb)}.border-primary-300{border-color:var(--eds-color-primary-300, #93c5fd)}.hover\\:border-primary-300:hover{border-color:var(--eds-color-primary-300, #93c5fd)}.text-success-600{color:var(--eds-color-success-600, #16a34a)}.text-error-600{color:var(--eds-color-error-600, #dc2626)}.border{border-width:1px}.border-b{border-bottom-width:1px}.rounded-lg{border-radius:var(--eds-radius-lg, 0.5rem);}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-200{transition-duration:200ms}.shadow-md{box-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)}.hover\\:shadow-md:hover{box-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)}.-translate-y-0\\.5{transform:translateY(-0.125rem);}.hover\\:-translate-y-0\\.5:hover{transform:translateY(-0.125rem)}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}@media (min-width: 640px){.sm\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media (min-width: 768px){.md\\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-4{grid-template-columns:repeat(4, minmax(0, 1fr))}.lg\\:grid-cols-5{grid-template-columns:repeat(5, minmax(0, 1fr))}}.contributor-card{will-change:transform, box-shadow, border-color}.loading{position:relative;min-height:8rem;padding:1rem 1.25rem;color:var(--grey-dark, #7A7B7A);font-size:0.9375rem;border:1px solid rgba(0, 0, 0, 0.08);border-radius:0.25rem;background-color:rgba(0, 0, 0, 0.02)}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.text-default{color:var(--black)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}";
|
|
7
7
|
const EdsGitlabContributorsStyle0 = edsGitlabContributorsCss;
|
|
8
8
|
const EdsGitlabContributors = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -217,13 +217,23 @@ const EdsGitlabContributors = class {
|
|
|
217
217
|
}
|
|
218
218
|
render() {
|
|
219
219
|
if (this.loading) {
|
|
220
|
+
// Spinner placeholder mirrors eds-kg-learning-resources exactly —
|
|
221
|
+
// same `.loading` wrapper (position: relative + min-height so the
|
|
222
|
+
// absolutely-positioned spinner anchors inside the box instead of
|
|
223
|
+
// escaping to the page), same eds-spinner props (sm/primary/
|
|
224
|
+
// transparent + message-as-prop), and the same role+aria-live for
|
|
225
|
+
// screen-reader announcement. Keep these two components in sync if
|
|
226
|
+
// the loading affordance ever changes.
|
|
220
227
|
return h("div", {
|
|
221
|
-
class: "
|
|
228
|
+
class: "loading",
|
|
229
|
+
role: "status",
|
|
230
|
+
"aria-live": "polite"
|
|
222
231
|
}, h("eds-spinner", {
|
|
223
|
-
size: "
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
232
|
+
size: "sm",
|
|
233
|
+
variant: "primary",
|
|
234
|
+
background: "transparent",
|
|
235
|
+
message: "Loading contributors..."
|
|
236
|
+
}));
|
|
227
237
|
}
|
|
228
238
|
if (this.error) {
|
|
229
239
|
return h("eds-alert", {
|
package/eds-icon-eu.entry.esm.js
CHANGED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, 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 EdsInputSearch = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.search = createEvent(this, "search", 7);
|
|
11
|
+
/**
|
|
12
|
+
* Keydown event listener to detect Command+K (Mac) or Ctrl+K (Windows/Linux)
|
|
13
|
+
* and focus the input element when triggered.
|
|
14
|
+
*
|
|
15
|
+
* @param e - The keyboard event.
|
|
16
|
+
*/
|
|
17
|
+
this.keydownListener = e => {
|
|
18
|
+
// Check for Command+K (Mac) or Ctrl+K (Windows/Linux)
|
|
19
|
+
if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === 'k') {
|
|
20
|
+
e.preventDefault();
|
|
21
|
+
// Focus the input if it's available and not disabled
|
|
22
|
+
if (this.inputElement && !this.disabled) {
|
|
23
|
+
this.inputElement.focus();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
/*onInput = (e: any) => {
|
|
28
|
+
// eslint-disable-next-line
|
|
29
|
+
console.log('on input:', e);
|
|
30
|
+
};*/
|
|
31
|
+
this.onChange = e => {
|
|
32
|
+
// eslint-disable-next-line
|
|
33
|
+
this.search.emit({
|
|
34
|
+
event: 'change',
|
|
35
|
+
value: e.target.value
|
|
36
|
+
});
|
|
37
|
+
sendAnalytics({
|
|
38
|
+
category: 'ui-component',
|
|
39
|
+
parentContext: null,
|
|
40
|
+
tag: this.el.tagName.toLowerCase(),
|
|
41
|
+
name: e.target.value || '',
|
|
42
|
+
action: 'search'
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
this.name = undefined;
|
|
46
|
+
this.inputId = 'search-main';
|
|
47
|
+
this.placeholder = 'Search...';
|
|
48
|
+
this.value = undefined;
|
|
49
|
+
this.disabled = false;
|
|
50
|
+
this.required = false;
|
|
51
|
+
this.decorate = undefined;
|
|
52
|
+
this.label = 'Search';
|
|
53
|
+
}
|
|
54
|
+
componentDidLoad() {
|
|
55
|
+
// Assign the native input element after the component loads
|
|
56
|
+
this.inputElement = this.el.querySelector('input');
|
|
57
|
+
document.addEventListener('keydown', this.keydownListener);
|
|
58
|
+
}
|
|
59
|
+
disconnectedCallback() {
|
|
60
|
+
// Clean up the event listener when the component is removed
|
|
61
|
+
document.removeEventListener('keydown', this.keydownListener);
|
|
62
|
+
}
|
|
63
|
+
async getInputElement() {
|
|
64
|
+
// Return the native input element
|
|
65
|
+
return this.inputElement;
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
return h("div", {
|
|
69
|
+
key: '52676b3559e14b5153f7d8f0fa6cd12e49354d87',
|
|
70
|
+
class: "relative flex items-center"
|
|
71
|
+
}, h("eds-icon-wrapper", {
|
|
72
|
+
key: '754e8753607c01dab63d156d306f3325547049aa',
|
|
73
|
+
name: "search",
|
|
74
|
+
class: "absolute top-1/2 left-[14px] -translate-y-1/2 text-lightest",
|
|
75
|
+
"aria-hidden": "true"
|
|
76
|
+
}), h("input", {
|
|
77
|
+
key: 'b49d523195711316c0817de67776d379a6c7248b',
|
|
78
|
+
id: this.inputId || this.name,
|
|
79
|
+
name: this.name,
|
|
80
|
+
placeholder: this.placeholder,
|
|
81
|
+
value: this.value || '',
|
|
82
|
+
required: this.required,
|
|
83
|
+
disabled: this.disabled,
|
|
84
|
+
type: "search",
|
|
85
|
+
"aria-label": this.placeholder,
|
|
86
|
+
class: `input pl-36 ${this.decorate}`,
|
|
87
|
+
//onInput={this.onInput}
|
|
88
|
+
onChange: this.onChange
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
91
|
+
get el() {
|
|
92
|
+
return getElement(this);
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export { EdsInputSearch as eds_input_search };
|
|
@@ -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: '635230d1ec9a0dcc945990a6a58dc3508345d984'
|
|
19
19
|
}, h("eds-section-heading", {
|
|
20
|
-
key: '
|
|
20
|
+
key: '0b6b94df22af707cbd6964132f3a5190b4b7e83c',
|
|
21
21
|
headingLevel: this.headingLevel,
|
|
22
22
|
sectionTitle: this.sectionTitle
|
|
23
23
|
}), h("slot", {
|
|
24
|
-
key: '
|
|
24
|
+
key: '8834c29c25249fb5c384fb5d51866eadb93a97d6'
|
|
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: '7275284a1158ab982f1e53117b72738d0a001c97',
|
|
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: 'a3c68baa56a0337348405c88544225ed7c7ff0ed',
|
|
64
64
|
class: this.getHeadingClass()
|
|
65
65
|
}, this.sectionTitle));
|
|
66
66
|
}
|
|
@@ -46,16 +46,16 @@ const EdsTimeline = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
return h("div", {
|
|
49
|
-
key: '
|
|
49
|
+
key: '78b199b18d361ae3223e4f1fe9a2043d61f4271b',
|
|
50
50
|
class: "max-w-sidebar mx-auto px-4 py-8"
|
|
51
51
|
}, h("div", {
|
|
52
|
-
key: '
|
|
52
|
+
key: 'afdfdf7dc573a7f273703a02e38e755a9815bdf7',
|
|
53
53
|
class: "relative"
|
|
54
54
|
}, h("div", {
|
|
55
|
-
key: '
|
|
55
|
+
key: '7affc96f356ee901ca263c7347ae60b84869f28b',
|
|
56
56
|
class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0"
|
|
57
57
|
}), h("div", {
|
|
58
|
-
key: '
|
|
58
|
+
key: '7ba006234bd1365890e75b7f59aa118265ba727c',
|
|
59
59
|
class: "space-y-16"
|
|
60
60
|
}, this.parsedEvents.map((event, index) => h("div", {
|
|
61
61
|
class: "relative flex"
|
|
@@ -0,0 +1,186 @@
|
|
|
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
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Official EBRAINS sphere mark, extracted from
|
|
9
|
+
* packages/assets/EBRAINS_logo_25/new_ebrains_logo_rgb/250901_new_ebrains_logo_rgb_positive.svg
|
|
10
|
+
* (the gradient-filled wave segments only — wordmark dropped).
|
|
11
|
+
*
|
|
12
|
+
* Gradient ids carry a `__UID__` placeholder so each badge instance can
|
|
13
|
+
* namespace them (no <defs> collisions when several badges share a page).
|
|
14
|
+
* Gradient template inheritance uses SVG2 `href` (no xlink namespace needed).
|
|
15
|
+
* Use markDefs() inside the badge <defs> and markGroup() in the body.
|
|
16
|
+
*/
|
|
17
|
+
const MARK_DEFS = `<linearGradient id="__UID__Unbenannter_Verlauf_29" x1="-26.7" y1="64.8" x2="155" y2="-19.9" gradientUnits="userSpaceOnUse"> <stop offset="0" stop-color="#03a98f"/> <stop offset=".1" stop-color="#10a97b"/> <stop offset=".3" stop-color="#23aa5f"/> <stop offset="1" stop-color="#00ff9d"/> </linearGradient><linearGradient id="__UID__Unbenannter_Verlauf_291" x1="38.6" y1="205" x2="220.3" y2="120.2" href="#__UID__Unbenannter_Verlauf_29"/><linearGradient id="__UID__Unbenannter_Verlauf_292" x1="33" y1="193" x2="214.8" y2="108.3" href="#__UID__Unbenannter_Verlauf_29"/><linearGradient id="__UID__Unbenannter_Verlauf_293" x1="-3.5" y1="114.7" x2="178.3" y2="30" href="#__UID__Unbenannter_Verlauf_29"/><linearGradient id="__UID__Unbenannter_Verlauf_294" x1="4.5" y1="131.8" x2="186.2" y2="47.1" href="#__UID__Unbenannter_Verlauf_29"/><linearGradient id="__UID__Unbenannter_Verlauf_295" x1="28.6" y1="183.6" x2="210.4" y2="98.9" href="#__UID__Unbenannter_Verlauf_29"/><linearGradient id="__UID__Unbenannter_Verlauf_296" x1="3.8" y1="130.3" x2="185.5" y2="45.5" href="#__UID__Unbenannter_Verlauf_29"/><linearGradient id="__UID__Unbenannter_Verlauf_297" x1="18" y1="160.6" x2="199.7" y2="75.9" href="#__UID__Unbenannter_Verlauf_29"/>`;
|
|
18
|
+
const MARK_PATHS = `<path fill="url(#__UID__Unbenannter_Verlauf_29)" d="M67.3,19.9c11.2-2.3,22.5-1,32.1,1.5.8.2,1.2-.8.5-1.3-11.6-7.3-20.9-11.4-26.6-13.5l-18.3,4.9c-3.4.9-6.4,2.7-8.9,5.1l-29.6,29.6c-2.5,2.5-4.2,5.5-5.1,8.9l-.7,2.6c1.7-1.5,3.4-3.2,5.2-4.9,12.6-12,29.9-28.4,51.3-32.9Z"/><path fill="url(#__UID__Unbenannter_Verlauf_291)" d="M33.8,172.2l12.3,12.3c2.5,2.5,5.5,4.2,8.9,5.1l40.4,10.8c3.4.9,6.9.9,10.2,0l40.4-10.8c3.4-.9,6.4-2.7,8.9-5.1l2.8-2.8c-80-32.2-119-12.3-123.9-9.5Z"/><path fill="url(#__UID__Unbenannter_Verlauf_292)" d="M97.7,137.4c-25.1.2-51.1.4-78.8,19.8l10.5,10.5h.1c2-1.5,42.4-27.9,132.8,9.1h.2c0,.1,18.6-18.4,18.6-18.4-7.8-2.8-58.6-21-83.1-21h-.3Z"/><path fill="url(#__UID__Unbenannter_Verlauf_293)" d="M137.2,41h0c2.6,2.4,5.3,5,8,7.7,26.3,26.3,43.8,37.2,53.9,41.8l-9.5-35.5c-.9-3.4-2.7-6.4-5.1-8.9l-29.6-29.6c-2.5-2.5-5.5-4.2-8.9-5.1L105.7.7c-3.4-.9-6.9-.9-10.2,0l-12.1,3.2c12.4,5.6,31.5,16.5,53.7,37,0,0,.1.1.2.2Z"/><path fill="url(#__UID__Unbenannter_Verlauf_294)" d="M132.7,86.1c4.9,1.6,26.3,12,26.3,12,1.7.7,7.3,3.3,8.9,4.1.7.3,1.3-.6.8-1.1-1.5-1.4-5.8-5-10.9-8.6,0,0-21.8-15.4-27.2-18.5-7.8-4.3-47.4-26.7-81.3-10C25.8,75.6,8,89.7.6,96c-.8,3.2-.7,6.5.1,9.7l3.4,12.8c7.2-6.7,20.2-17.2,40.4-28.2,35.4-19.2,61.9-12.8,88.2-4.2Z"/><path fill="url(#__UID__Unbenannter_Verlauf_295)" d="M55.9,128c-3.1,1.7-17.5,10.3-17.5,10.3,0,0-4.9,3-.2,1.9,2-.5,7.8-3.1,9.7-3.6,0,0,19.1-7,49.8-5.4.1,0,.2,0,.4,0,27.6,0,84.2,21,86.6,21.9l1.1.5c1.8-2.2,3.2-4.7,3.9-7.5l2.7-10.2c-14.1-5.9-55.1-22.3-81-22.3s-55.3,14.3-55.5,14.4Z"/><path fill="url(#__UID__Unbenannter_Verlauf_296)" d="M131.7,44.5c-2-1.7-4.9-3.9-8.5-6.3-1.8-1.3-3.6-2.3-5.4-3.2-8.1-4.1-29.1-13.1-49.2-9-19.7,4.1-35.5,19.2-48.2,31.3-4.7,4.5-8.7,8.3-12.4,11.1l-4.6,17.2c9.4-7.4,24.4-18,43.2-27.2,36.9-18.1,79.2,5.4,87.3,10.3,12.1,7.3,47.9,34.4,64,46.8l2.6-9.8c.7-2.5.8-5,.5-7.5-10.4-3.8-29.7-14.5-60.2-45-3.1-3.1-6.1-5.9-9.1-8.6Z"/><path fill="url(#__UID__Unbenannter_Verlauf_297)" d="M47.5,95.8c-22.1,12-35.5,23.6-41.5,29.6l5.5,20.7c.3,1.2.8,2.4,1.4,3.5,9.5-9.3,38.6-26.3,39.8-27,1-.6,25.6-15.3,58.7-15.3s67.5,16,82.6,22.4l1.1-4.2c-9.9-6.7-37.4-24.5-64.4-33.5-24.9-8.3-50-14.3-83.2,3.8Z"/>`;
|
|
19
|
+
/** Gradient <defs> for the mark, namespaced with `uid`. */
|
|
20
|
+
function markDefs(uid) {
|
|
21
|
+
return MARK_DEFS.replace(/__UID__/g, uid);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The mark paths wrapped in a positioned, scaled group.
|
|
25
|
+
* The source artwork lives in a ~201×201 canvas; `size` is the rendered px.
|
|
26
|
+
*/
|
|
27
|
+
function markGroup(uid, x, y, size = 16) {
|
|
28
|
+
const s = (size / 201.1).toFixed(4);
|
|
29
|
+
const paths = MARK_PATHS.replace(/__UID__/g, uid);
|
|
30
|
+
return `<g transform="translate(${x},${y}) scale(${s})">${paths}</g>`;
|
|
31
|
+
}
|
|
32
|
+
const edsTrlBadgeCss = ":host{display:inline-block;line-height:0;}.link{display:inline-block;line-height:0;text-decoration:none;color:inherit}.link svg{display:block}";
|
|
33
|
+
const EdsTrlBadgeStyle0 = edsTrlBadgeCss;
|
|
34
|
+
let _uid = 0;
|
|
35
|
+
const EdsTrlBadge = class {
|
|
36
|
+
constructor(hostRef) {
|
|
37
|
+
registerInstance(this, hostRef);
|
|
38
|
+
/** Per-instance suffix so the mark's gradient ids never collide. */
|
|
39
|
+
this.uid = `trl${++_uid}-`;
|
|
40
|
+
this.level = undefined;
|
|
41
|
+
this.assessed = undefined;
|
|
42
|
+
this.methodology = undefined;
|
|
43
|
+
this.theme = 'dark';
|
|
44
|
+
this.variant = 'tone';
|
|
45
|
+
this.size = undefined;
|
|
46
|
+
this.label = 'EBRAINS TRL';
|
|
47
|
+
this.href = undefined;
|
|
48
|
+
}
|
|
49
|
+
esc(s) {
|
|
50
|
+
return String(s).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
51
|
+
}
|
|
52
|
+
/** Maturity tier → value/pip colour (brand palette). */
|
|
53
|
+
levelColor() {
|
|
54
|
+
const n = Number(this.level);
|
|
55
|
+
if (n >= 7) return '#00FF9D';
|
|
56
|
+
if (n >= 4) return '#00C87B';
|
|
57
|
+
return '#7A7B7A';
|
|
58
|
+
}
|
|
59
|
+
/** Readable value text on a coloured segment (black on green, light on grey). */
|
|
60
|
+
valueText() {
|
|
61
|
+
return Number(this.level) >= 4 ? '#07140D' : '#ECECEC';
|
|
62
|
+
}
|
|
63
|
+
fullText() {
|
|
64
|
+
const parts = [`${this.label} ${this.level}`];
|
|
65
|
+
if (this.assessed) parts.push(`assessed ${this.assessed}`);
|
|
66
|
+
if (this.methodology) parts.push(`methodology ${this.methodology}`);
|
|
67
|
+
return parts.join(' · ');
|
|
68
|
+
}
|
|
69
|
+
/** Build the inner markup + intrinsic dimensions for the chosen variant. */
|
|
70
|
+
build() {
|
|
71
|
+
const CW = EdsTrlBadge.CW;
|
|
72
|
+
const uid = this.uid;
|
|
73
|
+
const clip = `${uid}clip`;
|
|
74
|
+
const valColor = this.levelColor();
|
|
75
|
+
const logoSpace = 28; // 8 margin + ~16 mark + 4 gap
|
|
76
|
+
const mono = `font-family="'IBM Plex Mono',monospace"`;
|
|
77
|
+
const lvl = this.esc(String(this.level));
|
|
78
|
+
if (this.variant === 'full') {
|
|
79
|
+
const tail = (this.assessed ? ` · assessed ${this.esc(this.assessed)}` : '') + (this.methodology ? ` · methodology ${this.esc(this.methodology)}` : '');
|
|
80
|
+
const w = Math.ceil(logoSpace + this.fullText().length * CW + 10);
|
|
81
|
+
const inner = `<defs><clipPath id="${clip}"><rect width="${w}" height="24" rx="6"/></clipPath>${markDefs(uid)}</defs>` + `<g clip-path="url(#${clip})"><rect width="${w}" height="24" fill="#07140D"/></g>${markGroup(uid, 8, 4, 16)}` + `<text x="30" y="15.5" ${mono} font-size="11" letter-spacing=".2">` + `<tspan fill="#ECECEC">${this.esc(this.label)} </tspan>` + `<tspan fill="${valColor}" font-weight="600">${lvl}</tspan>` + `<tspan fill="#7A7B7A">${this.esc(tail)}</tspan></text>`;
|
|
82
|
+
return {
|
|
83
|
+
w,
|
|
84
|
+
h: 24,
|
|
85
|
+
inner
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
if (this.variant === 'pill') {
|
|
89
|
+
const txt = `TRL ${this.level}`;
|
|
90
|
+
const w = Math.ceil(logoSpace + txt.length * CW + 14);
|
|
91
|
+
const tx = logoSpace + (w - logoSpace) / 2 - 4;
|
|
92
|
+
const inner = `<defs>${markDefs(uid)}</defs>` + `<rect width="${w}" height="24" rx="12" fill="#07140D"/>${markGroup(uid, 7, 4, 16)}` + `<text x="${tx}" y="16" ${mono} font-size="11" font-weight="500" letter-spacing=".5" text-anchor="middle">` + `<tspan fill="#ECECEC">TRL </tspan><tspan fill="${valColor}" font-weight="600">${lvl}</tspan></text>`;
|
|
93
|
+
return {
|
|
94
|
+
w,
|
|
95
|
+
h: 24,
|
|
96
|
+
inner
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
if (this.variant === 'outline') {
|
|
100
|
+
const dark = this.theme !== 'light';
|
|
101
|
+
const bg = dark ? '#0c1c14' : '#ffffff';
|
|
102
|
+
const stroke = dark ? '#34473d' : '#07140D';
|
|
103
|
+
const labelColor = dark ? '#ECECEC' : '#07140D';
|
|
104
|
+
const sep = dark ? '#5a6b62' : '#9aa39d';
|
|
105
|
+
const value = dark ? valColor : Number(this.level) >= 4 ? '#00966a' : '#7A7B7A';
|
|
106
|
+
const w = Math.ceil(logoSpace + (this.label + ' · ' + this.level).length * CW + 12);
|
|
107
|
+
const inner = `<defs>${markDefs(uid)}</defs>` + `<rect x=".5" y=".5" width="${w - 1}" height="23" rx="6" fill="${bg}" stroke="${stroke}"/>${markGroup(uid, 8, 4, 16)}` + `<text x="30" y="16" ${mono} font-size="11" letter-spacing=".3">` + `<tspan fill="${labelColor}">${this.esc(this.label)} </tspan>` + `<tspan fill="${sep}">· </tspan>` + `<tspan fill="${value}" font-weight="600">${lvl}</tspan></text>`;
|
|
108
|
+
return {
|
|
109
|
+
w,
|
|
110
|
+
h: 24,
|
|
111
|
+
inner
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
if (this.variant === 'scale') {
|
|
115
|
+
const dark = this.theme !== 'light';
|
|
116
|
+
const bg = dark ? '#07140D' : '#ECECEC';
|
|
117
|
+
const labelColor = dark ? '#ECECEC' : '#07140D';
|
|
118
|
+
const emptyPip = dark ? '#2f4339' : '#c4ccc7';
|
|
119
|
+
const sep = dark ? '#5a6b62' : '#9aa39d';
|
|
120
|
+
const n = Math.max(0, Math.min(9, Number(this.level) || 0));
|
|
121
|
+
const pipStart = Math.ceil(30 + this.label.length * CW + 12);
|
|
122
|
+
const pipStep = 9,
|
|
123
|
+
pipW = 6,
|
|
124
|
+
pipH = 8,
|
|
125
|
+
pipY = 9;
|
|
126
|
+
let pips = '';
|
|
127
|
+
for (let i = 0; i < 9; i++) {
|
|
128
|
+
const x = pipStart + i * pipStep;
|
|
129
|
+
pips += `<rect x="${x}" y="${pipY}" width="${pipW}" height="${pipH}" rx="1" fill="${i < n ? valColor : emptyPip}"/>`;
|
|
130
|
+
}
|
|
131
|
+
const valueX = pipStart + 9 * pipStep + 5;
|
|
132
|
+
const w = Math.ceil(valueX + `${this.level}/9`.length * CW + 8);
|
|
133
|
+
const inner = `<defs>${markDefs(uid)}</defs>` + `<rect width="${w}" height="26" rx="6" fill="${bg}"/>${markGroup(uid, 8, 5, 16)}` + `<text x="30" y="17" ${mono} font-size="11" letter-spacing=".3" fill="${labelColor}">${this.esc(this.label)}</text>` + `<g>${pips}</g>` + `<text x="${valueX}" y="17" ${mono} font-size="11" font-weight="500">` + `<tspan fill="${valColor}">${lvl}</tspan><tspan fill="${sep}">/9</tspan></text>`;
|
|
134
|
+
return {
|
|
135
|
+
w,
|
|
136
|
+
h: 26,
|
|
137
|
+
inner
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
// tone (default) — dark or light theme
|
|
141
|
+
const dark = this.theme !== 'light';
|
|
142
|
+
const labelBg = dark ? '#07140D' : '#ECECEC';
|
|
143
|
+
const labelTextColor = dark ? '#ECECEC' : '#07140D';
|
|
144
|
+
const valTextColor = dark ? this.valueText() : '#07140D';
|
|
145
|
+
const labelSegW = Math.ceil(logoSpace + this.label.length * CW + 12);
|
|
146
|
+
const valSegW = Math.ceil(12 + String(this.level).length * CW + 12);
|
|
147
|
+
const w = labelSegW + valSegW;
|
|
148
|
+
const inner = `<defs><clipPath id="${clip}"><rect width="${w}" height="24" rx="6"/></clipPath>${markDefs(uid)}</defs>` + `<g clip-path="url(#${clip})"><rect width="${labelSegW}" height="24" fill="${labelBg}"/>` + `<rect x="${labelSegW}" width="${valSegW}" height="24" fill="${valColor}"/></g>${markGroup(uid, 8, 4, 16)}` + `<text x="${logoSpace + (labelSegW - logoSpace) / 2}" y="16" ${mono} font-size="11" letter-spacing=".4" fill="${labelTextColor}" text-anchor="middle">${this.esc(this.label)}</text>` + `<text x="${labelSegW + valSegW / 2}" y="16" ${mono} font-size="11" font-weight="600" fill="${valTextColor}" text-anchor="middle">${lvl}</text>`;
|
|
149
|
+
return {
|
|
150
|
+
w,
|
|
151
|
+
h: 24,
|
|
152
|
+
inner
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
buildSvg() {
|
|
156
|
+
const {
|
|
157
|
+
w,
|
|
158
|
+
h,
|
|
159
|
+
inner
|
|
160
|
+
} = this.build();
|
|
161
|
+
const aria = this.esc(this.fullText());
|
|
162
|
+
const k = this.size ? this.size / h : 1;
|
|
163
|
+
const outW = Math.round(w * k);
|
|
164
|
+
const outH = Math.round(h * k);
|
|
165
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${outW}" height="${outH}" ` + `viewBox="0 0 ${w} ${h}" role="img" aria-label="${aria}"><title>${aria}</title>${inner}</svg>`;
|
|
166
|
+
}
|
|
167
|
+
render() {
|
|
168
|
+
const svg = this.buildSvg();
|
|
169
|
+
return h(Host, {
|
|
170
|
+
key: 'eddfb49f35ff9771d76eef13a024b840b3a24cca'
|
|
171
|
+
}, this.href ? h("a", {
|
|
172
|
+
class: "link",
|
|
173
|
+
href: this.href,
|
|
174
|
+
"aria-label": this.fullText(),
|
|
175
|
+
innerHTML: svg
|
|
176
|
+
}) : h("span", {
|
|
177
|
+
class: "link",
|
|
178
|
+
innerHTML: svg
|
|
179
|
+
}));
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
// IBM Plex Mono advance width at 11px (used to size segments to the text).
|
|
183
|
+
EdsTrlBadge.CW = 6.8;
|
|
184
|
+
EdsTrlBadge.style = EdsTrlBadgeStyle0;
|
|
185
|
+
|
|
186
|
+
export { EdsTrlBadge as eds_trl_badge };
|
|
@@ -29,23 +29,23 @@ const IncorrectUseOfColors = class {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
return h("div", {
|
|
32
|
-
key: '
|
|
32
|
+
key: '2688817c691de1f39d1c25845642e99af13e1b00',
|
|
33
33
|
class: "container"
|
|
34
34
|
}, h("div", {
|
|
35
|
-
key: '
|
|
35
|
+
key: '823b5f324f9b7fe4143dd982e71f535b9c576dd6',
|
|
36
36
|
class: "mb-8"
|
|
37
37
|
}, h("eds-alert", {
|
|
38
|
-
key: '
|
|
38
|
+
key: '95cf4b07317e116636979fb2d72b4fe925b09fa2',
|
|
39
39
|
message: "Note that, each of the four colour tones cannot be mixed in the same composition.",
|
|
40
40
|
intent: "error"
|
|
41
41
|
})), h("div", {
|
|
42
|
-
key: '
|
|
42
|
+
key: 'd4bfceeb122dddf376808ae187379c07ed0e1a06',
|
|
43
43
|
class: "flex"
|
|
44
44
|
}, h("div", {
|
|
45
|
-
key: '
|
|
45
|
+
key: '82eac813cc9b29424640fb2517992e3384d19a6e',
|
|
46
46
|
class: "w-full"
|
|
47
47
|
}, h("ul", {
|
|
48
|
-
key: '
|
|
48
|
+
key: 'da2ca77bd91a25c6a451910a6b3bf939e5e8abc9',
|
|
49
49
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
50
50
|
}, primary.map(color => h("li", {
|
|
51
51
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
@@ -55,10 +55,10 @@ const IncorrectUseOfColors = class {
|
|
|
55
55
|
backgroundColor: color.background
|
|
56
56
|
}
|
|
57
57
|
}))))), h("div", {
|
|
58
|
-
key: '
|
|
58
|
+
key: '538560ac8db9f9d023a5afbf4cd67dff80f6e7b6',
|
|
59
59
|
class: "w-full"
|
|
60
60
|
}, h("ul", {
|
|
61
|
-
key: '
|
|
61
|
+
key: '4b601f722730fbe1cbb78c1185d79b34654d3f76',
|
|
62
62
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
63
63
|
}, incorrect.map(color => h("li", {
|
|
64
64
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|