@ebrains/react 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/color-primary-palette_6.entry.esm.js +106 -106
- package/components-section.entry.esm.js +3 -7
- package/correct-use-of-colors.entry.esm.js +33 -33
- package/docs-palettes.entry.esm.js +1 -1
- package/docs-tokens.entry.esm.js +1 -1
- package/download-47746956.esm.js +18 -0
- package/{eds-accordion_33.entry.esm.js → eds-accordion_34.entry.esm.js} +49 -46
- 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-footer.entry.esm.js +12 -14
- package/eds-frame.entry.esm.js +4 -4
- package/eds-fullscreen-menu.entry.esm.js +8 -3
- package/eds-icon-bluesky.entry.esm.js +1 -1
- package/eds-icon-download.entry.esm.js +21 -0
- package/eds-icon-draft.entry.esm.js +1 -1
- package/eds-icon-edit.entry.esm.js +1 -1
- package/eds-icon-eu.entry.esm.js +1 -1
- package/eds-icon-external.entry.esm.js +1 -1
- package/eds-icon-facebook.entry.esm.js +1 -1
- package/eds-icon-gitlab.entry.esm.js +1 -1
- package/eds-icon-linkedin.entry.esm.js +1 -1
- package/eds-icon-loader.entry.esm.js +1 -1
- package/eds-icon-mastodon.entry.esm.js +1 -1
- package/eds-icon-menu.entry.esm.js +1 -1
- package/eds-icon-minus.entry.esm.js +1 -1
- package/eds-icon-more.entry.esm.js +1 -1
- package/eds-icon-paper.entry.esm.js +1 -1
- package/eds-icon-plus.entry.esm.js +1 -1
- package/eds-icon-portal.entry.esm.js +1 -1
- package/eds-icon-private.entry.esm.js +1 -1
- package/eds-icon-public.entry.esm.js +1 -1
- package/eds-icon-search.entry.esm.js +1 -1
- package/eds-icon-star.entry.esm.js +1 -1
- package/eds-icon-start.entry.esm.js +1 -1
- package/eds-icon-success.entry.esm.js +1 -1
- package/eds-icon-thumbs-down.entry.esm.js +1 -1
- package/eds-icon-thumbs-up.entry.esm.js +1 -1
- package/eds-icon-tutorial.entry.esm.js +1 -1
- package/eds-icon-twitter.entry.esm.js +1 -1
- package/eds-icon-unknown.entry.esm.js +1 -1
- package/eds-icon-updown.entry.esm.js +1 -1
- package/eds-icon-user.entry.esm.js +1 -1
- package/eds-icon-view.entry.esm.js +1 -1
- package/eds-icon-youtube.entry.esm.js +1 -1
- package/eds-modal.entry.esm.js +8 -8
- package/eds-progress-bar.entry.esm.js +4 -4
- package/eds-section-core_2.entry.esm.js +5 -5
- package/eds-social-networks.entry.esm.js +7 -8
- package/eds-spinner.entry.esm.js +4 -4
- package/eds-timeline.entry.esm.js +4 -4
- package/eds-toast-manager.entry.esm.js +1 -1
- package/eds-trl.entry.esm.js +2 -2
- package/incorrect-use-of-colors.entry.esm.js +8 -8
- package/index.esm2.js +6 -6
- 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/svg-repository.entry.esm.js +3 -18
- package/token-list_3.entry.esm.js +5 -5
- package/token-ratios.entry.esm.js +3 -3
- package/token-spacing.entry.esm.js +26 -26
- package/token-typography.entry.esm.js +2 -2
- package/eds-tooltip.entry.esm.js +0 -47
|
@@ -20,6 +20,7 @@ import { s as search } from './search-fbcd79c2.esm.js';
|
|
|
20
20
|
import { l as loader } from './loader-c9628637.esm.js';
|
|
21
21
|
import { s as success } from './success-443809da.esm.js';
|
|
22
22
|
import { c as close } from './close-87fc0d63.esm.js';
|
|
23
|
+
import { d as download } from './download-47746956.esm.js';
|
|
23
24
|
import { m as menu } from './menu-340ea948.esm.js';
|
|
24
25
|
import { m as more } from './more-4449d549.esm.js';
|
|
25
26
|
import { u as user } from './user-71ebdc15.esm.js';
|
|
@@ -178,22 +179,6 @@ const documentation = `<svg
|
|
|
178
179
|
stroke-width="1.5"
|
|
179
180
|
/>
|
|
180
181
|
</svg>`;
|
|
181
|
-
const download = `<svg
|
|
182
|
-
width="20"
|
|
183
|
-
height="20"
|
|
184
|
-
viewBox="0 0 20 20"
|
|
185
|
-
fill="none"
|
|
186
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
187
|
-
>
|
|
188
|
-
<path
|
|
189
|
-
d="M5.91937 8H9V3H11V8H14.0806L10 13.1008L5.91937 8Z"
|
|
190
|
-
fill="currentColor"
|
|
191
|
-
/>
|
|
192
|
-
<path
|
|
193
|
-
d="M5 15V12H3V15C3 16.1046 3.89543 17 5 17H15C16.1046 17 17 16.1046 17 15V12H15V15H5Z"
|
|
194
|
-
fill="currentColor"
|
|
195
|
-
/>
|
|
196
|
-
</svg>`;
|
|
197
182
|
const filter = ` <svg
|
|
198
183
|
width="20"
|
|
199
184
|
height="20"
|
|
@@ -329,10 +314,10 @@ const SvgRepository = class {
|
|
|
329
314
|
}
|
|
330
315
|
};
|
|
331
316
|
return h("div", {
|
|
332
|
-
key: '
|
|
317
|
+
key: '36ab796174ab215a5e8f834f0d6291853305e732',
|
|
333
318
|
class: "full-width"
|
|
334
319
|
}, h("eds-table", {
|
|
335
|
-
key: '
|
|
320
|
+
key: '31fca470f340fa54137887ef426f4f7e1fc72f73',
|
|
336
321
|
"table-data": JSON.stringify(svgData),
|
|
337
322
|
config: JSON.stringify(tableConfig),
|
|
338
323
|
"rows-per-page": 10,
|
|
@@ -296,7 +296,7 @@ const TokenList = class {
|
|
|
296
296
|
[this.show]: colors[this.show]
|
|
297
297
|
} : colors;
|
|
298
298
|
return h("section", {
|
|
299
|
-
key: '
|
|
299
|
+
key: 'c5a0dc7f4e58c77624481262b1a6ac31df5425ee',
|
|
300
300
|
class: "w-full mt-28"
|
|
301
301
|
}, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
302
302
|
// Only render sections that exist in `colors`
|
|
@@ -317,10 +317,10 @@ const TokenRadii = class {
|
|
|
317
317
|
}
|
|
318
318
|
render() {
|
|
319
319
|
return h("section", {
|
|
320
|
-
key: '
|
|
320
|
+
key: 'd0e212f61414068b55b2ce1a3d9c7c2a51743908',
|
|
321
321
|
class: "w-full mt-28"
|
|
322
322
|
}, h("ul", {
|
|
323
|
-
key: '
|
|
323
|
+
key: 'f656822bfc1a95bb4435eec2db9573e4362d1c59',
|
|
324
324
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
325
325
|
}, Object.entries(radii).map(([key, value]) => h("li", {
|
|
326
326
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
@@ -358,10 +358,10 @@ const TokenShadows = class {
|
|
|
358
358
|
}
|
|
359
359
|
render() {
|
|
360
360
|
return h("section", {
|
|
361
|
-
key: '
|
|
361
|
+
key: '2f8e9eef279ee176ba1c72660181a4a36a184985',
|
|
362
362
|
class: "w-full mt-28"
|
|
363
363
|
}, h("ul", {
|
|
364
|
-
key: '
|
|
364
|
+
key: 'a5ddc9f6faab20c73b6dbb08364925d3b221e848',
|
|
365
365
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
366
366
|
}, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => h("li", {
|
|
367
367
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16"
|
|
@@ -17,15 +17,15 @@ const TokenRatios = class {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
return h("section", {
|
|
20
|
-
key: '
|
|
20
|
+
key: '0215729c6c798288f74b3e9a589763c8a71c6fd3',
|
|
21
21
|
class: "w-full"
|
|
22
22
|
}, h("eds-section-core", {
|
|
23
|
-
key: '
|
|
23
|
+
key: '9ac3c1b933b7bb7cc6c8dd9aeface59ba3646750',
|
|
24
24
|
tag: "div",
|
|
25
25
|
"section-title": "Aspect Ratios",
|
|
26
26
|
"heading-level": "h3"
|
|
27
27
|
}, h("ul", {
|
|
28
|
-
key: '
|
|
28
|
+
key: 'd4ae2c487aa2402740dfd1465823fe3d04c19e18',
|
|
29
29
|
class: "gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
30
30
|
}, Object.entries(ratios).map(([key, value]) => h("li", {
|
|
31
31
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
@@ -9,82 +9,82 @@ const TokenSpacing = class {
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
return h("div", {
|
|
12
|
-
key: '
|
|
12
|
+
key: 'e01032fc0640d466fbf25d52c786c2ad09282deb',
|
|
13
13
|
class: "w-full"
|
|
14
14
|
}, h("ul", {
|
|
15
|
-
key: '
|
|
15
|
+
key: '067499a0d422c6759393a729018a0e428ac5bb73',
|
|
16
16
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
17
17
|
}, h("li", {
|
|
18
|
-
key: '
|
|
18
|
+
key: '18811cd88f3627f824c09ed57522b624c905704a',
|
|
19
19
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
20
20
|
}, h("div", {
|
|
21
|
-
key: '
|
|
21
|
+
key: '6f810ada1266d71181c85ae01f6d0f03d74c5d62',
|
|
22
22
|
class: "container p-8 item-center border-2 border-soft"
|
|
23
23
|
}, h("div", {
|
|
24
|
-
key: '
|
|
24
|
+
key: 'be8c8193dd759eb651230904f482bdd29ece17d9',
|
|
25
25
|
class: "spacing-sample m-16 bg-strong"
|
|
26
26
|
}, h("span", {
|
|
27
|
-
key: '
|
|
27
|
+
key: '3275ae8d2dcc26a097fcec9e47e865d122e8a7a0',
|
|
28
28
|
class: "f-body-01 text-inverse"
|
|
29
29
|
}, "Margin: 1rem / m-16")))), h("li", {
|
|
30
|
-
key: '
|
|
30
|
+
key: '1501280856acd0f86ed6d18deb2994e2b938d550',
|
|
31
31
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
32
32
|
}, h("div", {
|
|
33
|
-
key: '
|
|
33
|
+
key: '9c6bd09fb408bf28e1ff7259ee82858657055d53',
|
|
34
34
|
class: "container p-8 item-center border-2 border-soft"
|
|
35
35
|
}, h("div", {
|
|
36
|
-
key: '
|
|
36
|
+
key: '66ce0e318e1ef01c95634678d8dad929261c3559',
|
|
37
37
|
class: "spacing-sample ml-64 bg-strong"
|
|
38
38
|
}, h("span", {
|
|
39
|
-
key: '
|
|
39
|
+
key: '746c47d3d838c4a2afc3e33f97ea92e4152505a4',
|
|
40
40
|
class: "f-body-01 text-inverse"
|
|
41
41
|
}, "Margin Left: 4rem / ml-64")))), h("li", {
|
|
42
|
-
key: '
|
|
42
|
+
key: '1e743a6b9907f8d533b6bb0e47204ca9f2ac1540',
|
|
43
43
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
44
44
|
}, h("div", {
|
|
45
|
-
key: '
|
|
45
|
+
key: '9b127a0fc072a67d2a03af42718407f7c570981c',
|
|
46
46
|
class: "container p-8 item-center border-2 border-soft"
|
|
47
47
|
}, h("div", {
|
|
48
|
-
key: '
|
|
48
|
+
key: '603d387bfc95e7eaaa688d9bed69d17dcdbeb023',
|
|
49
49
|
class: "spacing-sample mt-32 bg-strong"
|
|
50
50
|
}, h("span", {
|
|
51
|
-
key: '
|
|
51
|
+
key: '19105f04e3571991899dcd237a2e88285200fa2a',
|
|
52
52
|
class: "f-body-01 text-inverse"
|
|
53
53
|
}, "Margin Top: 2rem / mt-32")))), h("li", {
|
|
54
|
-
key: '
|
|
54
|
+
key: 'a4bba328ebdb74767c06aed1ddf90251ff53c774',
|
|
55
55
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
56
56
|
}, h("div", {
|
|
57
|
-
key: '
|
|
57
|
+
key: '8c0ddf065902880ea676a0178d8d384696d11d44',
|
|
58
58
|
class: "container p-8 item-center border-2 border-soft"
|
|
59
59
|
}, h("div", {
|
|
60
|
-
key: '
|
|
60
|
+
key: 'c73eb82ac1b447d2441be39f1e07e4864bba2a49',
|
|
61
61
|
class: "spacing-sample p-32 bg-strong"
|
|
62
62
|
}, h("span", {
|
|
63
|
-
key: '
|
|
63
|
+
key: '6c76e373c0827ed4449abfd0fa1b69db2e02ef10',
|
|
64
64
|
class: "f-body-01 text-inverse"
|
|
65
65
|
}, "Padding: 2rem / p-32")))), h("li", {
|
|
66
|
-
key: '
|
|
66
|
+
key: '23699817570e914c03849e8bc5ab3c72b732470c',
|
|
67
67
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
68
68
|
}, h("div", {
|
|
69
|
-
key: '
|
|
69
|
+
key: '253d94e4ddabd622302bbc38a5e866b9a9dc8826',
|
|
70
70
|
class: "container p-8 item-center border-2 border-soft"
|
|
71
71
|
}, h("div", {
|
|
72
|
-
key: '
|
|
72
|
+
key: 'c366056f299a7fd53eb589cedbf8f40aa996d032',
|
|
73
73
|
class: "spacing-sample pt-32 bg-strong"
|
|
74
74
|
}, h("span", {
|
|
75
|
-
key: '
|
|
75
|
+
key: '22b94a1f3f4605af8f11dcd10b03f112ad426798',
|
|
76
76
|
class: "f-body-01 text-inverse"
|
|
77
77
|
}, "Padding Top: 2rem / pt-32")))), h("li", {
|
|
78
|
-
key: '
|
|
78
|
+
key: '18418c7ea84aaaefe187e484774e96d5233946ab',
|
|
79
79
|
class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"
|
|
80
80
|
}, h("div", {
|
|
81
|
-
key: '
|
|
81
|
+
key: '953b9ebfb47560f768bdf606fdc455eae18fa351',
|
|
82
82
|
class: "container p-8 item-center border-2 border-soft"
|
|
83
83
|
}, h("div", {
|
|
84
|
-
key: '
|
|
84
|
+
key: '1ee32fc2918a078e421e0641c84e76c2bf48e839',
|
|
85
85
|
class: "spacing-sample pl-32 bg-strong"
|
|
86
86
|
}, h("span", {
|
|
87
|
-
key: '
|
|
87
|
+
key: '15f50b76c805eb9fc1610d8027cd710f6c8c89b4',
|
|
88
88
|
class: "f-body-01 text-inverse"
|
|
89
89
|
}, "Padding Left: 2rem / pl-32"))))));
|
|
90
90
|
}
|
|
@@ -202,10 +202,10 @@ const TokenTypography = class {
|
|
|
202
202
|
}
|
|
203
203
|
render() {
|
|
204
204
|
return h("section", {
|
|
205
|
-
key: '
|
|
205
|
+
key: 'a50023eb5ce02aebb63994e4319450f3a330617d',
|
|
206
206
|
class: "w-full"
|
|
207
207
|
}, h("ul", {
|
|
208
|
-
key: '
|
|
208
|
+
key: '757a1845f16da440eaa8ba332b39f62ccb69ed89',
|
|
209
209
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
210
210
|
}, Object.entries(typography.typesets).filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
211
211
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => h("li", {
|
package/eds-tooltip.entry.esm.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index.esm2.js';
|
|
2
|
-
import { s as sendAnalytics } from './analytics-d99780e3.esm.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react/jsx-runtime';
|
|
5
|
-
import 'react-dom';
|
|
6
|
-
|
|
7
|
-
const edsTooltipCss = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.top-full{top:100%}.bottom-full{bottom:100%}.right-full{right:100%}.left-full{left:100%}.mr-2{margin-right:0.125rem}.ml-2{margin-left:0.125rem}.mt-2{margin-top:0.125rem}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}.max-w-\\[20rem\\]{max-width:20rem}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.w-full{width:100%}";
|
|
8
|
-
const EdsTooltipStyle0 = edsTooltipCss;
|
|
9
|
-
const EdsTooltip = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
registerInstance(this, hostRef);
|
|
12
|
-
this.content = undefined;
|
|
13
|
-
this.position = 'top';
|
|
14
|
-
}
|
|
15
|
-
/** fire analytics on every hover */
|
|
16
|
-
handleHover() {
|
|
17
|
-
sendAnalytics({
|
|
18
|
-
category: 'ui-component',
|
|
19
|
-
tag: this.el.tagName.toLowerCase(),
|
|
20
|
-
name: this.content.toLowerCase(),
|
|
21
|
-
action: 'hover'
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
26
|
-
return h("div", {
|
|
27
|
-
key: 'ee76b787881bdaef986b73fb2775c900a8c33d05',
|
|
28
|
-
class: "relative w-full inline-block group"
|
|
29
|
-
}, h("slot", {
|
|
30
|
-
key: 'a5f9ade50e829efab02ef28ecff3edeedae9d469'
|
|
31
|
-
}), h("div", {
|
|
32
|
-
key: '31bdc63d6263090578f6600ae32027c2b050b2bf',
|
|
33
|
-
class: `absolute ${positionClass}
|
|
34
|
-
rounded-xs bg-strongest text-inverse
|
|
35
|
-
f-ui-03-light pointer-events-none
|
|
36
|
-
z-10 p-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
37
|
-
group-hover:opacity-100 whitespace-normal break-words`,
|
|
38
|
-
role: "tooltip"
|
|
39
|
-
}, this.content));
|
|
40
|
-
}
|
|
41
|
-
get el() {
|
|
42
|
-
return getElement(this);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
EdsTooltip.style = EdsTooltipStyle0;
|
|
46
|
-
|
|
47
|
-
export { EdsTooltip as eds_tooltip };
|