@ebrains/react 0.6.0-alpha.0 → 0.8.0-alpha.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/correct-use-of-colors.entry.esm.js +33 -33
- package/eds-accordion_17.entry.esm.js +196 -0
- package/eds-alert.entry.esm.js +14 -6
- package/eds-app-root.entry.esm.js +53 -0
- package/eds-breadcrumb.entry.esm.js +8 -16
- package/eds-card-desc_3.entry.esm.js +125 -0
- package/eds-card-generic.entry.esm.js +114 -0
- package/eds-card-project.entry.esm.js +10 -10
- package/eds-card-section.entry.esm.js +56 -0
- package/eds-card-tags.entry.esm.js +1 -1
- package/eds-card-tool.entry.esm.js +4 -4
- package/eds-card-wrapper.entry.esm.js +4 -4
- package/eds-code-block.entry.esm.js +7 -7
- package/eds-components-section.entry.esm.js +27 -24
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-docs-palettes.entry.esm.js +1 -1
- package/eds-docs-tokens.entry.esm.js +1 -1
- package/eds-feedback.entry.esm.js +82 -0
- package/eds-form.entry.esm.js +339 -276
- package/eds-frame.entry.esm.js +34 -33
- package/eds-icon-arrow-diagonal.entry.esm.js +3 -3
- package/eds-icon-arrow-right.entry.esm.js +1 -1
- package/eds-icon-bluesky.entry.esm.js +1 -1
- package/eds-icon-chevron-down.entry.esm.js +1 -1
- package/eds-icon-chevron-left.entry.esm.js +1 -1
- package/eds-icon-chevron-right.entry.esm.js +1 -1
- package/eds-icon-chevron-up.entry.esm.js +1 -1
- package/eds-icon-close.entry.esm.js +1 -1
- package/eds-icon-copy.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-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-more.entry.esm.js +1 -1
- package/eds-icon-search.entry.esm.js +1 -1
- package/eds-icon-star.entry.esm.js +21 -0
- package/eds-icon-success.entry.esm.js +1 -1
- package/eds-icon-thumbs-down.entry.esm.js +21 -0
- package/eds-icon-thumbs-up.entry.esm.js +21 -0
- package/eds-icon-twitter.entry.esm.js +1 -1
- package/eds-icon-user.entry.esm.js +1 -1
- package/eds-icon-youtube.entry.esm.js +1 -1
- package/eds-input_7.entry.esm.js +77 -37
- package/{keycloak-d502ec16.esm.js → eds-login_2.entry.esm.js} +172 -1
- package/eds-logo-variations.entry.esm.js +1 -1
- package/eds-modal.entry.esm.js +22 -9
- package/eds-pagination_2.entry.esm.js +49 -28
- package/eds-progress-bar.entry.esm.js +2 -2
- package/eds-rating.entry.esm.js +37 -37
- package/eds-section-core_2.entry.esm.js +6 -6
- package/eds-spinner.entry.esm.js +67 -0
- package/eds-svg-repository.entry.esm.js +18 -7
- package/eds-switch.entry.esm.js +5 -5
- package/eds-tabs.entry.esm.js +14 -26
- package/eds-timeline.entry.esm.js +9 -23
- package/eds-toast-manager.entry.esm.js +62 -0
- package/eds-toast.entry.esm.js +92 -0
- package/eds-tooltip.entry.esm.js +3 -3
- package/eds-trl.entry.esm.js +3 -3
- package/incorrect-use-of-colors.entry.esm.js +7 -7
- package/index.esm.js +1 -1
- package/index.esm2.js +47 -55
- package/logo-space.entry.esm.js +4 -4
- package/logo-variations-horizontal_2.entry.esm.js +26 -26
- package/logo-wrong-usage.entry.esm.js +37 -37
- package/package.json +1 -1
- package/sharedUtils-a550989c.esm.js +17 -0
- package/src/components.d.ts +4 -3
- package/star-0da9b5e9.esm.js +5 -0
- package/thumbs-down-a18fd049.esm.js +5 -0
- package/thumbs-up-c19a71bc.esm.js +6 -0
- 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/README.md +0 -7
- package/eds-accordion_13.entry.esm.js +0 -1064
- package/eds-block-break.entry.esm.js +0 -22
- package/eds-dropdown_2.entry.esm.js +0 -235
- package/eds-footer.entry.esm.js +0 -102
- package/eds-fullscreen-menu.entry.esm.js +0 -143
- package/eds-header.entry.esm.js +0 -130
- package/eds-link.entry.esm.js +0 -204
- package/eds-login.entry.esm.js +0 -97
- package/eds-logo.entry.esm.js +0 -87
- package/eds-navigator.entry.esm.js +0 -72
- package/eds-social-networks.entry.esm.js +0 -74
- package/eds-steps.entry.esm.js +0 -98
- package/eds-tab.entry.esm.js +0 -41
- package/eds-tabs-content.entry.esm.js +0 -145
- package/eds-user.entry.esm.js +0 -118
- package/eds-vertical-stepper.entry.esm.js +0 -81
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index.esm2.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
|
|
6
|
+
const edsSpinnerCss = ":host{display:block}.spinner{box-sizing:border-box;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}";
|
|
7
|
+
const EdsSpinnerStyle0 = edsSpinnerCss;
|
|
8
|
+
const EdsSpinner = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.size = '1rem';
|
|
12
|
+
this.thickness = '10px';
|
|
13
|
+
this.borderColor = 'var(--grey-400)';
|
|
14
|
+
this.bottomColor = 'var(--grey-900)';
|
|
15
|
+
this.background = 'var(--grey-200)';
|
|
16
|
+
this.fullscreen = false;
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
const spinnerStyle = Object.assign({
|
|
20
|
+
width: this.size,
|
|
21
|
+
height: this.size,
|
|
22
|
+
border: `${this.thickness} solid ${this.borderColor}`,
|
|
23
|
+
borderBottomColor: this.bottomColor
|
|
24
|
+
}, !this.fullscreen && {
|
|
25
|
+
display: 'inline-block'
|
|
26
|
+
});
|
|
27
|
+
// Overlay style: use fixed positioning for fullscreen,
|
|
28
|
+
// and absolute positioning for inline mode.
|
|
29
|
+
const overlayStyle = this.fullscreen ? {
|
|
30
|
+
position: 'fixed',
|
|
31
|
+
top: '0',
|
|
32
|
+
left: '0',
|
|
33
|
+
width: '100vw',
|
|
34
|
+
height: '100vh',
|
|
35
|
+
zIndex: '9999999',
|
|
36
|
+
backgroundColor: this.background,
|
|
37
|
+
display: 'flex',
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
justifyContent: 'center'
|
|
40
|
+
} : {
|
|
41
|
+
position: 'absolute',
|
|
42
|
+
top: '0',
|
|
43
|
+
left: '0',
|
|
44
|
+
width: '100%',
|
|
45
|
+
height: '100%',
|
|
46
|
+
zIndex: '1000',
|
|
47
|
+
backgroundColor: this.background,
|
|
48
|
+
display: 'flex',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
justifyContent: 'center'
|
|
51
|
+
};
|
|
52
|
+
return h(Host, {
|
|
53
|
+
key: '49a825afb039ee46b26609eea60109e0a060c104'
|
|
54
|
+
}, h("div", {
|
|
55
|
+
key: '6445a4e7f1e7c553bdee660c42f1db0e011443f2',
|
|
56
|
+
class: "spinner-overlay",
|
|
57
|
+
style: overlayStyle
|
|
58
|
+
}, h("span", {
|
|
59
|
+
key: '07feeb7736e6d306e2b7baf5d253b2ce96bb2c9e',
|
|
60
|
+
class: "spinner",
|
|
61
|
+
style: spinnerStyle
|
|
62
|
+
})));
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
EdsSpinner.style = EdsSpinnerStyle0;
|
|
66
|
+
|
|
67
|
+
export { EdsSpinner as eds_spinner };
|
|
@@ -24,6 +24,9 @@ import { m as menu } from './menu-340ea948.esm.js';
|
|
|
24
24
|
import { m as more } from './more-4449d549.esm.js';
|
|
25
25
|
import { u as user } from './user-71ebdc15.esm.js';
|
|
26
26
|
import { c as copy } from './copy-03b72cb6.esm.js';
|
|
27
|
+
import { t as thumbsUp } from './thumbs-up-c19a71bc.esm.js';
|
|
28
|
+
import { t as thumbsDown } from './thumbs-down-a18fd049.esm.js';
|
|
29
|
+
import { s as star } from './star-0da9b5e9.esm.js';
|
|
27
30
|
import 'react';
|
|
28
31
|
import 'react/jsx-runtime';
|
|
29
32
|
import 'react-dom';
|
|
@@ -277,8 +280,13 @@ const svgs = /*#__PURE__*/Object.freeze({
|
|
|
277
280
|
search: search,
|
|
278
281
|
success: success,
|
|
279
282
|
warning: warning,
|
|
280
|
-
unknown: unknown
|
|
283
|
+
unknown: unknown,
|
|
284
|
+
thumbsUp: thumbsUp,
|
|
285
|
+
thumbsDown: thumbsDown,
|
|
286
|
+
star: star
|
|
281
287
|
});
|
|
288
|
+
const edsSvgRepositoryCss = ":host,.full-width{display:block;width:100%}";
|
|
289
|
+
const EdsSvgRepositoryStyle0 = edsSvgRepositoryCss;
|
|
282
290
|
const EdsSvgRepository = class {
|
|
283
291
|
constructor(hostRef) {
|
|
284
292
|
registerInstance(this, hostRef);
|
|
@@ -307,19 +315,22 @@ const EdsSvgRepository = class {
|
|
|
307
315
|
format: 'bold'
|
|
308
316
|
}
|
|
309
317
|
};
|
|
310
|
-
return h("
|
|
311
|
-
key: '
|
|
312
|
-
|
|
318
|
+
return h("div", {
|
|
319
|
+
key: '8b10e6b478c9a2354f4cf418dacb33d5629585ac',
|
|
320
|
+
class: "full-width"
|
|
321
|
+
}, h("eds-table", {
|
|
322
|
+
key: '04ea0a3bc8d72f42225290210aa0bda441e14b95',
|
|
323
|
+
"table-data": JSON.stringify(svgData),
|
|
313
324
|
config: JSON.stringify(tableConfig),
|
|
314
325
|
"rows-per-page": 10,
|
|
315
326
|
"search-enabled": true,
|
|
316
|
-
"pagination-enabled": true
|
|
317
|
-
|
|
318
|
-
});
|
|
327
|
+
"pagination-enabled": true
|
|
328
|
+
}));
|
|
319
329
|
}
|
|
320
330
|
get hostEl() {
|
|
321
331
|
return getElement(this);
|
|
322
332
|
}
|
|
323
333
|
};
|
|
334
|
+
EdsSvgRepository.style = EdsSvgRepositoryStyle0;
|
|
324
335
|
|
|
325
336
|
export { EdsSvgRepository as eds_svg_repository };
|
package/eds-switch.entry.esm.js
CHANGED
|
@@ -25,13 +25,13 @@ const EdsSwitch = class {
|
|
|
25
25
|
// Compute an accessible name based on state.
|
|
26
26
|
const accessibleLabel = this.labelOn || this.labelOff ? this.checked ? this.labelOn : this.labelOff : 'Toggle switch';
|
|
27
27
|
return h("div", {
|
|
28
|
-
key: '
|
|
28
|
+
key: 'd9e216919a58d90017b6fec249e7fc811c4fb681',
|
|
29
29
|
class: "switch-container"
|
|
30
30
|
}, this.labelOff && h("span", {
|
|
31
|
-
key: '
|
|
31
|
+
key: '161bca12a4c6eebf4240ea0bdd07fd1acba35228',
|
|
32
32
|
class: "switch-label switch-label--off"
|
|
33
33
|
}, this.labelOff), h("button", {
|
|
34
|
-
key: '
|
|
34
|
+
key: '855477e89765d01d5a52f3d9db279a1e5c56ea9d',
|
|
35
35
|
type: "button",
|
|
36
36
|
role: "switch",
|
|
37
37
|
"aria-checked": this.checked ? 'true' : 'false',
|
|
@@ -45,10 +45,10 @@ const EdsSwitch = class {
|
|
|
45
45
|
onClick: this.toggleSwitch,
|
|
46
46
|
disabled: this.disabled
|
|
47
47
|
}, h("span", {
|
|
48
|
-
key: '
|
|
48
|
+
key: '4486e5f54ee75b95fd174291e1f5d67e181f3243',
|
|
49
49
|
class: "switch-handle"
|
|
50
50
|
})), this.labelOn && h("span", {
|
|
51
|
-
key: '
|
|
51
|
+
key: '702e5385f6e941dcb67eecdd766725c4b04b8b7c',
|
|
52
52
|
class: "switch-label switch-label--on"
|
|
53
53
|
}, this.labelOn));
|
|
54
54
|
}
|