@ebrains/react 0.9.0-beta → 0.9.2-beta
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/.babelrc +12 -0
- package/LICENSE +21 -0
- package/README.md +5 -1
- package/package.json +2 -6
- package/project.json +10 -0
- package/rollup.config.js +43 -0
- package/src/components.ts +49 -0
- package/src/generated/components.ts +47 -0
- package/src/generated/react-component-lib/attachProps.ts +125 -0
- package/src/generated/react-component-lib/case.ts +7 -0
- package/src/generated/react-component-lib/createComponent.tsx +106 -0
- package/src/generated/react-component-lib/createOverlayComponent.tsx +142 -0
- package/src/generated/react-component-lib/dev.ts +14 -0
- package/src/generated/react-component-lib/index.tsx +50 -0
- package/src/generated/react-component-lib/interfaces.ts +34 -0
- package/src/generated/react-component-lib/utils/attachProps.ts +125 -0
- package/src/generated/react-component-lib/utils/case.ts +7 -0
- package/src/generated/react-component-lib/utils/dev.ts +14 -0
- package/src/generated/react-component-lib/utils/index.tsx +50 -0
- package/src/react-component-lib/attachProps.ts +125 -0
- package/src/react-component-lib/case.ts +7 -0
- package/src/react-component-lib/createComponent.tsx +106 -0
- package/src/react-component-lib/createOverlayComponent.tsx +142 -0
- package/src/react-component-lib/dev.ts +14 -0
- package/src/react-component-lib/index.tsx +50 -0
- package/src/react-component-lib/interfaces.ts +34 -0
- package/src/react-component-lib/utils/attachProps.ts +125 -0
- package/src/react-component-lib/utils/case.ts +7 -0
- package/src/react-component-lib/utils/index.tsx +50 -0
- package/tsconfig.json +17 -0
- package/tsconfig.lib.json +23 -0
- package/analytics-44b1416b.esm.js +0 -55
- package/arrow-diagonal-black-8f0494c3.esm.js +0 -3
- package/arrow-right-9322ba8a.esm.js +0 -5
- package/bluesky-cc5edd2d.esm.js +0 -14
- package/bookmark-c200037c.esm.js +0 -16
- package/chevron-down-6144c823.esm.js +0 -12
- package/chevron-left-ca6c66e1.esm.js +0 -11
- package/chevron-right-b88ed2d4.esm.js +0 -5
- package/chevron-up-c66bd477.esm.js +0 -12
- package/close-87fc0d63.esm.js +0 -5
- package/color-2554aad6.esm.js +0 -122
- package/color-primary-palette_6.entry.esm.js +0 -778
- package/components-section.entry.esm.js +0 -165
- package/copy-03b72cb6.esm.js +0 -5
- package/correct-use-of-colors.entry.esm.js +0 -243
- package/docs-palettes.entry.esm.js +0 -29
- package/docs-tokens.entry.esm.js +0 -45
- package/eds-accordion.entry.esm.js +0 -132
- package/eds-alert.entry.esm.js +0 -112
- package/eds-app-root.entry.esm.js +0 -53
- package/eds-avatar_24.entry.esm.js +0 -275
- package/eds-breadcrumb.entry.esm.js +0 -174
- package/eds-card-desc_3.entry.esm.js +0 -125
- package/eds-card-generic.entry.esm.js +0 -114
- package/eds-card-project.entry.esm.js +0 -93
- package/eds-card-section.entry.esm.js +0 -56
- package/eds-card-tags.entry.esm.js +0 -27
- package/eds-card-tool.entry.esm.js +0 -105
- package/eds-card-wrapper.entry.esm.js +0 -39
- package/eds-code-block.entry.esm.js +0 -2290
- package/eds-cookies-preference.entry.esm.js +0 -47
- package/eds-feedback.entry.esm.js +0 -82
- package/eds-frame.entry.esm.js +0 -112
- package/eds-icon-arrow-diagonal.entry.esm.js +0 -21
- package/eds-icon-arrow-right.entry.esm.js +0 -21
- package/eds-icon-bluesky.entry.esm.js +0 -21
- package/eds-icon-bookmark.entry.esm.js +0 -21
- package/eds-icon-chevron-down.entry.esm.js +0 -21
- package/eds-icon-chevron-left.entry.esm.js +0 -21
- package/eds-icon-chevron-right.entry.esm.js +0 -21
- package/eds-icon-chevron-up.entry.esm.js +0 -21
- package/eds-icon-close.entry.esm.js +0 -21
- package/eds-icon-copy.entry.esm.js +0 -21
- package/eds-icon-eu.entry.esm.js +0 -21
- package/eds-icon-external.entry.esm.js +0 -21
- package/eds-icon-facebook.entry.esm.js +0 -21
- package/eds-icon-gitlab.entry.esm.js +0 -21
- package/eds-icon-linkedin.entry.esm.js +0 -21
- package/eds-icon-loader.entry.esm.js +0 -21
- package/eds-icon-mastodon.entry.esm.js +0 -21
- package/eds-icon-menu.entry.esm.js +0 -21
- package/eds-icon-minus.entry.esm.js +0 -21
- package/eds-icon-more.entry.esm.js +0 -21
- package/eds-icon-paper.entry.esm.js +0 -21
- package/eds-icon-plus.entry.esm.js +0 -21
- package/eds-icon-portal.entry.esm.js +0 -21
- package/eds-icon-private.entry.esm.js +0 -21
- package/eds-icon-public.entry.esm.js +0 -21
- package/eds-icon-search.entry.esm.js +0 -21
- package/eds-icon-star.entry.esm.js +0 -21
- package/eds-icon-success.entry.esm.js +0 -21
- package/eds-icon-thumbs-down.entry.esm.js +0 -21
- package/eds-icon-thumbs-up.entry.esm.js +0 -21
- package/eds-icon-tutorial.entry.esm.js +0 -21
- package/eds-icon-twitter.entry.esm.js +0 -21
- package/eds-icon-unknown.entry.esm.js +0 -21
- package/eds-icon-updown.entry.esm.js +0 -21
- package/eds-icon-user.entry.esm.js +0 -21
- package/eds-icon-youtube.entry.esm.js +0 -21
- package/eds-login_2.entry.esm.js +0 -1828
- package/eds-matomo-notice.entry.esm.js +0 -162
- package/eds-modal.entry.esm.js +0 -142
- package/eds-pagination_2.entry.esm.js +0 -493
- package/eds-progress-bar.entry.esm.js +0 -41
- package/eds-rating.entry.esm.js +0 -79
- package/eds-section-core_2.entry.esm.js +0 -69
- package/eds-spinner.entry.esm.js +0 -67
- package/eds-switch.entry.esm.js +0 -58
- package/eds-tabs.entry.esm.js +0 -143
- package/eds-timeline.entry.esm.js +0 -117
- package/eds-toast-manager.entry.esm.js +0 -62
- package/eds-toast.entry.esm.js +0 -92
- package/eds-tooltip.entry.esm.js +0 -125
- package/eds-trl.entry.esm.js +0 -68
- package/eu-9ddde93a.esm.js +0 -30
- package/facebook-9cb5c17f.esm.js +0 -14
- package/incorrect-use-of-colors.entry.esm.js +0 -71
- package/index-39c58238.esm.js +0 -58
- package/index.esm.d.ts +0 -1
- package/index.esm.js +0 -4
- package/index.esm2.js +0 -4840
- package/linkedin-e8650abb.esm.js +0 -28
- package/loader-c9628637.esm.js +0 -30
- package/logo-color-7f1fd803.esm.js +0 -115
- package/logo-color-margins-ff8ce71b.esm.js +0 -118
- package/logo-space.entry.esm.js +0 -48
- package/logo-variations-horizontal_2.entry.esm.js +0 -123
- package/logo-variations-tabs.entry.esm.js +0 -29
- package/logo-white-no-bg-f382f86f.esm.js +0 -1021
- package/logo-wrong-usage.entry.esm.js +0 -101
- package/mastodon-3703ec61.esm.js +0 -14
- package/menu-340ea948.esm.js +0 -11
- package/minus-b30a7c71.esm.js +0 -11
- package/mono-53f70232.esm.js +0 -11
- package/more-4449d549.esm.js +0 -13
- package/paper-8e74ea31.esm.js +0 -15
- package/plus-89c07be2.esm.js +0 -12
- package/portal-d6c8ce56.esm.js +0 -18
- package/private-1c25ff8e.esm.js +0 -25
- package/public-d4d8c585.esm.js +0 -16
- package/search-fbcd79c2.esm.js +0 -12
- package/sharedUtils-a550989c.esm.js +0 -17
- package/src/components.d.ts +0 -41
- package/src/generated/components.d.ts +0 -38
- package/src/generated/react-component-lib/attachProps.d.ts +0 -16
- package/src/generated/react-component-lib/case.d.ts +0 -2
- package/src/generated/react-component-lib/createComponent.d.ts +0 -10
- package/src/generated/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/src/generated/react-component-lib/dev.d.ts +0 -2
- package/src/generated/react-component-lib/interfaces.d.ts +0 -29
- package/src/generated/react-component-lib/utils/attachProps.d.ts +0 -16
- package/src/generated/react-component-lib/utils/case.d.ts +0 -2
- package/src/generated/react-component-lib/utils/dev.d.ts +0 -2
- package/src/generated/react-component-lib/utils/index.d.ts +0 -10
- package/src/react-component-lib/attachProps.d.ts +0 -16
- package/src/react-component-lib/case.d.ts +0 -2
- package/src/react-component-lib/createComponent.d.ts +0 -10
- package/src/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/src/react-component-lib/dev.d.ts +0 -2
- package/src/react-component-lib/interfaces.d.ts +0 -29
- package/src/react-component-lib/utils/attachProps.d.ts +0 -16
- package/src/react-component-lib/utils/case.d.ts +0 -2
- package/src/react-component-lib/utils/index.d.ts +0 -10
- package/star-0da9b5e9.esm.js +0 -5
- package/success-443809da.esm.js +0 -18
- package/svg-repository.entry.esm.js +0 -337
- package/thumbs-down-a18fd049.esm.js +0 -5
- package/thumbs-up-c19a71bc.esm.js +0 -6
- package/toastManager-d9eee791.esm.js +0 -34
- package/token-list_3.entry.esm.js +0 -385
- package/token-ratios.entry.esm.js +0 -49
- package/token-typography.entry.esm.js +0 -267
- package/tutotial-150ee1fd.esm.js +0 -27
- package/twitter-ac21b505.esm.js +0 -14
- package/unknown-ed01a24c.esm.js +0 -22
- package/up-and-down-d747abee.esm.js +0 -12
- package/user-71ebdc15.esm.js +0 -16
- package/youtube-efbfbdc4.esm.js +0 -14
- /package/src/generated/react-component-lib/{index.d.ts → index.ts} +0 -0
- /package/src/{index.d.ts → index.ts} +0 -0
- /package/src/react-component-lib/{index.d.ts → index.ts} +0 -0
package/eds-spinner.entry.esm.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
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: '1e1e4ea2734fff8a680e55ca5163e69d2000a55d'
|
|
54
|
-
}, h("div", {
|
|
55
|
-
key: 'acf09f69d43404f317240c0d24e644ec0d046cd7',
|
|
56
|
-
class: "spinner-overlay",
|
|
57
|
-
style: overlayStyle
|
|
58
|
-
}, h("span", {
|
|
59
|
-
key: '3728629fdff738a0b753cd499dc26052b1e3cb7b',
|
|
60
|
-
class: "spinner",
|
|
61
|
-
style: spinnerStyle
|
|
62
|
-
})));
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
EdsSpinner.style = EdsSpinnerStyle0;
|
|
66
|
-
|
|
67
|
-
export { EdsSpinner as eds_spinner };
|
package/eds-switch.entry.esm.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index.esm2.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
import 'react-dom';
|
|
5
|
-
|
|
6
|
-
const edsSwitchCss = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-size:14px;margin:0 8px}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}";
|
|
7
|
-
const EdsSwitchStyle0 = edsSwitchCss;
|
|
8
|
-
const EdsSwitch = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.change = createEvent(this, "change", 7);
|
|
12
|
-
this.toggleSwitch = () => {
|
|
13
|
-
if (this.disabled) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
this.checked = !this.checked;
|
|
17
|
-
this.change.emit(this.checked);
|
|
18
|
-
};
|
|
19
|
-
this.checked = false;
|
|
20
|
-
this.disabled = false;
|
|
21
|
-
this.labelOn = '';
|
|
22
|
-
this.labelOff = '';
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
// Compute an accessible name based on state.
|
|
26
|
-
const accessibleLabel = this.labelOn || this.labelOff ? this.checked ? this.labelOn : this.labelOff : 'Toggle switch';
|
|
27
|
-
return h("div", {
|
|
28
|
-
key: '842d7ecb771ab848481c9f1f6a1aa2f5f04505a7',
|
|
29
|
-
class: "switch-container"
|
|
30
|
-
}, this.labelOff && h("span", {
|
|
31
|
-
key: 'f20f4293896dcbde94346e82d10ed748bdeae0f6',
|
|
32
|
-
class: "switch-label switch-label--off"
|
|
33
|
-
}, this.labelOff), h("button", {
|
|
34
|
-
key: 'ac485fe118bae7f6a42ddb9f7edeccba2224312c',
|
|
35
|
-
type: "button",
|
|
36
|
-
role: "switch",
|
|
37
|
-
"aria-checked": this.checked ? 'true' : 'false',
|
|
38
|
-
"aria-disabled": this.disabled ? 'true' : 'false',
|
|
39
|
-
"aria-label": accessibleLabel,
|
|
40
|
-
class: {
|
|
41
|
-
switch: true,
|
|
42
|
-
'switch--checked': this.checked,
|
|
43
|
-
'switch--disabled': this.disabled
|
|
44
|
-
},
|
|
45
|
-
onClick: this.toggleSwitch,
|
|
46
|
-
disabled: this.disabled
|
|
47
|
-
}, h("span", {
|
|
48
|
-
key: '3701615162b3b8946fa5b9040e77dfa20b7de3fe',
|
|
49
|
-
class: "switch-handle"
|
|
50
|
-
})), this.labelOn && h("span", {
|
|
51
|
-
key: 'b57bd428c7d6818bcec1f069a920a7aa2a2e776d',
|
|
52
|
-
class: "switch-label switch-label--on"
|
|
53
|
-
}, this.labelOn));
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
EdsSwitch.style = EdsSwitchStyle0;
|
|
57
|
-
|
|
58
|
-
export { EdsSwitch as eds_switch };
|