@ebrains/react 0.9.2-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.
- package/README.md +3 -3
- package/analytics-d99780e3.esm.js +55 -0
- package/arrow-diagonal-black-8f0494c3.esm.js +3 -0
- package/arrow-right-9322ba8a.esm.js +5 -0
- package/bluesky-cc5edd2d.esm.js +14 -0
- package/bookmark-c200037c.esm.js +16 -0
- package/chevron-down-6144c823.esm.js +12 -0
- package/chevron-left-ca6c66e1.esm.js +11 -0
- package/chevron-right-b88ed2d4.esm.js +5 -0
- package/chevron-up-c66bd477.esm.js +12 -0
- package/close-87fc0d63.esm.js +5 -0
- package/color-primary-palette_6.entry.esm.js +778 -0
- package/components-section.entry.esm.js +171 -0
- package/copy-03b72cb6.esm.js +5 -0
- package/correct-use-of-colors.entry.esm.js +243 -0
- package/docs-palettes.entry.esm.js +29 -0
- package/docs-tokens.entry.esm.js +45 -0
- package/eds-accordion.entry.esm.js +132 -0
- package/eds-alert.entry.esm.js +112 -0
- package/eds-app-root.entry.esm.js +53 -0
- package/eds-avatar_34.entry.esm.js +3594 -0
- package/eds-card-project.entry.esm.js +210 -0
- package/eds-card-section.entry.esm.js +56 -0
- package/eds-card-tags.entry.esm.js +27 -0
- package/eds-card-tool.entry.esm.js +105 -0
- package/eds-code-block.entry.esm.js +2290 -0
- package/eds-cookies-preference.entry.esm.js +47 -0
- package/eds-feedback.entry.esm.js +87 -0
- package/eds-frame.entry.esm.js +112 -0
- package/eds-icon-arrow-diagonal.entry.esm.js +21 -0
- package/eds-icon-arrow-right.entry.esm.js +21 -0
- package/eds-icon-bluesky.entry.esm.js +21 -0
- package/eds-icon-bookmark.entry.esm.js +21 -0
- package/eds-icon-chevron-down.entry.esm.js +21 -0
- package/eds-icon-chevron-left.entry.esm.js +21 -0
- package/eds-icon-chevron-right.entry.esm.js +21 -0
- package/eds-icon-chevron-up.entry.esm.js +21 -0
- package/eds-icon-close.entry.esm.js +21 -0
- package/eds-icon-copy.entry.esm.js +21 -0
- package/eds-icon-eu.entry.esm.js +21 -0
- package/eds-icon-external.entry.esm.js +21 -0
- package/eds-icon-facebook.entry.esm.js +21 -0
- package/eds-icon-gitlab.entry.esm.js +21 -0
- package/eds-icon-linkedin.entry.esm.js +21 -0
- package/eds-icon-loader.entry.esm.js +21 -0
- package/eds-icon-mastodon.entry.esm.js +21 -0
- package/eds-icon-menu.entry.esm.js +21 -0
- package/eds-icon-minus.entry.esm.js +21 -0
- package/eds-icon-more.entry.esm.js +21 -0
- package/eds-icon-paper.entry.esm.js +21 -0
- package/eds-icon-plus.entry.esm.js +21 -0
- package/eds-icon-portal.entry.esm.js +21 -0
- package/eds-icon-private.entry.esm.js +21 -0
- package/eds-icon-public.entry.esm.js +21 -0
- package/eds-icon-search.entry.esm.js +21 -0
- package/eds-icon-star.entry.esm.js +21 -0
- package/eds-icon-success.entry.esm.js +21 -0
- package/eds-icon-thumbs-down.entry.esm.js +21 -0
- package/eds-icon-thumbs-up.entry.esm.js +21 -0
- package/eds-icon-tutorial.entry.esm.js +21 -0
- package/eds-icon-twitter.entry.esm.js +21 -0
- package/eds-icon-unknown.entry.esm.js +21 -0
- package/eds-icon-updown.entry.esm.js +21 -0
- package/eds-icon-user.entry.esm.js +21 -0
- package/eds-icon-youtube.entry.esm.js +21 -0
- package/eds-matomo-notice.entry.esm.js +159 -0
- package/eds-pagination_2.entry.esm.js +493 -0
- package/eds-progress-bar.entry.esm.js +52 -0
- package/eds-rating.entry.esm.js +79 -0
- package/eds-section-core_2.entry.esm.js +69 -0
- package/eds-spinner.entry.esm.js +67 -0
- package/eds-splash-screen.entry.esm.js +87 -0
- package/eds-switch.entry.esm.js +68 -0
- package/eds-timeline.entry.esm.js +117 -0
- package/eds-toast-manager.entry.esm.js +93 -0
- package/eds-toast.entry.esm.js +93 -0
- package/eds-trl.entry.esm.js +68 -0
- package/eu-9ddde93a.esm.js +30 -0
- package/facebook-9cb5c17f.esm.js +14 -0
- package/incorrect-use-of-colors.entry.esm.js +74 -0
- package/index-39c58238.esm.js +58 -0
- package/index.esm.d.ts +1 -0
- package/index.esm.js +4 -0
- package/index.esm2.js +4558 -0
- package/linkedin-e8650abb.esm.js +28 -0
- package/loader-c9628637.esm.js +30 -0
- package/logo-color-7f1fd803.esm.js +115 -0
- package/logo-color-margins-ff8ce71b.esm.js +118 -0
- package/logo-space.entry.esm.js +48 -0
- package/logo-variations-horizontal_2.entry.esm.js +123 -0
- package/logo-variations-tabs.entry.esm.js +29 -0
- package/logo-white-no-bg-f382f86f.esm.js +1021 -0
- package/logo-wrong-usage.entry.esm.js +101 -0
- package/mastodon-3703ec61.esm.js +14 -0
- package/menu-340ea948.esm.js +11 -0
- package/minus-b30a7c71.esm.js +11 -0
- package/mono-53f70232.esm.js +11 -0
- package/more-4449d549.esm.js +13 -0
- package/package.json +6 -2
- package/paper-8e74ea31.esm.js +15 -0
- package/plus-89c07be2.esm.js +12 -0
- package/portal-d6c8ce56.esm.js +18 -0
- package/private-1c25ff8e.esm.js +25 -0
- package/public-d4d8c585.esm.js +16 -0
- package/search-fbcd79c2.esm.js +12 -0
- package/sharedUtils-a550989c.esm.js +17 -0
- package/src/components.d.ts +40 -0
- package/src/generated/components.d.ts +38 -0
- package/src/generated/react-component-lib/attachProps.d.ts +16 -0
- package/src/generated/react-component-lib/case.d.ts +2 -0
- package/src/generated/react-component-lib/createComponent.d.ts +10 -0
- package/src/generated/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/src/generated/react-component-lib/dev.d.ts +2 -0
- package/src/generated/react-component-lib/interfaces.d.ts +29 -0
- package/src/generated/react-component-lib/utils/attachProps.d.ts +16 -0
- package/src/generated/react-component-lib/utils/case.d.ts +2 -0
- package/src/generated/react-component-lib/utils/dev.d.ts +2 -0
- package/src/generated/react-component-lib/utils/index.d.ts +10 -0
- package/src/react-component-lib/attachProps.d.ts +16 -0
- package/src/react-component-lib/case.d.ts +2 -0
- package/src/react-component-lib/createComponent.d.ts +10 -0
- package/src/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/src/react-component-lib/dev.d.ts +2 -0
- package/src/react-component-lib/interfaces.d.ts +29 -0
- package/src/react-component-lib/utils/attachProps.d.ts +16 -0
- package/src/react-component-lib/utils/case.d.ts +2 -0
- package/src/react-component-lib/utils/index.d.ts +10 -0
- package/star-0da9b5e9.esm.js +5 -0
- package/success-443809da.esm.js +18 -0
- package/svg-repository.entry.esm.js +337 -0
- package/thumbs-down-a18fd049.esm.js +5 -0
- package/thumbs-up-c19a71bc.esm.js +6 -0
- package/token-list_3.entry.esm.js +385 -0
- package/token-ratios.entry.esm.js +49 -0
- package/token-typography.entry.esm.js +267 -0
- package/tutotial-150ee1fd.esm.js +27 -0
- package/twitter-ac21b505.esm.js +14 -0
- package/unknown-ed01a24c.esm.js +22 -0
- package/up-and-down-d747abee.esm.js +12 -0
- package/user-71ebdc15.esm.js +16 -0
- package/youtube-efbfbdc4.esm.js +14 -0
- package/.babelrc +0 -12
- package/project.json +0 -10
- package/rollup.config.js +0 -43
- package/src/components.ts +0 -49
- package/src/generated/components.ts +0 -47
- package/src/generated/react-component-lib/attachProps.ts +0 -125
- package/src/generated/react-component-lib/case.ts +0 -7
- package/src/generated/react-component-lib/createComponent.tsx +0 -106
- package/src/generated/react-component-lib/createOverlayComponent.tsx +0 -142
- package/src/generated/react-component-lib/dev.ts +0 -14
- package/src/generated/react-component-lib/index.tsx +0 -50
- package/src/generated/react-component-lib/interfaces.ts +0 -34
- package/src/generated/react-component-lib/utils/attachProps.ts +0 -125
- package/src/generated/react-component-lib/utils/case.ts +0 -7
- package/src/generated/react-component-lib/utils/dev.ts +0 -14
- package/src/generated/react-component-lib/utils/index.tsx +0 -50
- package/src/react-component-lib/attachProps.ts +0 -125
- package/src/react-component-lib/case.ts +0 -7
- package/src/react-component-lib/createComponent.tsx +0 -106
- package/src/react-component-lib/createOverlayComponent.tsx +0 -142
- package/src/react-component-lib/dev.ts +0 -14
- package/src/react-component-lib/index.tsx +0 -50
- package/src/react-component-lib/interfaces.ts +0 -34
- package/src/react-component-lib/utils/attachProps.ts +0 -125
- package/src/react-component-lib/utils/case.ts +0 -7
- package/src/react-component-lib/utils/index.tsx +0 -50
- package/tsconfig.json +0 -17
- package/tsconfig.lib.json +0 -23
- /package/src/generated/react-component-lib/{index.ts → index.d.ts} +0 -0
- /package/src/{index.ts → index.d.ts} +0 -0
- /package/src/react-component-lib/{index.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const euSvg = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="flag-icons-eu" viewBox="0 0 640 480">
|
|
2
|
+
<defs>
|
|
3
|
+
<g id="d">
|
|
4
|
+
<g id="b">
|
|
5
|
+
<path id="a" d="m0-1-.3 1 .5.1z"/>
|
|
6
|
+
<use xlink:href="#a" transform="scale(-1 1)"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="c">
|
|
9
|
+
<use xlink:href="#b" transform="rotate(72)"/>
|
|
10
|
+
<use xlink:href="#b" transform="rotate(144)"/>
|
|
11
|
+
</g>
|
|
12
|
+
<use xlink:href="#c" transform="scale(-1 1)"/>
|
|
13
|
+
</g>
|
|
14
|
+
</defs>
|
|
15
|
+
<path fill="#039" d="M0 0h640v480H0z"/>
|
|
16
|
+
<g fill="#fc0" transform="translate(320 242.3) scale(23.7037)">
|
|
17
|
+
<use xlink:href="#d" width="100%" height="100%" y="-6"/>
|
|
18
|
+
<use xlink:href="#d" width="100%" height="100%" y="6"/>
|
|
19
|
+
<g id="e">
|
|
20
|
+
<use xlink:href="#d" width="100%" height="100%" x="-6"/>
|
|
21
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(-144 -2.3 -2.1)"/>
|
|
22
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(144 -2.1 -2.3)"/>
|
|
23
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(72 -4.7 -2)"/>
|
|
24
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(72 -5 .5)"/>
|
|
25
|
+
</g>
|
|
26
|
+
<use xlink:href="#e" width="100%" height="100%" transform="scale(-1 1)"/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>`;
|
|
29
|
+
|
|
30
|
+
export { euSvg as e };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const facebook = ` <svg
|
|
2
|
+
width="20"
|
|
3
|
+
height="20"
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M10.9481 19.9556C16.0263 19.4781 20 15.2031 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 14.7129 3.26027 18.6643 7.64847 19.722V12.0931H6V9.36828H7.64847V7.73228C7.64847 5.50935 8.5793 4.1875 11.2239 4.1875H13.4256V6.91266H12.0494C11.0199 6.91266 10.9518 7.29347 10.9518 8.00415L10.9481 9.36797H13.4412L13.1494 12.0928H10.9481V19.9556Z"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`;
|
|
13
|
+
|
|
14
|
+
export { facebook as f };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index.esm2.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
|
|
6
|
+
const primary = [{
|
|
7
|
+
background: '#9CE142'
|
|
8
|
+
}, {
|
|
9
|
+
background: '#00C959'
|
|
10
|
+
}, {
|
|
11
|
+
background: '#00A595'
|
|
12
|
+
}];
|
|
13
|
+
const purple = [{
|
|
14
|
+
background: '#C461FF'
|
|
15
|
+
}, {
|
|
16
|
+
background: '#5D3DF9'
|
|
17
|
+
}];
|
|
18
|
+
const red = [{
|
|
19
|
+
background: '#FFA543'
|
|
20
|
+
}, {
|
|
21
|
+
background: '#FF4D68'
|
|
22
|
+
}];
|
|
23
|
+
const incorrect = [{
|
|
24
|
+
background: '#3FA9F5'
|
|
25
|
+
}, ...purple, ...red];
|
|
26
|
+
const IncorrectUseOfColors = class {
|
|
27
|
+
constructor(hostRef) {
|
|
28
|
+
registerInstance(this, hostRef);
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return h("div", {
|
|
32
|
+
key: '3503dcc0e2d3f5b08eec400e74484e5725d7b4af',
|
|
33
|
+
class: "container"
|
|
34
|
+
}, h("div", {
|
|
35
|
+
key: '657857e8826e60c498450326306234c59b4e770b',
|
|
36
|
+
class: "mb-8"
|
|
37
|
+
}, h("eds-alert", {
|
|
38
|
+
key: '88512240affc65314593f8573b3a13f58fb2806d',
|
|
39
|
+
message: "Note that, each of the four colour tones cannot be mixed in the same composition.",
|
|
40
|
+
intent: "error"
|
|
41
|
+
})), h("div", {
|
|
42
|
+
key: '8614d445187d2614e5833b8c89c66b178762574e',
|
|
43
|
+
class: "flex"
|
|
44
|
+
}, h("div", {
|
|
45
|
+
key: '1b36d52dbcbb65e1edb4513899ec898d691193c0',
|
|
46
|
+
class: "w-full"
|
|
47
|
+
}, h("ul", {
|
|
48
|
+
key: '13fb2eaca0ad3fb93487f6c0c976142a18870b4d',
|
|
49
|
+
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
50
|
+
}, primary.map(color => h("li", {
|
|
51
|
+
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
52
|
+
}, h("div", {
|
|
53
|
+
class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16",
|
|
54
|
+
style: {
|
|
55
|
+
backgroundColor: color.background
|
|
56
|
+
}
|
|
57
|
+
}))))), h("div", {
|
|
58
|
+
key: 'adec93113e4c02168906e1da65f48c20e9b2c7dc',
|
|
59
|
+
class: "w-full"
|
|
60
|
+
}, h("ul", {
|
|
61
|
+
key: 'd0b43589866f53c92084b270afb3571ed2723fc8',
|
|
62
|
+
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
63
|
+
}, incorrect.map(color => h("li", {
|
|
64
|
+
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
65
|
+
}, h("div", {
|
|
66
|
+
class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16",
|
|
67
|
+
style: {
|
|
68
|
+
backgroundColor: color.background
|
|
69
|
+
}
|
|
70
|
+
})))))));
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export { IncorrectUseOfColors as incorrect_use_of_colors };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
function r(e) {
|
|
2
|
+
var t,
|
|
3
|
+
f,
|
|
4
|
+
n = "";
|
|
5
|
+
if ("string" == typeof e || "number" == typeof e) n += e;else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
6
|
+
return n;
|
|
7
|
+
}
|
|
8
|
+
function clsx() {
|
|
9
|
+
for (var e, t, f = 0, n = ""; f < arguments.length;) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
10
|
+
return n;
|
|
11
|
+
}
|
|
12
|
+
const falsyToString = value => typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
|
|
13
|
+
const cx = clsx;
|
|
14
|
+
const cva = (base, config) => {
|
|
15
|
+
return props => {
|
|
16
|
+
var ref;
|
|
17
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
18
|
+
const {
|
|
19
|
+
variants,
|
|
20
|
+
defaultVariants
|
|
21
|
+
} = config;
|
|
22
|
+
const getVariantClassNames = Object.keys(variants).map(variant => {
|
|
23
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
24
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
25
|
+
if (variantProp === null) return null;
|
|
26
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
27
|
+
return variants[variant][variantKey];
|
|
28
|
+
});
|
|
29
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
30
|
+
let [key, value] = param;
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return acc;
|
|
33
|
+
}
|
|
34
|
+
acc[key] = value;
|
|
35
|
+
return acc;
|
|
36
|
+
}, {});
|
|
37
|
+
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1) => {
|
|
38
|
+
let {
|
|
39
|
+
class: cvClass,
|
|
40
|
+
className: cvClassName,
|
|
41
|
+
...compoundVariantOptions
|
|
42
|
+
} = param1;
|
|
43
|
+
return Object.entries(compoundVariantOptions).every(param => {
|
|
44
|
+
let [key, value] = param;
|
|
45
|
+
return Array.isArray(value) ? value.includes({
|
|
46
|
+
...defaultVariants,
|
|
47
|
+
...propsWithoutUndefined
|
|
48
|
+
}[key]) : {
|
|
49
|
+
...defaultVariants,
|
|
50
|
+
...propsWithoutUndefined
|
|
51
|
+
}[key] === value;
|
|
52
|
+
}) ? [...acc, cvClass, cvClassName] : acc;
|
|
53
|
+
}, []);
|
|
54
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { cva as c };
|
package/index.esm.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|
package/index.esm.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { E as EdsAccordion, a as EdsAlert, b as EdsAvatar, d as EdsBlockBreak, e as EdsBreadcrumb, f as EdsButton, i as EdsCardGeneric, j as EdsCardSection, k as EdsCodeBlock, l as EdsDropdown, m as EdsFeedback, n as EdsFooter, o as EdsForm, p as EdsFullscreenMenu, q as EdsGauge, s as EdsHeader, t as EdsIconWrapper, u as EdsImg, v as EdsInputField, w as EdsLink, x as EdsLogo, y as EdsMatomoNotice, z as EdsModal, A as EdsPagination, B as EdsPie, C as EdsProgressBar, D as EdsRating, F as EdsSocialNetworks, G as EdsSpinner, I as EdsSplashScreen, J as EdsSteps, K as EdsStepsV2, L as EdsSwitch, M as EdsTable, N as EdsTabs, O as EdsTag, P as EdsToast, Q as EdsTooltip, R as EdsUser } from './index.esm2.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react-dom';
|